]>
Commit | Line | Data |
---|---|---|
10f2d63a VZ |
1 | #! /bin/sh |
2 | ||
698dcdb6 | 3 | # From configure.in Id: configure.in |
703e0a69 VZ |
4 | |
5 | ||
6 | ||
7 | ||
90dd450c VZ |
8 | |
9 | ||
10 | ||
11 | ||
12 | ||
13 | ||
14 | ||
15 | ||
703e0a69 | 16 | |
703e0a69 VZ |
17 | |
18 | ||
1e487827 | 19 | |
1e487827 | 20 | |
698dcdb6 VZ |
21 | |
22 | ||
23 | ||
24 | ||
25 | ||
26 | ||
27 | ||
28 | ||
29 | ||
30 | ||
31 | ||
32 | ||
33 | ||
34 | ||
35 | ||
36 | ||
37 | ||
38 | ||
39 | ||
40 | ||
41 | ||
42 | ||
43 | ||
44 | ||
45 | ||
46 | ||
47 | ||
48 | ||
b040e242 VS |
49 | |
50 | ||
51 | ||
986ecc86 VZ |
52 | |
53 | ||
54 | ||
b040e242 VS |
55 | |
56 | ||
57 | ||
58 | ||
9e691f46 VZ |
59 | # Configure paths for GTK+ |
60 | # Owen Taylor 1997-2001 | |
b040e242 VS |
61 | |
62 | ||
63 | ||
64 | # Configure paths for GTK+ | |
65 | # Owen Taylor 97-11-3 | |
698dcdb6 | 66 | |
698dcdb6 VZ |
67 | |
68 | ||
69 | # Guess values for system-dependent variables and create Makefiles. | |
70 | # Generated automatically using autoconf version 2.13 | |
71 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. | |
72 | # | |
73 | # This configure script is free software; the Free Software Foundation | |
74 | # gives unlimited permission to copy, distribute and modify it. | |
75 | ||
76 | # Defaults: | |
77 | ac_help= | |
78 | ac_default_prefix=/usr/local | |
79 | # Any additions from configure.in: | |
80 | ac_help="$ac_help | |
8168de4c | 81 | --enable-gui use GUI classes" |
1e6feb95 | 82 | ac_help="$ac_help |
8168de4c | 83 | --enable-universal use wxWindows GUI controls instead of native ones" |
698dcdb6 VZ |
84 | ac_help="$ac_help |
85 | --with-gtk use GTK+" | |
86 | ac_help="$ac_help | |
87 | --with-motif use Motif/Lesstif" | |
88 | ac_help="$ac_help | |
89 | --with-mac use Mac OS X" | |
90 | ac_help="$ac_help | |
91 | --with-wine use WINE" | |
92 | ac_help="$ac_help | |
77e13408 | 93 | --with-msw use MS-Windows" |
698dcdb6 VZ |
94 | ac_help="$ac_help |
95 | --with-pm use OS/2 Presentation Manager" | |
1e6feb95 | 96 | ac_help="$ac_help |
b3e8d00a | 97 | --with-mgl use SciTech MGL" |
1725144d RR |
98 | ac_help="$ac_help |
99 | --with-microwin use MicroWindows" | |
f79bd02d JS |
100 | ac_help="$ac_help |
101 | --with-x11 use X11" | |
d8356fa3 VZ |
102 | ac_help="$ac_help |
103 | --enable-nanox use NanoX" | |
698dcdb6 | 104 | ac_help="$ac_help |
8168de4c | 105 | --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)" |
698dcdb6 | 106 | ac_help="$ac_help |
8168de4c | 107 | --with-libpng use libpng (PNG image format)" |
698dcdb6 | 108 | ac_help="$ac_help |
8168de4c | 109 | --with-libjpeg use libjpeg (JPEG file format)" |
698dcdb6 | 110 | ac_help="$ac_help |
8168de4c | 111 | --with-libtiff use libtiff (TIFF file format)" |
698dcdb6 | 112 | ac_help="$ac_help |
8168de4c | 113 | --with-opengl use OpenGL (or Mesa)" |
698dcdb6 | 114 | ac_help="$ac_help |
d0e9b150 | 115 | --with-dmalloc use dmalloc library (http://dmalloc.com/)" |
3e44f09d VZ |
116 | ac_help="$ac_help |
117 | --with-regex enable support for wxRegEx class" | |
698dcdb6 | 118 | ac_help="$ac_help |
8168de4c | 119 | --with-zlib use zlib for LZW compression" |
698dcdb6 | 120 | ac_help="$ac_help |
8168de4c | 121 | --with-odbc use the IODBC and wxODBC classes" |
698dcdb6 | 122 | ac_help="$ac_help |
8168de4c | 123 | --enable-shared create shared library code" |
698dcdb6 | 124 | ac_help="$ac_help |
3a922bb4 | 125 | --enable-soname set the DT_SONAME field in ELF shared libraries" |
698dcdb6 | 126 | ac_help="$ac_help |
8168de4c | 127 | --enable-optimise create optimised code" |
698dcdb6 | 128 | ac_help="$ac_help |
8168de4c | 129 | --enable-debug same as debug_flag and debug_info" |
683dccda GD |
130 | ac_help="$ac_help |
131 | --enable-precomp enable use of precompiled headers (Mac OS X)" | |
698dcdb6 | 132 | ac_help="$ac_help |
8168de4c | 133 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)" |
698dcdb6 | 134 | ac_help="$ac_help |
8168de4c | 135 | --enable-debug_info create code with debugging information" |
698dcdb6 | 136 | ac_help="$ac_help |
8168de4c | 137 | --enable-debug_gdb create code with extra GDB debugging information" |
698dcdb6 | 138 | ac_help="$ac_help |
8168de4c | 139 | --enable-debug_cntxt use wxDebugContext" |
698dcdb6 | 140 | ac_help="$ac_help |
8168de4c | 141 | --enable-mem_tracing create code with memory tracing" |
698dcdb6 | 142 | ac_help="$ac_help |
8168de4c | 143 | --enable-profile create code with profiling information" |
698dcdb6 | 144 | ac_help="$ac_help |
8168de4c | 145 | --enable-no_rtti create code without RTTI information" |
698dcdb6 | 146 | ac_help="$ac_help |
b3e8d00a | 147 | --enable-no_exceptions create code without C++ exceptions handling" |
698dcdb6 | 148 | ac_help="$ac_help |
8168de4c | 149 | --enable-permissive compile code disregarding strict ANSI" |
698dcdb6 | 150 | ac_help="$ac_help |
8168de4c | 151 | --enable-no_deps create code without dependency information" |
54276ccf | 152 | ac_help="$ac_help |
b3e8d00a | 153 | --enable-compat20 enable wxWindows 2.0 compatibility" |
54276ccf | 154 | ac_help="$ac_help |
0c9a1c32 | 155 | --disable-compat22 disable wxWindows 2.2 compatibility" |
3bd8fb5f RD |
156 | ac_help="$ac_help |
157 | --enable-rpath=DIR output the rpath flag from wx-config" | |
698dcdb6 | 158 | ac_help="$ac_help |
8168de4c | 159 | --enable-intl use internationalization system" |
698dcdb6 | 160 | ac_help="$ac_help |
8168de4c | 161 | --enable-config use wxConfig (and derived) classes" |
a1622950 VZ |
162 | ac_help="$ac_help |
163 | --enable-protocols use wxProtocol and derived classes" | |
164 | ac_help="$ac_help | |
165 | --enable-ftp use wxFTP (requires wxProtocol" | |
166 | ac_help="$ac_help | |
167 | --enable-http use wxHTTP (requires wxProtocol" | |
168 | ac_help="$ac_help | |
169 | --enable-fileproto use wxFileProto class (requires wxProtocol" | |
698dcdb6 | 170 | ac_help="$ac_help |
8168de4c | 171 | --enable-sockets use socket/network classes" |
698dcdb6 | 172 | ac_help="$ac_help |
8168de4c | 173 | --enable-ipc use interprocess communication (wxSocket etc.)" |
698dcdb6 | 174 | ac_help="$ac_help |
8168de4c | 175 | --enable-cmdline use wxCmdLineParser class" |
1e6feb95 | 176 | ac_help="$ac_help |
8168de4c | 177 | --enable-datetime use wxDateTime class" |
1e6feb95 | 178 | ac_help="$ac_help |
8168de4c | 179 | --enable-timedate use obsolete wxDate/wxTime classes" |
1e6feb95 | 180 | ac_help="$ac_help |
8168de4c | 181 | --enable-stopwatch use wxStopWatch class" |
1e6feb95 | 182 | ac_help="$ac_help |
8168de4c | 183 | --enable-dialupman use dialup network classes" |
698dcdb6 | 184 | ac_help="$ac_help |
8168de4c | 185 | --enable-apple_ieee use the Apple IEEE codec" |
698dcdb6 | 186 | ac_help="$ac_help |
8168de4c | 187 | --enable-timer use wxTimer class" |
698dcdb6 | 188 | ac_help="$ac_help |
8168de4c | 189 | --enable-wave use wxWave class" |
698dcdb6 | 190 | ac_help="$ac_help |
8168de4c | 191 | --enable-fraction use wxFraction class" |
698dcdb6 | 192 | ac_help="$ac_help |
8168de4c | 193 | --enable-dynlib use wxLibrary class for DLL loading" |
0b9ab0bd RL |
194 | ac_help="$ac_help |
195 | --enable-dynamicloader use (new) wxDynamicLibrary class" | |
698dcdb6 | 196 | ac_help="$ac_help |
8168de4c | 197 | --enable-longlong use wxLongLong class" |
698dcdb6 | 198 | ac_help="$ac_help |
8168de4c | 199 | --enable-geometry use geometry class" |
698dcdb6 | 200 | ac_help="$ac_help |
8168de4c | 201 | --enable-log use logging system" |
698dcdb6 | 202 | ac_help="$ac_help |
8168de4c | 203 | --enable-streams use wxStream etc classes" |
698dcdb6 | 204 | ac_help="$ac_help |
8168de4c | 205 | --enable-file use wxFile classes" |
698dcdb6 | 206 | ac_help="$ac_help |
8168de4c | 207 | --enable-ffile use wxFFile classes" |
1e6feb95 | 208 | ac_help="$ac_help |
a3a584a7 VZ |
209 | --enable-textbuf use wxTextBuffer class" |
210 | ac_help="$ac_help | |
211 | --enable-textfile use wxTextFile class" | |
698dcdb6 | 212 | ac_help="$ac_help |
8168de4c | 213 | --enable-fontmap use font encodings conversion classes" |
1e6feb95 | 214 | ac_help="$ac_help |
8168de4c | 215 | --enable-unicode compile wxString with Unicode support" |
a72a4bfa VS |
216 | ac_help="$ac_help |
217 | --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)" | |
698dcdb6 | 218 | ac_help="$ac_help |
8168de4c | 219 | --enable-wxprintfv use wxWindows implementation of vprintf()" |
698dcdb6 | 220 | ac_help="$ac_help |
8168de4c | 221 | --enable-std_iostreams use standard C++ stream classes" |
698dcdb6 | 222 | ac_help="$ac_help |
8168de4c | 223 | --enable-filesystem use virtual file systems classes" |
698dcdb6 | 224 | ac_help="$ac_help |
8168de4c | 225 | --enable-fs_inet use virtual HTTP/FTP filesystems" |
698dcdb6 | 226 | ac_help="$ac_help |
8168de4c | 227 | --enable-fs_zip use virtual ZIP filesystems" |
698dcdb6 | 228 | ac_help="$ac_help |
8168de4c | 229 | --enable-zipstream use wxZipInputStream" |
698dcdb6 | 230 | ac_help="$ac_help |
8168de4c | 231 | --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException" |
698dcdb6 | 232 | ac_help="$ac_help |
8168de4c | 233 | --enable-snglinst use wxSingleInstanceChecker class" |
698dcdb6 | 234 | ac_help="$ac_help |
69d27ff7 | 235 | --enable-mimetype use wxMimeTypesManager" |
3e44f09d | 236 | ac_help="$ac_help |
b3e8d00a | 237 | --enable-sysoptions use wxSystemOptions" |
4cdb0ab0 VS |
238 | ac_help="$ac_help |
239 | --enable-url use wxURL class" | |
240 | ac_help="$ac_help | |
241 | --enable-protocol use wxProtocol class" | |
242 | ac_help="$ac_help | |
243 | --enable-protocol-http HTTP support in wxProtocol" | |
244 | ac_help="$ac_help | |
245 | --enable-protocol-ftp FTP support in wxProtocol" | |
246 | ac_help="$ac_help | |
247 | --enable-protocol-file FILE support in wxProtocol" | |
1e6feb95 | 248 | ac_help="$ac_help |
8168de4c | 249 | --enable-threads use threads" |
698dcdb6 | 250 | ac_help="$ac_help |
8168de4c | 251 | --enable-docview use document view architecture" |
698dcdb6 | 252 | ac_help="$ac_help |
3379ed37 | 253 | --enable-help use help subsystem" |
29fd3c0c VS |
254 | ac_help="$ac_help |
255 | --enable-mshtmlhelp use MS HTML Help (win32)" | |
3379ed37 VZ |
256 | ac_help="$ac_help |
257 | --enable-html use wxHTML sub-library" | |
258 | ac_help="$ac_help | |
259 | --enable-htmlhelp use wxHTML-based help" | |
698dcdb6 | 260 | ac_help="$ac_help |
8168de4c | 261 | --enable-constraints use layout-constraints system" |
698dcdb6 | 262 | ac_help="$ac_help |
8168de4c | 263 | --enable-printarch use printing architecture" |
698dcdb6 | 264 | ac_help="$ac_help |
8168de4c | 265 | --enable-mdi use multiple document interface architecture" |
698dcdb6 | 266 | ac_help="$ac_help |
8168de4c | 267 | --enable-loggui use standard GUI logger" |
1e6feb95 | 268 | ac_help="$ac_help |
8168de4c | 269 | --enable-logwin use wxLogWindow" |
69d27ff7 MB |
270 | ac_help="$ac_help |
271 | --enable-logdialog use wxLogDialog" | |
1e6feb95 | 272 | ac_help="$ac_help |
8168de4c | 273 | --enable-postscript use wxPostscriptDC device context (default for gtk+)" |
698dcdb6 | 274 | ac_help="$ac_help |
8168de4c | 275 | --enable-prologio use Prolog IO library" |
698dcdb6 | 276 | ac_help="$ac_help |
8168de4c | 277 | --enable-resources use wxWindows resources" |
698dcdb6 | 278 | ac_help="$ac_help |
8168de4c | 279 | --enable-xresources use X resources for save (default for gtk+)" |
698dcdb6 | 280 | ac_help="$ac_help |
8168de4c | 281 | --enable-clipboard use wxClipboard classes" |
698dcdb6 | 282 | ac_help="$ac_help |
8168de4c | 283 | --enable-dnd use Drag'n'Drop classes" |
698dcdb6 | 284 | ac_help="$ac_help |
8168de4c | 285 | --enable-metafile use win32 metafiles" |
698dcdb6 | 286 | ac_help="$ac_help |
24176f2c | 287 | --enable-treelayout use wxTreeLayout classes" |
698dcdb6 | 288 | ac_help="$ac_help |
8168de4c | 289 | --enable-controls use all usual controls" |
698dcdb6 | 290 | ac_help="$ac_help |
8168de4c | 291 | --enable-accel use accelerators" |
698dcdb6 | 292 | ac_help="$ac_help |
8168de4c | 293 | --enable-button use wxButton class" |
698dcdb6 | 294 | ac_help="$ac_help |
8168de4c | 295 | --enable-bmpbutton use wxBitmapButton class" |
698dcdb6 | 296 | ac_help="$ac_help |
8168de4c | 297 | --enable-calendar use wxCalendarCtrl class" |
1e6feb95 | 298 | ac_help="$ac_help |
8168de4c | 299 | --enable-caret use wxCaret class" |
1e6feb95 | 300 | ac_help="$ac_help |
8168de4c | 301 | --enable-checkbox use wxCheckBox class" |
698dcdb6 | 302 | ac_help="$ac_help |
8168de4c | 303 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class" |
698dcdb6 | 304 | ac_help="$ac_help |
8168de4c | 305 | --enable-choice use wxChoice class" |
698dcdb6 | 306 | ac_help="$ac_help |
8168de4c | 307 | --enable-combobox use wxComboBox classes" |
698dcdb6 | 308 | ac_help="$ac_help |
8168de4c | 309 | --enable-gauge use wxGauge class" |
698dcdb6 | 310 | ac_help="$ac_help |
8168de4c | 311 | --enable-grid use wxGrid class" |
698dcdb6 | 312 | ac_help="$ac_help |
8168de4c | 313 | --enable-newgrid use new wxGrid class" |
698dcdb6 | 314 | ac_help="$ac_help |
8168de4c | 315 | --enable-imaglist use wxImageList class" |
698dcdb6 | 316 | ac_help="$ac_help |
8168de4c | 317 | --enable-listbox use wxListBox class" |
698dcdb6 | 318 | ac_help="$ac_help |
8168de4c | 319 | --enable-listctrl use wxListCtrl class" |
698dcdb6 | 320 | ac_help="$ac_help |
8168de4c | 321 | --enable-notebook use wxNotebook class" |
24176f2c GD |
322 | ac_help="$ac_help |
323 | --enable-propsheet use wxPropertySheet class" | |
698dcdb6 | 324 | ac_help="$ac_help |
8168de4c | 325 | --enable-radiobox use wxRadioBox class" |
698dcdb6 | 326 | ac_help="$ac_help |
8168de4c | 327 | --enable-radiobtn use wxRadioButton class" |
698dcdb6 | 328 | ac_help="$ac_help |
8168de4c | 329 | --enable-sash use wxSashWindow class" |
698dcdb6 | 330 | ac_help="$ac_help |
8168de4c | 331 | --enable-scrollbar use wxScrollBar class and scrollable windows" |
698dcdb6 | 332 | ac_help="$ac_help |
8168de4c | 333 | --enable-slider use wxSlider class" |
698dcdb6 | 334 | ac_help="$ac_help |
8168de4c | 335 | --enable-spinbtn use wxSpinButton class" |
698dcdb6 | 336 | ac_help="$ac_help |
8168de4c | 337 | --enable-spinctrl use wxSpinCtrl class" |
698dcdb6 | 338 | ac_help="$ac_help |
8168de4c | 339 | --enable-splitter use wxSplitterWindow class" |
698dcdb6 | 340 | ac_help="$ac_help |
8168de4c | 341 | --enable-statbmp use wxStaticBitmap class" |
698dcdb6 | 342 | ac_help="$ac_help |
8168de4c | 343 | --enable-statbox use wxStaticBox class" |
698dcdb6 | 344 | ac_help="$ac_help |
8168de4c | 345 | --enable-statline use wxStaticLine class" |
698dcdb6 | 346 | ac_help="$ac_help |
8168de4c | 347 | --enable-stattext use wxStaticText class" |
1e6feb95 | 348 | ac_help="$ac_help |
8168de4c | 349 | --enable-statusbar use wxStatusBar class" |
698dcdb6 | 350 | ac_help="$ac_help |
8168de4c | 351 | --enable-tabdialog use wxTabControl class" |
698dcdb6 | 352 | ac_help="$ac_help |
8168de4c | 353 | --enable-textctrl use wxTextCtrl class" |
1e6feb95 | 354 | ac_help="$ac_help |
8168de4c | 355 | --enable-togglebtn use wxToggleButton class" |
698dcdb6 | 356 | ac_help="$ac_help |
8168de4c | 357 | --enable-toolbar use wxToolBar class" |
698dcdb6 | 358 | ac_help="$ac_help |
8168de4c | 359 | --enable-tbarnative use native wxToolBar class" |
698dcdb6 | 360 | ac_help="$ac_help |
8168de4c | 361 | --enable-tbarsmpl use wxToolBarSimple class" |
698dcdb6 | 362 | ac_help="$ac_help |
8168de4c | 363 | --enable-treectrl use wxTreeCtrl class" |
9926e4a4 VZ |
364 | ac_help="$ac_help |
365 | --enable-tipwindow use wxTipWindow class" | |
9f41d601 RR |
366 | ac_help="$ac_help |
367 | --enable-popupwin use wxPopUpWindow class" | |
698dcdb6 | 368 | ac_help="$ac_help |
b3e8d00a | 369 | --enable-commondlg use all common dialogs" |
698dcdb6 | 370 | ac_help="$ac_help |
8168de4c | 371 | --enable-choicedlg use wxChoiceDialog" |
1e6feb95 | 372 | ac_help="$ac_help |
8168de4c | 373 | --enable-coldlg use wxColourDialog" |
1e6feb95 | 374 | ac_help="$ac_help |
8168de4c | 375 | --enable-filedlg use wxFileDialog" |
8db37e06 VZ |
376 | ac_help="$ac_help |
377 | --enable-finddlg use wxFindReplaceDialog" | |
1e6feb95 | 378 | ac_help="$ac_help |
8168de4c | 379 | --enable-fontdlg use wxFontDialog" |
1e6feb95 | 380 | ac_help="$ac_help |
8168de4c | 381 | --enable-dirdlg use wxDirDialog" |
698dcdb6 | 382 | ac_help="$ac_help |
8168de4c | 383 | --enable-msgdlg use wxMessageDialog" |
1e6feb95 | 384 | ac_help="$ac_help |
8168de4c | 385 | --enable-numberdlg use wxNumberEntryDialog" |
cbca9943 VZ |
386 | ac_help="$ac_help |
387 | --enable-splash use wxSplashScreen" | |
1e6feb95 | 388 | ac_help="$ac_help |
8168de4c | 389 | --enable-textdlg use wxTextDialog" |
698dcdb6 | 390 | ac_help="$ac_help |
8168de4c | 391 | --enable-tipdlg use startup tips" |
698dcdb6 | 392 | ac_help="$ac_help |
8168de4c | 393 | --enable-progressdlg use wxProgressDialog" |
b1f5d087 VZ |
394 | ac_help="$ac_help |
395 | --enable-wizarddlg use wxWizard" | |
698dcdb6 | 396 | ac_help="$ac_help |
8168de4c | 397 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes" |
1e6feb95 | 398 | ac_help="$ac_help |
8168de4c | 399 | --enable-miniframe use wxMiniFrame class" |
698dcdb6 | 400 | ac_help="$ac_help |
8168de4c | 401 | --enable-tooltips use wxToolTip class" |
698dcdb6 | 402 | ac_help="$ac_help |
8168de4c | 403 | --enable-splines use spline drawing code" |
698dcdb6 | 404 | ac_help="$ac_help |
8168de4c | 405 | --enable-validators use wxValidator and derived classes" |
698dcdb6 | 406 | ac_help="$ac_help |
8168de4c | 407 | --enable-busyinfo use wxBusyInfo" |
698dcdb6 | 408 | ac_help="$ac_help |
b3e8d00a | 409 | --enable-joystick use wxJoystick (Linux only)" |
698dcdb6 | 410 | ac_help="$ac_help |
8168de4c | 411 | --enable-metafiles use wxMetaFile (Windows only)" |
24fd6d87 VZ |
412 | ac_help="$ac_help |
413 | --enable-dragimage use wxDragImage" | |
edae8572 VZ |
414 | ac_help="$ac_help |
415 | --enable-palette use wxPalette class" | |
1e6feb95 | 416 | ac_help="$ac_help |
8168de4c | 417 | --enable-image use wxImage class" |
698dcdb6 | 418 | ac_help="$ac_help |
8168de4c | 419 | --enable-gif use gif images (GIF file format)" |
698dcdb6 | 420 | ac_help="$ac_help |
8168de4c | 421 | --enable-pcx use pcx images (PCX file format)" |
4b6b4dfc RR |
422 | ac_help="$ac_help |
423 | --enable-iff use iff images (IFF file format)" | |
698dcdb6 | 424 | ac_help="$ac_help |
8168de4c | 425 | --enable-pnm use pnm images (PNM file format)" |
698dcdb6 | 426 | ac_help="$ac_help |
8168de4c | 427 | --enable-xpm use xpm images (XPM file format)" |
658974ae VS |
428 | ac_help="$ac_help |
429 | --enable-icocur use Windows ICO and CUR formats" | |
90dd450c VZ |
430 | ac_help="$ac_help |
431 | --disable-largefile omit support for large files" | |
698dcdb6 | 432 | ac_help="$ac_help |
9e691f46 | 433 | --disable-gtktest do not try to compile and run a test GTK+ program" |
3f345b47 VZ |
434 | ac_help="$ac_help |
435 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
436 | ac_help="$ac_help | |
437 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
438 | ac_help="$ac_help | |
439 | --disable-gtktest Do not try to compile and run a test GTK program" | |
440 | ac_help="$ac_help | |
441 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
442 | ac_help="$ac_help | |
443 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
444 | ac_help="$ac_help | |
445 | --disable-gtktest Do not try to compile and run a test GTK program" | |
698dcdb6 VZ |
446 | ac_help="$ac_help |
447 | --with-x use the X Window System" | |
b040e242 VS |
448 | ac_help="$ac_help |
449 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib" | |
10f2d63a VZ |
450 | |
451 | # Initialize some variables set by options. | |
452 | # The variables have the same names as the options, with | |
453 | # dashes changed to underlines. | |
698dcdb6 VZ |
454 | build=NONE |
455 | cache_file=./config.cache | |
10f2d63a | 456 | exec_prefix=NONE |
698dcdb6 | 457 | host=NONE |
10f2d63a | 458 | no_create= |
698dcdb6 | 459 | nonopt=NONE |
10f2d63a VZ |
460 | no_recursion= |
461 | prefix=NONE | |
462 | program_prefix=NONE | |
463 | program_suffix=NONE | |
464 | program_transform_name=s,x,x, | |
465 | silent= | |
466 | site= | |
467 | srcdir= | |
698dcdb6 | 468 | target=NONE |
10f2d63a VZ |
469 | verbose= |
470 | x_includes=NONE | |
471 | x_libraries=NONE | |
472 | bindir='${exec_prefix}/bin' | |
473 | sbindir='${exec_prefix}/sbin' | |
474 | libexecdir='${exec_prefix}/libexec' | |
475 | datadir='${prefix}/share' | |
476 | sysconfdir='${prefix}/etc' | |
477 | sharedstatedir='${prefix}/com' | |
478 | localstatedir='${prefix}/var' | |
479 | libdir='${exec_prefix}/lib' | |
480 | includedir='${prefix}/include' | |
481 | oldincludedir='/usr/include' | |
482 | infodir='${prefix}/info' | |
483 | mandir='${prefix}/man' | |
484 | ||
698dcdb6 VZ |
485 | # Initialize some other variables. |
486 | subdirs= | |
487 | MFLAGS= MAKEFLAGS= | |
488 | SHELL=${CONFIG_SHELL-/bin/sh} | |
489 | # Maximum number of lines to put in a shell here document. | |
490 | ac_max_here_lines=12 | |
10f2d63a VZ |
491 | |
492 | ac_prev= | |
493 | for ac_option | |
494 | do | |
698dcdb6 | 495 | |
10f2d63a VZ |
496 | # If the previous option needs an argument, assign it. |
497 | if test -n "$ac_prev"; then | |
498 | eval "$ac_prev=\$ac_option" | |
499 | ac_prev= | |
500 | continue | |
501 | fi | |
502 | ||
698dcdb6 VZ |
503 | case "$ac_option" in |
504 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
505 | *) ac_optarg= ;; | |
506 | esac | |
10f2d63a VZ |
507 | |
508 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
509 | ||
698dcdb6 | 510 | case "$ac_option" in |
10f2d63a VZ |
511 | |
512 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
513 | ac_prev=bindir ;; | |
514 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
698dcdb6 | 515 | bindir="$ac_optarg" ;; |
10f2d63a VZ |
516 | |
517 | -build | --build | --buil | --bui | --bu) | |
698dcdb6 | 518 | ac_prev=build ;; |
10f2d63a | 519 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
698dcdb6 | 520 | build="$ac_optarg" ;; |
10f2d63a VZ |
521 | |
522 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
523 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
524 | ac_prev=cache_file ;; | |
525 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
526 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
698dcdb6 | 527 | cache_file="$ac_optarg" ;; |
10f2d63a VZ |
528 | |
529 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
530 | ac_prev=datadir ;; | |
531 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
532 | | --da=*) | |
698dcdb6 | 533 | datadir="$ac_optarg" ;; |
10f2d63a VZ |
534 | |
535 | -disable-* | --disable-*) | |
698dcdb6 | 536 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
10f2d63a | 537 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
538 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
539 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
540 | fi | |
541 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
542 | eval "enable_${ac_feature}=no" ;; | |
10f2d63a VZ |
543 | |
544 | -enable-* | --enable-*) | |
698dcdb6 | 545 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
10f2d63a | 546 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
547 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
548 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
549 | fi | |
550 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
551 | case "$ac_option" in | |
552 | *=*) ;; | |
10f2d63a VZ |
553 | *) ac_optarg=yes ;; |
554 | esac | |
698dcdb6 | 555 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
10f2d63a VZ |
556 | |
557 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
558 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
559 | | --exec | --exe | --ex) | |
560 | ac_prev=exec_prefix ;; | |
561 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
562 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
563 | | --exec=* | --exe=* | --ex=*) | |
698dcdb6 | 564 | exec_prefix="$ac_optarg" ;; |
10f2d63a VZ |
565 | |
566 | -gas | --gas | --ga | --g) | |
567 | # Obsolete; use --with-gas. | |
568 | with_gas=yes ;; | |
569 | ||
698dcdb6 VZ |
570 | -help | --help | --hel | --he) |
571 | # Omit some internal or obsolete options to make the list less imposing. | |
572 | # This message is too long to be a string in the A/UX 3.1 sh. | |
573 | cat << EOF | |
574 | Usage: configure [options] [host] | |
575 | Options: [defaults in brackets after descriptions] | |
576 | Configuration: | |
577 | --cache-file=FILE cache test results in FILE | |
578 | --help print this message | |
579 | --no-create do not create output files | |
580 | --quiet, --silent do not print \`checking...' messages | |
581 | --version print the version of autoconf that created configure | |
582 | Directory and file names: | |
583 | --prefix=PREFIX install architecture-independent files in PREFIX | |
584 | [$ac_default_prefix] | |
585 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
586 | [same as prefix] | |
587 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
588 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
589 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
590 | --datadir=DIR read-only architecture-independent data in DIR | |
591 | [PREFIX/share] | |
592 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
593 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
594 | [PREFIX/com] | |
595 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
596 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
597 | --includedir=DIR C header files in DIR [PREFIX/include] | |
598 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
599 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
600 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
601 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
602 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
603 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
604 | --program-transform-name=PROGRAM | |
605 | run sed PROGRAM on installed program names | |
606 | EOF | |
607 | cat << EOF | |
608 | Host type: | |
609 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
610 | --host=HOST configure for HOST [guessed] | |
611 | --target=TARGET configure for TARGET [TARGET=HOST] | |
612 | Features and packages: | |
613 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
614 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
615 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
616 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
617 | --x-includes=DIR X include files are in DIR | |
618 | --x-libraries=DIR X library files are in DIR | |
619 | EOF | |
620 | if test -n "$ac_help"; then | |
621 | echo "--enable and --with options recognized:$ac_help" | |
622 | fi | |
623 | exit 0 ;; | |
10f2d63a VZ |
624 | |
625 | -host | --host | --hos | --ho) | |
698dcdb6 | 626 | ac_prev=host ;; |
10f2d63a | 627 | -host=* | --host=* | --hos=* | --ho=*) |
698dcdb6 | 628 | host="$ac_optarg" ;; |
10f2d63a VZ |
629 | |
630 | -includedir | --includedir | --includedi | --included | --include \ | |
631 | | --includ | --inclu | --incl | --inc) | |
632 | ac_prev=includedir ;; | |
633 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
634 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
698dcdb6 | 635 | includedir="$ac_optarg" ;; |
10f2d63a VZ |
636 | |
637 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
638 | ac_prev=infodir ;; | |
639 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
698dcdb6 | 640 | infodir="$ac_optarg" ;; |
10f2d63a VZ |
641 | |
642 | -libdir | --libdir | --libdi | --libd) | |
643 | ac_prev=libdir ;; | |
644 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
698dcdb6 | 645 | libdir="$ac_optarg" ;; |
10f2d63a VZ |
646 | |
647 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
648 | | --libexe | --libex | --libe) | |
649 | ac_prev=libexecdir ;; | |
650 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
651 | | --libexe=* | --libex=* | --libe=*) | |
698dcdb6 | 652 | libexecdir="$ac_optarg" ;; |
10f2d63a VZ |
653 | |
654 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
655 | | --localstate | --localstat | --localsta | --localst \ | |
656 | | --locals | --local | --loca | --loc | --lo) | |
657 | ac_prev=localstatedir ;; | |
658 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
659 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
660 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
698dcdb6 | 661 | localstatedir="$ac_optarg" ;; |
10f2d63a VZ |
662 | |
663 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
664 | ac_prev=mandir ;; | |
665 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
698dcdb6 | 666 | mandir="$ac_optarg" ;; |
10f2d63a VZ |
667 | |
668 | -nfp | --nfp | --nf) | |
669 | # Obsolete; use --without-fp. | |
670 | with_fp=no ;; | |
671 | ||
672 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
673 | | --no-cr | --no-c) | |
674 | no_create=yes ;; | |
675 | ||
676 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
677 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
678 | no_recursion=yes ;; | |
679 | ||
680 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
681 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
682 | | --oldin | --oldi | --old | --ol | --o) | |
683 | ac_prev=oldincludedir ;; | |
684 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
685 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
686 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
698dcdb6 | 687 | oldincludedir="$ac_optarg" ;; |
10f2d63a VZ |
688 | |
689 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
690 | ac_prev=prefix ;; | |
691 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
698dcdb6 | 692 | prefix="$ac_optarg" ;; |
10f2d63a VZ |
693 | |
694 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
695 | | --program-pre | --program-pr | --program-p) | |
696 | ac_prev=program_prefix ;; | |
697 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
698 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
698dcdb6 | 699 | program_prefix="$ac_optarg" ;; |
10f2d63a VZ |
700 | |
701 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
702 | | --program-suf | --program-su | --program-s) | |
703 | ac_prev=program_suffix ;; | |
704 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
705 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
698dcdb6 | 706 | program_suffix="$ac_optarg" ;; |
10f2d63a VZ |
707 | |
708 | -program-transform-name | --program-transform-name \ | |
709 | | --program-transform-nam | --program-transform-na \ | |
710 | | --program-transform-n | --program-transform- \ | |
711 | | --program-transform | --program-transfor \ | |
712 | | --program-transfo | --program-transf \ | |
713 | | --program-trans | --program-tran \ | |
714 | | --progr-tra | --program-tr | --program-t) | |
715 | ac_prev=program_transform_name ;; | |
716 | -program-transform-name=* | --program-transform-name=* \ | |
717 | | --program-transform-nam=* | --program-transform-na=* \ | |
718 | | --program-transform-n=* | --program-transform-=* \ | |
719 | | --program-transform=* | --program-transfor=* \ | |
720 | | --program-transfo=* | --program-transf=* \ | |
721 | | --program-trans=* | --program-tran=* \ | |
722 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
698dcdb6 | 723 | program_transform_name="$ac_optarg" ;; |
10f2d63a VZ |
724 | |
725 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
726 | | -silent | --silent | --silen | --sile | --sil) | |
727 | silent=yes ;; | |
728 | ||
729 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
730 | ac_prev=sbindir ;; | |
731 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
732 | | --sbi=* | --sb=*) | |
698dcdb6 | 733 | sbindir="$ac_optarg" ;; |
10f2d63a VZ |
734 | |
735 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
736 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
737 | | --sharedst | --shareds | --shared | --share | --shar \ | |
738 | | --sha | --sh) | |
739 | ac_prev=sharedstatedir ;; | |
740 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
741 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
742 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
743 | | --sha=* | --sh=*) | |
698dcdb6 | 744 | sharedstatedir="$ac_optarg" ;; |
10f2d63a VZ |
745 | |
746 | -site | --site | --sit) | |
747 | ac_prev=site ;; | |
748 | -site=* | --site=* | --sit=*) | |
698dcdb6 | 749 | site="$ac_optarg" ;; |
10f2d63a VZ |
750 | |
751 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
752 | ac_prev=srcdir ;; | |
753 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
698dcdb6 | 754 | srcdir="$ac_optarg" ;; |
10f2d63a VZ |
755 | |
756 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
757 | | --syscon | --sysco | --sysc | --sys | --sy) | |
758 | ac_prev=sysconfdir ;; | |
759 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
760 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
698dcdb6 | 761 | sysconfdir="$ac_optarg" ;; |
10f2d63a VZ |
762 | |
763 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
698dcdb6 | 764 | ac_prev=target ;; |
10f2d63a | 765 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
698dcdb6 | 766 | target="$ac_optarg" ;; |
10f2d63a VZ |
767 | |
768 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
769 | verbose=yes ;; | |
770 | ||
698dcdb6 VZ |
771 | -version | --version | --versio | --versi | --vers) |
772 | echo "configure generated by autoconf version 2.13" | |
773 | exit 0 ;; | |
10f2d63a VZ |
774 | |
775 | -with-* | --with-*) | |
698dcdb6 | 776 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
10f2d63a | 777 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
778 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
779 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
780 | fi | |
10f2d63a | 781 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
698dcdb6 VZ |
782 | case "$ac_option" in |
783 | *=*) ;; | |
10f2d63a VZ |
784 | *) ac_optarg=yes ;; |
785 | esac | |
698dcdb6 | 786 | eval "with_${ac_package}='$ac_optarg'" ;; |
10f2d63a VZ |
787 | |
788 | -without-* | --without-*) | |
698dcdb6 | 789 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
10f2d63a | 790 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
791 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
792 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
793 | fi | |
794 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
795 | eval "with_${ac_package}=no" ;; | |
10f2d63a VZ |
796 | |
797 | --x) | |
798 | # Obsolete; use --with-x. | |
799 | with_x=yes ;; | |
800 | ||
801 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
802 | | --x-incl | --x-inc | --x-in | --x-i) | |
803 | ac_prev=x_includes ;; | |
804 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
805 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
698dcdb6 | 806 | x_includes="$ac_optarg" ;; |
10f2d63a VZ |
807 | |
808 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
809 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
810 | ac_prev=x_libraries ;; | |
811 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
812 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
698dcdb6 | 813 | x_libraries="$ac_optarg" ;; |
10f2d63a | 814 | |
698dcdb6 | 815 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
10f2d63a VZ |
816 | ;; |
817 | ||
818 | *) | |
698dcdb6 VZ |
819 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
820 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
821 | fi | |
822 | if test "x$nonopt" != xNONE; then | |
823 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
824 | fi | |
825 | nonopt="$ac_option" | |
10f2d63a VZ |
826 | ;; |
827 | ||
828 | esac | |
829 | done | |
830 | ||
831 | if test -n "$ac_prev"; then | |
698dcdb6 VZ |
832 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
833 | fi | |
834 | ||
835 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
836 | ||
837 | # File descriptor usage: | |
838 | # 0 standard input | |
839 | # 1 file creation | |
840 | # 2 errors and warnings | |
841 | # 3 some systems may open it to /dev/tty | |
842 | # 4 used on the Kubota Titan | |
843 | # 6 checking for... messages and results | |
844 | # 5 compiler messages saved in config.log | |
845 | if test "$silent" = yes; then | |
846 | exec 6>/dev/null | |
847 | else | |
848 | exec 6>&1 | |
10f2d63a | 849 | fi |
698dcdb6 VZ |
850 | exec 5>./config.log |
851 | ||
852 | echo "\ | |
853 | This file contains any messages produced by compilers while | |
854 | running configure, to aid debugging if configure makes a mistake. | |
855 | " 1>&5 | |
10f2d63a | 856 | |
698dcdb6 VZ |
857 | # Strip out --no-create and --no-recursion so they do not pile up. |
858 | # Also quote any args containing shell metacharacters. | |
859 | ac_configure_args= | |
860 | for ac_arg | |
10f2d63a | 861 | do |
698dcdb6 VZ |
862 | case "$ac_arg" in |
863 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
864 | | --no-cr | --no-c) ;; | |
865 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
866 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
867 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
868 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
869 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
10f2d63a VZ |
870 | esac |
871 | done | |
872 | ||
698dcdb6 VZ |
873 | # NLS nuisances. |
874 | # Only set these to C if already set. These must not be set unconditionally | |
875 | # because not all systems understand e.g. LANG=C (notably SCO). | |
876 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
877 | # Non-C LC_CTYPE values break the ctype check. | |
878 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
879 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
880 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
881 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
10f2d63a | 882 | |
698dcdb6 VZ |
883 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
884 | rm -rf conftest* confdefs.h | |
885 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
886 | echo > confdefs.h | |
10f2d63a | 887 | |
698dcdb6 VZ |
888 | # A filename unique to this package, relative to the directory that |
889 | # configure is in, which we can look for to find out if srcdir is correct. | |
890 | ac_unique_file=wx-config.in | |
10f2d63a VZ |
891 | |
892 | # Find the source files, if location was not specified. | |
893 | if test -z "$srcdir"; then | |
894 | ac_srcdir_defaulted=yes | |
895 | # Try the directory containing this script, then its parent. | |
896 | ac_prog=$0 | |
698dcdb6 | 897 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
10f2d63a VZ |
898 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
899 | srcdir=$ac_confdir | |
900 | if test ! -r $srcdir/$ac_unique_file; then | |
901 | srcdir=.. | |
902 | fi | |
903 | else | |
904 | ac_srcdir_defaulted=no | |
905 | fi | |
906 | if test ! -r $srcdir/$ac_unique_file; then | |
907 | if test "$ac_srcdir_defaulted" = yes; then | |
698dcdb6 | 908 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
10f2d63a | 909 | else |
698dcdb6 | 910 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
10f2d63a VZ |
911 | fi |
912 | fi | |
698dcdb6 | 913 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
10f2d63a VZ |
914 | |
915 | # Prefer explicitly selected file to automatically selected ones. | |
916 | if test -z "$CONFIG_SITE"; then | |
917 | if test "x$prefix" != xNONE; then | |
918 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
919 | else | |
920 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
921 | fi | |
922 | fi | |
923 | for ac_site_file in $CONFIG_SITE; do | |
924 | if test -r "$ac_site_file"; then | |
698dcdb6 | 925 | echo "loading site script $ac_site_file" |
10f2d63a VZ |
926 | . "$ac_site_file" |
927 | fi | |
928 | done | |
929 | ||
930 | if test -r "$cache_file"; then | |
698dcdb6 VZ |
931 | echo "loading cache $cache_file" |
932 | . $cache_file | |
10f2d63a | 933 | else |
698dcdb6 VZ |
934 | echo "creating cache $cache_file" |
935 | > $cache_file | |
10f2d63a VZ |
936 | fi |
937 | ||
938 | ac_ext=c | |
698dcdb6 | 939 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 940 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
941 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
942 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
943 | cross_compiling=$ac_cv_prog_cc_cross | |
944 | ||
945 | ac_exeext= | |
946 | ac_objext=o | |
947 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
948 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
949 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
950 | ac_n= ac_c=' | |
951 | ' ac_t=' ' | |
952 | else | |
953 | ac_n=-n ac_c= ac_t= | |
954 | fi | |
10f2d63a | 955 | else |
698dcdb6 | 956 | ac_n= ac_c='\c' ac_t= |
10f2d63a | 957 | fi |
698dcdb6 VZ |
958 | |
959 | ||
10f2d63a | 960 | |
7c66a493 VZ |
961 | ac_aux_dir= |
962 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
963 | if test -f $ac_dir/install-sh; then | |
964 | ac_aux_dir=$ac_dir | |
965 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
966 | break | |
967 | elif test -f $ac_dir/install.sh; then | |
968 | ac_aux_dir=$ac_dir | |
969 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
970 | break | |
971 | fi | |
972 | done | |
973 | if test -z "$ac_aux_dir"; then | |
698dcdb6 | 974 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
7c66a493 | 975 | fi |
698dcdb6 VZ |
976 | ac_config_guess=$ac_aux_dir/config.guess |
977 | ac_config_sub=$ac_aux_dir/config.sub | |
978 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
703e0a69 | 979 | |
698dcdb6 VZ |
980 | |
981 | # Do some error checking and defaulting for the host and target type. | |
982 | # The inputs are: | |
983 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
984 | # | |
985 | # The rules are: | |
986 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
987 | # same time. | |
988 | # 2. Host defaults to nonopt. | |
989 | # 3. If nonopt is not specified, then host defaults to the current host, | |
990 | # as determined by config.guess. | |
991 | # 4. Target and build default to nonopt. | |
992 | # 5. If nonopt is not specified, then target and build default to host. | |
7c66a493 VZ |
993 | |
994 | # The aliases save the names the user supplied, while $host etc. | |
995 | # will get canonicalized. | |
698dcdb6 VZ |
996 | case $host---$target---$nonopt in |
997 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
998 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
999 | esac | |
1000 | ||
1001 | ||
1002 | # Make sure we can run config.sub. | |
1003 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
1004 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
1005 | fi | |
1006 | ||
1007 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
3bd8fb5f | 1008 | echo "configure:1009: checking host system type" >&5 |
698dcdb6 VZ |
1009 | |
1010 | host_alias=$host | |
1011 | case "$host_alias" in | |
1012 | NONE) | |
1013 | case $nonopt in | |
1014 | NONE) | |
1015 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
1016 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
1017 | fi ;; | |
1018 | *) host_alias=$nonopt ;; | |
1019 | esac ;; | |
1020 | esac | |
1021 | ||
1022 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
1023 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1024 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1025 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1026 | echo "$ac_t""$host" 1>&6 | |
1027 | ||
1028 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
3bd8fb5f | 1029 | echo "configure:1030: checking target system type" >&5 |
698dcdb6 VZ |
1030 | |
1031 | target_alias=$target | |
1032 | case "$target_alias" in | |
1033 | NONE) | |
1034 | case $nonopt in | |
1035 | NONE) target_alias=$host_alias ;; | |
1036 | *) target_alias=$nonopt ;; | |
1037 | esac ;; | |
1038 | esac | |
1039 | ||
1040 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
1041 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1042 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1043 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1044 | echo "$ac_t""$target" 1>&6 | |
1045 | ||
1046 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
3bd8fb5f | 1047 | echo "configure:1048: checking build system type" >&5 |
698dcdb6 VZ |
1048 | |
1049 | build_alias=$build | |
1050 | case "$build_alias" in | |
1051 | NONE) | |
1052 | case $nonopt in | |
1053 | NONE) build_alias=$host_alias ;; | |
1054 | *) build_alias=$nonopt ;; | |
1055 | esac ;; | |
1056 | esac | |
1057 | ||
1058 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
1059 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1060 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1061 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1062 | echo "$ac_t""$build" 1>&6 | |
1063 | ||
1064 | test "$host_alias" != "$target_alias" && | |
7c66a493 VZ |
1065 | test "$program_prefix$program_suffix$program_transform_name" = \ |
1066 | NONENONEs,x,x, && | |
1067 | program_prefix=${target_alias}- | |
1068 | ||
698dcdb6 VZ |
1069 | |
1070 | ||
10f2d63a | 1071 | WX_MAJOR_VERSION_NUMBER=2 |
37d403aa | 1072 | WX_MINOR_VERSION_NUMBER=3 |
a0d927d1 | 1073 | WX_RELEASE_NUMBER=3 |
10f2d63a | 1074 | |
10f2d63a | 1075 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER |
10f2d63a | 1076 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER |
6426998c | 1077 | |
978f1259 RL |
1078 | WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER |
1079 | ||
a0d927d1 | 1080 | WX_CURRENT=2 |
6426998c RL |
1081 | WX_REVISION=0 |
1082 | WX_AGE=0 | |
1083 | ||
698dcdb6 VZ |
1084 | |
1085 | ||
10f2d63a VZ |
1086 | USE_UNIX=1 |
1087 | USE_WIN32=0 | |
f9bc1684 | 1088 | USE_DOS=0 |
b12915c1 | 1089 | USE_BEOS=0 |
1216f52d | 1090 | USE_MAC=0 |
b12915c1 | 1091 | |
10f2d63a VZ |
1092 | USE_LINUX= |
1093 | USE_SGI= | |
1094 | USE_HPUX= | |
1095 | USE_SYSV= | |
1096 | USE_SVR4= | |
1097 | USE_AIX= | |
1098 | USE_SUN= | |
1099 | USE_SOLARIS= | |
1100 | USE_SUNOS= | |
1101 | USE_ALPHA= | |
1102 | USE_OSF= | |
1103 | USE_BSD= | |
f11bdd03 | 1104 | USE_DARWIN= |
10f2d63a | 1105 | USE_FREEBSD= |
95c8801c | 1106 | USE_OPENBSD= |
f6bcfd97 | 1107 | USE_NETBSD= |
10f2d63a VZ |
1108 | USE_VMS= |
1109 | USE_ULTRIX= | |
10f2d63a VZ |
1110 | USE_DATA_GENERAL= |
1111 | ||
ab9b9eab VZ |
1112 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
1113 | ||
f79bd02d | 1114 | ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE X11" |
10f2d63a VZ |
1115 | |
1116 | DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1117 | DEFAULT_wxUSE_MAC=0 |
1118 | DEFAULT_wxUSE_MGL=0 | |
1725144d | 1119 | DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1120 | DEFAULT_wxUSE_MOTIF=0 |
1121 | DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1122 | DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1123 | DEFAULT_wxUSE_WINE=0 |
f79bd02d | 1124 | DEFAULT_wxUSE_X11=0 |
10f2d63a VZ |
1125 | |
1126 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1127 | DEFAULT_DEFAULT_wxUSE_MAC=0 |
1128 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1725144d | 1129 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1130 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 |
1131 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1132 | DEFAULT_DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1133 | DEFAULT_DEFAULT_wxUSE_WINE=0 |
f79bd02d | 1134 | DEFAULT_DEFAULT_wxUSE_X11=0 |
10f2d63a | 1135 | |
d6a55c4b | 1136 | PROGRAM_EXT= |
3a922bb4 | 1137 | SO_SUFFIX=so |
d6a55c4b | 1138 | |
10f2d63a VZ |
1139 | case "${host}" in |
1140 | *-hp-hpux* ) | |
1141 | USE_HPUX=1 | |
1142 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1143 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
3a922bb4 | 1144 | SO_SUFFIX=sl |
698dcdb6 | 1145 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1146 | #define __HPUX__ 1 |
1147 | EOF | |
1148 | ||
1149 | ;; | |
1150 | *-*-linux* ) | |
1151 | USE_LINUX=1 | |
698dcdb6 | 1152 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1153 | #define __LINUX__ 1 |
1154 | EOF | |
1155 | ||
1156 | TMP=`uname -m` | |
1157 | if test "x$TMP" = "xalpha"; then | |
1158 | USE_ALPHA=1 | |
698dcdb6 | 1159 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1160 | #define __ALPHA__ 1 |
1161 | EOF | |
1162 | ||
1163 | fi | |
1164 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1165 | ;; | |
1166 | *-*-irix5* | *-*-irix6* ) | |
1167 | USE_SGI=1 | |
1168 | USE_SVR4=1 | |
698dcdb6 | 1169 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1170 | #define __SGI__ 1 |
1171 | EOF | |
1172 | ||
698dcdb6 | 1173 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1174 | #define __SVR4__ 1 |
1175 | EOF | |
1176 | ||
1177 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1178 | ;; | |
1179 | *-*-solaris2* ) | |
1180 | USE_SUN=1 | |
1181 | USE_SOLARIS=1 | |
1182 | USE_SVR4=1 | |
698dcdb6 | 1183 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1184 | #define __SUN__ 1 |
1185 | EOF | |
1186 | ||
698dcdb6 | 1187 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1188 | #define __SOLARIS__ 1 |
1189 | EOF | |
1190 | ||
698dcdb6 | 1191 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1192 | #define __SVR4__ 1 |
1193 | EOF | |
1194 | ||
1195 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1196 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1197 | ;; |
1198 | *-*-sunos4* ) | |
1199 | USE_SUN=1 | |
1200 | USE_SUNOS=1 | |
1201 | USE_BSD=1 | |
698dcdb6 | 1202 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1203 | #define __SUN__ 1 |
1204 | EOF | |
1205 | ||
698dcdb6 | 1206 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1207 | #define __SUNOS__ 1 |
1208 | EOF | |
1209 | ||
698dcdb6 | 1210 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1211 | #define __BSD__ 1 |
1212 | EOF | |
1213 | ||
1214 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1215 | ;; | |
f6bcfd97 | 1216 | *-*-freebsd*) |
10f2d63a VZ |
1217 | USE_BSD=1 |
1218 | USE_FREEBSD=1 | |
698dcdb6 | 1219 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1220 | #define __FREEBSD__ 1 |
1221 | EOF | |
1222 | ||
698dcdb6 | 1223 | cat >> confdefs.h <<\EOF |
10f2d63a | 1224 | #define __BSD__ 1 |
95c8801c VS |
1225 | EOF |
1226 | ||
1227 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1228 | ;; | |
1229 | *-*-openbsd*) | |
1230 | USE_BSD=1 | |
1231 | USE_OPENBSD=1 | |
698dcdb6 | 1232 | cat >> confdefs.h <<\EOF |
95c8801c VS |
1233 | #define __FREEBSD__ 1 |
1234 | EOF | |
1235 | ||
698dcdb6 | 1236 | cat >> confdefs.h <<\EOF |
95c8801c | 1237 | #define __OPENBSD__ 1 |
f6bcfd97 BP |
1238 | EOF |
1239 | ||
1240 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1241 | ;; | |
1242 | *-*-netbsd*) | |
1243 | USE_BSD=1 | |
1244 | USE_NETBSD=1 | |
698dcdb6 | 1245 | cat >> confdefs.h <<\EOF |
f6bcfd97 BP |
1246 | #define __FREEBSD__ 1 |
1247 | EOF | |
1248 | ||
698dcdb6 | 1249 | cat >> confdefs.h <<\EOF |
f6bcfd97 | 1250 | #define __NETBSD__ 1 |
10f2d63a VZ |
1251 | EOF |
1252 | ||
1253 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1254 | ;; | |
1255 | *-*-osf* ) | |
1256 | USE_ALPHA=1 | |
1257 | USE_OSF=1 | |
698dcdb6 | 1258 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1259 | #define __ALPHA__ 1 |
1260 | EOF | |
1261 | ||
698dcdb6 | 1262 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1263 | #define __OSF__ 1 |
1264 | EOF | |
1265 | ||
1266 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1267 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1268 | ;; |
1269 | *-*-dgux5* ) | |
1270 | USE_ALPHA=1 | |
1271 | USE_SVR4=1 | |
698dcdb6 | 1272 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1273 | #define __ALPHA__ 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 | *-*-sysv5* ) | |
1283 | USE_SYSV=1 | |
1284 | USE_SVR4=1 | |
698dcdb6 | 1285 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1286 | #define __SYSV__ 1 |
1287 | EOF | |
1288 | ||
698dcdb6 | 1289 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1290 | #define __SVR4__ 1 |
1291 | EOF | |
1292 | ||
1293 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1294 | ;; | |
1295 | *-*-aix* ) | |
1296 | USE_AIX=1 | |
1297 | USE_SYSV=1 | |
1298 | USE_SVR4=1 | |
321d2b14 | 1299 | SO_SUFFIX=a |
698dcdb6 | 1300 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1301 | #define __AIX__ 1 |
1302 | EOF | |
1303 | ||
698dcdb6 | 1304 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1305 | #define __SYSV__ 1 |
1306 | EOF | |
1307 | ||
698dcdb6 | 1308 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1309 | #define __SVR4__ 1 |
1310 | EOF | |
1311 | ||
1312 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1313 | ;; | |
1314 | ||
1c8183e2 | 1315 | *-*-cygwin* | *-*-mingw32* ) |
17234b26 | 1316 | SO_SUFFIX=dll |
cf27ef00 | 1317 | PROGRAM_EXT=".exe" |
7b7a7637 | 1318 | RESCOMP=windres |
10f2d63a VZ |
1319 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1320 | ;; | |
1321 | ||
f9bc1684 VS |
1322 | *-pc-msdosdjgpp ) |
1323 | USE_UNIX=0 | |
1324 | USE_DOS=1 | |
1325 | cat >> confdefs.h <<\EOF | |
1326 | #define __DOS__ 1 | |
1327 | EOF | |
1328 | ||
1329 | PROGRAM_EXT=".exe" | |
1330 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
24f5e003 | 1331 | LIBS="$LIBS -lstdc++" |
f9bc1684 VS |
1332 | ;; |
1333 | ||
6fa882bd | 1334 | *-pc-os2_emx | *-pc-os2-emx ) |
698dcdb6 | 1335 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1336 | #define __EMX__ 1 |
1337 | EOF | |
1338 | ||
cf27ef00 | 1339 | PROGRAM_EXT=".exe" |
e07802fc | 1340 | DEFAULT_DEFAULT_wxUSE_PM=1 |
d558c907 | 1341 | LIBS="$LIBS -lstdcpp" |
10f2d63a VZ |
1342 | ;; |
1343 | ||
d08b457b GD |
1344 | powerpc-*-darwin* ) |
1345 | USE_BSD=1 | |
f11bdd03 | 1346 | USE_DARWIN=1 |
3a922bb4 | 1347 | SO_SUFFIX=dylib |
698dcdb6 | 1348 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1349 | #define __BSD__ 1 |
b4085ce6 GD |
1350 | EOF |
1351 | ||
698dcdb6 | 1352 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1353 | #define __DARWIN__ 1 |
d08b457b GD |
1354 | EOF |
1355 | ||
1356 | cat >> confdefs.h <<\EOF | |
1357 | #define __POWERPC__ 1 | |
b4085ce6 GD |
1358 | EOF |
1359 | ||
1360 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1361 | ;; | |
1362 | ||
b12915c1 VZ |
1363 | *-*-beos* ) |
1364 | USE_BEOS=1 | |
698dcdb6 | 1365 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
1366 | #define __BEOS__ 1 |
1367 | EOF | |
1368 | ||
1369 | ;; | |
1370 | ||
10f2d63a | 1371 | *) |
698dcdb6 | 1372 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } |
10f2d63a VZ |
1373 | esac |
1374 | ||
1e487827 | 1375 | |
1e487827 | 1376 | |
6232543b | 1377 | |
10f2d63a VZ |
1378 | wx_arg_cache_file="configarg.cache" |
1379 | echo "loading argument cache $wx_arg_cache_file" | |
1380 | rm -f ${wx_arg_cache_file}.tmp | |
1381 | touch ${wx_arg_cache_file}.tmp | |
1382 | touch ${wx_arg_cache_file} | |
698dcdb6 | 1383 | |
10f2d63a VZ |
1384 | |
1385 | DEBUG_CONFIGURE=0 | |
1386 | if test $DEBUG_CONFIGURE = 1; then | |
1e6feb95 VZ |
1387 | DEFAULT_wxUSE_UNIVERSAL=no |
1388 | ||
d8356fa3 VZ |
1389 | DEFAULT_wxUSE_NANOX=no |
1390 | ||
10f2d63a VZ |
1391 | DEFAULT_wxUSE_THREADS=yes |
1392 | ||
1393 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1394 | DEFAULT_wxUSE_SONAME=no |
1e6feb95 | 1395 | DEFAULT_wxUSE_OPTIMISE=no |
10f2d63a VZ |
1396 | DEFAULT_wxUSE_PROFILE=no |
1397 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
1398 | DEFAULT_wxUSE_NO_RTTI=no |
1399 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
1400 | DEFAULT_wxUSE_PERMISSIVE=no |
1401 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1402 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1403 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1404 | DEFAULT_wxUSE_MEM_TRACING=no | |
1405 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1406 | DEFAULT_wxUSE_DMALLOC=no | |
a7ae7112 | 1407 | DEFAULT_wxUSE_PRECOMP=no |
10f2d63a VZ |
1408 | DEFAULT_wxUSE_APPLE_IEEE=no |
1409 | ||
1410 | DEFAULT_wxUSE_LOG=yes | |
1e6feb95 VZ |
1411 | DEFAULT_wxUSE_LOGWINDOW=no |
1412 | DEFAULT_wxUSE_LOGGUI=no | |
69d27ff7 | 1413 | DEFAULT_wxUSE_LOGDIALOG=no |
10f2d63a VZ |
1414 | |
1415 | DEFAULT_wxUSE_GUI=yes | |
1e6feb95 | 1416 | DEFAULT_wxUSE_CONTROLS=no |
10f2d63a | 1417 | |
3e44f09d | 1418 | DEFAULT_wxUSE_REGEX=no |
10f2d63a VZ |
1419 | DEFAULT_wxUSE_ZLIB=no |
1420 | DEFAULT_wxUSE_LIBPNG=no | |
1421 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 1422 | DEFAULT_wxUSE_LIBTIFF=no |
10f2d63a | 1423 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 1424 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1425 | |
eb4efbdc | 1426 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
4f3c5f06 | 1427 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
10f2d63a | 1428 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1429 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
1430 | DEFAULT_wxUSE_DATETIME=no | |
1431 | DEFAULT_wxUSE_TIMEDATE=no | |
1432 | DEFAULT_wxUSE_TIMER=no | |
1433 | DEFAULT_wxUSE_STOPWATCH=no | |
10f2d63a | 1434 | DEFAULT_wxUSE_FILE=no |
1e6feb95 | 1435 | DEFAULT_wxUSE_FFILE=no |
a3a584a7 | 1436 | DEFAULT_wxUSE_TEXTBUFFER=no |
10f2d63a | 1437 | DEFAULT_wxUSE_TEXTFILE=no |
10f2d63a VZ |
1438 | DEFAULT_wxUSE_WAVE=no |
1439 | DEFAULT_wxUSE_INTL=no | |
1440 | DEFAULT_wxUSE_CONFIG=no | |
1e6feb95 | 1441 | DEFAULT_wxUSE_FONTMAP=no |
10f2d63a VZ |
1442 | DEFAULT_wxUSE_STREAMS=no |
1443 | DEFAULT_wxUSE_SOCKETS=no | |
1444 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
10f2d63a | 1445 | DEFAULT_wxUSE_JOYSTICK=no |
6bff71f8 | 1446 | DEFAULT_wxUSE_DYNLIB_CLASS=no |
0b9ab0bd | 1447 | DEFAULT_wxUSE_DYNAMIC_LOADER=no |
10f2d63a | 1448 | DEFAULT_wxUSE_LONGLONG=no |
e8f65ba6 | 1449 | DEFAULT_wxUSE_GEOMETRY=no |
10f2d63a VZ |
1450 | |
1451 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1452 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1453 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1454 | ||
1455 | DEFAULT_wxUSE_X_RESOURCES=no | |
1456 | DEFAULT_wxUSE_CLIPBOARD=no | |
1457 | DEFAULT_wxUSE_TOOLTIPS=no | |
1458 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
24fd6d87 | 1459 | DEFAULT_wxUSE_DRAGIMAGE=no |
10f2d63a VZ |
1460 | DEFAULT_wxUSE_SPLINES=no |
1461 | ||
1462 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1463 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1464 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1465 | ||
1466 | DEFAULT_wxUSE_PROLOGIO=no | |
1467 | DEFAULT_wxUSE_RESOURCES=no | |
1468 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1469 | DEFAULT_wxUSE_IPC=no | |
1470 | DEFAULT_wxUSE_HELP=no | |
29fd3c0c | 1471 | DEFAULT_wxUSE_MS_HTML_HELP=no |
3379ed37 | 1472 | DEFAULT_wxUSE_WXHTML_HELP=no |
24176f2c | 1473 | DEFAULT_wxUSE_TREELAYOUT=no |
10f2d63a | 1474 | DEFAULT_wxUSE_METAFILE=no |
1e6feb95 | 1475 | DEFAULT_wxUSE_MIMETYPE=no |
4cdb0ab0 VS |
1476 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no |
1477 | DEFAULT_wxUSE_PROTOCOL=no | |
1478 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
1479 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
1480 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
1481 | DEFAULT_wxUSE_URL=no | |
3bd8fb5f | 1482 | |
10f2d63a | 1483 | DEFAULT_wxUSE_COMMONDLGS=no |
1e6feb95 VZ |
1484 | DEFAULT_wxUSE_CHOICEDLG=no |
1485 | DEFAULT_wxUSE_COLOURDLG=no | |
10f2d63a | 1486 | DEFAULT_wxUSE_DIRDLG=no |
1e6feb95 | 1487 | DEFAULT_wxUSE_FILEDLG=no |
8db37e06 | 1488 | DEFAULT_wxUSE_FINDREPLDLG=no |
1e6feb95 VZ |
1489 | DEFAULT_wxUSE_FONTDLG=no |
1490 | DEFAULT_wxUSE_MSGDLG=no | |
1491 | DEFAULT_wxUSE_NUMBERDLG=no | |
10f2d63a | 1492 | DEFAULT_wxUSE_TEXTDLG=no |
cbca9943 | 1493 | DEFAULT_wxUSE_SPLASH=no |
10f2d63a VZ |
1494 | DEFAULT_wxUSE_STARTUP_TIPS=no |
1495 | DEFAULT_wxUSE_PROGRESSDLG=no | |
b1f5d087 VZ |
1496 | DEFAULT_wxUSE_WIZARDDLG=no |
1497 | ||
1e6feb95 | 1498 | DEFAULT_wxUSE_MENUS=no |
10f2d63a VZ |
1499 | DEFAULT_wxUSE_MINIFRAME=no |
1500 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 1501 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
1502 | DEFAULT_wxUSE_FS_INET=no |
1503 | DEFAULT_wxUSE_FS_ZIP=no | |
1504 | DEFAULT_wxUSE_BUSYINFO=no | |
1505 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1e6feb95 | 1506 | DEFAULT_wxUSE_VALIDATORS=no |
10f2d63a VZ |
1507 | |
1508 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 | 1509 | DEFAULT_wxUSE_BUTTON=no |
10f2d63a | 1510 | DEFAULT_wxUSE_BMPBUTTON=no |
1e6feb95 VZ |
1511 | DEFAULT_wxUSE_CALCTRL=no |
1512 | DEFAULT_wxUSE_CARET=no | |
10f2d63a VZ |
1513 | DEFAULT_wxUSE_CHECKBOX=no |
1514 | DEFAULT_wxUSE_CHECKLST=no | |
1e6feb95 | 1515 | DEFAULT_wxUSE_CHOICE=no |
10f2d63a VZ |
1516 | DEFAULT_wxUSE_COMBOBOX=no |
1517 | DEFAULT_wxUSE_GAUGE=no | |
1518 | DEFAULT_wxUSE_GRID=no | |
1519 | DEFAULT_wxUSE_NEW_GRID=no | |
1520 | DEFAULT_wxUSE_IMAGLIST=no | |
1521 | DEFAULT_wxUSE_LISTBOX=no | |
1522 | DEFAULT_wxUSE_LISTCTRL=no | |
1523 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 1524 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
1525 | DEFAULT_wxUSE_RADIOBOX=no |
1526 | DEFAULT_wxUSE_RADIOBTN=no | |
1527 | DEFAULT_wxUSE_SASH=no | |
1528 | DEFAULT_wxUSE_SCROLLBAR=no | |
1529 | DEFAULT_wxUSE_SLIDER=no | |
1530 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 1531 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
1532 | DEFAULT_wxUSE_SPLITTER=no |
1533 | DEFAULT_wxUSE_STATBMP=no | |
1534 | DEFAULT_wxUSE_STATBOX=no | |
1535 | DEFAULT_wxUSE_STATLINE=no | |
1e6feb95 | 1536 | DEFAULT_wxUSE_STATTEXT=no |
10f2d63a VZ |
1537 | DEFAULT_wxUSE_STATUSBAR=yes |
1538 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1539 | DEFAULT_wxUSE_TEXTCTRL=no |
1db8dc4a | 1540 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 1541 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
1542 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
1543 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a | 1544 | DEFAULT_wxUSE_TREECTRL=no |
9f41d601 | 1545 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 1546 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
1547 | |
1548 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 1549 | DEFAULT_wxUSE_UNICODE_MSLU=no |
10f2d63a VZ |
1550 | DEFAULT_wxUSE_WCSRTOMBS=no |
1551 | ||
edae8572 | 1552 | DEFAULT_wxUSE_PALETTE=no |
0046ff7c | 1553 | DEFAULT_wxUSE_IMAGE=no |
10f2d63a VZ |
1554 | DEFAULT_wxUSE_GIF=no |
1555 | DEFAULT_wxUSE_PCX=no | |
1556 | DEFAULT_wxUSE_PNM=no | |
4b6b4dfc | 1557 | DEFAULT_wxUSE_IFF=no |
0046ff7c | 1558 | DEFAULT_wxUSE_XPM=no |
658974ae | 1559 | DEFAULT_wxUSE_ICO_CUR=no |
10f2d63a | 1560 | else |
1e6feb95 VZ |
1561 | DEFAULT_wxUSE_UNIVERSAL=no |
1562 | ||
d8356fa3 VZ |
1563 | DEFAULT_wxUSE_NANOX=no |
1564 | ||
10f2d63a VZ |
1565 | DEFAULT_wxUSE_THREADS=yes |
1566 | ||
1567 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1568 | DEFAULT_wxUSE_SONAME=no |
10f2d63a VZ |
1569 | DEFAULT_wxUSE_OPTIMISE=yes |
1570 | DEFAULT_wxUSE_PROFILE=no | |
1571 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
1572 | DEFAULT_wxUSE_NO_RTTI=no |
1573 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
1574 | DEFAULT_wxUSE_PERMISSIVE=no |
1575 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1576 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1577 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1578 | DEFAULT_wxUSE_MEM_TRACING=no | |
1579 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1580 | DEFAULT_wxUSE_DMALLOC=no | |
a7ae7112 | 1581 | DEFAULT_wxUSE_PRECOMP=no |
10f2d63a VZ |
1582 | DEFAULT_wxUSE_APPLE_IEEE=yes |
1583 | ||
1584 | DEFAULT_wxUSE_LOG=yes | |
d73be714 VZ |
1585 | DEFAULT_wxUSE_LOGWINDOW=yes |
1586 | DEFAULT_wxUSE_LOGGUI=yes | |
69d27ff7 | 1587 | DEFAULT_wxUSE_LOGDIALOG=yes |
10f2d63a VZ |
1588 | |
1589 | DEFAULT_wxUSE_GUI=yes | |
1590 | ||
831b3152 | 1591 | DEFAULT_wxUSE_REGEX=yes |
10f2d63a VZ |
1592 | DEFAULT_wxUSE_ZLIB=yes |
1593 | DEFAULT_wxUSE_LIBPNG=yes | |
1594 | DEFAULT_wxUSE_LIBJPEG=yes | |
b47c832e | 1595 | DEFAULT_wxUSE_LIBTIFF=yes |
16b52fa1 | 1596 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 1597 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1598 | |
eb4efbdc | 1599 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
4f3c5f06 | 1600 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
10f2d63a | 1601 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1602 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
1603 | DEFAULT_wxUSE_DATETIME=yes | |
1604 | DEFAULT_wxUSE_TIMEDATE=no | |
1605 | DEFAULT_wxUSE_TIMER=yes | |
1606 | DEFAULT_wxUSE_STOPWATCH=yes | |
10f2d63a | 1607 | DEFAULT_wxUSE_FILE=yes |
1e6feb95 | 1608 | DEFAULT_wxUSE_FFILE=yes |
a3a584a7 | 1609 | DEFAULT_wxUSE_TEXTBUFFER=yes |
10f2d63a | 1610 | DEFAULT_wxUSE_TEXTFILE=yes |
10f2d63a VZ |
1611 | DEFAULT_wxUSE_WAVE=no |
1612 | DEFAULT_wxUSE_INTL=yes | |
1613 | DEFAULT_wxUSE_CONFIG=yes | |
1e6feb95 | 1614 | DEFAULT_wxUSE_FONTMAP=yes |
10f2d63a VZ |
1615 | DEFAULT_wxUSE_STREAMS=yes |
1616 | DEFAULT_wxUSE_SOCKETS=yes | |
1617 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
10f2d63a | 1618 | DEFAULT_wxUSE_JOYSTICK=yes |
6bff71f8 | 1619 | DEFAULT_wxUSE_DYNLIB_CLASS=yes |
9337b578 | 1620 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes |
b685cd9b | 1621 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 1622 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
1623 | |
1624 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1625 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1626 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1627 | ||
1628 | DEFAULT_wxUSE_X_RESOURCES=no | |
1629 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1630 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1631 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
24fd6d87 | 1632 | DEFAULT_wxUSE_DRAGIMAGE=yes |
10f2d63a VZ |
1633 | DEFAULT_wxUSE_SPLINES=yes |
1634 | ||
1635 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1636 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1637 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1638 | ||
1639 | DEFAULT_wxUSE_PROLOGIO=yes | |
1640 | DEFAULT_wxUSE_RESOURCES=yes | |
1641 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
1642 | DEFAULT_wxUSE_IPC=yes | |
1643 | DEFAULT_wxUSE_HELP=yes | |
29fd3c0c | 1644 | DEFAULT_wxUSE_MS_HTML_HELP=yes |
3379ed37 | 1645 | DEFAULT_wxUSE_WXHTML_HELP=yes |
24176f2c | 1646 | DEFAULT_wxUSE_TREELAYOUT=yes |
10f2d63a | 1647 | DEFAULT_wxUSE_METAFILE=yes |
1e6feb95 | 1648 | DEFAULT_wxUSE_MIMETYPE=yes |
3e44f09d | 1649 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
4cdb0ab0 VS |
1650 | DEFAULT_wxUSE_PROTOCOL=yes |
1651 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
1652 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
1653 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
1654 | DEFAULT_wxUSE_URL=yes | |
10f2d63a VZ |
1655 | |
1656 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1e6feb95 VZ |
1657 | DEFAULT_wxUSE_CHOICEDLG=yes |
1658 | DEFAULT_wxUSE_COLOURDLG=yes | |
10f2d63a | 1659 | DEFAULT_wxUSE_DIRDLG=yes |
1e6feb95 | 1660 | DEFAULT_wxUSE_FILEDLG=yes |
8db37e06 | 1661 | DEFAULT_wxUSE_FINDREPLDLG=yes |
1e6feb95 VZ |
1662 | DEFAULT_wxUSE_FONTDLG=yes |
1663 | DEFAULT_wxUSE_MSGDLG=yes | |
1664 | DEFAULT_wxUSE_NUMBERDLG=yes | |
10f2d63a | 1665 | DEFAULT_wxUSE_TEXTDLG=yes |
cbca9943 | 1666 | DEFAULT_wxUSE_SPLASH=yes |
10f2d63a VZ |
1667 | DEFAULT_wxUSE_STARTUP_TIPS=yes |
1668 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
f33f19dd VZ |
1669 | DEFAULT_wxUSE_WIZARDDLG=yes |
1670 | ||
1e6feb95 | 1671 | DEFAULT_wxUSE_MENUS=yes |
10f2d63a VZ |
1672 | DEFAULT_wxUSE_MINIFRAME=yes |
1673 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 1674 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
1675 | DEFAULT_wxUSE_FS_INET=yes |
1676 | DEFAULT_wxUSE_FS_ZIP=yes | |
1677 | DEFAULT_wxUSE_BUSYINFO=yes | |
1678 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1679 | DEFAULT_wxUSE_VALIDATORS=yes | |
1680 | ||
1681 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 | 1682 | DEFAULT_wxUSE_BUTTON=yes |
10f2d63a | 1683 | DEFAULT_wxUSE_BMPBUTTON=yes |
1e6feb95 VZ |
1684 | DEFAULT_wxUSE_CALCTRL=yes |
1685 | DEFAULT_wxUSE_CARET=yes | |
10f2d63a VZ |
1686 | DEFAULT_wxUSE_CHECKBOX=yes |
1687 | DEFAULT_wxUSE_CHECKLST=yes | |
1688 | DEFAULT_wxUSE_CHOICE=yes | |
1689 | DEFAULT_wxUSE_COMBOBOX=yes | |
1690 | DEFAULT_wxUSE_GAUGE=yes | |
1691 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 1692 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
1693 | DEFAULT_wxUSE_IMAGLIST=yes |
1694 | DEFAULT_wxUSE_LISTBOX=yes | |
1695 | DEFAULT_wxUSE_LISTCTRL=yes | |
1696 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 1697 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
1698 | DEFAULT_wxUSE_RADIOBOX=yes |
1699 | DEFAULT_wxUSE_RADIOBTN=yes | |
1700 | DEFAULT_wxUSE_SASH=yes | |
1701 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1702 | DEFAULT_wxUSE_SLIDER=yes | |
1703 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 1704 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
1705 | DEFAULT_wxUSE_SPLITTER=yes |
1706 | DEFAULT_wxUSE_STATBMP=yes | |
1707 | DEFAULT_wxUSE_STATBOX=yes | |
1708 | DEFAULT_wxUSE_STATLINE=yes | |
1e6feb95 | 1709 | DEFAULT_wxUSE_STATTEXT=yes |
10f2d63a VZ |
1710 | DEFAULT_wxUSE_STATUSBAR=yes |
1711 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1712 | DEFAULT_wxUSE_TEXTCTRL=yes |
1db8dc4a | 1713 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 1714 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
1715 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
1716 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a | 1717 | DEFAULT_wxUSE_TREECTRL=yes |
9f41d601 | 1718 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 1719 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
1720 | |
1721 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 1722 | DEFAULT_wxUSE_UNICODE_MSLU=yes |
10f2d63a VZ |
1723 | DEFAULT_wxUSE_WCSRTOMBS=no |
1724 | ||
edae8572 | 1725 | DEFAULT_wxUSE_PALETTE=yes |
0046ff7c | 1726 | DEFAULT_wxUSE_IMAGE=yes |
10f2d63a VZ |
1727 | DEFAULT_wxUSE_GIF=yes |
1728 | DEFAULT_wxUSE_PCX=yes | |
cc0e8480 | 1729 | DEFAULT_wxUSE_IFF=no |
10f2d63a | 1730 | DEFAULT_wxUSE_PNM=yes |
0046ff7c | 1731 | DEFAULT_wxUSE_XPM=yes |
658974ae | 1732 | DEFAULT_wxUSE_ICO_CUR=yes |
10f2d63a VZ |
1733 | fi |
1734 | ||
698dcdb6 VZ |
1735 | |
1736 | ||
10f2d63a VZ |
1737 | for toolkit in `echo $ALL_TOOLKITS`; do |
1738 | LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}` | |
1739 | if test "x$LINE" != x ; then | |
1740 | has_toolkit_in_cache=1 | |
1741 | eval "DEFAULT_$LINE" | |
1742 | eval "CACHE_$toolkit=1" | |
1743 | fi | |
1744 | done | |
1745 | ||
698dcdb6 VZ |
1746 | |
1747 | ||
1748 | echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6 | |
3bd8fb5f | 1749 | echo "configure:1750: checking for --enable-gui" >&5 |
10f2d63a VZ |
1750 | no_cache=0 |
1751 | # Check whether --enable-gui or --disable-gui was given. | |
1752 | if test "${enable_gui+set}" = set; then | |
1753 | enableval="$enable_gui" | |
698dcdb6 | 1754 | |
10f2d63a VZ |
1755 | if test "$enableval" = yes; then |
1756 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1757 | else | |
1758 | ac_cv_use_gui='wxUSE_GUI=no' | |
1759 | fi | |
698dcdb6 | 1760 | |
10f2d63a | 1761 | else |
698dcdb6 | 1762 | |
10f2d63a VZ |
1763 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` |
1764 | if test "x$LINE" != x ; then | |
1765 | eval "DEFAULT_$LINE" | |
1766 | else | |
1767 | no_cache=1 | |
1768 | fi | |
1769 | ||
1770 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
698dcdb6 VZ |
1771 | |
1772 | fi | |
10f2d63a VZ |
1773 | |
1774 | ||
1775 | eval "$ac_cv_use_gui" | |
1776 | if test "$no_cache" != 1; then | |
1777 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1778 | fi | |
1779 | ||
1780 | if test "$wxUSE_GUI" = yes; then | |
698dcdb6 | 1781 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 1782 | else |
698dcdb6 | 1783 | echo "$ac_t""no" 1>&6 |
10f2d63a | 1784 | fi |
698dcdb6 | 1785 | |
10f2d63a | 1786 | |
b12915c1 | 1787 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a | 1788 | |
1e6feb95 VZ |
1789 | |
1790 | echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6 | |
3bd8fb5f | 1791 | echo "configure:1792: checking for --enable-universal" >&5 |
1e6feb95 VZ |
1792 | no_cache=0 |
1793 | # Check whether --enable-universal or --disable-universal was given. | |
1794 | if test "${enable_universal+set}" = set; then | |
1795 | enableval="$enable_universal" | |
1796 | ||
1797 | if test "$enableval" = yes; then | |
1798 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
1799 | else | |
1800 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
1801 | fi | |
1802 | ||
1803 | else | |
1804 | ||
1805 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
1806 | if test "x$LINE" != x ; then | |
1807 | eval "DEFAULT_$LINE" | |
1808 | else | |
1809 | no_cache=1 | |
1810 | fi | |
1811 | ||
1812 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
1813 | ||
1814 | fi | |
1815 | ||
1816 | ||
1817 | eval "$ac_cv_use_universal" | |
1818 | if test "$no_cache" != 1; then | |
1819 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
1820 | fi | |
1821 | ||
1822 | if test "$wxUSE_UNIVERSAL" = yes; then | |
1823 | echo "$ac_t""yes" 1>&6 | |
1824 | else | |
1825 | echo "$ac_t""no" 1>&6 | |
1826 | fi | |
1827 | ||
10f2d63a VZ |
1828 | # Check whether --with-gtk or --without-gtk was given. |
1829 | if test "${with_gtk+set}" = set; then | |
1830 | withval="$with_gtk" | |
1831 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1832 | fi |
10f2d63a VZ |
1833 | |
1834 | # Check whether --with-motif or --without-motif was given. | |
1835 | if test "${with_motif+set}" = set; then | |
1836 | withval="$with_motif" | |
1837 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1838 | fi |
10f2d63a | 1839 | |
b4085ce6 GD |
1840 | # Check whether --with-mac or --without-mac was given. |
1841 | if test "${with_mac+set}" = set; then | |
1842 | withval="$with_mac" | |
1843 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
698dcdb6 | 1844 | fi |
b4085ce6 | 1845 | |
10f2d63a VZ |
1846 | # Check whether --with-wine or --without-wine was given. |
1847 | if test "${with_wine+set}" = set; then | |
1848 | withval="$with_wine" | |
1849 | wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1850 | fi |
10f2d63a | 1851 | |
77e13408 RL |
1852 | # Check whether --with-msw or --without-msw was given. |
1853 | if test "${with_msw+set}" = set; then | |
1854 | withval="$with_msw" | |
b4efce5e | 1855 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 |
698dcdb6 | 1856 | fi |
10f2d63a | 1857 | |
e07802fc VZ |
1858 | # Check whether --with-pm or --without-pm was given. |
1859 | if test "${with_pm+set}" = set; then | |
1860 | withval="$with_pm" | |
1861 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
698dcdb6 VZ |
1862 | fi |
1863 | ||
1e6feb95 VZ |
1864 | # Check whether --with-mgl or --without-mgl was given. |
1865 | if test "${with_mgl+set}" = set; then | |
1866 | withval="$with_mgl" | |
6c657b52 | 1867 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 |
1e6feb95 VZ |
1868 | fi |
1869 | ||
1725144d RR |
1870 | # Check whether --with-microwin or --without-microwin was given. |
1871 | if test "${with_microwin+set}" = set; then | |
1872 | withval="$with_microwin" | |
1873 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
1874 | fi | |
1875 | ||
f79bd02d JS |
1876 | # Check whether --with-x11 or --without-x11 was given. |
1877 | if test "${with_x11+set}" = set; then | |
1878 | withval="$with_x11" | |
3c011993 | 1879 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 |
f79bd02d JS |
1880 | fi |
1881 | ||
10f2d63a | 1882 | |
ba875e66 | 1883 | echo $ac_n "checking for --enable-nanox""... $ac_c" 1>&6 |
3bd8fb5f | 1884 | echo "configure:1885: checking for --enable-nanox" >&5 |
d8356fa3 | 1885 | no_cache=0 |
ba875e66 VZ |
1886 | # Check whether --enable-nanox or --disable-nanox was given. |
1887 | if test "${enable_nanox+set}" = set; then | |
1888 | enableval="$enable_nanox" | |
d8356fa3 VZ |
1889 | |
1890 | if test "$enableval" = yes; then | |
ba875e66 | 1891 | ac_cv_use_nanox='wxUSE_NANOX=yes' |
d8356fa3 | 1892 | else |
ba875e66 | 1893 | ac_cv_use_nanox='wxUSE_NANOX=no' |
d8356fa3 VZ |
1894 | fi |
1895 | ||
1896 | else | |
1897 | ||
1898 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` | |
1899 | if test "x$LINE" != x ; then | |
1900 | eval "DEFAULT_$LINE" | |
1901 | else | |
1902 | no_cache=1 | |
1903 | fi | |
1904 | ||
ba875e66 | 1905 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX |
d8356fa3 VZ |
1906 | |
1907 | fi | |
1908 | ||
1909 | ||
ba875e66 | 1910 | eval "$ac_cv_use_nanox" |
d8356fa3 | 1911 | if test "$no_cache" != 1; then |
ba875e66 | 1912 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp |
d8356fa3 VZ |
1913 | fi |
1914 | ||
1915 | if test "$wxUSE_NANOX" = yes; then | |
1916 | echo "$ac_t""yes" 1>&6 | |
1917 | else | |
1918 | echo "$ac_t""no" 1>&6 | |
1919 | fi | |
1920 | ||
1921 | ||
8168de4c VZ |
1922 | # Check whether --enable-gtk2 or --disable-gtk2 was given. |
1923 | if test "${enable_gtk2+set}" = set; then | |
1924 | enableval="$enable_gtk2" | |
9e691f46 | 1925 | wxUSE_GTK2="yes" |
10f2d63a | 1926 | else |
9e691f46 | 1927 | wxUSE_GTK2="no" |
698dcdb6 VZ |
1928 | fi |
1929 | ||
703e0a69 | 1930 | |
1e487827 | 1931 | |
698dcdb6 | 1932 | echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6 |
3bd8fb5f | 1933 | echo "configure:1934: checking for --with-libpng" >&5 |
698dcdb6 VZ |
1934 | no_cache=0 |
1935 | # Check whether --with-libpng or --without-libpng was given. | |
b12915c1 VZ |
1936 | if test "${with_libpng+set}" = set; then |
1937 | withval="$with_libpng" | |
698dcdb6 | 1938 | |
10f2d63a | 1939 | if test "$withval" = yes; then |
b12915c1 | 1940 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 1941 | elif test "$withval" = no; then |
b12915c1 | 1942 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
1943 | elif test "$withval" = sys; then |
1944 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
4f14bcd8 GD |
1945 | elif test "$withval" = builtin; then |
1946 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
422107f9 | 1947 | else |
4f14bcd8 | 1948 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 1949 | fi |
698dcdb6 | 1950 | |
10f2d63a | 1951 | else |
698dcdb6 | 1952 | |
b12915c1 | 1953 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1954 | if test "x$LINE" != x ; then |
1955 | eval "DEFAULT_$LINE" | |
1956 | else | |
1957 | no_cache=1 | |
1958 | fi | |
1959 | ||
b12915c1 | 1960 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
698dcdb6 VZ |
1961 | |
1962 | fi | |
10f2d63a VZ |
1963 | |
1964 | ||
b12915c1 | 1965 | eval "$ac_cv_use_libpng" |
10f2d63a | 1966 | if test "$no_cache" != 1; then |
b12915c1 | 1967 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1968 | fi |
1969 | ||
b12915c1 | 1970 | if test "$wxUSE_LIBPNG" = yes; then |
698dcdb6 | 1971 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1972 | elif test "$wxUSE_LIBPNG" = no; then |
698dcdb6 | 1973 | echo "$ac_t""no" 1>&6 |
422107f9 | 1974 | elif test "$wxUSE_LIBPNG" = sys; then |
698dcdb6 | 1975 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
1976 | elif test "$wxUSE_LIBPNG" = builtin; then |
1977 | echo "$ac_t""builtin version" 1>&6 | |
422107f9 | 1978 | else |
4f14bcd8 | 1979 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 1980 | fi |
698dcdb6 | 1981 | |
10f2d63a | 1982 | |
698dcdb6 | 1983 | echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6 |
3bd8fb5f | 1984 | echo "configure:1985: checking for --with-libjpeg" >&5 |
10f2d63a | 1985 | no_cache=0 |
698dcdb6 | 1986 | # Check whether --with-libjpeg or --without-libjpeg was given. |
b12915c1 VZ |
1987 | if test "${with_libjpeg+set}" = set; then |
1988 | withval="$with_libjpeg" | |
698dcdb6 | 1989 | |
10f2d63a | 1990 | if test "$withval" = yes; then |
b12915c1 | 1991 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 1992 | elif test "$withval" = no; then |
b12915c1 | 1993 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
1994 | elif test "$withval" = sys; then |
1995 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
4f14bcd8 GD |
1996 | elif test "$withval" = builtin; then |
1997 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
422107f9 | 1998 | else |
4f14bcd8 | 1999 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2000 | fi |
698dcdb6 | 2001 | |
10f2d63a | 2002 | else |
698dcdb6 | 2003 | |
b12915c1 | 2004 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2005 | if test "x$LINE" != x ; then |
2006 | eval "DEFAULT_$LINE" | |
2007 | else | |
2008 | no_cache=1 | |
2009 | fi | |
2010 | ||
b12915c1 | 2011 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
698dcdb6 VZ |
2012 | |
2013 | fi | |
10f2d63a VZ |
2014 | |
2015 | ||
b12915c1 | 2016 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 2017 | if test "$no_cache" != 1; then |
b12915c1 | 2018 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2019 | fi |
2020 | ||
b12915c1 | 2021 | if test "$wxUSE_LIBJPEG" = yes; then |
698dcdb6 | 2022 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2023 | elif test "$wxUSE_LIBJPEG" = no; then |
698dcdb6 | 2024 | echo "$ac_t""no" 1>&6 |
422107f9 | 2025 | elif test "$wxUSE_LIBJPEG" = sys; then |
698dcdb6 | 2026 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2027 | elif test "$wxUSE_LIBJPEG" = builtin; then |
2028 | echo "$ac_t""builtin version" 1>&6 | |
422107f9 | 2029 | else |
4f14bcd8 | 2030 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2031 | fi |
698dcdb6 | 2032 | |
10f2d63a | 2033 | |
698dcdb6 | 2034 | echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6 |
3bd8fb5f | 2035 | echo "configure:2036: checking for --with-libtiff" >&5 |
10f2d63a | 2036 | no_cache=0 |
698dcdb6 | 2037 | # Check whether --with-libtiff or --without-libtiff was given. |
b12915c1 VZ |
2038 | if test "${with_libtiff+set}" = set; then |
2039 | withval="$with_libtiff" | |
698dcdb6 | 2040 | |
10f2d63a | 2041 | if test "$withval" = yes; then |
b12915c1 | 2042 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 2043 | elif test "$withval" = no; then |
b12915c1 | 2044 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
2045 | elif test "$withval" = sys; then |
2046 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
4f14bcd8 GD |
2047 | elif test "$withval" = builtin; then |
2048 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
0dcf9893 | 2049 | else |
4f14bcd8 | 2050 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2051 | fi |
698dcdb6 | 2052 | |
10f2d63a | 2053 | else |
698dcdb6 | 2054 | |
b12915c1 | 2055 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
2056 | if test "x$LINE" != x ; then |
2057 | eval "DEFAULT_$LINE" | |
2058 | else | |
2059 | no_cache=1 | |
2060 | fi | |
2061 | ||
b12915c1 | 2062 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
698dcdb6 VZ |
2063 | |
2064 | fi | |
10f2d63a VZ |
2065 | |
2066 | ||
b12915c1 | 2067 | eval "$ac_cv_use_libtiff" |
10f2d63a | 2068 | if test "$no_cache" != 1; then |
b12915c1 | 2069 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2070 | fi |
2071 | ||
b12915c1 | 2072 | if test "$wxUSE_LIBTIFF" = yes; then |
698dcdb6 | 2073 | echo "$ac_t""yes" 1>&6 |
0dcf9893 | 2074 | elif test "$wxUSE_LIBTIFF" = no; then |
698dcdb6 | 2075 | echo "$ac_t""no" 1>&6 |
0dcf9893 | 2076 | elif test "$wxUSE_LIBTIFF" = sys; then |
698dcdb6 | 2077 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2078 | elif test "$wxUSE_LIBTIFF" = builtin; then |
2079 | echo "$ac_t""builtin version" 1>&6 | |
0dcf9893 | 2080 | else |
4f14bcd8 | 2081 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2082 | fi |
698dcdb6 | 2083 | |
10f2d63a | 2084 | |
698dcdb6 | 2085 | echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6 |
3bd8fb5f | 2086 | echo "configure:2087: checking for --with-opengl" >&5 |
10f2d63a | 2087 | no_cache=0 |
698dcdb6 | 2088 | # Check whether --with-opengl or --without-opengl was given. |
b12915c1 VZ |
2089 | if test "${with_opengl+set}" = set; then |
2090 | withval="$with_opengl" | |
698dcdb6 | 2091 | |
10f2d63a | 2092 | if test "$withval" = yes; then |
b12915c1 | 2093 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 2094 | else |
b12915c1 | 2095 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a | 2096 | fi |
698dcdb6 | 2097 | |
10f2d63a | 2098 | else |
698dcdb6 | 2099 | |
b12915c1 | 2100 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
2101 | if test "x$LINE" != x ; then |
2102 | eval "DEFAULT_$LINE" | |
2103 | else | |
2104 | no_cache=1 | |
2105 | fi | |
2106 | ||
b12915c1 | 2107 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
698dcdb6 VZ |
2108 | |
2109 | fi | |
10f2d63a VZ |
2110 | |
2111 | ||
b12915c1 | 2112 | eval "$ac_cv_use_opengl" |
10f2d63a | 2113 | if test "$no_cache" != 1; then |
b12915c1 | 2114 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2115 | fi |
2116 | ||
b12915c1 | 2117 | if test "$wxUSE_OPENGL" = yes; then |
698dcdb6 | 2118 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2119 | else |
698dcdb6 | 2120 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2121 | fi |
698dcdb6 | 2122 | |
10f2d63a | 2123 | |
b12915c1 VZ |
2124 | fi |
2125 | ||
1e487827 | 2126 | |
698dcdb6 | 2127 | echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6 |
3bd8fb5f | 2128 | echo "configure:2129: checking for --with-dmalloc" >&5 |
698dcdb6 VZ |
2129 | no_cache=0 |
2130 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
b12915c1 VZ |
2131 | if test "${with_dmalloc+set}" = set; then |
2132 | withval="$with_dmalloc" | |
698dcdb6 | 2133 | |
c7a2bf27 | 2134 | if test "$withval" = yes; then |
b12915c1 | 2135 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 2136 | else |
b12915c1 | 2137 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 | 2138 | fi |
698dcdb6 | 2139 | |
c7a2bf27 | 2140 | else |
698dcdb6 | 2141 | |
b12915c1 | 2142 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
2143 | if test "x$LINE" != x ; then |
2144 | eval "DEFAULT_$LINE" | |
2145 | else | |
2146 | no_cache=1 | |
2147 | fi | |
2148 | ||
b12915c1 | 2149 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
698dcdb6 VZ |
2150 | |
2151 | fi | |
c7a2bf27 RR |
2152 | |
2153 | ||
b12915c1 | 2154 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 2155 | if test "$no_cache" != 1; then |
b12915c1 | 2156 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
2157 | fi |
2158 | ||
b12915c1 | 2159 | if test "$wxUSE_DMALLOC" = yes; then |
698dcdb6 | 2160 | echo "$ac_t""yes" 1>&6 |
c7a2bf27 | 2161 | else |
698dcdb6 | 2162 | echo "$ac_t""no" 1>&6 |
c7a2bf27 | 2163 | fi |
698dcdb6 | 2164 | |
c7a2bf27 | 2165 | |
3e44f09d | 2166 | echo $ac_n "checking for --with-regex""... $ac_c" 1>&6 |
3bd8fb5f | 2167 | echo "configure:2168: checking for --with-regex" >&5 |
3e44f09d VZ |
2168 | no_cache=0 |
2169 | # Check whether --with-regex or --without-regex was given. | |
2170 | if test "${with_regex+set}" = set; then | |
2171 | withval="$with_regex" | |
2172 | ||
2173 | if test "$withval" = yes; then | |
2174 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
2175 | elif test "$withval" = no; then | |
2176 | ac_cv_use_regex='wxUSE_REGEX=no' | |
2177 | elif test "$withval" = sys; then | |
2178 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
4f14bcd8 GD |
2179 | elif test "$withval" = builtin; then |
2180 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3e44f09d | 2181 | else |
4f14bcd8 | 2182 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d VZ |
2183 | fi |
2184 | ||
2185 | else | |
2186 | ||
2187 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` | |
2188 | if test "x$LINE" != x ; then | |
2189 | eval "DEFAULT_$LINE" | |
2190 | else | |
2191 | no_cache=1 | |
2192 | fi | |
2193 | ||
2194 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
2195 | ||
2196 | fi | |
2197 | ||
2198 | ||
2199 | eval "$ac_cv_use_regex" | |
2200 | if test "$no_cache" != 1; then | |
2201 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
2202 | fi | |
2203 | ||
2204 | if test "$wxUSE_REGEX" = yes; then | |
2205 | echo "$ac_t""yes" 1>&6 | |
2206 | elif test "$wxUSE_REGEX" = no; then | |
2207 | echo "$ac_t""no" 1>&6 | |
2208 | elif test "$wxUSE_REGEX" = sys; then | |
2209 | echo "$ac_t""system version" 1>&6 | |
4f14bcd8 GD |
2210 | elif test "$wxUSE_REGEX" = builtin; then |
2211 | echo "$ac_t""builtin version" 1>&6 | |
3e44f09d | 2212 | else |
4f14bcd8 | 2213 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d VZ |
2214 | fi |
2215 | ||
2216 | ||
698dcdb6 | 2217 | echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6 |
3bd8fb5f | 2218 | echo "configure:2219: checking for --with-zlib" >&5 |
10f2d63a | 2219 | no_cache=0 |
698dcdb6 | 2220 | # Check whether --with-zlib or --without-zlib was given. |
b12915c1 VZ |
2221 | if test "${with_zlib+set}" = set; then |
2222 | withval="$with_zlib" | |
698dcdb6 | 2223 | |
10f2d63a | 2224 | if test "$withval" = yes; then |
b12915c1 | 2225 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 2226 | elif test "$withval" = no; then |
b12915c1 | 2227 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
2228 | elif test "$withval" = sys; then |
2229 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
4f14bcd8 GD |
2230 | elif test "$withval" = builtin; then |
2231 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
422107f9 | 2232 | else |
4f14bcd8 | 2233 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2234 | fi |
698dcdb6 | 2235 | |
10f2d63a | 2236 | else |
698dcdb6 | 2237 | |
b12915c1 | 2238 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
2239 | if test "x$LINE" != x ; then |
2240 | eval "DEFAULT_$LINE" | |
2241 | else | |
2242 | no_cache=1 | |
2243 | fi | |
2244 | ||
b12915c1 | 2245 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
698dcdb6 VZ |
2246 | |
2247 | fi | |
10f2d63a VZ |
2248 | |
2249 | ||
b12915c1 | 2250 | eval "$ac_cv_use_zlib" |
10f2d63a | 2251 | if test "$no_cache" != 1; then |
b12915c1 | 2252 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2253 | fi |
2254 | ||
b12915c1 | 2255 | if test "$wxUSE_ZLIB" = yes; then |
698dcdb6 | 2256 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2257 | elif test "$wxUSE_ZLIB" = no; then |
698dcdb6 | 2258 | echo "$ac_t""no" 1>&6 |
422107f9 | 2259 | elif test "$wxUSE_ZLIB" = sys; then |
698dcdb6 | 2260 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2261 | elif test "$wxUSE_ZLIB" = builtin; then |
2262 | echo "$ac_t""builtin version" 1>&6 | |
422107f9 | 2263 | else |
4f14bcd8 | 2264 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2265 | fi |
698dcdb6 | 2266 | |
10f2d63a | 2267 | |
698dcdb6 | 2268 | echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6 |
3bd8fb5f | 2269 | echo "configure:2270: checking for --with-odbc" >&5 |
10f2d63a | 2270 | no_cache=0 |
698dcdb6 | 2271 | # Check whether --with-odbc or --without-odbc was given. |
10f2d63a VZ |
2272 | if test "${with_odbc+set}" = set; then |
2273 | withval="$with_odbc" | |
698dcdb6 | 2274 | |
10f2d63a VZ |
2275 | if test "$withval" = yes; then |
2276 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
2277 | else | |
2278 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
2279 | fi | |
698dcdb6 | 2280 | |
10f2d63a | 2281 | else |
698dcdb6 | 2282 | |
10f2d63a VZ |
2283 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` |
2284 | if test "x$LINE" != x ; then | |
2285 | eval "DEFAULT_$LINE" | |
2286 | else | |
2287 | no_cache=1 | |
2288 | fi | |
2289 | ||
2290 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
698dcdb6 VZ |
2291 | |
2292 | fi | |
10f2d63a VZ |
2293 | |
2294 | ||
2295 | eval "$ac_cv_use_odbc" | |
2296 | if test "$no_cache" != 1; then | |
2297 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
2298 | fi | |
2299 | ||
2300 | if test "$wxUSE_ODBC" = yes; then | |
698dcdb6 | 2301 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2302 | else |
698dcdb6 | 2303 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2304 | fi |
698dcdb6 VZ |
2305 | |
2306 | ||
10f2d63a | 2307 | |
698dcdb6 | 2308 | |
698dcdb6 | 2309 | echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6 |
3bd8fb5f | 2310 | echo "configure:2311: checking for --enable-shared" >&5 |
10f2d63a VZ |
2311 | no_cache=0 |
2312 | # Check whether --enable-shared or --disable-shared was given. | |
2313 | if test "${enable_shared+set}" = set; then | |
2314 | enableval="$enable_shared" | |
698dcdb6 | 2315 | |
10f2d63a VZ |
2316 | if test "$enableval" = yes; then |
2317 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
2318 | else | |
2319 | ac_cv_use_shared='wxUSE_SHARED=no' | |
2320 | fi | |
698dcdb6 | 2321 | |
10f2d63a | 2322 | else |
698dcdb6 | 2323 | |
10f2d63a VZ |
2324 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` |
2325 | if test "x$LINE" != x ; then | |
2326 | eval "DEFAULT_$LINE" | |
2327 | else | |
2328 | no_cache=1 | |
2329 | fi | |
2330 | ||
2331 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
698dcdb6 VZ |
2332 | |
2333 | fi | |
10f2d63a VZ |
2334 | |
2335 | ||
2336 | eval "$ac_cv_use_shared" | |
2337 | if test "$no_cache" != 1; then | |
2338 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
2339 | fi | |
2340 | ||
2341 | if test "$wxUSE_SHARED" = yes; then | |
698dcdb6 | 2342 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2343 | else |
698dcdb6 | 2344 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2345 | fi |
698dcdb6 | 2346 | |
10f2d63a | 2347 | |
3a922bb4 | 2348 | echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6 |
3bd8fb5f | 2349 | echo "configure:2350: checking for --enable-soname" >&5 |
00cf1208 | 2350 | no_cache=0 |
3a922bb4 RL |
2351 | # Check whether --enable-soname or --disable-soname was given. |
2352 | if test "${enable_soname+set}" = set; then | |
2353 | enableval="$enable_soname" | |
698dcdb6 | 2354 | |
00cf1208 | 2355 | if test "$enableval" = yes; then |
3a922bb4 | 2356 | ac_cv_use_soname='wxUSE_SONAME=yes' |
00cf1208 | 2357 | else |
3a922bb4 | 2358 | ac_cv_use_soname='wxUSE_SONAME=no' |
00cf1208 | 2359 | fi |
698dcdb6 | 2360 | |
00cf1208 | 2361 | else |
698dcdb6 | 2362 | |
3a922bb4 | 2363 | LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}` |
00cf1208 RR |
2364 | if test "x$LINE" != x ; then |
2365 | eval "DEFAULT_$LINE" | |
2366 | else | |
2367 | no_cache=1 | |
2368 | fi | |
2369 | ||
3a922bb4 | 2370 | ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME |
698dcdb6 VZ |
2371 | |
2372 | fi | |
00cf1208 RR |
2373 | |
2374 | ||
3a922bb4 | 2375 | eval "$ac_cv_use_soname" |
00cf1208 | 2376 | if test "$no_cache" != 1; then |
3a922bb4 | 2377 | echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp |
00cf1208 RR |
2378 | fi |
2379 | ||
3a922bb4 | 2380 | if test "$wxUSE_SONAME" = yes; then |
698dcdb6 | 2381 | echo "$ac_t""yes" 1>&6 |
00cf1208 | 2382 | else |
698dcdb6 | 2383 | echo "$ac_t""no" 1>&6 |
00cf1208 | 2384 | fi |
698dcdb6 | 2385 | |
00cf1208 | 2386 | |
698dcdb6 | 2387 | echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6 |
3bd8fb5f | 2388 | echo "configure:2389: checking for --enable-optimise" >&5 |
10f2d63a VZ |
2389 | no_cache=0 |
2390 | # Check whether --enable-optimise or --disable-optimise was given. | |
2391 | if test "${enable_optimise+set}" = set; then | |
2392 | enableval="$enable_optimise" | |
698dcdb6 | 2393 | |
10f2d63a VZ |
2394 | if test "$enableval" = yes; then |
2395 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
2396 | else | |
2397 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
2398 | fi | |
698dcdb6 | 2399 | |
10f2d63a | 2400 | else |
698dcdb6 | 2401 | |
10f2d63a VZ |
2402 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` |
2403 | if test "x$LINE" != x ; then | |
2404 | eval "DEFAULT_$LINE" | |
2405 | else | |
2406 | no_cache=1 | |
2407 | fi | |
2408 | ||
2409 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
698dcdb6 VZ |
2410 | |
2411 | fi | |
10f2d63a VZ |
2412 | |
2413 | ||
2414 | eval "$ac_cv_use_optimise" | |
2415 | if test "$no_cache" != 1; then | |
2416 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
2417 | fi | |
2418 | ||
2419 | if test "$wxUSE_OPTIMISE" = yes; then | |
698dcdb6 | 2420 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2421 | else |
698dcdb6 | 2422 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2423 | fi |
698dcdb6 | 2424 | |
10f2d63a | 2425 | |
698dcdb6 | 2426 | echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6 |
3bd8fb5f | 2427 | echo "configure:2428: checking for --enable-debug" >&5 |
10f2d63a VZ |
2428 | no_cache=0 |
2429 | # Check whether --enable-debug or --disable-debug was given. | |
2430 | if test "${enable_debug+set}" = set; then | |
2431 | enableval="$enable_debug" | |
698dcdb6 | 2432 | |
10f2d63a VZ |
2433 | if test "$enableval" = yes; then |
2434 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
2435 | else | |
2436 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
2437 | fi | |
698dcdb6 | 2438 | |
10f2d63a | 2439 | else |
698dcdb6 | 2440 | |
10f2d63a VZ |
2441 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` |
2442 | if test "x$LINE" != x ; then | |
2443 | eval "DEFAULT_$LINE" | |
2444 | else | |
2445 | no_cache=1 | |
2446 | fi | |
2447 | ||
2448 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
698dcdb6 VZ |
2449 | |
2450 | fi | |
10f2d63a VZ |
2451 | |
2452 | ||
2453 | eval "$ac_cv_use_debug" | |
2454 | if test "$no_cache" != 1; then | |
2455 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
2456 | fi | |
2457 | ||
2458 | if test "$wxUSE_DEBUG" = yes; then | |
698dcdb6 | 2459 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2460 | else |
698dcdb6 | 2461 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2462 | fi |
698dcdb6 | 2463 | |
10f2d63a | 2464 | |
683dccda GD |
2465 | |
2466 | echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6 | |
3bd8fb5f | 2467 | echo "configure:2468: checking for --enable-precomp" >&5 |
683dccda GD |
2468 | no_cache=0 |
2469 | # Check whether --enable-precomp or --disable-precomp was given. | |
2470 | if test "${enable_precomp+set}" = set; then | |
2471 | enableval="$enable_precomp" | |
2472 | ||
2473 | if test "$enableval" = yes; then | |
2474 | ac_cv_use_precomp='wxUSE_PRECOMP=yes' | |
2475 | else | |
2476 | ac_cv_use_precomp='wxUSE_PRECOMP=no' | |
2477 | fi | |
2478 | ||
2479 | else | |
2480 | ||
2481 | LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}` | |
2482 | if test "x$LINE" != x ; then | |
2483 | eval "DEFAULT_$LINE" | |
2484 | else | |
2485 | no_cache=1 | |
2486 | fi | |
2487 | ||
2488 | ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP | |
2489 | ||
2490 | fi | |
2491 | ||
2492 | ||
2493 | eval "$ac_cv_use_precomp" | |
2494 | if test "$no_cache" != 1; then | |
2495 | echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp | |
2496 | fi | |
2497 | ||
2498 | if test "$wxUSE_PRECOMP" = yes; then | |
2499 | echo "$ac_t""yes" 1>&6 | |
2500 | else | |
2501 | echo "$ac_t""no" 1>&6 | |
2502 | fi | |
2503 | ||
2504 | ||
10f2d63a VZ |
2505 | if test "$wxUSE_DEBUG" = "yes"; then |
2506 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2507 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2508 | elif test "$wxUSE_DEBUG" = "no"; then | |
2509 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2510 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2511 | fi | |
2512 | ||
698dcdb6 VZ |
2513 | |
2514 | echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6 | |
3bd8fb5f | 2515 | echo "configure:2516: checking for --enable-debug_flag" >&5 |
10f2d63a VZ |
2516 | no_cache=0 |
2517 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
2518 | if test "${enable_debug_flag+set}" = set; then | |
2519 | enableval="$enable_debug_flag" | |
698dcdb6 | 2520 | |
10f2d63a VZ |
2521 | if test "$enableval" = yes; then |
2522 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
2523 | else | |
2524 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
2525 | fi | |
698dcdb6 | 2526 | |
10f2d63a | 2527 | else |
698dcdb6 | 2528 | |
10f2d63a VZ |
2529 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` |
2530 | if test "x$LINE" != x ; then | |
2531 | eval "DEFAULT_$LINE" | |
2532 | else | |
2533 | no_cache=1 | |
2534 | fi | |
2535 | ||
2536 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
698dcdb6 VZ |
2537 | |
2538 | fi | |
10f2d63a VZ |
2539 | |
2540 | ||
2541 | eval "$ac_cv_use_debug_flag" | |
2542 | if test "$no_cache" != 1; then | |
2543 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
2544 | fi | |
2545 | ||
2546 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
698dcdb6 | 2547 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2548 | else |
698dcdb6 | 2549 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2550 | fi |
698dcdb6 | 2551 | |
10f2d63a | 2552 | |
698dcdb6 | 2553 | echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6 |
3bd8fb5f | 2554 | echo "configure:2555: checking for --enable-debug_info" >&5 |
10f2d63a VZ |
2555 | no_cache=0 |
2556 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2557 | if test "${enable_debug_info+set}" = set; then | |
2558 | enableval="$enable_debug_info" | |
698dcdb6 | 2559 | |
10f2d63a VZ |
2560 | if test "$enableval" = yes; then |
2561 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2562 | else | |
2563 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2564 | fi | |
698dcdb6 | 2565 | |
10f2d63a | 2566 | else |
698dcdb6 | 2567 | |
10f2d63a VZ |
2568 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` |
2569 | if test "x$LINE" != x ; then | |
2570 | eval "DEFAULT_$LINE" | |
2571 | else | |
2572 | no_cache=1 | |
2573 | fi | |
2574 | ||
2575 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
698dcdb6 VZ |
2576 | |
2577 | fi | |
10f2d63a VZ |
2578 | |
2579 | ||
2580 | eval "$ac_cv_use_debug_info" | |
2581 | if test "$no_cache" != 1; then | |
2582 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2583 | fi | |
2584 | ||
2585 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
698dcdb6 | 2586 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2587 | else |
698dcdb6 | 2588 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2589 | fi |
698dcdb6 | 2590 | |
10f2d63a | 2591 | |
698dcdb6 | 2592 | echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6 |
3bd8fb5f | 2593 | echo "configure:2594: checking for --enable-debug_gdb" >&5 |
10f2d63a VZ |
2594 | no_cache=0 |
2595 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2596 | if test "${enable_debug_gdb+set}" = set; then | |
2597 | enableval="$enable_debug_gdb" | |
698dcdb6 | 2598 | |
10f2d63a VZ |
2599 | if test "$enableval" = yes; then |
2600 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2601 | else | |
2602 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2603 | fi | |
698dcdb6 | 2604 | |
10f2d63a | 2605 | else |
698dcdb6 | 2606 | |
10f2d63a VZ |
2607 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` |
2608 | if test "x$LINE" != x ; then | |
2609 | eval "DEFAULT_$LINE" | |
2610 | else | |
2611 | no_cache=1 | |
2612 | fi | |
2613 | ||
2614 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
698dcdb6 VZ |
2615 | |
2616 | fi | |
10f2d63a VZ |
2617 | |
2618 | ||
2619 | eval "$ac_cv_use_debug_gdb" | |
2620 | if test "$no_cache" != 1; then | |
2621 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2622 | fi | |
2623 | ||
2624 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
698dcdb6 | 2625 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2626 | else |
698dcdb6 | 2627 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2628 | fi |
698dcdb6 | 2629 | |
10f2d63a | 2630 | |
698dcdb6 | 2631 | echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6 |
3bd8fb5f | 2632 | echo "configure:2633: checking for --enable-debug_cntxt" >&5 |
10f2d63a VZ |
2633 | no_cache=0 |
2634 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2635 | if test "${enable_debug_cntxt+set}" = set; then | |
2636 | enableval="$enable_debug_cntxt" | |
698dcdb6 | 2637 | |
10f2d63a VZ |
2638 | if test "$enableval" = yes; then |
2639 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2640 | else | |
2641 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2642 | fi | |
698dcdb6 | 2643 | |
10f2d63a | 2644 | else |
698dcdb6 | 2645 | |
10f2d63a VZ |
2646 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` |
2647 | if test "x$LINE" != x ; then | |
2648 | eval "DEFAULT_$LINE" | |
2649 | else | |
2650 | no_cache=1 | |
2651 | fi | |
2652 | ||
2653 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
698dcdb6 VZ |
2654 | |
2655 | fi | |
10f2d63a VZ |
2656 | |
2657 | ||
2658 | eval "$ac_cv_use_debug_cntxt" | |
2659 | if test "$no_cache" != 1; then | |
2660 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2661 | fi | |
2662 | ||
2663 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
698dcdb6 | 2664 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2665 | else |
698dcdb6 | 2666 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2667 | fi |
698dcdb6 | 2668 | |
10f2d63a | 2669 | |
698dcdb6 | 2670 | echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6 |
3bd8fb5f | 2671 | echo "configure:2672: checking for --enable-mem_tracing" >&5 |
10f2d63a VZ |
2672 | no_cache=0 |
2673 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2674 | if test "${enable_mem_tracing+set}" = set; then | |
2675 | enableval="$enable_mem_tracing" | |
698dcdb6 | 2676 | |
10f2d63a VZ |
2677 | if test "$enableval" = yes; then |
2678 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2679 | else | |
2680 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2681 | fi | |
698dcdb6 | 2682 | |
10f2d63a | 2683 | else |
698dcdb6 | 2684 | |
10f2d63a VZ |
2685 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` |
2686 | if test "x$LINE" != x ; then | |
2687 | eval "DEFAULT_$LINE" | |
2688 | else | |
2689 | no_cache=1 | |
2690 | fi | |
2691 | ||
2692 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
698dcdb6 VZ |
2693 | |
2694 | fi | |
10f2d63a VZ |
2695 | |
2696 | ||
2697 | eval "$ac_cv_use_mem_tracing" | |
2698 | if test "$no_cache" != 1; then | |
2699 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2700 | fi | |
2701 | ||
2702 | if test "$wxUSE_MEM_TRACING" = yes; then | |
698dcdb6 | 2703 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2704 | else |
698dcdb6 | 2705 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2706 | fi |
698dcdb6 | 2707 | |
10f2d63a | 2708 | |
698dcdb6 | 2709 | echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6 |
3bd8fb5f | 2710 | echo "configure:2711: checking for --enable-profile" >&5 |
10f2d63a VZ |
2711 | no_cache=0 |
2712 | # Check whether --enable-profile or --disable-profile was given. | |
2713 | if test "${enable_profile+set}" = set; then | |
2714 | enableval="$enable_profile" | |
698dcdb6 | 2715 | |
10f2d63a VZ |
2716 | if test "$enableval" = yes; then |
2717 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2718 | else | |
2719 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2720 | fi | |
698dcdb6 | 2721 | |
10f2d63a | 2722 | else |
698dcdb6 | 2723 | |
10f2d63a VZ |
2724 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` |
2725 | if test "x$LINE" != x ; then | |
2726 | eval "DEFAULT_$LINE" | |
2727 | else | |
2728 | no_cache=1 | |
2729 | fi | |
2730 | ||
2731 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
698dcdb6 VZ |
2732 | |
2733 | fi | |
10f2d63a VZ |
2734 | |
2735 | ||
2736 | eval "$ac_cv_use_profile" | |
2737 | if test "$no_cache" != 1; then | |
2738 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2739 | fi | |
2740 | ||
2741 | if test "$wxUSE_PROFILE" = yes; then | |
698dcdb6 | 2742 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2743 | else |
698dcdb6 | 2744 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2745 | fi |
698dcdb6 | 2746 | |
10f2d63a | 2747 | |
698dcdb6 | 2748 | echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6 |
3bd8fb5f | 2749 | echo "configure:2750: checking for --enable-no_rtti" >&5 |
10f2d63a VZ |
2750 | no_cache=0 |
2751 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2752 | if test "${enable_no_rtti+set}" = set; then | |
2753 | enableval="$enable_no_rtti" | |
698dcdb6 | 2754 | |
10f2d63a VZ |
2755 | if test "$enableval" = yes; then |
2756 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2757 | else | |
2758 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2759 | fi | |
698dcdb6 | 2760 | |
10f2d63a | 2761 | else |
698dcdb6 | 2762 | |
10f2d63a VZ |
2763 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` |
2764 | if test "x$LINE" != x ; then | |
2765 | eval "DEFAULT_$LINE" | |
2766 | else | |
2767 | no_cache=1 | |
2768 | fi | |
2769 | ||
2770 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
698dcdb6 VZ |
2771 | |
2772 | fi | |
10f2d63a VZ |
2773 | |
2774 | ||
2775 | eval "$ac_cv_use_no_rtti" | |
2776 | if test "$no_cache" != 1; then | |
2777 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2778 | fi | |
2779 | ||
2780 | if test "$wxUSE_NO_RTTI" = yes; then | |
698dcdb6 | 2781 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2782 | else |
698dcdb6 | 2783 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2784 | fi |
698dcdb6 | 2785 | |
10f2d63a | 2786 | |
698dcdb6 | 2787 | echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6 |
3bd8fb5f | 2788 | echo "configure:2789: checking for --enable-no_exceptions" >&5 |
10f2d63a VZ |
2789 | no_cache=0 |
2790 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2791 | if test "${enable_no_exceptions+set}" = set; then | |
2792 | enableval="$enable_no_exceptions" | |
698dcdb6 | 2793 | |
10f2d63a VZ |
2794 | if test "$enableval" = yes; then |
2795 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2796 | else | |
2797 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2798 | fi | |
698dcdb6 | 2799 | |
10f2d63a | 2800 | else |
698dcdb6 | 2801 | |
10f2d63a VZ |
2802 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` |
2803 | if test "x$LINE" != x ; then | |
2804 | eval "DEFAULT_$LINE" | |
2805 | else | |
2806 | no_cache=1 | |
2807 | fi | |
2808 | ||
2809 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
698dcdb6 VZ |
2810 | |
2811 | fi | |
10f2d63a VZ |
2812 | |
2813 | ||
2814 | eval "$ac_cv_use_no_exceptions" | |
2815 | if test "$no_cache" != 1; then | |
2816 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2817 | fi | |
2818 | ||
2819 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
698dcdb6 | 2820 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2821 | else |
698dcdb6 | 2822 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2823 | fi |
698dcdb6 | 2824 | |
10f2d63a | 2825 | |
698dcdb6 | 2826 | echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6 |
3bd8fb5f | 2827 | echo "configure:2828: checking for --enable-permissive" >&5 |
10f2d63a VZ |
2828 | no_cache=0 |
2829 | # Check whether --enable-permissive or --disable-permissive was given. | |
2830 | if test "${enable_permissive+set}" = set; then | |
2831 | enableval="$enable_permissive" | |
698dcdb6 | 2832 | |
10f2d63a VZ |
2833 | if test "$enableval" = yes; then |
2834 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2835 | else | |
2836 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2837 | fi | |
698dcdb6 | 2838 | |
10f2d63a | 2839 | else |
698dcdb6 | 2840 | |
10f2d63a VZ |
2841 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` |
2842 | if test "x$LINE" != x ; then | |
2843 | eval "DEFAULT_$LINE" | |
2844 | else | |
2845 | no_cache=1 | |
2846 | fi | |
2847 | ||
2848 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
698dcdb6 VZ |
2849 | |
2850 | fi | |
10f2d63a VZ |
2851 | |
2852 | ||
2853 | eval "$ac_cv_use_permissive" | |
2854 | if test "$no_cache" != 1; then | |
2855 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2856 | fi | |
2857 | ||
2858 | if test "$wxUSE_PERMISSIVE" = yes; then | |
698dcdb6 | 2859 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2860 | else |
698dcdb6 | 2861 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2862 | fi |
698dcdb6 | 2863 | |
10f2d63a | 2864 | |
698dcdb6 | 2865 | echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6 |
3bd8fb5f | 2866 | echo "configure:2867: checking for --enable-no_deps" >&5 |
10f2d63a VZ |
2867 | no_cache=0 |
2868 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2869 | if test "${enable_no_deps+set}" = set; then | |
2870 | enableval="$enable_no_deps" | |
698dcdb6 | 2871 | |
10f2d63a VZ |
2872 | if test "$enableval" = yes; then |
2873 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2874 | else | |
2875 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2876 | fi | |
698dcdb6 | 2877 | |
10f2d63a | 2878 | else |
698dcdb6 | 2879 | |
10f2d63a VZ |
2880 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` |
2881 | if test "x$LINE" != x ; then | |
2882 | eval "DEFAULT_$LINE" | |
2883 | else | |
2884 | no_cache=1 | |
2885 | fi | |
2886 | ||
2887 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
698dcdb6 VZ |
2888 | |
2889 | fi | |
10f2d63a VZ |
2890 | |
2891 | ||
2892 | eval "$ac_cv_use_no_deps" | |
2893 | if test "$no_cache" != 1; then | |
2894 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2895 | fi | |
2896 | ||
2897 | if test "$wxUSE_NO_DEPS" = yes; then | |
698dcdb6 | 2898 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2899 | else |
698dcdb6 | 2900 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2901 | fi |
698dcdb6 VZ |
2902 | |
2903 | ||
10f2d63a | 2904 | |
54276ccf | 2905 | echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6 |
3bd8fb5f | 2906 | echo "configure:2907: checking for --enable-compat20" >&5 |
54276ccf VZ |
2907 | no_cache=0 |
2908 | # Check whether --enable-compat20 or --disable-compat20 was given. | |
2909 | if test "${enable_compat20+set}" = set; then | |
2910 | enableval="$enable_compat20" | |
2911 | ||
2912 | if test "$enableval" = yes; then | |
2913 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes' | |
2914 | else | |
2915 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no' | |
2916 | fi | |
2917 | ||
2918 | else | |
2919 | ||
2920 | LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}` | |
2921 | if test "x$LINE" != x ; then | |
2922 | eval "DEFAULT_$LINE" | |
2923 | else | |
2924 | no_cache=1 | |
2925 | fi | |
2926 | ||
2927 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2 | |
2928 | ||
2929 | fi | |
2930 | ||
2931 | ||
2932 | eval "$ac_cv_use_compat20" | |
2933 | if test "$no_cache" != 1; then | |
2934 | echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp | |
2935 | fi | |
2936 | ||
2937 | if test "$WXWIN_COMPATIBILITY_2" = yes; then | |
2938 | echo "$ac_t""yes" 1>&6 | |
2939 | else | |
2940 | echo "$ac_t""no" 1>&6 | |
2941 | fi | |
2942 | ||
2943 | ||
2944 | echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6 | |
3bd8fb5f | 2945 | echo "configure:2946: checking for --enable-compat22" >&5 |
54276ccf VZ |
2946 | no_cache=0 |
2947 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
2948 | if test "${enable_compat22+set}" = set; then | |
2949 | enableval="$enable_compat22" | |
2950 | ||
2951 | if test "$enableval" = yes; then | |
2952 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
2953 | else | |
2954 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
2955 | fi | |
2956 | ||
2957 | else | |
2958 | ||
2959 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` | |
2960 | if test "x$LINE" != x ; then | |
2961 | eval "DEFAULT_$LINE" | |
2962 | else | |
2963 | no_cache=1 | |
2964 | fi | |
2965 | ||
2966 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
2967 | ||
2968 | fi | |
2969 | ||
2970 | ||
2971 | eval "$ac_cv_use_compat22" | |
2972 | if test "$no_cache" != 1; then | |
2973 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
2974 | fi | |
2975 | ||
2976 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
2977 | echo "$ac_t""yes" 1>&6 | |
2978 | else | |
2979 | echo "$ac_t""no" 1>&6 | |
2980 | fi | |
2981 | ||
2982 | ||
3bd8fb5f RD |
2983 | # Check whether --enable-rpath or --disable-rpath was given. |
2984 | if test "${enable_rpath+set}" = set; then | |
2985 | enableval="$enable_rpath" | |
2986 | wxRPATH_DIR="$enableval" | |
2987 | fi | |
2988 | ||
2989 | ||
2990 | if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then | |
2991 | WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR" | |
2992 | fi | |
2993 | ||
2994 | ||
54276ccf | 2995 | |
698dcdb6 VZ |
2996 | |
2997 | echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6 | |
3bd8fb5f | 2998 | echo "configure:2999: checking for --enable-intl" >&5 |
10f2d63a VZ |
2999 | no_cache=0 |
3000 | # Check whether --enable-intl or --disable-intl was given. | |
3001 | if test "${enable_intl+set}" = set; then | |
3002 | enableval="$enable_intl" | |
698dcdb6 | 3003 | |
10f2d63a VZ |
3004 | if test "$enableval" = yes; then |
3005 | ac_cv_use_intl='wxUSE_INTL=yes' | |
3006 | else | |
3007 | ac_cv_use_intl='wxUSE_INTL=no' | |
3008 | fi | |
698dcdb6 | 3009 | |
10f2d63a | 3010 | else |
698dcdb6 | 3011 | |
10f2d63a VZ |
3012 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` |
3013 | if test "x$LINE" != x ; then | |
3014 | eval "DEFAULT_$LINE" | |
3015 | else | |
3016 | no_cache=1 | |
3017 | fi | |
3018 | ||
3019 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
698dcdb6 VZ |
3020 | |
3021 | fi | |
10f2d63a VZ |
3022 | |
3023 | ||
3024 | eval "$ac_cv_use_intl" | |
3025 | if test "$no_cache" != 1; then | |
3026 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
3027 | fi | |
3028 | ||
3029 | if test "$wxUSE_INTL" = yes; then | |
698dcdb6 | 3030 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3031 | else |
698dcdb6 | 3032 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3033 | fi |
698dcdb6 | 3034 | |
10f2d63a | 3035 | |
698dcdb6 | 3036 | echo $ac_n "checking for --enable-config""... $ac_c" 1>&6 |
3bd8fb5f | 3037 | echo "configure:3038: checking for --enable-config" >&5 |
10f2d63a VZ |
3038 | no_cache=0 |
3039 | # Check whether --enable-config or --disable-config was given. | |
3040 | if test "${enable_config+set}" = set; then | |
3041 | enableval="$enable_config" | |
698dcdb6 | 3042 | |
10f2d63a VZ |
3043 | if test "$enableval" = yes; then |
3044 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
3045 | else | |
3046 | ac_cv_use_config='wxUSE_CONFIG=no' | |
3047 | fi | |
698dcdb6 | 3048 | |
10f2d63a | 3049 | else |
698dcdb6 | 3050 | |
10f2d63a VZ |
3051 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` |
3052 | if test "x$LINE" != x ; then | |
3053 | eval "DEFAULT_$LINE" | |
3054 | else | |
3055 | no_cache=1 | |
3056 | fi | |
3057 | ||
3058 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
698dcdb6 VZ |
3059 | |
3060 | fi | |
10f2d63a VZ |
3061 | |
3062 | ||
3063 | eval "$ac_cv_use_config" | |
3064 | if test "$no_cache" != 1; then | |
3065 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
3066 | fi | |
3067 | ||
3068 | if test "$wxUSE_CONFIG" = yes; then | |
698dcdb6 | 3069 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3070 | else |
698dcdb6 | 3071 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3072 | fi |
698dcdb6 VZ |
3073 | |
3074 | ||
b12915c1 | 3075 | |
a1622950 | 3076 | echo $ac_n "checking for --enable-protocols""... $ac_c" 1>&6 |
3bd8fb5f | 3077 | echo "configure:3078: checking for --enable-protocols" >&5 |
a1622950 VZ |
3078 | no_cache=0 |
3079 | # Check whether --enable-protocols or --disable-protocols was given. | |
3080 | if test "${enable_protocols+set}" = set; then | |
3081 | enableval="$enable_protocols" | |
3082 | ||
3083 | if test "$enableval" = yes; then | |
3084 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
3085 | else | |
3086 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
3087 | fi | |
3088 | ||
3089 | else | |
3090 | ||
3091 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
3092 | if test "x$LINE" != x ; then | |
3093 | eval "DEFAULT_$LINE" | |
3094 | else | |
3095 | no_cache=1 | |
3096 | fi | |
3097 | ||
3098 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
3099 | ||
3100 | fi | |
3101 | ||
3102 | ||
3103 | eval "$ac_cv_use_protocols" | |
3104 | if test "$no_cache" != 1; then | |
3105 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
3106 | fi | |
3107 | ||
3108 | if test "$wxUSE_PROTOCOL" = yes; then | |
3109 | echo "$ac_t""yes" 1>&6 | |
3110 | else | |
3111 | echo "$ac_t""no" 1>&6 | |
3112 | fi | |
3113 | ||
3114 | ||
3115 | echo $ac_n "checking for --enable-ftp""... $ac_c" 1>&6 | |
3bd8fb5f | 3116 | echo "configure:3117: checking for --enable-ftp" >&5 |
a1622950 VZ |
3117 | no_cache=0 |
3118 | # Check whether --enable-ftp or --disable-ftp was given. | |
3119 | if test "${enable_ftp+set}" = set; then | |
3120 | enableval="$enable_ftp" | |
3121 | ||
3122 | if test "$enableval" = yes; then | |
3123 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
3124 | else | |
3125 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
3126 | fi | |
3127 | ||
3128 | else | |
3129 | ||
3130 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
3131 | if test "x$LINE" != x ; then | |
3132 | eval "DEFAULT_$LINE" | |
3133 | else | |
3134 | no_cache=1 | |
3135 | fi | |
3136 | ||
3137 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
3138 | ||
3139 | fi | |
3140 | ||
3141 | ||
3142 | eval "$ac_cv_use_ftp" | |
3143 | if test "$no_cache" != 1; then | |
3144 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
3145 | fi | |
3146 | ||
3147 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
3148 | echo "$ac_t""yes" 1>&6 | |
3149 | else | |
3150 | echo "$ac_t""no" 1>&6 | |
3151 | fi | |
3152 | ||
3153 | ||
3154 | echo $ac_n "checking for --enable-http""... $ac_c" 1>&6 | |
3bd8fb5f | 3155 | echo "configure:3156: checking for --enable-http" >&5 |
a1622950 VZ |
3156 | no_cache=0 |
3157 | # Check whether --enable-http or --disable-http was given. | |
3158 | if test "${enable_http+set}" = set; then | |
3159 | enableval="$enable_http" | |
3160 | ||
3161 | if test "$enableval" = yes; then | |
3162 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
3163 | else | |
3164 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
3165 | fi | |
3166 | ||
3167 | else | |
3168 | ||
3169 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
3170 | if test "x$LINE" != x ; then | |
3171 | eval "DEFAULT_$LINE" | |
3172 | else | |
3173 | no_cache=1 | |
3174 | fi | |
3175 | ||
3176 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
3177 | ||
3178 | fi | |
3179 | ||
3180 | ||
3181 | eval "$ac_cv_use_http" | |
3182 | if test "$no_cache" != 1; then | |
3183 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
3184 | fi | |
3185 | ||
3186 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
3187 | echo "$ac_t""yes" 1>&6 | |
3188 | else | |
3189 | echo "$ac_t""no" 1>&6 | |
3190 | fi | |
3191 | ||
3192 | ||
3193 | echo $ac_n "checking for --enable-fileproto""... $ac_c" 1>&6 | |
3bd8fb5f | 3194 | echo "configure:3195: checking for --enable-fileproto" >&5 |
a1622950 VZ |
3195 | no_cache=0 |
3196 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
3197 | if test "${enable_fileproto+set}" = set; then | |
3198 | enableval="$enable_fileproto" | |
3199 | ||
3200 | if test "$enableval" = yes; then | |
3201 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
3202 | else | |
3203 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
3204 | fi | |
3205 | ||
3206 | else | |
3207 | ||
3208 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
3209 | if test "x$LINE" != x ; then | |
3210 | eval "DEFAULT_$LINE" | |
3211 | else | |
3212 | no_cache=1 | |
3213 | fi | |
3214 | ||
3215 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
3216 | ||
3217 | fi | |
3218 | ||
3219 | ||
3220 | eval "$ac_cv_use_fileproto" | |
3221 | if test "$no_cache" != 1; then | |
3222 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
3223 | fi | |
3224 | ||
3225 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
3226 | echo "$ac_t""yes" 1>&6 | |
3227 | else | |
3228 | echo "$ac_t""no" 1>&6 | |
3229 | fi | |
3230 | ||
3231 | ||
698dcdb6 | 3232 | echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6 |
3bd8fb5f | 3233 | echo "configure:3234: checking for --enable-sockets" >&5 |
10f2d63a VZ |
3234 | no_cache=0 |
3235 | # Check whether --enable-sockets or --disable-sockets was given. | |
3236 | if test "${enable_sockets+set}" = set; then | |
3237 | enableval="$enable_sockets" | |
698dcdb6 | 3238 | |
10f2d63a VZ |
3239 | if test "$enableval" = yes; then |
3240 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
3241 | else | |
3242 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
3243 | fi | |
698dcdb6 | 3244 | |
10f2d63a | 3245 | else |
698dcdb6 | 3246 | |
10f2d63a VZ |
3247 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` |
3248 | if test "x$LINE" != x ; then | |
3249 | eval "DEFAULT_$LINE" | |
3250 | else | |
3251 | no_cache=1 | |
3252 | fi | |
3253 | ||
3254 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
698dcdb6 VZ |
3255 | |
3256 | fi | |
10f2d63a VZ |
3257 | |
3258 | ||
3259 | eval "$ac_cv_use_sockets" | |
3260 | if test "$no_cache" != 1; then | |
3261 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
3262 | fi | |
3263 | ||
3264 | if test "$wxUSE_SOCKETS" = yes; then | |
698dcdb6 | 3265 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3266 | else |
698dcdb6 | 3267 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3268 | fi |
698dcdb6 | 3269 | |
b12915c1 | 3270 | |
698dcdb6 VZ |
3271 | |
3272 | echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6 | |
3bd8fb5f | 3273 | echo "configure:3274: checking for --enable-ipc" >&5 |
10f2d63a | 3274 | no_cache=0 |
eb4efbdc VZ |
3275 | # Check whether --enable-ipc or --disable-ipc was given. |
3276 | if test "${enable_ipc+set}" = set; then | |
3277 | enableval="$enable_ipc" | |
698dcdb6 | 3278 | |
10f2d63a | 3279 | if test "$enableval" = yes; then |
eb4efbdc | 3280 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 3281 | else |
eb4efbdc | 3282 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a | 3283 | fi |
698dcdb6 | 3284 | |
10f2d63a | 3285 | else |
698dcdb6 | 3286 | |
eb4efbdc | 3287 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
3288 | if test "x$LINE" != x ; then |
3289 | eval "DEFAULT_$LINE" | |
3290 | else | |
3291 | no_cache=1 | |
3292 | fi | |
3293 | ||
eb4efbdc | 3294 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
698dcdb6 VZ |
3295 | |
3296 | fi | |
10f2d63a VZ |
3297 | |
3298 | ||
eb4efbdc | 3299 | eval "$ac_cv_use_ipc" |
10f2d63a | 3300 | if test "$no_cache" != 1; then |
eb4efbdc | 3301 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3302 | fi |
3303 | ||
eb4efbdc | 3304 | if test "$wxUSE_IPC" = yes; then |
698dcdb6 | 3305 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3306 | else |
698dcdb6 | 3307 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3308 | fi |
698dcdb6 VZ |
3309 | |
3310 | ||
eb4efbdc | 3311 | |
1e6feb95 | 3312 | echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6 |
3bd8fb5f | 3313 | echo "configure:3314: checking for --enable-cmdline" >&5 |
1e6feb95 VZ |
3314 | no_cache=0 |
3315 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
3316 | if test "${enable_cmdline+set}" = set; then | |
3317 | enableval="$enable_cmdline" | |
3318 | ||
3319 | if test "$enableval" = yes; then | |
3320 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
3321 | else | |
3322 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
3323 | fi | |
3324 | ||
3325 | else | |
3326 | ||
3327 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
3328 | if test "x$LINE" != x ; then | |
3329 | eval "DEFAULT_$LINE" | |
3330 | else | |
3331 | no_cache=1 | |
3332 | fi | |
3333 | ||
3334 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
3335 | ||
3336 | fi | |
3337 | ||
3338 | ||
3339 | eval "$ac_cv_use_cmdline" | |
3340 | if test "$no_cache" != 1; then | |
3341 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
3342 | fi | |
3343 | ||
3344 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
3345 | echo "$ac_t""yes" 1>&6 | |
3346 | else | |
3347 | echo "$ac_t""no" 1>&6 | |
3348 | fi | |
3349 | ||
3350 | ||
3351 | echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6 | |
3bd8fb5f | 3352 | echo "configure:3353: checking for --enable-datetime" >&5 |
1e6feb95 VZ |
3353 | no_cache=0 |
3354 | # Check whether --enable-datetime or --disable-datetime was given. | |
3355 | if test "${enable_datetime+set}" = set; then | |
3356 | enableval="$enable_datetime" | |
3357 | ||
3358 | if test "$enableval" = yes; then | |
3359 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
3360 | else | |
3361 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
3362 | fi | |
3363 | ||
3364 | else | |
3365 | ||
3366 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
3367 | if test "x$LINE" != x ; then | |
3368 | eval "DEFAULT_$LINE" | |
3369 | else | |
3370 | no_cache=1 | |
3371 | fi | |
3372 | ||
3373 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
3374 | ||
3375 | fi | |
3376 | ||
3377 | ||
3378 | eval "$ac_cv_use_datetime" | |
3379 | if test "$no_cache" != 1; then | |
3380 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
3381 | fi | |
3382 | ||
3383 | if test "$wxUSE_DATETIME" = yes; then | |
3384 | echo "$ac_t""yes" 1>&6 | |
3385 | else | |
3386 | echo "$ac_t""no" 1>&6 | |
3387 | fi | |
3388 | ||
3389 | ||
3390 | echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6 | |
3bd8fb5f | 3391 | echo "configure:3392: checking for --enable-timedate" >&5 |
1e6feb95 VZ |
3392 | no_cache=0 |
3393 | # Check whether --enable-timedate or --disable-timedate was given. | |
3394 | if test "${enable_timedate+set}" = set; then | |
3395 | enableval="$enable_timedate" | |
3396 | ||
3397 | if test "$enableval" = yes; then | |
3398 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
3399 | else | |
3400 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
3401 | fi | |
3402 | ||
3403 | else | |
3404 | ||
3405 | LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}` | |
3406 | if test "x$LINE" != x ; then | |
3407 | eval "DEFAULT_$LINE" | |
3408 | else | |
3409 | no_cache=1 | |
3410 | fi | |
3411 | ||
3412 | ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
3413 | ||
3414 | fi | |
3415 | ||
3416 | ||
3417 | eval "$ac_cv_use_timedate" | |
3418 | if test "$no_cache" != 1; then | |
3419 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
3420 | fi | |
3421 | ||
3422 | if test "$wxUSE_TIMEDATE" = yes; then | |
3423 | echo "$ac_t""yes" 1>&6 | |
3424 | else | |
3425 | echo "$ac_t""no" 1>&6 | |
3426 | fi | |
3427 | ||
3428 | ||
3429 | echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6 | |
3bd8fb5f | 3430 | echo "configure:3431: checking for --enable-stopwatch" >&5 |
1e6feb95 VZ |
3431 | no_cache=0 |
3432 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
3433 | if test "${enable_stopwatch+set}" = set; then | |
3434 | enableval="$enable_stopwatch" | |
3435 | ||
3436 | if test "$enableval" = yes; then | |
3437 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
3438 | else | |
3439 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
3440 | fi | |
3441 | ||
3442 | else | |
3443 | ||
3444 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
3445 | if test "x$LINE" != x ; then | |
3446 | eval "DEFAULT_$LINE" | |
3447 | else | |
3448 | no_cache=1 | |
3449 | fi | |
3450 | ||
3451 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
3452 | ||
3453 | fi | |
3454 | ||
3455 | ||
3456 | eval "$ac_cv_use_stopwatch" | |
3457 | if test "$no_cache" != 1; then | |
3458 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
3459 | fi | |
3460 | ||
3461 | if test "$wxUSE_STOPWATCH" = yes; then | |
3462 | echo "$ac_t""yes" 1>&6 | |
3463 | else | |
3464 | echo "$ac_t""no" 1>&6 | |
3465 | fi | |
3466 | ||
3467 | ||
698dcdb6 | 3468 | echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6 |
3bd8fb5f | 3469 | echo "configure:3470: checking for --enable-dialupman" >&5 |
10f2d63a | 3470 | no_cache=0 |
eb4efbdc VZ |
3471 | # Check whether --enable-dialupman or --disable-dialupman was given. |
3472 | if test "${enable_dialupman+set}" = set; then | |
3473 | enableval="$enable_dialupman" | |
698dcdb6 | 3474 | |
10f2d63a | 3475 | if test "$enableval" = yes; then |
eb4efbdc | 3476 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 3477 | else |
eb4efbdc | 3478 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a | 3479 | fi |
698dcdb6 | 3480 | |
10f2d63a | 3481 | else |
698dcdb6 | 3482 | |
eb4efbdc | 3483 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3484 | if test "x$LINE" != x ; then |
3485 | eval "DEFAULT_$LINE" | |
3486 | else | |
3487 | no_cache=1 | |
3488 | fi | |
3489 | ||
eb4efbdc | 3490 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
698dcdb6 VZ |
3491 | |
3492 | fi | |
10f2d63a VZ |
3493 | |
3494 | ||
eb4efbdc | 3495 | eval "$ac_cv_use_dialupman" |
10f2d63a | 3496 | if test "$no_cache" != 1; then |
eb4efbdc | 3497 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3498 | fi |
3499 | ||
eb4efbdc | 3500 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
698dcdb6 | 3501 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3502 | else |
698dcdb6 | 3503 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3504 | fi |
698dcdb6 | 3505 | |
10f2d63a | 3506 | |
698dcdb6 | 3507 | echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6 |
3bd8fb5f | 3508 | echo "configure:3509: checking for --enable-apple_ieee" >&5 |
10f2d63a VZ |
3509 | no_cache=0 |
3510 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
3511 | if test "${enable_apple_ieee+set}" = set; then | |
3512 | enableval="$enable_apple_ieee" | |
698dcdb6 | 3513 | |
10f2d63a VZ |
3514 | if test "$enableval" = yes; then |
3515 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
3516 | else | |
3517 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
3518 | fi | |
698dcdb6 | 3519 | |
10f2d63a | 3520 | else |
698dcdb6 | 3521 | |
10f2d63a VZ |
3522 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` |
3523 | if test "x$LINE" != x ; then | |
3524 | eval "DEFAULT_$LINE" | |
3525 | else | |
3526 | no_cache=1 | |
3527 | fi | |
3528 | ||
3529 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
698dcdb6 VZ |
3530 | |
3531 | fi | |
10f2d63a VZ |
3532 | |
3533 | ||
3534 | eval "$ac_cv_use_apple_ieee" | |
3535 | if test "$no_cache" != 1; then | |
3536 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
3537 | fi | |
3538 | ||
3539 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
698dcdb6 | 3540 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3541 | else |
698dcdb6 | 3542 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3543 | fi |
698dcdb6 | 3544 | |
10f2d63a | 3545 | |
1e6feb95 | 3546 | echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6 |
3bd8fb5f | 3547 | echo "configure:3548: checking for --enable-timer" >&5 |
10f2d63a | 3548 | no_cache=0 |
1e6feb95 VZ |
3549 | # Check whether --enable-timer or --disable-timer was given. |
3550 | if test "${enable_timer+set}" = set; then | |
3551 | enableval="$enable_timer" | |
698dcdb6 | 3552 | |
10f2d63a | 3553 | if test "$enableval" = yes; then |
1e6feb95 | 3554 | ac_cv_use_timer='wxUSE_TIMER=yes' |
10f2d63a | 3555 | else |
1e6feb95 | 3556 | ac_cv_use_timer='wxUSE_TIMER=no' |
10f2d63a | 3557 | fi |
698dcdb6 | 3558 | |
10f2d63a | 3559 | else |
698dcdb6 | 3560 | |
1e6feb95 | 3561 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3562 | if test "x$LINE" != x ; then |
3563 | eval "DEFAULT_$LINE" | |
3564 | else | |
3565 | no_cache=1 | |
3566 | fi | |
3567 | ||
1e6feb95 | 3568 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER |
698dcdb6 VZ |
3569 | |
3570 | fi | |
10f2d63a VZ |
3571 | |
3572 | ||
1e6feb95 | 3573 | eval "$ac_cv_use_timer" |
10f2d63a | 3574 | if test "$no_cache" != 1; then |
1e6feb95 | 3575 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3576 | fi |
3577 | ||
1e6feb95 | 3578 | if test "$wxUSE_TIMER" = yes; then |
698dcdb6 | 3579 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3580 | else |
698dcdb6 | 3581 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3582 | fi |
698dcdb6 | 3583 | |
10f2d63a | 3584 | |
698dcdb6 | 3585 | echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6 |
3bd8fb5f | 3586 | echo "configure:3587: checking for --enable-wave" >&5 |
10f2d63a VZ |
3587 | no_cache=0 |
3588 | # Check whether --enable-wave or --disable-wave was given. | |
3589 | if test "${enable_wave+set}" = set; then | |
3590 | enableval="$enable_wave" | |
698dcdb6 | 3591 | |
10f2d63a VZ |
3592 | if test "$enableval" = yes; then |
3593 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
3594 | else | |
3595 | ac_cv_use_wave='wxUSE_WAVE=no' | |
3596 | fi | |
698dcdb6 | 3597 | |
10f2d63a | 3598 | else |
698dcdb6 | 3599 | |
10f2d63a VZ |
3600 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` |
3601 | if test "x$LINE" != x ; then | |
3602 | eval "DEFAULT_$LINE" | |
3603 | else | |
3604 | no_cache=1 | |
3605 | fi | |
3606 | ||
3607 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
698dcdb6 VZ |
3608 | |
3609 | fi | |
10f2d63a VZ |
3610 | |
3611 | ||
3612 | eval "$ac_cv_use_wave" | |
3613 | if test "$no_cache" != 1; then | |
3614 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
3615 | fi | |
3616 | ||
3617 | if test "$wxUSE_WAVE" = yes; then | |
698dcdb6 | 3618 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3619 | else |
698dcdb6 | 3620 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3621 | fi |
698dcdb6 | 3622 | |
10f2d63a | 3623 | |
698dcdb6 | 3624 | echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6 |
3bd8fb5f | 3625 | echo "configure:3626: checking for --enable-fraction" >&5 |
10f2d63a VZ |
3626 | no_cache=0 |
3627 | # Check whether --enable-fraction or --disable-fraction was given. | |
3628 | if test "${enable_fraction+set}" = set; then | |
3629 | enableval="$enable_fraction" | |
698dcdb6 | 3630 | |
10f2d63a VZ |
3631 | if test "$enableval" = yes; then |
3632 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
3633 | else | |
3634 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
3635 | fi | |
698dcdb6 | 3636 | |
10f2d63a | 3637 | else |
698dcdb6 | 3638 | |
10f2d63a VZ |
3639 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` |
3640 | if test "x$LINE" != x ; then | |
3641 | eval "DEFAULT_$LINE" | |
3642 | else | |
3643 | no_cache=1 | |
3644 | fi | |
3645 | ||
3646 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
698dcdb6 VZ |
3647 | |
3648 | fi | |
10f2d63a VZ |
3649 | |
3650 | ||
3651 | eval "$ac_cv_use_fraction" | |
3652 | if test "$no_cache" != 1; then | |
3653 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
3654 | fi | |
3655 | ||
3656 | if test "$wxUSE_FRACTION" = yes; then | |
698dcdb6 | 3657 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3658 | else |
698dcdb6 | 3659 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3660 | fi |
698dcdb6 | 3661 | |
10f2d63a | 3662 | |
698dcdb6 | 3663 | echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6 |
3bd8fb5f | 3664 | echo "configure:3665: checking for --enable-dynlib" >&5 |
10f2d63a VZ |
3665 | no_cache=0 |
3666 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
3667 | if test "${enable_dynlib+set}" = set; then | |
3668 | enableval="$enable_dynlib" | |
698dcdb6 | 3669 | |
10f2d63a VZ |
3670 | if test "$enableval" = yes; then |
3671 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
3672 | else | |
3673 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
3674 | fi | |
698dcdb6 | 3675 | |
10f2d63a | 3676 | else |
698dcdb6 | 3677 | |
10f2d63a VZ |
3678 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` |
3679 | if test "x$LINE" != x ; then | |
3680 | eval "DEFAULT_$LINE" | |
3681 | else | |
3682 | no_cache=1 | |
3683 | fi | |
3684 | ||
3685 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
698dcdb6 VZ |
3686 | |
3687 | fi | |
10f2d63a VZ |
3688 | |
3689 | ||
3690 | eval "$ac_cv_use_dynlib" | |
3691 | if test "$no_cache" != 1; then | |
3692 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
3693 | fi | |
3694 | ||
3695 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
698dcdb6 | 3696 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3697 | else |
698dcdb6 | 3698 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3699 | fi |
698dcdb6 | 3700 | |
10f2d63a | 3701 | |
0b9ab0bd | 3702 | echo $ac_n "checking for --enable-dynamicloader""... $ac_c" 1>&6 |
3bd8fb5f | 3703 | echo "configure:3704: checking for --enable-dynamicloader" >&5 |
0b9ab0bd RL |
3704 | no_cache=0 |
3705 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
3706 | if test "${enable_dynamicloader+set}" = set; then | |
3707 | enableval="$enable_dynamicloader" | |
3708 | ||
3709 | if test "$enableval" = yes; then | |
3710 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
3711 | else | |
3712 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
3713 | fi | |
3714 | ||
3715 | else | |
3716 | ||
3717 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` | |
3718 | if test "x$LINE" != x ; then | |
3719 | eval "DEFAULT_$LINE" | |
3720 | else | |
3721 | no_cache=1 | |
3722 | fi | |
3723 | ||
3724 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
3725 | ||
3726 | fi | |
3727 | ||
3728 | ||
3729 | eval "$ac_cv_use_dynamicloader" | |
3730 | if test "$no_cache" != 1; then | |
3731 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
3732 | fi | |
3733 | ||
3734 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
3735 | echo "$ac_t""yes" 1>&6 | |
3736 | else | |
3737 | echo "$ac_t""no" 1>&6 | |
3738 | fi | |
3739 | ||
3740 | ||
698dcdb6 | 3741 | echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6 |
3bd8fb5f | 3742 | echo "configure:3743: checking for --enable-longlong" >&5 |
10f2d63a VZ |
3743 | no_cache=0 |
3744 | # Check whether --enable-longlong or --disable-longlong was given. | |
3745 | if test "${enable_longlong+set}" = set; then | |
3746 | enableval="$enable_longlong" | |
698dcdb6 | 3747 | |
10f2d63a VZ |
3748 | if test "$enableval" = yes; then |
3749 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
3750 | else | |
3751 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
3752 | fi | |
698dcdb6 | 3753 | |
10f2d63a | 3754 | else |
698dcdb6 | 3755 | |
10f2d63a VZ |
3756 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` |
3757 | if test "x$LINE" != x ; then | |
3758 | eval "DEFAULT_$LINE" | |
3759 | else | |
3760 | no_cache=1 | |
3761 | fi | |
3762 | ||
3763 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
698dcdb6 VZ |
3764 | |
3765 | fi | |
10f2d63a VZ |
3766 | |
3767 | ||
3768 | eval "$ac_cv_use_longlong" | |
3769 | if test "$no_cache" != 1; then | |
3770 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
3771 | fi | |
3772 | ||
3773 | if test "$wxUSE_LONGLONG" = yes; then | |
698dcdb6 | 3774 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3775 | else |
698dcdb6 | 3776 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3777 | fi |
698dcdb6 | 3778 | |
10f2d63a | 3779 | |
698dcdb6 | 3780 | echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6 |
3bd8fb5f | 3781 | echo "configure:3782: checking for --enable-geometry" >&5 |
e8f65ba6 RR |
3782 | no_cache=0 |
3783 | # Check whether --enable-geometry or --disable-geometry was given. | |
3784 | if test "${enable_geometry+set}" = set; then | |
3785 | enableval="$enable_geometry" | |
698dcdb6 | 3786 | |
e8f65ba6 RR |
3787 | if test "$enableval" = yes; then |
3788 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
3789 | else | |
3790 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
3791 | fi | |
698dcdb6 | 3792 | |
e8f65ba6 | 3793 | else |
698dcdb6 | 3794 | |
e8f65ba6 RR |
3795 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` |
3796 | if test "x$LINE" != x ; then | |
3797 | eval "DEFAULT_$LINE" | |
3798 | else | |
3799 | no_cache=1 | |
3800 | fi | |
3801 | ||
3802 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
698dcdb6 VZ |
3803 | |
3804 | fi | |
e8f65ba6 RR |
3805 | |
3806 | ||
3807 | eval "$ac_cv_use_geometry" | |
3808 | if test "$no_cache" != 1; then | |
3809 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
3810 | fi | |
3811 | ||
3812 | if test "$wxUSE_GEOMETRY" = yes; then | |
698dcdb6 | 3813 | echo "$ac_t""yes" 1>&6 |
e8f65ba6 | 3814 | else |
698dcdb6 | 3815 | echo "$ac_t""no" 1>&6 |
e8f65ba6 | 3816 | fi |
698dcdb6 | 3817 | |
e8f65ba6 | 3818 | |
698dcdb6 | 3819 | echo $ac_n "checking for --enable-log""... $ac_c" 1>&6 |
3bd8fb5f | 3820 | echo "configure:3821: checking for --enable-log" >&5 |
10f2d63a VZ |
3821 | no_cache=0 |
3822 | # Check whether --enable-log or --disable-log was given. | |
3823 | if test "${enable_log+set}" = set; then | |
3824 | enableval="$enable_log" | |
698dcdb6 | 3825 | |
10f2d63a VZ |
3826 | if test "$enableval" = yes; then |
3827 | ac_cv_use_log='wxUSE_LOG=yes' | |
3828 | else | |
3829 | ac_cv_use_log='wxUSE_LOG=no' | |
3830 | fi | |
698dcdb6 | 3831 | |
10f2d63a | 3832 | else |
698dcdb6 | 3833 | |
10f2d63a VZ |
3834 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` |
3835 | if test "x$LINE" != x ; then | |
3836 | eval "DEFAULT_$LINE" | |
3837 | else | |
3838 | no_cache=1 | |
3839 | fi | |
3840 | ||
3841 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
698dcdb6 VZ |
3842 | |
3843 | fi | |
10f2d63a VZ |
3844 | |
3845 | ||
3846 | eval "$ac_cv_use_log" | |
3847 | if test "$no_cache" != 1; then | |
3848 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
3849 | fi | |
3850 | ||
3851 | if test "$wxUSE_LOG" = yes; then | |
698dcdb6 | 3852 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3853 | else |
698dcdb6 | 3854 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3855 | fi |
698dcdb6 | 3856 | |
10f2d63a | 3857 | |
698dcdb6 | 3858 | echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6 |
3bd8fb5f | 3859 | echo "configure:3860: checking for --enable-streams" >&5 |
10f2d63a VZ |
3860 | no_cache=0 |
3861 | # Check whether --enable-streams or --disable-streams was given. | |
3862 | if test "${enable_streams+set}" = set; then | |
3863 | enableval="$enable_streams" | |
698dcdb6 | 3864 | |
10f2d63a VZ |
3865 | if test "$enableval" = yes; then |
3866 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
3867 | else | |
3868 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
3869 | fi | |
698dcdb6 | 3870 | |
10f2d63a | 3871 | else |
698dcdb6 | 3872 | |
10f2d63a VZ |
3873 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` |
3874 | if test "x$LINE" != x ; then | |
3875 | eval "DEFAULT_$LINE" | |
3876 | else | |
3877 | no_cache=1 | |
3878 | fi | |
3879 | ||
3880 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
698dcdb6 VZ |
3881 | |
3882 | fi | |
10f2d63a VZ |
3883 | |
3884 | ||
3885 | eval "$ac_cv_use_streams" | |
3886 | if test "$no_cache" != 1; then | |
3887 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
3888 | fi | |
3889 | ||
3890 | if test "$wxUSE_STREAMS" = yes; then | |
698dcdb6 | 3891 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3892 | else |
698dcdb6 | 3893 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3894 | fi |
698dcdb6 | 3895 | |
10f2d63a | 3896 | |
698dcdb6 | 3897 | echo $ac_n "checking for --enable-file""... $ac_c" 1>&6 |
3bd8fb5f | 3898 | echo "configure:3899: checking for --enable-file" >&5 |
10f2d63a VZ |
3899 | no_cache=0 |
3900 | # Check whether --enable-file or --disable-file was given. | |
3901 | if test "${enable_file+set}" = set; then | |
3902 | enableval="$enable_file" | |
698dcdb6 | 3903 | |
10f2d63a VZ |
3904 | if test "$enableval" = yes; then |
3905 | ac_cv_use_file='wxUSE_FILE=yes' | |
3906 | else | |
3907 | ac_cv_use_file='wxUSE_FILE=no' | |
3908 | fi | |
698dcdb6 | 3909 | |
10f2d63a | 3910 | else |
698dcdb6 | 3911 | |
10f2d63a VZ |
3912 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` |
3913 | if test "x$LINE" != x ; then | |
3914 | eval "DEFAULT_$LINE" | |
3915 | else | |
3916 | no_cache=1 | |
3917 | fi | |
3918 | ||
3919 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
698dcdb6 VZ |
3920 | |
3921 | fi | |
10f2d63a VZ |
3922 | |
3923 | ||
3924 | eval "$ac_cv_use_file" | |
3925 | if test "$no_cache" != 1; then | |
3926 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
3927 | fi | |
3928 | ||
3929 | if test "$wxUSE_FILE" = yes; then | |
698dcdb6 | 3930 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3931 | else |
698dcdb6 | 3932 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3933 | fi |
698dcdb6 | 3934 | |
10f2d63a | 3935 | |
1e6feb95 | 3936 | echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6 |
3bd8fb5f | 3937 | echo "configure:3938: checking for --enable-ffile" >&5 |
10f2d63a | 3938 | no_cache=0 |
1e6feb95 VZ |
3939 | # Check whether --enable-ffile or --disable-ffile was given. |
3940 | if test "${enable_ffile+set}" = set; then | |
3941 | enableval="$enable_ffile" | |
698dcdb6 | 3942 | |
10f2d63a | 3943 | if test "$enableval" = yes; then |
1e6feb95 | 3944 | ac_cv_use_ffile='wxUSE_FFILE=yes' |
10f2d63a | 3945 | else |
1e6feb95 | 3946 | ac_cv_use_ffile='wxUSE_FFILE=no' |
10f2d63a | 3947 | fi |
698dcdb6 | 3948 | |
10f2d63a | 3949 | else |
698dcdb6 | 3950 | |
1e6feb95 | 3951 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
3952 | if test "x$LINE" != x ; then |
3953 | eval "DEFAULT_$LINE" | |
3954 | else | |
3955 | no_cache=1 | |
3956 | fi | |
3957 | ||
1e6feb95 | 3958 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE |
698dcdb6 VZ |
3959 | |
3960 | fi | |
10f2d63a VZ |
3961 | |
3962 | ||
1e6feb95 | 3963 | eval "$ac_cv_use_ffile" |
10f2d63a | 3964 | if test "$no_cache" != 1; then |
1e6feb95 | 3965 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3966 | fi |
3967 | ||
1e6feb95 | 3968 | if test "$wxUSE_FFILE" = yes; then |
698dcdb6 | 3969 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3970 | else |
698dcdb6 | 3971 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3972 | fi |
698dcdb6 | 3973 | |
10f2d63a | 3974 | |
a3a584a7 | 3975 | echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6 |
3bd8fb5f | 3976 | echo "configure:3977: checking for --enable-textbuf" >&5 |
a3a584a7 VZ |
3977 | no_cache=0 |
3978 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
3979 | if test "${enable_textbuf+set}" = set; then | |
3980 | enableval="$enable_textbuf" | |
3981 | ||
3982 | if test "$enableval" = yes; then | |
3983 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
3984 | else | |
3985 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
3986 | fi | |
3987 | ||
3988 | else | |
3989 | ||
3990 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` | |
3991 | if test "x$LINE" != x ; then | |
3992 | eval "DEFAULT_$LINE" | |
3993 | else | |
3994 | no_cache=1 | |
3995 | fi | |
3996 | ||
3997 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
3998 | ||
3999 | fi | |
4000 | ||
4001 | ||
4002 | eval "$ac_cv_use_textbuf" | |
4003 | if test "$no_cache" != 1; then | |
4004 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
4005 | fi | |
4006 | ||
4007 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
4008 | echo "$ac_t""yes" 1>&6 | |
4009 | else | |
4010 | echo "$ac_t""no" 1>&6 | |
4011 | fi | |
4012 | ||
4013 | ||
1e6feb95 | 4014 | echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6 |
3bd8fb5f | 4015 | echo "configure:4016: checking for --enable-textfile" >&5 |
10f2d63a | 4016 | no_cache=0 |
1e6feb95 VZ |
4017 | # Check whether --enable-textfile or --disable-textfile was given. |
4018 | if test "${enable_textfile+set}" = set; then | |
4019 | enableval="$enable_textfile" | |
698dcdb6 | 4020 | |
10f2d63a | 4021 | if test "$enableval" = yes; then |
1e6feb95 | 4022 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' |
10f2d63a | 4023 | else |
1e6feb95 | 4024 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' |
10f2d63a | 4025 | fi |
698dcdb6 | 4026 | |
10f2d63a | 4027 | else |
698dcdb6 | 4028 | |
1e6feb95 | 4029 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4030 | if test "x$LINE" != x ; then |
4031 | eval "DEFAULT_$LINE" | |
4032 | else | |
4033 | no_cache=1 | |
4034 | fi | |
4035 | ||
1e6feb95 | 4036 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE |
698dcdb6 VZ |
4037 | |
4038 | fi | |
10f2d63a VZ |
4039 | |
4040 | ||
1e6feb95 | 4041 | eval "$ac_cv_use_textfile" |
10f2d63a | 4042 | if test "$no_cache" != 1; then |
1e6feb95 | 4043 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4044 | fi |
4045 | ||
1e6feb95 | 4046 | if test "$wxUSE_TEXTFILE" = yes; then |
698dcdb6 | 4047 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4048 | else |
698dcdb6 | 4049 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4050 | fi |
698dcdb6 | 4051 | |
10f2d63a | 4052 | |
1e6feb95 | 4053 | echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6 |
3bd8fb5f | 4054 | echo "configure:4055: checking for --enable-fontmap" >&5 |
10f2d63a | 4055 | no_cache=0 |
1e6feb95 VZ |
4056 | # Check whether --enable-fontmap or --disable-fontmap was given. |
4057 | if test "${enable_fontmap+set}" = set; then | |
4058 | enableval="$enable_fontmap" | |
698dcdb6 | 4059 | |
10f2d63a | 4060 | if test "$enableval" = yes; then |
1e6feb95 | 4061 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' |
10f2d63a | 4062 | else |
1e6feb95 | 4063 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' |
10f2d63a | 4064 | fi |
698dcdb6 | 4065 | |
10f2d63a | 4066 | else |
698dcdb6 | 4067 | |
1e6feb95 | 4068 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` |
10f2d63a VZ |
4069 | if test "x$LINE" != x ; then |
4070 | eval "DEFAULT_$LINE" | |
4071 | else | |
4072 | no_cache=1 | |
4073 | fi | |
4074 | ||
1e6feb95 | 4075 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP |
698dcdb6 VZ |
4076 | |
4077 | fi | |
10f2d63a VZ |
4078 | |
4079 | ||
1e6feb95 | 4080 | eval "$ac_cv_use_fontmap" |
10f2d63a | 4081 | if test "$no_cache" != 1; then |
1e6feb95 | 4082 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4083 | fi |
4084 | ||
1e6feb95 | 4085 | if test "$wxUSE_FONTMAP" = yes; then |
698dcdb6 | 4086 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4087 | else |
698dcdb6 | 4088 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4089 | fi |
698dcdb6 | 4090 | |
10f2d63a | 4091 | |
1e6feb95 | 4092 | echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6 |
3bd8fb5f | 4093 | echo "configure:4094: checking for --enable-unicode" >&5 |
10f2d63a | 4094 | no_cache=0 |
1e6feb95 VZ |
4095 | # Check whether --enable-unicode or --disable-unicode was given. |
4096 | if test "${enable_unicode+set}" = set; then | |
4097 | enableval="$enable_unicode" | |
4098 | ||
4099 | if test "$enableval" = yes; then | |
4100 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
4101 | else | |
4102 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
4103 | fi | |
4104 | ||
4105 | else | |
4106 | ||
4107 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
4108 | if test "x$LINE" != x ; then | |
4109 | eval "DEFAULT_$LINE" | |
4110 | else | |
4111 | no_cache=1 | |
4112 | fi | |
4113 | ||
4114 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
4115 | ||
4116 | fi | |
4117 | ||
4118 | ||
4119 | eval "$ac_cv_use_unicode" | |
4120 | if test "$no_cache" != 1; then | |
4121 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
4122 | fi | |
4123 | ||
4124 | if test "$wxUSE_UNICODE" = yes; then | |
4125 | echo "$ac_t""yes" 1>&6 | |
4126 | else | |
4127 | echo "$ac_t""no" 1>&6 | |
4128 | fi | |
4129 | ||
4130 | ||
a72a4bfa | 4131 | echo $ac_n "checking for --enable-mslu""... $ac_c" 1>&6 |
3bd8fb5f | 4132 | echo "configure:4133: checking for --enable-mslu" >&5 |
a72a4bfa VS |
4133 | no_cache=0 |
4134 | # Check whether --enable-mslu or --disable-mslu was given. | |
4135 | if test "${enable_mslu+set}" = set; then | |
4136 | enableval="$enable_mslu" | |
4137 | ||
4138 | if test "$enableval" = yes; then | |
4139 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
4140 | else | |
4141 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
4142 | fi | |
4143 | ||
4144 | else | |
4145 | ||
4146 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` | |
4147 | if test "x$LINE" != x ; then | |
4148 | eval "DEFAULT_$LINE" | |
4149 | else | |
4150 | no_cache=1 | |
4151 | fi | |
4152 | ||
4153 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
4154 | ||
4155 | fi | |
4156 | ||
4157 | ||
4158 | eval "$ac_cv_use_mslu" | |
4159 | if test "$no_cache" != 1; then | |
4160 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
4161 | fi | |
4162 | ||
4163 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
4164 | echo "$ac_t""yes" 1>&6 | |
4165 | else | |
4166 | echo "$ac_t""no" 1>&6 | |
4167 | fi | |
4168 | ||
4169 | ||
1e6feb95 | 4170 | echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6 |
3bd8fb5f | 4171 | echo "configure:4172: checking for --enable-wxprintfv" >&5 |
1e6feb95 VZ |
4172 | no_cache=0 |
4173 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
4174 | if test "${enable_wxprintfv+set}" = set; then | |
4175 | enableval="$enable_wxprintfv" | |
4176 | ||
4177 | if test "$enableval" = yes; then | |
10f2d63a VZ |
4178 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' |
4179 | else | |
4180 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
4181 | fi | |
698dcdb6 | 4182 | |
10f2d63a | 4183 | else |
698dcdb6 | 4184 | |
10f2d63a VZ |
4185 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` |
4186 | if test "x$LINE" != x ; then | |
4187 | eval "DEFAULT_$LINE" | |
4188 | else | |
4189 | no_cache=1 | |
4190 | fi | |
4191 | ||
4192 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
698dcdb6 VZ |
4193 | |
4194 | fi | |
10f2d63a VZ |
4195 | |
4196 | ||
4197 | eval "$ac_cv_use_wxprintfv" | |
4198 | if test "$no_cache" != 1; then | |
4199 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
4200 | fi | |
4201 | ||
4202 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
698dcdb6 | 4203 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4204 | else |
698dcdb6 | 4205 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4206 | fi |
698dcdb6 | 4207 | |
10f2d63a | 4208 | |
698dcdb6 | 4209 | echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6 |
3bd8fb5f | 4210 | echo "configure:4211: checking for --enable-std_iostreams" >&5 |
10f2d63a VZ |
4211 | no_cache=0 |
4212 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
4213 | if test "${enable_std_iostreams+set}" = set; then | |
4214 | enableval="$enable_std_iostreams" | |
698dcdb6 | 4215 | |
10f2d63a VZ |
4216 | if test "$enableval" = yes; then |
4217 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
4218 | else | |
4219 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
4220 | fi | |
698dcdb6 | 4221 | |
10f2d63a | 4222 | else |
698dcdb6 | 4223 | |
10f2d63a VZ |
4224 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
4225 | if test "x$LINE" != x ; then | |
4226 | eval "DEFAULT_$LINE" | |
4227 | else | |
4228 | no_cache=1 | |
4229 | fi | |
4230 | ||
4231 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
698dcdb6 VZ |
4232 | |
4233 | fi | |
10f2d63a VZ |
4234 | |
4235 | ||
4236 | eval "$ac_cv_use_std_iostreams" | |
4237 | if test "$no_cache" != 1; then | |
4238 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
4239 | fi | |
4240 | ||
4241 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
698dcdb6 | 4242 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4243 | else |
698dcdb6 | 4244 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4245 | fi |
698dcdb6 | 4246 | |
10f2d63a | 4247 | |
698dcdb6 | 4248 | echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6 |
3bd8fb5f | 4249 | echo "configure:4250: checking for --enable-filesystem" >&5 |
24528b0c VS |
4250 | no_cache=0 |
4251 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
4252 | if test "${enable_filesystem+set}" = set; then | |
4253 | enableval="$enable_filesystem" | |
698dcdb6 | 4254 | |
24528b0c VS |
4255 | if test "$enableval" = yes; then |
4256 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
4257 | else | |
4258 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
4259 | fi | |
698dcdb6 | 4260 | |
24528b0c | 4261 | else |
698dcdb6 | 4262 | |
24528b0c VS |
4263 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` |
4264 | if test "x$LINE" != x ; then | |
4265 | eval "DEFAULT_$LINE" | |
4266 | else | |
4267 | no_cache=1 | |
4268 | fi | |
4269 | ||
4270 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
698dcdb6 VZ |
4271 | |
4272 | fi | |
24528b0c VS |
4273 | |
4274 | ||
4275 | eval "$ac_cv_use_filesystem" | |
4276 | if test "$no_cache" != 1; then | |
4277 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
4278 | fi | |
4279 | ||
4280 | if test "$wxUSE_FILESYSTEM" = yes; then | |
698dcdb6 | 4281 | echo "$ac_t""yes" 1>&6 |
24528b0c | 4282 | else |
698dcdb6 | 4283 | echo "$ac_t""no" 1>&6 |
24528b0c | 4284 | fi |
698dcdb6 | 4285 | |
24528b0c | 4286 | |
698dcdb6 | 4287 | echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6 |
3bd8fb5f | 4288 | echo "configure:4289: checking for --enable-fs_inet" >&5 |
10f2d63a VZ |
4289 | no_cache=0 |
4290 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
4291 | if test "${enable_fs_inet+set}" = set; then | |
4292 | enableval="$enable_fs_inet" | |
698dcdb6 | 4293 | |
10f2d63a VZ |
4294 | if test "$enableval" = yes; then |
4295 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
4296 | else | |
4297 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
4298 | fi | |
698dcdb6 | 4299 | |
10f2d63a | 4300 | else |
698dcdb6 | 4301 | |
10f2d63a VZ |
4302 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` |
4303 | if test "x$LINE" != x ; then | |
4304 | eval "DEFAULT_$LINE" | |
4305 | else | |
4306 | no_cache=1 | |
4307 | fi | |
4308 | ||
4309 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
698dcdb6 VZ |
4310 | |
4311 | fi | |
10f2d63a VZ |
4312 | |
4313 | ||
4314 | eval "$ac_cv_use_fs_inet" | |
4315 | if test "$no_cache" != 1; then | |
4316 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
4317 | fi | |
4318 | ||
4319 | if test "$wxUSE_FS_INET" = yes; then | |
698dcdb6 | 4320 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4321 | else |
698dcdb6 | 4322 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4323 | fi |
698dcdb6 | 4324 | |
10f2d63a | 4325 | |
698dcdb6 | 4326 | echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6 |
3bd8fb5f | 4327 | echo "configure:4328: checking for --enable-fs_zip" >&5 |
10f2d63a VZ |
4328 | no_cache=0 |
4329 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
4330 | if test "${enable_fs_zip+set}" = set; then | |
4331 | enableval="$enable_fs_zip" | |
698dcdb6 | 4332 | |
10f2d63a VZ |
4333 | if test "$enableval" = yes; then |
4334 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
4335 | else | |
4336 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
4337 | fi | |
698dcdb6 | 4338 | |
10f2d63a | 4339 | else |
698dcdb6 | 4340 | |
10f2d63a VZ |
4341 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` |
4342 | if test "x$LINE" != x ; then | |
4343 | eval "DEFAULT_$LINE" | |
4344 | else | |
4345 | no_cache=1 | |
4346 | fi | |
4347 | ||
4348 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
698dcdb6 VZ |
4349 | |
4350 | fi | |
10f2d63a VZ |
4351 | |
4352 | ||
4353 | eval "$ac_cv_use_fs_zip" | |
4354 | if test "$no_cache" != 1; then | |
4355 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
4356 | fi | |
4357 | ||
4358 | if test "$wxUSE_FS_ZIP" = yes; then | |
698dcdb6 | 4359 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4360 | else |
698dcdb6 | 4361 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4362 | fi |
698dcdb6 | 4363 | |
10f2d63a | 4364 | |
698dcdb6 | 4365 | echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6 |
3bd8fb5f | 4366 | echo "configure:4367: checking for --enable-zipstream" >&5 |
10f2d63a VZ |
4367 | no_cache=0 |
4368 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
4369 | if test "${enable_zipstream+set}" = set; then | |
4370 | enableval="$enable_zipstream" | |
698dcdb6 | 4371 | |
10f2d63a VZ |
4372 | if test "$enableval" = yes; then |
4373 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
4374 | else | |
4375 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
4376 | fi | |
698dcdb6 | 4377 | |
10f2d63a | 4378 | else |
698dcdb6 | 4379 | |
10f2d63a VZ |
4380 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` |
4381 | if test "x$LINE" != x ; then | |
4382 | eval "DEFAULT_$LINE" | |
4383 | else | |
4384 | no_cache=1 | |
4385 | fi | |
4386 | ||
4387 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
698dcdb6 VZ |
4388 | |
4389 | fi | |
10f2d63a VZ |
4390 | |
4391 | ||
4392 | eval "$ac_cv_use_zipstream" | |
4393 | if test "$no_cache" != 1; then | |
4394 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
4395 | fi | |
4396 | ||
4397 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
698dcdb6 | 4398 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4399 | else |
698dcdb6 | 4400 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4401 | fi |
698dcdb6 | 4402 | |
10f2d63a | 4403 | |
698dcdb6 VZ |
4404 | |
4405 | echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6 | |
3bd8fb5f | 4406 | echo "configure:4407: checking for --enable-catch_segvs" >&5 |
eb4efbdc VZ |
4407 | no_cache=0 |
4408 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
4409 | if test "${enable_catch_segvs+set}" = set; then | |
4410 | enableval="$enable_catch_segvs" | |
698dcdb6 | 4411 | |
eb4efbdc VZ |
4412 | if test "$enableval" = yes; then |
4413 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
4414 | else | |
4415 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
4416 | fi | |
698dcdb6 | 4417 | |
eb4efbdc | 4418 | else |
698dcdb6 | 4419 | |
eb4efbdc VZ |
4420 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
4421 | if test "x$LINE" != x ; then | |
4422 | eval "DEFAULT_$LINE" | |
4423 | else | |
4424 | no_cache=1 | |
4425 | fi | |
4426 | ||
4427 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
698dcdb6 VZ |
4428 | |
4429 | fi | |
eb4efbdc VZ |
4430 | |
4431 | ||
4432 | eval "$ac_cv_use_catch_segvs" | |
4433 | if test "$no_cache" != 1; then | |
4434 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4435 | fi | |
4436 | ||
4437 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
698dcdb6 | 4438 | echo "$ac_t""yes" 1>&6 |
eb4efbdc | 4439 | else |
698dcdb6 | 4440 | echo "$ac_t""no" 1>&6 |
eb4efbdc | 4441 | fi |
698dcdb6 | 4442 | |
eb4efbdc | 4443 | |
698dcdb6 | 4444 | echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6 |
3bd8fb5f | 4445 | echo "configure:4446: checking for --enable-snglinst" >&5 |
4f3c5f06 VZ |
4446 | no_cache=0 |
4447 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
4448 | if test "${enable_snglinst+set}" = set; then | |
4449 | enableval="$enable_snglinst" | |
698dcdb6 | 4450 | |
4f3c5f06 VZ |
4451 | if test "$enableval" = yes; then |
4452 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
4453 | else | |
4454 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
4455 | fi | |
698dcdb6 | 4456 | |
4f3c5f06 | 4457 | else |
698dcdb6 | 4458 | |
4f3c5f06 VZ |
4459 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` |
4460 | if test "x$LINE" != x ; then | |
4461 | eval "DEFAULT_$LINE" | |
4462 | else | |
4463 | no_cache=1 | |
4464 | fi | |
4465 | ||
4466 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
698dcdb6 VZ |
4467 | |
4468 | fi | |
4f3c5f06 VZ |
4469 | |
4470 | ||
4471 | eval "$ac_cv_use_snglinst" | |
4472 | if test "$no_cache" != 1; then | |
4473 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
4474 | fi | |
4475 | ||
4476 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
698dcdb6 | 4477 | echo "$ac_t""yes" 1>&6 |
4f3c5f06 | 4478 | else |
698dcdb6 | 4479 | echo "$ac_t""no" 1>&6 |
4f3c5f06 | 4480 | fi |
698dcdb6 VZ |
4481 | |
4482 | ||
eb4efbdc | 4483 | |
1e6feb95 | 4484 | echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6 |
3bd8fb5f | 4485 | echo "configure:4486: checking for --enable-mimetype" >&5 |
1e6feb95 VZ |
4486 | no_cache=0 |
4487 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
4488 | if test "${enable_mimetype+set}" = set; then | |
4489 | enableval="$enable_mimetype" | |
4490 | ||
4491 | if test "$enableval" = yes; then | |
4492 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
4493 | else | |
4494 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
4495 | fi | |
4496 | ||
4497 | else | |
4498 | ||
4499 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
4500 | if test "x$LINE" != x ; then | |
4501 | eval "DEFAULT_$LINE" | |
4502 | else | |
4503 | no_cache=1 | |
4504 | fi | |
4505 | ||
4506 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
4507 | ||
4508 | fi | |
4509 | ||
4510 | ||
4511 | eval "$ac_cv_use_mimetype" | |
4512 | if test "$no_cache" != 1; then | |
4513 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
4514 | fi | |
4515 | ||
4516 | if test "$wxUSE_MIMETYPE" = yes; then | |
4517 | echo "$ac_t""yes" 1>&6 | |
4518 | else | |
4519 | echo "$ac_t""no" 1>&6 | |
4520 | fi | |
4521 | ||
4522 | ||
3e44f09d | 4523 | echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6 |
3bd8fb5f | 4524 | echo "configure:4525: checking for --enable-system_options" >&5 |
3e44f09d VZ |
4525 | no_cache=0 |
4526 | # Check whether --enable-system_options or --disable-system_options was given. | |
4527 | if test "${enable_system_options+set}" = set; then | |
4528 | enableval="$enable_system_options" | |
4529 | ||
4530 | if test "$enableval" = yes; then | |
4531 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
4532 | else | |
4533 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
4534 | fi | |
4535 | ||
4536 | else | |
4537 | ||
4538 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` | |
4539 | if test "x$LINE" != x ; then | |
4540 | eval "DEFAULT_$LINE" | |
4541 | else | |
4542 | no_cache=1 | |
4543 | fi | |
4544 | ||
4545 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
4546 | ||
4547 | fi | |
4548 | ||
4549 | ||
4550 | eval "$ac_cv_use_system_options" | |
4551 | if test "$no_cache" != 1; then | |
4552 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
4553 | fi | |
4554 | ||
4555 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
4556 | echo "$ac_t""yes" 1>&6 | |
4557 | else | |
4558 | echo "$ac_t""no" 1>&6 | |
4559 | fi | |
4560 | ||
4561 | ||
1e6feb95 | 4562 | |
4cdb0ab0 | 4563 | echo $ac_n "checking for --enable-url""... $ac_c" 1>&6 |
3bd8fb5f | 4564 | echo "configure:4565: checking for --enable-url" >&5 |
4cdb0ab0 VS |
4565 | no_cache=0 |
4566 | # Check whether --enable-url or --disable-url was given. | |
4567 | if test "${enable_url+set}" = set; then | |
4568 | enableval="$enable_url" | |
4569 | ||
4570 | if test "$enableval" = yes; then | |
4571 | ac_cv_use_url='wxUSE_URL=yes' | |
4572 | else | |
4573 | ac_cv_use_url='wxUSE_URL=no' | |
4574 | fi | |
4575 | ||
4576 | else | |
4577 | ||
4578 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` | |
4579 | if test "x$LINE" != x ; then | |
4580 | eval "DEFAULT_$LINE" | |
4581 | else | |
4582 | no_cache=1 | |
4583 | fi | |
4584 | ||
4585 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
4586 | ||
4587 | fi | |
4588 | ||
4589 | ||
4590 | eval "$ac_cv_use_url" | |
4591 | if test "$no_cache" != 1; then | |
4592 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
4593 | fi | |
4594 | ||
4595 | if test "$wxUSE_URL" = yes; then | |
4596 | echo "$ac_t""yes" 1>&6 | |
4597 | else | |
4598 | echo "$ac_t""no" 1>&6 | |
4599 | fi | |
4600 | ||
4601 | ||
4602 | echo $ac_n "checking for --enable-protocol""... $ac_c" 1>&6 | |
3bd8fb5f | 4603 | echo "configure:4604: checking for --enable-protocol" >&5 |
4cdb0ab0 VS |
4604 | no_cache=0 |
4605 | # Check whether --enable-protocol or --disable-protocol was given. | |
4606 | if test "${enable_protocol+set}" = set; then | |
4607 | enableval="$enable_protocol" | |
4608 | ||
4609 | if test "$enableval" = yes; then | |
4610 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
4611 | else | |
4612 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
4613 | fi | |
4614 | ||
4615 | else | |
4616 | ||
4617 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
4618 | if test "x$LINE" != x ; then | |
4619 | eval "DEFAULT_$LINE" | |
4620 | else | |
4621 | no_cache=1 | |
4622 | fi | |
4623 | ||
4624 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
4625 | ||
4626 | fi | |
4627 | ||
4628 | ||
4629 | eval "$ac_cv_use_protocol" | |
4630 | if test "$no_cache" != 1; then | |
4631 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
4632 | fi | |
4633 | ||
4634 | if test "$wxUSE_PROTOCOL" = yes; then | |
4635 | echo "$ac_t""yes" 1>&6 | |
4636 | else | |
4637 | echo "$ac_t""no" 1>&6 | |
4638 | fi | |
4639 | ||
4640 | ||
4641 | echo $ac_n "checking for --enable-protocol_http""... $ac_c" 1>&6 | |
3bd8fb5f | 4642 | echo "configure:4643: checking for --enable-protocol_http" >&5 |
4cdb0ab0 VS |
4643 | no_cache=0 |
4644 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
4645 | if test "${enable_protocol_http+set}" = set; then | |
4646 | enableval="$enable_protocol_http" | |
4647 | ||
4648 | if test "$enableval" = yes; then | |
4649 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
4650 | else | |
4651 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
4652 | fi | |
4653 | ||
4654 | else | |
4655 | ||
4656 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
4657 | if test "x$LINE" != x ; then | |
4658 | eval "DEFAULT_$LINE" | |
4659 | else | |
4660 | no_cache=1 | |
4661 | fi | |
4662 | ||
4663 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
4664 | ||
4665 | fi | |
4666 | ||
4667 | ||
4668 | eval "$ac_cv_use_protocol_http" | |
4669 | if test "$no_cache" != 1; then | |
4670 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
4671 | fi | |
4672 | ||
4673 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
4674 | echo "$ac_t""yes" 1>&6 | |
4675 | else | |
4676 | echo "$ac_t""no" 1>&6 | |
4677 | fi | |
4678 | ||
4679 | ||
4680 | echo $ac_n "checking for --enable-protocol_ftp""... $ac_c" 1>&6 | |
3bd8fb5f | 4681 | echo "configure:4682: checking for --enable-protocol_ftp" >&5 |
4cdb0ab0 VS |
4682 | no_cache=0 |
4683 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
4684 | if test "${enable_protocol_ftp+set}" = set; then | |
4685 | enableval="$enable_protocol_ftp" | |
4686 | ||
4687 | if test "$enableval" = yes; then | |
4688 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4689 | else | |
4690 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
4691 | fi | |
4692 | ||
4693 | else | |
4694 | ||
4695 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
4696 | if test "x$LINE" != x ; then | |
4697 | eval "DEFAULT_$LINE" | |
4698 | else | |
4699 | no_cache=1 | |
4700 | fi | |
4701 | ||
4702 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
4703 | ||
4704 | fi | |
4705 | ||
4706 | ||
4707 | eval "$ac_cv_use_protocol_ftp" | |
4708 | if test "$no_cache" != 1; then | |
4709 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
4710 | fi | |
4711 | ||
4712 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
4713 | echo "$ac_t""yes" 1>&6 | |
4714 | else | |
4715 | echo "$ac_t""no" 1>&6 | |
4716 | fi | |
4717 | ||
4718 | ||
4719 | echo $ac_n "checking for --enable-protocol_file""... $ac_c" 1>&6 | |
3bd8fb5f | 4720 | echo "configure:4721: checking for --enable-protocol_file" >&5 |
4cdb0ab0 VS |
4721 | no_cache=0 |
4722 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
4723 | if test "${enable_protocol_file+set}" = set; then | |
4724 | enableval="$enable_protocol_file" | |
4725 | ||
4726 | if test "$enableval" = yes; then | |
4727 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
4728 | else | |
4729 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
4730 | fi | |
4731 | ||
4732 | else | |
4733 | ||
4734 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
4735 | if test "x$LINE" != x ; then | |
4736 | eval "DEFAULT_$LINE" | |
4737 | else | |
4738 | no_cache=1 | |
4739 | fi | |
4740 | ||
4741 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
4742 | ||
4743 | fi | |
4744 | ||
4745 | ||
4746 | eval "$ac_cv_use_protocol_file" | |
4747 | if test "$no_cache" != 1; then | |
4748 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
4749 | fi | |
4750 | ||
4751 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
4752 | echo "$ac_t""yes" 1>&6 | |
4753 | else | |
4754 | echo "$ac_t""no" 1>&6 | |
4755 | fi | |
4756 | ||
4757 | ||
4758 | ||
4759 | ||
698dcdb6 VZ |
4760 | |
4761 | echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6 | |
3bd8fb5f | 4762 | echo "configure:4763: checking for --enable-threads" >&5 |
10f2d63a VZ |
4763 | no_cache=0 |
4764 | # Check whether --enable-threads or --disable-threads was given. | |
4765 | if test "${enable_threads+set}" = set; then | |
4766 | enableval="$enable_threads" | |
698dcdb6 | 4767 | |
10f2d63a VZ |
4768 | if test "$enableval" = yes; then |
4769 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
4770 | else | |
4771 | ac_cv_use_threads='wxUSE_THREADS=no' | |
4772 | fi | |
698dcdb6 | 4773 | |
10f2d63a | 4774 | else |
698dcdb6 | 4775 | |
10f2d63a VZ |
4776 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` |
4777 | if test "x$LINE" != x ; then | |
4778 | eval "DEFAULT_$LINE" | |
4779 | else | |
4780 | no_cache=1 | |
4781 | fi | |
4782 | ||
4783 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
698dcdb6 VZ |
4784 | |
4785 | fi | |
10f2d63a VZ |
4786 | |
4787 | ||
4788 | eval "$ac_cv_use_threads" | |
4789 | if test "$no_cache" != 1; then | |
4790 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
4791 | fi | |
4792 | ||
4793 | if test "$wxUSE_THREADS" = yes; then | |
698dcdb6 | 4794 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4795 | else |
698dcdb6 | 4796 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4797 | fi |
698dcdb6 | 4798 | |
10f2d63a | 4799 | |
b12915c1 VZ |
4800 | if test "$wxUSE_GUI" = "yes"; then |
4801 | ||
698dcdb6 VZ |
4802 | |
4803 | ||
4804 | echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6 | |
3bd8fb5f | 4805 | echo "configure:4806: checking for --enable-docview" >&5 |
10f2d63a VZ |
4806 | no_cache=0 |
4807 | # Check whether --enable-docview or --disable-docview was given. | |
4808 | if test "${enable_docview+set}" = set; then | |
4809 | enableval="$enable_docview" | |
698dcdb6 | 4810 | |
10f2d63a VZ |
4811 | if test "$enableval" = yes; then |
4812 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
4813 | else | |
4814 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
4815 | fi | |
698dcdb6 | 4816 | |
10f2d63a | 4817 | else |
698dcdb6 | 4818 | |
10f2d63a VZ |
4819 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` |
4820 | if test "x$LINE" != x ; then | |
4821 | eval "DEFAULT_$LINE" | |
4822 | else | |
4823 | no_cache=1 | |
4824 | fi | |
4825 | ||
4826 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
698dcdb6 VZ |
4827 | |
4828 | fi | |
10f2d63a VZ |
4829 | |
4830 | ||
4831 | eval "$ac_cv_use_docview" | |
4832 | if test "$no_cache" != 1; then | |
4833 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
4834 | fi | |
4835 | ||
4836 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
698dcdb6 | 4837 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4838 | else |
698dcdb6 | 4839 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4840 | fi |
698dcdb6 | 4841 | |
10f2d63a | 4842 | |
698dcdb6 | 4843 | echo $ac_n "checking for --enable-help""... $ac_c" 1>&6 |
3bd8fb5f | 4844 | echo "configure:4845: checking for --enable-help" >&5 |
10f2d63a VZ |
4845 | no_cache=0 |
4846 | # Check whether --enable-help or --disable-help was given. | |
4847 | if test "${enable_help+set}" = set; then | |
4848 | enableval="$enable_help" | |
698dcdb6 | 4849 | |
10f2d63a VZ |
4850 | if test "$enableval" = yes; then |
4851 | ac_cv_use_help='wxUSE_HELP=yes' | |
4852 | else | |
4853 | ac_cv_use_help='wxUSE_HELP=no' | |
4854 | fi | |
698dcdb6 | 4855 | |
10f2d63a | 4856 | else |
698dcdb6 | 4857 | |
10f2d63a VZ |
4858 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` |
4859 | if test "x$LINE" != x ; then | |
4860 | eval "DEFAULT_$LINE" | |
4861 | else | |
4862 | no_cache=1 | |
4863 | fi | |
4864 | ||
4865 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
698dcdb6 VZ |
4866 | |
4867 | fi | |
10f2d63a VZ |
4868 | |
4869 | ||
4870 | eval "$ac_cv_use_help" | |
4871 | if test "$no_cache" != 1; then | |
4872 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
4873 | fi | |
4874 | ||
4875 | if test "$wxUSE_HELP" = yes; then | |
698dcdb6 | 4876 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4877 | else |
698dcdb6 | 4878 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4879 | fi |
698dcdb6 | 4880 | |
10f2d63a | 4881 | |
29fd3c0c | 4882 | echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6 |
3bd8fb5f | 4883 | echo "configure:4884: checking for --enable-mshtmlhelp" >&5 |
29fd3c0c VS |
4884 | no_cache=0 |
4885 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
4886 | if test "${enable_mshtmlhelp+set}" = set; then | |
4887 | enableval="$enable_mshtmlhelp" | |
4888 | ||
4889 | if test "$enableval" = yes; then | |
4890 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
4891 | else | |
4892 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
4893 | fi | |
4894 | ||
4895 | else | |
4896 | ||
4897 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` | |
4898 | if test "x$LINE" != x ; then | |
4899 | eval "DEFAULT_$LINE" | |
4900 | else | |
4901 | no_cache=1 | |
4902 | fi | |
4903 | ||
4904 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
4905 | ||
4906 | fi | |
4907 | ||
4908 | ||
4909 | eval "$ac_cv_use_mshtmlhelp" | |
4910 | if test "$no_cache" != 1; then | |
4911 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
4912 | fi | |
4913 | ||
4914 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
4915 | echo "$ac_t""yes" 1>&6 | |
4916 | else | |
4917 | echo "$ac_t""no" 1>&6 | |
4918 | fi | |
4919 | ||
4920 | ||
3379ed37 | 4921 | echo $ac_n "checking for --enable-html""... $ac_c" 1>&6 |
3bd8fb5f | 4922 | echo "configure:4923: checking for --enable-html" >&5 |
3379ed37 VZ |
4923 | no_cache=0 |
4924 | # Check whether --enable-html or --disable-html was given. | |
4925 | if test "${enable_html+set}" = set; then | |
4926 | enableval="$enable_html" | |
4927 | ||
4928 | if test "$enableval" = yes; then | |
4929 | ac_cv_use_html='wxUSE_HTML=yes' | |
4930 | else | |
4931 | ac_cv_use_html='wxUSE_HTML=no' | |
4932 | fi | |
4933 | ||
4934 | else | |
4935 | ||
4936 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
4937 | if test "x$LINE" != x ; then | |
4938 | eval "DEFAULT_$LINE" | |
4939 | else | |
4940 | no_cache=1 | |
4941 | fi | |
4942 | ||
4943 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
4944 | ||
4945 | fi | |
4946 | ||
4947 | ||
4948 | eval "$ac_cv_use_html" | |
4949 | if test "$no_cache" != 1; then | |
4950 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
4951 | fi | |
4952 | ||
4953 | if test "$wxUSE_HTML" = yes; then | |
4954 | echo "$ac_t""yes" 1>&6 | |
4955 | else | |
4956 | echo "$ac_t""no" 1>&6 | |
4957 | fi | |
4958 | ||
4959 | ||
4960 | echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6 | |
3bd8fb5f | 4961 | echo "configure:4962: checking for --enable-htmlhelp" >&5 |
3379ed37 VZ |
4962 | no_cache=0 |
4963 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
4964 | if test "${enable_htmlhelp+set}" = set; then | |
4965 | enableval="$enable_htmlhelp" | |
4966 | ||
4967 | if test "$enableval" = yes; then | |
4968 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
4969 | else | |
4970 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
4971 | fi | |
4972 | ||
4973 | else | |
4974 | ||
4975 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` | |
4976 | if test "x$LINE" != x ; then | |
4977 | eval "DEFAULT_$LINE" | |
4978 | else | |
4979 | no_cache=1 | |
4980 | fi | |
4981 | ||
4982 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
4983 | ||
4984 | fi | |
4985 | ||
4986 | ||
4987 | eval "$ac_cv_use_htmlhelp" | |
4988 | if test "$no_cache" != 1; then | |
4989 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
4990 | fi | |
4991 | ||
4992 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
4993 | echo "$ac_t""yes" 1>&6 | |
4994 | else | |
4995 | echo "$ac_t""no" 1>&6 | |
4996 | fi | |
4997 | ||
4998 | ||
698dcdb6 | 4999 | echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6 |
3bd8fb5f | 5000 | echo "configure:5001: checking for --enable-constraints" >&5 |
10f2d63a VZ |
5001 | no_cache=0 |
5002 | # Check whether --enable-constraints or --disable-constraints was given. | |
5003 | if test "${enable_constraints+set}" = set; then | |
5004 | enableval="$enable_constraints" | |
698dcdb6 | 5005 | |
10f2d63a VZ |
5006 | if test "$enableval" = yes; then |
5007 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
5008 | else | |
5009 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
5010 | fi | |
698dcdb6 | 5011 | |
10f2d63a | 5012 | else |
698dcdb6 | 5013 | |
10f2d63a VZ |
5014 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` |
5015 | if test "x$LINE" != x ; then | |
5016 | eval "DEFAULT_$LINE" | |
5017 | else | |
5018 | no_cache=1 | |
5019 | fi | |
5020 | ||
5021 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
698dcdb6 VZ |
5022 | |
5023 | fi | |
10f2d63a VZ |
5024 | |
5025 | ||
5026 | eval "$ac_cv_use_constraints" | |
5027 | if test "$no_cache" != 1; then | |
5028 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
5029 | fi | |
5030 | ||
5031 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
698dcdb6 | 5032 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5033 | else |
698dcdb6 | 5034 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5035 | fi |
698dcdb6 | 5036 | |
10f2d63a | 5037 | |
698dcdb6 | 5038 | echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6 |
3bd8fb5f | 5039 | echo "configure:5040: checking for --enable-printarch" >&5 |
10f2d63a VZ |
5040 | no_cache=0 |
5041 | # Check whether --enable-printarch or --disable-printarch was given. | |
5042 | if test "${enable_printarch+set}" = set; then | |
5043 | enableval="$enable_printarch" | |
698dcdb6 | 5044 | |
10f2d63a VZ |
5045 | if test "$enableval" = yes; then |
5046 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
5047 | else | |
5048 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
5049 | fi | |
698dcdb6 | 5050 | |
10f2d63a | 5051 | else |
698dcdb6 | 5052 | |
10f2d63a VZ |
5053 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` |
5054 | if test "x$LINE" != x ; then | |
5055 | eval "DEFAULT_$LINE" | |
5056 | else | |
5057 | no_cache=1 | |
5058 | fi | |
5059 | ||
5060 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
698dcdb6 VZ |
5061 | |
5062 | fi | |
10f2d63a VZ |
5063 | |
5064 | ||
5065 | eval "$ac_cv_use_printarch" | |
5066 | if test "$no_cache" != 1; then | |
5067 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
5068 | fi | |
5069 | ||
5070 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
698dcdb6 | 5071 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5072 | else |
698dcdb6 | 5073 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5074 | fi |
698dcdb6 | 5075 | |
10f2d63a | 5076 | |
698dcdb6 | 5077 | echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6 |
3bd8fb5f | 5078 | echo "configure:5079: checking for --enable-mdi" >&5 |
10f2d63a VZ |
5079 | no_cache=0 |
5080 | # Check whether --enable-mdi or --disable-mdi was given. | |
5081 | if test "${enable_mdi+set}" = set; then | |
5082 | enableval="$enable_mdi" | |
698dcdb6 | 5083 | |
10f2d63a VZ |
5084 | if test "$enableval" = yes; then |
5085 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
5086 | else | |
5087 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
5088 | fi | |
698dcdb6 | 5089 | |
10f2d63a | 5090 | else |
698dcdb6 | 5091 | |
10f2d63a VZ |
5092 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` |
5093 | if test "x$LINE" != x ; then | |
5094 | eval "DEFAULT_$LINE" | |
5095 | else | |
5096 | no_cache=1 | |
5097 | fi | |
5098 | ||
5099 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
698dcdb6 VZ |
5100 | |
5101 | fi | |
10f2d63a VZ |
5102 | |
5103 | ||
5104 | eval "$ac_cv_use_mdi" | |
5105 | if test "$no_cache" != 1; then | |
5106 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
5107 | fi | |
5108 | ||
5109 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
698dcdb6 | 5110 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5111 | else |
698dcdb6 | 5112 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5113 | fi |
698dcdb6 VZ |
5114 | |
5115 | ||
1e6feb95 | 5116 | echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6 |
3bd8fb5f | 5117 | echo "configure:5118: checking for --enable-loggui" >&5 |
1e6feb95 VZ |
5118 | no_cache=0 |
5119 | # Check whether --enable-loggui or --disable-loggui was given. | |
5120 | if test "${enable_loggui+set}" = set; then | |
5121 | enableval="$enable_loggui" | |
5122 | ||
5123 | if test "$enableval" = yes; then | |
5124 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
5125 | else | |
5126 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
5127 | fi | |
5128 | ||
5129 | else | |
5130 | ||
5131 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
5132 | if test "x$LINE" != x ; then | |
5133 | eval "DEFAULT_$LINE" | |
5134 | else | |
5135 | no_cache=1 | |
5136 | fi | |
5137 | ||
5138 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
5139 | ||
5140 | fi | |
5141 | ||
5142 | ||
5143 | eval "$ac_cv_use_loggui" | |
5144 | if test "$no_cache" != 1; then | |
5145 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
5146 | fi | |
5147 | ||
5148 | if test "$wxUSE_LOGGUI" = yes; then | |
5149 | echo "$ac_t""yes" 1>&6 | |
5150 | else | |
5151 | echo "$ac_t""no" 1>&6 | |
5152 | fi | |
5153 | ||
5154 | ||
5155 | echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6 | |
3bd8fb5f | 5156 | echo "configure:5157: checking for --enable-logwin" >&5 |
1e6feb95 VZ |
5157 | no_cache=0 |
5158 | # Check whether --enable-logwin or --disable-logwin was given. | |
5159 | if test "${enable_logwin+set}" = set; then | |
5160 | enableval="$enable_logwin" | |
5161 | ||
5162 | if test "$enableval" = yes; then | |
5163 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
5164 | else | |
5165 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
5166 | fi | |
5167 | ||
5168 | else | |
5169 | ||
5170 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
5171 | if test "x$LINE" != x ; then | |
5172 | eval "DEFAULT_$LINE" | |
5173 | else | |
5174 | no_cache=1 | |
5175 | fi | |
5176 | ||
5177 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
5178 | ||
5179 | fi | |
5180 | ||
5181 | ||
5182 | eval "$ac_cv_use_logwin" | |
5183 | if test "$no_cache" != 1; then | |
5184 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
5185 | fi | |
5186 | ||
5187 | if test "$wxUSE_LOGWINDOW" = yes; then | |
5188 | echo "$ac_t""yes" 1>&6 | |
5189 | else | |
5190 | echo "$ac_t""no" 1>&6 | |
5191 | fi | |
5192 | ||
5193 | ||
69d27ff7 | 5194 | echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6 |
3bd8fb5f | 5195 | echo "configure:5196: checking for --enable-logdialog" >&5 |
69d27ff7 MB |
5196 | no_cache=0 |
5197 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
5198 | if test "${enable_logdialog+set}" = set; then | |
5199 | enableval="$enable_logdialog" | |
5200 | ||
5201 | if test "$enableval" = yes; then | |
5202 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
5203 | else | |
5204 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
5205 | fi | |
5206 | ||
5207 | else | |
5208 | ||
5209 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` | |
5210 | if test "x$LINE" != x ; then | |
5211 | eval "DEFAULT_$LINE" | |
5212 | else | |
5213 | no_cache=1 | |
5214 | fi | |
5215 | ||
5216 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
5217 | ||
5218 | fi | |
5219 | ||
5220 | ||
5221 | eval "$ac_cv_use_logdialog" | |
5222 | if test "$no_cache" != 1; then | |
5223 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
5224 | fi | |
5225 | ||
5226 | if test "$wxUSE_LOGDIALOG" = yes; then | |
5227 | echo "$ac_t""yes" 1>&6 | |
5228 | else | |
5229 | echo "$ac_t""no" 1>&6 | |
5230 | fi | |
5231 | ||
5232 | ||
10f2d63a | 5233 | |
698dcdb6 | 5234 | echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6 |
3bd8fb5f | 5235 | echo "configure:5236: checking for --enable-postscript" >&5 |
10f2d63a VZ |
5236 | no_cache=0 |
5237 | # Check whether --enable-postscript or --disable-postscript was given. | |
5238 | if test "${enable_postscript+set}" = set; then | |
5239 | enableval="$enable_postscript" | |
698dcdb6 | 5240 | |
10f2d63a VZ |
5241 | if test "$enableval" = yes; then |
5242 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
5243 | else | |
5244 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
5245 | fi | |
698dcdb6 | 5246 | |
10f2d63a | 5247 | else |
698dcdb6 | 5248 | |
10f2d63a VZ |
5249 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` |
5250 | if test "x$LINE" != x ; then | |
5251 | eval "DEFAULT_$LINE" | |
5252 | else | |
5253 | no_cache=1 | |
5254 | fi | |
5255 | ||
5256 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
698dcdb6 VZ |
5257 | |
5258 | fi | |
10f2d63a VZ |
5259 | |
5260 | ||
5261 | eval "$ac_cv_use_postscript" | |
5262 | if test "$no_cache" != 1; then | |
5263 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
5264 | fi | |
5265 | ||
5266 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
698dcdb6 | 5267 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5268 | else |
698dcdb6 | 5269 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5270 | fi |
698dcdb6 VZ |
5271 | |
5272 | ||
5273 | ||
10f2d63a | 5274 | |
1e6feb95 | 5275 | |
698dcdb6 | 5276 | echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6 |
3bd8fb5f | 5277 | echo "configure:5278: checking for --enable-prologio" >&5 |
10f2d63a VZ |
5278 | no_cache=0 |
5279 | # Check whether --enable-prologio or --disable-prologio was given. | |
5280 | if test "${enable_prologio+set}" = set; then | |
5281 | enableval="$enable_prologio" | |
698dcdb6 | 5282 | |
10f2d63a VZ |
5283 | if test "$enableval" = yes; then |
5284 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
5285 | else | |
5286 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
5287 | fi | |
698dcdb6 | 5288 | |
10f2d63a | 5289 | else |
698dcdb6 | 5290 | |
10f2d63a VZ |
5291 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` |
5292 | if test "x$LINE" != x ; then | |
5293 | eval "DEFAULT_$LINE" | |
5294 | else | |
5295 | no_cache=1 | |
5296 | fi | |
5297 | ||
5298 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
698dcdb6 VZ |
5299 | |
5300 | fi | |
10f2d63a VZ |
5301 | |
5302 | ||
5303 | eval "$ac_cv_use_prologio" | |
5304 | if test "$no_cache" != 1; then | |
5305 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
5306 | fi | |
5307 | ||
5308 | if test "$wxUSE_PROLOGIO" = yes; then | |
698dcdb6 | 5309 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5310 | else |
698dcdb6 | 5311 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5312 | fi |
698dcdb6 | 5313 | |
10f2d63a | 5314 | |
698dcdb6 | 5315 | echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6 |
3bd8fb5f | 5316 | echo "configure:5317: checking for --enable-resources" >&5 |
10f2d63a VZ |
5317 | no_cache=0 |
5318 | # Check whether --enable-resources or --disable-resources was given. | |
5319 | if test "${enable_resources+set}" = set; then | |
5320 | enableval="$enable_resources" | |
698dcdb6 | 5321 | |
10f2d63a VZ |
5322 | if test "$enableval" = yes; then |
5323 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
5324 | else | |
5325 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
5326 | fi | |
698dcdb6 | 5327 | |
10f2d63a | 5328 | else |
698dcdb6 | 5329 | |
10f2d63a VZ |
5330 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` |
5331 | if test "x$LINE" != x ; then | |
5332 | eval "DEFAULT_$LINE" | |
5333 | else | |
5334 | no_cache=1 | |
5335 | fi | |
5336 | ||
5337 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
698dcdb6 VZ |
5338 | |
5339 | fi | |
10f2d63a VZ |
5340 | |
5341 | ||
5342 | eval "$ac_cv_use_resources" | |
5343 | if test "$no_cache" != 1; then | |
5344 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
5345 | fi | |
5346 | ||
5347 | if test "$wxUSE_RESOURCES" = yes; then | |
698dcdb6 | 5348 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5349 | else |
698dcdb6 | 5350 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5351 | fi |
698dcdb6 | 5352 | |
10f2d63a | 5353 | |
698dcdb6 VZ |
5354 | |
5355 | echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6 | |
3bd8fb5f | 5356 | echo "configure:5357: checking for --enable-xresources" >&5 |
10f2d63a VZ |
5357 | no_cache=0 |
5358 | # Check whether --enable-xresources or --disable-xresources was given. | |
5359 | if test "${enable_xresources+set}" = set; then | |
5360 | enableval="$enable_xresources" | |
698dcdb6 | 5361 | |
10f2d63a VZ |
5362 | if test "$enableval" = yes; then |
5363 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
5364 | else | |
5365 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
5366 | fi | |
698dcdb6 | 5367 | |
10f2d63a | 5368 | else |
698dcdb6 | 5369 | |
10f2d63a VZ |
5370 | LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}` |
5371 | if test "x$LINE" != x ; then | |
5372 | eval "DEFAULT_$LINE" | |
5373 | else | |
5374 | no_cache=1 | |
5375 | fi | |
5376 | ||
5377 | ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
698dcdb6 VZ |
5378 | |
5379 | fi | |
10f2d63a VZ |
5380 | |
5381 | ||
5382 | eval "$ac_cv_use_xresources" | |
5383 | if test "$no_cache" != 1; then | |
5384 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
5385 | fi | |
5386 | ||
5387 | if test "$wxUSE_X_RESOURCES" = yes; then | |
698dcdb6 | 5388 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5389 | else |
698dcdb6 | 5390 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5391 | fi |
698dcdb6 VZ |
5392 | |
5393 | ||
10f2d63a | 5394 | |
698dcdb6 VZ |
5395 | |
5396 | echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6 | |
3bd8fb5f | 5397 | echo "configure:5398: checking for --enable-clipboard" >&5 |
10f2d63a VZ |
5398 | no_cache=0 |
5399 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
5400 | if test "${enable_clipboard+set}" = set; then | |
5401 | enableval="$enable_clipboard" | |
698dcdb6 | 5402 | |
10f2d63a VZ |
5403 | if test "$enableval" = yes; then |
5404 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
5405 | else | |
5406 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
5407 | fi | |
698dcdb6 | 5408 | |
10f2d63a | 5409 | else |
698dcdb6 | 5410 | |
10f2d63a VZ |
5411 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` |
5412 | if test "x$LINE" != x ; then | |
5413 | eval "DEFAULT_$LINE" | |
5414 | else | |
5415 | no_cache=1 | |
5416 | fi | |
5417 | ||
5418 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
698dcdb6 VZ |
5419 | |
5420 | fi | |
10f2d63a VZ |
5421 | |
5422 | ||
5423 | eval "$ac_cv_use_clipboard" | |
5424 | if test "$no_cache" != 1; then | |
5425 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
5426 | fi | |
5427 | ||
5428 | if test "$wxUSE_CLIPBOARD" = yes; then | |
698dcdb6 | 5429 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5430 | else |
698dcdb6 | 5431 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5432 | fi |
698dcdb6 | 5433 | |
10f2d63a | 5434 | |
698dcdb6 | 5435 | echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6 |
3bd8fb5f | 5436 | echo "configure:5437: checking for --enable-dnd" >&5 |
10f2d63a VZ |
5437 | no_cache=0 |
5438 | # Check whether --enable-dnd or --disable-dnd was given. | |
5439 | if test "${enable_dnd+set}" = set; then | |
5440 | enableval="$enable_dnd" | |
698dcdb6 | 5441 | |
10f2d63a VZ |
5442 | if test "$enableval" = yes; then |
5443 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
5444 | else | |
5445 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
5446 | fi | |
698dcdb6 | 5447 | |
10f2d63a | 5448 | else |
698dcdb6 | 5449 | |
10f2d63a VZ |
5450 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` |
5451 | if test "x$LINE" != x ; then | |
5452 | eval "DEFAULT_$LINE" | |
5453 | else | |
5454 | no_cache=1 | |
5455 | fi | |
5456 | ||
5457 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
698dcdb6 VZ |
5458 | |
5459 | fi | |
10f2d63a VZ |
5460 | |
5461 | ||
5462 | eval "$ac_cv_use_dnd" | |
5463 | if test "$no_cache" != 1; then | |
5464 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
5465 | fi | |
5466 | ||
5467 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
698dcdb6 | 5468 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5469 | else |
698dcdb6 | 5470 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5471 | fi |
698dcdb6 | 5472 | |
10f2d63a | 5473 | |
698dcdb6 | 5474 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
3bd8fb5f | 5475 | echo "configure:5476: checking for --enable-metafile" >&5 |
b64f0a5f RL |
5476 | no_cache=0 |
5477 | # Check whether --enable-metafile or --disable-metafile was given. | |
5478 | if test "${enable_metafile+set}" = set; then | |
5479 | enableval="$enable_metafile" | |
698dcdb6 | 5480 | |
b64f0a5f RL |
5481 | if test "$enableval" = yes; then |
5482 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
5483 | else | |
5484 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
5485 | fi | |
698dcdb6 | 5486 | |
b64f0a5f | 5487 | else |
698dcdb6 | 5488 | |
b64f0a5f RL |
5489 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
5490 | if test "x$LINE" != x ; then | |
5491 | eval "DEFAULT_$LINE" | |
5492 | else | |
5493 | no_cache=1 | |
5494 | fi | |
5495 | ||
5496 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
698dcdb6 VZ |
5497 | |
5498 | fi | |
b64f0a5f RL |
5499 | |
5500 | ||
5501 | eval "$ac_cv_use_metafile" | |
5502 | if test "$no_cache" != 1; then | |
5503 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
5504 | fi | |
5505 | ||
5506 | if test "$wxUSE_METAFILE" = yes; then | |
698dcdb6 | 5507 | echo "$ac_t""yes" 1>&6 |
b64f0a5f | 5508 | else |
698dcdb6 | 5509 | echo "$ac_t""no" 1>&6 |
b64f0a5f | 5510 | fi |
698dcdb6 VZ |
5511 | |
5512 | ||
10f2d63a | 5513 | |
24176f2c | 5514 | echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6 |
3bd8fb5f | 5515 | echo "configure:5516: checking for --enable-treelayout" >&5 |
10f2d63a | 5516 | no_cache=0 |
24176f2c GD |
5517 | # Check whether --enable-treelayout or --disable-treelayout was given. |
5518 | if test "${enable_treelayout+set}" = set; then | |
5519 | enableval="$enable_treelayout" | |
698dcdb6 | 5520 | |
10f2d63a | 5521 | if test "$enableval" = yes; then |
24176f2c | 5522 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes' |
10f2d63a | 5523 | else |
24176f2c | 5524 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=no' |
10f2d63a | 5525 | fi |
698dcdb6 | 5526 | |
10f2d63a | 5527 | else |
698dcdb6 | 5528 | |
24176f2c | 5529 | LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}` |
10f2d63a VZ |
5530 | if test "x$LINE" != x ; then |
5531 | eval "DEFAULT_$LINE" | |
5532 | else | |
5533 | no_cache=1 | |
5534 | fi | |
5535 | ||
24176f2c | 5536 | ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT |
698dcdb6 VZ |
5537 | |
5538 | fi | |
10f2d63a VZ |
5539 | |
5540 | ||
24176f2c | 5541 | eval "$ac_cv_use_treelayout" |
10f2d63a | 5542 | if test "$no_cache" != 1; then |
24176f2c | 5543 | echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5544 | fi |
5545 | ||
24176f2c | 5546 | if test "$wxUSE_TREELAYOUT" = yes; then |
698dcdb6 | 5547 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5548 | else |
698dcdb6 | 5549 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5550 | fi |
698dcdb6 | 5551 | |
10f2d63a | 5552 | |
698dcdb6 VZ |
5553 | |
5554 | ||
5555 | echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6 | |
3bd8fb5f | 5556 | echo "configure:5557: checking for --enable-controls" >&5 |
10f2d63a VZ |
5557 | no_cache=0 |
5558 | # Check whether --enable-controls or --disable-controls was given. | |
5559 | if test "${enable_controls+set}" = set; then | |
5560 | enableval="$enable_controls" | |
698dcdb6 | 5561 | |
10f2d63a VZ |
5562 | if test "$enableval" = yes; then |
5563 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
5564 | else | |
5565 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
5566 | fi | |
698dcdb6 | 5567 | |
10f2d63a | 5568 | else |
698dcdb6 | 5569 | |
10f2d63a VZ |
5570 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` |
5571 | if test "x$LINE" != x ; then | |
5572 | eval "DEFAULT_$LINE" | |
5573 | else | |
5574 | no_cache=1 | |
5575 | fi | |
5576 | ||
5577 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
698dcdb6 VZ |
5578 | |
5579 | fi | |
10f2d63a VZ |
5580 | |
5581 | ||
5582 | eval "$ac_cv_use_controls" | |
5583 | if test "$no_cache" != 1; then | |
5584 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
5585 | fi | |
5586 | ||
5587 | if test "$wxUSE_CONTROLS" = yes; then | |
698dcdb6 | 5588 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5589 | else |
698dcdb6 | 5590 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5591 | fi |
698dcdb6 | 5592 | |
10f2d63a VZ |
5593 | |
5594 | if test "$wxUSE_CONTROLS" = "yes"; then | |
5595 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 VZ |
5596 | DEFAULT_wxUSE_BMPBUTTON=yes |
5597 | DEFAULT_wxUSE_BUTTON=yes | |
5598 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5599 | DEFAULT_wxUSE_CARET=yes |
5600 | DEFAULT_wxUSE_COMBOBOX=yes | |
10f2d63a VZ |
5601 | DEFAULT_wxUSE_CHECKBOX=yes |
5602 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
5603 | DEFAULT_wxUSE_CHOICE=yes | |
5604 | DEFAULT_wxUSE_GAUGE=yes | |
5605 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 5606 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
5607 | DEFAULT_wxUSE_IMAGLIST=yes |
5608 | DEFAULT_wxUSE_LISTBOX=yes | |
5609 | DEFAULT_wxUSE_LISTCTRL=yes | |
5610 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 5611 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
5612 | DEFAULT_wxUSE_RADIOBOX=yes |
5613 | DEFAULT_wxUSE_RADIOBTN=yes | |
5614 | DEFAULT_wxUSE_SASH=yes | |
5615 | DEFAULT_wxUSE_SCROLLBAR=yes | |
5616 | DEFAULT_wxUSE_SLIDER=yes | |
5617 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 5618 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
5619 | DEFAULT_wxUSE_SPLITTER=yes |
5620 | DEFAULT_wxUSE_STATBMP=yes | |
5621 | DEFAULT_wxUSE_STATBOX=yes | |
5622 | DEFAULT_wxUSE_STATLINE=yes | |
5623 | DEFAULT_wxUSE_STATUSBAR=yes | |
5624 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 5625 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 5626 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
5627 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
5628 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
5629 | DEFAULT_wxUSE_TOOLTIPS=yes |
5630 | DEFAULT_wxUSE_TREECTRL=yes | |
9f41d601 | 5631 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 5632 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
5633 | elif test "$wxUSE_CONTROLS" = "no"; then |
5634 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 VZ |
5635 | DEFAULT_wxUSE_BMPBUTTON=no |
5636 | DEFAULT_wxUSE_BUTTON=no | |
5637 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5638 | DEFAULT_wxUSE_CARET=no |
5639 | DEFAULT_wxUSE_COMBOBOX=no | |
10f2d63a VZ |
5640 | DEFAULT_wxUSE_CHECKBOX=no |
5641 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
5642 | DEFAULT_wxUSE_CHOICE=no | |
5643 | DEFAULT_wxUSE_GAUGE=no | |
5644 | DEFAULT_wxUSE_GRID=no | |
5645 | DEFAULT_wxUSE_NEW_GRID=no | |
5646 | DEFAULT_wxUSE_IMAGLIST=no | |
5647 | DEFAULT_wxUSE_LISTBOX=no | |
5648 | DEFAULT_wxUSE_LISTCTRL=no | |
5649 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 5650 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
5651 | DEFAULT_wxUSE_RADIOBOX=no |
5652 | DEFAULT_wxUSE_RADIOBTN=no | |
5653 | DEFAULT_wxUSE_SASH=no | |
5654 | DEFAULT_wxUSE_SCROLLBAR=no | |
5655 | DEFAULT_wxUSE_SLIDER=no | |
5656 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 5657 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
5658 | DEFAULT_wxUSE_SPLITTER=no |
5659 | DEFAULT_wxUSE_STATBMP=no | |
5660 | DEFAULT_wxUSE_STATBOX=no | |
5661 | DEFAULT_wxUSE_STATLINE=no | |
5662 | DEFAULT_wxUSE_STATUSBAR=no | |
5663 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 5664 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 5665 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
5666 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
5667 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
5668 | DEFAULT_wxUSE_TOOLTIPS=no |
5669 | DEFAULT_wxUSE_TREECTRL=no | |
9f41d601 | 5670 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 5671 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
5672 | fi |
5673 | ||
698dcdb6 VZ |
5674 | |
5675 | echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6 | |
3bd8fb5f | 5676 | echo "configure:5677: checking for --enable-accel" >&5 |
10f2d63a VZ |
5677 | no_cache=0 |
5678 | # Check whether --enable-accel or --disable-accel was given. | |
5679 | if test "${enable_accel+set}" = set; then | |
5680 | enableval="$enable_accel" | |
698dcdb6 | 5681 | |
10f2d63a VZ |
5682 | if test "$enableval" = yes; then |
5683 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
5684 | else | |
5685 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
5686 | fi | |
698dcdb6 | 5687 | |
10f2d63a | 5688 | else |
698dcdb6 | 5689 | |
10f2d63a VZ |
5690 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` |
5691 | if test "x$LINE" != x ; then | |
5692 | eval "DEFAULT_$LINE" | |
5693 | else | |
5694 | no_cache=1 | |
5695 | fi | |
5696 | ||
5697 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
698dcdb6 VZ |
5698 | |
5699 | fi | |
10f2d63a VZ |
5700 | |
5701 | ||
5702 | eval "$ac_cv_use_accel" | |
5703 | if test "$no_cache" != 1; then | |
5704 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
5705 | fi | |
5706 | ||
5707 | if test "$wxUSE_ACCEL" = yes; then | |
698dcdb6 | 5708 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5709 | else |
698dcdb6 | 5710 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5711 | fi |
698dcdb6 | 5712 | |
10f2d63a | 5713 | |
1e6feb95 | 5714 | echo $ac_n "checking for --enable-button""... $ac_c" 1>&6 |
3bd8fb5f | 5715 | echo "configure:5716: checking for --enable-button" >&5 |
10f2d63a | 5716 | no_cache=0 |
1e6feb95 VZ |
5717 | # Check whether --enable-button or --disable-button was given. |
5718 | if test "${enable_button+set}" = set; then | |
5719 | enableval="$enable_button" | |
698dcdb6 | 5720 | |
10f2d63a | 5721 | if test "$enableval" = yes; then |
1e6feb95 | 5722 | ac_cv_use_button='wxUSE_BUTTON=yes' |
10f2d63a | 5723 | else |
1e6feb95 | 5724 | ac_cv_use_button='wxUSE_BUTTON=no' |
10f2d63a | 5725 | fi |
698dcdb6 | 5726 | |
10f2d63a | 5727 | else |
698dcdb6 | 5728 | |
1e6feb95 | 5729 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` |
10f2d63a VZ |
5730 | if test "x$LINE" != x ; then |
5731 | eval "DEFAULT_$LINE" | |
5732 | else | |
5733 | no_cache=1 | |
5734 | fi | |
5735 | ||
1e6feb95 | 5736 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON |
698dcdb6 VZ |
5737 | |
5738 | fi | |
10f2d63a VZ |
5739 | |
5740 | ||
1e6feb95 | 5741 | eval "$ac_cv_use_button" |
10f2d63a | 5742 | if test "$no_cache" != 1; then |
1e6feb95 | 5743 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5744 | fi |
5745 | ||
1e6feb95 | 5746 | if test "$wxUSE_BUTTON" = yes; then |
698dcdb6 | 5747 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5748 | else |
698dcdb6 | 5749 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5750 | fi |
698dcdb6 | 5751 | |
10f2d63a | 5752 | |
698dcdb6 | 5753 | echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6 |
3bd8fb5f | 5754 | echo "configure:5755: checking for --enable-bmpbutton" >&5 |
10f2d63a VZ |
5755 | no_cache=0 |
5756 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
5757 | if test "${enable_bmpbutton+set}" = set; then | |
5758 | enableval="$enable_bmpbutton" | |
698dcdb6 | 5759 | |
10f2d63a VZ |
5760 | if test "$enableval" = yes; then |
5761 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
5762 | else | |
5763 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
5764 | fi | |
698dcdb6 | 5765 | |
10f2d63a | 5766 | else |
698dcdb6 | 5767 | |
10f2d63a VZ |
5768 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` |
5769 | if test "x$LINE" != x ; then | |
5770 | eval "DEFAULT_$LINE" | |
5771 | else | |
5772 | no_cache=1 | |
5773 | fi | |
5774 | ||
5775 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
698dcdb6 VZ |
5776 | |
5777 | fi | |
10f2d63a VZ |
5778 | |
5779 | ||
5780 | eval "$ac_cv_use_bmpbutton" | |
5781 | if test "$no_cache" != 1; then | |
5782 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
5783 | fi | |
5784 | ||
5785 | if test "$wxUSE_BMPBUTTON" = yes; then | |
698dcdb6 | 5786 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5787 | else |
698dcdb6 | 5788 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5789 | fi |
698dcdb6 | 5790 | |
10f2d63a | 5791 | |
1e6feb95 | 5792 | echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6 |
3bd8fb5f | 5793 | echo "configure:5794: checking for --enable-calendar" >&5 |
1e6feb95 VZ |
5794 | no_cache=0 |
5795 | # Check whether --enable-calendar or --disable-calendar was given. | |
5796 | if test "${enable_calendar+set}" = set; then | |
5797 | enableval="$enable_calendar" | |
5798 | ||
5799 | if test "$enableval" = yes; then | |
5800 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
5801 | else | |
5802 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
5803 | fi | |
5804 | ||
5805 | else | |
5806 | ||
5807 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
5808 | if test "x$LINE" != x ; then | |
5809 | eval "DEFAULT_$LINE" | |
5810 | else | |
5811 | no_cache=1 | |
5812 | fi | |
5813 | ||
5814 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
5815 | ||
5816 | fi | |
5817 | ||
5818 | ||
5819 | eval "$ac_cv_use_calendar" | |
5820 | if test "$no_cache" != 1; then | |
5821 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
5822 | fi | |
5823 | ||
5824 | if test "$wxUSE_CALCTRL" = yes; then | |
5825 | echo "$ac_t""yes" 1>&6 | |
5826 | else | |
5827 | echo "$ac_t""no" 1>&6 | |
5828 | fi | |
5829 | ||
5830 | ||
5831 | echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6 | |
3bd8fb5f | 5832 | echo "configure:5833: checking for --enable-caret" >&5 |
1e6feb95 VZ |
5833 | no_cache=0 |
5834 | # Check whether --enable-caret or --disable-caret was given. | |
5835 | if test "${enable_caret+set}" = set; then | |
5836 | enableval="$enable_caret" | |
5837 | ||
5838 | if test "$enableval" = yes; then | |
5839 | ac_cv_use_caret='wxUSE_CARET=yes' | |
5840 | else | |
5841 | ac_cv_use_caret='wxUSE_CARET=no' | |
5842 | fi | |
5843 | ||
5844 | else | |
5845 | ||
5846 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
5847 | if test "x$LINE" != x ; then | |
5848 | eval "DEFAULT_$LINE" | |
5849 | else | |
5850 | no_cache=1 | |
5851 | fi | |
5852 | ||
5853 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
5854 | ||
5855 | fi | |
5856 | ||
5857 | ||
5858 | eval "$ac_cv_use_caret" | |
5859 | if test "$no_cache" != 1; then | |
5860 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
5861 | fi | |
5862 | ||
5863 | if test "$wxUSE_CARET" = yes; then | |
5864 | echo "$ac_t""yes" 1>&6 | |
5865 | else | |
5866 | echo "$ac_t""no" 1>&6 | |
5867 | fi | |
5868 | ||
5869 | ||
698dcdb6 | 5870 | echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6 |
3bd8fb5f | 5871 | echo "configure:5872: checking for --enable-checkbox" >&5 |
10f2d63a VZ |
5872 | no_cache=0 |
5873 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
5874 | if test "${enable_checkbox+set}" = set; then | |
5875 | enableval="$enable_checkbox" | |
698dcdb6 | 5876 | |
10f2d63a VZ |
5877 | if test "$enableval" = yes; then |
5878 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
5879 | else | |
5880 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
5881 | fi | |
698dcdb6 | 5882 | |
10f2d63a | 5883 | else |
698dcdb6 | 5884 | |
10f2d63a VZ |
5885 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` |
5886 | if test "x$LINE" != x ; then | |
5887 | eval "DEFAULT_$LINE" | |
5888 | else | |
5889 | no_cache=1 | |
5890 | fi | |
5891 | ||
5892 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
698dcdb6 VZ |
5893 | |
5894 | fi | |
10f2d63a VZ |
5895 | |
5896 | ||
5897 | eval "$ac_cv_use_checkbox" | |
5898 | if test "$no_cache" != 1; then | |
5899 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
5900 | fi | |
5901 | ||
5902 | if test "$wxUSE_CHECKBOX" = yes; then | |
698dcdb6 | 5903 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5904 | else |
698dcdb6 | 5905 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5906 | fi |
698dcdb6 | 5907 | |
10f2d63a | 5908 | |
698dcdb6 | 5909 | echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6 |
3bd8fb5f | 5910 | echo "configure:5911: checking for --enable-checklst" >&5 |
10f2d63a VZ |
5911 | no_cache=0 |
5912 | # Check whether --enable-checklst or --disable-checklst was given. | |
5913 | if test "${enable_checklst+set}" = set; then | |
5914 | enableval="$enable_checklst" | |
698dcdb6 | 5915 | |
10f2d63a VZ |
5916 | if test "$enableval" = yes; then |
5917 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
5918 | else | |
5919 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
5920 | fi | |
698dcdb6 | 5921 | |
10f2d63a | 5922 | else |
698dcdb6 | 5923 | |
10f2d63a VZ |
5924 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` |
5925 | if test "x$LINE" != x ; then | |
5926 | eval "DEFAULT_$LINE" | |
5927 | else | |
5928 | no_cache=1 | |
5929 | fi | |
5930 | ||
5931 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
698dcdb6 VZ |
5932 | |
5933 | fi | |
10f2d63a VZ |
5934 | |
5935 | ||
5936 | eval "$ac_cv_use_checklst" | |
5937 | if test "$no_cache" != 1; then | |
5938 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
5939 | fi | |
5940 | ||
5941 | if test "$wxUSE_CHECKLST" = yes; then | |
698dcdb6 | 5942 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5943 | else |
698dcdb6 | 5944 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5945 | fi |
698dcdb6 | 5946 | |
10f2d63a | 5947 | |
698dcdb6 | 5948 | echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6 |
3bd8fb5f | 5949 | echo "configure:5950: checking for --enable-choice" >&5 |
10f2d63a VZ |
5950 | no_cache=0 |
5951 | # Check whether --enable-choice or --disable-choice was given. | |
5952 | if test "${enable_choice+set}" = set; then | |
5953 | enableval="$enable_choice" | |
698dcdb6 | 5954 | |
10f2d63a VZ |
5955 | if test "$enableval" = yes; then |
5956 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
5957 | else | |
5958 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
5959 | fi | |
698dcdb6 | 5960 | |
10f2d63a | 5961 | else |
698dcdb6 | 5962 | |
10f2d63a VZ |
5963 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` |
5964 | if test "x$LINE" != x ; then | |
5965 | eval "DEFAULT_$LINE" | |
5966 | else | |
5967 | no_cache=1 | |
5968 | fi | |
5969 | ||
5970 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
698dcdb6 VZ |
5971 | |
5972 | fi | |
10f2d63a VZ |
5973 | |
5974 | ||
5975 | eval "$ac_cv_use_choice" | |
5976 | if test "$no_cache" != 1; then | |
5977 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
5978 | fi | |
5979 | ||
5980 | if test "$wxUSE_CHOICE" = yes; then | |
698dcdb6 | 5981 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5982 | else |
698dcdb6 | 5983 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5984 | fi |
698dcdb6 | 5985 | |
10f2d63a | 5986 | |
698dcdb6 | 5987 | echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6 |
3bd8fb5f | 5988 | echo "configure:5989: checking for --enable-combobox" >&5 |
10f2d63a VZ |
5989 | no_cache=0 |
5990 | # Check whether --enable-combobox or --disable-combobox was given. | |
5991 | if test "${enable_combobox+set}" = set; then | |
5992 | enableval="$enable_combobox" | |
698dcdb6 | 5993 | |
10f2d63a VZ |
5994 | if test "$enableval" = yes; then |
5995 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
5996 | else | |
5997 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
5998 | fi | |
698dcdb6 | 5999 | |
10f2d63a | 6000 | else |
698dcdb6 | 6001 | |
10f2d63a VZ |
6002 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` |
6003 | if test "x$LINE" != x ; then | |
6004 | eval "DEFAULT_$LINE" | |
6005 | else | |
6006 | no_cache=1 | |
6007 | fi | |
6008 | ||
6009 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
698dcdb6 VZ |
6010 | |
6011 | fi | |
10f2d63a VZ |
6012 | |
6013 | ||
6014 | eval "$ac_cv_use_combobox" | |
6015 | if test "$no_cache" != 1; then | |
6016 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
6017 | fi | |
6018 | ||
6019 | if test "$wxUSE_COMBOBOX" = yes; then | |
698dcdb6 | 6020 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6021 | else |
698dcdb6 | 6022 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6023 | fi |
698dcdb6 | 6024 | |
10f2d63a | 6025 | |
698dcdb6 | 6026 | echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6 |
3bd8fb5f | 6027 | echo "configure:6028: checking for --enable-gauge" >&5 |
10f2d63a VZ |
6028 | no_cache=0 |
6029 | # Check whether --enable-gauge or --disable-gauge was given. | |
6030 | if test "${enable_gauge+set}" = set; then | |
6031 | enableval="$enable_gauge" | |
698dcdb6 | 6032 | |
10f2d63a VZ |
6033 | if test "$enableval" = yes; then |
6034 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
6035 | else | |
6036 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
6037 | fi | |
698dcdb6 | 6038 | |
10f2d63a | 6039 | else |
698dcdb6 | 6040 | |
10f2d63a VZ |
6041 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` |
6042 | if test "x$LINE" != x ; then | |
6043 | eval "DEFAULT_$LINE" | |
6044 | else | |
6045 | no_cache=1 | |
6046 | fi | |
6047 | ||
6048 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
698dcdb6 VZ |
6049 | |
6050 | fi | |
10f2d63a VZ |
6051 | |
6052 | ||
6053 | eval "$ac_cv_use_gauge" | |
6054 | if test "$no_cache" != 1; then | |
6055 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
6056 | fi | |
6057 | ||
6058 | if test "$wxUSE_GAUGE" = yes; then | |
698dcdb6 | 6059 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6060 | else |
698dcdb6 | 6061 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6062 | fi |
698dcdb6 | 6063 | |
10f2d63a | 6064 | |
698dcdb6 | 6065 | echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6 |
3bd8fb5f | 6066 | echo "configure:6067: checking for --enable-grid" >&5 |
10f2d63a VZ |
6067 | no_cache=0 |
6068 | # Check whether --enable-grid or --disable-grid was given. | |
6069 | if test "${enable_grid+set}" = set; then | |
6070 | enableval="$enable_grid" | |
698dcdb6 | 6071 | |
10f2d63a VZ |
6072 | if test "$enableval" = yes; then |
6073 | ac_cv_use_grid='wxUSE_GRID=yes' | |
6074 | else | |
6075 | ac_cv_use_grid='wxUSE_GRID=no' | |
6076 | fi | |
698dcdb6 | 6077 | |
10f2d63a | 6078 | else |
698dcdb6 | 6079 | |
10f2d63a VZ |
6080 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` |
6081 | if test "x$LINE" != x ; then | |
6082 | eval "DEFAULT_$LINE" | |
6083 | else | |
6084 | no_cache=1 | |
6085 | fi | |
6086 | ||
6087 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
698dcdb6 VZ |
6088 | |
6089 | fi | |
10f2d63a VZ |
6090 | |
6091 | ||
6092 | eval "$ac_cv_use_grid" | |
6093 | if test "$no_cache" != 1; then | |
6094 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
6095 | fi | |
6096 | ||
6097 | if test "$wxUSE_GRID" = yes; then | |
698dcdb6 | 6098 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6099 | else |
698dcdb6 | 6100 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6101 | fi |
698dcdb6 | 6102 | |
10f2d63a | 6103 | |
698dcdb6 | 6104 | echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6 |
3bd8fb5f | 6105 | echo "configure:6106: checking for --enable-newgrid" >&5 |
10f2d63a VZ |
6106 | no_cache=0 |
6107 | # Check whether --enable-newgrid or --disable-newgrid was given. | |
6108 | if test "${enable_newgrid+set}" = set; then | |
6109 | enableval="$enable_newgrid" | |
698dcdb6 | 6110 | |
10f2d63a VZ |
6111 | if test "$enableval" = yes; then |
6112 | ac_cv_use_newgrid='wxUSE_NEW_GRID=yes' | |
6113 | else | |
6114 | ac_cv_use_newgrid='wxUSE_NEW_GRID=no' | |
6115 | fi | |
698dcdb6 | 6116 | |
10f2d63a | 6117 | else |
698dcdb6 | 6118 | |
10f2d63a VZ |
6119 | LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}` |
6120 | if test "x$LINE" != x ; then | |
6121 | eval "DEFAULT_$LINE" | |
6122 | else | |
6123 | no_cache=1 | |
6124 | fi | |
6125 | ||
6126 | ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID | |
698dcdb6 VZ |
6127 | |
6128 | fi | |
10f2d63a VZ |
6129 | |
6130 | ||
6131 | eval "$ac_cv_use_newgrid" | |
6132 | if test "$no_cache" != 1; then | |
6133 | echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp | |
6134 | fi | |
6135 | ||
6136 | if test "$wxUSE_NEW_GRID" = yes; then | |
698dcdb6 | 6137 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6138 | else |
698dcdb6 | 6139 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6140 | fi |
698dcdb6 | 6141 | |
10f2d63a | 6142 | |
698dcdb6 | 6143 | echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6 |
3bd8fb5f | 6144 | echo "configure:6145: checking for --enable-imaglist" >&5 |
10f2d63a VZ |
6145 | no_cache=0 |
6146 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
6147 | if test "${enable_imaglist+set}" = set; then | |
6148 | enableval="$enable_imaglist" | |
698dcdb6 | 6149 | |
10f2d63a VZ |
6150 | if test "$enableval" = yes; then |
6151 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
6152 | else | |
6153 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
6154 | fi | |
698dcdb6 | 6155 | |
10f2d63a | 6156 | else |
698dcdb6 | 6157 | |
10f2d63a VZ |
6158 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` |
6159 | if test "x$LINE" != x ; then | |
6160 | eval "DEFAULT_$LINE" | |
6161 | else | |
6162 | no_cache=1 | |
6163 | fi | |
6164 | ||
6165 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
698dcdb6 VZ |
6166 | |
6167 | fi | |
10f2d63a VZ |
6168 | |
6169 | ||
6170 | eval "$ac_cv_use_imaglist" | |
6171 | if test "$no_cache" != 1; then | |
6172 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
6173 | fi | |
6174 | ||
6175 | if test "$wxUSE_IMAGLIST" = yes; then | |
698dcdb6 | 6176 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6177 | else |
698dcdb6 | 6178 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6179 | fi |
698dcdb6 | 6180 | |
10f2d63a | 6181 | |
698dcdb6 | 6182 | echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6 |
3bd8fb5f | 6183 | echo "configure:6184: checking for --enable-listbox" >&5 |
10f2d63a VZ |
6184 | no_cache=0 |
6185 | # Check whether --enable-listbox or --disable-listbox was given. | |
6186 | if test "${enable_listbox+set}" = set; then | |
6187 | enableval="$enable_listbox" | |
698dcdb6 | 6188 | |
10f2d63a VZ |
6189 | if test "$enableval" = yes; then |
6190 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
6191 | else | |
6192 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
6193 | fi | |
698dcdb6 | 6194 | |
10f2d63a | 6195 | else |
698dcdb6 | 6196 | |
10f2d63a VZ |
6197 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` |
6198 | if test "x$LINE" != x ; then | |
6199 | eval "DEFAULT_$LINE" | |
6200 | else | |
6201 | no_cache=1 | |
6202 | fi | |
6203 | ||
6204 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
698dcdb6 VZ |
6205 | |
6206 | fi | |
10f2d63a VZ |
6207 | |
6208 | ||
6209 | eval "$ac_cv_use_listbox" | |
6210 | if test "$no_cache" != 1; then | |
6211 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
6212 | fi | |
6213 | ||
6214 | if test "$wxUSE_LISTBOX" = yes; then | |
698dcdb6 | 6215 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6216 | else |
698dcdb6 | 6217 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6218 | fi |
698dcdb6 | 6219 | |
10f2d63a | 6220 | |
698dcdb6 | 6221 | echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6 |
3bd8fb5f | 6222 | echo "configure:6223: checking for --enable-listctrl" >&5 |
10f2d63a VZ |
6223 | no_cache=0 |
6224 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
6225 | if test "${enable_listctrl+set}" = set; then | |
6226 | enableval="$enable_listctrl" | |
698dcdb6 | 6227 | |
10f2d63a VZ |
6228 | if test "$enableval" = yes; then |
6229 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
6230 | else | |
6231 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
6232 | fi | |
698dcdb6 | 6233 | |
10f2d63a | 6234 | else |
698dcdb6 | 6235 | |
10f2d63a VZ |
6236 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` |
6237 | if test "x$LINE" != x ; then | |
6238 | eval "DEFAULT_$LINE" | |
6239 | else | |
6240 | no_cache=1 | |
6241 | fi | |
6242 | ||
6243 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
698dcdb6 VZ |
6244 | |
6245 | fi | |
10f2d63a VZ |
6246 | |
6247 | ||
6248 | eval "$ac_cv_use_listctrl" | |
6249 | if test "$no_cache" != 1; then | |
6250 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
6251 | fi | |
6252 | ||
6253 | if test "$wxUSE_LISTCTRL" = yes; then | |
698dcdb6 | 6254 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6255 | else |
698dcdb6 | 6256 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6257 | fi |
698dcdb6 | 6258 | |
10f2d63a | 6259 | |
698dcdb6 | 6260 | echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6 |
3bd8fb5f | 6261 | echo "configure:6262: checking for --enable-notebook" >&5 |
10f2d63a VZ |
6262 | no_cache=0 |
6263 | # Check whether --enable-notebook or --disable-notebook was given. | |
6264 | if test "${enable_notebook+set}" = set; then | |
6265 | enableval="$enable_notebook" | |
698dcdb6 | 6266 | |
10f2d63a VZ |
6267 | if test "$enableval" = yes; then |
6268 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
6269 | else | |
6270 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
6271 | fi | |
698dcdb6 | 6272 | |
10f2d63a | 6273 | else |
698dcdb6 | 6274 | |
10f2d63a VZ |
6275 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` |
6276 | if test "x$LINE" != x ; then | |
6277 | eval "DEFAULT_$LINE" | |
6278 | else | |
6279 | no_cache=1 | |
6280 | fi | |
6281 | ||
6282 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
698dcdb6 VZ |
6283 | |
6284 | fi | |
10f2d63a VZ |
6285 | |
6286 | ||
6287 | eval "$ac_cv_use_notebook" | |
6288 | if test "$no_cache" != 1; then | |
6289 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
6290 | fi | |
6291 | ||
6292 | if test "$wxUSE_NOTEBOOK" = yes; then | |
698dcdb6 | 6293 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6294 | else |
698dcdb6 | 6295 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6296 | fi |
698dcdb6 | 6297 | |
10f2d63a | 6298 | |
24176f2c | 6299 | echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6 |
3bd8fb5f | 6300 | echo "configure:6301: checking for --enable-propsheet" >&5 |
24176f2c GD |
6301 | no_cache=0 |
6302 | # Check whether --enable-propsheet or --disable-propsheet was given. | |
6303 | if test "${enable_propsheet+set}" = set; then | |
6304 | enableval="$enable_propsheet" | |
6305 | ||
6306 | if test "$enableval" = yes; then | |
6307 | ac_cv_use_propsheet='wxUSE_PROPSHEET=yes' | |
6308 | else | |
6309 | ac_cv_use_propsheet='wxUSE_PROPSHEET=no' | |
6310 | fi | |
6311 | ||
6312 | else | |
6313 | ||
6314 | LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}` | |
6315 | if test "x$LINE" != x ; then | |
6316 | eval "DEFAULT_$LINE" | |
6317 | else | |
6318 | no_cache=1 | |
6319 | fi | |
6320 | ||
6321 | ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET | |
6322 | ||
6323 | fi | |
6324 | ||
6325 | ||
6326 | eval "$ac_cv_use_propsheet" | |
6327 | if test "$no_cache" != 1; then | |
6328 | echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp | |
6329 | fi | |
6330 | ||
6331 | if test "$wxUSE_PROPSHEET" = yes; then | |
6332 | echo "$ac_t""yes" 1>&6 | |
6333 | else | |
6334 | echo "$ac_t""no" 1>&6 | |
6335 | fi | |
6336 | ||
6337 | ||
698dcdb6 | 6338 | echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6 |
3bd8fb5f | 6339 | echo "configure:6340: checking for --enable-radiobox" >&5 |
10f2d63a VZ |
6340 | no_cache=0 |
6341 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
6342 | if test "${enable_radiobox+set}" = set; then | |
6343 | enableval="$enable_radiobox" | |
698dcdb6 | 6344 | |
10f2d63a VZ |
6345 | if test "$enableval" = yes; then |
6346 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
6347 | else | |
6348 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
6349 | fi | |
698dcdb6 | 6350 | |
10f2d63a | 6351 | else |
698dcdb6 | 6352 | |
10f2d63a VZ |
6353 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` |
6354 | if test "x$LINE" != x ; then | |
6355 | eval "DEFAULT_$LINE" | |
6356 | else | |
6357 | no_cache=1 | |
6358 | fi | |
6359 | ||
6360 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
698dcdb6 VZ |
6361 | |
6362 | fi | |
10f2d63a VZ |
6363 | |
6364 | ||
6365 | eval "$ac_cv_use_radiobox" | |
6366 | if test "$no_cache" != 1; then | |
6367 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
6368 | fi | |
6369 | ||
6370 | if test "$wxUSE_RADIOBOX" = yes; then | |
698dcdb6 | 6371 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6372 | else |
698dcdb6 | 6373 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6374 | fi |
698dcdb6 | 6375 | |
10f2d63a | 6376 | |
698dcdb6 | 6377 | echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6 |
3bd8fb5f | 6378 | echo "configure:6379: checking for --enable-radiobtn" >&5 |
10f2d63a VZ |
6379 | no_cache=0 |
6380 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
6381 | if test "${enable_radiobtn+set}" = set; then | |
6382 | enableval="$enable_radiobtn" | |
698dcdb6 | 6383 | |
10f2d63a VZ |
6384 | if test "$enableval" = yes; then |
6385 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
6386 | else | |
6387 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
6388 | fi | |
698dcdb6 | 6389 | |
10f2d63a | 6390 | else |
698dcdb6 | 6391 | |
10f2d63a VZ |
6392 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` |
6393 | if test "x$LINE" != x ; then | |
6394 | eval "DEFAULT_$LINE" | |
6395 | else | |
6396 | no_cache=1 | |
6397 | fi | |
6398 | ||
6399 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
698dcdb6 VZ |
6400 | |
6401 | fi | |
10f2d63a VZ |
6402 | |
6403 | ||
6404 | eval "$ac_cv_use_radiobtn" | |
6405 | if test "$no_cache" != 1; then | |
6406 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
6407 | fi | |
6408 | ||
6409 | if test "$wxUSE_RADIOBTN" = yes; then | |
698dcdb6 | 6410 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6411 | else |
698dcdb6 | 6412 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6413 | fi |
698dcdb6 | 6414 | |
10f2d63a | 6415 | |
698dcdb6 | 6416 | echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6 |
3bd8fb5f | 6417 | echo "configure:6418: checking for --enable-sash" >&5 |
10f2d63a VZ |
6418 | no_cache=0 |
6419 | # Check whether --enable-sash or --disable-sash was given. | |
6420 | if test "${enable_sash+set}" = set; then | |
6421 | enableval="$enable_sash" | |
698dcdb6 | 6422 | |
10f2d63a VZ |
6423 | if test "$enableval" = yes; then |
6424 | ac_cv_use_sash='wxUSE_SASH=yes' | |
6425 | else | |
6426 | ac_cv_use_sash='wxUSE_SASH=no' | |
6427 | fi | |
698dcdb6 | 6428 | |
10f2d63a | 6429 | else |
698dcdb6 | 6430 | |
10f2d63a VZ |
6431 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` |
6432 | if test "x$LINE" != x ; then | |
6433 | eval "DEFAULT_$LINE" | |
6434 | else | |
6435 | no_cache=1 | |
6436 | fi | |
6437 | ||
6438 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
698dcdb6 VZ |
6439 | |
6440 | fi | |
10f2d63a VZ |
6441 | |
6442 | ||
6443 | eval "$ac_cv_use_sash" | |
6444 | if test "$no_cache" != 1; then | |
6445 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
6446 | fi | |
6447 | ||
6448 | if test "$wxUSE_SASH" = yes; then | |
698dcdb6 | 6449 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6450 | else |
698dcdb6 | 6451 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6452 | fi |
698dcdb6 | 6453 | |
10f2d63a | 6454 | |
698dcdb6 | 6455 | echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6 |
3bd8fb5f | 6456 | echo "configure:6457: checking for --enable-scrollbar" >&5 |
10f2d63a VZ |
6457 | no_cache=0 |
6458 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
6459 | if test "${enable_scrollbar+set}" = set; then | |
6460 | enableval="$enable_scrollbar" | |
698dcdb6 | 6461 | |
10f2d63a VZ |
6462 | if test "$enableval" = yes; then |
6463 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
6464 | else | |
6465 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
6466 | fi | |
698dcdb6 | 6467 | |
10f2d63a | 6468 | else |
698dcdb6 | 6469 | |
10f2d63a VZ |
6470 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` |
6471 | if test "x$LINE" != x ; then | |
6472 | eval "DEFAULT_$LINE" | |
6473 | else | |
6474 | no_cache=1 | |
6475 | fi | |
6476 | ||
6477 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
698dcdb6 VZ |
6478 | |
6479 | fi | |
10f2d63a VZ |
6480 | |
6481 | ||
6482 | eval "$ac_cv_use_scrollbar" | |
6483 | if test "$no_cache" != 1; then | |
6484 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
6485 | fi | |
6486 | ||
6487 | if test "$wxUSE_SCROLLBAR" = yes; then | |
698dcdb6 | 6488 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6489 | else |
698dcdb6 | 6490 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6491 | fi |
698dcdb6 | 6492 | |
10f2d63a | 6493 | |
698dcdb6 | 6494 | echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6 |
3bd8fb5f | 6495 | echo "configure:6496: checking for --enable-slider" >&5 |
10f2d63a VZ |
6496 | no_cache=0 |
6497 | # Check whether --enable-slider or --disable-slider was given. | |
6498 | if test "${enable_slider+set}" = set; then | |
6499 | enableval="$enable_slider" | |
698dcdb6 | 6500 | |
10f2d63a VZ |
6501 | if test "$enableval" = yes; then |
6502 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
6503 | else | |
6504 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
6505 | fi | |
698dcdb6 | 6506 | |
10f2d63a | 6507 | else |
698dcdb6 | 6508 | |
10f2d63a VZ |
6509 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` |
6510 | if test "x$LINE" != x ; then | |
6511 | eval "DEFAULT_$LINE" | |
6512 | else | |
6513 | no_cache=1 | |
6514 | fi | |
6515 | ||
6516 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
698dcdb6 VZ |
6517 | |
6518 | fi | |
10f2d63a VZ |
6519 | |
6520 | ||
6521 | eval "$ac_cv_use_slider" | |
6522 | if test "$no_cache" != 1; then | |
6523 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
6524 | fi | |
6525 | ||
6526 | if test "$wxUSE_SLIDER" = yes; then | |
698dcdb6 | 6527 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6528 | else |
698dcdb6 | 6529 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6530 | fi |
698dcdb6 | 6531 | |
10f2d63a | 6532 | |
698dcdb6 | 6533 | echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6 |
3bd8fb5f | 6534 | echo "configure:6535: checking for --enable-spinbtn" >&5 |
10f2d63a VZ |
6535 | no_cache=0 |
6536 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
6537 | if test "${enable_spinbtn+set}" = set; then | |
6538 | enableval="$enable_spinbtn" | |
698dcdb6 | 6539 | |
10f2d63a VZ |
6540 | if test "$enableval" = yes; then |
6541 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
6542 | else | |
6543 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
6544 | fi | |
698dcdb6 | 6545 | |
10f2d63a | 6546 | else |
698dcdb6 | 6547 | |
10f2d63a VZ |
6548 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` |
6549 | if test "x$LINE" != x ; then | |
6550 | eval "DEFAULT_$LINE" | |
6551 | else | |
6552 | no_cache=1 | |
6553 | fi | |
6554 | ||
6555 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
698dcdb6 VZ |
6556 | |
6557 | fi | |
10f2d63a VZ |
6558 | |
6559 | ||
6560 | eval "$ac_cv_use_spinbtn" | |
6561 | if test "$no_cache" != 1; then | |
6562 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
6563 | fi | |
6564 | ||
6565 | if test "$wxUSE_SPINBTN" = yes; then | |
698dcdb6 | 6566 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6567 | else |
698dcdb6 | 6568 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6569 | fi |
698dcdb6 | 6570 | |
10f2d63a | 6571 | |
698dcdb6 | 6572 | echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6 |
3bd8fb5f | 6573 | echo "configure:6574: checking for --enable-spinctrl" >&5 |
56cfaa52 RR |
6574 | no_cache=0 |
6575 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
6576 | if test "${enable_spinctrl+set}" = set; then | |
6577 | enableval="$enable_spinctrl" | |
698dcdb6 | 6578 | |
56cfaa52 RR |
6579 | if test "$enableval" = yes; then |
6580 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
6581 | else | |
6582 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
6583 | fi | |
698dcdb6 | 6584 | |
56cfaa52 | 6585 | else |
698dcdb6 | 6586 | |
56cfaa52 RR |
6587 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` |
6588 | if test "x$LINE" != x ; then | |
6589 | eval "DEFAULT_$LINE" | |
6590 | else | |
6591 | no_cache=1 | |
6592 | fi | |
6593 | ||
6594 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
698dcdb6 VZ |
6595 | |
6596 | fi | |
56cfaa52 RR |
6597 | |
6598 | ||
6599 | eval "$ac_cv_use_spinctrl" | |
6600 | if test "$no_cache" != 1; then | |
6601 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
6602 | fi | |
6603 | ||
6604 | if test "$wxUSE_SPINCTRL" = yes; then | |
698dcdb6 | 6605 | echo "$ac_t""yes" 1>&6 |
56cfaa52 | 6606 | else |
698dcdb6 | 6607 | echo "$ac_t""no" 1>&6 |
56cfaa52 | 6608 | fi |
698dcdb6 | 6609 | |
56cfaa52 | 6610 | |
698dcdb6 | 6611 | echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6 |
3bd8fb5f | 6612 | echo "configure:6613: checking for --enable-splitter" >&5 |
10f2d63a VZ |
6613 | no_cache=0 |
6614 | # Check whether --enable-splitter or --disable-splitter was given. | |
6615 | if test "${enable_splitter+set}" = set; then | |
6616 | enableval="$enable_splitter" | |
698dcdb6 | 6617 | |
10f2d63a VZ |
6618 | if test "$enableval" = yes; then |
6619 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
6620 | else | |
6621 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
6622 | fi | |
698dcdb6 | 6623 | |
10f2d63a | 6624 | else |
698dcdb6 | 6625 | |
10f2d63a VZ |
6626 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` |
6627 | if test "x$LINE" != x ; then | |
6628 | eval "DEFAULT_$LINE" | |
6629 | else | |
6630 | no_cache=1 | |
6631 | fi | |
6632 | ||
6633 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
698dcdb6 VZ |
6634 | |
6635 | fi | |
10f2d63a VZ |
6636 | |
6637 | ||
6638 | eval "$ac_cv_use_splitter" | |
6639 | if test "$no_cache" != 1; then | |
6640 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
6641 | fi | |
6642 | ||
6643 | if test "$wxUSE_SPLITTER" = yes; then | |
698dcdb6 | 6644 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6645 | else |
698dcdb6 | 6646 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6647 | fi |
698dcdb6 | 6648 | |
10f2d63a | 6649 | |
698dcdb6 | 6650 | echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6 |
3bd8fb5f | 6651 | echo "configure:6652: checking for --enable-statbmp" >&5 |
10f2d63a VZ |
6652 | no_cache=0 |
6653 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
6654 | if test "${enable_statbmp+set}" = set; then | |
6655 | enableval="$enable_statbmp" | |
698dcdb6 | 6656 | |
10f2d63a VZ |
6657 | if test "$enableval" = yes; then |
6658 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
6659 | else | |
6660 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
6661 | fi | |
698dcdb6 | 6662 | |
10f2d63a | 6663 | else |
698dcdb6 | 6664 | |
10f2d63a VZ |
6665 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` |
6666 | if test "x$LINE" != x ; then | |
6667 | eval "DEFAULT_$LINE" | |
6668 | else | |
6669 | no_cache=1 | |
6670 | fi | |
6671 | ||
6672 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
698dcdb6 VZ |
6673 | |
6674 | fi | |
10f2d63a VZ |
6675 | |
6676 | ||
6677 | eval "$ac_cv_use_statbmp" | |
6678 | if test "$no_cache" != 1; then | |
6679 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
6680 | fi | |
6681 | ||
6682 | if test "$wxUSE_STATBMP" = yes; then | |
698dcdb6 | 6683 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6684 | else |
698dcdb6 | 6685 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6686 | fi |
698dcdb6 | 6687 | |
10f2d63a | 6688 | |
698dcdb6 | 6689 | echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6 |
3bd8fb5f | 6690 | echo "configure:6691: checking for --enable-statbox" >&5 |
10f2d63a VZ |
6691 | no_cache=0 |
6692 | # Check whether --enable-statbox or --disable-statbox was given. | |
6693 | if test "${enable_statbox+set}" = set; then | |
6694 | enableval="$enable_statbox" | |
698dcdb6 | 6695 | |
10f2d63a VZ |
6696 | if test "$enableval" = yes; then |
6697 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
6698 | else | |
6699 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
6700 | fi | |
698dcdb6 | 6701 | |
10f2d63a | 6702 | else |
698dcdb6 | 6703 | |
10f2d63a VZ |
6704 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` |
6705 | if test "x$LINE" != x ; then | |
6706 | eval "DEFAULT_$LINE" | |
6707 | else | |
6708 | no_cache=1 | |
6709 | fi | |
6710 | ||
6711 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
698dcdb6 VZ |
6712 | |
6713 | fi | |
10f2d63a VZ |
6714 | |
6715 | ||
6716 | eval "$ac_cv_use_statbox" | |
6717 | if test "$no_cache" != 1; then | |
6718 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
6719 | fi | |
6720 | ||
6721 | if test "$wxUSE_STATBOX" = yes; then | |
698dcdb6 | 6722 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6723 | else |
698dcdb6 | 6724 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6725 | fi |
698dcdb6 | 6726 | |
10f2d63a | 6727 | |
698dcdb6 | 6728 | echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6 |
3bd8fb5f | 6729 | echo "configure:6730: checking for --enable-statline" >&5 |
10f2d63a VZ |
6730 | no_cache=0 |
6731 | # Check whether --enable-statline or --disable-statline was given. | |
6732 | if test "${enable_statline+set}" = set; then | |
6733 | enableval="$enable_statline" | |
698dcdb6 | 6734 | |
10f2d63a VZ |
6735 | if test "$enableval" = yes; then |
6736 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
6737 | else | |
6738 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
6739 | fi | |
698dcdb6 | 6740 | |
10f2d63a | 6741 | else |
698dcdb6 | 6742 | |
10f2d63a VZ |
6743 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` |
6744 | if test "x$LINE" != x ; then | |
6745 | eval "DEFAULT_$LINE" | |
6746 | else | |
6747 | no_cache=1 | |
6748 | fi | |
6749 | ||
6750 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
698dcdb6 VZ |
6751 | |
6752 | fi | |
10f2d63a VZ |
6753 | |
6754 | ||
6755 | eval "$ac_cv_use_statline" | |
6756 | if test "$no_cache" != 1; then | |
6757 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
6758 | fi | |
6759 | ||
6760 | if test "$wxUSE_STATLINE" = yes; then | |
698dcdb6 | 6761 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6762 | else |
698dcdb6 | 6763 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6764 | fi |
698dcdb6 | 6765 | |
10f2d63a | 6766 | |
1e6feb95 | 6767 | echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6 |
3bd8fb5f | 6768 | echo "configure:6769: checking for --enable-stattext" >&5 |
1e6feb95 VZ |
6769 | no_cache=0 |
6770 | # Check whether --enable-stattext or --disable-stattext was given. | |
6771 | if test "${enable_stattext+set}" = set; then | |
6772 | enableval="$enable_stattext" | |
6773 | ||
6774 | if test "$enableval" = yes; then | |
6775 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
6776 | else | |
6777 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
6778 | fi | |
6779 | ||
6780 | else | |
6781 | ||
6782 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
6783 | if test "x$LINE" != x ; then | |
6784 | eval "DEFAULT_$LINE" | |
6785 | else | |
6786 | no_cache=1 | |
6787 | fi | |
6788 | ||
6789 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
6790 | ||
6791 | fi | |
6792 | ||
6793 | ||
6794 | eval "$ac_cv_use_stattext" | |
6795 | if test "$no_cache" != 1; then | |
6796 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
6797 | fi | |
6798 | ||
6799 | if test "$wxUSE_STATTEXT" = yes; then | |
6800 | echo "$ac_t""yes" 1>&6 | |
6801 | else | |
6802 | echo "$ac_t""no" 1>&6 | |
6803 | fi | |
6804 | ||
6805 | ||
698dcdb6 | 6806 | echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6 |
3bd8fb5f | 6807 | echo "configure:6808: checking for --enable-statusbar" >&5 |
10f2d63a VZ |
6808 | no_cache=0 |
6809 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
6810 | if test "${enable_statusbar+set}" = set; then | |
6811 | enableval="$enable_statusbar" | |
698dcdb6 | 6812 | |
10f2d63a VZ |
6813 | if test "$enableval" = yes; then |
6814 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
6815 | else | |
6816 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
6817 | fi | |
698dcdb6 | 6818 | |
10f2d63a | 6819 | else |
698dcdb6 | 6820 | |
10f2d63a VZ |
6821 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` |
6822 | if test "x$LINE" != x ; then | |
6823 | eval "DEFAULT_$LINE" | |
6824 | else | |
6825 | no_cache=1 | |
6826 | fi | |
6827 | ||
6828 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
698dcdb6 VZ |
6829 | |
6830 | fi | |
10f2d63a VZ |
6831 | |
6832 | ||
6833 | eval "$ac_cv_use_statusbar" | |
6834 | if test "$no_cache" != 1; then | |
6835 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
6836 | fi | |
6837 | ||
6838 | if test "$wxUSE_STATUSBAR" = yes; then | |
698dcdb6 | 6839 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6840 | else |
698dcdb6 | 6841 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6842 | fi |
698dcdb6 | 6843 | |
10f2d63a | 6844 | |
698dcdb6 | 6845 | echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6 |
3bd8fb5f | 6846 | echo "configure:6847: checking for --enable-tabdialog" >&5 |
10f2d63a VZ |
6847 | no_cache=0 |
6848 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
6849 | if test "${enable_tabdialog+set}" = set; then | |
6850 | enableval="$enable_tabdialog" | |
698dcdb6 | 6851 | |
10f2d63a VZ |
6852 | if test "$enableval" = yes; then |
6853 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
6854 | else | |
6855 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
6856 | fi | |
698dcdb6 | 6857 | |
10f2d63a | 6858 | else |
698dcdb6 | 6859 | |
10f2d63a VZ |
6860 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` |
6861 | if test "x$LINE" != x ; then | |
6862 | eval "DEFAULT_$LINE" | |
6863 | else | |
6864 | no_cache=1 | |
6865 | fi | |
6866 | ||
6867 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
698dcdb6 VZ |
6868 | |
6869 | fi | |
10f2d63a VZ |
6870 | |
6871 | ||
6872 | eval "$ac_cv_use_tabdialog" | |
6873 | if test "$no_cache" != 1; then | |
6874 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
6875 | fi | |
6876 | ||
6877 | if test "$wxUSE_TABDIALOG" = yes; then | |
698dcdb6 | 6878 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6879 | else |
698dcdb6 | 6880 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6881 | fi |
698dcdb6 | 6882 | |
10f2d63a | 6883 | |
1e6feb95 | 6884 | echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6 |
3bd8fb5f | 6885 | echo "configure:6886: checking for --enable-textctrl" >&5 |
1e6feb95 VZ |
6886 | no_cache=0 |
6887 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
6888 | if test "${enable_textctrl+set}" = set; then | |
6889 | enableval="$enable_textctrl" | |
6890 | ||
6891 | if test "$enableval" = yes; then | |
6892 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
6893 | else | |
6894 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
6895 | fi | |
6896 | ||
6897 | else | |
6898 | ||
6899 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
6900 | if test "x$LINE" != x ; then | |
6901 | eval "DEFAULT_$LINE" | |
6902 | else | |
6903 | no_cache=1 | |
6904 | fi | |
6905 | ||
6906 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
6907 | ||
6908 | fi | |
6909 | ||
6910 | ||
6911 | eval "$ac_cv_use_textctrl" | |
6912 | if test "$no_cache" != 1; then | |
6913 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
6914 | fi | |
6915 | ||
6916 | if test "$wxUSE_TEXTCTRL" = yes; then | |
6917 | echo "$ac_t""yes" 1>&6 | |
6918 | else | |
6919 | echo "$ac_t""no" 1>&6 | |
6920 | fi | |
6921 | ||
6922 | ||
698dcdb6 | 6923 | echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6 |
3bd8fb5f | 6924 | echo "configure:6925: checking for --enable-togglebtn" >&5 |
1db8dc4a VZ |
6925 | no_cache=0 |
6926 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
6927 | if test "${enable_togglebtn+set}" = set; then | |
6928 | enableval="$enable_togglebtn" | |
698dcdb6 | 6929 | |
1db8dc4a VZ |
6930 | if test "$enableval" = yes; then |
6931 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
6932 | else | |
6933 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
6934 | fi | |
698dcdb6 | 6935 | |
1db8dc4a | 6936 | else |
698dcdb6 | 6937 | |
1db8dc4a VZ |
6938 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` |
6939 | if test "x$LINE" != x ; then | |
6940 | eval "DEFAULT_$LINE" | |
6941 | else | |
6942 | no_cache=1 | |
6943 | fi | |
6944 | ||
6945 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
698dcdb6 VZ |
6946 | |
6947 | fi | |
1db8dc4a VZ |
6948 | |
6949 | ||
6950 | eval "$ac_cv_use_togglebtn" | |
6951 | if test "$no_cache" != 1; then | |
6952 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
6953 | fi | |
6954 | ||
6955 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
698dcdb6 | 6956 | echo "$ac_t""yes" 1>&6 |
1db8dc4a | 6957 | else |
698dcdb6 | 6958 | echo "$ac_t""no" 1>&6 |
1db8dc4a | 6959 | fi |
698dcdb6 | 6960 | |
1db8dc4a | 6961 | |
698dcdb6 | 6962 | echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6 |
3bd8fb5f | 6963 | echo "configure:6964: checking for --enable-toolbar" >&5 |
10f2d63a VZ |
6964 | no_cache=0 |
6965 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
6966 | if test "${enable_toolbar+set}" = set; then | |
6967 | enableval="$enable_toolbar" | |
698dcdb6 | 6968 | |
10f2d63a VZ |
6969 | if test "$enableval" = yes; then |
6970 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
6971 | else | |
6972 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
6973 | fi | |
698dcdb6 | 6974 | |
10f2d63a | 6975 | else |
698dcdb6 | 6976 | |
10f2d63a VZ |
6977 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` |
6978 | if test "x$LINE" != x ; then | |
6979 | eval "DEFAULT_$LINE" | |
6980 | else | |
6981 | no_cache=1 | |
6982 | fi | |
6983 | ||
6984 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
698dcdb6 VZ |
6985 | |
6986 | fi | |
10f2d63a VZ |
6987 | |
6988 | ||
6989 | eval "$ac_cv_use_toolbar" | |
6990 | if test "$no_cache" != 1; then | |
6991 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
6992 | fi | |
6993 | ||
6994 | if test "$wxUSE_TOOLBAR" = yes; then | |
698dcdb6 | 6995 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6996 | else |
698dcdb6 | 6997 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6998 | fi |
698dcdb6 | 6999 | |
10f2d63a | 7000 | |
698dcdb6 | 7001 | echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6 |
3bd8fb5f | 7002 | echo "configure:7003: checking for --enable-tbarnative" >&5 |
360d6699 VZ |
7003 | no_cache=0 |
7004 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
7005 | if test "${enable_tbarnative+set}" = set; then | |
7006 | enableval="$enable_tbarnative" | |
698dcdb6 | 7007 | |
360d6699 VZ |
7008 | if test "$enableval" = yes; then |
7009 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
7010 | else | |
7011 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
7012 | fi | |
698dcdb6 | 7013 | |
360d6699 | 7014 | else |
698dcdb6 | 7015 | |
360d6699 VZ |
7016 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` |
7017 | if test "x$LINE" != x ; then | |
7018 | eval "DEFAULT_$LINE" | |
7019 | else | |
7020 | no_cache=1 | |
7021 | fi | |
7022 | ||
7023 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
698dcdb6 VZ |
7024 | |
7025 | fi | |
360d6699 VZ |
7026 | |
7027 | ||
7028 | eval "$ac_cv_use_tbarnative" | |
7029 | if test "$no_cache" != 1; then | |
7030 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
7031 | fi | |
7032 | ||
7033 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
698dcdb6 | 7034 | echo "$ac_t""yes" 1>&6 |
360d6699 | 7035 | else |
698dcdb6 | 7036 | echo "$ac_t""no" 1>&6 |
360d6699 | 7037 | fi |
698dcdb6 | 7038 | |
360d6699 | 7039 | |
698dcdb6 | 7040 | echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6 |
3bd8fb5f | 7041 | echo "configure:7042: checking for --enable-tbarsmpl" >&5 |
360d6699 VZ |
7042 | no_cache=0 |
7043 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
7044 | if test "${enable_tbarsmpl+set}" = set; then | |
7045 | enableval="$enable_tbarsmpl" | |
698dcdb6 | 7046 | |
360d6699 VZ |
7047 | if test "$enableval" = yes; then |
7048 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
7049 | else | |
7050 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
7051 | fi | |
698dcdb6 | 7052 | |
360d6699 | 7053 | else |
698dcdb6 | 7054 | |
360d6699 VZ |
7055 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` |
7056 | if test "x$LINE" != x ; then | |
7057 | eval "DEFAULT_$LINE" | |
7058 | else | |
7059 | no_cache=1 | |
7060 | fi | |
7061 | ||
7062 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
698dcdb6 VZ |
7063 | |
7064 | fi | |
360d6699 VZ |
7065 | |
7066 | ||
7067 | eval "$ac_cv_use_tbarsmpl" | |
7068 | if test "$no_cache" != 1; then | |
7069 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
7070 | fi | |
7071 | ||
7072 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
698dcdb6 | 7073 | echo "$ac_t""yes" 1>&6 |
360d6699 | 7074 | else |
698dcdb6 | 7075 | echo "$ac_t""no" 1>&6 |
360d6699 | 7076 | fi |
698dcdb6 | 7077 | |
360d6699 | 7078 | |
698dcdb6 | 7079 | echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6 |
3bd8fb5f | 7080 | echo "configure:7081: checking for --enable-treectrl" >&5 |
10f2d63a VZ |
7081 | no_cache=0 |
7082 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
7083 | if test "${enable_treectrl+set}" = set; then | |
7084 | enableval="$enable_treectrl" | |
698dcdb6 | 7085 | |
10f2d63a VZ |
7086 | if test "$enableval" = yes; then |
7087 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
7088 | else | |
7089 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
7090 | fi | |
698dcdb6 | 7091 | |
10f2d63a | 7092 | else |
698dcdb6 | 7093 | |
10f2d63a VZ |
7094 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` |
7095 | if test "x$LINE" != x ; then | |
7096 | eval "DEFAULT_$LINE" | |
7097 | else | |
7098 | no_cache=1 | |
7099 | fi | |
7100 | ||
7101 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
698dcdb6 VZ |
7102 | |
7103 | fi | |
10f2d63a VZ |
7104 | |
7105 | ||
1e6feb95 VZ |
7106 | eval "$ac_cv_use_treectrl" |
7107 | if test "$no_cache" != 1; then | |
7108 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
7109 | fi | |
7110 | ||
7111 | if test "$wxUSE_TREECTRL" = yes; then | |
7112 | echo "$ac_t""yes" 1>&6 | |
7113 | else | |
7114 | echo "$ac_t""no" 1>&6 | |
7115 | fi | |
7116 | ||
7117 | ||
9926e4a4 | 7118 | echo $ac_n "checking for --enable-tipwindow""... $ac_c" 1>&6 |
3bd8fb5f | 7119 | echo "configure:7120: checking for --enable-tipwindow" >&5 |
9926e4a4 VZ |
7120 | no_cache=0 |
7121 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
7122 | if test "${enable_tipwindow+set}" = set; then | |
7123 | enableval="$enable_tipwindow" | |
7124 | ||
7125 | if test "$enableval" = yes; then | |
7126 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
7127 | else | |
7128 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
7129 | fi | |
7130 | ||
7131 | else | |
7132 | ||
7133 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` | |
7134 | if test "x$LINE" != x ; then | |
7135 | eval "DEFAULT_$LINE" | |
7136 | else | |
7137 | no_cache=1 | |
7138 | fi | |
7139 | ||
7140 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
7141 | ||
7142 | fi | |
7143 | ||
7144 | ||
7145 | eval "$ac_cv_use_tipwindow" | |
7146 | if test "$no_cache" != 1; then | |
7147 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
7148 | fi | |
7149 | ||
7150 | if test "$wxUSE_TIPWINDOW" = yes; then | |
7151 | echo "$ac_t""yes" 1>&6 | |
7152 | else | |
7153 | echo "$ac_t""no" 1>&6 | |
7154 | fi | |
7155 | ||
7156 | ||
9f41d601 | 7157 | echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6 |
3bd8fb5f | 7158 | echo "configure:7159: checking for --enable-popupwin" >&5 |
9f41d601 RR |
7159 | no_cache=0 |
7160 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
7161 | if test "${enable_popupwin+set}" = set; then | |
7162 | enableval="$enable_popupwin" | |
7163 | ||
7164 | if test "$enableval" = yes; then | |
7165 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
7166 | else | |
7167 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
7168 | fi | |
7169 | ||
7170 | else | |
7171 | ||
7172 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` | |
7173 | if test "x$LINE" != x ; then | |
7174 | eval "DEFAULT_$LINE" | |
7175 | else | |
7176 | no_cache=1 | |
7177 | fi | |
7178 | ||
7179 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
7180 | ||
7181 | fi | |
7182 | ||
7183 | ||
7184 | eval "$ac_cv_use_popupwin" | |
7185 | if test "$no_cache" != 1; then | |
7186 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
7187 | fi | |
7188 | ||
7189 | if test "$wxUSE_POPUPWIN" = yes; then | |
7190 | echo "$ac_t""yes" 1>&6 | |
7191 | else | |
7192 | echo "$ac_t""no" 1>&6 | |
7193 | fi | |
7194 | ||
7195 | ||
1e6feb95 VZ |
7196 | |
7197 | ||
7198 | echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6 | |
3bd8fb5f | 7199 | echo "configure:7200: checking for --enable-commondlg" >&5 |
1e6feb95 VZ |
7200 | no_cache=0 |
7201 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
7202 | if test "${enable_commondlg+set}" = set; then | |
7203 | enableval="$enable_commondlg" | |
7204 | ||
7205 | if test "$enableval" = yes; then | |
7206 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
7207 | else | |
7208 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
7209 | fi | |
7210 | ||
7211 | else | |
7212 | ||
7213 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
7214 | if test "x$LINE" != x ; then | |
7215 | eval "DEFAULT_$LINE" | |
7216 | else | |
7217 | no_cache=1 | |
7218 | fi | |
7219 | ||
7220 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
7221 | ||
7222 | fi | |
7223 | ||
7224 | ||
7225 | eval "$ac_cv_use_commondlg" | |
7226 | if test "$no_cache" != 1; then | |
7227 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
7228 | fi | |
7229 | ||
7230 | if test "$wxUSE_COMMONDLGS" = yes; then | |
7231 | echo "$ac_t""yes" 1>&6 | |
7232 | else | |
7233 | echo "$ac_t""no" 1>&6 | |
7234 | fi | |
7235 | ||
7236 | ||
7237 | echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6 | |
3bd8fb5f | 7238 | echo "configure:7239: checking for --enable-choicedlg" >&5 |
1e6feb95 VZ |
7239 | no_cache=0 |
7240 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
7241 | if test "${enable_choicedlg+set}" = set; then | |
7242 | enableval="$enable_choicedlg" | |
7243 | ||
7244 | if test "$enableval" = yes; then | |
7245 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
7246 | else | |
7247 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
7248 | fi | |
7249 | ||
7250 | else | |
7251 | ||
7252 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
7253 | if test "x$LINE" != x ; then | |
7254 | eval "DEFAULT_$LINE" | |
7255 | else | |
7256 | no_cache=1 | |
7257 | fi | |
7258 | ||
7259 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
7260 | ||
7261 | fi | |
7262 | ||
7263 | ||
7264 | eval "$ac_cv_use_choicedlg" | |
7265 | if test "$no_cache" != 1; then | |
7266 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
7267 | fi | |
7268 | ||
7269 | if test "$wxUSE_CHOICEDLG" = yes; then | |
7270 | echo "$ac_t""yes" 1>&6 | |
7271 | else | |
7272 | echo "$ac_t""no" 1>&6 | |
7273 | fi | |
7274 | ||
7275 | ||
7276 | echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6 | |
3bd8fb5f | 7277 | echo "configure:7278: checking for --enable-coldlg" >&5 |
1e6feb95 VZ |
7278 | no_cache=0 |
7279 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
7280 | if test "${enable_coldlg+set}" = set; then | |
7281 | enableval="$enable_coldlg" | |
7282 | ||
7283 | if test "$enableval" = yes; then | |
7284 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
7285 | else | |
7286 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
7287 | fi | |
7288 | ||
7289 | else | |
7290 | ||
7291 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
7292 | if test "x$LINE" != x ; then | |
7293 | eval "DEFAULT_$LINE" | |
7294 | else | |
7295 | no_cache=1 | |
7296 | fi | |
7297 | ||
7298 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
7299 | ||
7300 | fi | |
7301 | ||
7302 | ||
7303 | eval "$ac_cv_use_coldlg" | |
7304 | if test "$no_cache" != 1; then | |
7305 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
7306 | fi | |
7307 | ||
7308 | if test "$wxUSE_COLOURDLG" = yes; then | |
7309 | echo "$ac_t""yes" 1>&6 | |
7310 | else | |
7311 | echo "$ac_t""no" 1>&6 | |
7312 | fi | |
7313 | ||
7314 | ||
7315 | echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6 | |
3bd8fb5f | 7316 | echo "configure:7317: checking for --enable-filedlg" >&5 |
1e6feb95 VZ |
7317 | no_cache=0 |
7318 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
7319 | if test "${enable_filedlg+set}" = set; then | |
7320 | enableval="$enable_filedlg" | |
7321 | ||
7322 | if test "$enableval" = yes; then | |
7323 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
7324 | else | |
7325 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
7326 | fi | |
7327 | ||
7328 | else | |
7329 | ||
7330 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
7331 | if test "x$LINE" != x ; then | |
7332 | eval "DEFAULT_$LINE" | |
7333 | else | |
7334 | no_cache=1 | |
7335 | fi | |
7336 | ||
7337 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
7338 | ||
7339 | fi | |
7340 | ||
7341 | ||
7342 | eval "$ac_cv_use_filedlg" | |
7343 | if test "$no_cache" != 1; then | |
7344 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
7345 | fi | |
7346 | ||
7347 | if test "$wxUSE_FILEDLG" = yes; then | |
7348 | echo "$ac_t""yes" 1>&6 | |
7349 | else | |
7350 | echo "$ac_t""no" 1>&6 | |
7351 | fi | |
7352 | ||
7353 | ||
69d27ff7 | 7354 | echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6 |
3bd8fb5f | 7355 | echo "configure:7356: checking for --enable-finddlg" >&5 |
8db37e06 | 7356 | no_cache=0 |
69d27ff7 MB |
7357 | # Check whether --enable-finddlg or --disable-finddlg was given. |
7358 | if test "${enable_finddlg+set}" = set; then | |
7359 | enableval="$enable_finddlg" | |
8db37e06 VZ |
7360 | |
7361 | if test "$enableval" = yes; then | |
69d27ff7 | 7362 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' |
8db37e06 | 7363 | else |
69d27ff7 | 7364 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' |
8db37e06 VZ |
7365 | fi |
7366 | ||
7367 | else | |
7368 | ||
7369 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` | |
7370 | if test "x$LINE" != x ; then | |
7371 | eval "DEFAULT_$LINE" | |
7372 | else | |
7373 | no_cache=1 | |
7374 | fi | |
7375 | ||
69d27ff7 | 7376 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG |
8db37e06 VZ |
7377 | |
7378 | fi | |
7379 | ||
7380 | ||
69d27ff7 | 7381 | eval "$ac_cv_use_finddlg" |
8db37e06 | 7382 | if test "$no_cache" != 1; then |
69d27ff7 | 7383 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp |
8db37e06 VZ |
7384 | fi |
7385 | ||
7386 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
7387 | echo "$ac_t""yes" 1>&6 | |
7388 | else | |
7389 | echo "$ac_t""no" 1>&6 | |
7390 | fi | |
7391 | ||
7392 | ||
1e6feb95 | 7393 | echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6 |
3bd8fb5f | 7394 | echo "configure:7395: checking for --enable-fontdlg" >&5 |
1e6feb95 VZ |
7395 | no_cache=0 |
7396 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
7397 | if test "${enable_fontdlg+set}" = set; then | |
7398 | enableval="$enable_fontdlg" | |
7399 | ||
7400 | if test "$enableval" = yes; then | |
7401 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
7402 | else | |
7403 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
7404 | fi | |
7405 | ||
7406 | else | |
7407 | ||
7408 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
7409 | if test "x$LINE" != x ; then | |
7410 | eval "DEFAULT_$LINE" | |
7411 | else | |
7412 | no_cache=1 | |
7413 | fi | |
7414 | ||
7415 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
7416 | ||
7417 | fi | |
7418 | ||
7419 | ||
7420 | eval "$ac_cv_use_fontdlg" | |
7421 | if test "$no_cache" != 1; then | |
7422 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
7423 | fi | |
7424 | ||
7425 | if test "$wxUSE_FONTDLG" = yes; then | |
7426 | echo "$ac_t""yes" 1>&6 | |
7427 | else | |
7428 | echo "$ac_t""no" 1>&6 | |
7429 | fi | |
7430 | ||
7431 | ||
7432 | echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6 | |
3bd8fb5f | 7433 | echo "configure:7434: checking for --enable-dirdlg" >&5 |
1e6feb95 VZ |
7434 | no_cache=0 |
7435 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
7436 | if test "${enable_dirdlg+set}" = set; then | |
7437 | enableval="$enable_dirdlg" | |
7438 | ||
7439 | if test "$enableval" = yes; then | |
7440 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
7441 | else | |
7442 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
7443 | fi | |
7444 | ||
7445 | else | |
7446 | ||
7447 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
7448 | if test "x$LINE" != x ; then | |
7449 | eval "DEFAULT_$LINE" | |
7450 | else | |
7451 | no_cache=1 | |
7452 | fi | |
7453 | ||
7454 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
7455 | ||
7456 | fi | |
7457 | ||
7458 | ||
7459 | eval "$ac_cv_use_dirdlg" | |
10f2d63a | 7460 | if test "$no_cache" != 1; then |
1e6feb95 | 7461 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7462 | fi |
7463 | ||
1e6feb95 | 7464 | if test "$wxUSE_DIRDLG" = yes; then |
698dcdb6 | 7465 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7466 | else |
698dcdb6 | 7467 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7468 | fi |
698dcdb6 VZ |
7469 | |
7470 | ||
1e6feb95 | 7471 | echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6 |
3bd8fb5f | 7472 | echo "configure:7473: checking for --enable-msgdlg" >&5 |
10f2d63a | 7473 | no_cache=0 |
1e6feb95 VZ |
7474 | # Check whether --enable-msgdlg or --disable-msgdlg was given. |
7475 | if test "${enable_msgdlg+set}" = set; then | |
7476 | enableval="$enable_msgdlg" | |
698dcdb6 | 7477 | |
10f2d63a | 7478 | if test "$enableval" = yes; then |
1e6feb95 | 7479 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' |
10f2d63a | 7480 | else |
1e6feb95 | 7481 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' |
10f2d63a | 7482 | fi |
698dcdb6 | 7483 | |
10f2d63a | 7484 | else |
698dcdb6 | 7485 | |
1e6feb95 | 7486 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
7487 | if test "x$LINE" != x ; then |
7488 | eval "DEFAULT_$LINE" | |
7489 | else | |
7490 | no_cache=1 | |
7491 | fi | |
7492 | ||
1e6feb95 | 7493 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG |
698dcdb6 VZ |
7494 | |
7495 | fi | |
10f2d63a VZ |
7496 | |
7497 | ||
1e6feb95 | 7498 | eval "$ac_cv_use_msgdlg" |
10f2d63a | 7499 | if test "$no_cache" != 1; then |
1e6feb95 | 7500 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7501 | fi |
7502 | ||
1e6feb95 | 7503 | if test "$wxUSE_MSGDLG" = yes; then |
698dcdb6 | 7504 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7505 | else |
698dcdb6 | 7506 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7507 | fi |
698dcdb6 | 7508 | |
10f2d63a | 7509 | |
1e6feb95 | 7510 | echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6 |
3bd8fb5f | 7511 | echo "configure:7512: checking for --enable-numberdlg" >&5 |
10f2d63a | 7512 | no_cache=0 |
1e6feb95 VZ |
7513 | # Check whether --enable-numberdlg or --disable-numberdlg was given. |
7514 | if test "${enable_numberdlg+set}" = set; then | |
7515 | enableval="$enable_numberdlg" | |
698dcdb6 | 7516 | |
10f2d63a | 7517 | if test "$enableval" = yes; then |
1e6feb95 | 7518 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' |
10f2d63a | 7519 | else |
1e6feb95 | 7520 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' |
10f2d63a | 7521 | fi |
698dcdb6 | 7522 | |
10f2d63a | 7523 | else |
698dcdb6 | 7524 | |
1e6feb95 | 7525 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
7526 | if test "x$LINE" != x ; then |
7527 | eval "DEFAULT_$LINE" | |
7528 | else | |
7529 | no_cache=1 | |
7530 | fi | |
7531 | ||
1e6feb95 | 7532 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG |
698dcdb6 VZ |
7533 | |
7534 | fi | |
10f2d63a VZ |
7535 | |
7536 | ||
1e6feb95 | 7537 | eval "$ac_cv_use_numberdlg" |
10f2d63a | 7538 | if test "$no_cache" != 1; then |
1e6feb95 | 7539 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7540 | fi |
7541 | ||
1e6feb95 | 7542 | if test "$wxUSE_NUMBERDLG" = yes; then |
698dcdb6 | 7543 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7544 | else |
698dcdb6 | 7545 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7546 | fi |
698dcdb6 | 7547 | |
10f2d63a | 7548 | |
cbca9943 | 7549 | echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6 |
3bd8fb5f | 7550 | echo "configure:7551: checking for --enable-splash" >&5 |
cbca9943 VZ |
7551 | no_cache=0 |
7552 | # Check whether --enable-splash or --disable-splash was given. | |
7553 | if test "${enable_splash+set}" = set; then | |
7554 | enableval="$enable_splash" | |
7555 | ||
7556 | if test "$enableval" = yes; then | |
7557 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
7558 | else | |
7559 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
7560 | fi | |
7561 | ||
7562 | else | |
7563 | ||
7564 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` | |
7565 | if test "x$LINE" != x ; then | |
7566 | eval "DEFAULT_$LINE" | |
7567 | else | |
7568 | no_cache=1 | |
7569 | fi | |
7570 | ||
7571 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
7572 | ||
7573 | fi | |
7574 | ||
7575 | ||
7576 | eval "$ac_cv_use_splash" | |
7577 | if test "$no_cache" != 1; then | |
7578 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
7579 | fi | |
7580 | ||
7581 | if test "$wxUSE_SPLASH" = yes; then | |
7582 | echo "$ac_t""yes" 1>&6 | |
7583 | else | |
7584 | echo "$ac_t""no" 1>&6 | |
7585 | fi | |
7586 | ||
7587 | ||
698dcdb6 | 7588 | echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6 |
3bd8fb5f | 7589 | echo "configure:7590: checking for --enable-textdlg" >&5 |
10f2d63a VZ |
7590 | no_cache=0 |
7591 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
7592 | if test "${enable_textdlg+set}" = set; then | |
7593 | enableval="$enable_textdlg" | |
698dcdb6 | 7594 | |
10f2d63a VZ |
7595 | if test "$enableval" = yes; then |
7596 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
7597 | else | |
7598 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
7599 | fi | |
698dcdb6 | 7600 | |
10f2d63a | 7601 | else |
698dcdb6 | 7602 | |
10f2d63a VZ |
7603 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` |
7604 | if test "x$LINE" != x ; then | |
7605 | eval "DEFAULT_$LINE" | |
7606 | else | |
7607 | no_cache=1 | |
7608 | fi | |
7609 | ||
7610 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
698dcdb6 VZ |
7611 | |
7612 | fi | |
10f2d63a VZ |
7613 | |
7614 | ||
7615 | eval "$ac_cv_use_textdlg" | |
7616 | if test "$no_cache" != 1; then | |
7617 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
7618 | fi | |
7619 | ||
7620 | if test "$wxUSE_TEXTDLG" = yes; then | |
698dcdb6 | 7621 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7622 | else |
698dcdb6 | 7623 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7624 | fi |
698dcdb6 | 7625 | |
10f2d63a | 7626 | |
698dcdb6 | 7627 | echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6 |
3bd8fb5f | 7628 | echo "configure:7629: checking for --enable-tipdlg" >&5 |
10f2d63a VZ |
7629 | no_cache=0 |
7630 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
7631 | if test "${enable_tipdlg+set}" = set; then | |
7632 | enableval="$enable_tipdlg" | |
698dcdb6 | 7633 | |
10f2d63a VZ |
7634 | if test "$enableval" = yes; then |
7635 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
7636 | else | |
7637 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
7638 | fi | |
698dcdb6 | 7639 | |
10f2d63a | 7640 | else |
698dcdb6 | 7641 | |
10f2d63a VZ |
7642 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` |
7643 | if test "x$LINE" != x ; then | |
7644 | eval "DEFAULT_$LINE" | |
7645 | else | |
7646 | no_cache=1 | |
7647 | fi | |
7648 | ||
7649 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
698dcdb6 VZ |
7650 | |
7651 | fi | |
10f2d63a VZ |
7652 | |
7653 | ||
7654 | eval "$ac_cv_use_tipdlg" | |
7655 | if test "$no_cache" != 1; then | |
7656 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
7657 | fi | |
7658 | ||
7659 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
698dcdb6 | 7660 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7661 | else |
698dcdb6 | 7662 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7663 | fi |
698dcdb6 | 7664 | |
10f2d63a | 7665 | |
698dcdb6 | 7666 | echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6 |
3bd8fb5f | 7667 | echo "configure:7668: checking for --enable-progressdlg" >&5 |
10f2d63a VZ |
7668 | no_cache=0 |
7669 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
7670 | if test "${enable_progressdlg+set}" = set; then | |
7671 | enableval="$enable_progressdlg" | |
698dcdb6 | 7672 | |
10f2d63a VZ |
7673 | if test "$enableval" = yes; then |
7674 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
7675 | else | |
7676 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
7677 | fi | |
698dcdb6 | 7678 | |
10f2d63a | 7679 | else |
698dcdb6 | 7680 | |
10f2d63a VZ |
7681 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` |
7682 | if test "x$LINE" != x ; then | |
7683 | eval "DEFAULT_$LINE" | |
7684 | else | |
7685 | no_cache=1 | |
7686 | fi | |
7687 | ||
7688 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
698dcdb6 VZ |
7689 | |
7690 | fi | |
10f2d63a VZ |
7691 | |
7692 | ||
7693 | eval "$ac_cv_use_progressdlg" | |
7694 | if test "$no_cache" != 1; then | |
7695 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
7696 | fi | |
7697 | ||
7698 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
698dcdb6 | 7699 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7700 | else |
698dcdb6 | 7701 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7702 | fi |
698dcdb6 | 7703 | |
10f2d63a | 7704 | |
b1f5d087 | 7705 | echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6 |
3bd8fb5f | 7706 | echo "configure:7707: checking for --enable-wizarddlg" >&5 |
b1f5d087 VZ |
7707 | no_cache=0 |
7708 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
7709 | if test "${enable_wizarddlg+set}" = set; then | |
7710 | enableval="$enable_wizarddlg" | |
7711 | ||
7712 | if test "$enableval" = yes; then | |
7713 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
7714 | else | |
7715 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
7716 | fi | |
7717 | ||
7718 | else | |
7719 | ||
7720 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
7721 | if test "x$LINE" != x ; then | |
7722 | eval "DEFAULT_$LINE" | |
7723 | else | |
7724 | no_cache=1 | |
7725 | fi | |
7726 | ||
7727 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
7728 | ||
7729 | fi | |
7730 | ||
7731 | ||
7732 | eval "$ac_cv_use_wizarddlg" | |
7733 | if test "$no_cache" != 1; then | |
7734 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
7735 | fi | |
7736 | ||
7737 | if test "$wxUSE_WIZARDDLG" = yes; then | |
7738 | echo "$ac_t""yes" 1>&6 | |
7739 | else | |
7740 | echo "$ac_t""no" 1>&6 | |
7741 | fi | |
7742 | ||
7743 | ||
7744 | ||
7745 | ||
1e6feb95 | 7746 | echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6 |
3bd8fb5f | 7747 | echo "configure:7748: checking for --enable-menus" >&5 |
1e6feb95 VZ |
7748 | no_cache=0 |
7749 | # Check whether --enable-menus or --disable-menus was given. | |
7750 | if test "${enable_menus+set}" = set; then | |
7751 | enableval="$enable_menus" | |
7752 | ||
7753 | if test "$enableval" = yes; then | |
7754 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
7755 | else | |
7756 | ac_cv_use_menus='wxUSE_MENUS=no' | |
7757 | fi | |
7758 | ||
7759 | else | |
7760 | ||
7761 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
7762 | if test "x$LINE" != x ; then | |
7763 | eval "DEFAULT_$LINE" | |
7764 | else | |
7765 | no_cache=1 | |
7766 | fi | |
7767 | ||
7768 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
7769 | ||
7770 | fi | |
7771 | ||
7772 | ||
7773 | eval "$ac_cv_use_menus" | |
7774 | if test "$no_cache" != 1; then | |
7775 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
7776 | fi | |
7777 | ||
7778 | if test "$wxUSE_MENUS" = yes; then | |
7779 | echo "$ac_t""yes" 1>&6 | |
7780 | else | |
7781 | echo "$ac_t""no" 1>&6 | |
7782 | fi | |
7783 | ||
7784 | ||
698dcdb6 | 7785 | echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6 |
3bd8fb5f | 7786 | echo "configure:7787: checking for --enable-miniframe" >&5 |
10f2d63a VZ |
7787 | no_cache=0 |
7788 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
7789 | if test "${enable_miniframe+set}" = set; then | |
7790 | enableval="$enable_miniframe" | |
698dcdb6 | 7791 | |
10f2d63a VZ |
7792 | if test "$enableval" = yes; then |
7793 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
7794 | else | |
7795 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
7796 | fi | |
698dcdb6 | 7797 | |
10f2d63a | 7798 | else |
698dcdb6 | 7799 | |
10f2d63a VZ |
7800 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` |
7801 | if test "x$LINE" != x ; then | |
7802 | eval "DEFAULT_$LINE" | |
7803 | else | |
7804 | no_cache=1 | |
7805 | fi | |
7806 | ||
7807 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
698dcdb6 VZ |
7808 | |
7809 | fi | |
10f2d63a VZ |
7810 | |
7811 | ||
7812 | eval "$ac_cv_use_miniframe" | |
7813 | if test "$no_cache" != 1; then | |
7814 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
7815 | fi | |
7816 | ||
7817 | if test "$wxUSE_MINIFRAME" = yes; then | |
698dcdb6 | 7818 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7819 | else |
698dcdb6 | 7820 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7821 | fi |
698dcdb6 | 7822 | |
10f2d63a | 7823 | |
698dcdb6 | 7824 | echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6 |
3bd8fb5f | 7825 | echo "configure:7826: checking for --enable-tooltips" >&5 |
10f2d63a VZ |
7826 | no_cache=0 |
7827 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
7828 | if test "${enable_tooltips+set}" = set; then | |
7829 | enableval="$enable_tooltips" | |
698dcdb6 | 7830 | |
10f2d63a VZ |
7831 | if test "$enableval" = yes; then |
7832 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
7833 | else | |
7834 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
7835 | fi | |
698dcdb6 | 7836 | |
10f2d63a | 7837 | else |
698dcdb6 | 7838 | |
10f2d63a VZ |
7839 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` |
7840 | if test "x$LINE" != x ; then | |
7841 | eval "DEFAULT_$LINE" | |
7842 | else | |
7843 | no_cache=1 | |
7844 | fi | |
7845 | ||
7846 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
698dcdb6 VZ |
7847 | |
7848 | fi | |
10f2d63a VZ |
7849 | |
7850 | ||
7851 | eval "$ac_cv_use_tooltips" | |
7852 | if test "$no_cache" != 1; then | |
7853 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
7854 | fi | |
7855 | ||
7856 | if test "$wxUSE_TOOLTIPS" = yes; then | |
698dcdb6 | 7857 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7858 | else |
698dcdb6 | 7859 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7860 | fi |
698dcdb6 | 7861 | |
10f2d63a | 7862 | |
698dcdb6 | 7863 | echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6 |
3bd8fb5f | 7864 | echo "configure:7865: checking for --enable-splines" >&5 |
10f2d63a VZ |
7865 | no_cache=0 |
7866 | # Check whether --enable-splines or --disable-splines was given. | |
7867 | if test "${enable_splines+set}" = set; then | |
7868 | enableval="$enable_splines" | |
698dcdb6 | 7869 | |
10f2d63a VZ |
7870 | if test "$enableval" = yes; then |
7871 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
7872 | else | |
7873 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
7874 | fi | |
698dcdb6 | 7875 | |
10f2d63a | 7876 | else |
698dcdb6 | 7877 | |
10f2d63a VZ |
7878 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` |
7879 | if test "x$LINE" != x ; then | |
7880 | eval "DEFAULT_$LINE" | |
7881 | else | |
7882 | no_cache=1 | |
7883 | fi | |
7884 | ||
7885 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
698dcdb6 VZ |
7886 | |
7887 | fi | |
10f2d63a VZ |
7888 | |
7889 | ||
7890 | eval "$ac_cv_use_splines" | |
7891 | if test "$no_cache" != 1; then | |
7892 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
7893 | fi | |
7894 | ||
7895 | if test "$wxUSE_SPLINES" = yes; then | |
698dcdb6 | 7896 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7897 | else |
698dcdb6 | 7898 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7899 | fi |
698dcdb6 | 7900 | |
10f2d63a | 7901 | |
698dcdb6 | 7902 | echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6 |
3bd8fb5f | 7903 | echo "configure:7904: checking for --enable-validators" >&5 |
10f2d63a VZ |
7904 | no_cache=0 |
7905 | # Check whether --enable-validators or --disable-validators was given. | |
7906 | if test "${enable_validators+set}" = set; then | |
7907 | enableval="$enable_validators" | |
698dcdb6 | 7908 | |
10f2d63a VZ |
7909 | if test "$enableval" = yes; then |
7910 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
7911 | else | |
7912 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
7913 | fi | |
698dcdb6 | 7914 | |
10f2d63a | 7915 | else |
698dcdb6 | 7916 | |
10f2d63a VZ |
7917 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` |
7918 | if test "x$LINE" != x ; then | |
7919 | eval "DEFAULT_$LINE" | |
7920 | else | |
7921 | no_cache=1 | |
7922 | fi | |
7923 | ||
7924 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
698dcdb6 VZ |
7925 | |
7926 | fi | |
10f2d63a VZ |
7927 | |
7928 | ||
7929 | eval "$ac_cv_use_validators" | |
7930 | if test "$no_cache" != 1; then | |
7931 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
7932 | fi | |
7933 | ||
7934 | if test "$wxUSE_VALIDATORS" = yes; then | |
698dcdb6 | 7935 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7936 | else |
698dcdb6 | 7937 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7938 | fi |
698dcdb6 | 7939 | |
10f2d63a | 7940 | |
698dcdb6 | 7941 | echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6 |
3bd8fb5f | 7942 | echo "configure:7943: checking for --enable-busyinfo" >&5 |
10f2d63a VZ |
7943 | no_cache=0 |
7944 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
7945 | if test "${enable_busyinfo+set}" = set; then | |
7946 | enableval="$enable_busyinfo" | |
698dcdb6 | 7947 | |
10f2d63a VZ |
7948 | if test "$enableval" = yes; then |
7949 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
7950 | else | |
7951 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
7952 | fi | |
698dcdb6 | 7953 | |
10f2d63a | 7954 | else |
698dcdb6 | 7955 | |
10f2d63a VZ |
7956 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` |
7957 | if test "x$LINE" != x ; then | |
7958 | eval "DEFAULT_$LINE" | |
7959 | else | |
7960 | no_cache=1 | |
7961 | fi | |
7962 | ||
7963 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
698dcdb6 VZ |
7964 | |
7965 | fi | |
10f2d63a VZ |
7966 | |
7967 | ||
7968 | eval "$ac_cv_use_busyinfo" | |
7969 | if test "$no_cache" != 1; then | |
7970 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
7971 | fi | |
7972 | ||
7973 | if test "$wxUSE_BUSYINFO" = yes; then | |
698dcdb6 | 7974 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7975 | else |
698dcdb6 | 7976 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7977 | fi |
698dcdb6 | 7978 | |
10f2d63a | 7979 | |
698dcdb6 | 7980 | echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6 |
3bd8fb5f | 7981 | echo "configure:7982: checking for --enable-joystick" >&5 |
f6bcfd97 BP |
7982 | no_cache=0 |
7983 | # Check whether --enable-joystick or --disable-joystick was given. | |
7984 | if test "${enable_joystick+set}" = set; then | |
7985 | enableval="$enable_joystick" | |
698dcdb6 | 7986 | |
f6bcfd97 BP |
7987 | if test "$enableval" = yes; then |
7988 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
7989 | else | |
7990 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
7991 | fi | |
698dcdb6 | 7992 | |
f6bcfd97 | 7993 | else |
698dcdb6 | 7994 | |
f6bcfd97 BP |
7995 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` |
7996 | if test "x$LINE" != x ; then | |
7997 | eval "DEFAULT_$LINE" | |
7998 | else | |
7999 | no_cache=1 | |
8000 | fi | |
8001 | ||
8002 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
698dcdb6 VZ |
8003 | |
8004 | fi | |
f6bcfd97 BP |
8005 | |
8006 | ||
8007 | eval "$ac_cv_use_joystick" | |
8008 | if test "$no_cache" != 1; then | |
8009 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
8010 | fi | |
8011 | ||
8012 | if test "$wxUSE_JOYSTICK" = yes; then | |
698dcdb6 | 8013 | echo "$ac_t""yes" 1>&6 |
f6bcfd97 | 8014 | else |
698dcdb6 | 8015 | echo "$ac_t""no" 1>&6 |
f6bcfd97 | 8016 | fi |
698dcdb6 VZ |
8017 | |
8018 | ||
1e6feb95 | 8019 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
3bd8fb5f | 8020 | echo "configure:8021: checking for --enable-metafile" >&5 |
1e6feb95 VZ |
8021 | no_cache=0 |
8022 | # Check whether --enable-metafile or --disable-metafile was given. | |
8023 | if test "${enable_metafile+set}" = set; then | |
8024 | enableval="$enable_metafile" | |
8025 | ||
8026 | if test "$enableval" = yes; then | |
8027 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
8028 | else | |
8029 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
8030 | fi | |
8031 | ||
8032 | else | |
8033 | ||
8034 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
8035 | if test "x$LINE" != x ; then | |
8036 | eval "DEFAULT_$LINE" | |
8037 | else | |
8038 | no_cache=1 | |
8039 | fi | |
8040 | ||
8041 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
8042 | ||
8043 | fi | |
8044 | ||
8045 | ||
8046 | eval "$ac_cv_use_metafile" | |
8047 | if test "$no_cache" != 1; then | |
8048 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
8049 | fi | |
8050 | ||
8051 | if test "$wxUSE_METAFILE" = yes; then | |
8052 | echo "$ac_t""yes" 1>&6 | |
8053 | else | |
8054 | echo "$ac_t""no" 1>&6 | |
8055 | fi | |
8056 | ||
8057 | ||
24fd6d87 | 8058 | echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6 |
3bd8fb5f | 8059 | echo "configure:8060: checking for --enable-dragimage" >&5 |
24fd6d87 VZ |
8060 | no_cache=0 |
8061 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
8062 | if test "${enable_dragimage+set}" = set; then | |
8063 | enableval="$enable_dragimage" | |
8064 | ||
8065 | if test "$enableval" = yes; then | |
8066 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
8067 | else | |
8068 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
8069 | fi | |
8070 | ||
8071 | else | |
8072 | ||
8073 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
8074 | if test "x$LINE" != x ; then | |
8075 | eval "DEFAULT_$LINE" | |
8076 | else | |
8077 | no_cache=1 | |
8078 | fi | |
8079 | ||
8080 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
8081 | ||
8082 | fi | |
8083 | ||
8084 | ||
8085 | eval "$ac_cv_use_dragimage" | |
8086 | if test "$no_cache" != 1; then | |
8087 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
8088 | fi | |
8089 | ||
8090 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
8091 | echo "$ac_t""yes" 1>&6 | |
8092 | else | |
8093 | echo "$ac_t""no" 1>&6 | |
8094 | fi | |
8095 | ||
8096 | ||
10f2d63a | 8097 | |
698dcdb6 | 8098 | |
edae8572 | 8099 | echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6 |
3bd8fb5f | 8100 | echo "configure:8101: checking for --enable-palette" >&5 |
edae8572 VZ |
8101 | no_cache=0 |
8102 | # Check whether --enable-palette or --disable-palette was given. | |
8103 | if test "${enable_palette+set}" = set; then | |
8104 | enableval="$enable_palette" | |
8105 | ||
8106 | if test "$enableval" = yes; then | |
8107 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
8108 | else | |
8109 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
8110 | fi | |
8111 | ||
8112 | else | |
8113 | ||
8114 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` | |
8115 | if test "x$LINE" != x ; then | |
8116 | eval "DEFAULT_$LINE" | |
8117 | else | |
8118 | no_cache=1 | |
8119 | fi | |
8120 | ||
8121 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
8122 | ||
8123 | fi | |
8124 | ||
8125 | ||
8126 | eval "$ac_cv_use_palette" | |
8127 | if test "$no_cache" != 1; then | |
8128 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
8129 | fi | |
8130 | ||
8131 | if test "$wxUSE_PALETTE" = yes; then | |
8132 | echo "$ac_t""yes" 1>&6 | |
8133 | else | |
8134 | echo "$ac_t""no" 1>&6 | |
8135 | fi | |
8136 | ||
8137 | ||
698dcdb6 | 8138 | echo $ac_n "checking for --enable-image""... $ac_c" 1>&6 |
3bd8fb5f | 8139 | echo "configure:8140: checking for --enable-image" >&5 |
0046ff7c VS |
8140 | no_cache=0 |
8141 | # Check whether --enable-image or --disable-image was given. | |
8142 | if test "${enable_image+set}" = set; then | |
8143 | enableval="$enable_image" | |
698dcdb6 | 8144 | |
0046ff7c VS |
8145 | if test "$enableval" = yes; then |
8146 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
8147 | else | |
8148 | ac_cv_use_image='wxUSE_IMAGE=no' | |
8149 | fi | |
698dcdb6 | 8150 | |
0046ff7c | 8151 | else |
698dcdb6 | 8152 | |
0046ff7c VS |
8153 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` |
8154 | if test "x$LINE" != x ; then | |
8155 | eval "DEFAULT_$LINE" | |
8156 | else | |
8157 | no_cache=1 | |
8158 | fi | |
8159 | ||
8160 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
698dcdb6 VZ |
8161 | |
8162 | fi | |
0046ff7c VS |
8163 | |
8164 | ||
8165 | eval "$ac_cv_use_image" | |
8166 | if test "$no_cache" != 1; then | |
8167 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
8168 | fi | |
8169 | ||
8170 | if test "$wxUSE_IMAGE" = yes; then | |
698dcdb6 | 8171 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 8172 | else |
698dcdb6 | 8173 | echo "$ac_t""no" 1>&6 |
0046ff7c | 8174 | fi |
698dcdb6 | 8175 | |
0046ff7c | 8176 | |
698dcdb6 | 8177 | echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6 |
3bd8fb5f | 8178 | echo "configure:8179: checking for --enable-gif" >&5 |
10f2d63a VZ |
8179 | no_cache=0 |
8180 | # Check whether --enable-gif or --disable-gif was given. | |
8181 | if test "${enable_gif+set}" = set; then | |
8182 | enableval="$enable_gif" | |
698dcdb6 | 8183 | |
10f2d63a VZ |
8184 | if test "$enableval" = yes; then |
8185 | ac_cv_use_gif='wxUSE_GIF=yes' | |
8186 | else | |
8187 | ac_cv_use_gif='wxUSE_GIF=no' | |
8188 | fi | |
698dcdb6 | 8189 | |
10f2d63a | 8190 | else |
698dcdb6 | 8191 | |
10f2d63a VZ |
8192 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` |
8193 | if test "x$LINE" != x ; then | |
8194 | eval "DEFAULT_$LINE" | |
8195 | else | |
8196 | no_cache=1 | |
8197 | fi | |
8198 | ||
8199 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
698dcdb6 VZ |
8200 | |
8201 | fi | |
10f2d63a VZ |
8202 | |
8203 | ||
8204 | eval "$ac_cv_use_gif" | |
8205 | if test "$no_cache" != 1; then | |
8206 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
8207 | fi | |
8208 | ||
8209 | if test "$wxUSE_GIF" = yes; then | |
698dcdb6 | 8210 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8211 | else |
698dcdb6 | 8212 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8213 | fi |
698dcdb6 | 8214 | |
10f2d63a | 8215 | |
698dcdb6 | 8216 | echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6 |
3bd8fb5f | 8217 | echo "configure:8218: checking for --enable-pcx" >&5 |
10f2d63a VZ |
8218 | no_cache=0 |
8219 | # Check whether --enable-pcx or --disable-pcx was given. | |
8220 | if test "${enable_pcx+set}" = set; then | |
8221 | enableval="$enable_pcx" | |
698dcdb6 | 8222 | |
10f2d63a VZ |
8223 | if test "$enableval" = yes; then |
8224 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
8225 | else | |
8226 | ac_cv_use_pcx='wxUSE_PCX=no' | |
8227 | fi | |
698dcdb6 | 8228 | |
10f2d63a | 8229 | else |
698dcdb6 | 8230 | |
10f2d63a VZ |
8231 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` |
8232 | if test "x$LINE" != x ; then | |
8233 | eval "DEFAULT_$LINE" | |
8234 | else | |
8235 | no_cache=1 | |
8236 | fi | |
8237 | ||
8238 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
698dcdb6 VZ |
8239 | |
8240 | fi | |
10f2d63a VZ |
8241 | |
8242 | ||
8243 | eval "$ac_cv_use_pcx" | |
8244 | if test "$no_cache" != 1; then | |
8245 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
8246 | fi | |
8247 | ||
8248 | if test "$wxUSE_PCX" = yes; then | |
698dcdb6 | 8249 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8250 | else |
698dcdb6 | 8251 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8252 | fi |
698dcdb6 | 8253 | |
10f2d63a | 8254 | |
4b6b4dfc | 8255 | echo $ac_n "checking for --enable-iff""... $ac_c" 1>&6 |
3bd8fb5f | 8256 | echo "configure:8257: checking for --enable-iff" >&5 |
4b6b4dfc RR |
8257 | no_cache=0 |
8258 | # Check whether --enable-iff or --disable-iff was given. | |
8259 | if test "${enable_iff+set}" = set; then | |
8260 | enableval="$enable_iff" | |
8261 | ||
8262 | if test "$enableval" = yes; then | |
8263 | ac_cv_use_iff='wxUSE_IFF=yes' | |
8264 | else | |
8265 | ac_cv_use_iff='wxUSE_IFF=no' | |
8266 | fi | |
8267 | ||
8268 | else | |
8269 | ||
8270 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` | |
8271 | if test "x$LINE" != x ; then | |
8272 | eval "DEFAULT_$LINE" | |
8273 | else | |
8274 | no_cache=1 | |
8275 | fi | |
8276 | ||
8277 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
8278 | ||
8279 | fi | |
8280 | ||
8281 | ||
8282 | eval "$ac_cv_use_iff" | |
8283 | if test "$no_cache" != 1; then | |
8284 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
8285 | fi | |
8286 | ||
8287 | if test "$wxUSE_IFF" = yes; then | |
8288 | echo "$ac_t""yes" 1>&6 | |
8289 | else | |
8290 | echo "$ac_t""no" 1>&6 | |
8291 | fi | |
8292 | ||
8293 | ||
698dcdb6 | 8294 | echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6 |
3bd8fb5f | 8295 | echo "configure:8296: checking for --enable-pnm" >&5 |
10f2d63a VZ |
8296 | no_cache=0 |
8297 | # Check whether --enable-pnm or --disable-pnm was given. | |
8298 | if test "${enable_pnm+set}" = set; then | |
8299 | enableval="$enable_pnm" | |
698dcdb6 | 8300 | |
10f2d63a VZ |
8301 | if test "$enableval" = yes; then |
8302 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
8303 | else | |
8304 | ac_cv_use_pnm='wxUSE_PNM=no' | |
8305 | fi | |
698dcdb6 | 8306 | |
10f2d63a | 8307 | else |
698dcdb6 | 8308 | |
10f2d63a VZ |
8309 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` |
8310 | if test "x$LINE" != x ; then | |
8311 | eval "DEFAULT_$LINE" | |
8312 | else | |
8313 | no_cache=1 | |
8314 | fi | |
8315 | ||
8316 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
698dcdb6 VZ |
8317 | |
8318 | fi | |
10f2d63a VZ |
8319 | |
8320 | ||
8321 | eval "$ac_cv_use_pnm" | |
8322 | if test "$no_cache" != 1; then | |
8323 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
8324 | fi | |
8325 | ||
8326 | if test "$wxUSE_PNM" = yes; then | |
698dcdb6 | 8327 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8328 | else |
698dcdb6 | 8329 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8330 | fi |
698dcdb6 | 8331 | |
10f2d63a | 8332 | |
69d27ff7 | 8333 | echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6 |
3bd8fb5f | 8334 | echo "configure:8335: checking for --enable-xpm" >&5 |
0046ff7c | 8335 | no_cache=0 |
69d27ff7 MB |
8336 | # Check whether --enable-xpm or --disable-xpm was given. |
8337 | if test "${enable_xpm+set}" = set; then | |
8338 | enableval="$enable_xpm" | |
698dcdb6 | 8339 | |
0046ff7c | 8340 | if test "$enableval" = yes; then |
69d27ff7 | 8341 | ac_cv_use_xpm='wxUSE_XPM=yes' |
0046ff7c | 8342 | else |
69d27ff7 | 8343 | ac_cv_use_xpm='wxUSE_XPM=no' |
0046ff7c | 8344 | fi |
698dcdb6 | 8345 | |
0046ff7c | 8346 | else |
698dcdb6 | 8347 | |
0046ff7c VS |
8348 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` |
8349 | if test "x$LINE" != x ; then | |
8350 | eval "DEFAULT_$LINE" | |
8351 | else | |
8352 | no_cache=1 | |
8353 | fi | |
8354 | ||
69d27ff7 | 8355 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM |
698dcdb6 VZ |
8356 | |
8357 | fi | |
0046ff7c VS |
8358 | |
8359 | ||
69d27ff7 | 8360 | eval "$ac_cv_use_xpm" |
0046ff7c | 8361 | if test "$no_cache" != 1; then |
69d27ff7 | 8362 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp |
0046ff7c VS |
8363 | fi |
8364 | ||
8365 | if test "$wxUSE_XPM" = yes; then | |
698dcdb6 | 8366 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 8367 | else |
698dcdb6 | 8368 | echo "$ac_t""no" 1>&6 |
0046ff7c | 8369 | fi |
698dcdb6 | 8370 | |
0046ff7c | 8371 | |
c7206e64 | 8372 | echo $ac_n "checking for --enable-ico_cur""... $ac_c" 1>&6 |
3bd8fb5f | 8373 | echo "configure:8374: checking for --enable-ico_cur" >&5 |
658974ae | 8374 | no_cache=0 |
c7206e64 VS |
8375 | # Check whether --enable-ico_cur or --disable-ico_cur was given. |
8376 | if test "${enable_ico_cur+set}" = set; then | |
8377 | enableval="$enable_ico_cur" | |
658974ae VS |
8378 | |
8379 | if test "$enableval" = yes; then | |
c7206e64 | 8380 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' |
658974ae | 8381 | else |
c7206e64 | 8382 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' |
658974ae VS |
8383 | fi |
8384 | ||
8385 | else | |
8386 | ||
8387 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` | |
8388 | if test "x$LINE" != x ; then | |
8389 | eval "DEFAULT_$LINE" | |
8390 | else | |
8391 | no_cache=1 | |
8392 | fi | |
8393 | ||
c7206e64 | 8394 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR |
658974ae VS |
8395 | |
8396 | fi | |
8397 | ||
8398 | ||
c7206e64 | 8399 | eval "$ac_cv_use_ico_cur" |
658974ae | 8400 | if test "$no_cache" != 1; then |
c7206e64 | 8401 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp |
658974ae VS |
8402 | fi |
8403 | ||
8404 | if test "$wxUSE_ICO_CUR" = yes; then | |
8405 | echo "$ac_t""yes" 1>&6 | |
8406 | else | |
8407 | echo "$ac_t""no" 1>&6 | |
8408 | fi | |
8409 | ||
8410 | ||
b12915c1 VZ |
8411 | fi |
8412 | ||
d558c907 VS |
8413 | case "${host}" in |
8414 | *-pc-os2_emx | *-pc-os2-emx ) | |
8415 | LEX_STEM="lexyy" | |
8416 | ;; | |
8417 | *) | |
8418 | PATH_IFS=':' | |
8419 | LEX_STEM="lex.yy" | |
8420 | ;; | |
8421 | esac | |
8422 | ||
8423 | ||
698dcdb6 | 8424 | |
10f2d63a VZ |
8425 | echo "saving argument cache $wx_arg_cache_file" |
8426 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
698dcdb6 | 8427 | |
10f2d63a | 8428 | |
698dcdb6 VZ |
8429 | |
8430 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 | |
3bd8fb5f | 8431 | echo "configure:8432: checking for toolkit" >&5 |
10f2d63a VZ |
8432 | |
8433 | if test "$wxUSE_GUI" = "yes"; then | |
8434 | ||
3a922bb4 RL |
8435 | if test "$USE_BEOS" = 1; then |
8436 | { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; } | |
8437 | fi | |
b12915c1 | 8438 | |
3a922bb4 RL |
8439 | if test "$TOOLKIT_GIVEN" = 1; then |
8440 | for toolkit in `echo $ALL_TOOLKITS`; do | |
8441 | var=wxUSE_$toolkit | |
8442 | eval "value=\$${var}" | |
8443 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
8444 | done | |
10f2d63a | 8445 | else |
3a922bb4 RL |
8446 | for toolkit in `echo $ALL_TOOLKITS`; do |
8447 | if test "$has_toolkit_in_cache" != 1; then | |
8448 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
8449 | else | |
8450 | var=DEFAULT_wxUSE_$toolkit | |
8451 | fi | |
8452 | eval "wxUSE_$toolkit=\$${var}" | |
8453 | done | |
10f2d63a | 8454 | fi |
10f2d63a | 8455 | |
3a922bb4 | 8456 | NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \ |
f79bd02d | 8457 | + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}` |
10f2d63a | 8458 | |
d558c907 | 8459 | case "${host}" in |
6fa882bd | 8460 | *-pc-os2_emx | *-pc-os2-emx ) |
3a922bb4 | 8461 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` |
3a922bb4 | 8462 | esac |
10f2d63a | 8463 | |
3a922bb4 RL |
8464 | case "$NUM_TOOLKITS" in |
8465 | 1) | |
8466 | ;; | |
8467 | 0) | |
8468 | { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; } | |
8469 | ;; | |
8470 | *) | |
8471 | { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; } | |
8472 | esac | |
10f2d63a | 8473 | |
3a922bb4 RL |
8474 | for toolkit in `echo $ALL_TOOLKITS`; do |
8475 | var=wxUSE_$toolkit | |
8476 | eval "value=\$${var}" | |
8477 | if test "x$value" != x; then | |
8478 | cache_var=CACHE_$toolkit | |
8479 | eval "cache=\$${cache_var}" | |
8480 | if test "$cache" = 1; then | |
8481 | echo "$var=$value" >> ${wx_arg_cache_file} | |
8482 | fi | |
8483 | if test "$value" = 1; then | |
8484 | toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]` | |
8485 | echo "$ac_t""$toolkit_echo" 1>&6 | |
8486 | fi | |
8487 | fi | |
8488 | done | |
10f2d63a | 8489 | else |
3a922bb4 | 8490 | echo "$ac_t""base ($host_alias hosted) only" 1>&6 |
10f2d63a VZ |
8491 | fi |
8492 | ||
698dcdb6 | 8493 | |
43d99b6d VS |
8494 | wants_win32=0 |
8495 | doesnt_want_win32=0 | |
17234b26 MB |
8496 | case "${host}" in |
8497 | *-*-cygwin*) | |
8498 | if test "$wxUSE_MSW" = 1 ; then | |
43d99b6d VS |
8499 | wants_win32=1 |
8500 | else | |
8501 | doesnt_want_win32=1 | |
17234b26 MB |
8502 | fi |
8503 | ;; | |
8504 | *-*-mingw*) | |
43d99b6d | 8505 | wants_win32=1 |
17234b26 MB |
8506 | ;; |
8507 | esac | |
8508 | ||
43d99b6d | 8509 | if test "$wants_win32" = 1 ; then |
17234b26 MB |
8510 | USE_UNIX=0 |
8511 | USE_WIN32=1 | |
8512 | cat >> confdefs.h <<\EOF | |
8513 | #define __WIN32__ 1 | |
8514 | EOF | |
8515 | ||
8516 | cat >> confdefs.h <<\EOF | |
8517 | #define __WIN95__ 1 | |
8518 | EOF | |
8519 | ||
8520 | cat >> confdefs.h <<\EOF | |
8521 | #define __WINDOWS__ 1 | |
8522 | EOF | |
8523 | ||
8524 | cat >> confdefs.h <<\EOF | |
8525 | #define __GNUWIN32__ 1 | |
8526 | EOF | |
8527 | ||
8528 | cat >> confdefs.h <<\EOF | |
8529 | #define STRICT 1 | |
8530 | EOF | |
8531 | ||
8532 | cat >> confdefs.h <<\EOF | |
8533 | #define WINVER 0x0400 | |
8534 | EOF | |
8535 | ||
43d99b6d VS |
8536 | fi |
8537 | if test "$doesnt_want_win32" = 1 ; then | |
17234b26 MB |
8538 | USE_UNIX=1 |
8539 | USE_WIN32=0 | |
8540 | fi | |
8541 | ||
8542 | if test "$USE_UNIX" = 1 ; then | |
8543 | wxUSE_UNIX=yes | |
8544 | cat >> confdefs.h <<\EOF | |
8545 | #define __UNIX__ 1 | |
8546 | EOF | |
8547 | ||
8548 | fi | |
8549 | ||
8550 | ||
698dcdb6 | 8551 | cat > confcache <<\EOF |
10f2d63a VZ |
8552 | # This file is a shell script that caches the results of configure |
8553 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
8554 | # scripts and configure runs. It is not useful on other systems. |
8555 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 8556 | # |
698dcdb6 VZ |
8557 | # By default, configure uses ./config.cache as the cache file, |
8558 | # creating it if it does not exist already. You can give configure | |
8559 | # the --cache-file=FILE option to use a different cache file; that is | |
8560 | # what configure does when it calls configure scripts in | |
8561 | # subdirectories, so they share the cache. | |
8562 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
8563 | # config.status only pays attention to the cache file if you give it the | |
8564 | # --recheck option to rerun configure. | |
10f2d63a | 8565 | # |
698dcdb6 | 8566 | EOF |
10f2d63a VZ |
8567 | # The following way of writing the cache mishandles newlines in values, |
8568 | # but we know of no workaround that is simple, portable, and efficient. | |
8569 | # So, don't put newlines in cache variables' values. | |
8570 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
8571 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
8572 | (set) 2>&1 | |
8573 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
8574 | *ac_space=\ *) | |
8575 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
8576 | # turns \\\\ into \\, and sed turns \\ into \). | |
8577 | sed -n \ | |
8578 | -e "s/'/'\\\\''/g" \ | |
8579 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
8580 | ;; | |
8581 | *) | |
8582 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
8583 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
8584 | ;; | |
8585 | esac >> confcache | |
8586 | if cmp -s $cache_file confcache; then | |
8587 | : | |
8588 | else | |
10f2d63a | 8589 | if test -w $cache_file; then |
698dcdb6 VZ |
8590 | echo "updating cache $cache_file" |
8591 | cat confcache > $cache_file | |
10f2d63a VZ |
8592 | else |
8593 | echo "not updating unwritable cache $cache_file" | |
8594 | fi | |
8595 | fi | |
8596 | rm -f confcache | |
8597 | ||
698dcdb6 | 8598 | |
e59890c3 | 8599 | if test "$build" != "$host" ; then |
9d353d4a | 8600 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then |
3a922bb4 RL |
8601 | CC=$host_alias-gcc |
8602 | CXX=$host_alias-c++ | |
8603 | AR=$host_alias-ar | |
8604 | RANLIB=$host_alias-ranlib | |
8605 | DLLTOOL=$host_alias-dlltool | |
8606 | RESCOMP=$host_alias-windres | |
8607 | LD=$host_alias-ld | |
8608 | NM=$host_alias-nm | |
8609 | STRIP=$host_alias-strip | |
8610 | else | |
8611 | { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; } | |
8612 | fi | |
10f2d63a VZ |
8613 | fi |
8614 | ||
ec603395 | 8615 | CFLAGS=${CFLAGS:=} |
698dcdb6 | 8616 | # Extract the first word of "gcc", so it can be a program name with args. |
1e487827 | 8617 | set dummy gcc; ac_word=$2 |
698dcdb6 | 8618 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
43d99b6d | 8619 | echo "configure:8620: checking for $ac_word" >&5 |
698dcdb6 VZ |
8620 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8621 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6232543b VS |
8622 | else |
8623 | if test -n "$CC"; then | |
8624 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10f2d63a | 8625 | else |
698dcdb6 VZ |
8626 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8627 | ac_dummy="$PATH" | |
8628 | for ac_dir in $ac_dummy; do | |
8629 | test -z "$ac_dir" && ac_dir=. | |
8630 | if test -f $ac_dir/$ac_word; then | |
8631 | ac_cv_prog_CC="gcc" | |
8632 | break | |
8633 | fi | |
8634 | done | |
8635 | IFS="$ac_save_ifs" | |
10f2d63a | 8636 | fi |
6232543b | 8637 | fi |
698dcdb6 | 8638 | CC="$ac_cv_prog_CC" |
6232543b | 8639 | if test -n "$CC"; then |
698dcdb6 | 8640 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 8641 | else |
698dcdb6 | 8642 | echo "$ac_t""no" 1>&6 |
1e487827 | 8643 | fi |
6232543b | 8644 | |
1e487827 VS |
8645 | if test -z "$CC"; then |
8646 | # Extract the first word of "cc", so it can be a program name with args. | |
8647 | set dummy cc; ac_word=$2 | |
698dcdb6 | 8648 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
43d99b6d | 8649 | echo "configure:8650: checking for $ac_word" >&5 |
698dcdb6 VZ |
8650 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8651 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 VS |
8652 | else |
8653 | if test -n "$CC"; then | |
8654 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
8655 | else | |
698dcdb6 | 8656 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1e487827 | 8657 | ac_prog_rejected=no |
698dcdb6 VZ |
8658 | ac_dummy="$PATH" |
8659 | for ac_dir in $ac_dummy; do | |
8660 | test -z "$ac_dir" && ac_dir=. | |
8661 | if test -f $ac_dir/$ac_word; then | |
8662 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
8663 | ac_prog_rejected=yes | |
8664 | continue | |
8665 | fi | |
8666 | ac_cv_prog_CC="cc" | |
8667 | break | |
8668 | fi | |
8669 | done | |
8670 | IFS="$ac_save_ifs" | |
1e487827 VS |
8671 | if test $ac_prog_rejected = yes; then |
8672 | # We found a bogon in the path, so make sure we never use it. | |
8673 | set dummy $ac_cv_prog_CC | |
8674 | shift | |
698dcdb6 | 8675 | if test $# -gt 0; then |
1e487827 VS |
8676 | # We chose a different compiler from the bogus one. |
8677 | # However, it has the same basename, so the bogon will be chosen | |
8678 | # first if we set CC to just the basename; use the full file name. | |
8679 | shift | |
698dcdb6 | 8680 | set dummy "$ac_dir/$ac_word" "$@" |
1e487827 VS |
8681 | shift |
8682 | ac_cv_prog_CC="$@" | |
703e0a69 | 8683 | fi |
1e487827 VS |
8684 | fi |
8685 | fi | |
8686 | fi | |
698dcdb6 | 8687 | CC="$ac_cv_prog_CC" |
1e487827 | 8688 | if test -n "$CC"; then |
698dcdb6 | 8689 | echo "$ac_t""$CC" 1>&6 |
703e0a69 | 8690 | else |
698dcdb6 | 8691 | echo "$ac_t""no" 1>&6 |
703e0a69 | 8692 | fi |
1e487827 | 8693 | |
698dcdb6 VZ |
8694 | if test -z "$CC"; then |
8695 | case "`uname -s`" in | |
8696 | *win32* | *WIN32*) | |
8697 | # Extract the first word of "cl", so it can be a program name with args. | |
8698 | set dummy cl; ac_word=$2 | |
8699 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
43d99b6d | 8700 | echo "configure:8701: checking for $ac_word" >&5 |
698dcdb6 VZ |
8701 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8702 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 VS |
8703 | else |
8704 | if test -n "$CC"; then | |
8705 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
703e0a69 | 8706 | else |
698dcdb6 VZ |
8707 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8708 | ac_dummy="$PATH" | |
8709 | for ac_dir in $ac_dummy; do | |
8710 | test -z "$ac_dir" && ac_dir=. | |
8711 | if test -f $ac_dir/$ac_word; then | |
8712 | ac_cv_prog_CC="cl" | |
8713 | break | |
8714 | fi | |
8715 | done | |
8716 | IFS="$ac_save_ifs" | |
703e0a69 | 8717 | fi |
1e487827 | 8718 | fi |
698dcdb6 | 8719 | CC="$ac_cv_prog_CC" |
1e487827 | 8720 | if test -n "$CC"; then |
698dcdb6 | 8721 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 8722 | else |
698dcdb6 | 8723 | echo "$ac_t""no" 1>&6 |
1e487827 | 8724 | fi |
698dcdb6 VZ |
8725 | ;; |
8726 | esac | |
8727 | fi | |
8728 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
1e487827 VS |
8729 | fi |
8730 | ||
698dcdb6 | 8731 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
43d99b6d | 8732 | echo "configure:8733: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
1e487827 | 8733 | |
698dcdb6 VZ |
8734 | ac_ext=c |
8735 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8736 | ac_cpp='$CPP $CPPFLAGS' | |
8737 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8738 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8739 | cross_compiling=$ac_cv_prog_cc_cross | |
6232543b | 8740 | |
698dcdb6 | 8741 | cat > conftest.$ac_ext << EOF |
1e487827 | 8742 | |
43d99b6d | 8743 | #line 8744 "configure" |
1e487827 VS |
8744 | #include "confdefs.h" |
8745 | ||
698dcdb6 VZ |
8746 | main(){return(0);} |
8747 | EOF | |
43d99b6d | 8748 | if { (eval echo configure:8749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
8749 | ac_cv_prog_cc_works=yes |
8750 | # If we can't run a trivial program, we are probably using a cross compiler. | |
8751 | if (./conftest; exit) 2>/dev/null; then | |
8752 | ac_cv_prog_cc_cross=no | |
8753 | else | |
8754 | ac_cv_prog_cc_cross=yes | |
8755 | fi | |
8756 | else | |
8757 | echo "configure: failed program was:" >&5 | |
8758 | cat conftest.$ac_ext >&5 | |
8759 | ac_cv_prog_cc_works=no | |
8760 | fi | |
8761 | rm -fr conftest* | |
8762 | ac_ext=c | |
8763 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8764 | ac_cpp='$CPP $CPPFLAGS' | |
8765 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8766 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8767 | cross_compiling=$ac_cv_prog_cc_cross | |
8768 | ||
8769 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
8770 | if test $ac_cv_prog_cc_works = no; then | |
8771 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
8772 | fi | |
8773 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
43d99b6d | 8774 | echo "configure:8775: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
698dcdb6 VZ |
8775 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
8776 | cross_compiling=$ac_cv_prog_cc_cross | |
8777 | ||
8778 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
43d99b6d | 8779 | echo "configure:8780: checking whether we are using GNU C" >&5 |
698dcdb6 VZ |
8780 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
8781 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8782 | else | |
8783 | cat > conftest.c <<EOF | |
8784 | #ifdef __GNUC__ | |
8785 | yes; | |
1e487827 | 8786 | #endif |
698dcdb6 | 8787 | EOF |
43d99b6d | 8788 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8789: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
698dcdb6 VZ |
8789 | ac_cv_prog_gcc=yes |
8790 | else | |
8791 | ac_cv_prog_gcc=no | |
8792 | fi | |
8793 | fi | |
1e487827 | 8794 | |
698dcdb6 | 8795 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
1e487827 | 8796 | |
698dcdb6 VZ |
8797 | if test $ac_cv_prog_gcc = yes; then |
8798 | GCC=yes | |
8799 | else | |
8800 | GCC= | |
8801 | fi | |
1e487827 | 8802 | |
698dcdb6 VZ |
8803 | ac_test_CFLAGS="${CFLAGS+set}" |
8804 | ac_save_CFLAGS="$CFLAGS" | |
8805 | CFLAGS= | |
8806 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
43d99b6d | 8807 | echo "configure:8808: checking whether ${CC-cc} accepts -g" >&5 |
698dcdb6 VZ |
8808 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
8809 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8810 | else | |
8811 | echo 'void f(){}' > conftest.c | |
8812 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
10f2d63a VZ |
8813 | ac_cv_prog_cc_g=yes |
8814 | else | |
698dcdb6 | 8815 | ac_cv_prog_cc_g=no |
10f2d63a | 8816 | fi |
698dcdb6 VZ |
8817 | rm -f conftest* |
8818 | ||
10f2d63a | 8819 | fi |
698dcdb6 VZ |
8820 | |
8821 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
10f2d63a | 8822 | if test "$ac_test_CFLAGS" = set; then |
698dcdb6 | 8823 | CFLAGS="$ac_save_CFLAGS" |
10f2d63a VZ |
8824 | elif test $ac_cv_prog_cc_g = yes; then |
8825 | if test "$GCC" = yes; then | |
8826 | CFLAGS="-g -O2" | |
8827 | else | |
8828 | CFLAGS="-g" | |
8829 | fi | |
8830 | else | |
8831 | if test "$GCC" = yes; then | |
8832 | CFLAGS="-O2" | |
8833 | else | |
8834 | CFLAGS= | |
8835 | fi | |
8836 | fi | |
8837 | ||
8838 | ||
698dcdb6 | 8839 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
43d99b6d | 8840 | echo "configure:8841: checking how to run the C preprocessor" >&5 |
10f2d63a VZ |
8841 | # On Suns, sometimes $CPP names a directory. |
8842 | if test -n "$CPP" && test -d "$CPP"; then | |
8843 | CPP= | |
8844 | fi | |
8845 | if test -z "$CPP"; then | |
698dcdb6 VZ |
8846 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
8847 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8848 | else | |
8849 | # This must be in double quotes, not single quotes, because CPP may get | |
8850 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
8851 | CPP="${CC-cc} -E" | |
10f2d63a | 8852 | # On the NeXT, cc -E runs the code through the compiler's parser, |
698dcdb6 VZ |
8853 | # not just through cpp. |
8854 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 8855 | #line 8856 "configure" |
10f2d63a VZ |
8856 | #include "confdefs.h" |
8857 | #include <assert.h> | |
698dcdb6 VZ |
8858 | Syntax Error |
8859 | EOF | |
8860 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
43d99b6d | 8861 | { (eval echo configure:8862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8862 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8863 | if test -z "$ac_err"; then | |
10f2d63a VZ |
8864 | : |
8865 | else | |
698dcdb6 VZ |
8866 | echo "$ac_err" >&5 |
8867 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8868 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8869 | rm -rf conftest* |
8870 | CPP="${CC-cc} -E -traditional-cpp" | |
8871 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 8872 | #line 8873 "configure" |
10f2d63a | 8873 | #include "confdefs.h" |
698dcdb6 VZ |
8874 | #include <assert.h> |
8875 | Syntax Error | |
8876 | EOF | |
8877 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
43d99b6d | 8878 | { (eval echo configure:8879: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8879 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8880 | if test -z "$ac_err"; then | |
8881 | : | |
10f2d63a | 8882 | else |
698dcdb6 VZ |
8883 | echo "$ac_err" >&5 |
8884 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8885 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8886 | rm -rf conftest* |
8887 | CPP="${CC-cc} -nologo -E" | |
8888 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 8889 | #line 8890 "configure" |
10f2d63a VZ |
8890 | #include "confdefs.h" |
8891 | #include <assert.h> | |
698dcdb6 VZ |
8892 | Syntax Error |
8893 | EOF | |
8894 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
43d99b6d | 8895 | { (eval echo configure:8896: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8896 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8897 | if test -z "$ac_err"; then | |
10f2d63a VZ |
8898 | : |
8899 | else | |
698dcdb6 VZ |
8900 | echo "$ac_err" >&5 |
8901 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8902 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8903 | rm -rf conftest* |
8904 | CPP=/lib/cpp | |
10f2d63a | 8905 | fi |
698dcdb6 | 8906 | rm -f conftest* |
10f2d63a | 8907 | fi |
698dcdb6 | 8908 | rm -f conftest* |
703e0a69 | 8909 | fi |
698dcdb6 VZ |
8910 | rm -f conftest* |
8911 | ac_cv_prog_CPP="$CPP" | |
8912 | fi | |
8913 | CPP="$ac_cv_prog_CPP" | |
10f2d63a | 8914 | else |
698dcdb6 | 8915 | ac_cv_prog_CPP="$CPP" |
10f2d63a | 8916 | fi |
698dcdb6 | 8917 | echo "$ac_t""$CPP" 1>&6 |
10f2d63a | 8918 | |
698dcdb6 VZ |
8919 | if test $ac_cv_prog_gcc = yes; then |
8920 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
43d99b6d | 8921 | echo "configure:8922: checking whether ${CC-cc} needs -traditional" >&5 |
698dcdb6 VZ |
8922 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
8923 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8924 | else |
8925 | ac_pattern="Autoconf.*'x'" | |
698dcdb6 | 8926 | cat > conftest.$ac_ext <<EOF |
43d99b6d | 8927 | #line 8928 "configure" |
10f2d63a VZ |
8928 | #include "confdefs.h" |
8929 | #include <sgtty.h> | |
8930 | Autoconf TIOCGETP | |
698dcdb6 | 8931 | EOF |
10f2d63a VZ |
8932 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8933 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
698dcdb6 | 8934 | rm -rf conftest* |
10f2d63a VZ |
8935 | ac_cv_prog_gcc_traditional=yes |
8936 | else | |
698dcdb6 | 8937 | rm -rf conftest* |
10f2d63a VZ |
8938 | ac_cv_prog_gcc_traditional=no |
8939 | fi | |
8940 | rm -f conftest* | |
8941 | ||
698dcdb6 | 8942 | |
10f2d63a | 8943 | if test $ac_cv_prog_gcc_traditional = no; then |
698dcdb6 | 8944 | cat > conftest.$ac_ext <<EOF |
43d99b6d | 8945 | #line 8946 "configure" |
10f2d63a VZ |
8946 | #include "confdefs.h" |
8947 | #include <termio.h> | |
8948 | Autoconf TCGETA | |
698dcdb6 | 8949 | EOF |
10f2d63a VZ |
8950 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8951 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
698dcdb6 | 8952 | rm -rf conftest* |
10f2d63a VZ |
8953 | ac_cv_prog_gcc_traditional=yes |
8954 | fi | |
8955 | rm -f conftest* | |
8956 | ||
8957 | fi | |
8958 | fi | |
698dcdb6 VZ |
8959 | |
8960 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
10f2d63a VZ |
8961 | if test $ac_cv_prog_gcc_traditional = yes; then |
8962 | CC="$CC -traditional" | |
8963 | fi | |
8964 | fi | |
8965 | ||
703e0a69 | 8966 | |
698dcdb6 VZ |
8967 | |
8968 | ac_ext=C | |
8969 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 8970 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
8971 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
8972 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8973 | cross_compiling=$ac_cv_prog_cxx_cross | |
8974 | ||
8975 | ||
ec603395 | 8976 | CXXFLAGS=${CXXFLAGS:=} |
698dcdb6 VZ |
8977 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
8978 | do | |
8979 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
8980 | set dummy $ac_prog; ac_word=$2 | |
8981 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
43d99b6d | 8982 | echo "configure:8983: checking for $ac_word" >&5 |
698dcdb6 VZ |
8983 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
8984 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8985 | else |
8986 | if test -n "$CXX"; then | |
8987 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
8988 | else | |
698dcdb6 VZ |
8989 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8990 | ac_dummy="$PATH" | |
8991 | for ac_dir in $ac_dummy; do | |
8992 | test -z "$ac_dir" && ac_dir=. | |
8993 | if test -f $ac_dir/$ac_word; then | |
8994 | ac_cv_prog_CXX="$ac_prog" | |
8995 | break | |
8996 | fi | |
8997 | done | |
8998 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8999 | fi |
9000 | fi | |
698dcdb6 | 9001 | CXX="$ac_cv_prog_CXX" |
10f2d63a | 9002 | if test -n "$CXX"; then |
698dcdb6 | 9003 | echo "$ac_t""$CXX" 1>&6 |
10f2d63a | 9004 | else |
698dcdb6 | 9005 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9006 | fi |
9007 | ||
698dcdb6 | 9008 | test -n "$CXX" && break |
10f2d63a | 9009 | done |
698dcdb6 | 9010 | test -n "$CXX" || CXX="gcc" |
10f2d63a VZ |
9011 | |
9012 | ||
698dcdb6 | 9013 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
43d99b6d | 9014 | echo "configure:9015: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
10f2d63a | 9015 | |
698dcdb6 VZ |
9016 | ac_ext=C |
9017 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9018 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9019 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9020 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9021 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 9022 | |
698dcdb6 VZ |
9023 | cat > conftest.$ac_ext << EOF |
9024 | ||
43d99b6d | 9025 | #line 9026 "configure" |
10f2d63a VZ |
9026 | #include "confdefs.h" |
9027 | ||
698dcdb6 VZ |
9028 | int main(){return(0);} |
9029 | EOF | |
43d99b6d | 9030 | if { (eval echo configure:9031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9031 | ac_cv_prog_cxx_works=yes |
9032 | # If we can't run a trivial program, we are probably using a cross compiler. | |
9033 | if (./conftest; exit) 2>/dev/null; then | |
9034 | ac_cv_prog_cxx_cross=no | |
9035 | else | |
9036 | ac_cv_prog_cxx_cross=yes | |
9037 | fi | |
9038 | else | |
9039 | echo "configure: failed program was:" >&5 | |
9040 | cat conftest.$ac_ext >&5 | |
9041 | ac_cv_prog_cxx_works=no | |
9042 | fi | |
9043 | rm -fr conftest* | |
9044 | ac_ext=C | |
9045 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9046 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9047 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9048 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9049 | cross_compiling=$ac_cv_prog_cxx_cross | |
9050 | ||
9051 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 | |
9052 | if test $ac_cv_prog_cxx_works = no; then | |
9053 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
9054 | fi | |
9055 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
43d99b6d | 9056 | echo "configure:9057: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
698dcdb6 VZ |
9057 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
9058 | cross_compiling=$ac_cv_prog_cxx_cross | |
9059 | ||
9060 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | |
43d99b6d | 9061 | echo "configure:9062: checking whether we are using GNU C++" >&5 |
698dcdb6 VZ |
9062 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
9063 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9064 | else | |
9065 | cat > conftest.C <<EOF | |
9066 | #ifdef __GNUC__ | |
9067 | yes; | |
10f2d63a | 9068 | #endif |
698dcdb6 | 9069 | EOF |
43d99b6d | 9070 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9071: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
698dcdb6 VZ |
9071 | ac_cv_prog_gxx=yes |
9072 | else | |
9073 | ac_cv_prog_gxx=no | |
9074 | fi | |
9075 | fi | |
10f2d63a | 9076 | |
698dcdb6 | 9077 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
10f2d63a | 9078 | |
698dcdb6 VZ |
9079 | if test $ac_cv_prog_gxx = yes; then |
9080 | GXX=yes | |
9081 | else | |
9082 | GXX= | |
9083 | fi | |
10f2d63a | 9084 | |
698dcdb6 VZ |
9085 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
9086 | ac_save_CXXFLAGS="$CXXFLAGS" | |
9087 | CXXFLAGS= | |
9088 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
43d99b6d | 9089 | echo "configure:9090: checking whether ${CXX-g++} accepts -g" >&5 |
698dcdb6 VZ |
9090 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
9091 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9092 | else | |
9093 | echo 'void f(){}' > conftest.cc | |
9094 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
10f2d63a VZ |
9095 | ac_cv_prog_cxx_g=yes |
9096 | else | |
698dcdb6 | 9097 | ac_cv_prog_cxx_g=no |
10f2d63a | 9098 | fi |
698dcdb6 VZ |
9099 | rm -f conftest* |
9100 | ||
10f2d63a | 9101 | fi |
698dcdb6 VZ |
9102 | |
9103 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
10f2d63a | 9104 | if test "$ac_test_CXXFLAGS" = set; then |
698dcdb6 | 9105 | CXXFLAGS="$ac_save_CXXFLAGS" |
10f2d63a VZ |
9106 | elif test $ac_cv_prog_cxx_g = yes; then |
9107 | if test "$GXX" = yes; then | |
9108 | CXXFLAGS="-g -O2" | |
9109 | else | |
9110 | CXXFLAGS="-g" | |
9111 | fi | |
9112 | else | |
9113 | if test "$GXX" = yes; then | |
9114 | CXXFLAGS="-O2" | |
9115 | else | |
9116 | CXXFLAGS= | |
9117 | fi | |
9118 | fi | |
9119 | ||
9120 | ||
10f2d63a | 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 | |
43d99b6d | 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 |
43d99b6d | 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 |
43d99b6d | 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 | ||
1d1b75ac VZ |
9255 | |
9256 | case ${INSTALL} in | |
9257 | /* ) # Absolute | |
9258 | ;; | |
3bd8fb5f | 9259 | *) |
1d1b75ac VZ |
9260 | INSTALL=`pwd`/${INSTALL} ;; |
9261 | esac | |
9262 | ||
9263 | ||
6054113a GD |
9264 | case "${host}" in |
9265 | ||
b5853384 | 9266 | powerpc-*-darwin* ) |
eb99ae0b GD |
9267 | INSTALL_PROGRAM="cp -fp" |
9268 | INSTALL_DATA="cp -fp" | |
6054113a GD |
9269 | ;; |
9270 | *) | |
9271 | ;; | |
d6853540 | 9272 | esac |
698dcdb6 | 9273 | |
10f2d63a VZ |
9274 | # Extract the first word of "strip", so it can be a program name with args. |
9275 | set dummy strip; ac_word=$2 | |
698dcdb6 | 9276 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
43d99b6d | 9277 | echo "configure:9278: checking for $ac_word" >&5 |
698dcdb6 VZ |
9278 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
9279 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9280 | else |
9281 | if test -n "$STRIP"; then | |
9282 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9283 | else | |
698dcdb6 VZ |
9284 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9285 | ac_dummy="$PATH" | |
9286 | for ac_dir in $ac_dummy; do | |
9287 | test -z "$ac_dir" && ac_dir=. | |
9288 | if test -f $ac_dir/$ac_word; then | |
9289 | ac_cv_prog_STRIP="strip" | |
9290 | break | |
9291 | fi | |
9292 | done | |
9293 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9294 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
9295 | fi | |
9296 | fi | |
698dcdb6 | 9297 | STRIP="$ac_cv_prog_STRIP" |
10f2d63a | 9298 | if test -n "$STRIP"; then |
698dcdb6 | 9299 | echo "$ac_t""$STRIP" 1>&6 |
10f2d63a | 9300 | else |
698dcdb6 | 9301 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9302 | fi |
9303 | ||
698dcdb6 | 9304 | |
414eab6d | 9305 | echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6 |
43d99b6d | 9306 | echo "configure:9307: checking if make is GNU make" >&5 |
414eab6d VZ |
9307 | if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then |
9308 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9309 | else | |
9310 | ||
9311 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
d558c907 | 9312 | egrep -s GNU > /dev/null); then |
414eab6d VZ |
9313 | wx_cv_prog_makeisgnu="yes" |
9314 | else | |
9315 | wx_cv_prog_makeisgnu="no" | |
9316 | fi | |
9317 | ||
9318 | fi | |
9319 | ||
9320 | echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6 | |
9321 | ||
9322 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
9323 | IF_GNU_MAKE="" | |
9324 | else | |
9325 | IF_GNU_MAKE="#" | |
9326 | fi | |
9327 | ||
9328 | ||
9329 | ||
9330 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then | |
04e7a216 | 9331 | echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6 |
43d99b6d | 9332 | echo "configure:9333: checking if make supports VPATH" >&5 |
04e7a216 VZ |
9333 | if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then |
9334 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9335 | else | |
9336 | ||
10f2d63a VZ |
9337 | cat - << EOF > confMake |
9338 | check : file | |
9339 | cp \$? \$@ | |
9340 | cp \$? final_file | |
9341 | EOF | |
9342 | ||
9343 | if test ! -d sub ; then | |
9344 | mkdir sub | |
9345 | fi | |
9346 | echo dummy > sub/file | |
f6bcfd97 | 9347 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
9348 | RESULT=$? |
9349 | rm -f sub/file check final_file confMake | |
9350 | rmdir sub | |
9351 | if test "$RESULT" = 0; then | |
04e7a216 | 9352 | wx_cv_prog_makevpath="yes" |
10f2d63a | 9353 | else |
04e7a216 VZ |
9354 | wx_cv_prog_makevpath="no" |
9355 | fi | |
9356 | ||
9357 | fi | |
9358 | ||
9359 | echo "$ac_t""$wx_cv_prog_makevpath" 1>&6 | |
9360 | ||
9361 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
9362 | { echo "configure: error: | |
1e487827 VS |
9363 | You need a make-utility that is able to use the variable |
9364 | VPATH correctly. | |
9365 | If your version of make does not support VPATH correctly, | |
9366 | please install GNU-make (possibly as gmake), and start | |
9367 | configure with the following command: | |
9368 | export MAKE=gmake; ./configure for sh-type shells | |
9369 | setenv MAKE gmake; ./configure for csh-type shells | |
9370 | Also please do remember to use gmake in this case every time | |
9371 | you are trying to compile. | |
698dcdb6 | 9372 | " 1>&2; exit 1; } |
414eab6d | 9373 | fi fi |
10f2d63a VZ |
9374 | for ac_prog in 'bison -y' byacc |
9375 | do | |
698dcdb6 | 9376 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
10f2d63a | 9377 | set dummy $ac_prog; ac_word=$2 |
698dcdb6 | 9378 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
43d99b6d | 9379 | echo "configure:9380: checking for $ac_word" >&5 |
698dcdb6 VZ |
9380 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
9381 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9382 | else |
9383 | if test -n "$YACC"; then | |
9384 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
9385 | else | |
698dcdb6 VZ |
9386 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9387 | ac_dummy="$PATH" | |
9388 | for ac_dir in $ac_dummy; do | |
9389 | test -z "$ac_dir" && ac_dir=. | |
9390 | if test -f $ac_dir/$ac_word; then | |
9391 | ac_cv_prog_YACC="$ac_prog" | |
9392 | break | |
9393 | fi | |
9394 | done | |
9395 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9396 | fi |
9397 | fi | |
698dcdb6 | 9398 | YACC="$ac_cv_prog_YACC" |
10f2d63a | 9399 | if test -n "$YACC"; then |
698dcdb6 | 9400 | echo "$ac_t""$YACC" 1>&6 |
10f2d63a | 9401 | else |
698dcdb6 | 9402 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9403 | fi |
9404 | ||
698dcdb6 | 9405 | test -n "$YACC" && break |
10f2d63a VZ |
9406 | done |
9407 | test -n "$YACC" || YACC="yacc" | |
9408 | ||
698dcdb6 VZ |
9409 | |
9410 | # Extract the first word of "flex", so it can be a program name with args. | |
9411 | set dummy flex; ac_word=$2 | |
9412 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
43d99b6d | 9413 | echo "configure:9414: checking for $ac_word" >&5 |
698dcdb6 VZ |
9414 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
9415 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9416 | else |
9417 | if test -n "$LEX"; then | |
9418 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
9419 | else | |
698dcdb6 VZ |
9420 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9421 | ac_dummy="$PATH" | |
9422 | for ac_dir in $ac_dummy; do | |
9423 | test -z "$ac_dir" && ac_dir=. | |
9424 | if test -f $ac_dir/$ac_word; then | |
9425 | ac_cv_prog_LEX="flex" | |
9426 | break | |
9427 | fi | |
9428 | done | |
9429 | IFS="$ac_save_ifs" | |
9430 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
10f2d63a VZ |
9431 | fi |
9432 | fi | |
698dcdb6 | 9433 | LEX="$ac_cv_prog_LEX" |
10f2d63a | 9434 | if test -n "$LEX"; then |
698dcdb6 | 9435 | echo "$ac_t""$LEX" 1>&6 |
10f2d63a | 9436 | else |
698dcdb6 | 9437 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9438 | fi |
9439 | ||
9440 | if test -z "$LEXLIB" | |
9441 | then | |
698dcdb6 VZ |
9442 | case "$LEX" in |
9443 | flex*) ac_lib=fl ;; | |
9444 | *) ac_lib=l ;; | |
9445 | esac | |
9446 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
43d99b6d | 9447 | echo "configure:9448: checking for yywrap in -l$ac_lib" >&5 |
698dcdb6 VZ |
9448 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
9449 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9450 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9451 | else | |
9452 | ac_save_LIBS="$LIBS" | |
9453 | LIBS="-l$ac_lib $LIBS" | |
9454 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 9455 | #line 9456 "configure" |
10f2d63a VZ |
9456 | #include "confdefs.h" |
9457 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9458 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9459 | builtin and then its argument prototype would still apply. */ |
9460 | char yywrap(); | |
10f2d63a | 9461 | |
698dcdb6 VZ |
9462 | int main() { |
9463 | yywrap() | |
9464 | ; return 0; } | |
9465 | EOF | |
43d99b6d | 9466 | if { (eval echo configure:9467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9467 | rm -rf conftest* |
9468 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 9469 | else |
698dcdb6 VZ |
9470 | echo "configure: failed program was:" >&5 |
9471 | cat conftest.$ac_ext >&5 | |
9472 | rm -rf conftest* | |
9473 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 9474 | fi |
698dcdb6 VZ |
9475 | rm -f conftest* |
9476 | LIBS="$ac_save_LIBS" | |
9477 | ||
10f2d63a | 9478 | fi |
698dcdb6 VZ |
9479 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
9480 | echo "$ac_t""yes" 1>&6 | |
9481 | LEXLIB="-l$ac_lib" | |
9482 | else | |
9483 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
9484 | fi |
9485 | ||
9486 | fi | |
9487 | ||
9488 | ||
698dcdb6 | 9489 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
43d99b6d | 9490 | echo "configure:9491: checking whether ln -s works" >&5 |
698dcdb6 VZ |
9491 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
9492 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 9493 | else |
698dcdb6 VZ |
9494 | rm -f conftestdata |
9495 | if ln -s X conftestdata 2>/dev/null | |
9496 | then | |
9497 | rm -f conftestdata | |
9498 | ac_cv_prog_LN_S="ln -s" | |
10f2d63a | 9499 | else |
698dcdb6 | 9500 | ac_cv_prog_LN_S=ln |
10f2d63a VZ |
9501 | fi |
9502 | fi | |
698dcdb6 VZ |
9503 | LN_S="$ac_cv_prog_LN_S" |
9504 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
9505 | echo "$ac_t""yes" 1>&6 | |
10f2d63a | 9506 | else |
698dcdb6 | 9507 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9508 | fi |
9509 | ||
9510 | ||
9511 | ||
21d1c967 GD |
9512 | if test "$wxUSE_MAC" != 1; then |
9513 | for ac_hdr in strings.h | |
9514 | do | |
9515 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9516 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
43d99b6d | 9517 | echo "configure:9518: checking for $ac_hdr" >&5 |
21d1c967 | 9518 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
19bc6aad VZ |
9519 | echo $ac_n "(cached) $ac_c" 1>&6 |
9520 | else | |
90dd450c | 9521 | cat > conftest.$ac_ext <<EOF |
43d99b6d | 9522 | #line 9523 "configure" |
19bc6aad | 9523 | #include "confdefs.h" |
21d1c967 | 9524 | #include <$ac_hdr> |
19bc6aad | 9525 | EOF |
21d1c967 | 9526 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
43d99b6d | 9527 | { (eval echo configure:9528: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
9528 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9529 | if test -z "$ac_err"; then | |
19bc6aad | 9530 | rm -rf conftest* |
21d1c967 | 9531 | eval "ac_cv_header_$ac_safe=yes" |
19bc6aad | 9532 | else |
21d1c967 | 9533 | echo "$ac_err" >&5 |
19bc6aad VZ |
9534 | echo "configure: failed program was:" >&5 |
9535 | cat conftest.$ac_ext >&5 | |
9536 | rm -rf conftest* | |
21d1c967 | 9537 | eval "ac_cv_header_$ac_safe=no" |
19bc6aad VZ |
9538 | fi |
9539 | rm -f conftest* | |
19bc6aad | 9540 | fi |
21d1c967 GD |
9541 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9542 | echo "$ac_t""yes" 1>&6 | |
9543 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9544 | cat >> confdefs.h <<EOF | |
9545 | #define $ac_tr_hdr 1 | |
19bc6aad | 9546 | EOF |
21d1c967 GD |
9547 | |
9548 | else | |
9549 | echo "$ac_t""no" 1>&6 | |
9550 | fi | |
9551 | done | |
19bc6aad | 9552 | |
19bc6aad VZ |
9553 | fi |
9554 | ||
21d1c967 GD |
9555 | for ac_hdr in stdlib.h |
9556 | do | |
9557 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9558 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
43d99b6d | 9559 | echo "configure:9560: checking for $ac_hdr" >&5 |
21d1c967 | 9560 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
18dbb1f6 VZ |
9561 | echo $ac_n "(cached) $ac_c" 1>&6 |
9562 | else | |
9563 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 9564 | #line 9565 "configure" |
18dbb1f6 | 9565 | #include "confdefs.h" |
21d1c967 | 9566 | #include <$ac_hdr> |
18dbb1f6 | 9567 | EOF |
21d1c967 | 9568 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
43d99b6d | 9569 | { (eval echo configure:9570: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
9570 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9571 | if test -z "$ac_err"; then | |
18dbb1f6 | 9572 | rm -rf conftest* |
21d1c967 | 9573 | eval "ac_cv_header_$ac_safe=yes" |
18dbb1f6 | 9574 | else |
21d1c967 | 9575 | echo "$ac_err" >&5 |
18dbb1f6 VZ |
9576 | echo "configure: failed program was:" >&5 |
9577 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
9578 | rm -rf conftest* |
9579 | eval "ac_cv_header_$ac_safe=no" | |
18dbb1f6 VZ |
9580 | fi |
9581 | rm -f conftest* | |
90dd450c | 9582 | fi |
21d1c967 GD |
9583 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9584 | echo "$ac_t""yes" 1>&6 | |
9585 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9586 | cat >> confdefs.h <<EOF | |
9587 | #define $ac_tr_hdr 1 | |
90dd450c | 9588 | EOF |
21d1c967 GD |
9589 | |
9590 | else | |
9591 | echo "$ac_t""no" 1>&6 | |
9592 | fi | |
9593 | done | |
90dd450c | 9594 | |
21d1c967 GD |
9595 | for ac_hdr in malloc.h |
9596 | do | |
9597 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9598 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
43d99b6d | 9599 | echo "configure:9600: checking for $ac_hdr" >&5 |
21d1c967 | 9600 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
90dd450c | 9601 | echo $ac_n "(cached) $ac_c" 1>&6 |
90dd450c VZ |
9602 | else |
9603 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 9604 | #line 9605 "configure" |
90dd450c | 9605 | #include "confdefs.h" |
21d1c967 | 9606 | #include <$ac_hdr> |
18dbb1f6 | 9607 | EOF |
21d1c967 | 9608 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
43d99b6d | 9609 | { (eval echo configure:9610: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
9610 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9611 | if test -z "$ac_err"; then | |
9612 | rm -rf conftest* | |
9613 | eval "ac_cv_header_$ac_safe=yes" | |
18dbb1f6 | 9614 | else |
21d1c967 | 9615 | echo "$ac_err" >&5 |
18dbb1f6 VZ |
9616 | echo "configure: failed program was:" >&5 |
9617 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
9618 | rm -rf conftest* |
9619 | eval "ac_cv_header_$ac_safe=no" | |
18dbb1f6 | 9620 | fi |
21d1c967 | 9621 | rm -f conftest* |
18dbb1f6 | 9622 | fi |
21d1c967 GD |
9623 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9624 | echo "$ac_t""yes" 1>&6 | |
9625 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9626 | cat >> confdefs.h <<EOF | |
9627 | #define $ac_tr_hdr 1 | |
4f14bcd8 | 9628 | EOF |
21d1c967 GD |
9629 | |
9630 | else | |
9631 | echo "$ac_t""no" 1>&6 | |
9632 | fi | |
9633 | done | |
dad6c0ea | 9634 | |
21d1c967 GD |
9635 | for ac_hdr in unistd.h |
9636 | do | |
9637 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9638 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
43d99b6d | 9639 | echo "configure:9640: checking for $ac_hdr" >&5 |
21d1c967 | 9640 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
3a922bb4 RL |
9641 | echo $ac_n "(cached) $ac_c" 1>&6 |
9642 | else | |
9643 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 9644 | #line 9645 "configure" |
3a922bb4 | 9645 | #include "confdefs.h" |
21d1c967 | 9646 | #include <$ac_hdr> |
3a922bb4 | 9647 | EOF |
21d1c967 | 9648 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
43d99b6d | 9649 | { (eval echo configure:9650: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
9650 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9651 | if test -z "$ac_err"; then | |
9652 | rm -rf conftest* | |
9653 | eval "ac_cv_header_$ac_safe=yes" | |
3a922bb4 | 9654 | else |
21d1c967 | 9655 | echo "$ac_err" >&5 |
3a922bb4 RL |
9656 | echo "configure: failed program was:" >&5 |
9657 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
9658 | rm -rf conftest* |
9659 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 9660 | fi |
21d1c967 | 9661 | rm -f conftest* |
90dd450c | 9662 | fi |
21d1c967 GD |
9663 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9664 | echo "$ac_t""yes" 1>&6 | |
9665 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9666 | cat >> confdefs.h <<EOF | |
9667 | #define $ac_tr_hdr 1 | |
90dd450c | 9668 | EOF |
21d1c967 GD |
9669 | |
9670 | else | |
9671 | echo "$ac_t""no" 1>&6 | |
9672 | fi | |
9673 | done | |
90dd450c | 9674 | |
21d1c967 GD |
9675 | for ac_hdr in wchar.h |
9676 | do | |
9677 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9678 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
43d99b6d | 9679 | echo "configure:9680: checking for $ac_hdr" >&5 |
21d1c967 | 9680 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4f14bcd8 | 9681 | echo $ac_n "(cached) $ac_c" 1>&6 |
90dd450c VZ |
9682 | else |
9683 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 9684 | #line 9685 "configure" |
4f14bcd8 | 9685 | #include "confdefs.h" |
21d1c967 | 9686 | #include <$ac_hdr> |
3a922bb4 | 9687 | EOF |
21d1c967 | 9688 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
43d99b6d | 9689 | { (eval echo configure:9690: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
9690 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9691 | if test -z "$ac_err"; then | |
9692 | rm -rf conftest* | |
9693 | eval "ac_cv_header_$ac_safe=yes" | |
4f14bcd8 | 9694 | else |
21d1c967 | 9695 | echo "$ac_err" >&5 |
4f14bcd8 GD |
9696 | echo "configure: failed program was:" >&5 |
9697 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
9698 | rm -rf conftest* |
9699 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 9700 | fi |
21d1c967 | 9701 | rm -f conftest* |
4f14bcd8 | 9702 | fi |
21d1c967 GD |
9703 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9704 | echo "$ac_t""yes" 1>&6 | |
9705 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9706 | cat >> confdefs.h <<EOF | |
9707 | #define $ac_tr_hdr 1 | |
4f14bcd8 | 9708 | EOF |
21d1c967 GD |
9709 | |
9710 | else | |
9711 | echo "$ac_t""no" 1>&6 | |
9712 | fi | |
9713 | done | |
4f14bcd8 | 9714 | |
4f14bcd8 | 9715 | |
21d1c967 GD |
9716 | if test "$ac_cv_header_wchar_h" != "yes"; then |
9717 | for ac_hdr in wcstr.h | |
9718 | do | |
9719 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9720 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
43d99b6d | 9721 | echo "configure:9722: checking for $ac_hdr" >&5 |
21d1c967 | 9722 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
d4158b5d VS |
9723 | echo $ac_n "(cached) $ac_c" 1>&6 |
9724 | else | |
9725 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 9726 | #line 9727 "configure" |
d4158b5d | 9727 | #include "confdefs.h" |
21d1c967 | 9728 | #include <$ac_hdr> |
d4158b5d | 9729 | EOF |
21d1c967 | 9730 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
43d99b6d | 9731 | { (eval echo configure:9732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
9732 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9733 | if test -z "$ac_err"; then | |
9734 | rm -rf conftest* | |
9735 | eval "ac_cv_header_$ac_safe=yes" | |
d4158b5d | 9736 | else |
21d1c967 | 9737 | echo "$ac_err" >&5 |
d4158b5d VS |
9738 | echo "configure: failed program was:" >&5 |
9739 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
9740 | rm -rf conftest* |
9741 | eval "ac_cv_header_$ac_safe=no" | |
d4158b5d | 9742 | fi |
21d1c967 GD |
9743 | rm -f conftest* |
9744 | fi | |
9745 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9746 | echo "$ac_t""yes" 1>&6 | |
9747 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9748 | cat >> confdefs.h <<EOF | |
9749 | #define $ac_tr_hdr 1 | |
9750 | EOF | |
9751 | ||
9752 | else | |
9753 | echo "$ac_t""no" 1>&6 | |
d4158b5d | 9754 | fi |
21d1c967 | 9755 | done |
f6bcfd97 | 9756 | |
90dd450c | 9757 | fi |
90dd450c VZ |
9758 | |
9759 | ||
21d1c967 GD |
9760 | for ac_hdr in fnmatch.h |
9761 | do | |
9762 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9763 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
43d99b6d | 9764 | echo "configure:9765: checking for $ac_hdr" >&5 |
21d1c967 | 9765 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
90dd450c | 9766 | echo $ac_n "(cached) $ac_c" 1>&6 |
90dd450c VZ |
9767 | else |
9768 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 9769 | #line 9770 "configure" |
90dd450c | 9770 | #include "confdefs.h" |
21d1c967 | 9771 | #include <$ac_hdr> |
90dd450c | 9772 | EOF |
21d1c967 | 9773 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
43d99b6d | 9774 | { (eval echo configure:9775: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
9775 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9776 | if test -z "$ac_err"; then | |
9777 | rm -rf conftest* | |
9778 | eval "ac_cv_header_$ac_safe=yes" | |
3a922bb4 | 9779 | else |
21d1c967 | 9780 | echo "$ac_err" >&5 |
3a922bb4 RL |
9781 | echo "configure: failed program was:" >&5 |
9782 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
9783 | rm -rf conftest* |
9784 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 9785 | fi |
21d1c967 | 9786 | rm -f conftest* |
4f14bcd8 | 9787 | fi |
21d1c967 GD |
9788 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9789 | echo "$ac_t""yes" 1>&6 | |
9790 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9791 | cat >> confdefs.h <<EOF | |
9792 | #define $ac_tr_hdr 1 | |
90dd450c | 9793 | EOF |
21d1c967 GD |
9794 | |
9795 | else | |
9796 | echo "$ac_t""no" 1>&6 | |
9797 | fi | |
9798 | done | |
90dd450c VZ |
9799 | |
9800 | ||
21d1c967 GD |
9801 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then |
9802 | for ac_func in fnmatch | |
9803 | do | |
9804 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
43d99b6d | 9805 | echo "configure:9806: checking for $ac_func" >&5 |
21d1c967 | 9806 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
90dd450c | 9807 | echo $ac_n "(cached) $ac_c" 1>&6 |
90dd450c VZ |
9808 | else |
9809 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 9810 | #line 9811 "configure" |
90dd450c | 9811 | #include "confdefs.h" |
21d1c967 GD |
9812 | /* System header to define __stub macros and hopefully few prototypes, |
9813 | which can conflict with char $ac_func(); below. */ | |
9814 | #include <assert.h> | |
9815 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9816 | /* We use char because int might match the return type of a gcc2 | |
9817 | builtin and then its argument prototype would still apply. */ | |
9818 | char $ac_func(); | |
9819 | ||
9820 | int main() { | |
9821 | ||
9822 | /* The GNU C library defines this for functions which it implements | |
9823 | to always fail with ENOSYS. Some functions are actually named | |
9824 | something starting with __ and the normal name is an alias. */ | |
9825 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9826 | choke me | |
9827 | #else | |
9828 | $ac_func(); | |
9829 | #endif | |
9830 | ||
9831 | ; return 0; } | |
90dd450c | 9832 | EOF |
43d99b6d | 9833 | if { (eval echo configure:9834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21d1c967 GD |
9834 | rm -rf conftest* |
9835 | eval "ac_cv_func_$ac_func=yes" | |
90dd450c VZ |
9836 | else |
9837 | echo "configure: failed program was:" >&5 | |
9838 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
9839 | rm -rf conftest* |
9840 | eval "ac_cv_func_$ac_func=no" | |
90dd450c | 9841 | fi |
21d1c967 | 9842 | rm -f conftest* |
4f14bcd8 | 9843 | fi |
32832908 | 9844 | |
21d1c967 GD |
9845 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
9846 | echo "$ac_t""yes" 1>&6 | |
9847 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9848 | cat >> confdefs.h <<EOF | |
9849 | #define $ac_tr_func 1 | |
90dd450c | 9850 | EOF |
21d1c967 GD |
9851 | |
9852 | else | |
9853 | echo "$ac_t""no" 1>&6 | |
9854 | fi | |
9855 | done | |
90dd450c | 9856 | |
21d1c967 | 9857 | fi |
90dd450c | 9858 | |
21d1c967 GD |
9859 | for ac_hdr in langinfo.h |
9860 | do | |
9861 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9862 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
43d99b6d | 9863 | echo "configure:9864: checking for $ac_hdr" >&5 |
21d1c967 | 9864 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
90dd450c | 9865 | echo $ac_n "(cached) $ac_c" 1>&6 |
90dd450c VZ |
9866 | else |
9867 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 9868 | #line 9869 "configure" |
90dd450c | 9869 | #include "confdefs.h" |
21d1c967 | 9870 | #include <$ac_hdr> |
90dd450c | 9871 | EOF |
21d1c967 | 9872 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
43d99b6d | 9873 | { (eval echo configure:9874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
9874 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9875 | if test -z "$ac_err"; then | |
9876 | rm -rf conftest* | |
9877 | eval "ac_cv_header_$ac_safe=yes" | |
90dd450c | 9878 | else |
21d1c967 | 9879 | echo "$ac_err" >&5 |
90dd450c VZ |
9880 | echo "configure: failed program was:" >&5 |
9881 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
9882 | rm -rf conftest* |
9883 | eval "ac_cv_header_$ac_safe=no" | |
90dd450c | 9884 | fi |
21d1c967 | 9885 | rm -f conftest* |
4f14bcd8 | 9886 | fi |
21d1c967 GD |
9887 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9888 | echo "$ac_t""yes" 1>&6 | |
9889 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9890 | cat >> confdefs.h <<EOF | |
9891 | #define $ac_tr_hdr 1 | |
90dd450c | 9892 | EOF |
21d1c967 GD |
9893 | |
9894 | else | |
9895 | echo "$ac_t""no" 1>&6 | |
9896 | fi | |
9897 | done | |
3a922bb4 | 9898 | |
7b7a7637 | 9899 | |
21d1c967 GD |
9900 | if test "$wxUSE_GUI" = "yes"; then |
9901 | if test "$wxUSE_UNIX" = "yes"; then | |
9902 | for ac_hdr in X11/XKBlib.h | |
9903 | do | |
9904 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9905 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
43d99b6d | 9906 | echo "configure:9907: checking for $ac_hdr" >&5 |
21d1c967 | 9907 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
90dd450c | 9908 | echo $ac_n "(cached) $ac_c" 1>&6 |
90dd450c VZ |
9909 | else |
9910 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 9911 | #line 9912 "configure" |
90dd450c | 9912 | #include "confdefs.h" |
21d1c967 | 9913 | #include <$ac_hdr> |
90dd450c | 9914 | EOF |
21d1c967 | 9915 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
43d99b6d | 9916 | { (eval echo configure:9917: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
9917 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9918 | if test -z "$ac_err"; then | |
9919 | rm -rf conftest* | |
9920 | eval "ac_cv_header_$ac_safe=yes" | |
90dd450c | 9921 | else |
21d1c967 | 9922 | echo "$ac_err" >&5 |
90dd450c VZ |
9923 | echo "configure: failed program was:" >&5 |
9924 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
9925 | rm -rf conftest* |
9926 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 9927 | fi |
21d1c967 | 9928 | rm -f conftest* |
90dd450c | 9929 | fi |
21d1c967 GD |
9930 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9931 | echo "$ac_t""yes" 1>&6 | |
9932 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9933 | cat >> confdefs.h <<EOF | |
9934 | #define $ac_tr_hdr 1 | |
4f14bcd8 | 9935 | EOF |
21d1c967 GD |
9936 | |
9937 | else | |
9938 | echo "$ac_t""no" 1>&6 | |
9939 | fi | |
9940 | done | |
10f2d63a | 9941 | |
21d1c967 | 9942 | fi |
90dd450c | 9943 | fi |
81809c07 | 9944 | |
21d1c967 GD |
9945 | |
9946 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
43d99b6d | 9947 | echo "configure:9948: checking for working const" >&5 |
21d1c967 | 9948 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
8168de4c VZ |
9949 | echo $ac_n "(cached) $ac_c" 1>&6 |
9950 | else | |
21d1c967 | 9951 | cat > conftest.$ac_ext <<EOF |
43d99b6d | 9952 | #line 9953 "configure" |
4f14bcd8 | 9953 | #include "confdefs.h" |
21d1c967 | 9954 | |
4f14bcd8 | 9955 | int main() { |
21d1c967 GD |
9956 | |
9957 | /* Ultrix mips cc rejects this. */ | |
9958 | typedef int charset[2]; const charset x; | |
9959 | /* SunOS 4.1.1 cc rejects this. */ | |
9960 | char const *const *ccp; | |
9961 | char **p; | |
9962 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
9963 | struct point {int x, y;}; | |
9964 | static struct point const zero = {0,0}; | |
9965 | /* AIX XL C 1.02.0.0 rejects this. | |
9966 | It does not let you subtract one const X* pointer from another in an arm | |
9967 | of an if-expression whose if-part is not a constant expression */ | |
9968 | const char *g = "string"; | |
9969 | ccp = &g + (g ? g-g : 0); | |
9970 | /* HPUX 7.0 cc rejects these. */ | |
9971 | ++ccp; | |
9972 | p = (char**) ccp; | |
9973 | ccp = (char const *const *) p; | |
9974 | { /* SCO 3.2v4 cc rejects this. */ | |
9975 | char *t; | |
9976 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
9977 | ||
9978 | *t++ = 0; | |
9979 | } | |
9980 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
9981 | int x[] = {25, 17}; | |
9982 | const int *foo = &x[0]; | |
9983 | ++foo; | |
9984 | } | |
9985 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
9986 | typedef const int *iptr; | |
9987 | iptr p = 0; | |
9988 | ++p; | |
9989 | } | |
9990 | { /* AIX XL C 1.02.0.0 rejects this saying | |
9991 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
9992 | struct s { int j; const int *ap[3]; }; | |
9993 | struct s *b; b->j = 5; | |
9994 | } | |
9995 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
9996 | const int foo = 10; | |
9997 | } | |
4f14bcd8 | 9998 | |
4f14bcd8 GD |
9999 | ; return 0; } |
10000 | EOF | |
43d99b6d | 10001 | if { (eval echo configure:10002: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 | 10002 | rm -rf conftest* |
21d1c967 | 10003 | ac_cv_c_const=yes |
6f72b082 | 10004 | else |
4f14bcd8 GD |
10005 | echo "configure: failed program was:" >&5 |
10006 | cat conftest.$ac_ext >&5 | |
10007 | rm -rf conftest* | |
21d1c967 | 10008 | ac_cv_c_const=no |
4f14bcd8 GD |
10009 | fi |
10010 | rm -f conftest* | |
698dcdb6 | 10011 | fi |
6f72b082 | 10012 | |
21d1c967 GD |
10013 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
10014 | if test $ac_cv_c_const = no; then | |
10015 | cat >> confdefs.h <<\EOF | |
10016 | #define const | |
90dd450c VZ |
10017 | EOF |
10018 | ||
21d1c967 | 10019 | fi |
90dd450c | 10020 | |
21d1c967 | 10021 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
43d99b6d | 10022 | echo "configure:10023: checking for inline" >&5 |
21d1c967 | 10023 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
4f14bcd8 | 10024 | echo $ac_n "(cached) $ac_c" 1>&6 |
6f72b082 | 10025 | else |
21d1c967 GD |
10026 | ac_cv_c_inline=no |
10027 | for ac_kw in inline __inline__ __inline; do | |
10028 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 10029 | #line 10030 "configure" |
4f14bcd8 | 10030 | #include "confdefs.h" |
90dd450c | 10031 | |
21d1c967 GD |
10032 | int main() { |
10033 | } $ac_kw foo() { | |
4f14bcd8 GD |
10034 | ; return 0; } |
10035 | EOF | |
43d99b6d | 10036 | if { (eval echo configure:10037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 | 10037 | rm -rf conftest* |
21d1c967 | 10038 | ac_cv_c_inline=$ac_kw; break |
6f72b082 | 10039 | else |
4f14bcd8 GD |
10040 | echo "configure: failed program was:" >&5 |
10041 | cat conftest.$ac_ext >&5 | |
698dcdb6 | 10042 | fi |
4f14bcd8 | 10043 | rm -f conftest* |
21d1c967 | 10044 | done |
4f14bcd8 | 10045 | |
21d1c967 | 10046 | fi |
4f14bcd8 | 10047 | |
21d1c967 GD |
10048 | echo "$ac_t""$ac_cv_c_inline" 1>&6 |
10049 | case "$ac_cv_c_inline" in | |
10050 | inline | yes) ;; | |
10051 | no) cat >> confdefs.h <<\EOF | |
10052 | #define inline | |
90dd450c | 10053 | EOF |
21d1c967 GD |
10054 | ;; |
10055 | *) cat >> confdefs.h <<EOF | |
10056 | #define inline $ac_cv_c_inline | |
4f14bcd8 | 10057 | EOF |
21d1c967 GD |
10058 | ;; |
10059 | esac | |
4f14bcd8 | 10060 | |
90dd450c | 10061 | |
21d1c967 | 10062 | echo $ac_n "checking size of char""... $ac_c" 1>&6 |
43d99b6d | 10063 | echo "configure:10064: checking size of char" >&5 |
21d1c967 | 10064 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
4f14bcd8 GD |
10065 | echo $ac_n "(cached) $ac_c" 1>&6 |
10066 | else | |
21d1c967 GD |
10067 | if test "$cross_compiling" = yes; then |
10068 | ac_cv_sizeof_char=1 | |
4f14bcd8 | 10069 | else |
90dd450c | 10070 | cat > conftest.$ac_ext <<EOF |
43d99b6d | 10071 | #line 10072 "configure" |
4f14bcd8 | 10072 | #include "confdefs.h" |
21d1c967 GD |
10073 | #include <stdio.h> |
10074 | main() | |
10075 | { | |
10076 | FILE *f=fopen("conftestval", "w"); | |
10077 | if (!f) exit(1); | |
10078 | fprintf(f, "%d\n", sizeof(char)); | |
10079 | exit(0); | |
90dd450c | 10080 | } |
4f14bcd8 | 10081 | EOF |
43d99b6d | 10082 | if { (eval echo configure:10083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
90dd450c | 10083 | then |
21d1c967 | 10084 | ac_cv_sizeof_char=`cat conftestval` |
4f14bcd8 GD |
10085 | else |
10086 | echo "configure: failed program was:" >&5 | |
10087 | cat conftest.$ac_ext >&5 | |
90dd450c | 10088 | rm -fr conftest* |
21d1c967 | 10089 | ac_cv_sizeof_char=0 |
90dd450c VZ |
10090 | fi |
10091 | rm -fr conftest* | |
4f14bcd8 | 10092 | fi |
4f14bcd8 GD |
10093 | |
10094 | fi | |
21d1c967 GD |
10095 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
10096 | cat >> confdefs.h <<EOF | |
10097 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
10098 | EOF | |
4f14bcd8 | 10099 | |
21d1c967 GD |
10100 | |
10101 | echo $ac_n "checking size of short""... $ac_c" 1>&6 | |
43d99b6d | 10102 | echo "configure:10103: checking size of short" >&5 |
21d1c967 GD |
10103 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
10104 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10105 | else | |
10106 | if test "$cross_compiling" = yes; then | |
10107 | ac_cv_sizeof_short=2 | |
10108 | else | |
10109 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 10110 | #line 10111 "configure" |
21d1c967 GD |
10111 | #include "confdefs.h" |
10112 | #include <stdio.h> | |
10113 | main() | |
10114 | { | |
10115 | FILE *f=fopen("conftestval", "w"); | |
10116 | if (!f) exit(1); | |
10117 | fprintf(f, "%d\n", sizeof(short)); | |
10118 | exit(0); | |
10119 | } | |
90dd450c | 10120 | EOF |
43d99b6d | 10121 | if { (eval echo configure:10122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
21d1c967 GD |
10122 | then |
10123 | ac_cv_sizeof_short=`cat conftestval` | |
10124 | else | |
10125 | echo "configure: failed program was:" >&5 | |
10126 | cat conftest.$ac_ext >&5 | |
10127 | rm -fr conftest* | |
10128 | ac_cv_sizeof_short=0 | |
10129 | fi | |
10130 | rm -fr conftest* | |
10131 | fi | |
4f14bcd8 | 10132 | |
4f14bcd8 | 10133 | fi |
21d1c967 GD |
10134 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
10135 | cat >> confdefs.h <<EOF | |
10136 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
10137 | EOF | |
4f14bcd8 GD |
10138 | |
10139 | ||
21d1c967 | 10140 | echo $ac_n "checking size of void *""... $ac_c" 1>&6 |
43d99b6d | 10141 | echo "configure:10142: checking size of void *" >&5 |
21d1c967 | 10142 | if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then |
4f14bcd8 GD |
10143 | echo $ac_n "(cached) $ac_c" 1>&6 |
10144 | else | |
21d1c967 GD |
10145 | if test "$cross_compiling" = yes; then |
10146 | ac_cv_sizeof_void_p=4 | |
10147 | else | |
4f14bcd8 | 10148 | cat > conftest.$ac_ext <<EOF |
43d99b6d | 10149 | #line 10150 "configure" |
4f14bcd8 | 10150 | #include "confdefs.h" |
21d1c967 GD |
10151 | #include <stdio.h> |
10152 | main() | |
10153 | { | |
10154 | FILE *f=fopen("conftestval", "w"); | |
10155 | if (!f) exit(1); | |
10156 | fprintf(f, "%d\n", sizeof(void *)); | |
10157 | exit(0); | |
10158 | } | |
4f14bcd8 | 10159 | EOF |
43d99b6d | 10160 | if { (eval echo configure:10161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
21d1c967 GD |
10161 | then |
10162 | ac_cv_sizeof_void_p=`cat conftestval` | |
4f14bcd8 | 10163 | else |
4f14bcd8 GD |
10164 | echo "configure: failed program was:" >&5 |
10165 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
10166 | rm -fr conftest* |
10167 | ac_cv_sizeof_void_p=0 | |
4f14bcd8 | 10168 | fi |
21d1c967 | 10169 | rm -fr conftest* |
4f14bcd8 | 10170 | fi |
4f14bcd8 | 10171 | |
21d1c967 GD |
10172 | fi |
10173 | echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6 | |
10174 | cat >> confdefs.h <<EOF | |
10175 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
90dd450c VZ |
10176 | EOF |
10177 | ||
90dd450c | 10178 | |
21d1c967 | 10179 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
43d99b6d | 10180 | echo "configure:10181: checking size of int" >&5 |
21d1c967 | 10181 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
4f14bcd8 | 10182 | echo $ac_n "(cached) $ac_c" 1>&6 |
21d1c967 GD |
10183 | else |
10184 | if test "$cross_compiling" = yes; then | |
10185 | ac_cv_sizeof_int=4 | |
4f14bcd8 GD |
10186 | else |
10187 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 10188 | #line 10189 "configure" |
4f14bcd8 | 10189 | #include "confdefs.h" |
21d1c967 GD |
10190 | #include <stdio.h> |
10191 | main() | |
10192 | { | |
10193 | FILE *f=fopen("conftestval", "w"); | |
10194 | if (!f) exit(1); | |
10195 | fprintf(f, "%d\n", sizeof(int)); | |
10196 | exit(0); | |
10197 | } | |
4f14bcd8 | 10198 | EOF |
6a30f1c8 | 10199 | if { (eval echo configure:10200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
21d1c967 GD |
10200 | then |
10201 | ac_cv_sizeof_int=`cat conftestval` | |
4f14bcd8 | 10202 | else |
4f14bcd8 GD |
10203 | echo "configure: failed program was:" >&5 |
10204 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
10205 | rm -fr conftest* |
10206 | ac_cv_sizeof_int=0 | |
4f14bcd8 | 10207 | fi |
21d1c967 | 10208 | rm -fr conftest* |
4f14bcd8 | 10209 | fi |
4f14bcd8 | 10210 | |
21d1c967 GD |
10211 | fi |
10212 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | |
10213 | cat >> confdefs.h <<EOF | |
10214 | #define SIZEOF_INT $ac_cv_sizeof_int | |
90dd450c VZ |
10215 | EOF |
10216 | ||
90dd450c | 10217 | |
21d1c967 | 10218 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
6a30f1c8 | 10219 | echo "configure:10220: checking size of long" >&5 |
21d1c967 | 10220 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
4f14bcd8 GD |
10221 | echo $ac_n "(cached) $ac_c" 1>&6 |
10222 | else | |
21d1c967 GD |
10223 | if test "$cross_compiling" = yes; then |
10224 | ac_cv_sizeof_long=4 | |
10225 | else | |
10226 | cat > conftest.$ac_ext <<EOF | |
6a30f1c8 | 10227 | #line 10228 "configure" |
90dd450c | 10228 | #include "confdefs.h" |
21d1c967 GD |
10229 | #include <stdio.h> |
10230 | main() | |
10231 | { | |
10232 | FILE *f=fopen("conftestval", "w"); | |
10233 | if (!f) exit(1); | |
10234 | fprintf(f, "%d\n", sizeof(long)); | |
10235 | exit(0); | |
10236 | } | |
4f14bcd8 | 10237 | EOF |
43d99b6d | 10238 | if { (eval echo configure:10239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
21d1c967 GD |
10239 | then |
10240 | ac_cv_sizeof_long=`cat conftestval` | |
4f14bcd8 GD |
10241 | else |
10242 | echo "configure: failed program was:" >&5 | |
10243 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
10244 | rm -fr conftest* |
10245 | ac_cv_sizeof_long=0 | |
4f14bcd8 | 10246 | fi |
21d1c967 | 10247 | rm -fr conftest* |
90dd450c | 10248 | fi |
4f14bcd8 | 10249 | |
21d1c967 GD |
10250 | fi |
10251 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 | |
10252 | cat >> confdefs.h <<EOF | |
10253 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
90dd450c | 10254 | EOF |
4f14bcd8 | 10255 | |
4f14bcd8 | 10256 | |
4f14bcd8 | 10257 | |
21d1c967 GD |
10258 | case "${host}" in |
10259 | arm-*-linux* ) | |
10260 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
43d99b6d | 10261 | echo "configure:10262: checking size of long long" >&5 |
21d1c967 GD |
10262 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
10263 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10264 | else | |
10265 | if test "$cross_compiling" = yes; then | |
10266 | ac_cv_sizeof_long_long=8 | |
10267 | else | |
10268 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 10269 | #line 10270 "configure" |
21d1c967 GD |
10270 | #include "confdefs.h" |
10271 | #include <stdio.h> | |
10272 | main() | |
10273 | { | |
10274 | FILE *f=fopen("conftestval", "w"); | |
10275 | if (!f) exit(1); | |
10276 | fprintf(f, "%d\n", sizeof(long long)); | |
10277 | exit(0); | |
10278 | } | |
90dd450c | 10279 | EOF |
43d99b6d | 10280 | if { (eval echo configure:10281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
21d1c967 GD |
10281 | then |
10282 | ac_cv_sizeof_long_long=`cat conftestval` | |
90dd450c | 10283 | else |
21d1c967 GD |
10284 | echo "configure: failed program was:" >&5 |
10285 | cat conftest.$ac_ext >&5 | |
10286 | rm -fr conftest* | |
10287 | ac_cv_sizeof_long_long=0 | |
10288 | fi | |
10289 | rm -fr conftest* | |
90dd450c | 10290 | fi |
4f14bcd8 | 10291 | |
21d1c967 GD |
10292 | fi |
10293 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 | |
10294 | cat >> confdefs.h <<EOF | |
10295 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
10296 | EOF | |
90dd450c | 10297 | |
21d1c967 GD |
10298 | |
10299 | ;; | |
10300 | * ) | |
10301 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
43d99b6d | 10302 | echo "configure:10303: checking size of long long" >&5 |
21d1c967 | 10303 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
4f14bcd8 GD |
10304 | echo $ac_n "(cached) $ac_c" 1>&6 |
10305 | else | |
21d1c967 GD |
10306 | if test "$cross_compiling" = yes; then |
10307 | ac_cv_sizeof_long_long=0 | |
10308 | else | |
10309 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 10310 | #line 10311 "configure" |
90dd450c | 10311 | #include "confdefs.h" |
21d1c967 GD |
10312 | #include <stdio.h> |
10313 | main() | |
10314 | { | |
10315 | FILE *f=fopen("conftestval", "w"); | |
10316 | if (!f) exit(1); | |
10317 | fprintf(f, "%d\n", sizeof(long long)); | |
10318 | exit(0); | |
10319 | } | |
90dd450c | 10320 | EOF |
43d99b6d | 10321 | if { (eval echo configure:10322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
21d1c967 GD |
10322 | then |
10323 | ac_cv_sizeof_long_long=`cat conftestval` | |
4f14bcd8 | 10324 | else |
90dd450c VZ |
10325 | echo "configure: failed program was:" >&5 |
10326 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
10327 | rm -fr conftest* |
10328 | ac_cv_sizeof_long_long=0 | |
90dd450c | 10329 | fi |
21d1c967 | 10330 | rm -fr conftest* |
4f14bcd8 GD |
10331 | fi |
10332 | ||
90dd450c | 10333 | fi |
21d1c967 GD |
10334 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
10335 | cat >> confdefs.h <<EOF | |
10336 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
90dd450c | 10337 | EOF |
9e691f46 | 10338 | |
9e691f46 | 10339 | |
21d1c967 GD |
10340 | esac |
10341 | ||
10342 | echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 | |
43d99b6d | 10343 | echo "configure:10344: checking size of wchar_t" >&5 |
21d1c967 | 10344 | if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then |
90dd450c | 10345 | echo $ac_n "(cached) $ac_c" 1>&6 |
21d1c967 GD |
10346 | else |
10347 | ||
10348 | if test "$cross_compiling" = yes; then | |
10349 | wx_cv_sizeof_wchar_t=4 | |
10350 | ||
6f72b082 | 10351 | else |
698dcdb6 | 10352 | cat > conftest.$ac_ext <<EOF |
43d99b6d | 10353 | #line 10354 "configure" |
6f72b082 | 10354 | #include "confdefs.h" |
21d1c967 GD |
10355 | |
10356 | #ifdef HAVE_WCHAR_H | |
10357 | # ifdef __CYGWIN__ | |
10358 | # include <stddef.h> | |
10359 | # endif | |
10360 | # include <wchar.h> | |
10361 | #endif | |
10362 | #ifdef HAVE_STDLIB_H | |
10363 | # include <stdlib.h> | |
10364 | #endif | |
10365 | #include <stdio.h> | |
10366 | int main() | |
10367 | { | |
10368 | FILE *f=fopen("conftestval", "w"); | |
10369 | if (!f) exit(1); | |
10370 | fprintf(f, "%i", sizeof(wchar_t)); | |
10371 | exit(0); | |
10372 | } | |
10373 | ||
698dcdb6 | 10374 | EOF |
43d99b6d | 10375 | if { (eval echo configure:10376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
21d1c967 GD |
10376 | then |
10377 | wx_cv_sizeof_wchar_t=`cat conftestval` | |
6f72b082 | 10378 | else |
698dcdb6 VZ |
10379 | echo "configure: failed program was:" >&5 |
10380 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
10381 | rm -fr conftest* |
10382 | wx_cv_sizeof_wchar_t=0 | |
6f72b082 | 10383 | fi |
21d1c967 | 10384 | rm -fr conftest* |
6f72b082 | 10385 | fi |
6f72b082 | 10386 | |
90dd450c | 10387 | |
3f345b47 VZ |
10388 | fi |
10389 | ||
21d1c967 | 10390 | echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6 |
3f345b47 | 10391 | |
21d1c967 GD |
10392 | cat >> confdefs.h <<EOF |
10393 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t | |
10394 | EOF | |
90dd450c | 10395 | |
90dd450c | 10396 | |
21d1c967 GD |
10397 | # Check whether --enable-largefile or --disable-largefile was given. |
10398 | if test "${enable_largefile+set}" = set; then | |
10399 | enableval="$enable_largefile" | |
10400 | : | |
3f345b47 VZ |
10401 | fi |
10402 | ||
21d1c967 GD |
10403 | if test "$enable_largefile" != no; then |
10404 | wx_largefile=no | |
10405 | ||
10406 | echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6 | |
43d99b6d | 10407 | echo "configure:10408: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
21d1c967 | 10408 | if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then |
698dcdb6 | 10409 | echo $ac_n "(cached) $ac_c" 1>&6 |
f6bcfd97 | 10410 | else |
21d1c967 GD |
10411 | |
10412 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 10413 | #line 10414 "configure" |
90dd450c | 10414 | #include "confdefs.h" |
21d1c967 GD |
10415 | #define _FILE_OFFSET_BITS 64 |
10416 | #include <sys/types.h> | |
10417 | int main() { | |
10418 | typedef struct { | |
10419 | unsigned int field: sizeof(off_t) == 8; | |
10420 | } wxlf; | |
10421 | ||
10422 | ; return 0; } | |
90dd450c | 10423 | EOF |
43d99b6d | 10424 | if { (eval echo configure:10425: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
90dd450c | 10425 | rm -rf conftest* |
21d1c967 | 10426 | ac_cv_sys_file_offset_bits=64 |
f6bcfd97 | 10427 | else |
90dd450c VZ |
10428 | echo "configure: failed program was:" >&5 |
10429 | cat conftest.$ac_ext >&5 | |
10430 | rm -rf conftest* | |
21d1c967 | 10431 | ac_cv_sys_file_offset_bits=no |
f6bcfd97 | 10432 | fi |
90dd450c | 10433 | rm -f conftest* |
21d1c967 GD |
10434 | |
10435 | ||
90dd450c | 10436 | fi |
21d1c967 GD |
10437 | |
10438 | echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6 | |
10439 | ||
10440 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
10441 | wx_largefile=yes | |
10442 | cat >> confdefs.h <<EOF | |
10443 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
10444 | EOF | |
10445 | ||
10446 | fi | |
10447 | ||
10448 | if test "x$wx_largefile" != "xyes"; then | |
10449 | ||
10450 | echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6 | |
43d99b6d | 10451 | echo "configure:10452: checking for _LARGE_FILES value needed for large files" >&5 |
21d1c967 | 10452 | if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then |
90dd450c | 10453 | echo $ac_n "(cached) $ac_c" 1>&6 |
f6bcfd97 | 10454 | else |
21d1c967 GD |
10455 | |
10456 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 10457 | #line 10458 "configure" |
f6bcfd97 | 10458 | #include "confdefs.h" |
21d1c967 GD |
10459 | #define _LARGE_FILES 1 |
10460 | #include <sys/types.h> | |
90dd450c | 10461 | int main() { |
21d1c967 GD |
10462 | typedef struct { |
10463 | unsigned int field: sizeof(off_t) == 8; | |
10464 | } wxlf; | |
10465 | ||
90dd450c | 10466 | ; return 0; } |
698dcdb6 | 10467 | EOF |
43d99b6d | 10468 | if { (eval echo configure:10469: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
90dd450c | 10469 | rm -rf conftest* |
21d1c967 | 10470 | ac_cv_sys_large_files=1 |
f6bcfd97 | 10471 | else |
698dcdb6 VZ |
10472 | echo "configure: failed program was:" >&5 |
10473 | cat conftest.$ac_ext >&5 | |
90dd450c | 10474 | rm -rf conftest* |
21d1c967 | 10475 | ac_cv_sys_large_files=no |
f6bcfd97 | 10476 | fi |
90dd450c | 10477 | rm -f conftest* |
21d1c967 GD |
10478 | |
10479 | ||
f6bcfd97 | 10480 | fi |
698dcdb6 | 10481 | |
21d1c967 | 10482 | echo "$ac_t""$ac_cv_sys_large_files" 1>&6 |
3f345b47 | 10483 | |
21d1c967 GD |
10484 | if test "$ac_cv_sys_large_files" != no; then |
10485 | wx_largefile=yes | |
10486 | cat >> confdefs.h <<EOF | |
10487 | #define _LARGE_FILES $ac_cv_sys_large_files | |
10488 | EOF | |
90dd450c | 10489 | |
90dd450c VZ |
10490 | fi |
10491 | ||
90dd450c | 10492 | fi |
90dd450c | 10493 | |
21d1c967 | 10494 | echo $ac_n "checking if large file support is available""... $ac_c" 1>&6 |
43d99b6d | 10495 | echo "configure:10496: checking if large file support is available" >&5 |
21d1c967 GD |
10496 | if test "x$wx_largefile" = "xyes"; then |
10497 | cat >> confdefs.h <<\EOF | |
10498 | #define HAVE_LARGEFILE_SUPPORT 1 | |
90dd450c VZ |
10499 | EOF |
10500 | ||
90dd450c | 10501 | fi |
21d1c967 GD |
10502 | echo "$ac_t""$wx_largefile" 1>&6 |
10503 | fi | |
90dd450c | 10504 | |
90dd450c | 10505 | |
21d1c967 | 10506 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
43d99b6d | 10507 | echo "configure:10508: checking whether byte ordering is bigendian" >&5 |
21d1c967 | 10508 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
90dd450c VZ |
10509 | echo $ac_n "(cached) $ac_c" 1>&6 |
10510 | else | |
21d1c967 GD |
10511 | ac_cv_c_bigendian=unknown |
10512 | # See if sys/param.h defines the BYTE_ORDER macro. | |
10513 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 10514 | #line 10515 "configure" |
90dd450c | 10515 | #include "confdefs.h" |
21d1c967 GD |
10516 | #include <sys/types.h> |
10517 | #include <sys/param.h> | |
10518 | int main() { | |
10519 | ||
10520 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
10521 | bogus endian macros | |
10522 | #endif | |
10523 | ; return 0; } | |
90dd450c | 10524 | EOF |
43d99b6d | 10525 | if { (eval echo configure:10526: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
90dd450c | 10526 | rm -rf conftest* |
21d1c967 | 10527 | # It does; now see whether it defined to BIG_ENDIAN or not. |
90dd450c | 10528 | cat > conftest.$ac_ext <<EOF |
43d99b6d | 10529 | #line 10530 "configure" |
90dd450c | 10530 | #include "confdefs.h" |
21d1c967 GD |
10531 | #include <sys/types.h> |
10532 | #include <sys/param.h> | |
3f345b47 | 10533 | int main() { |
21d1c967 GD |
10534 | |
10535 | #if BYTE_ORDER != BIG_ENDIAN | |
10536 | not big endian | |
10537 | #endif | |
3f345b47 VZ |
10538 | ; return 0; } |
10539 | EOF | |
43d99b6d | 10540 | if { (eval echo configure:10541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
3f345b47 | 10541 | rm -rf conftest* |
21d1c967 | 10542 | ac_cv_c_bigendian=yes |
3f345b47 VZ |
10543 | else |
10544 | echo "configure: failed program was:" >&5 | |
10545 | cat conftest.$ac_ext >&5 | |
10546 | rm -rf conftest* | |
21d1c967 | 10547 | ac_cv_c_bigendian=no |
3f345b47 VZ |
10548 | fi |
10549 | rm -f conftest* | |
3f345b47 | 10550 | else |
21d1c967 GD |
10551 | echo "configure: failed program was:" >&5 |
10552 | cat conftest.$ac_ext >&5 | |
3f345b47 | 10553 | fi |
21d1c967 GD |
10554 | rm -f conftest* |
10555 | if test $ac_cv_c_bigendian = unknown; then | |
10556 | if test "$cross_compiling" = yes; then | |
10557 | ac_cv_c_bigendian=unknown | |
10f2d63a | 10558 | else |
90dd450c | 10559 | cat > conftest.$ac_ext <<EOF |
43d99b6d | 10560 | #line 10561 "configure" |
90dd450c | 10561 | #include "confdefs.h" |
21d1c967 GD |
10562 | main () { |
10563 | /* Are we little or big endian? From Harbison&Steele. */ | |
10564 | union | |
10565 | { | |
10566 | long l; | |
10567 | char c[sizeof (long)]; | |
10568 | } u; | |
10569 | u.l = 1; | |
10570 | exit (u.c[sizeof (long) - 1] == 1); | |
10571 | } | |
3f345b47 | 10572 | EOF |
43d99b6d | 10573 | if { (eval echo configure:10574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
21d1c967 GD |
10574 | then |
10575 | ac_cv_c_bigendian=no | |
3f345b47 VZ |
10576 | else |
10577 | echo "configure: failed program was:" >&5 | |
10578 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
10579 | rm -fr conftest* |
10580 | ac_cv_c_bigendian=yes | |
3f345b47 | 10581 | fi |
21d1c967 | 10582 | rm -fr conftest* |
8168de4c | 10583 | fi |
703e0a69 | 10584 | |
21d1c967 GD |
10585 | fi |
10586 | fi | |
698dcdb6 | 10587 | |
21d1c967 GD |
10588 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 |
10589 | if test $ac_cv_c_bigendian = unknown; then | |
10590 | 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 | |
10591 | fi | |
10592 | if test $ac_cv_c_bigendian = yes; then | |
10593 | cat >> confdefs.h <<\EOF | |
10594 | #define WORDS_BIGENDIAN 1 | |
10595 | EOF | |
10596 | ||
10597 | fi | |
10598 | ||
10599 | ||
10600 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 | |
43d99b6d | 10601 | echo "configure:10602: checking how to run the C++ preprocessor" >&5 |
21d1c967 GD |
10602 | if test -z "$CXXCPP"; then |
10603 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then | |
698dcdb6 | 10604 | echo $ac_n "(cached) $ac_c" 1>&6 |
7ec2881a | 10605 | else |
21d1c967 GD |
10606 | ac_ext=C |
10607 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10608 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10609 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10610 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10611 | cross_compiling=$ac_cv_prog_cxx_cross | |
10612 | CXXCPP="${CXX-g++} -E" | |
10613 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 10614 | #line 10615 "configure" |
7ec2881a | 10615 | #include "confdefs.h" |
21d1c967 | 10616 | #include <stdlib.h> |
698dcdb6 | 10617 | EOF |
21d1c967 | 10618 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
43d99b6d | 10619 | { (eval echo configure:10620: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
10620 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10621 | if test -z "$ac_err"; then | |
10622 | : | |
698dcdb6 | 10623 | else |
21d1c967 | 10624 | echo "$ac_err" >&5 |
698dcdb6 VZ |
10625 | echo "configure: failed program was:" >&5 |
10626 | cat conftest.$ac_ext >&5 | |
10627 | rm -rf conftest* | |
21d1c967 | 10628 | CXXCPP=/lib/cpp |
698dcdb6 VZ |
10629 | fi |
10630 | rm -f conftest* | |
21d1c967 GD |
10631 | ac_cv_prog_CXXCPP="$CXXCPP" |
10632 | ac_ext=C | |
10633 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10634 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10635 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10636 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10637 | cross_compiling=$ac_cv_prog_cxx_cross | |
7ec2881a | 10638 | fi |
90dd450c | 10639 | fi |
21d1c967 GD |
10640 | CXXCPP="$ac_cv_prog_CXXCPP" |
10641 | echo "$ac_t""$CXXCPP" 1>&6 | |
1e6feb95 | 10642 | |
1725144d | 10643 | |
21d1c967 | 10644 | if test "$cross_compiling" = "yes"; then |
90dd450c | 10645 | cat >> confdefs.h <<\EOF |
21d1c967 | 10646 | #define wxUSE_IOSTREAMH 1 |
90dd450c | 10647 | EOF |
ab9b9eab | 10648 | |
21d1c967 GD |
10649 | else |
10650 | ||
10651 | ac_ext=C | |
10652 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10653 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10654 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10655 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10656 | cross_compiling=$ac_cv_prog_cxx_cross | |
10657 | ||
ba337fe7 | 10658 | |
21d1c967 GD |
10659 | for ac_hdr in iostream |
10660 | do | |
10661 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
10662 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
43d99b6d | 10663 | echo "configure:10664: checking for $ac_hdr" >&5 |
90dd450c | 10664 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
698dcdb6 | 10665 | echo $ac_n "(cached) $ac_c" 1>&6 |
ab9b9eab | 10666 | else |
90dd450c | 10667 | cat > conftest.$ac_ext <<EOF |
43d99b6d | 10668 | #line 10669 "configure" |
ab9b9eab | 10669 | #include "confdefs.h" |
21d1c967 | 10670 | #include <$ac_hdr> |
698dcdb6 VZ |
10671 | EOF |
10672 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
43d99b6d | 10673 | { (eval echo configure:10674: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
10674 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10675 | if test -z "$ac_err"; then | |
10676 | rm -rf conftest* | |
90dd450c | 10677 | eval "ac_cv_header_$ac_safe=yes" |
ab9b9eab | 10678 | else |
698dcdb6 VZ |
10679 | echo "$ac_err" >&5 |
10680 | echo "configure: failed program was:" >&5 | |
ab9b9eab | 10681 | cat conftest.$ac_ext >&5 |
698dcdb6 | 10682 | rm -rf conftest* |
90dd450c | 10683 | eval "ac_cv_header_$ac_safe=no" |
ab9b9eab | 10684 | fi |
698dcdb6 | 10685 | rm -f conftest* |
90dd450c VZ |
10686 | fi |
10687 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10688 | echo "$ac_t""yes" 1>&6 | |
21d1c967 GD |
10689 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
10690 | cat >> confdefs.h <<EOF | |
10691 | #define $ac_tr_hdr 1 | |
698dcdb6 | 10692 | EOF |
21d1c967 | 10693 | |
ab9b9eab | 10694 | else |
90dd450c VZ |
10695 | echo "$ac_t""no" 1>&6 |
10696 | fi | |
21d1c967 | 10697 | done |
10f2d63a | 10698 | |
10f2d63a | 10699 | |
21d1c967 GD |
10700 | if test "$ac_cv_header_iostream" = "yes" ; then |
10701 | : | |
10702 | else | |
10703 | cat >> confdefs.h <<\EOF | |
10704 | #define wxUSE_IOSTREAMH 1 | |
10705 | EOF | |
788deba1 | 10706 | |
90dd450c | 10707 | fi |
ab9b9eab | 10708 | |
21d1c967 GD |
10709 | ac_ext=c |
10710 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10711 | ac_cpp='$CPP $CPPFLAGS' | |
10712 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10713 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10714 | cross_compiling=$ac_cv_prog_cc_cross | |
ab9b9eab | 10715 | |
21d1c967 | 10716 | fi |
ab9b9eab | 10717 | |
21d1c967 GD |
10718 | |
10719 | ||
10720 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 | |
43d99b6d | 10721 | echo "configure:10722: checking if C++ compiler supports bool" >&5 |
21d1c967 | 10722 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then |
698dcdb6 | 10723 | echo $ac_n "(cached) $ac_c" 1>&6 |
ab9b9eab | 10724 | else |
21d1c967 GD |
10725 | |
10726 | ||
10727 | ac_ext=C | |
10728 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10729 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10730 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10731 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10732 | cross_compiling=$ac_cv_prog_cxx_cross | |
10733 | ||
10734 | ||
10735 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 10736 | #line 10737 "configure" |
ab9b9eab | 10737 | #include "confdefs.h" |
21d1c967 GD |
10738 | |
10739 | ||
10740 | int main() { | |
10741 | ||
10742 | bool b = true; | |
10743 | ||
10744 | return 0; | |
10745 | ||
10746 | ; return 0; } | |
698dcdb6 | 10747 | EOF |
43d99b6d | 10748 | if { (eval echo configure:10749: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 10749 | rm -rf conftest* |
21d1c967 GD |
10750 | |
10751 | wx_cv_cpp_bool=yes | |
10752 | ||
698dcdb6 VZ |
10753 | else |
10754 | echo "configure: failed program was:" >&5 | |
10755 | cat conftest.$ac_ext >&5 | |
10756 | rm -rf conftest* | |
21d1c967 GD |
10757 | |
10758 | wx_cv_cpp_bool=no | |
10759 | ||
10760 | ||
698dcdb6 VZ |
10761 | fi |
10762 | rm -f conftest* | |
21d1c967 GD |
10763 | |
10764 | ac_ext=c | |
10765 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10766 | ac_cpp='$CPP $CPPFLAGS' | |
10767 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10768 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10769 | cross_compiling=$ac_cv_prog_cc_cross | |
10770 | ||
10771 | ||
698dcdb6 | 10772 | fi |
21d1c967 GD |
10773 | |
10774 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 | |
10775 | ||
10776 | if test "$wx_cv_cpp_bool" = "yes"; then | |
10777 | cat >> confdefs.h <<\EOF | |
10778 | #define HAVE_BOOL 1 | |
90dd450c | 10779 | EOF |
ab9b9eab | 10780 | |
21d1c967 GD |
10781 | fi |
10782 | ||
10783 | ||
10784 | ||
986ecc86 | 10785 | echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6 |
43d99b6d | 10786 | echo "configure:10787: checking if C++ compiler supports the explicit keyword" >&5 |
986ecc86 VZ |
10787 | if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then |
10788 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10789 | else | |
10790 | ||
10791 | ||
10792 | ac_ext=C | |
10793 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10794 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10795 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10796 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10797 | cross_compiling=$ac_cv_prog_cxx_cross | |
10798 | ||
10799 | ||
10800 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 10801 | #line 10802 "configure" |
986ecc86 VZ |
10802 | #include "confdefs.h" |
10803 | ||
10804 | class Foo { public: explicit Foo(int) {} }; | |
10805 | ||
10806 | int main() { | |
10807 | ||
10808 | return 0; | |
10809 | ||
10810 | ; return 0; } | |
10811 | EOF | |
43d99b6d | 10812 | if { (eval echo configure:10813: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
986ecc86 VZ |
10813 | rm -rf conftest* |
10814 | ||
10815 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 10816 | #line 10817 "configure" |
986ecc86 VZ |
10817 | #include "confdefs.h" |
10818 | ||
10819 | class Foo { public: explicit Foo(int) {} }; | |
10820 | static void TakeFoo(const Foo& foo) { } | |
10821 | ||
10822 | int main() { | |
10823 | ||
10824 | TakeFoo(17); | |
10825 | return 0; | |
10826 | ||
10827 | ; return 0; } | |
10828 | EOF | |
43d99b6d | 10829 | if { (eval echo configure:10830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
986ecc86 VZ |
10830 | rm -rf conftest* |
10831 | wx_cv_explicit=no | |
10832 | else | |
10833 | echo "configure: failed program was:" >&5 | |
10834 | cat conftest.$ac_ext >&5 | |
10835 | rm -rf conftest* | |
10836 | wx_cv_explicit=yes | |
10837 | ||
10838 | fi | |
10839 | rm -f conftest* | |
10840 | ||
10841 | else | |
10842 | echo "configure: failed program was:" >&5 | |
10843 | cat conftest.$ac_ext >&5 | |
10844 | rm -rf conftest* | |
10845 | wx_cv_explicit=no | |
10846 | ||
10847 | fi | |
10848 | rm -f conftest* | |
10849 | ||
10850 | ac_ext=c | |
10851 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10852 | ac_cpp='$CPP $CPPFLAGS' | |
10853 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10854 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10855 | cross_compiling=$ac_cv_prog_cc_cross | |
10856 | ||
10857 | ||
10858 | fi | |
10859 | ||
10860 | echo "$ac_t""$wx_cv_explicit" 1>&6 | |
10861 | ||
10862 | if test "$wx_cv_explicit" = "yes"; then | |
10863 | cat >> confdefs.h <<\EOF | |
10864 | #define HAVE_EXPLICIT 1 | |
10865 | EOF | |
10866 | ||
10867 | fi | |
10868 | ||
10869 | ||
10870 | ||
21d1c967 GD |
10871 | SEARCH_INCLUDE="\ |
10872 | /usr/local/include \ | |
10873 | \ | |
10874 | /usr/Motif-1.2/include \ | |
10875 | /usr/Motif-2.1/include \ | |
10876 | \ | |
10877 | /usr/include/Motif1.2 \ | |
10878 | /opt/xpm/include/X11 \ | |
10879 | /opt/GBxpm/include/ \ | |
10880 | /opt/GBxpm/X11/include/ \ | |
10881 | \ | |
10882 | /usr/Motif1.2/include \ | |
10883 | /usr/dt/include \ | |
10884 | /usr/openwin/include \ | |
10885 | \ | |
10886 | /usr/include/Xm \ | |
10887 | \ | |
10888 | /usr/X11R6/include \ | |
10889 | /usr/X11R6.4/include \ | |
10890 | /usr/X11R5/include \ | |
10891 | /usr/X11R4/include \ | |
10892 | \ | |
10893 | /usr/include/X11R6 \ | |
10894 | /usr/include/X11R5 \ | |
10895 | /usr/include/X11R4 \ | |
10896 | \ | |
10897 | /usr/local/X11R6/include \ | |
10898 | /usr/local/X11R5/include \ | |
10899 | /usr/local/X11R4/include \ | |
10900 | \ | |
10901 | /usr/local/include/X11R6 \ | |
10902 | /usr/local/include/X11R5 \ | |
10903 | /usr/local/include/X11R4 \ | |
10904 | \ | |
10905 | /usr/X11/include \ | |
10906 | /usr/include/X11 \ | |
10907 | /usr/local/X11/include \ | |
10908 | /usr/local/include/X11 \ | |
10909 | \ | |
10910 | /usr/X386/include \ | |
10911 | /usr/x386/include \ | |
10912 | /usr/XFree86/include/X11 \ | |
10913 | \ | |
10914 | X:/XFree86/include \ | |
10915 | X:/XFree86/include/X11 \ | |
10916 | \ | |
10917 | /usr/include/gtk \ | |
10918 | /usr/local/include/gtk \ | |
10919 | /usr/include/glib \ | |
10920 | /usr/local/include/glib \ | |
10921 | \ | |
10922 | /usr/include/qt \ | |
10923 | /usr/local/include/qt \ | |
10924 | \ | |
10925 | /usr/include/windows \ | |
10926 | /usr/include/wine \ | |
10927 | /usr/local/include/wine \ | |
10928 | \ | |
10929 | /usr/unsupported/include \ | |
10930 | /usr/athena/include \ | |
10931 | /usr/local/x11r5/include \ | |
10932 | /usr/lpp/Xamples/include \ | |
10933 | \ | |
10934 | /usr/openwin/share/include \ | |
10935 | \ | |
10936 | /usr/include" | |
10937 | ||
10938 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
10939 | ||
10940 | ||
10941 | cat > confcache <<\EOF | |
10942 | # This file is a shell script that caches the results of configure | |
10943 | # tests run on this system so they can be shared between configure | |
10944 | # scripts and configure runs. It is not useful on other systems. | |
10945 | # If it contains results you don't want to keep, you may remove or edit it. | |
10946 | # | |
10947 | # By default, configure uses ./config.cache as the cache file, | |
10948 | # creating it if it does not exist already. You can give configure | |
10949 | # the --cache-file=FILE option to use a different cache file; that is | |
10950 | # what configure does when it calls configure scripts in | |
10951 | # subdirectories, so they share the cache. | |
10952 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
10953 | # config.status only pays attention to the cache file if you give it the | |
10954 | # --recheck option to rerun configure. | |
10955 | # | |
698dcdb6 | 10956 | EOF |
21d1c967 GD |
10957 | # The following way of writing the cache mishandles newlines in values, |
10958 | # but we know of no workaround that is simple, portable, and efficient. | |
10959 | # So, don't put newlines in cache variables' values. | |
10960 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
10961 | # and sets the high bit in the cache file unless we assign to the vars. | |
10962 | (set) 2>&1 | | |
10963 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
10964 | *ac_space=\ *) | |
10965 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
10966 | # turns \\\\ into \\, and sed turns \\ into \). | |
10967 | sed -n \ | |
10968 | -e "s/'/'\\\\''/g" \ | |
10969 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
10970 | ;; | |
10971 | *) | |
10972 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
10973 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
10974 | ;; | |
10975 | esac >> confcache | |
10976 | if cmp -s $cache_file confcache; then | |
90dd450c | 10977 | : |
698dcdb6 | 10978 | else |
21d1c967 GD |
10979 | if test -w $cache_file; then |
10980 | echo "updating cache $cache_file" | |
10981 | cat confcache > $cache_file | |
10982 | else | |
10983 | echo "not updating unwritable cache $cache_file" | |
10984 | fi | |
ab9b9eab | 10985 | fi |
21d1c967 | 10986 | rm -f confcache |
ab9b9eab | 10987 | |
ab9b9eab | 10988 | |
21d1c967 GD |
10989 | if test "$USE_LINUX" = 1; then |
10990 | echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6 | |
43d99b6d | 10991 | echo "configure:10992: checking for glibc 2.1 or later" >&5 |
21d1c967 | 10992 | if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then |
698dcdb6 VZ |
10993 | echo $ac_n "(cached) $ac_c" 1>&6 |
10994 | else | |
90dd450c | 10995 | |
21d1c967 | 10996 | cat > conftest.$ac_ext <<EOF |
43d99b6d | 10997 | #line 10998 "configure" |
ab9b9eab | 10998 | #include "confdefs.h" |
21d1c967 | 10999 | #include <features.h> |
698dcdb6 | 11000 | int main() { |
ab9b9eab | 11001 | |
21d1c967 GD |
11002 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) |
11003 | #error not glibc2.1 | |
11004 | #endif | |
11005 | ||
698dcdb6 VZ |
11006 | ; return 0; } |
11007 | EOF | |
43d99b6d | 11008 | if { (eval echo configure:11009: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 11009 | rm -rf conftest* |
90dd450c | 11010 | |
21d1c967 GD |
11011 | wx_cv_lib_glibc21=yes |
11012 | ||
698dcdb6 VZ |
11013 | else |
11014 | echo "configure: failed program was:" >&5 | |
11015 | cat conftest.$ac_ext >&5 | |
11016 | rm -rf conftest* | |
90dd450c | 11017 | |
21d1c967 GD |
11018 | wx_cv_lib_glibc21=no |
11019 | ||
11020 | ||
698dcdb6 VZ |
11021 | fi |
11022 | rm -f conftest* | |
90dd450c | 11023 | |
698dcdb6 VZ |
11024 | fi |
11025 | ||
21d1c967 GD |
11026 | echo "$ac_t""$wx_cv_lib_glibc21" 1>&6 |
11027 | if test "$wx_cv_lib_glibc21" = "yes"; then | |
11028 | cat >> confdefs.h <<\EOF | |
11029 | #define wxHAVE_GLIBC2 1 | |
11030 | EOF | |
1e487827 | 11031 | |
90dd450c | 11032 | fi |
ab9b9eab VZ |
11033 | fi |
11034 | ||
ab9b9eab | 11035 | |
ab9b9eab | 11036 | |
21d1c967 GD |
11037 | REGEX_INCLUDE= |
11038 | if test "$wxUSE_REGEX" != "no"; then | |
11039 | cat >> confdefs.h <<\EOF | |
11040 | #define wxUSE_REGEX 1 | |
11041 | EOF | |
698dcdb6 | 11042 | |
ab9b9eab | 11043 | |
21d1c967 GD |
11044 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then |
11045 | ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'` | |
11046 | echo $ac_n "checking for regex.h""... $ac_c" 1>&6 | |
43d99b6d | 11047 | echo "configure:11048: checking for regex.h" >&5 |
21d1c967 | 11048 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
698dcdb6 | 11049 | echo $ac_n "(cached) $ac_c" 1>&6 |
ab9b9eab | 11050 | else |
21d1c967 | 11051 | cat > conftest.$ac_ext <<EOF |
43d99b6d | 11052 | #line 11053 "configure" |
21d1c967 GD |
11053 | #include "confdefs.h" |
11054 | #include <regex.h> | |
11055 | EOF | |
11056 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
43d99b6d | 11057 | { (eval echo configure:11058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
11058 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11059 | if test -z "$ac_err"; then | |
11060 | rm -rf conftest* | |
11061 | eval "ac_cv_header_$ac_safe=yes" | |
698dcdb6 | 11062 | else |
21d1c967 GD |
11063 | echo "$ac_err" >&5 |
11064 | echo "configure: failed program was:" >&5 | |
11065 | cat conftest.$ac_ext >&5 | |
11066 | rm -rf conftest* | |
11067 | eval "ac_cv_header_$ac_safe=no" | |
11068 | fi | |
11069 | rm -f conftest* | |
698dcdb6 | 11070 | fi |
21d1c967 GD |
11071 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11072 | echo "$ac_t""yes" 1>&6 | |
11073 | for ac_func in regcomp | |
11074 | do | |
11075 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
43d99b6d | 11076 | echo "configure:11077: checking for $ac_func" >&5 |
21d1c967 GD |
11077 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11078 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11079 | else | |
11080 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 11081 | #line 11082 "configure" |
21d1c967 GD |
11082 | #include "confdefs.h" |
11083 | /* System header to define __stub macros and hopefully few prototypes, | |
11084 | which can conflict with char $ac_func(); below. */ | |
11085 | #include <assert.h> | |
11086 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11087 | /* We use char because int might match the return type of a gcc2 | |
11088 | builtin and then its argument prototype would still apply. */ | |
11089 | char $ac_func(); | |
698dcdb6 | 11090 | |
21d1c967 | 11091 | int main() { |
90dd450c | 11092 | |
21d1c967 GD |
11093 | /* The GNU C library defines this for functions which it implements |
11094 | to always fail with ENOSYS. Some functions are actually named | |
11095 | something starting with __ and the normal name is an alias. */ | |
11096 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11097 | choke me | |
11098 | #else | |
11099 | $ac_func(); | |
11100 | #endif | |
90dd450c | 11101 | |
21d1c967 GD |
11102 | ; return 0; } |
11103 | EOF | |
43d99b6d | 11104 | if { (eval echo configure:11105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21d1c967 GD |
11105 | rm -rf conftest* |
11106 | eval "ac_cv_func_$ac_func=yes" | |
11107 | else | |
11108 | echo "configure: failed program was:" >&5 | |
11109 | cat conftest.$ac_ext >&5 | |
11110 | rm -rf conftest* | |
11111 | eval "ac_cv_func_$ac_func=no" | |
11112 | fi | |
11113 | rm -f conftest* | |
11114 | fi | |
90dd450c | 11115 | |
21d1c967 GD |
11116 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
11117 | echo "$ac_t""yes" 1>&6 | |
11118 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11119 | cat >> confdefs.h <<EOF | |
11120 | #define $ac_tr_func 1 | |
11121 | EOF | |
11122 | ||
90dd450c | 11123 | else |
21d1c967 | 11124 | echo "$ac_t""no" 1>&6 |
698dcdb6 | 11125 | fi |
21d1c967 GD |
11126 | done |
11127 | ||
698dcdb6 VZ |
11128 | else |
11129 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11130 | fi |
11131 | ||
90dd450c | 11132 | |
21d1c967 GD |
11133 | if test "x$ac_cv_func_regcomp" != "xyes"; then |
11134 | if test "$wxUSE_REGEX" = "sys" ; then | |
11135 | { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; } | |
11136 | else | |
11137 | echo "configure: warning: system regex library not found, will use built-in instead" 1>&2 | |
11138 | wxUSE_REGEX=builtin | |
11139 | fi | |
11140 | else | |
11141 | wxUSE_REGEX=sys | |
11142 | fi | |
ab9b9eab | 11143 | fi |
90dd450c | 11144 | |
21d1c967 GD |
11145 | if test "$wxUSE_REGEX" = "builtin" ; then |
11146 | REGEX_INCLUDE="-I\${top_srcdir}/src/regex" | |
90dd450c | 11147 | fi |
21d1c967 | 11148 | fi |
90dd450c | 11149 | |
90dd450c | 11150 | |
21d1c967 GD |
11151 | ZLIB_INCLUDE= |
11152 | ZLIB_LINK= | |
11153 | if test "$wxUSE_ZLIB" != "no" ; then | |
11154 | cat >> confdefs.h <<\EOF | |
11155 | #define wxUSE_ZLIB 1 | |
11156 | EOF | |
11157 | ||
11158 | ||
11159 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then | |
11160 | ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'` | |
11161 | echo $ac_n "checking for zlib.h""... $ac_c" 1>&6 | |
43d99b6d | 11162 | echo "configure:11163: checking for zlib.h" >&5 |
21d1c967 GD |
11163 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11164 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11165 | else |
698dcdb6 | 11166 | cat > conftest.$ac_ext <<EOF |
43d99b6d | 11167 | #line 11168 "configure" |
ab9b9eab | 11168 | #include "confdefs.h" |
21d1c967 | 11169 | #include <zlib.h> |
698dcdb6 | 11170 | EOF |
21d1c967 | 11171 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
43d99b6d | 11172 | { (eval echo configure:11173: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
11173 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11174 | if test -z "$ac_err"; then | |
11175 | rm -rf conftest* | |
11176 | eval "ac_cv_header_$ac_safe=yes" | |
698dcdb6 | 11177 | else |
21d1c967 | 11178 | echo "$ac_err" >&5 |
698dcdb6 VZ |
11179 | echo "configure: failed program was:" >&5 |
11180 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
11181 | rm -rf conftest* |
11182 | eval "ac_cv_header_$ac_safe=no" | |
698dcdb6 | 11183 | fi |
21d1c967 | 11184 | rm -f conftest* |
ab9b9eab | 11185 | fi |
21d1c967 GD |
11186 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11187 | echo "$ac_t""yes" 1>&6 | |
11188 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6 | |
43d99b6d | 11189 | echo "configure:11190: checking for deflate in -lz" >&5 |
21d1c967 GD |
11190 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'` |
11191 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11192 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11193 | else | |
11194 | ac_save_LIBS="$LIBS" | |
11195 | LIBS="-lz $LIBS" | |
11196 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 11197 | #line 11198 "configure" |
ab9b9eab | 11198 | #include "confdefs.h" |
21d1c967 GD |
11199 | /* Override any gcc2 internal prototype to avoid an error. */ |
11200 | /* We use char because int might match the return type of a gcc2 | |
11201 | builtin and then its argument prototype would still apply. */ | |
11202 | char deflate(); | |
ab9b9eab | 11203 | |
90dd450c | 11204 | int main() { |
21d1c967 | 11205 | deflate() |
698dcdb6 VZ |
11206 | ; return 0; } |
11207 | EOF | |
43d99b6d | 11208 | if { (eval echo configure:11209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 11209 | rm -rf conftest* |
21d1c967 | 11210 | eval "ac_cv_lib_$ac_lib_var=yes" |
698dcdb6 VZ |
11211 | else |
11212 | echo "configure: failed program was:" >&5 | |
11213 | cat conftest.$ac_ext >&5 | |
11214 | rm -rf conftest* | |
21d1c967 | 11215 | eval "ac_cv_lib_$ac_lib_var=no" |
698dcdb6 VZ |
11216 | fi |
11217 | rm -f conftest* | |
21d1c967 | 11218 | LIBS="$ac_save_LIBS" |
ab9b9eab | 11219 | |
21d1c967 GD |
11220 | fi |
11221 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11222 | echo "$ac_t""yes" 1>&6 | |
11223 | ZLIB_LINK=" -lz" | |
ab9b9eab | 11224 | else |
21d1c967 | 11225 | echo "$ac_t""no" 1>&6 |
90dd450c | 11226 | fi |
698dcdb6 | 11227 | |
698dcdb6 | 11228 | else |
21d1c967 | 11229 | echo "$ac_t""no" 1>&6 |
698dcdb6 | 11230 | fi |
698dcdb6 | 11231 | |
21d1c967 GD |
11232 | |
11233 | if test "x$ZLIB_LINK" = "x" ; then | |
11234 | if test "$wxUSE_ZLIB" = "sys" ; then | |
11235 | { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; } | |
11236 | else | |
11237 | echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2 | |
11238 | wxUSE_ZLIB=builtin | |
11239 | fi | |
11240 | else | |
11241 | wxUSE_ZLIB=sys | |
11242 | fi | |
11243 | fi | |
11244 | ||
11245 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
11246 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
11247 | fi | |
ab9b9eab VZ |
11248 | fi |
11249 | ||
ab9b9eab | 11250 | |
21d1c967 GD |
11251 | PNG_INCLUDE= |
11252 | PNG_LINK= | |
11253 | if test "$wxUSE_LIBPNG" != "no" ; then | |
11254 | cat >> confdefs.h <<\EOF | |
11255 | #define wxUSE_LIBPNG 1 | |
11256 | EOF | |
90dd450c | 11257 | |
3bd8fb5f | 11258 | |
21d1c967 GD |
11259 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then |
11260 | echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2 | |
11261 | wxUSE_LIBPNG=sys | |
11262 | fi | |
90dd450c | 11263 | |
21d1c967 GD |
11264 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then |
11265 | echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2 | |
11266 | wxUSE_LIBPNG=builtin | |
11267 | fi | |
11268 | ||
11269 | if test "$wxUSE_MGL" != 1 ; then | |
11270 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
11271 | ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` | |
11272 | echo $ac_n "checking for png.h""... $ac_c" 1>&6 | |
43d99b6d | 11273 | echo "configure:11274: checking for png.h" >&5 |
21d1c967 | 11274 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
90dd450c VZ |
11275 | echo $ac_n "(cached) $ac_c" 1>&6 |
11276 | else | |
21d1c967 | 11277 | cat > conftest.$ac_ext <<EOF |
43d99b6d | 11278 | #line 11279 "configure" |
21d1c967 GD |
11279 | #include "confdefs.h" |
11280 | #include <png.h> | |
11281 | EOF | |
11282 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
43d99b6d | 11283 | { (eval echo configure:11284: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
11284 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11285 | if test -z "$ac_err"; then | |
11286 | rm -rf conftest* | |
11287 | eval "ac_cv_header_$ac_safe=yes" | |
90dd450c | 11288 | else |
21d1c967 | 11289 | echo "$ac_err" >&5 |
90dd450c VZ |
11290 | echo "configure: failed program was:" >&5 |
11291 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
11292 | rm -rf conftest* |
11293 | eval "ac_cv_header_$ac_safe=no" | |
90dd450c | 11294 | fi |
21d1c967 | 11295 | rm -f conftest* |
90dd450c | 11296 | fi |
21d1c967 GD |
11297 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11298 | echo "$ac_t""yes" 1>&6 | |
11299 | echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6 | |
43d99b6d | 11300 | echo "configure:11301: checking for png_check_sig in -lpng" >&5 |
21d1c967 GD |
11301 | ac_lib_var=`echo png'_'png_check_sig | 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 | |
11304 | else | |
11305 | ac_save_LIBS="$LIBS" | |
11306 | LIBS="-lpng -lz -lm $LIBS" | |
11307 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 11308 | #line 11309 "configure" |
90dd450c | 11309 | #include "confdefs.h" |
21d1c967 GD |
11310 | /* Override any gcc2 internal prototype to avoid an error. */ |
11311 | /* We use char because int might match the return type of a gcc2 | |
11312 | builtin and then its argument prototype would still apply. */ | |
11313 | char png_check_sig(); | |
90dd450c VZ |
11314 | |
11315 | int main() { | |
21d1c967 | 11316 | png_check_sig() |
90dd450c VZ |
11317 | ; return 0; } |
11318 | EOF | |
43d99b6d | 11319 | if { (eval echo configure:11320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c | 11320 | rm -rf conftest* |
21d1c967 | 11321 | eval "ac_cv_lib_$ac_lib_var=yes" |
90dd450c VZ |
11322 | else |
11323 | echo "configure: failed program was:" >&5 | |
11324 | cat conftest.$ac_ext >&5 | |
11325 | rm -rf conftest* | |
21d1c967 | 11326 | eval "ac_cv_lib_$ac_lib_var=no" |
90dd450c VZ |
11327 | fi |
11328 | rm -f conftest* | |
21d1c967 | 11329 | LIBS="$ac_save_LIBS" |
90dd450c | 11330 | |
90dd450c | 11331 | fi |
21d1c967 GD |
11332 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
11333 | echo "$ac_t""yes" 1>&6 | |
11334 | PNG_LINK=" -lpng" | |
90dd450c | 11335 | else |
21d1c967 | 11336 | echo "$ac_t""no" 1>&6 |
90dd450c VZ |
11337 | fi |
11338 | ||
21d1c967 | 11339 | |
90dd450c | 11340 | else |
21d1c967 | 11341 | echo "$ac_t""no" 1>&6 |
90dd450c VZ |
11342 | fi |
11343 | ||
11344 | ||
21d1c967 GD |
11345 | if test "x$PNG_LINK" = "x" ; then |
11346 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
11347 | { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; } | |
11348 | else | |
11349 | echo "configure: warning: system png library not found, will use built-in instead" 1>&2 | |
11350 | wxUSE_LIBPNG=builtin | |
11351 | fi | |
11352 | else | |
11353 | wxUSE_LIBPNG=yes | |
11354 | fi | |
11355 | fi | |
11356 | fi | |
90dd450c | 11357 | |
21d1c967 GD |
11358 | if test "$wxUSE_LIBPNG" = "builtin" ; then |
11359 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
11360 | fi | |
90dd450c | 11361 | |
21d1c967 | 11362 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
90dd450c VZ |
11363 | fi |
11364 | ||
90dd450c | 11365 | |
21d1c967 GD |
11366 | JPEG_INCLUDE= |
11367 | JPEG_LINK= | |
11368 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
11369 | cat >> confdefs.h <<\EOF | |
11370 | #define wxUSE_LIBJPEG 1 | |
11371 | EOF | |
90dd450c | 11372 | |
90dd450c | 11373 | |
21d1c967 GD |
11374 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then |
11375 | echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2 | |
11376 | wxUSE_LIBJPEG=sys | |
11377 | fi | |
90dd450c | 11378 | |
21d1c967 GD |
11379 | if test "$wxUSE_MGL" != 1 ; then |
11380 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
11381 | echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 | |
43d99b6d | 11382 | echo "configure:11383: checking for jpeglib.h" >&5 |
21d1c967 GD |
11383 | if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then |
11384 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11385 | else | |
11386 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 11387 | #line 11388 "configure" |
21d1c967 | 11388 | #include "confdefs.h" |
90dd450c | 11389 | |
21d1c967 GD |
11390 | #undef HAVE_STDLIB_H |
11391 | #include <stdio.h> | |
11392 | #include <jpeglib.h> | |
11393 | ||
11394 | int main() { | |
90dd450c | 11395 | |
21d1c967 GD |
11396 | |
11397 | ; return 0; } | |
90dd450c | 11398 | EOF |
43d99b6d | 11399 | if { (eval echo configure:11400: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
21d1c967 GD |
11400 | rm -rf conftest* |
11401 | ac_cv_header_jpeglib_h=yes | |
90dd450c VZ |
11402 | else |
11403 | echo "configure: failed program was:" >&5 | |
11404 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
11405 | rm -rf conftest* |
11406 | ac_cv_header_jpeglib_h=no | |
11407 | ||
90dd450c | 11408 | fi |
21d1c967 GD |
11409 | rm -f conftest* |
11410 | ||
90dd450c VZ |
11411 | fi |
11412 | ||
21d1c967 | 11413 | echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6 |
90dd450c | 11414 | |
21d1c967 GD |
11415 | if test "$ac_cv_header_jpeglib_h" = "yes"; then |
11416 | echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6 | |
43d99b6d | 11417 | echo "configure:11418: checking for jpeg_read_header in -ljpeg" >&5 |
21d1c967 GD |
11418 | ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'` |
11419 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11420 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11421 | else | |
11422 | ac_save_LIBS="$LIBS" | |
11423 | LIBS="-ljpeg $LIBS" | |
11424 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 11425 | #line 11426 "configure" |
21d1c967 GD |
11426 | #include "confdefs.h" |
11427 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11428 | /* We use char because int might match the return type of a gcc2 | |
11429 | builtin and then its argument prototype would still apply. */ | |
11430 | char jpeg_read_header(); | |
90dd450c VZ |
11431 | |
11432 | int main() { | |
21d1c967 | 11433 | jpeg_read_header() |
90dd450c VZ |
11434 | ; return 0; } |
11435 | EOF | |
43d99b6d | 11436 | if { (eval echo configure:11437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c | 11437 | rm -rf conftest* |
21d1c967 | 11438 | eval "ac_cv_lib_$ac_lib_var=yes" |
90dd450c VZ |
11439 | else |
11440 | echo "configure: failed program was:" >&5 | |
11441 | cat conftest.$ac_ext >&5 | |
11442 | rm -rf conftest* | |
21d1c967 | 11443 | eval "ac_cv_lib_$ac_lib_var=no" |
90dd450c VZ |
11444 | fi |
11445 | rm -f conftest* | |
21d1c967 | 11446 | LIBS="$ac_save_LIBS" |
90dd450c | 11447 | |
21d1c967 GD |
11448 | fi |
11449 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11450 | echo "$ac_t""yes" 1>&6 | |
11451 | JPEG_LINK=" -ljpeg" | |
11452 | else | |
11453 | echo "$ac_t""no" 1>&6 | |
90dd450c VZ |
11454 | fi |
11455 | ||
21d1c967 | 11456 | fi |
90dd450c | 11457 | |
21d1c967 GD |
11458 | if test "x$JPEG_LINK" = "x" ; then |
11459 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
11460 | { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; } | |
11461 | else | |
11462 | echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2 | |
11463 | wxUSE_LIBJPEG=builtin | |
11464 | fi | |
11465 | else | |
11466 | wxUSE_LIBJPEG=sys | |
11467 | fi | |
11468 | fi | |
11469 | fi | |
90dd450c | 11470 | |
21d1c967 GD |
11471 | if test "$wxUSE_LIBJPEG" = "builtin" ; then |
11472 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
11473 | fi | |
11474 | fi | |
90dd450c | 11475 | |
90dd450c | 11476 | |
21d1c967 GD |
11477 | TIFF_INCLUDE= |
11478 | TIFF_LINK= | |
11479 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
11480 | cat >> confdefs.h <<\EOF | |
11481 | #define wxUSE_LIBTIFF 1 | |
11482 | EOF | |
11483 | ||
11484 | ||
11485 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then | |
11486 | ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` | |
11487 | echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | |
43d99b6d | 11488 | echo "configure:11489: checking for tiffio.h" >&5 |
21d1c967 GD |
11489 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11490 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11491 | else | |
11492 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 11493 | #line 11494 "configure" |
21d1c967 GD |
11494 | #include "confdefs.h" |
11495 | #include <tiffio.h> | |
11496 | EOF | |
11497 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
43d99b6d | 11498 | { (eval echo configure:11499: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
11499 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11500 | if test -z "$ac_err"; then | |
11501 | rm -rf conftest* | |
11502 | eval "ac_cv_header_$ac_safe=yes" | |
11503 | else | |
11504 | echo "$ac_err" >&5 | |
11505 | echo "configure: failed program was:" >&5 | |
11506 | cat conftest.$ac_ext >&5 | |
11507 | rm -rf conftest* | |
11508 | eval "ac_cv_header_$ac_safe=no" | |
11509 | fi | |
11510 | rm -f conftest* | |
11511 | fi | |
11512 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11513 | echo "$ac_t""yes" 1>&6 | |
11514 | echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6 | |
43d99b6d | 11515 | echo "configure:11516: checking for TIFFError in -ltiff" >&5 |
21d1c967 | 11516 | ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
11517 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
11518 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11519 | else | |
11520 | ac_save_LIBS="$LIBS" | |
21d1c967 | 11521 | LIBS="-ltiff -lm $LIBS" |
698dcdb6 | 11522 | cat > conftest.$ac_ext <<EOF |
43d99b6d | 11523 | #line 11524 "configure" |
ab9b9eab VZ |
11524 | #include "confdefs.h" |
11525 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11526 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 11527 | builtin and then its argument prototype would still apply. */ |
21d1c967 | 11528 | char TIFFError(); |
698dcdb6 VZ |
11529 | |
11530 | int main() { | |
21d1c967 | 11531 | TIFFError() |
698dcdb6 VZ |
11532 | ; return 0; } |
11533 | EOF | |
43d99b6d | 11534 | if { (eval echo configure:11535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11535 | rm -rf conftest* |
11536 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11537 | else | |
11538 | echo "configure: failed program was:" >&5 | |
11539 | cat conftest.$ac_ext >&5 | |
11540 | rm -rf conftest* | |
11541 | eval "ac_cv_lib_$ac_lib_var=no" | |
11542 | fi | |
11543 | rm -f conftest* | |
11544 | LIBS="$ac_save_LIBS" | |
11545 | ||
11546 | fi | |
11547 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11548 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 11549 | TIFF_LINK=" -ltiff" |
698dcdb6 VZ |
11550 | else |
11551 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11552 | fi |
11553 | ||
21d1c967 GD |
11554 | |
11555 | else | |
11556 | echo "$ac_t""no" 1>&6 | |
11557 | fi | |
cd6d6d5b | 11558 | |
c79a329d | 11559 | |
21d1c967 GD |
11560 | if test "x$TIFF_LINK" = "x" ; then |
11561 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
11562 | { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; } | |
90dd450c | 11563 | else |
21d1c967 GD |
11564 | echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2 |
11565 | wxUSE_LIBTIFF=builtin | |
d8356fa3 | 11566 | fi |
d8356fa3 | 11567 | else |
21d1c967 | 11568 | wxUSE_LIBTIFF=sys |
d8356fa3 | 11569 | fi |
21d1c967 | 11570 | fi |
d8356fa3 | 11571 | |
21d1c967 GD |
11572 | if test "$wxUSE_LIBTIFF" = "builtin" ; then |
11573 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" | |
1e6feb95 | 11574 | fi |
21d1c967 | 11575 | fi |
10f2d63a | 11576 | |
90dd450c | 11577 | |
21d1c967 | 11578 | AFMINSTALL= |
90dd450c | 11579 | |
21d1c967 GD |
11580 | TOOLKIT= |
11581 | TOOLKIT_INCLUDE= | |
11582 | WIDGET_SET= | |
11583 | ||
11584 | if test "$USE_WIN32" = 1 ; then | |
11585 | for ac_hdr in w32api.h | |
11586 | do | |
11587 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
11588 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
43d99b6d | 11589 | echo "configure:11590: checking for $ac_hdr" >&5 |
21d1c967 | 11590 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
f79bd02d JS |
11591 | echo $ac_n "(cached) $ac_c" 1>&6 |
11592 | else | |
21d1c967 | 11593 | cat > conftest.$ac_ext <<EOF |
43d99b6d | 11594 | #line 11595 "configure" |
f79bd02d | 11595 | #include "confdefs.h" |
21d1c967 | 11596 | #include <$ac_hdr> |
f79bd02d JS |
11597 | EOF |
11598 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
43d99b6d | 11599 | { (eval echo configure:11600: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
f79bd02d JS |
11600 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11601 | if test -z "$ac_err"; then | |
11602 | rm -rf conftest* | |
21d1c967 | 11603 | eval "ac_cv_header_$ac_safe=yes" |
f79bd02d JS |
11604 | else |
11605 | echo "$ac_err" >&5 | |
11606 | echo "configure: failed program was:" >&5 | |
11607 | cat conftest.$ac_ext >&5 | |
11608 | rm -rf conftest* | |
21d1c967 | 11609 | eval "ac_cv_header_$ac_safe=no" |
f79bd02d JS |
11610 | fi |
11611 | rm -f conftest* | |
21d1c967 GD |
11612 | fi |
11613 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11614 | echo "$ac_t""yes" 1>&6 | |
11615 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11616 | cat >> confdefs.h <<EOF | |
11617 | #define $ac_tr_hdr 1 | |
11618 | EOF | |
11619 | ||
11620 | else | |
11621 | echo "$ac_t""no" 1>&6 | |
11622 | fi | |
11623 | done | |
f79bd02d | 11624 | |
21d1c967 GD |
11625 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` |
11626 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
43d99b6d | 11627 | echo "configure:11628: checking for windows.h" >&5 |
21d1c967 GD |
11628 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11629 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11630 | else | |
11631 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 11632 | #line 11633 "configure" |
90dd450c | 11633 | #include "confdefs.h" |
21d1c967 | 11634 | #include <windows.h> |
f79bd02d | 11635 | EOF |
21d1c967 | 11636 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
43d99b6d | 11637 | { (eval echo configure:11638: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
11638 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11639 | if test -z "$ac_err"; then | |
90dd450c | 11640 | rm -rf conftest* |
21d1c967 | 11641 | eval "ac_cv_header_$ac_safe=yes" |
90dd450c | 11642 | else |
21d1c967 | 11643 | echo "$ac_err" >&5 |
90dd450c VZ |
11644 | echo "configure: failed program was:" >&5 |
11645 | cat conftest.$ac_ext >&5 | |
11646 | rm -rf conftest* | |
21d1c967 | 11647 | eval "ac_cv_header_$ac_safe=no" |
90dd450c VZ |
11648 | fi |
11649 | rm -f conftest* | |
90dd450c | 11650 | fi |
21d1c967 GD |
11651 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11652 | echo "$ac_t""yes" 1>&6 | |
11653 | : | |
90dd450c | 11654 | else |
21d1c967 GD |
11655 | echo "$ac_t""no" 1>&6 |
11656 | ||
11657 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
11658 | ||
90dd450c | 11659 | fi |
f79bd02d | 11660 | |
f79bd02d | 11661 | |
21d1c967 | 11662 | echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6 |
43d99b6d | 11663 | echo "configure:11664: checking if w32api has good enough MSIE support" >&5 |
21d1c967 GD |
11664 | if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then |
11665 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f79bd02d | 11666 | else |
21d1c967 | 11667 | |
f79bd02d | 11668 | cat > conftest.$ac_ext <<EOF |
43d99b6d | 11669 | #line 11670 "configure" |
f79bd02d | 11670 | #include "confdefs.h" |
21d1c967 | 11671 | #include <w32api.h> |
f79bd02d JS |
11672 | int main() { |
11673 | ||
21d1c967 GD |
11674 | #define wxCHECK_W32API_VERSION( major, minor ) \ |
11675 | ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \ | |
11676 | && ( ( __W32API_MAJOR_VERSION > (major) ) \ | |
11677 | || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor)))) | |
11678 | ||
11679 | #if !wxCHECK_W32API_VERSION(1,1) | |
11680 | #error You need w32api 1.1 or newer | |
11681 | #endif | |
11682 | ||
f79bd02d JS |
11683 | ; return 0; } |
11684 | EOF | |
43d99b6d | 11685 | if { (eval echo configure:11686: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
f79bd02d | 11686 | rm -rf conftest* |
21d1c967 GD |
11687 | |
11688 | wx_cv_w32api_win32_ie=yes | |
11689 | ||
f79bd02d JS |
11690 | else |
11691 | echo "configure: failed program was:" >&5 | |
11692 | cat conftest.$ac_ext >&5 | |
11693 | rm -rf conftest* | |
21d1c967 GD |
11694 | |
11695 | wx_cv_w32api_win32_ie=no | |
11696 | ||
f79bd02d JS |
11697 | fi |
11698 | rm -f conftest* | |
21d1c967 GD |
11699 | |
11700 | fi | |
f79bd02d | 11701 | |
21d1c967 GD |
11702 | echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6 |
11703 | if test "$wx_cv_w32api_win32_ie" = "yes" ; then | |
11704 | CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400" | |
11705 | fi | |
f79bd02d | 11706 | |
21d1c967 GD |
11707 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32" |
11708 | ||
11709 | case "${host}" in | |
11710 | *-*-cygwin* ) | |
11711 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32" | |
11712 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
f79bd02d | 11713 | esac |
f79bd02d | 11714 | |
21d1c967 GD |
11715 | if test "$wxUSE_ODBC" = "yes" ; then |
11716 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
11717 | fi | |
f79bd02d | 11718 | |
21d1c967 GD |
11719 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
11720 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
f79bd02d | 11721 | fi |
f79bd02d | 11722 | |
21d1c967 GD |
11723 | if test "$wxUSE_GUI" = "yes"; then |
11724 | USE_GUI=1 | |
f79bd02d | 11725 | |
21d1c967 | 11726 | GUI_TK_LIBRARY= |
f79bd02d | 11727 | |
21d1c967 GD |
11728 | WXGTK12= |
11729 | WXGTK127= | |
11730 | WXGTK20= | |
f79bd02d | 11731 | |
21d1c967 GD |
11732 | if test "$wxUSE_MSW" = 1 ; then |
11733 | TOOLKIT=MSW | |
11734 | GUIDIST=MSW_DIST | |
f79bd02d | 11735 | |
21d1c967 GD |
11736 | case "${host}" in |
11737 | *-*-mingw32* ) | |
11738 | LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows" | |
11739 | esac | |
f79bd02d JS |
11740 | fi |
11741 | ||
21d1c967 GD |
11742 | if test "$wxUSE_GTK" = 1; then |
11743 | echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6 | |
43d99b6d | 11744 | echo "configure:11745: checking for GTK+ version" >&5 |
21d1c967 GD |
11745 | |
11746 | gtk_version_cached=1 | |
11747 | if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then | |
f79bd02d JS |
11748 | echo $ac_n "(cached) $ac_c" 1>&6 |
11749 | else | |
21d1c967 GD |
11750 | |
11751 | gtk_version_cached=0 | |
11752 | echo "$ac_t""" 1>&6 | |
f79bd02d | 11753 | |
21d1c967 GD |
11754 | GTK_MODULES= |
11755 | if test "$wxUSE_THREADS" = "yes"; then | |
11756 | GTK_MODULES=gthread | |
11757 | fi | |
f79bd02d | 11758 | |
21d1c967 GD |
11759 | wx_cv_lib_gtk= |
11760 | if test "x$wxUSE_GTK2" = "xyes"; then | |
11761 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
11762 | if test "${enable_gtktest+set}" = set; then | |
11763 | enableval="$enable_gtktest" | |
f79bd02d JS |
11764 | : |
11765 | else | |
21d1c967 | 11766 | enable_gtktest=yes |
f79bd02d JS |
11767 | fi |
11768 | ||
f79bd02d | 11769 | |
21d1c967 GD |
11770 | pkg_config_args=gtk+-2.0 |
11771 | for module in . $GTK_MODULES | |
11772 | do | |
11773 | case "$module" in | |
11774 | gthread) | |
11775 | pkg_config_args="$pkg_config_args gthread-2.0" | |
11776 | ;; | |
11777 | esac | |
11778 | done | |
11779 | ||
11780 | no_gtk="" | |
f79bd02d | 11781 | |
21d1c967 GD |
11782 | # Extract the first word of "pkg-config", so it can be a program name with args. |
11783 | set dummy pkg-config; ac_word=$2 | |
11784 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
43d99b6d | 11785 | echo "configure:11786: checking for $ac_word" >&5 |
21d1c967 GD |
11786 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
11787 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11788 | else | |
11789 | case "$PKG_CONFIG" in | |
11790 | /*) | |
11791 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
11792 | ;; | |
11793 | ?:/*) | |
11794 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
11795 | ;; | |
11796 | *) | |
11797 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
11798 | ac_dummy="$PATH" | |
11799 | for ac_dir in $ac_dummy; do | |
11800 | test -z "$ac_dir" && ac_dir=. | |
11801 | if test -f $ac_dir/$ac_word; then | |
11802 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
11803 | break | |
11804 | fi | |
11805 | done | |
11806 | IFS="$ac_save_ifs" | |
11807 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
11808 | ;; | |
11809 | esac | |
f79bd02d | 11810 | fi |
21d1c967 GD |
11811 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
11812 | if test -n "$PKG_CONFIG"; then | |
11813 | echo "$ac_t""$PKG_CONFIG" 1>&6 | |
f79bd02d JS |
11814 | else |
11815 | echo "$ac_t""no" 1>&6 | |
11816 | fi | |
11817 | ||
f79bd02d | 11818 | |
21d1c967 GD |
11819 | if test x$PKG_CONFIG != xno ; then |
11820 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
11821 | : | |
11822 | else | |
11823 | echo *** pkg-config too old; version 0.7 or better required. | |
11824 | no_gtk=yes | |
11825 | PKG_CONFIG=no | |
11826 | fi | |
11827 | else | |
11828 | no_gtk=yes | |
11829 | fi | |
f79bd02d | 11830 | |
21d1c967 GD |
11831 | min_gtk_version=2.0.0 |
11832 | echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6 | |
43d99b6d | 11833 | echo "configure:11834: checking for GTK+ - version >= $min_gtk_version" >&5 |
f79bd02d | 11834 | |
21d1c967 GD |
11835 | if test x$PKG_CONFIG != xno ; then |
11836 | ## don't try to run the test against uninstalled libtool libs | |
11837 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
11838 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
11839 | enable_gtktest=no | |
11840 | fi | |
f79bd02d | 11841 | |
21d1c967 GD |
11842 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then |
11843 | : | |
11844 | else | |
11845 | no_gtk=yes | |
11846 | fi | |
11847 | fi | |
f79bd02d | 11848 | |
21d1c967 GD |
11849 | if test x"$no_gtk" = x ; then |
11850 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
11851 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
11852 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
11853 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
11854 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
11855 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
11856 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
11857 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
11858 | if test "x$enable_gtktest" = "xyes" ; then | |
11859 | ac_save_CFLAGS="$CFLAGS" | |
11860 | ac_save_LIBS="$LIBS" | |
11861 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
11862 | LIBS="$GTK_LIBS $LIBS" | |
11863 | rm -f conf.gtktest | |
11864 | if test "$cross_compiling" = yes; then | |
11865 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 11866 | else |
21d1c967 | 11867 | cat > conftest.$ac_ext <<EOF |
43d99b6d | 11868 | #line 11869 "configure" |
f79bd02d | 11869 | #include "confdefs.h" |
f79bd02d | 11870 | |
21d1c967 GD |
11871 | #include <gtk/gtk.h> |
11872 | #include <stdio.h> | |
11873 | #include <stdlib.h> | |
f79bd02d | 11874 | |
21d1c967 GD |
11875 | int |
11876 | main () | |
11877 | { | |
11878 | int major, minor, micro; | |
11879 | char *tmp_version; | |
f79bd02d | 11880 | |
21d1c967 | 11881 | system ("touch conf.gtktest"); |
f79bd02d | 11882 | |
21d1c967 GD |
11883 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
11884 | tmp_version = g_strdup("$min_gtk_version"); | |
11885 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
11886 | printf("%s, bad version string\n", "$min_gtk_version"); | |
11887 | exit(1); | |
11888 | } | |
f79bd02d | 11889 | |
21d1c967 GD |
11890 | if ((gtk_major_version != $gtk_config_major_version) || |
11891 | (gtk_minor_version != $gtk_config_minor_version) || | |
11892 | (gtk_micro_version != $gtk_config_micro_version)) | |
11893 | { | |
11894 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
11895 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
11896 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
11897 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
11898 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
11899 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
11900 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
11901 | printf("*** required on your system.\n"); | |
11902 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
11903 | printf("*** to point to the correct configuration files\n"); | |
11904 | } | |
11905 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
11906 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
11907 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
11908 | { | |
11909 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
11910 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
11911 | printf("*** library (version %d.%d.%d)\n", | |
11912 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
11913 | } | |
11914 | else | |
11915 | { | |
11916 | if ((gtk_major_version > major) || | |
11917 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
11918 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
11919 | { | |
11920 | return 0; | |
11921 | } | |
11922 | else | |
11923 | { | |
11924 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
11925 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
11926 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
11927 | major, minor, micro); | |
11928 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
11929 | printf("***\n"); | |
11930 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
11931 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
11932 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
11933 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
11934 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
11935 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
11936 | printf("*** so that the correct libraries are found at run-time))\n"); | |
11937 | } | |
11938 | } | |
11939 | return 1; | |
11940 | } | |
f79bd02d | 11941 | |
f79bd02d | 11942 | EOF |
43d99b6d | 11943 | if { (eval echo configure:11944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
21d1c967 GD |
11944 | then |
11945 | : | |
f79bd02d JS |
11946 | else |
11947 | echo "configure: failed program was:" >&5 | |
11948 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
11949 | rm -fr conftest* |
11950 | no_gtk=yes | |
f79bd02d | 11951 | fi |
21d1c967 | 11952 | rm -fr conftest* |
f79bd02d JS |
11953 | fi |
11954 | ||
21d1c967 GD |
11955 | CFLAGS="$ac_save_CFLAGS" |
11956 | LIBS="$ac_save_LIBS" | |
11957 | fi | |
11958 | fi | |
11959 | if test "x$no_gtk" = x ; then | |
11960 | echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6 | |
11961 | wx_cv_lib_gtk=2.0 | |
11962 | else | |
11963 | echo "$ac_t""no" 1>&6 | |
11964 | if test "$PKG_CONFIG" = "no" ; then | |
11965 | echo "*** A new enough version of pkg-config was not found." | |
11966 | echo "*** See http://pkgconfig.sourceforge.net" | |
11967 | else | |
11968 | if test -f conf.gtktest ; then | |
11969 | : | |
11970 | else | |
11971 | echo "*** Could not run GTK+ test program, checking why..." | |
11972 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
11973 | LIBS="$LIBS $GTK_LIBS" | |
11974 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 11975 | #line 11976 "configure" |
f79bd02d | 11976 | #include "confdefs.h" |
21d1c967 GD |
11977 | |
11978 | #include <gtk/gtk.h> | |
11979 | #include <stdio.h> | |
f79bd02d JS |
11980 | |
11981 | int main() { | |
21d1c967 | 11982 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); |
f79bd02d JS |
11983 | ; return 0; } |
11984 | EOF | |
43d99b6d | 11985 | if { (eval echo configure:11986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d | 11986 | rm -rf conftest* |
21d1c967 GD |
11987 | echo "*** The test program compiled, but did not run. This usually means" |
11988 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
11989 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
11990 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
11991 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
11992 | echo "*** is required on your system" | |
11993 | echo "***" | |
11994 | echo "*** If you have an old version installed, it is best to remove it, although" | |
11995 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
f79bd02d JS |
11996 | else |
11997 | echo "configure: failed program was:" >&5 | |
11998 | cat conftest.$ac_ext >&5 | |
11999 | rm -rf conftest* | |
21d1c967 GD |
12000 | echo "*** The test program failed to compile or link. See the file config.log for the" |
12001 | echo "*** exact error that occured. This usually means GTK+ was incorrectly installed" | |
12002 | echo "*** or that you have moved GTK+ since it was installed. In the latter case, you" | |
12003 | echo "*** may want to edit the pkg-config script: $PKG_CONFIG" | |
f79bd02d JS |
12004 | fi |
12005 | rm -f conftest* | |
21d1c967 GD |
12006 | CFLAGS="$ac_save_CFLAGS" |
12007 | LIBS="$ac_save_LIBS" | |
12008 | fi | |
12009 | fi | |
12010 | GTK_CFLAGS="" | |
12011 | GTK_LIBS="" | |
12012 | : | |
12013 | fi | |
12014 | ||
12015 | ||
12016 | rm -f conf.gtktest | |
f79bd02d | 12017 | |
21d1c967 | 12018 | fi |
f79bd02d | 12019 | |
21d1c967 GD |
12020 | if test -z "$wx_cv_lib_gtk"; then |
12021 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
12022 | if test "${with_gtk_prefix+set}" = set; then | |
12023 | withval="$with_gtk_prefix" | |
12024 | gtk_config_prefix="$withval" | |
12025 | else | |
12026 | gtk_config_prefix="" | |
12027 | fi | |
f79bd02d | 12028 | |
21d1c967 GD |
12029 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
12030 | if test "${with_gtk_exec_prefix+set}" = set; then | |
12031 | withval="$with_gtk_exec_prefix" | |
12032 | gtk_config_exec_prefix="$withval" | |
12033 | else | |
12034 | gtk_config_exec_prefix="" | |
12035 | fi | |
12036 | ||
12037 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
12038 | if test "${enable_gtktest+set}" = set; then | |
12039 | enableval="$enable_gtktest" | |
12040 | : | |
12041 | else | |
12042 | enable_gtktest=yes | |
12043 | fi | |
12044 | ||
12045 | ||
12046 | for module in . $GTK_MODULES | |
12047 | do | |
12048 | case "$module" in | |
12049 | gthread) | |
12050 | gtk_config_args="$gtk_config_args gthread" | |
12051 | ;; | |
12052 | esac | |
12053 | done | |
12054 | ||
12055 | if test x$gtk_config_exec_prefix != x ; then | |
12056 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
12057 | if test x${GTK_CONFIG+set} != xset ; then | |
12058 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
12059 | fi | |
12060 | fi | |
12061 | if test x$gtk_config_prefix != x ; then | |
12062 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
12063 | if test x${GTK_CONFIG+set} != xset ; then | |
12064 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
12065 | fi | |
12066 | fi | |
12067 | ||
12068 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
12069 | set dummy gtk-config; ac_word=$2 | |
12070 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
43d99b6d | 12071 | echo "configure:12072: checking for $ac_word" >&5 |
21d1c967 | 12072 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
f79bd02d | 12073 | echo $ac_n "(cached) $ac_c" 1>&6 |
21d1c967 GD |
12074 | else |
12075 | case "$GTK_CONFIG" in | |
12076 | /*) | |
12077 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
12078 | ;; | |
12079 | ?:/*) | |
12080 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
12081 | ;; | |
12082 | *) | |
12083 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
12084 | ac_dummy="$PATH" | |
12085 | for ac_dir in $ac_dummy; do | |
12086 | test -z "$ac_dir" && ac_dir=. | |
12087 | if test -f $ac_dir/$ac_word; then | |
12088 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
12089 | break | |
12090 | fi | |
12091 | done | |
12092 | IFS="$ac_save_ifs" | |
12093 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
12094 | ;; | |
12095 | esac | |
12096 | fi | |
12097 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" | |
12098 | if test -n "$GTK_CONFIG"; then | |
12099 | echo "$ac_t""$GTK_CONFIG" 1>&6 | |
12100 | else | |
12101 | echo "$ac_t""no" 1>&6 | |
12102 | fi | |
12103 | ||
12104 | min_gtk_version=1.2.7 | |
12105 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 | |
43d99b6d | 12106 | echo "configure:12107: checking for GTK - version >= $min_gtk_version" >&5 |
21d1c967 GD |
12107 | no_gtk="" |
12108 | if test "$GTK_CONFIG" = "no" ; then | |
12109 | no_gtk=yes | |
12110 | else | |
12111 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
12112 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
12113 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12114 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
12115 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12116 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
12117 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12118 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
12119 | if test "x$enable_gtktest" = "xyes" ; then | |
12120 | ac_save_CFLAGS="$CFLAGS" | |
12121 | ac_save_LIBS="$LIBS" | |
12122 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12123 | LIBS="$GTK_LIBS $LIBS" | |
12124 | rm -f conf.gtktest | |
12125 | if test "$cross_compiling" = yes; then | |
12126 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 12127 | else |
90dd450c | 12128 | cat > conftest.$ac_ext <<EOF |
43d99b6d | 12129 | #line 12130 "configure" |
f79bd02d JS |
12130 | #include "confdefs.h" |
12131 | ||
21d1c967 GD |
12132 | #include <gtk/gtk.h> |
12133 | #include <stdio.h> | |
12134 | #include <stdlib.h> | |
f79bd02d | 12135 | |
21d1c967 GD |
12136 | int |
12137 | main () | |
12138 | { | |
12139 | int major, minor, micro; | |
12140 | char *tmp_version; | |
12141 | ||
12142 | system ("touch conf.gtktest"); | |
12143 | ||
12144 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
12145 | tmp_version = g_strdup("$min_gtk_version"); | |
12146 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
12147 | printf("%s, bad version string\n", "$min_gtk_version"); | |
12148 | exit(1); | |
12149 | } | |
90dd450c | 12150 | |
21d1c967 GD |
12151 | if ((gtk_major_version != $gtk_config_major_version) || |
12152 | (gtk_minor_version != $gtk_config_minor_version) || | |
12153 | (gtk_micro_version != $gtk_config_micro_version)) | |
12154 | { | |
12155 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
12156 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
12157 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12158 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
12159 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
12160 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
12161 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
12162 | printf("*** required on your system.\n"); | |
12163 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
12164 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
12165 | printf("*** before re-running configure\n"); | |
12166 | } | |
12167 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
12168 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
12169 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
12170 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
12171 | { | |
12172 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
12173 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
12174 | printf("*** library (version %d.%d.%d)\n", | |
12175 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12176 | } | |
12177 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
12178 | else | |
12179 | { | |
12180 | if ((gtk_major_version > major) || | |
12181 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
12182 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
12183 | { | |
12184 | return 0; | |
12185 | } | |
12186 | else | |
12187 | { | |
12188 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
12189 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12190 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
12191 | major, minor, micro); | |
12192 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
12193 | printf("***\n"); | |
12194 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
12195 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
12196 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
12197 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
12198 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
12199 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
12200 | printf("*** so that the correct libraries are found at run-time))\n"); | |
12201 | } | |
12202 | } | |
12203 | return 1; | |
12204 | } | |
12205 | ||
12206 | EOF | |
43d99b6d | 12207 | if { (eval echo configure:12208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
21d1c967 GD |
12208 | then |
12209 | : | |
12210 | else | |
12211 | echo "configure: failed program was:" >&5 | |
12212 | cat conftest.$ac_ext >&5 | |
12213 | rm -fr conftest* | |
12214 | no_gtk=yes | |
12215 | fi | |
12216 | rm -fr conftest* | |
12217 | fi | |
12218 | ||
12219 | CFLAGS="$ac_save_CFLAGS" | |
12220 | LIBS="$ac_save_LIBS" | |
12221 | fi | |
12222 | fi | |
12223 | if test "x$no_gtk" = x ; then | |
12224 | echo "$ac_t""yes" 1>&6 | |
12225 | wx_cv_lib_gtk=1.2.7 | |
12226 | else | |
12227 | echo "$ac_t""no" 1>&6 | |
12228 | if test "$GTK_CONFIG" = "no" ; then | |
12229 | echo "*** The gtk-config script installed by GTK could not be found" | |
12230 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
12231 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
12232 | echo "*** full path to gtk-config." | |
12233 | else | |
12234 | if test -f conf.gtktest ; then | |
12235 | : | |
12236 | else | |
12237 | echo "*** Could not run GTK test program, checking why..." | |
12238 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12239 | LIBS="$LIBS $GTK_LIBS" | |
12240 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 12241 | #line 12242 "configure" |
21d1c967 GD |
12242 | #include "confdefs.h" |
12243 | ||
12244 | #include <gtk/gtk.h> | |
12245 | #include <stdio.h> | |
12246 | ||
12247 | int main() { | |
12248 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
f79bd02d JS |
12249 | ; return 0; } |
12250 | EOF | |
43d99b6d | 12251 | if { (eval echo configure:12252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d | 12252 | rm -rf conftest* |
21d1c967 GD |
12253 | echo "*** The test program compiled, but did not run. This usually means" |
12254 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
12255 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
12256 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
12257 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
12258 | echo "*** is required on your system" | |
12259 | echo "***" | |
12260 | echo "*** If you have an old version installed, it is best to remove it, although" | |
12261 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
12262 | echo "***" | |
12263 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
12264 | echo "*** came with the system with the command" | |
12265 | echo "***" | |
12266 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
f79bd02d JS |
12267 | else |
12268 | echo "configure: failed program was:" >&5 | |
12269 | cat conftest.$ac_ext >&5 | |
12270 | rm -rf conftest* | |
21d1c967 GD |
12271 | echo "*** The test program failed to compile or link. See the file config.log for the" |
12272 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
12273 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
12274 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
f79bd02d JS |
12275 | fi |
12276 | rm -f conftest* | |
21d1c967 GD |
12277 | CFLAGS="$ac_save_CFLAGS" |
12278 | LIBS="$ac_save_LIBS" | |
12279 | fi | |
12280 | fi | |
12281 | GTK_CFLAGS="" | |
12282 | GTK_LIBS="" | |
12283 | : | |
12284 | fi | |
12285 | ||
12286 | ||
12287 | rm -f conf.gtktest | |
12288 | ||
12289 | fi | |
12290 | ||
12291 | if test -z "$wx_cv_lib_gtk"; then | |
12292 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
12293 | if test "${with_gtk_prefix+set}" = set; then | |
12294 | withval="$with_gtk_prefix" | |
12295 | gtk_config_prefix="$withval" | |
12296 | else | |
12297 | gtk_config_prefix="" | |
90dd450c | 12298 | fi |
f79bd02d | 12299 | |
21d1c967 GD |
12300 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
12301 | if test "${with_gtk_exec_prefix+set}" = set; then | |
12302 | withval="$with_gtk_exec_prefix" | |
12303 | gtk_config_exec_prefix="$withval" | |
12304 | else | |
12305 | gtk_config_exec_prefix="" | |
12306 | fi | |
12307 | ||
12308 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
12309 | if test "${enable_gtktest+set}" = set; then | |
12310 | enableval="$enable_gtktest" | |
90dd450c VZ |
12311 | : |
12312 | else | |
21d1c967 | 12313 | enable_gtktest=yes |
90dd450c | 12314 | fi |
f79bd02d | 12315 | |
21d1c967 GD |
12316 | |
12317 | for module in . $GTK_MODULES | |
12318 | do | |
12319 | case "$module" in | |
12320 | gthread) | |
12321 | gtk_config_args="$gtk_config_args gthread" | |
12322 | ;; | |
12323 | esac | |
12324 | done | |
12325 | ||
12326 | if test x$gtk_config_exec_prefix != x ; then | |
12327 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
12328 | if test x${GTK_CONFIG+set} != xset ; then | |
12329 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
12330 | fi | |
12331 | fi | |
12332 | if test x$gtk_config_prefix != x ; then | |
12333 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
12334 | if test x${GTK_CONFIG+set} != xset ; then | |
12335 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
12336 | fi | |
12337 | fi | |
12338 | ||
12339 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
12340 | set dummy gtk-config; ac_word=$2 | |
12341 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
43d99b6d | 12342 | echo "configure:12343: checking for $ac_word" >&5 |
21d1c967 | 12343 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
90dd450c VZ |
12344 | echo $ac_n "(cached) $ac_c" 1>&6 |
12345 | else | |
21d1c967 GD |
12346 | case "$GTK_CONFIG" in |
12347 | /*) | |
12348 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
12349 | ;; | |
12350 | ?:/*) | |
12351 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
12352 | ;; | |
12353 | *) | |
12354 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
12355 | ac_dummy="$PATH" | |
12356 | for ac_dir in $ac_dummy; do | |
12357 | test -z "$ac_dir" && ac_dir=. | |
12358 | if test -f $ac_dir/$ac_word; then | |
12359 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
12360 | break | |
12361 | fi | |
12362 | done | |
12363 | IFS="$ac_save_ifs" | |
12364 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
12365 | ;; | |
12366 | esac | |
12367 | fi | |
12368 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" | |
12369 | if test -n "$GTK_CONFIG"; then | |
12370 | echo "$ac_t""$GTK_CONFIG" 1>&6 | |
12371 | else | |
12372 | echo "$ac_t""no" 1>&6 | |
12373 | fi | |
12374 | ||
12375 | min_gtk_version=1.2.3 | |
12376 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 | |
43d99b6d | 12377 | echo "configure:12378: checking for GTK - version >= $min_gtk_version" >&5 |
21d1c967 GD |
12378 | no_gtk="" |
12379 | if test "$GTK_CONFIG" = "no" ; then | |
12380 | no_gtk=yes | |
12381 | else | |
12382 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
12383 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
12384 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12385 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
12386 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12387 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
12388 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12389 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
12390 | if test "x$enable_gtktest" = "xyes" ; then | |
12391 | ac_save_CFLAGS="$CFLAGS" | |
12392 | ac_save_LIBS="$LIBS" | |
12393 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12394 | LIBS="$GTK_LIBS $LIBS" | |
12395 | rm -f conf.gtktest | |
12396 | if test "$cross_compiling" = yes; then | |
12397 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
12398 | else | |
12399 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 12400 | #line 12401 "configure" |
f79bd02d | 12401 | #include "confdefs.h" |
21d1c967 GD |
12402 | |
12403 | #include <gtk/gtk.h> | |
12404 | #include <stdio.h> | |
12405 | #include <stdlib.h> | |
12406 | ||
12407 | int | |
12408 | main () | |
12409 | { | |
12410 | int major, minor, micro; | |
12411 | char *tmp_version; | |
12412 | ||
12413 | system ("touch conf.gtktest"); | |
12414 | ||
12415 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
12416 | tmp_version = g_strdup("$min_gtk_version"); | |
12417 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
12418 | printf("%s, bad version string\n", "$min_gtk_version"); | |
12419 | exit(1); | |
12420 | } | |
12421 | ||
12422 | if ((gtk_major_version != $gtk_config_major_version) || | |
12423 | (gtk_minor_version != $gtk_config_minor_version) || | |
12424 | (gtk_micro_version != $gtk_config_micro_version)) | |
12425 | { | |
12426 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
12427 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
12428 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12429 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
12430 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
12431 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
12432 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
12433 | printf("*** required on your system.\n"); | |
12434 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
12435 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
12436 | printf("*** before re-running configure\n"); | |
12437 | } | |
12438 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
12439 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
12440 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
12441 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
12442 | { | |
12443 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
12444 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
12445 | printf("*** library (version %d.%d.%d)\n", | |
12446 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12447 | } | |
12448 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
12449 | else | |
12450 | { | |
12451 | if ((gtk_major_version > major) || | |
12452 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
12453 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
12454 | { | |
12455 | return 0; | |
12456 | } | |
12457 | else | |
12458 | { | |
12459 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
12460 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12461 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
12462 | major, minor, micro); | |
12463 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
12464 | printf("***\n"); | |
12465 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
12466 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
12467 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
12468 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
12469 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
12470 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
12471 | printf("*** so that the correct libraries are found at run-time))\n"); | |
12472 | } | |
12473 | } | |
12474 | return 1; | |
12475 | } | |
12476 | ||
12477 | EOF | |
43d99b6d | 12478 | if { (eval echo configure:12479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
21d1c967 GD |
12479 | then |
12480 | : | |
12481 | else | |
12482 | echo "configure: failed program was:" >&5 | |
12483 | cat conftest.$ac_ext >&5 | |
12484 | rm -fr conftest* | |
12485 | no_gtk=yes | |
12486 | fi | |
12487 | rm -fr conftest* | |
12488 | fi | |
12489 | ||
12490 | CFLAGS="$ac_save_CFLAGS" | |
12491 | LIBS="$ac_save_LIBS" | |
12492 | fi | |
12493 | fi | |
12494 | if test "x$no_gtk" = x ; then | |
12495 | echo "$ac_t""yes" 1>&6 | |
12496 | wx_cv_lib_gtk=1.2.3 | |
12497 | else | |
12498 | echo "$ac_t""no" 1>&6 | |
12499 | if test "$GTK_CONFIG" = "no" ; then | |
12500 | echo "*** The gtk-config script installed by GTK could not be found" | |
12501 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
12502 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
12503 | echo "*** full path to gtk-config." | |
12504 | else | |
12505 | if test -f conf.gtktest ; then | |
12506 | : | |
12507 | else | |
12508 | echo "*** Could not run GTK test program, checking why..." | |
12509 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12510 | LIBS="$LIBS $GTK_LIBS" | |
12511 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 12512 | #line 12513 "configure" |
21d1c967 GD |
12513 | #include "confdefs.h" |
12514 | ||
12515 | #include <gtk/gtk.h> | |
12516 | #include <stdio.h> | |
f79bd02d | 12517 | |
f79bd02d | 12518 | int main() { |
21d1c967 | 12519 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); |
f79bd02d JS |
12520 | ; return 0; } |
12521 | EOF | |
43d99b6d | 12522 | if { (eval echo configure:12523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d | 12523 | rm -rf conftest* |
21d1c967 GD |
12524 | echo "*** The test program compiled, but did not run. This usually means" |
12525 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
12526 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
12527 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
12528 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
12529 | echo "*** is required on your system" | |
12530 | echo "***" | |
12531 | echo "*** If you have an old version installed, it is best to remove it, although" | |
12532 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
12533 | echo "***" | |
12534 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
12535 | echo "*** came with the system with the command" | |
12536 | echo "***" | |
12537 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
f79bd02d JS |
12538 | else |
12539 | echo "configure: failed program was:" >&5 | |
12540 | cat conftest.$ac_ext >&5 | |
12541 | rm -rf conftest* | |
21d1c967 GD |
12542 | echo "*** The test program failed to compile or link. See the file config.log for the" |
12543 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
12544 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
12545 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
f79bd02d JS |
12546 | fi |
12547 | rm -f conftest* | |
21d1c967 GD |
12548 | CFLAGS="$ac_save_CFLAGS" |
12549 | LIBS="$ac_save_LIBS" | |
12550 | fi | |
12551 | fi | |
12552 | GTK_CFLAGS="" | |
12553 | GTK_LIBS="" | |
12554 | : | |
12555 | fi | |
12556 | ||
12557 | ||
12558 | rm -f conf.gtktest | |
f79bd02d | 12559 | |
21d1c967 GD |
12560 | fi |
12561 | ||
12562 | if test -z "$wx_cv_lib_gtk"; then | |
12563 | wx_cv_lib_gtk=none | |
12564 | else | |
12565 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
12566 | wx_cv_libs_gtk=$GTK_LIBS | |
12567 | fi | |
12568 | ||
12569 | ||
90dd450c | 12570 | fi |
b4085ce6 | 12571 | |
e07802fc | 12572 | |
21d1c967 GD |
12573 | if test "$gtk_version_cached" = 1; then |
12574 | echo "$ac_t""$wx_cv_lib_gtk" 1>&6 | |
12575 | fi | |
12576 | ||
12577 | case "$wx_cv_lib_gtk" in | |
12578 | 2.0) WXGTK20=1 | |
12579 | ;; | |
12580 | 1.2.7) WXGTK127=1 | |
12581 | WXGTK12=1 | |
12582 | ;; | |
12583 | 1.2.3) WXGTK12=1 | |
12584 | ;; | |
12585 | *) { echo "configure: error: | |
12586 | Please check that gtk-config is in path, the directory | |
12587 | where GTK+ libraries are installed (returned by | |
12588 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
12589 | equivalent variable and GTK+ is version 1.2.3 or above. | |
12590 | " 1>&2; exit 1; } | |
12591 | ;; | |
12592 | esac | |
12593 | ||
12594 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" | |
12595 | GUI_TK_LIBRARY="$wx_cv_libs_gtk" | |
12596 | ||
12597 | AFMINSTALL=afminstall | |
12598 | TOOLKIT=GTK | |
12599 | GUIDIST=GTK_DIST | |
12600 | ||
12601 | echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6 | |
43d99b6d | 12602 | echo "configure:12603: checking for gdk_im_open in -lgdk" >&5 |
21d1c967 | 12603 | ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'` |
90dd450c VZ |
12604 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
12605 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12606 | else | |
12607 | ac_save_LIBS="$LIBS" | |
21d1c967 | 12608 | LIBS="-lgdk $LIBS" |
90dd450c | 12609 | cat > conftest.$ac_ext <<EOF |
43d99b6d | 12610 | #line 12611 "configure" |
90dd450c VZ |
12611 | #include "confdefs.h" |
12612 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12613 | /* We use char because int might match the return type of a gcc2 | |
12614 | builtin and then its argument prototype would still apply. */ | |
21d1c967 | 12615 | char gdk_im_open(); |
9b695262 | 12616 | |
90dd450c | 12617 | int main() { |
21d1c967 | 12618 | gdk_im_open() |
90dd450c VZ |
12619 | ; return 0; } |
12620 | EOF | |
43d99b6d | 12621 | if { (eval echo configure:12622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
12622 | rm -rf conftest* |
12623 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12624 | else | |
12625 | echo "configure: failed program was:" >&5 | |
12626 | cat conftest.$ac_ext >&5 | |
12627 | rm -rf conftest* | |
12628 | eval "ac_cv_lib_$ac_lib_var=no" | |
12629 | fi | |
12630 | rm -f conftest* | |
12631 | LIBS="$ac_save_LIBS" | |
9b695262 | 12632 | |
90dd450c VZ |
12633 | fi |
12634 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12635 | echo "$ac_t""yes" 1>&6 | |
21d1c967 GD |
12636 | cat >> confdefs.h <<\EOF |
12637 | #define HAVE_XIM 1 | |
12638 | EOF | |
12639 | ||
90dd450c VZ |
12640 | else |
12641 | echo "$ac_t""no" 1>&6 | |
12642 | fi | |
1e6feb95 | 12643 | |
21d1c967 | 12644 | fi |
1e6feb95 | 12645 | |
21d1c967 GD |
12646 | if test "$wxUSE_MGL" = 1; then |
12647 | echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6 | |
43d99b6d | 12648 | echo "configure:12649: checking for SciTech MGL library" >&5 |
21d1c967 GD |
12649 | if test "x$MGL_ROOT" = x ; then |
12650 | echo "$ac_t""not found" 1>&6 | |
12651 | { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; } | |
12652 | else | |
12653 | echo "$ac_t""$MGL_ROOT" 1>&6 | |
12654 | fi | |
12655 | ||
12656 | case "${host}" in | |
12657 | *-*-linux* ) | |
12658 | mgl_os=linux/gcc/glibc | |
12659 | ;; | |
12660 | *-pc-msdosdjgpp ) | |
12661 | mgl_os=dos32/dj2 | |
12662 | ;; | |
12663 | *) | |
12664 | { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; } | |
12665 | esac | |
1e6feb95 | 12666 | |
21d1c967 | 12667 | mgl_lib_type="" |
3fcdd07b | 12668 | |
21d1c967 GD |
12669 | if test "$wxUSE_DEBUG_FLAG" = yes ; then |
12670 | if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \ | |
12671 | -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then | |
12672 | mgl_lib_type=debug | |
12673 | fi | |
12674 | fi | |
12675 | if test "x$mgl_lib_type" = x ; then | |
12676 | if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \ | |
12677 | -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then | |
12678 | mgl_lib_type=release | |
12679 | else | |
12680 | { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; } | |
12681 | fi | |
90dd450c | 12682 | fi |
2224580a | 12683 | |
1d1b75ac VZ |
12684 | wxUSE_UNIVERSAL="yes" |
12685 | ||
21d1c967 GD |
12686 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" |
12687 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
12688 | ||
90dd450c | 12689 | AFMINSTALL=afminstall |
21d1c967 GD |
12690 | TOOLKIT=MGL |
12691 | GUIDIST=MGL_DIST | |
12692 | fi | |
dad6c0ea | 12693 | |
21d1c967 GD |
12694 | if test "$wxUSE_MICROWIN" = 1; then |
12695 | echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6 | |
43d99b6d | 12696 | echo "configure:12697: checking for MicroWindows" >&5 |
21d1c967 GD |
12697 | if test "x$MICROWINDOWS" = x ; then |
12698 | echo "$ac_t""not found" 1>&6 | |
12699 | { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; } | |
12700 | else | |
12701 | echo "$ac_t""$MICROWINDOWS" 1>&6 | |
12702 | fi | |
f6bcfd97 | 12703 | |
21d1c967 GD |
12704 | if test -f $MICROWINDOWS/lib/libmwin.a; then |
12705 | echo "$ac_t""MicroWindows' libraries found." 1>&6 | |
12706 | else | |
12707 | { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; } | |
90dd450c | 12708 | fi |
0b2effe9 | 12709 | |
21d1c967 GD |
12710 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" |
12711 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
12712 | ||
1d1b75ac VZ |
12713 | wxUSE_UNIVERSAL="yes" |
12714 | ||
21d1c967 GD |
12715 | AFMINSTALL=afminstall |
12716 | TOOLKIT=MICROWIN | |
12717 | GUIDIST=MICROWIN_DIST | |
1d1b75ac VZ |
12718 | |
12719 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
21d1c967 | 12720 | fi |
f6bcfd97 | 12721 | |
21d1c967 GD |
12722 | if test "$wxUSE_X11" = 1; then |
12723 | # If we find X, set shell vars x_includes and x_libraries to the | |
12724 | # paths, otherwise set no_x=yes. | |
12725 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
12726 | # --without-x overrides everything else, but does not touch the cache. | |
12727 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
43d99b6d | 12728 | echo "configure:12729: checking for X" >&5 |
d8356fa3 | 12729 | |
21d1c967 GD |
12730 | # Check whether --with-x or --without-x was given. |
12731 | if test "${with_x+set}" = set; then | |
12732 | withval="$with_x" | |
12733 | : | |
12734 | fi | |
2224580a | 12735 | |
21d1c967 GD |
12736 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
12737 | if test "x$with_x" = xno; then | |
12738 | # The user explicitly disabled X. | |
12739 | have_x=disabled | |
12740 | else | |
12741 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
12742 | # Both variables are already set. | |
12743 | have_x=yes | |
12744 | else | |
12745 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then | |
12746 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12747 | else | |
12748 | # One or both of the vars are not set, and there is no cached value. | |
12749 | ac_x_includes=NO ac_x_libraries=NO | |
12750 | rm -fr conftestdir | |
12751 | if mkdir conftestdir; then | |
12752 | cd conftestdir | |
12753 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
12754 | cat > Imakefile <<'EOF' | |
12755 | acfindx: | |
12756 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
12757 | EOF | |
12758 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
12759 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
12760 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
12761 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
12762 | for ac_extension in a so sl; do | |
12763 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
12764 | test -f $ac_im_libdir/libX11.$ac_extension; then | |
12765 | ac_im_usrlibdir=$ac_im_libdir; break | |
12766 | fi | |
12767 | done | |
12768 | # Screen out bogus values from the imake configuration. They are | |
12769 | # bogus both because they are the default anyway, and because | |
12770 | # using them would break gcc on systems where it needs fixed includes. | |
12771 | case "$ac_im_incroot" in | |
12772 | /usr/include) ;; | |
12773 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; | |
12774 | esac | |
12775 | case "$ac_im_usrlibdir" in | |
12776 | /usr/lib | /lib) ;; | |
12777 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; | |
12778 | esac | |
12779 | fi | |
12780 | cd .. | |
12781 | rm -fr conftestdir | |
12782 | fi | |
10f2d63a | 12783 | |
21d1c967 GD |
12784 | if test "$ac_x_includes" = NO; then |
12785 | # Guess where to find include files, by looking for this one X11 .h file. | |
12786 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
e45387bf | 12787 | |
21d1c967 GD |
12788 | # First, try using that file with no special directory specified. |
12789 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 12790 | #line 12791 "configure" |
21d1c967 GD |
12791 | #include "confdefs.h" |
12792 | #include <$x_direct_test_include> | |
90dd450c | 12793 | EOF |
21d1c967 | 12794 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
43d99b6d | 12795 | { (eval echo configure:12796: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
12796 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12797 | if test -z "$ac_err"; then | |
90dd450c | 12798 | rm -rf conftest* |
21d1c967 GD |
12799 | # We can compile using X headers with no special include directory. |
12800 | ac_x_includes= | |
90dd450c | 12801 | else |
21d1c967 | 12802 | echo "$ac_err" >&5 |
90dd450c VZ |
12803 | echo "configure: failed program was:" >&5 |
12804 | cat conftest.$ac_ext >&5 | |
12805 | rm -rf conftest* | |
21d1c967 GD |
12806 | # Look for the header file in a standard set of common directories. |
12807 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
12808 | for ac_dir in \ | |
12809 | /usr/X11/include \ | |
12810 | /usr/X11R6/include \ | |
12811 | /usr/X11R5/include \ | |
12812 | /usr/X11R4/include \ | |
12813 | \ | |
12814 | /usr/include/X11 \ | |
12815 | /usr/include/X11R6 \ | |
12816 | /usr/include/X11R5 \ | |
12817 | /usr/include/X11R4 \ | |
12818 | \ | |
12819 | /usr/local/X11/include \ | |
12820 | /usr/local/X11R6/include \ | |
12821 | /usr/local/X11R5/include \ | |
12822 | /usr/local/X11R4/include \ | |
12823 | \ | |
12824 | /usr/local/include/X11 \ | |
12825 | /usr/local/include/X11R6 \ | |
12826 | /usr/local/include/X11R5 \ | |
12827 | /usr/local/include/X11R4 \ | |
12828 | \ | |
12829 | /usr/X386/include \ | |
12830 | /usr/x386/include \ | |
12831 | /usr/XFree86/include/X11 \ | |
12832 | \ | |
12833 | /usr/include \ | |
12834 | /usr/local/include \ | |
12835 | /usr/unsupported/include \ | |
12836 | /usr/athena/include \ | |
12837 | /usr/local/x11r5/include \ | |
12838 | /usr/lpp/Xamples/include \ | |
12839 | \ | |
12840 | /usr/openwin/include \ | |
12841 | /usr/openwin/share/include \ | |
12842 | ; \ | |
12843 | do | |
12844 | if test -r "$ac_dir/$x_direct_test_include"; then | |
12845 | ac_x_includes=$ac_dir | |
12846 | break | |
12847 | fi | |
12848 | done | |
3a922bb4 | 12849 | fi |
90dd450c | 12850 | rm -f conftest* |
21d1c967 | 12851 | fi # $ac_x_includes = NO |
10f2d63a | 12852 | |
21d1c967 GD |
12853 | if test "$ac_x_libraries" = NO; then |
12854 | # Check for the libraries. | |
be505a65 | 12855 | |
21d1c967 GD |
12856 | test -z "$x_direct_test_library" && x_direct_test_library=Xt |
12857 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
90dd450c | 12858 | |
21d1c967 GD |
12859 | # See if we find them without any special options. |
12860 | # Don't add to $LIBS permanently. | |
12861 | ac_save_LIBS="$LIBS" | |
12862 | LIBS="-l$x_direct_test_library $LIBS" | |
12863 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 12864 | #line 12865 "configure" |
3a922bb4 | 12865 | #include "confdefs.h" |
21d1c967 GD |
12866 | |
12867 | int main() { | |
12868 | ${x_direct_test_function}() | |
12869 | ; return 0; } | |
3a922bb4 | 12870 | EOF |
43d99b6d | 12871 | if { (eval echo configure:12872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3a922bb4 | 12872 | rm -rf conftest* |
21d1c967 GD |
12873 | LIBS="$ac_save_LIBS" |
12874 | # We can link X programs with no special library path. | |
12875 | ac_x_libraries= | |
3a922bb4 | 12876 | else |
3a922bb4 RL |
12877 | echo "configure: failed program was:" >&5 |
12878 | cat conftest.$ac_ext >&5 | |
12879 | rm -rf conftest* | |
21d1c967 GD |
12880 | LIBS="$ac_save_LIBS" |
12881 | # First see if replacing the include by lib works. | |
12882 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
12883 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
12884 | /usr/X11/lib \ | |
12885 | /usr/X11R6/lib \ | |
12886 | /usr/X11R5/lib \ | |
12887 | /usr/X11R4/lib \ | |
12888 | \ | |
12889 | /usr/lib/X11 \ | |
12890 | /usr/lib/X11R6 \ | |
12891 | /usr/lib/X11R5 \ | |
12892 | /usr/lib/X11R4 \ | |
12893 | \ | |
12894 | /usr/local/X11/lib \ | |
12895 | /usr/local/X11R6/lib \ | |
12896 | /usr/local/X11R5/lib \ | |
12897 | /usr/local/X11R4/lib \ | |
12898 | \ | |
12899 | /usr/local/lib/X11 \ | |
12900 | /usr/local/lib/X11R6 \ | |
12901 | /usr/local/lib/X11R5 \ | |
12902 | /usr/local/lib/X11R4 \ | |
12903 | \ | |
12904 | /usr/X386/lib \ | |
12905 | /usr/x386/lib \ | |
12906 | /usr/XFree86/lib/X11 \ | |
12907 | \ | |
12908 | /usr/lib \ | |
12909 | /usr/local/lib \ | |
12910 | /usr/unsupported/lib \ | |
12911 | /usr/athena/lib \ | |
12912 | /usr/local/x11r5/lib \ | |
12913 | /usr/lpp/Xamples/lib \ | |
12914 | /lib/usr/lib/X11 \ | |
12915 | \ | |
12916 | /usr/openwin/lib \ | |
12917 | /usr/openwin/share/lib \ | |
12918 | ; \ | |
12919 | do | |
12920 | for ac_extension in a so sl; do | |
12921 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then | |
12922 | ac_x_libraries=$ac_dir | |
12923 | break 2 | |
12924 | fi | |
12925 | done | |
12926 | done | |
3a922bb4 RL |
12927 | fi |
12928 | rm -f conftest* | |
21d1c967 | 12929 | fi # $ac_x_libraries = NO |
90dd450c | 12930 | |
21d1c967 GD |
12931 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
12932 | # Didn't find X anywhere. Cache the known absence of X. | |
12933 | ac_cv_have_x="have_x=no" | |
12934 | else | |
12935 | # Record where we found X for the cache. | |
12936 | ac_cv_have_x="have_x=yes \ | |
12937 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
90dd450c | 12938 | fi |
21d1c967 GD |
12939 | fi |
12940 | fi | |
12941 | eval "$ac_cv_have_x" | |
12942 | fi # $with_x != no | |
90dd450c | 12943 | |
21d1c967 GD |
12944 | if test "$have_x" != yes; then |
12945 | echo "$ac_t""$have_x" 1>&6 | |
12946 | no_x=yes | |
12947 | else | |
12948 | # If each of the values was on the command line, it overrides each guess. | |
12949 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
12950 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
12951 | # Update the cache value to reflect the command line values. | |
12952 | ac_cv_have_x="have_x=yes \ | |
12953 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
12954 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 | |
12955 | fi | |
90dd450c | 12956 | |
21d1c967 | 12957 | if test "$no_x" = yes; then |
90dd450c VZ |
12958 | # Not all programs may use this symbol, but it does not hurt to define it. |
12959 | cat >> confdefs.h <<\EOF | |
12960 | #define X_DISPLAY_MISSING 1 | |
12961 | EOF | |
12962 | ||
12963 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
12964 | else | |
12965 | if test -n "$x_includes"; then | |
12966 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
62d0491b | 12967 | fi |
3a922bb4 | 12968 | |
90dd450c VZ |
12969 | # It would also be nice to do this for all -L options, not just this one. |
12970 | if test -n "$x_libraries"; then | |
12971 | X_LIBS="$X_LIBS -L$x_libraries" | |
12972 | # For Solaris; some versions of Sun CC require a space after -R and | |
12973 | # others require no space. Words are not sufficient . . . . | |
12974 | case "`(uname -sr) 2>/dev/null`" in | |
12975 | "SunOS 5"*) | |
12976 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 | |
43d99b6d | 12977 | echo "configure:12978: checking whether -R must be followed by a space" >&5 |
90dd450c VZ |
12978 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
12979 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 12980 | #line 12981 "configure" |
90dd450c VZ |
12981 | #include "confdefs.h" |
12982 | ||
12983 | int main() { | |
12984 | ||
12985 | ; return 0; } | |
12986 | EOF | |
43d99b6d | 12987 | if { (eval echo configure:12988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
12988 | rm -rf conftest* |
12989 | ac_R_nospace=yes | |
3a922bb4 | 12990 | else |
90dd450c VZ |
12991 | echo "configure: failed program was:" >&5 |
12992 | cat conftest.$ac_ext >&5 | |
12993 | rm -rf conftest* | |
12994 | ac_R_nospace=no | |
3a922bb4 | 12995 | fi |
90dd450c VZ |
12996 | rm -f conftest* |
12997 | if test $ac_R_nospace = yes; then | |
12998 | echo "$ac_t""no" 1>&6 | |
12999 | X_LIBS="$X_LIBS -R$x_libraries" | |
13000 | else | |
13001 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
13002 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 13003 | #line 13004 "configure" |
90dd450c | 13004 | #include "confdefs.h" |
3a922bb4 | 13005 | |
90dd450c | 13006 | int main() { |
6f754473 | 13007 | |
90dd450c VZ |
13008 | ; return 0; } |
13009 | EOF | |
43d99b6d | 13010 | if { (eval echo configure:13011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
13011 | rm -rf conftest* |
13012 | ac_R_space=yes | |
13013 | else | |
13014 | echo "configure: failed program was:" >&5 | |
13015 | cat conftest.$ac_ext >&5 | |
13016 | rm -rf conftest* | |
13017 | ac_R_space=no | |
13018 | fi | |
13019 | rm -f conftest* | |
13020 | if test $ac_R_space = yes; then | |
13021 | echo "$ac_t""yes" 1>&6 | |
13022 | X_LIBS="$X_LIBS -R $x_libraries" | |
13023 | else | |
13024 | echo "$ac_t""neither works" 1>&6 | |
13025 | fi | |
13026 | fi | |
13027 | LIBS="$ac_xsave_LIBS" | |
13028 | esac | |
13029 | fi | |
13030 | ||
13031 | # Check for system-dependent libraries X programs must link with. | |
13032 | # Do this before checking for the system-independent R6 libraries | |
13033 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
6f754473 | 13034 | |
90dd450c VZ |
13035 | if test "$ISC" = yes; then |
13036 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
13037 | else | |
13038 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X | |
13039 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
13040 | # the Alpha needs dnet_stub (dnet does not exist). | |
13041 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 | |
43d99b6d | 13042 | echo "configure:13043: checking for dnet_ntoa in -ldnet" >&5 |
90dd450c VZ |
13043 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
13044 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13045 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13046 | else | |
13047 | ac_save_LIBS="$LIBS" | |
13048 | LIBS="-ldnet $LIBS" | |
13049 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 13050 | #line 13051 "configure" |
90dd450c VZ |
13051 | #include "confdefs.h" |
13052 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13053 | /* We use char because int might match the return type of a gcc2 | |
13054 | builtin and then its argument prototype would still apply. */ | |
13055 | char dnet_ntoa(); | |
6f754473 | 13056 | |
90dd450c VZ |
13057 | int main() { |
13058 | dnet_ntoa() | |
13059 | ; return 0; } | |
6f754473 | 13060 | EOF |
43d99b6d | 13061 | if { (eval echo configure:13062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
13062 | rm -rf conftest* |
13063 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13064 | else | |
13065 | echo "configure: failed program was:" >&5 | |
13066 | cat conftest.$ac_ext >&5 | |
13067 | rm -rf conftest* | |
13068 | eval "ac_cv_lib_$ac_lib_var=no" | |
3a922bb4 | 13069 | fi |
90dd450c VZ |
13070 | rm -f conftest* |
13071 | LIBS="$ac_save_LIBS" | |
3a922bb4 | 13072 | |
3a922bb4 | 13073 | fi |
90dd450c VZ |
13074 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
13075 | echo "$ac_t""yes" 1>&6 | |
13076 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
13077 | else | |
13078 | echo "$ac_t""no" 1>&6 | |
3a922bb4 RL |
13079 | fi |
13080 | ||
90dd450c VZ |
13081 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
13082 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 | |
43d99b6d | 13083 | echo "configure:13084: checking for dnet_ntoa in -ldnet_stub" >&5 |
90dd450c VZ |
13084 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
13085 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13086 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13087 | else | |
13088 | ac_save_LIBS="$LIBS" | |
13089 | LIBS="-ldnet_stub $LIBS" | |
13090 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 13091 | #line 13092 "configure" |
90dd450c VZ |
13092 | #include "confdefs.h" |
13093 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13094 | /* We use char because int might match the return type of a gcc2 | |
13095 | builtin and then its argument prototype would still apply. */ | |
13096 | char dnet_ntoa(); | |
f676c7ff | 13097 | |
90dd450c VZ |
13098 | int main() { |
13099 | dnet_ntoa() | |
13100 | ; return 0; } | |
13101 | EOF | |
43d99b6d | 13102 | if { (eval echo configure:13103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
13103 | rm -rf conftest* |
13104 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13105 | else | |
13106 | echo "configure: failed program was:" >&5 | |
13107 | cat conftest.$ac_ext >&5 | |
13108 | rm -rf conftest* | |
13109 | eval "ac_cv_lib_$ac_lib_var=no" | |
3a922bb4 | 13110 | fi |
90dd450c VZ |
13111 | rm -f conftest* |
13112 | LIBS="$ac_save_LIBS" | |
3a922bb4 | 13113 | |
90dd450c VZ |
13114 | fi |
13115 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13116 | echo "$ac_t""yes" 1>&6 | |
13117 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
13118 | else | |
13119 | echo "$ac_t""no" 1>&6 | |
3a922bb4 RL |
13120 | fi |
13121 | ||
90dd450c | 13122 | fi |
978f1259 | 13123 | |
90dd450c VZ |
13124 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
13125 | # to get the SysV transport functions. | |
13126 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) | |
13127 | # needs -lnsl. | |
13128 | # The nsl library prevents programs from opening the X display | |
13129 | # on Irix 5.2, according to dickey@clark.net. | |
13130 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
43d99b6d | 13131 | echo "configure:13132: checking for gethostbyname" >&5 |
90dd450c VZ |
13132 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
13133 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13134 | else | |
13135 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 13136 | #line 13137 "configure" |
90dd450c VZ |
13137 | #include "confdefs.h" |
13138 | /* System header to define __stub macros and hopefully few prototypes, | |
13139 | which can conflict with char gethostbyname(); below. */ | |
13140 | #include <assert.h> | |
13141 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13142 | /* We use char because int might match the return type of a gcc2 | |
13143 | builtin and then its argument prototype would still apply. */ | |
13144 | char gethostbyname(); | |
978f1259 | 13145 | |
90dd450c | 13146 | int main() { |
978f1259 | 13147 | |
90dd450c VZ |
13148 | /* The GNU C library defines this for functions which it implements |
13149 | to always fail with ENOSYS. Some functions are actually named | |
13150 | something starting with __ and the normal name is an alias. */ | |
13151 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
13152 | choke me | |
13153 | #else | |
13154 | gethostbyname(); | |
13155 | #endif | |
978f1259 | 13156 | |
90dd450c VZ |
13157 | ; return 0; } |
13158 | EOF | |
43d99b6d | 13159 | if { (eval echo configure:13160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
13160 | rm -rf conftest* |
13161 | eval "ac_cv_func_gethostbyname=yes" | |
13162 | else | |
13163 | echo "configure: failed program was:" >&5 | |
13164 | cat conftest.$ac_ext >&5 | |
13165 | rm -rf conftest* | |
13166 | eval "ac_cv_func_gethostbyname=no" | |
978f1259 | 13167 | fi |
90dd450c | 13168 | rm -f conftest* |
4222829b VS |
13169 | fi |
13170 | ||
90dd450c VZ |
13171 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then |
13172 | echo "$ac_t""yes" 1>&6 | |
13173 | : | |
13174 | else | |
13175 | echo "$ac_t""no" 1>&6 | |
13176 | fi | |
698dcdb6 | 13177 | |
90dd450c VZ |
13178 | if test $ac_cv_func_gethostbyname = no; then |
13179 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 | |
43d99b6d | 13180 | echo "configure:13181: checking for gethostbyname in -lnsl" >&5 |
90dd450c VZ |
13181 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
13182 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13183 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13184 | else | |
13185 | ac_save_LIBS="$LIBS" | |
13186 | LIBS="-lnsl $LIBS" | |
13187 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 13188 | #line 13189 "configure" |
90dd450c VZ |
13189 | #include "confdefs.h" |
13190 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13191 | /* We use char because int might match the return type of a gcc2 | |
13192 | builtin and then its argument prototype would still apply. */ | |
13193 | char gethostbyname(); | |
f6bcfd97 | 13194 | |
90dd450c VZ |
13195 | int main() { |
13196 | gethostbyname() | |
13197 | ; return 0; } | |
13198 | EOF | |
43d99b6d | 13199 | if { (eval echo configure:13200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
13200 | rm -rf conftest* |
13201 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13202 | else | |
13203 | echo "configure: failed program was:" >&5 | |
13204 | cat conftest.$ac_ext >&5 | |
13205 | rm -rf conftest* | |
13206 | eval "ac_cv_lib_$ac_lib_var=no" | |
13207 | fi | |
13208 | rm -f conftest* | |
13209 | LIBS="$ac_save_LIBS" | |
55e80573 | 13210 | |
90dd450c VZ |
13211 | fi |
13212 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13213 | echo "$ac_t""yes" 1>&6 | |
13214 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
13215 | else | |
13216 | echo "$ac_t""no" 1>&6 | |
13217 | fi | |
b12915c1 | 13218 | |
90dd450c VZ |
13219 | fi |
13220 | ||
13221 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
13222 | # socket/setsockopt and other routines are undefined under SCO ODT | |
13223 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
13224 | # on later versions), says simon@lia.di.epfl.ch: it contains | |
13225 | # gethostby* variants that don't use the nameserver (or something). | |
13226 | # -lsocket must be given before -lnsl if both are needed. | |
13227 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
13228 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
43d99b6d | 13229 | echo "configure:13230: checking for connect" >&5 |
90dd450c | 13230 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
55e80573 VZ |
13231 | echo $ac_n "(cached) $ac_c" 1>&6 |
13232 | else | |
90dd450c | 13233 | cat > conftest.$ac_ext <<EOF |
43d99b6d | 13234 | #line 13235 "configure" |
55e80573 | 13235 | #include "confdefs.h" |
90dd450c VZ |
13236 | /* System header to define __stub macros and hopefully few prototypes, |
13237 | which can conflict with char connect(); below. */ | |
13238 | #include <assert.h> | |
13239 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13240 | /* We use char because int might match the return type of a gcc2 | |
13241 | builtin and then its argument prototype would still apply. */ | |
13242 | char connect(); | |
55e80573 VZ |
13243 | |
13244 | int main() { | |
13245 | ||
90dd450c VZ |
13246 | /* The GNU C library defines this for functions which it implements |
13247 | to always fail with ENOSYS. Some functions are actually named | |
13248 | something starting with __ and the normal name is an alias. */ | |
13249 | #if defined (__stub_connect) || defined (__stub___connect) | |
13250 | choke me | |
13251 | #else | |
13252 | connect(); | |
13253 | #endif | |
13254 | ||
55e80573 VZ |
13255 | ; return 0; } |
13256 | EOF | |
43d99b6d | 13257 | if { (eval echo configure:13258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
55e80573 | 13258 | rm -rf conftest* |
90dd450c | 13259 | eval "ac_cv_func_connect=yes" |
55e80573 VZ |
13260 | else |
13261 | echo "configure: failed program was:" >&5 | |
13262 | cat conftest.$ac_ext >&5 | |
13263 | rm -rf conftest* | |
90dd450c | 13264 | eval "ac_cv_func_connect=no" |
55e80573 VZ |
13265 | fi |
13266 | rm -f conftest* | |
55e80573 VZ |
13267 | fi |
13268 | ||
90dd450c VZ |
13269 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then |
13270 | echo "$ac_t""yes" 1>&6 | |
13271 | : | |
13272 | else | |
13273 | echo "$ac_t""no" 1>&6 | |
13274 | fi | |
55e80573 | 13275 | |
90dd450c VZ |
13276 | if test $ac_cv_func_connect = no; then |
13277 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 | |
43d99b6d | 13278 | echo "configure:13279: checking for connect in -lsocket" >&5 |
90dd450c VZ |
13279 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
13280 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13281 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13282 | else | |
13283 | ac_save_LIBS="$LIBS" | |
13284 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
13285 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 13286 | #line 13287 "configure" |
90dd450c VZ |
13287 | #include "confdefs.h" |
13288 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13289 | /* We use char because int might match the return type of a gcc2 | |
13290 | builtin and then its argument prototype would still apply. */ | |
13291 | char connect(); | |
55e80573 | 13292 | |
90dd450c VZ |
13293 | int main() { |
13294 | connect() | |
13295 | ; return 0; } | |
13296 | EOF | |
43d99b6d | 13297 | if { (eval echo configure:13298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
13298 | rm -rf conftest* |
13299 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13300 | else | |
13301 | echo "configure: failed program was:" >&5 | |
13302 | cat conftest.$ac_ext >&5 | |
13303 | rm -rf conftest* | |
13304 | eval "ac_cv_lib_$ac_lib_var=no" | |
13305 | fi | |
13306 | rm -f conftest* | |
13307 | LIBS="$ac_save_LIBS" | |
77e13408 | 13308 | |
90dd450c VZ |
13309 | fi |
13310 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13311 | echo "$ac_t""yes" 1>&6 | |
13312 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
13313 | else | |
13314 | echo "$ac_t""no" 1>&6 | |
13315 | fi | |
77e13408 | 13316 | |
90dd450c | 13317 | fi |
25d0687a | 13318 | |
90dd450c VZ |
13319 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
13320 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
43d99b6d | 13321 | echo "configure:13322: checking for remove" >&5 |
90dd450c VZ |
13322 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
13323 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13324 | else | |
13325 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 13326 | #line 13327 "configure" |
90dd450c VZ |
13327 | #include "confdefs.h" |
13328 | /* System header to define __stub macros and hopefully few prototypes, | |
13329 | which can conflict with char remove(); below. */ | |
13330 | #include <assert.h> | |
13331 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13332 | /* We use char because int might match the return type of a gcc2 | |
13333 | builtin and then its argument prototype would still apply. */ | |
13334 | char remove(); | |
7b7a7637 | 13335 | |
90dd450c | 13336 | int main() { |
55e80573 | 13337 | |
90dd450c VZ |
13338 | /* The GNU C library defines this for functions which it implements |
13339 | to always fail with ENOSYS. Some functions are actually named | |
13340 | something starting with __ and the normal name is an alias. */ | |
13341 | #if defined (__stub_remove) || defined (__stub___remove) | |
13342 | choke me | |
13343 | #else | |
13344 | remove(); | |
13345 | #endif | |
55e80573 | 13346 | |
90dd450c VZ |
13347 | ; return 0; } |
13348 | EOF | |
43d99b6d | 13349 | if { (eval echo configure:13350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
13350 | rm -rf conftest* |
13351 | eval "ac_cv_func_remove=yes" | |
13352 | else | |
13353 | echo "configure: failed program was:" >&5 | |
13354 | cat conftest.$ac_ext >&5 | |
13355 | rm -rf conftest* | |
13356 | eval "ac_cv_func_remove=no" | |
13357 | fi | |
13358 | rm -f conftest* | |
13359 | fi | |
55e80573 | 13360 | |
90dd450c VZ |
13361 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then |
13362 | echo "$ac_t""yes" 1>&6 | |
13363 | : | |
13364 | else | |
13365 | echo "$ac_t""no" 1>&6 | |
13366 | fi | |
10f2d63a | 13367 | |
90dd450c VZ |
13368 | if test $ac_cv_func_remove = no; then |
13369 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 | |
43d99b6d | 13370 | echo "configure:13371: checking for remove in -lposix" >&5 |
90dd450c VZ |
13371 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
13372 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13373 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13374 | else | |
13375 | ac_save_LIBS="$LIBS" | |
13376 | LIBS="-lposix $LIBS" | |
13377 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 13378 | #line 13379 "configure" |
90dd450c VZ |
13379 | #include "confdefs.h" |
13380 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13381 | /* We use char because int might match the return type of a gcc2 | |
13382 | builtin and then its argument prototype would still apply. */ | |
13383 | char remove(); | |
55e80573 | 13384 | |
90dd450c VZ |
13385 | int main() { |
13386 | remove() | |
13387 | ; return 0; } | |
13388 | EOF | |
43d99b6d | 13389 | if { (eval echo configure:13390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
13390 | rm -rf conftest* |
13391 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13392 | else | |
13393 | echo "configure: failed program was:" >&5 | |
13394 | cat conftest.$ac_ext >&5 | |
13395 | rm -rf conftest* | |
13396 | eval "ac_cv_lib_$ac_lib_var=no" | |
3a922bb4 | 13397 | fi |
90dd450c VZ |
13398 | rm -f conftest* |
13399 | LIBS="$ac_save_LIBS" | |
f6bcfd97 | 13400 | |
90dd450c VZ |
13401 | fi |
13402 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13403 | echo "$ac_t""yes" 1>&6 | |
13404 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
13405 | else | |
13406 | echo "$ac_t""no" 1>&6 | |
13407 | fi | |
f6bcfd97 | 13408 | |
6fa882bd RR |
13409 | fi |
13410 | ||
90dd450c VZ |
13411 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
13412 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 | |
43d99b6d | 13413 | echo "configure:13414: checking for shmat" >&5 |
90dd450c VZ |
13414 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
13415 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13416 | else | |
13417 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 13418 | #line 13419 "configure" |
90dd450c VZ |
13419 | #include "confdefs.h" |
13420 | /* System header to define __stub macros and hopefully few prototypes, | |
13421 | which can conflict with char shmat(); below. */ | |
13422 | #include <assert.h> | |
13423 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13424 | /* We use char because int might match the return type of a gcc2 | |
13425 | builtin and then its argument prototype would still apply. */ | |
13426 | char shmat(); | |
698dcdb6 | 13427 | |
90dd450c | 13428 | int main() { |
3a922bb4 | 13429 | |
90dd450c VZ |
13430 | /* The GNU C library defines this for functions which it implements |
13431 | to always fail with ENOSYS. Some functions are actually named | |
13432 | something starting with __ and the normal name is an alias. */ | |
13433 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
13434 | choke me | |
13435 | #else | |
13436 | shmat(); | |
13437 | #endif | |
10f2d63a | 13438 | |
90dd450c VZ |
13439 | ; return 0; } |
13440 | EOF | |
43d99b6d | 13441 | if { (eval echo configure:13442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
13442 | rm -rf conftest* |
13443 | eval "ac_cv_func_shmat=yes" | |
d08b457b | 13444 | else |
90dd450c VZ |
13445 | echo "configure: failed program was:" >&5 |
13446 | cat conftest.$ac_ext >&5 | |
13447 | rm -rf conftest* | |
13448 | eval "ac_cv_func_shmat=no" | |
d08b457b | 13449 | fi |
90dd450c | 13450 | rm -f conftest* |
d08b457b | 13451 | fi |
90dd450c VZ |
13452 | |
13453 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
13454 | echo "$ac_t""yes" 1>&6 | |
13455 | : | |
d08b457b GD |
13456 | else |
13457 | echo "$ac_t""no" 1>&6 | |
13458 | fi | |
13459 | ||
90dd450c VZ |
13460 | if test $ac_cv_func_shmat = no; then |
13461 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 | |
43d99b6d | 13462 | echo "configure:13463: checking for shmat in -lipc" >&5 |
90dd450c VZ |
13463 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
13464 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
d08b457b GD |
13465 | echo $ac_n "(cached) $ac_c" 1>&6 |
13466 | else | |
90dd450c VZ |
13467 | ac_save_LIBS="$LIBS" |
13468 | LIBS="-lipc $LIBS" | |
13469 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 13470 | #line 13471 "configure" |
90dd450c VZ |
13471 | #include "confdefs.h" |
13472 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13473 | /* We use char because int might match the return type of a gcc2 | |
13474 | builtin and then its argument prototype would still apply. */ | |
13475 | char shmat(); | |
13476 | ||
13477 | int main() { | |
13478 | shmat() | |
13479 | ; return 0; } | |
13480 | EOF | |
43d99b6d | 13481 | if { (eval echo configure:13482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
13482 | rm -rf conftest* |
13483 | eval "ac_cv_lib_$ac_lib_var=yes" | |
d08b457b | 13484 | else |
90dd450c VZ |
13485 | echo "configure: failed program was:" >&5 |
13486 | cat conftest.$ac_ext >&5 | |
13487 | rm -rf conftest* | |
13488 | eval "ac_cv_lib_$ac_lib_var=no" | |
d08b457b | 13489 | fi |
90dd450c VZ |
13490 | rm -f conftest* |
13491 | LIBS="$ac_save_LIBS" | |
13492 | ||
d08b457b | 13493 | fi |
90dd450c VZ |
13494 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
13495 | echo "$ac_t""yes" 1>&6 | |
13496 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
d08b457b GD |
13497 | else |
13498 | echo "$ac_t""no" 1>&6 | |
13499 | fi | |
13500 | ||
d558c907 | 13501 | fi |
90dd450c | 13502 | fi |
3a922bb4 | 13503 | |
90dd450c VZ |
13504 | # Check for libraries that X11R6 Xt/Xaw programs need. |
13505 | ac_save_LDFLAGS="$LDFLAGS" | |
13506 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
13507 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
13508 | # check for ICE first), but we must link in the order -lSM -lICE or | |
13509 | # we get undefined symbols. So assume we have SM if we have ICE. | |
13510 | # These have to be linked with before -lX11, unlike the other | |
13511 | # libraries we check for below, so use a different variable. | |
13512 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. | |
13513 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
43d99b6d | 13514 | echo "configure:13515: checking for IceConnectionNumber in -lICE" >&5 |
90dd450c VZ |
13515 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
13516 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 VZ |
13517 | echo $ac_n "(cached) $ac_c" 1>&6 |
13518 | else | |
90dd450c VZ |
13519 | ac_save_LIBS="$LIBS" |
13520 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
13521 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 13522 | #line 13523 "configure" |
9cfadba2 | 13523 | #include "confdefs.h" |
90dd450c VZ |
13524 | /* Override any gcc2 internal prototype to avoid an error. */ |
13525 | /* We use char because int might match the return type of a gcc2 | |
13526 | builtin and then its argument prototype would still apply. */ | |
13527 | char IceConnectionNumber(); | |
13528 | ||
13529 | int main() { | |
13530 | IceConnectionNumber() | |
13531 | ; return 0; } | |
698dcdb6 | 13532 | EOF |
43d99b6d | 13533 | if { (eval echo configure:13534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 13534 | rm -rf conftest* |
90dd450c | 13535 | eval "ac_cv_lib_$ac_lib_var=yes" |
6232543b | 13536 | else |
698dcdb6 | 13537 | echo "configure: failed program was:" >&5 |
9cfadba2 | 13538 | cat conftest.$ac_ext >&5 |
698dcdb6 | 13539 | rm -rf conftest* |
90dd450c | 13540 | eval "ac_cv_lib_$ac_lib_var=no" |
9cfadba2 | 13541 | fi |
698dcdb6 | 13542 | rm -f conftest* |
90dd450c VZ |
13543 | LIBS="$ac_save_LIBS" |
13544 | ||
9cfadba2 | 13545 | fi |
90dd450c | 13546 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
698dcdb6 | 13547 | echo "$ac_t""yes" 1>&6 |
90dd450c | 13548 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
698dcdb6 VZ |
13549 | else |
13550 | echo "$ac_t""no" 1>&6 | |
9cfadba2 | 13551 | fi |
10f2d63a | 13552 | |
90dd450c VZ |
13553 | LDFLAGS="$ac_save_LDFLAGS" |
13554 | ||
13555 | fi | |
13556 | ||
13557 | ||
13558 | if test "$no_x" = "yes"; then | |
13559 | { echo "configure: error: X11 not found" 1>&2; exit 1; } | |
13560 | fi | |
13561 | ||
13562 | GUI_TK_LIBRARY="$X_LIBS" | |
13563 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
13564 | AFMINSTALL=afminstall | |
13565 | COMPILED_X_PROGRAM=0 | |
13566 | ||
21d1c967 GD |
13567 | if test "$wxUSE_NANOX" = "yes"; then |
13568 | echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6 | |
43d99b6d | 13569 | echo "configure:13570: checking for MicroWindows/NanoX distribution" >&5 |
21d1c967 GD |
13570 | if test "x$MICROWIN" = x ; then |
13571 | echo "$ac_t""not found" 1>&6 | |
13572 | { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; } | |
90dd450c | 13573 | else |
21d1c967 GD |
13574 | echo "$ac_t""$MICROWIN" 1>&6 |
13575 | cat >> confdefs.h <<\EOF | |
13576 | #define wxUSE_NANOX 1 | |
698dcdb6 | 13577 | EOF |
21d1c967 | 13578 | |
90dd450c VZ |
13579 | fi |
13580 | fi | |
13581 | ||
13582 | xpm_link= | |
13583 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
43d99b6d | 13584 | echo "configure:13585: checking for Xpm library" >&5 |
90dd450c VZ |
13585 | |
13586 | ac_find_libraries= | |
13587 | for ac_dir in $SEARCH_LIB; | |
13588 | do | |
13589 | for ac_extension in a so sl dylib; do | |
13590 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
13591 | ac_find_libraries=$ac_dir | |
13592 | break 2 | |
13593 | fi | |
13594 | done | |
13595 | done | |
13596 | ||
13597 | if test "$ac_find_libraries" != "" ; then | |
13598 | ||
13599 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
13600 | result=$? | |
13601 | if test $result = 0; then | |
13602 | ac_path_to_link="" | |
13603 | else | |
13604 | ac_path_to_link=" -L$ac_find_libraries" | |
21d1c967 | 13605 | fi |
90dd450c | 13606 | |
21d1c967 GD |
13607 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
13608 | xpm_link=" -lXpm" | |
13609 | cat >> confdefs.h <<\EOF | |
13610 | #define wxHAVE_LIB_XPM 1 | |
13611 | EOF | |
90dd450c | 13612 | |
21d1c967 GD |
13613 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
13614 | else | |
13615 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 13616 | #line 13617 "configure" |
21d1c967 | 13617 | #include "confdefs.h" |
90dd450c | 13618 | |
21d1c967 GD |
13619 | #include <X11/xpm.h> |
13620 | ||
13621 | int main() { | |
6f72b082 | 13622 | |
21d1c967 GD |
13623 | int version; |
13624 | version = XpmLibraryVersion(); | |
13625 | ||
13626 | ; return 0; } | |
13627 | EOF | |
43d99b6d | 13628 | if { (eval echo configure:13629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
21d1c967 GD |
13629 | rm -rf conftest* |
13630 | ||
13631 | xpm_link=" -lXpm" | |
13632 | cat >> confdefs.h <<\EOF | |
13633 | #define wxHAVE_LIB_XPM 1 | |
13634 | EOF | |
90dd450c | 13635 | |
21d1c967 GD |
13636 | echo "$ac_t""found in default search path" 1>&6 |
13637 | COMPILED_X_PROGRAM=0 | |
13638 | ||
13639 | else | |
13640 | echo "configure: failed program was:" >&5 | |
13641 | cat conftest.$ac_ext >&5 | |
13642 | rm -rf conftest* | |
13643 | ||
13644 | echo "$ac_t""no" 1>&6 | |
13645 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
13646 | ||
13647 | ||
6f72b082 | 13648 | fi |
21d1c967 GD |
13649 | rm -f conftest* |
13650 | fi | |
90dd450c | 13651 | |
1d1b75ac VZ |
13652 | wxUSE_UNIVERSAL="yes" |
13653 | ||
21d1c967 GD |
13654 | if test "$wxUSE_NANOX" = "yes"; then |
13655 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
13656 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__NANOX__ -DMWPIXEL_FORMAT=MWPF_TRUECOLOR0888 -DHAVE_FILEIO -DHAVE_BMP_SUPPORT=1 -DHAVE_GIF_SUPPORT=1 -DHAVE_PNM_SUPPORT=1 -DHAVE_XPM_SUPPORT=1 -DLINUX=1 -DUNIX=1 -DUSE_EXPOSURE -DSCREEN_HEIGHT=480 -DSCREEN_WIDTH=640 -DSCREEN_DEPTH=4 -DX11=1" | |
13657 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" | |
13658 | else | |
13659 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link" | |
13660 | fi | |
6f72b082 | 13661 | |
21d1c967 GD |
13662 | TOOLKIT_VPATH="\${top_srcdir}/src/x11" |
13663 | TOOLKIT=X11 | |
13664 | GUIDIST=X11_DIST | |
13665 | fi | |
90dd450c | 13666 | |
21d1c967 GD |
13667 | if test "$wxUSE_WINE" = 1; then |
13668 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` | |
13669 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
43d99b6d | 13670 | echo "configure:13671: checking for windows.h" >&5 |
698dcdb6 VZ |
13671 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13672 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13673 | else | |
13674 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 13675 | #line 13676 "configure" |
6f72b082 | 13676 | #include "confdefs.h" |
21d1c967 | 13677 | #include <windows.h> |
698dcdb6 VZ |
13678 | EOF |
13679 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
43d99b6d | 13680 | { (eval echo configure:13681: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13681 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13682 | if test -z "$ac_err"; then | |
13683 | rm -rf conftest* | |
13684 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 13685 | else |
698dcdb6 VZ |
13686 | echo "$ac_err" >&5 |
13687 | echo "configure: failed program was:" >&5 | |
10f2d63a | 13688 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13689 | rm -rf conftest* |
13690 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 13691 | fi |
698dcdb6 | 13692 | rm -f conftest* |
10f2d63a | 13693 | fi |
698dcdb6 VZ |
13694 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13695 | echo "$ac_t""yes" 1>&6 | |
21d1c967 GD |
13696 | : |
13697 | else | |
13698 | echo "$ac_t""no" 1>&6 | |
13699 | ||
13700 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
13701 | ||
13702 | fi | |
13703 | ||
13704 | ||
13705 | xpm_link= | |
13706 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
43d99b6d | 13707 | echo "configure:13708: checking for Xpm library" >&5 |
21d1c967 | 13708 | |
90dd450c VZ |
13709 | ac_find_libraries= |
13710 | for ac_dir in $SEARCH_LIB; | |
13711 | do | |
13712 | for ac_extension in a so sl dylib; do | |
21d1c967 | 13713 | if test -f "$ac_dir/libXpm.$ac_extension"; then |
90dd450c VZ |
13714 | ac_find_libraries=$ac_dir |
13715 | break 2 | |
13716 | fi | |
13717 | done | |
13718 | done | |
13719 | ||
21d1c967 GD |
13720 | if test "$ac_find_libraries" != "" ; then |
13721 | GUI_TK_LIBRARY="-L$ac_find_libraries" | |
13722 | xpm_link=" -lXpm" | |
13723 | cat >> confdefs.h <<\EOF | |
13724 | #define wxHAVE_LIB_XPM 1 | |
13725 | EOF | |
90dd450c | 13726 | |
21d1c967 GD |
13727 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
13728 | else | |
13729 | echo "$ac_t""no" 1>&6 | |
13730 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
13731 | fi | |
13732 | ||
13733 | mesa_link= | |
13734 | echo $ac_n "checking for Mesa library""... $ac_c" 1>&6 | |
43d99b6d | 13735 | echo "configure:13736: checking for Mesa library" >&5 |
21d1c967 | 13736 | |
90dd450c VZ |
13737 | ac_find_libraries= |
13738 | for ac_dir in $SEARCH_LIB; | |
13739 | do | |
13740 | for ac_extension in a so sl dylib; do | |
13741 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
13742 | ac_find_libraries=$ac_dir | |
13743 | break 2 | |
13744 | fi | |
13745 | done | |
13746 | done | |
13747 | ||
21d1c967 GD |
13748 | if test "$ac_find_libraries" != "" ; then |
13749 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries" | |
13750 | mesa_link=" -lMesaGL" | |
13751 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
13752 | else | |
13753 | { echo "configure: error: no" 1>&2; exit 1; } | |
13754 | fi | |
13755 | ||
13756 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses" | |
13757 | TOOLKIT=MSW | |
13758 | GUIDIST=MSW_DIST | |
13759 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__" | |
13760 | fi | |
13761 | ||
13762 | if test "$wxUSE_MOTIF" = 1; then | |
13763 | if test "$no_x" = yes; then | |
13764 | # Not all programs may use this symbol, but it does not hurt to define it. | |
13765 | cat >> confdefs.h <<\EOF | |
13766 | #define X_DISPLAY_MISSING 1 | |
13767 | EOF | |
13768 | ||
13769 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
13770 | else | |
13771 | if test -n "$x_includes"; then | |
13772 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
90dd450c VZ |
13773 | fi |
13774 | ||
21d1c967 GD |
13775 | # It would also be nice to do this for all -L options, not just this one. |
13776 | if test -n "$x_libraries"; then | |
13777 | X_LIBS="$X_LIBS -L$x_libraries" | |
13778 | # For Solaris; some versions of Sun CC require a space after -R and | |
13779 | # others require no space. Words are not sufficient . . . . | |
13780 | case "`(uname -sr) 2>/dev/null`" in | |
13781 | "SunOS 5"*) | |
13782 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 | |
43d99b6d | 13783 | echo "configure:13784: checking whether -R must be followed by a space" >&5 |
21d1c967 GD |
13784 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
13785 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 13786 | #line 13787 "configure" |
21d1c967 GD |
13787 | #include "confdefs.h" |
13788 | ||
13789 | int main() { | |
13790 | ||
13791 | ; return 0; } | |
13792 | EOF | |
43d99b6d | 13793 | if { (eval echo configure:13794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21d1c967 GD |
13794 | rm -rf conftest* |
13795 | ac_R_nospace=yes | |
698dcdb6 | 13796 | else |
21d1c967 GD |
13797 | echo "configure: failed program was:" >&5 |
13798 | cat conftest.$ac_ext >&5 | |
13799 | rm -rf conftest* | |
13800 | ac_R_nospace=no | |
10f2d63a | 13801 | fi |
21d1c967 GD |
13802 | rm -f conftest* |
13803 | if test $ac_R_nospace = yes; then | |
13804 | echo "$ac_t""no" 1>&6 | |
13805 | X_LIBS="$X_LIBS -R$x_libraries" | |
13806 | else | |
13807 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
13808 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 13809 | #line 13810 "configure" |
21d1c967 | 13810 | #include "confdefs.h" |
10f2d63a | 13811 | |
21d1c967 | 13812 | int main() { |
f0c87536 | 13813 | |
21d1c967 | 13814 | ; return 0; } |
698dcdb6 | 13815 | EOF |
43d99b6d | 13816 | if { (eval echo configure:13817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21d1c967 GD |
13817 | rm -rf conftest* |
13818 | ac_R_space=yes | |
13819 | else | |
13820 | echo "configure: failed program was:" >&5 | |
13821 | cat conftest.$ac_ext >&5 | |
13822 | rm -rf conftest* | |
13823 | ac_R_space=no | |
13824 | fi | |
13825 | rm -f conftest* | |
13826 | if test $ac_R_space = yes; then | |
13827 | echo "$ac_t""yes" 1>&6 | |
13828 | X_LIBS="$X_LIBS -R $x_libraries" | |
13829 | else | |
13830 | echo "$ac_t""neither works" 1>&6 | |
13831 | fi | |
13832 | fi | |
13833 | LIBS="$ac_xsave_LIBS" | |
13834 | esac | |
13835 | fi | |
90dd450c | 13836 | |
21d1c967 GD |
13837 | # Check for system-dependent libraries X programs must link with. |
13838 | # Do this before checking for the system-independent R6 libraries | |
13839 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
13840 | ||
13841 | if test "$ISC" = yes; then | |
13842 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
13843 | else | |
13844 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X | |
13845 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
13846 | # the Alpha needs dnet_stub (dnet does not exist). | |
13847 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 | |
43d99b6d | 13848 | echo "configure:13849: checking for dnet_ntoa in -ldnet" >&5 |
21d1c967 GD |
13849 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
13850 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13851 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13852 | else | |
13853 | ac_save_LIBS="$LIBS" | |
13854 | LIBS="-ldnet $LIBS" | |
13855 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 13856 | #line 13857 "configure" |
21d1c967 GD |
13857 | #include "confdefs.h" |
13858 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13859 | /* We use char because int might match the return type of a gcc2 | |
13860 | builtin and then its argument prototype would still apply. */ | |
13861 | char dnet_ntoa(); | |
13862 | ||
13863 | int main() { | |
13864 | dnet_ntoa() | |
13865 | ; return 0; } | |
90dd450c | 13866 | EOF |
43d99b6d | 13867 | if { (eval echo configure:13868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21d1c967 GD |
13868 | rm -rf conftest* |
13869 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13870 | else | |
13871 | echo "configure: failed program was:" >&5 | |
13872 | cat conftest.$ac_ext >&5 | |
13873 | rm -rf conftest* | |
13874 | eval "ac_cv_lib_$ac_lib_var=no" | |
0fb0dd83 | 13875 | fi |
21d1c967 GD |
13876 | rm -f conftest* |
13877 | LIBS="$ac_save_LIBS" | |
90dd450c | 13878 | |
0fb0dd83 | 13879 | fi |
21d1c967 GD |
13880 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
13881 | echo "$ac_t""yes" 1>&6 | |
13882 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
13883 | else | |
13884 | echo "$ac_t""no" 1>&6 | |
0fb0dd83 | 13885 | fi |
0fb0dd83 | 13886 | |
21d1c967 GD |
13887 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
13888 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 | |
43d99b6d | 13889 | echo "configure:13890: checking for dnet_ntoa in -ldnet_stub" >&5 |
21d1c967 GD |
13890 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
13891 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13892 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13893 | else | |
13894 | ac_save_LIBS="$LIBS" | |
13895 | LIBS="-ldnet_stub $LIBS" | |
13896 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 13897 | #line 13898 "configure" |
21d1c967 GD |
13898 | #include "confdefs.h" |
13899 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13900 | /* We use char because int might match the return type of a gcc2 | |
13901 | builtin and then its argument prototype would still apply. */ | |
13902 | char dnet_ntoa(); | |
90dd450c | 13903 | |
21d1c967 GD |
13904 | int main() { |
13905 | dnet_ntoa() | |
13906 | ; return 0; } | |
13907 | EOF | |
43d99b6d | 13908 | if { (eval echo configure:13909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21d1c967 GD |
13909 | rm -rf conftest* |
13910 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13911 | else | |
13912 | echo "configure: failed program was:" >&5 | |
13913 | cat conftest.$ac_ext >&5 | |
13914 | rm -rf conftest* | |
13915 | eval "ac_cv_lib_$ac_lib_var=no" | |
90dd450c | 13916 | fi |
21d1c967 GD |
13917 | rm -f conftest* |
13918 | LIBS="$ac_save_LIBS" | |
90dd450c | 13919 | |
21d1c967 GD |
13920 | fi |
13921 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13922 | echo "$ac_t""yes" 1>&6 | |
13923 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
13924 | else | |
13925 | echo "$ac_t""no" 1>&6 | |
90dd450c VZ |
13926 | fi |
13927 | ||
21d1c967 | 13928 | fi |
90dd450c | 13929 | |
21d1c967 GD |
13930 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
13931 | # to get the SysV transport functions. | |
13932 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) | |
13933 | # needs -lnsl. | |
13934 | # The nsl library prevents programs from opening the X display | |
13935 | # on Irix 5.2, according to dickey@clark.net. | |
13936 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
43d99b6d | 13937 | echo "configure:13938: checking for gethostbyname" >&5 |
21d1c967 GD |
13938 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
13939 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13940 | else | |
13941 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 13942 | #line 13943 "configure" |
21d1c967 GD |
13943 | #include "confdefs.h" |
13944 | /* System header to define __stub macros and hopefully few prototypes, | |
13945 | which can conflict with char gethostbyname(); below. */ | |
13946 | #include <assert.h> | |
13947 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13948 | /* We use char because int might match the return type of a gcc2 | |
13949 | builtin and then its argument prototype would still apply. */ | |
13950 | char gethostbyname(); | |
90dd450c | 13951 | |
21d1c967 | 13952 | int main() { |
90dd450c | 13953 | |
21d1c967 GD |
13954 | /* The GNU C library defines this for functions which it implements |
13955 | to always fail with ENOSYS. Some functions are actually named | |
13956 | something starting with __ and the normal name is an alias. */ | |
13957 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
13958 | choke me | |
13959 | #else | |
13960 | gethostbyname(); | |
13961 | #endif | |
90dd450c | 13962 | |
21d1c967 GD |
13963 | ; return 0; } |
13964 | EOF | |
43d99b6d | 13965 | if { (eval echo configure:13966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21d1c967 GD |
13966 | rm -rf conftest* |
13967 | eval "ac_cv_func_gethostbyname=yes" | |
13968 | else | |
13969 | echo "configure: failed program was:" >&5 | |
13970 | cat conftest.$ac_ext >&5 | |
13971 | rm -rf conftest* | |
13972 | eval "ac_cv_func_gethostbyname=no" | |
13973 | fi | |
13974 | rm -f conftest* | |
90dd450c VZ |
13975 | fi |
13976 | ||
21d1c967 GD |
13977 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then |
13978 | echo "$ac_t""yes" 1>&6 | |
13979 | : | |
13980 | else | |
13981 | echo "$ac_t""no" 1>&6 | |
13982 | fi | |
90dd450c | 13983 | |
21d1c967 GD |
13984 | if test $ac_cv_func_gethostbyname = no; then |
13985 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 | |
43d99b6d | 13986 | echo "configure:13987: checking for gethostbyname in -lnsl" >&5 |
21d1c967 GD |
13987 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
13988 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13989 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13990 | else | |
13991 | ac_save_LIBS="$LIBS" | |
13992 | LIBS="-lnsl $LIBS" | |
13993 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 13994 | #line 13995 "configure" |
21d1c967 GD |
13995 | #include "confdefs.h" |
13996 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13997 | /* We use char because int might match the return type of a gcc2 | |
13998 | builtin and then its argument prototype would still apply. */ | |
13999 | char gethostbyname(); | |
90dd450c | 14000 | |
21d1c967 GD |
14001 | int main() { |
14002 | gethostbyname() | |
14003 | ; return 0; } | |
14004 | EOF | |
43d99b6d | 14005 | if { (eval echo configure:14006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21d1c967 GD |
14006 | rm -rf conftest* |
14007 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14008 | else | |
14009 | echo "configure: failed program was:" >&5 | |
14010 | cat conftest.$ac_ext >&5 | |
14011 | rm -rf conftest* | |
14012 | eval "ac_cv_lib_$ac_lib_var=no" | |
1f8ae82f | 14013 | fi |
21d1c967 GD |
14014 | rm -f conftest* |
14015 | LIBS="$ac_save_LIBS" | |
f0c87536 | 14016 | |
21d1c967 GD |
14017 | fi |
14018 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14019 | echo "$ac_t""yes" 1>&6 | |
14020 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
14021 | else | |
14022 | echo "$ac_t""no" 1>&6 | |
14023 | fi | |
90dd450c | 14024 | |
90dd450c VZ |
14025 | fi |
14026 | ||
21d1c967 GD |
14027 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
14028 | # socket/setsockopt and other routines are undefined under SCO ODT | |
14029 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
14030 | # on later versions), says simon@lia.di.epfl.ch: it contains | |
14031 | # gethostby* variants that don't use the nameserver (or something). | |
14032 | # -lsocket must be given before -lnsl if both are needed. | |
14033 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
14034 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
43d99b6d | 14035 | echo "configure:14036: checking for connect" >&5 |
21d1c967 GD |
14036 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
14037 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14038 | else | |
14039 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 14040 | #line 14041 "configure" |
21d1c967 GD |
14041 | #include "confdefs.h" |
14042 | /* System header to define __stub macros and hopefully few prototypes, | |
14043 | which can conflict with char connect(); below. */ | |
14044 | #include <assert.h> | |
14045 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14046 | /* We use char because int might match the return type of a gcc2 | |
14047 | builtin and then its argument prototype would still apply. */ | |
14048 | char connect(); | |
90dd450c | 14049 | |
21d1c967 | 14050 | int main() { |
90dd450c | 14051 | |
21d1c967 GD |
14052 | /* The GNU C library defines this for functions which it implements |
14053 | to always fail with ENOSYS. Some functions are actually named | |
14054 | something starting with __ and the normal name is an alias. */ | |
14055 | #if defined (__stub_connect) || defined (__stub___connect) | |
14056 | choke me | |
14057 | #else | |
14058 | connect(); | |
14059 | #endif | |
90dd450c | 14060 | |
21d1c967 GD |
14061 | ; return 0; } |
14062 | EOF | |
43d99b6d | 14063 | if { (eval echo configure:14064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21d1c967 GD |
14064 | rm -rf conftest* |
14065 | eval "ac_cv_func_connect=yes" | |
14066 | else | |
14067 | echo "configure: failed program was:" >&5 | |
14068 | cat conftest.$ac_ext >&5 | |
14069 | rm -rf conftest* | |
14070 | eval "ac_cv_func_connect=no" | |
14071 | fi | |
14072 | rm -f conftest* | |
14073 | fi | |
90dd450c | 14074 | |
21d1c967 GD |
14075 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then |
14076 | echo "$ac_t""yes" 1>&6 | |
14077 | : | |
14078 | else | |
14079 | echo "$ac_t""no" 1>&6 | |
14080 | fi | |
1f8ae82f | 14081 | |
21d1c967 GD |
14082 | if test $ac_cv_func_connect = no; then |
14083 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 | |
43d99b6d | 14084 | echo "configure:14085: checking for connect in -lsocket" >&5 |
21d1c967 GD |
14085 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
14086 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
0fbb762e MB |
14087 | echo $ac_n "(cached) $ac_c" 1>&6 |
14088 | else | |
21d1c967 GD |
14089 | ac_save_LIBS="$LIBS" |
14090 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
14091 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 14092 | #line 14093 "configure" |
0fbb762e | 14093 | #include "confdefs.h" |
21d1c967 GD |
14094 | /* Override any gcc2 internal prototype to avoid an error. */ |
14095 | /* We use char because int might match the return type of a gcc2 | |
14096 | builtin and then its argument prototype would still apply. */ | |
14097 | char connect(); | |
90dd450c VZ |
14098 | |
14099 | int main() { | |
21d1c967 | 14100 | connect() |
90dd450c | 14101 | ; return 0; } |
0fbb762e | 14102 | EOF |
43d99b6d | 14103 | if { (eval echo configure:14104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
0fbb762e | 14104 | rm -rf conftest* |
21d1c967 | 14105 | eval "ac_cv_lib_$ac_lib_var=yes" |
0fbb762e | 14106 | else |
0fbb762e MB |
14107 | echo "configure: failed program was:" >&5 |
14108 | cat conftest.$ac_ext >&5 | |
14109 | rm -rf conftest* | |
21d1c967 | 14110 | eval "ac_cv_lib_$ac_lib_var=no" |
0fbb762e MB |
14111 | fi |
14112 | rm -f conftest* | |
21d1c967 | 14113 | LIBS="$ac_save_LIBS" |
90dd450c | 14114 | |
21d1c967 GD |
14115 | fi |
14116 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14117 | echo "$ac_t""yes" 1>&6 | |
14118 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
14119 | else | |
14120 | echo "$ac_t""no" 1>&6 | |
14121 | fi | |
90dd450c | 14122 | |
21d1c967 | 14123 | fi |
90dd450c | 14124 | |
21d1c967 GD |
14125 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
14126 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
43d99b6d | 14127 | echo "configure:14128: checking for remove" >&5 |
21d1c967 GD |
14128 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
14129 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14130 | else | |
14131 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 14132 | #line 14133 "configure" |
21d1c967 GD |
14133 | #include "confdefs.h" |
14134 | /* System header to define __stub macros and hopefully few prototypes, | |
14135 | which can conflict with char remove(); below. */ | |
14136 | #include <assert.h> | |
14137 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14138 | /* We use char because int might match the return type of a gcc2 | |
14139 | builtin and then its argument prototype would still apply. */ | |
14140 | char remove(); | |
90dd450c | 14141 | |
21d1c967 | 14142 | int main() { |
90dd450c | 14143 | |
21d1c967 GD |
14144 | /* The GNU C library defines this for functions which it implements |
14145 | to always fail with ENOSYS. Some functions are actually named | |
14146 | something starting with __ and the normal name is an alias. */ | |
14147 | #if defined (__stub_remove) || defined (__stub___remove) | |
14148 | choke me | |
14149 | #else | |
14150 | remove(); | |
14151 | #endif | |
90dd450c | 14152 | |
21d1c967 GD |
14153 | ; return 0; } |
14154 | EOF | |
43d99b6d | 14155 | if { (eval echo configure:14156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21d1c967 GD |
14156 | rm -rf conftest* |
14157 | eval "ac_cv_func_remove=yes" | |
14158 | else | |
14159 | echo "configure: failed program was:" >&5 | |
14160 | cat conftest.$ac_ext >&5 | |
14161 | rm -rf conftest* | |
14162 | eval "ac_cv_func_remove=no" | |
14163 | fi | |
14164 | rm -f conftest* | |
14165 | fi | |
90dd450c | 14166 | |
21d1c967 GD |
14167 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then |
14168 | echo "$ac_t""yes" 1>&6 | |
14169 | : | |
14170 | else | |
14171 | echo "$ac_t""no" 1>&6 | |
14172 | fi | |
90dd450c | 14173 | |
21d1c967 GD |
14174 | if test $ac_cv_func_remove = no; then |
14175 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 | |
43d99b6d | 14176 | echo "configure:14177: checking for remove in -lposix" >&5 |
21d1c967 GD |
14177 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
14178 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14179 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14180 | else | |
14181 | ac_save_LIBS="$LIBS" | |
14182 | LIBS="-lposix $LIBS" | |
14183 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 14184 | #line 14185 "configure" |
21d1c967 GD |
14185 | #include "confdefs.h" |
14186 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14187 | /* We use char because int might match the return type of a gcc2 | |
14188 | builtin and then its argument prototype would still apply. */ | |
14189 | char remove(); | |
90dd450c | 14190 | |
21d1c967 GD |
14191 | int main() { |
14192 | remove() | |
14193 | ; return 0; } | |
14194 | EOF | |
43d99b6d | 14195 | if { (eval echo configure:14196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21d1c967 GD |
14196 | rm -rf conftest* |
14197 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14198 | else | |
14199 | echo "configure: failed program was:" >&5 | |
14200 | cat conftest.$ac_ext >&5 | |
14201 | rm -rf conftest* | |
14202 | eval "ac_cv_lib_$ac_lib_var=no" | |
0fbb762e | 14203 | fi |
21d1c967 GD |
14204 | rm -f conftest* |
14205 | LIBS="$ac_save_LIBS" | |
0fbb762e | 14206 | |
21d1c967 GD |
14207 | fi |
14208 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14209 | echo "$ac_t""yes" 1>&6 | |
14210 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
14211 | else | |
14212 | echo "$ac_t""no" 1>&6 | |
14213 | fi | |
19bc6aad | 14214 | |
90dd450c | 14215 | fi |
19bc6aad | 14216 | |
21d1c967 GD |
14217 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
14218 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 | |
43d99b6d | 14219 | echo "configure:14220: checking for shmat" >&5 |
21d1c967 GD |
14220 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
14221 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14222 | else | |
14223 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 14224 | #line 14225 "configure" |
21d1c967 GD |
14225 | #include "confdefs.h" |
14226 | /* System header to define __stub macros and hopefully few prototypes, | |
14227 | which can conflict with char shmat(); below. */ | |
14228 | #include <assert.h> | |
14229 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14230 | /* We use char because int might match the return type of a gcc2 | |
14231 | builtin and then its argument prototype would still apply. */ | |
14232 | char shmat(); | |
19bc6aad | 14233 | |
21d1c967 | 14234 | int main() { |
90dd450c | 14235 | |
21d1c967 GD |
14236 | /* The GNU C library defines this for functions which it implements |
14237 | to always fail with ENOSYS. Some functions are actually named | |
14238 | something starting with __ and the normal name is an alias. */ | |
14239 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
14240 | choke me | |
14241 | #else | |
14242 | shmat(); | |
14243 | #endif | |
90dd450c | 14244 | |
21d1c967 GD |
14245 | ; return 0; } |
14246 | EOF | |
43d99b6d | 14247 | if { (eval echo configure:14248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21d1c967 GD |
14248 | rm -rf conftest* |
14249 | eval "ac_cv_func_shmat=yes" | |
90dd450c | 14250 | else |
21d1c967 GD |
14251 | echo "configure: failed program was:" >&5 |
14252 | cat conftest.$ac_ext >&5 | |
14253 | rm -rf conftest* | |
14254 | eval "ac_cv_func_shmat=no" | |
19bc6aad | 14255 | fi |
21d1c967 | 14256 | rm -f conftest* |
19bc6aad | 14257 | fi |
21d1c967 GD |
14258 | |
14259 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
14260 | echo "$ac_t""yes" 1>&6 | |
14261 | : | |
19bc6aad VZ |
14262 | else |
14263 | echo "$ac_t""no" 1>&6 | |
14264 | fi | |
19bc6aad | 14265 | |
21d1c967 GD |
14266 | if test $ac_cv_func_shmat = no; then |
14267 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 | |
43d99b6d | 14268 | echo "configure:14269: checking for shmat in -lipc" >&5 |
21d1c967 GD |
14269 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
14270 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9f8148b1 GD |
14271 | echo $ac_n "(cached) $ac_c" 1>&6 |
14272 | else | |
21d1c967 GD |
14273 | ac_save_LIBS="$LIBS" |
14274 | LIBS="-lipc $LIBS" | |
14275 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 14276 | #line 14277 "configure" |
21d1c967 GD |
14277 | #include "confdefs.h" |
14278 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14279 | /* We use char because int might match the return type of a gcc2 | |
14280 | builtin and then its argument prototype would still apply. */ | |
14281 | char shmat(); | |
14282 | ||
14283 | int main() { | |
14284 | shmat() | |
14285 | ; return 0; } | |
14286 | EOF | |
43d99b6d | 14287 | if { (eval echo configure:14288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21d1c967 GD |
14288 | rm -rf conftest* |
14289 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9f8148b1 | 14290 | else |
21d1c967 GD |
14291 | echo "configure: failed program was:" >&5 |
14292 | cat conftest.$ac_ext >&5 | |
14293 | rm -rf conftest* | |
14294 | eval "ac_cv_lib_$ac_lib_var=no" | |
9f8148b1 | 14295 | fi |
21d1c967 GD |
14296 | rm -f conftest* |
14297 | LIBS="$ac_save_LIBS" | |
14298 | ||
9f8148b1 | 14299 | fi |
21d1c967 GD |
14300 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
14301 | echo "$ac_t""yes" 1>&6 | |
14302 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
9f8148b1 GD |
14303 | else |
14304 | echo "$ac_t""no" 1>&6 | |
14305 | fi | |
90dd450c | 14306 | |
90dd450c | 14307 | fi |
21d1c967 | 14308 | fi |
10f2d63a | 14309 | |
21d1c967 GD |
14310 | # Check for libraries that X11R6 Xt/Xaw programs need. |
14311 | ac_save_LDFLAGS="$LDFLAGS" | |
14312 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
14313 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
14314 | # check for ICE first), but we must link in the order -lSM -lICE or | |
14315 | # we get undefined symbols. So assume we have SM if we have ICE. | |
14316 | # These have to be linked with before -lX11, unlike the other | |
14317 | # libraries we check for below, so use a different variable. | |
14318 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. | |
14319 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
43d99b6d | 14320 | echo "configure:14321: checking for IceConnectionNumber in -lICE" >&5 |
21d1c967 GD |
14321 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
14322 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
29fd3c0c VS |
14323 | echo $ac_n "(cached) $ac_c" 1>&6 |
14324 | else | |
21d1c967 GD |
14325 | ac_save_LIBS="$LIBS" |
14326 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
14327 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 14328 | #line 14329 "configure" |
29fd3c0c | 14329 | #include "confdefs.h" |
21d1c967 GD |
14330 | /* Override any gcc2 internal prototype to avoid an error. */ |
14331 | /* We use char because int might match the return type of a gcc2 | |
14332 | builtin and then its argument prototype would still apply. */ | |
14333 | char IceConnectionNumber(); | |
14334 | ||
14335 | int main() { | |
14336 | IceConnectionNumber() | |
14337 | ; return 0; } | |
29fd3c0c | 14338 | EOF |
43d99b6d | 14339 | if { (eval echo configure:14340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
29fd3c0c | 14340 | rm -rf conftest* |
21d1c967 | 14341 | eval "ac_cv_lib_$ac_lib_var=yes" |
29fd3c0c | 14342 | else |
29fd3c0c VS |
14343 | echo "configure: failed program was:" >&5 |
14344 | cat conftest.$ac_ext >&5 | |
14345 | rm -rf conftest* | |
21d1c967 | 14346 | eval "ac_cv_lib_$ac_lib_var=no" |
29fd3c0c VS |
14347 | fi |
14348 | rm -f conftest* | |
21d1c967 GD |
14349 | LIBS="$ac_save_LIBS" |
14350 | ||
29fd3c0c | 14351 | fi |
21d1c967 | 14352 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
29fd3c0c | 14353 | echo "$ac_t""yes" 1>&6 |
21d1c967 | 14354 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
29fd3c0c VS |
14355 | else |
14356 | echo "$ac_t""no" 1>&6 | |
14357 | fi | |
21d1c967 GD |
14358 | |
14359 | LDFLAGS="$ac_save_LDFLAGS" | |
29fd3c0c | 14360 | |
10f2d63a VZ |
14361 | fi |
14362 | ||
21d1c967 GD |
14363 | |
14364 | if test "$no_x" = "yes"; then | |
14365 | { echo "configure: error: X11 not found" 1>&2; exit 1; } | |
14366 | fi | |
14367 | ||
14368 | GUI_TK_LIBRARY="$X_LIBS" | |
14369 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
14370 | AFMINSTALL=afminstall | |
14371 | COMPILED_X_PROGRAM=0 | |
14372 | ||
14373 | echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6 | |
43d99b6d | 14374 | echo "configure:14375: checking for Motif/Lesstif headers" >&5 |
21d1c967 GD |
14375 | |
14376 | ac_find_includes= | |
14377 | for ac_dir in $SEARCH_INCLUDE; | |
14378 | do | |
14379 | if test -f "$ac_dir/Xm/Xm.h"; then | |
14380 | ac_find_includes=$ac_dir | |
14381 | break | |
14382 | fi | |
14383 | done | |
14384 | ||
14385 | if test "$ac_find_includes" != "" ; then | |
14386 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
14387 | else | |
14388 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 14389 | #line 14390 "configure" |
10f2d63a | 14390 | #include "confdefs.h" |
21d1c967 GD |
14391 | |
14392 | #include <Xm/Xm.h> | |
14393 | ||
14394 | int main() { | |
14395 | ||
14396 | int version; | |
14397 | version = xmUseVersion; | |
14398 | ||
14399 | ; return 0; } | |
698dcdb6 | 14400 | EOF |
43d99b6d | 14401 | if { (eval echo configure:14402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 14402 | rm -rf conftest* |
21d1c967 GD |
14403 | |
14404 | echo "$ac_t""found in default search path" 1>&6 | |
14405 | COMPILED_X_PROGRAM=1 | |
14406 | ||
10f2d63a | 14407 | else |
90dd450c VZ |
14408 | echo "configure: failed program was:" >&5 |
14409 | cat conftest.$ac_ext >&5 | |
698dcdb6 | 14410 | rm -rf conftest* |
21d1c967 GD |
14411 | |
14412 | echo "$ac_t""no" 1>&6 | |
14413 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
14414 | ||
14415 | ||
10f2d63a VZ |
14416 | fi |
14417 | rm -f conftest* | |
21d1c967 | 14418 | fi |
10f2d63a | 14419 | |
21d1c967 GD |
14420 | if test "$COMPILED_X_PROGRAM" = 0; then |
14421 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 | |
43d99b6d | 14422 | echo "configure:14423: checking for Motif/Lesstif library" >&5 |
21d1c967 GD |
14423 | |
14424 | ac_find_libraries= | |
14425 | for ac_dir in $SEARCH_LIB; | |
14426 | do | |
14427 | for ac_extension in a so sl dylib; do | |
14428 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
14429 | ac_find_libraries=$ac_dir | |
14430 | break 2 | |
14431 | fi | |
14432 | done | |
14433 | done | |
14434 | ||
14435 | if test "$ac_find_libraries" != "" ; then | |
14436 | ||
14437 | ac_path_to_include=$ac_find_includes | |
14438 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
14439 | result=$? | |
14440 | if test $result = 0; then | |
14441 | ac_path_to_include="" | |
14442 | else | |
14443 | ac_path_to_include=" -I$ac_find_includes" | |
14444 | fi | |
14445 | ||
14446 | ||
14447 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
14448 | result=$? | |
14449 | if test $result = 0; then | |
14450 | ac_path_to_link="" | |
14451 | else | |
14452 | ac_path_to_link=" -L$ac_find_libraries" | |
14453 | fi | |
14454 | ||
14455 | ||
14456 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
14457 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" | |
14458 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
14459 | else | |
14460 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 14461 | #line 14462 "configure" |
d836ee96 | 14462 | #include "confdefs.h" |
21d1c967 GD |
14463 | |
14464 | #include <Xm/Xm.h> | |
14465 | ||
14466 | int main() { | |
14467 | ||
14468 | int version; | |
14469 | version = xmUseVersion; | |
14470 | ||
14471 | ; return 0; } | |
d836ee96 | 14472 | EOF |
43d99b6d | 14473 | if { (eval echo configure:14474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d836ee96 | 14474 | rm -rf conftest* |
21d1c967 GD |
14475 | |
14476 | echo "$ac_t""found in default search path" 1>&6 | |
14477 | COMPILED_X_PROGRAM=1 | |
14478 | ||
d836ee96 VZ |
14479 | else |
14480 | echo "configure: failed program was:" >&5 | |
14481 | cat conftest.$ac_ext >&5 | |
14482 | rm -rf conftest* | |
21d1c967 GD |
14483 | |
14484 | echo "$ac_t""no" 1>&6 | |
14485 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
14486 | ||
14487 | ||
d836ee96 VZ |
14488 | fi |
14489 | rm -f conftest* | |
21d1c967 GD |
14490 | fi |
14491 | fi | |
14492 | ||
14493 | xpm_link= | |
14494 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
43d99b6d | 14495 | echo "configure:14496: checking for Xpm library" >&5 |
21d1c967 GD |
14496 | |
14497 | ac_find_libraries= | |
14498 | for ac_dir in $SEARCH_LIB; | |
14499 | do | |
14500 | for ac_extension in a so sl dylib; do | |
14501 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
14502 | ac_find_libraries=$ac_dir | |
14503 | break 2 | |
14504 | fi | |
14505 | done | |
14506 | done | |
14507 | ||
14508 | if test "$ac_find_libraries" != "" ; then | |
14509 | ||
14510 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
14511 | result=$? | |
14512 | if test $result = 0; then | |
14513 | ac_path_to_link="" | |
14514 | else | |
14515 | ac_path_to_link=" -L$ac_find_libraries" | |
14516 | fi | |
14517 | ||
14518 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
14519 | xpm_link=" -lXpm" | |
14520 | cat >> confdefs.h <<\EOF | |
14521 | #define wxHAVE_LIB_XPM 1 | |
d836ee96 | 14522 | EOF |
90dd450c | 14523 | |
21d1c967 GD |
14524 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
14525 | else | |
14526 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 14527 | #line 14528 "configure" |
d836ee96 | 14528 | #include "confdefs.h" |
21d1c967 GD |
14529 | |
14530 | #include <X11/xpm.h> | |
14531 | ||
14532 | int main() { | |
14533 | ||
14534 | int version; | |
14535 | version = XpmLibraryVersion(); | |
14536 | ||
14537 | ; return 0; } | |
d836ee96 | 14538 | EOF |
43d99b6d | 14539 | if { (eval echo configure:14540: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d836ee96 | 14540 | rm -rf conftest* |
21d1c967 GD |
14541 | |
14542 | xpm_link=" -lXpm" | |
14543 | cat >> confdefs.h <<\EOF | |
14544 | #define wxHAVE_LIB_XPM 1 | |
14545 | EOF | |
14546 | ||
14547 | echo "$ac_t""found in default search path" 1>&6 | |
14548 | COMPILED_X_PROGRAM=0 | |
14549 | ||
d836ee96 VZ |
14550 | else |
14551 | echo "configure: failed program was:" >&5 | |
14552 | cat conftest.$ac_ext >&5 | |
14553 | rm -rf conftest* | |
21d1c967 GD |
14554 | |
14555 | echo "$ac_t""no" 1>&6 | |
14556 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
14557 | ||
14558 | ||
d836ee96 VZ |
14559 | fi |
14560 | rm -f conftest* | |
21d1c967 GD |
14561 | fi |
14562 | ||
6a30f1c8 | 14563 | echo $ac_n "checking if we need -lXp and/or -lSM -lICE""... $ac_c" 1>&6 |
43d99b6d | 14564 | echo "configure:14565: checking if we need -lXp and/or -lSM -lICE" >&5 |
6a30f1c8 MB |
14565 | libp_link="" |
14566 | libsm_ice_link="" | |
14567 | libs_found=0 | |
14568 | for libp in "" " -lXp"; do | |
14569 | if test "$libs_found" = "0"; then | |
14570 | for libsm_ice in " -lSM -lICE"; do | |
14571 | if test "$libs_found" = "0"; then | |
14572 | save_LIBS="$LIBS" | |
14573 | LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" | |
14574 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 14575 | #line 14576 "configure" |
6a30f1c8 | 14576 | #include "confdefs.h" |
17234b26 | 14577 | |
6a30f1c8 MB |
14578 | #include <Xm/Xm.h> |
14579 | #include <Xm/List.h> | |
14580 | ||
14581 | int main() { | |
14582 | ||
14583 | XmString string = NULL; | |
14584 | Widget w = NULL; | |
14585 | int position = 0; | |
14586 | XmListAddItem(w, string, position); | |
14587 | ||
14588 | ; return 0; } | |
14589 | EOF | |
43d99b6d | 14590 | if { (eval echo configure:14591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6a30f1c8 MB |
14591 | rm -rf conftest* |
14592 | ||
14593 | libp_link="$libp" | |
14594 | libsm_ice_link="$libsm_ice" | |
14595 | echo "$ac_t""need${libp_link}${libsm_ice_link}" 1>&6 | |
14596 | libs_found=1 | |
14597 | ||
14598 | else | |
14599 | echo "configure: failed program was:" >&5 | |
14600 | cat conftest.$ac_ext >&5 | |
14601 | rm -rf conftest* | |
14602 | ||
14603 | ||
14604 | fi | |
14605 | rm -f conftest* | |
14606 | LIBS="$save_LIBS" | |
14607 | fi | |
14608 | done | |
14609 | fi | |
14610 | done | |
14611 | ||
14612 | if test "$libs_found" = "0"; then | |
14613 | echo "$ac_t""can't find the right libraries" 1>&6 | |
14614 | { echo "configure: error: can't link a simple motif program" 1>&2; exit 1; } | |
14615 | fi | |
14616 | ||
14617 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" | |
21d1c967 GD |
14618 | TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo" |
14619 | TOOLKIT=MOTIF | |
14620 | GUIDIST=MOTIF_DIST | |
14621 | fi | |
14622 | ||
14623 | if test "$wxUSE_MAC" = 1; then | |
14624 | if test "$wxUSE_PRECOMP" = "yes"; then | |
14625 | CPPFLAGS="$CPPFLAGS -cpp-precomp" | |
14626 | else | |
14627 | CPPFLAGS="$CPPFLAGS -no-cpp-precomp" | |
14628 | fi | |
14629 | CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile" | |
14630 | CFLAGS="$CFLAGS -fpascal-strings" | |
14631 | CXXFLAGS="$CXXFLAGS -fpascal-strings" | |
14632 | ||
14633 | TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile" | |
14634 | TOOLKIT=MAC | |
14635 | GUIDIST=MACX_DIST | |
14636 | fi | |
14637 | ||
14638 | if test "$wxUSE_PM" = 1; then | |
14639 | TOOLKIT=PM | |
14640 | GUIDIST=GTK_DIST | |
14641 | fi | |
14642 | ||
14643 | if test "$TOOLKIT" = "PM" ; then | |
14644 | TOOLKIT_DIR="os2" | |
14645 | else | |
14646 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
14647 | fi | |
14648 | ||
14649 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" | |
14650 | ||
14651 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
14652 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
14653 | ||
14654 | ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}" | |
14655 | ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}" | |
14656 | ||
14657 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" | |
14658 | if test "$wxUSE_X11" = 1; then | |
14659 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes" | |
14660 | else | |
14661 | TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}" | |
14662 | fi | |
14663 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" | |
14664 | WIDGET_SET=univ | |
14665 | else | |
14666 | ALL_OBJECTS="\$(GUIOBJS)" | |
14667 | ALL_SOURCES="\$(ALL_SOURCES)" | |
14668 | ALL_HEADERS="\$(ALL_HEADERS)" | |
14669 | fi | |
14670 | ||
14671 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" | |
14672 | ||
14673 | if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then | |
14674 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" | |
14675 | fi | |
14676 | ||
14677 | if test "$wxUSE_HTML" = "yes"; then | |
14678 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
14679 | fi | |
14680 | ||
14681 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
14682 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" | |
14683 | fi | |
14684 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
14685 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
14686 | fi | |
14687 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
14688 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
14689 | fi | |
14690 | ||
14691 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
14692 | DISTDIR="wx\$(TOOLKIT)" | |
90dd450c | 14693 | else |
21d1c967 GD |
14694 | USE_GUI=0 |
14695 | ||
14696 | TOOLKIT_DIR="base" | |
14697 | ||
14698 | if test "$USE_WIN32" = 1 ; then | |
14699 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}" | |
14700 | TOOLKIT_VPATH="\${top_srcdir}/src/msw" | |
14701 | ||
14702 | TOOLKIT="MSW" | |
14703 | else | |
14704 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}" | |
14705 | TOOLKIT_VPATH="\${top_srcdir}/src/unix" | |
14706 | fi | |
14707 | ||
14708 | ALL_SOURCES="\$(ALL_SOURCES)" | |
14709 | ALL_HEADERS="\$(ALL_HEADERS)" | |
14710 | ||
14711 | PORT_FILES="\${top_srcdir}/src/files.lst" | |
14712 | ||
14713 | GUIDIST="BASE_DIST" | |
14714 | DISTDIR="wxBase" | |
d836ee96 VZ |
14715 | fi |
14716 | ||
21d1c967 GD |
14717 | |
14718 | if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then | |
14719 | ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)" | |
6232543b | 14720 | fi |
21d1c967 GD |
14721 | |
14722 | if test "$wxUSE_REGEX" = "builtin" ; then | |
14723 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" | |
1e487827 | 14724 | fi |
21d1c967 GD |
14725 | if test "$wxUSE_ZLIB" = "builtin" ; then |
14726 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
bd3277fe VZ |
14727 | fi |
14728 | ||
698dcdb6 | 14729 | |
21d1c967 GD |
14730 | if test "$wxUSE_OPENGL" = "yes"; then |
14731 | if test "$wxUSE_MAC" = 1; then | |
14732 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
14733 | elif test "$wxUSE_MSW" = 1; then | |
14734 | OPENGL_LIBS="-lopengl32 -lglu32" | |
14735 | else | |
14736 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` | |
14737 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 | |
43d99b6d | 14738 | echo "configure:14739: checking for GL/gl.h" >&5 |
90dd450c | 14739 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
698dcdb6 | 14740 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 14741 | else |
698dcdb6 | 14742 | cat > conftest.$ac_ext <<EOF |
43d99b6d | 14743 | #line 14744 "configure" |
10f2d63a | 14744 | #include "confdefs.h" |
21d1c967 | 14745 | #include <GL/gl.h> |
698dcdb6 | 14746 | EOF |
90dd450c | 14747 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
43d99b6d | 14748 | { (eval echo configure:14749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
90dd450c VZ |
14749 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14750 | if test -z "$ac_err"; then | |
4f14bcd8 | 14751 | rm -rf conftest* |
90dd450c | 14752 | eval "ac_cv_header_$ac_safe=yes" |
698dcdb6 | 14753 | else |
90dd450c | 14754 | echo "$ac_err" >&5 |
698dcdb6 VZ |
14755 | echo "configure: failed program was:" >&5 |
14756 | cat conftest.$ac_ext >&5 | |
4f14bcd8 | 14757 | rm -rf conftest* |
90dd450c | 14758 | eval "ac_cv_header_$ac_safe=no" |
703e0a69 | 14759 | fi |
4f14bcd8 | 14760 | rm -f conftest* |
698dcdb6 | 14761 | fi |
90dd450c VZ |
14762 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
14763 | echo "$ac_t""yes" 1>&6 | |
21d1c967 GD |
14764 | |
14765 | echo $ac_n "checking for -lGL""... $ac_c" 1>&6 | |
43d99b6d | 14766 | echo "configure:14767: checking for -lGL" >&5 |
21d1c967 GD |
14767 | |
14768 | ac_find_libraries= | |
14769 | for ac_dir in $SEARCH_LIB; | |
14770 | do | |
14771 | for ac_extension in a so sl dylib; do | |
14772 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
14773 | ac_find_libraries=$ac_dir | |
14774 | break 2 | |
14775 | fi | |
14776 | done | |
14777 | done | |
14778 | ||
14779 | if test "$ac_find_libraries" != "" ; then | |
14780 | ||
14781 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
14782 | result=$? | |
14783 | if test $result = 0; then | |
14784 | ac_path_to_link="" | |
14785 | else | |
14786 | ac_path_to_link=" -L$ac_find_libraries" | |
14787 | fi | |
14788 | ||
14789 | if test "$ac_path_to_link" = " -L/usr/lib" ; then | |
14790 | LDFLAGS_GL="$LDFLAGS" | |
14791 | else | |
14792 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
14793 | fi | |
14794 | OPENGL_LIBS="-lGL -lGLU" | |
14795 | echo "$ac_t""yes" 1>&6 | |
14796 | else | |
14797 | echo "$ac_t""no" 1>&6 | |
14798 | echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6 | |
43d99b6d | 14799 | echo "configure:14800: checking for -lMesaGL" >&5 |
21d1c967 GD |
14800 | |
14801 | ac_find_libraries= | |
14802 | for ac_dir in $SEARCH_LIB; | |
14803 | do | |
14804 | for ac_extension in a so sl dylib; do | |
14805 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
14806 | ac_find_libraries=$ac_dir | |
14807 | break 2 | |
14808 | fi | |
14809 | done | |
14810 | done | |
14811 | ||
14812 | if test "$ac_find_libraries" != "" ; then | |
14813 | ||
14814 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
14815 | result=$? | |
14816 | if test $result = 0; then | |
14817 | ac_path_to_link="" | |
14818 | else | |
14819 | ac_path_to_link=" -L$ac_find_libraries" | |
14820 | fi | |
14821 | ||
14822 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
14823 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
14824 | echo "$ac_t""yes" 1>&6 | |
14825 | else | |
14826 | echo "$ac_t""no" 1>&6 | |
14827 | fi | |
14828 | fi | |
14829 | ||
90dd450c VZ |
14830 | else |
14831 | echo "$ac_t""no" 1>&6 | |
14832 | fi | |
698dcdb6 VZ |
14833 | |
14834 | ||
21d1c967 GD |
14835 | if test "x$OPENGL_LIBS" = "x"; then |
14836 | { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; } | |
14837 | fi | |
14838 | fi | |
90dd450c | 14839 | |
21d1c967 GD |
14840 | if test "$wxUSE_OPENGL" = "yes"; then |
14841 | cat >> confdefs.h <<\EOF | |
14842 | #define wxUSE_OPENGL 1 | |
698dcdb6 | 14843 | EOF |
21d1c967 GD |
14844 | |
14845 | cat >> confdefs.h <<\EOF | |
14846 | #define wxUSE_GLCANVAS 1 | |
14847 | EOF | |
14848 | ||
14849 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl" | |
14850 | fi | |
10f2d63a | 14851 | fi |
21d1c967 GD |
14852 | |
14853 | if test -z "$TOOLKIT_VPATH" ; then | |
14854 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" | |
10f2d63a | 14855 | fi |
21d1c967 GD |
14856 | |
14857 | if test -n "$TOOLKIT" ; then | |
14858 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
14859 | fi | |
14860 | ||
14861 | lib_unicode_suffix= | |
14862 | if test "$wxUSE_UNICODE" = "yes"; then | |
14863 | lib_unicode_suffix=u | |
90dd450c | 14864 | fi |
698dcdb6 | 14865 | |
21d1c967 GD |
14866 | lib_debug_suffix= |
14867 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
14868 | lib_debug_suffix=d | |
14869 | fi | |
698dcdb6 | 14870 | |
21d1c967 GD |
14871 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}" |
14872 | TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}" | |
14873 | ||
14874 | if test "$cross_compiling" = "yes"; then | |
14875 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}" | |
14876 | TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}" | |
14877 | fi | |
14878 | ||
14879 | WX_LIBRARY="wx_${TOOLCHAIN_NAME}" | |
14880 | WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}" | |
14881 | ||
14882 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
14883 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
14884 | ||
14885 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}" | |
14886 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
14887 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}" | |
14888 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
14889 | ||
14890 | case "${host}" in | |
14891 | *-*-cygwin* | *-*-mingw32* ) | |
14892 | ||
14893 | ||
14894 | ||
17234b26 | 14895 | if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then |
21d1c967 GD |
14896 | WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" |
14897 | WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" | |
14898 | WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}" | |
14899 | WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
14900 | else | |
14901 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
14902 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
14903 | fi | |
14904 | ;; | |
14905 | ||
14906 | *-*-darwin* ) | |
14907 | if test "$wxUSE_MAC" = 1; then | |
3bd8fb5f | 14908 | WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.r" |
21d1c967 GD |
14909 | WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.rsrc" |
14910 | fi | |
14911 | ;; | |
14912 | esac | |
14913 | ||
14914 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
14915 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a" | |
14916 | ||
14917 | WXCONFIG_LIBS="-l${WX_LIBRARY}" | |
14918 | WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a" | |
14919 | ||
14920 | if test "$wxUSE_OPENGL" = "yes"; then | |
14921 | WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}" | |
14922 | WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}" | |
14923 | fi | |
14924 | ||
14925 | ||
14926 | ||
14927 | if test "$wxUSE_SHARED" = "yes"; then | |
14928 | case "${host}" in | |
14929 | *-pc-os2_emx | *-pc-os2-emx | \ | |
14930 | *-pc-msdosdjgpp ) | |
14931 | wxUSE_SHARED=no | |
14932 | echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2 | |
14933 | ;; | |
14934 | esac | |
14935 | fi | |
14936 | ||
14937 | if test "$wxUSE_SHARED" = "yes"; then | |
14938 | ||
14939 | if test "$wxUSE_OPENGL" = "yes"; then | |
14940 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
14941 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}" | |
14942 | else | |
14943 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
14944 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}" | |
14945 | fi | |
14946 | ||
14947 | if test "$GCC" = "yes"; then | |
14948 | PIC_FLAG="-fPIC" | |
14949 | fi | |
14950 | ||
14951 | SHARED_LD="${CXX} -shared -o" | |
14952 | ||
14953 | case "${host}" in | |
14954 | *-hp-hpux* ) | |
14955 | if test "$GCC" == "yes"; then | |
14956 | SHARED_LD="${SHARED_LD} ${PIC_FLAG}" | |
14957 | else | |
14958 | LDFLAGS="$LDFLAGS -L/usr/lib" | |
14959 | ||
14960 | SHARED_LD="${CXX} -b -o" | |
14961 | PIC_FLAG="+Z" | |
14962 | fi | |
14963 | ||
14964 | if test "$wxUSE_OPENGL" = "yes"; then | |
14965 | WX_ALL_INSTALLED="preinstall_gl" | |
14966 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" | |
14967 | else | |
14968 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" | |
14969 | fi | |
14970 | ;; | |
14971 | ||
14972 | *-*-linux* ) | |
14973 | if test "$GCC" != "yes"; then | |
14974 | echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6 | |
43d99b6d | 14975 | echo "configure:14976: checking for Intel compiler" >&5 |
21d1c967 | 14976 | if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then |
698dcdb6 | 14977 | echo $ac_n "(cached) $ac_c" 1>&6 |
698dcdb6 | 14978 | else |
21d1c967 GD |
14979 | |
14980 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 14981 | #line 14982 "configure" |
698dcdb6 | 14982 | #include "confdefs.h" |
90dd450c VZ |
14983 | |
14984 | int main() { | |
14985 | ||
21d1c967 GD |
14986 | #ifndef __INTEL_COMPILER |
14987 | #error Not icc | |
14988 | #endif | |
14989 | ||
90dd450c | 14990 | ; return 0; } |
698dcdb6 | 14991 | EOF |
43d99b6d | 14992 | if { (eval echo configure:14993: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
90dd450c | 14993 | rm -rf conftest* |
21d1c967 | 14994 | wx_cv_prog_icc=yes |
6232543b | 14995 | else |
698dcdb6 VZ |
14996 | echo "configure: failed program was:" >&5 |
14997 | cat conftest.$ac_ext >&5 | |
90dd450c | 14998 | rm -rf conftest* |
21d1c967 GD |
14999 | wx_cv_prog_icc=no |
15000 | ||
6232543b | 15001 | fi |
90dd450c | 15002 | rm -f conftest* |
21d1c967 | 15003 | |
698dcdb6 VZ |
15004 | fi |
15005 | ||
21d1c967 GD |
15006 | echo "$ac_t""$wx_cv_prog_icc" 1>&6 |
15007 | if test "$wx_cv_prog_icc" = "yes"; then | |
15008 | PIC_FLAG="-KPIC" | |
15009 | fi | |
15010 | fi | |
15011 | ||
15012 | if test "$wxUSE_SONAME" = "yes" ; then | |
15013 | SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}" | |
15014 | SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}" | |
15015 | WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)" | |
15016 | fi | |
15017 | ;; | |
15018 | ||
15019 | *-*-solaris2* ) | |
15020 | if test "$GCC" = yes ; then | |
15021 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
15022 | else | |
15023 | SHARED_LD="${CXX} -G -o" | |
15024 | PIC_FLAG="-KPIC" | |
15025 | SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}" | |
15026 | SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}" | |
15027 | fi | |
15028 | ;; | |
15029 | ||
15030 | *-*-darwin* ) | |
15031 | CFLAGS="$CFLAGS -fno-common -DWXMAKINGDLL" | |
15032 | CXXFLAGS="$CXXFLAGS -fno-common -DWXMAKINGDLL" | |
15033 | SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o" | |
15034 | PIC_FLAG="-dynamic -fPIC" | |
15035 | SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION}" | |
15036 | SONAME_FLAGS_GL=${SONAME_FLAGS} | |
15037 | ;; | |
15038 | ||
15039 | *-*-aix* ) | |
321d2b14 VZ |
15040 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. |
15041 | set dummy makeC++SharedLib; ac_word=$2 | |
15042 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
43d99b6d | 15043 | echo "configure:15044: checking for $ac_word" >&5 |
321d2b14 VZ |
15044 | if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then |
15045 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15046 | else | |
15047 | if test -n "$AIX_CXX_LD"; then | |
15048 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
15049 | else | |
15050 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
15051 | ac_dummy="$PATH" | |
15052 | for ac_dir in $ac_dummy; do | |
15053 | test -z "$ac_dir" && ac_dir=. | |
15054 | if test -f $ac_dir/$ac_word; then | |
15055 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
15056 | break | |
15057 | fi | |
15058 | done | |
15059 | IFS="$ac_save_ifs" | |
15060 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" | |
15061 | fi | |
15062 | fi | |
15063 | AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD" | |
15064 | if test -n "$AIX_CXX_LD"; then | |
15065 | echo "$ac_t""$AIX_CXX_LD" 1>&6 | |
15066 | else | |
15067 | echo "$ac_t""no" 1>&6 | |
15068 | fi | |
15069 | ||
15070 | ||
15071 | SHARED_LD="$(AIX_CXX_LD) -p 0 -o" | |
21d1c967 GD |
15072 | ;; |
15073 | ||
15074 | *-*-cygwin* | *-*-mingw32* ) | |
15075 | ||
15076 | WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a" | |
15077 | ||
15078 | SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o" | |
15079 | TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1" | |
15080 | ||
15081 | PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1" | |
15082 | ||
15083 | if test "$wxUSE_OPENGL" = "yes"; then | |
15084 | WX_ALL_INSTALLED="preinstall_gl" | |
15085 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" | |
15086 | else | |
15087 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" | |
15088 | fi | |
15089 | ;; | |
15090 | ||
15091 | *-*-beos* ) | |
15092 | SHARED_LD="${LD} -shared -o" | |
15093 | ;; | |
15094 | ||
15095 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ | |
15096 | *-*-sunos4* | \ | |
15097 | *-*-irix5* | *-*-irix6* | \ | |
15098 | *-*-osf* | \ | |
15099 | *-*-dgux5* | \ | |
15100 | *-*-sysv5* ) | |
15101 | ;; | |
15102 | ||
15103 | *) | |
15104 | { echo "configure: error: unknown system type $host." 1>&2; exit 1; } | |
15105 | esac | |
15106 | ||
15107 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
15108 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
15109 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" | |
15110 | fi | |
15111 | ||
15112 | WX_TARGET_LIBRARY_TYPE="so" | |
15113 | INSTALL_LIBRARY='$(INSTALL_PROGRAM)' | |
90dd450c | 15114 | fi |
10f2d63a | 15115 | |
21d1c967 GD |
15116 | if test "$wxUSE_SHARED" = "no"; then |
15117 | ||
15118 | if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then | |
15119 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
15120 | fi | |
15121 | ||
15122 | if test "$wxUSE_MAC" = 1; then | |
15123 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
15124 | fi | |
15125 | ||
15126 | if test "$wxUSE_OPENGL" = "yes"; then | |
15127 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl" | |
15128 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}" | |
15129 | else | |
15130 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}" | |
15131 | fi | |
15132 | ||
15133 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
15134 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" | |
15135 | ||
15136 | WX_TARGET_LIBRARY_TYPE="a" | |
15137 | INSTALL_LIBRARY='$(INSTALL_DATA)' | |
90dd450c | 15138 | fi |
1e487827 | 15139 | |
21d1c967 GD |
15140 | if test "$wxUSE_MAC" = 1; then |
15141 | LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}" | |
15142 | WX_ALL="${WX_ALL} ${LIBWXMACRES}" | |
15143 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res" | |
15144 | # Extract the first word of "Rez", so it can be a program name with args. | |
15145 | set dummy Rez; ac_word=$2 | |
15146 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
43d99b6d | 15147 | echo "configure:15148: checking for $ac_word" >&5 |
21d1c967 | 15148 | if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then |
698dcdb6 | 15149 | echo $ac_n "(cached) $ac_c" 1>&6 |
b93d0d08 | 15150 | else |
21d1c967 GD |
15151 | if test -n "$RESCOMP"; then |
15152 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
b93d0d08 | 15153 | else |
21d1c967 GD |
15154 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
15155 | ac_dummy="$PATH" | |
15156 | for ac_dir in $ac_dummy; do | |
15157 | test -z "$ac_dir" && ac_dir=. | |
15158 | if test -f $ac_dir/$ac_word; then | |
15159 | ac_cv_prog_RESCOMP="Rez" | |
15160 | break | |
15161 | fi | |
15162 | done | |
15163 | IFS="$ac_save_ifs" | |
15164 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
b93d0d08 | 15165 | fi |
b93d0d08 | 15166 | fi |
21d1c967 GD |
15167 | RESCOMP="$ac_cv_prog_RESCOMP" |
15168 | if test -n "$RESCOMP"; then | |
15169 | echo "$ac_t""$RESCOMP" 1>&6 | |
90dd450c VZ |
15170 | else |
15171 | echo "$ac_t""no" 1>&6 | |
15172 | fi | |
b93d0d08 | 15173 | |
21d1c967 GD |
15174 | # Extract the first word of "DeRez", so it can be a program name with args. |
15175 | set dummy DeRez; ac_word=$2 | |
15176 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
43d99b6d | 15177 | echo "configure:15178: checking for $ac_word" >&5 |
21d1c967 | 15178 | if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then |
698dcdb6 | 15179 | echo $ac_n "(cached) $ac_c" 1>&6 |
3a922bb4 | 15180 | else |
21d1c967 GD |
15181 | if test -n "$DEREZ"; then |
15182 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
4f14bcd8 | 15183 | else |
21d1c967 GD |
15184 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
15185 | ac_dummy="$PATH" | |
15186 | for ac_dir in $ac_dummy; do | |
15187 | test -z "$ac_dir" && ac_dir=. | |
15188 | if test -f $ac_dir/$ac_word; then | |
15189 | ac_cv_prog_DEREZ="DeRez" | |
15190 | break | |
15191 | fi | |
15192 | done | |
15193 | IFS="$ac_save_ifs" | |
15194 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" | |
3a922bb4 | 15195 | fi |
90dd450c | 15196 | fi |
21d1c967 GD |
15197 | DEREZ="$ac_cv_prog_DEREZ" |
15198 | if test -n "$DEREZ"; then | |
15199 | echo "$ac_t""$DEREZ" 1>&6 | |
90dd450c VZ |
15200 | else |
15201 | echo "$ac_t""no" 1>&6 | |
3a922bb4 | 15202 | fi |
698dcdb6 | 15203 | |
21d1c967 GD |
15204 | MACOSX_BUNDLE="bundle" |
15205 | if test "$wxUSE_SHARED" = "yes"; then | |
15206 | LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r -o \$(BIN_PROGRAM)" | |
15207 | LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r -o" | |
15208 | else | |
15209 | LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r ${LIBWXMACRES} -o \$(BIN_PROGRAM)" | |
15210 | LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r \${prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
15211 | fi | |
15212 | else | |
15213 | if test "$wxUSE_PM" = 1; then | |
15214 | LIBWXMACRESCOMP="emxbind -ep \$(BIN_PROGRAM)" | |
90dd450c | 15215 | fi |
4f14bcd8 | 15216 | fi |
10f2d63a | 15217 | |
703e0a69 | 15218 | |
90dd450c | 15219 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
43d99b6d | 15220 | echo "configure:15221: checking for ANSI C header files" >&5 |
90dd450c | 15221 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
698dcdb6 VZ |
15222 | echo $ac_n "(cached) $ac_c" 1>&6 |
15223 | else | |
15224 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 15225 | #line 15226 "configure" |
10f2d63a | 15226 | #include "confdefs.h" |
90dd450c VZ |
15227 | #include <stdlib.h> |
15228 | #include <stdarg.h> | |
15229 | #include <string.h> | |
15230 | #include <float.h> | |
698dcdb6 | 15231 | EOF |
90dd450c | 15232 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
43d99b6d | 15233 | { (eval echo configure:15234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
90dd450c VZ |
15234 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15235 | if test -z "$ac_err"; then | |
15236 | rm -rf conftest* | |
15237 | ac_cv_header_stdc=yes | |
10f2d63a | 15238 | else |
90dd450c | 15239 | echo "$ac_err" >&5 |
698dcdb6 | 15240 | echo "configure: failed program was:" >&5 |
10f2d63a | 15241 | cat conftest.$ac_ext >&5 |
90dd450c VZ |
15242 | rm -rf conftest* |
15243 | ac_cv_header_stdc=no | |
10f2d63a | 15244 | fi |
90dd450c VZ |
15245 | rm -f conftest* |
15246 | ||
15247 | if test $ac_cv_header_stdc = yes; then | |
15248 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
15249 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 15250 | #line 15251 "configure" |
90dd450c VZ |
15251 | #include "confdefs.h" |
15252 | #include <string.h> | |
15253 | EOF | |
15254 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15255 | egrep "memchr" >/dev/null 2>&1; then | |
15256 | : | |
15257 | else | |
15258 | rm -rf conftest* | |
15259 | ac_cv_header_stdc=no | |
10f2d63a | 15260 | fi |
90dd450c | 15261 | rm -f conftest* |
10f2d63a | 15262 | |
4f14bcd8 | 15263 | fi |
90dd450c VZ |
15264 | |
15265 | if test $ac_cv_header_stdc = yes; then | |
15266 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
15267 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 15268 | #line 15269 "configure" |
90dd450c VZ |
15269 | #include "confdefs.h" |
15270 | #include <stdlib.h> | |
10f2d63a | 15271 | EOF |
90dd450c VZ |
15272 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
15273 | egrep "free" >/dev/null 2>&1; then | |
15274 | : | |
15275 | else | |
15276 | rm -rf conftest* | |
15277 | ac_cv_header_stdc=no | |
15278 | fi | |
15279 | rm -f conftest* | |
10f2d63a | 15280 | |
90dd450c | 15281 | fi |
698dcdb6 | 15282 | |
90dd450c VZ |
15283 | if test $ac_cv_header_stdc = yes; then |
15284 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
15285 | if test "$cross_compiling" = yes; then | |
15286 | : | |
4f14bcd8 GD |
15287 | else |
15288 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 15289 | #line 15290 "configure" |
10f2d63a | 15290 | #include "confdefs.h" |
90dd450c VZ |
15291 | #include <ctype.h> |
15292 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
15293 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
15294 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
15295 | int main () { int i; for (i = 0; i < 256; i++) | |
15296 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
15297 | exit (0); } | |
15298 | ||
698dcdb6 | 15299 | EOF |
43d99b6d | 15300 | if { (eval echo configure:15301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 | 15301 | then |
90dd450c | 15302 | : |
10f2d63a | 15303 | else |
698dcdb6 VZ |
15304 | echo "configure: failed program was:" >&5 |
15305 | cat conftest.$ac_ext >&5 | |
4f14bcd8 | 15306 | rm -fr conftest* |
90dd450c | 15307 | ac_cv_header_stdc=no |
10f2d63a | 15308 | fi |
4f14bcd8 | 15309 | rm -fr conftest* |
10f2d63a | 15310 | fi |
698dcdb6 | 15311 | |
4f14bcd8 | 15312 | fi |
90dd450c | 15313 | fi |
10f2d63a | 15314 | |
90dd450c VZ |
15315 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
15316 | if test $ac_cv_header_stdc = yes; then | |
15317 | cat >> confdefs.h <<\EOF | |
15318 | #define STDC_HEADERS 1 | |
15319 | EOF | |
698dcdb6 | 15320 | |
90dd450c | 15321 | fi |
9d353d4a | 15322 | |
90dd450c | 15323 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
43d99b6d | 15324 | echo "configure:15325: checking for mode_t" >&5 |
90dd450c | 15325 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
9d353d4a | 15326 | echo $ac_n "(cached) $ac_c" 1>&6 |
9d353d4a RR |
15327 | else |
15328 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 15329 | #line 15330 "configure" |
9d353d4a | 15330 | #include "confdefs.h" |
90dd450c VZ |
15331 | #include <sys/types.h> |
15332 | #if STDC_HEADERS | |
15333 | #include <stdlib.h> | |
15334 | #include <stddef.h> | |
15335 | #endif | |
9d353d4a | 15336 | EOF |
90dd450c VZ |
15337 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
15338 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
15339 | rm -rf conftest* | |
15340 | ac_cv_type_mode_t=yes | |
9d353d4a | 15341 | else |
90dd450c VZ |
15342 | rm -rf conftest* |
15343 | ac_cv_type_mode_t=no | |
9d353d4a | 15344 | fi |
90dd450c | 15345 | rm -f conftest* |
9d353d4a RR |
15346 | |
15347 | fi | |
90dd450c VZ |
15348 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 |
15349 | if test $ac_cv_type_mode_t = no; then | |
15350 | cat >> confdefs.h <<\EOF | |
15351 | #define mode_t int | |
9d353d4a RR |
15352 | EOF |
15353 | ||
90dd450c | 15354 | fi |
9d353d4a | 15355 | |
90dd450c | 15356 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
43d99b6d | 15357 | echo "configure:15358: checking for off_t" >&5 |
90dd450c | 15358 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
698dcdb6 | 15359 | echo $ac_n "(cached) $ac_c" 1>&6 |
4f14bcd8 GD |
15360 | else |
15361 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 15362 | #line 15363 "configure" |
10f2d63a | 15363 | #include "confdefs.h" |
90dd450c VZ |
15364 | #include <sys/types.h> |
15365 | #if STDC_HEADERS | |
15366 | #include <stdlib.h> | |
15367 | #include <stddef.h> | |
15368 | #endif | |
698dcdb6 | 15369 | EOF |
90dd450c VZ |
15370 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
15371 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
15372 | rm -rf conftest* | |
15373 | ac_cv_type_off_t=yes | |
698dcdb6 | 15374 | else |
90dd450c VZ |
15375 | rm -rf conftest* |
15376 | ac_cv_type_off_t=no | |
698dcdb6 | 15377 | fi |
90dd450c | 15378 | rm -f conftest* |
698dcdb6 VZ |
15379 | |
15380 | fi | |
90dd450c VZ |
15381 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 |
15382 | if test $ac_cv_type_off_t = no; then | |
15383 | cat >> confdefs.h <<\EOF | |
15384 | #define off_t long | |
10f2d63a VZ |
15385 | EOF |
15386 | ||
90dd450c | 15387 | fi |
10f2d63a | 15388 | |
90dd450c | 15389 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
43d99b6d | 15390 | echo "configure:15391: checking for pid_t" >&5 |
90dd450c | 15391 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
698dcdb6 | 15392 | echo $ac_n "(cached) $ac_c" 1>&6 |
4f14bcd8 GD |
15393 | else |
15394 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 15395 | #line 15396 "configure" |
10f2d63a | 15396 | #include "confdefs.h" |
90dd450c VZ |
15397 | #include <sys/types.h> |
15398 | #if STDC_HEADERS | |
15399 | #include <stdlib.h> | |
15400 | #include <stddef.h> | |
15401 | #endif | |
698dcdb6 | 15402 | EOF |
90dd450c VZ |
15403 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
15404 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
15405 | rm -rf conftest* | |
15406 | ac_cv_type_pid_t=yes | |
698dcdb6 | 15407 | else |
90dd450c VZ |
15408 | rm -rf conftest* |
15409 | ac_cv_type_pid_t=no | |
4f14bcd8 | 15410 | fi |
90dd450c | 15411 | rm -f conftest* |
698dcdb6 VZ |
15412 | |
15413 | fi | |
90dd450c VZ |
15414 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 |
15415 | if test $ac_cv_type_pid_t = no; then | |
15416 | cat >> confdefs.h <<\EOF | |
15417 | #define pid_t int | |
10f2d63a VZ |
15418 | EOF |
15419 | ||
90dd450c | 15420 | fi |
18dbb1f6 | 15421 | |
90dd450c | 15422 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
43d99b6d | 15423 | echo "configure:15424: checking for size_t" >&5 |
90dd450c | 15424 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
18dbb1f6 | 15425 | echo $ac_n "(cached) $ac_c" 1>&6 |
90dd450c VZ |
15426 | else |
15427 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 15428 | #line 15429 "configure" |
4f14bcd8 GD |
15429 | #include "confdefs.h" |
15430 | #include <sys/types.h> | |
90dd450c VZ |
15431 | #if STDC_HEADERS |
15432 | #include <stdlib.h> | |
15433 | #include <stddef.h> | |
4f14bcd8 | 15434 | #endif |
18dbb1f6 | 15435 | EOF |
90dd450c VZ |
15436 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
15437 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
18dbb1f6 | 15438 | rm -rf conftest* |
90dd450c | 15439 | ac_cv_type_size_t=yes |
18dbb1f6 | 15440 | else |
18dbb1f6 | 15441 | rm -rf conftest* |
90dd450c | 15442 | ac_cv_type_size_t=no |
18dbb1f6 VZ |
15443 | fi |
15444 | rm -f conftest* | |
90dd450c | 15445 | |
1e487827 | 15446 | fi |
90dd450c VZ |
15447 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 |
15448 | if test $ac_cv_type_size_t = no; then | |
15449 | cat >> confdefs.h <<\EOF | |
15450 | #define size_t unsigned | |
15451 | EOF | |
15452 | ||
15453 | fi | |
15454 | ||
15455 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 | |
43d99b6d | 15456 | echo "configure:15457: checking for uid_t in sys/types.h" >&5 |
90dd450c VZ |
15457 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
15458 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b3e8d00a VZ |
15459 | else |
15460 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 15461 | #line 15462 "configure" |
b3e8d00a | 15462 | #include "confdefs.h" |
90dd450c | 15463 | #include <sys/types.h> |
b3e8d00a | 15464 | EOF |
90dd450c VZ |
15465 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
15466 | egrep "uid_t" >/dev/null 2>&1; then | |
15467 | rm -rf conftest* | |
15468 | ac_cv_type_uid_t=yes | |
b3e8d00a | 15469 | else |
90dd450c VZ |
15470 | rm -rf conftest* |
15471 | ac_cv_type_uid_t=no | |
b3e8d00a | 15472 | fi |
90dd450c | 15473 | rm -f conftest* |
b3e8d00a | 15474 | |
4f14bcd8 GD |
15475 | fi |
15476 | ||
90dd450c VZ |
15477 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
15478 | if test $ac_cv_type_uid_t = no; then | |
4f14bcd8 | 15479 | cat >> confdefs.h <<\EOF |
90dd450c VZ |
15480 | #define uid_t int |
15481 | EOF | |
15482 | ||
15483 | cat >> confdefs.h <<\EOF | |
15484 | #define gid_t int | |
b3e8d00a | 15485 | EOF |
4f14bcd8 | 15486 | |
b3e8d00a | 15487 | fi |
b3e8d00a VZ |
15488 | |
15489 | ||
90dd450c VZ |
15490 | |
15491 | ac_ext=C | |
4f14bcd8 GD |
15492 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
15493 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15494 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15495 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15496 | cross_compiling=$ac_cv_prog_cxx_cross | |
90dd450c VZ |
15497 | |
15498 | echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6 | |
43d99b6d | 15499 | echo "configure:15500: checking if size_t is unsigned int" >&5 |
90dd450c VZ |
15500 | if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then |
15501 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15502 | else | |
15503 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 15504 | #line 15505 "configure" |
10f2d63a | 15505 | #include "confdefs.h" |
90dd450c VZ |
15506 | #include <stddef.h> |
15507 | int main() { | |
15508 | ||
15509 | return 0; } | |
15510 | ||
15511 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
15512 | ||
15513 | int bar() { | |
15514 | ||
15515 | ; return 0; } | |
698dcdb6 | 15516 | EOF |
43d99b6d | 15517 | if { (eval echo configure:15518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
90dd450c VZ |
15518 | rm -rf conftest* |
15519 | wx_cv_size_t_is_uint=no | |
698dcdb6 VZ |
15520 | else |
15521 | echo "configure: failed program was:" >&5 | |
15522 | cat conftest.$ac_ext >&5 | |
15523 | rm -rf conftest* | |
90dd450c VZ |
15524 | wx_cv_size_t_is_uint=yes |
15525 | ||
698dcdb6 VZ |
15526 | fi |
15527 | rm -f conftest* | |
90dd450c | 15528 | |
698dcdb6 VZ |
15529 | fi |
15530 | ||
90dd450c | 15531 | echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6 |
4f14bcd8 | 15532 | |
90dd450c | 15533 | if test "$wx_cv_size_t_is_uint" = "yes"; then |
4f14bcd8 | 15534 | cat >> confdefs.h <<\EOF |
90dd450c | 15535 | #define wxSIZE_T_IS_UINT 1 |
698dcdb6 VZ |
15536 | EOF |
15537 | ||
90dd450c VZ |
15538 | else |
15539 | echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6 | |
43d99b6d | 15540 | echo "configure:15541: checking if size_t is unsigned long" >&5 |
90dd450c | 15541 | if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then |
698dcdb6 VZ |
15542 | echo $ac_n "(cached) $ac_c" 1>&6 |
15543 | else | |
15544 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 15545 | #line 15546 "configure" |
10f2d63a | 15546 | #include "confdefs.h" |
90dd450c VZ |
15547 | #include <stddef.h> |
15548 | int main() { | |
15549 | ||
15550 | return 0; } | |
15551 | ||
15552 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
15553 | ||
15554 | int bar() { | |
15555 | ||
15556 | ; return 0; } | |
698dcdb6 | 15557 | EOF |
43d99b6d | 15558 | if { (eval echo configure:15559: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 15559 | rm -rf conftest* |
90dd450c | 15560 | wx_cv_size_t_is_ulong=no |
698dcdb6 VZ |
15561 | else |
15562 | echo "configure: failed program was:" >&5 | |
15563 | cat conftest.$ac_ext >&5 | |
15564 | rm -rf conftest* | |
90dd450c VZ |
15565 | wx_cv_size_t_is_ulong=yes |
15566 | ||
698dcdb6 VZ |
15567 | fi |
15568 | rm -f conftest* | |
90dd450c | 15569 | |
698dcdb6 | 15570 | fi |
10f2d63a | 15571 | |
90dd450c | 15572 | echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6 |
10f2d63a | 15573 | |
90dd450c VZ |
15574 | if test "$wx_cv_size_t_is_ulong" = "yes"; then |
15575 | cat >> confdefs.h <<\EOF | |
15576 | #define wxSIZE_T_IS_ULONG 1 | |
4f14bcd8 GD |
15577 | EOF |
15578 | ||
15579 | fi | |
90dd450c | 15580 | fi |
1e487827 | 15581 | |
90dd450c | 15582 | ac_ext=c |
4f14bcd8 GD |
15583 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
15584 | ac_cpp='$CPP $CPPFLAGS' | |
15585 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15586 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15587 | cross_compiling=$ac_cv_prog_cc_cross | |
698dcdb6 | 15588 | |
698dcdb6 VZ |
15589 | |
15590 | ||
90dd450c | 15591 | echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6 |
43d99b6d | 15592 | echo "configure:15593: checking for pw_gecos in struct passwd" >&5 |
90dd450c | 15593 | if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then |
698dcdb6 VZ |
15594 | echo $ac_n "(cached) $ac_c" 1>&6 |
15595 | else | |
15596 | ||
90dd450c | 15597 | cat > conftest.$ac_ext <<EOF |
43d99b6d | 15598 | #line 15599 "configure" |
4f14bcd8 | 15599 | #include "confdefs.h" |
90dd450c | 15600 | #include <pwd.h> |
4f14bcd8 | 15601 | int main() { |
f6bcfd97 | 15602 | |
90dd450c VZ |
15603 | char *p; |
15604 | struct passwd *pw; | |
15605 | p = pw->pw_gecos; | |
15606 | ||
698dcdb6 VZ |
15607 | ; return 0; } |
15608 | EOF | |
43d99b6d | 15609 | if { (eval echo configure:15610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
15610 | rm -rf conftest* |
15611 | ||
90dd450c VZ |
15612 | wx_cv_struct_pw_gecos=yes |
15613 | ||
10f2d63a | 15614 | else |
698dcdb6 VZ |
15615 | echo "configure: failed program was:" >&5 |
15616 | cat conftest.$ac_ext >&5 | |
15617 | rm -rf conftest* | |
15618 | ||
90dd450c VZ |
15619 | wx_cv_struct_pw_gecos=no |
15620 | ||
15621 | ||
4f14bcd8 GD |
15622 | fi |
15623 | rm -f conftest* | |
90dd450c | 15624 | |
c521c494 | 15625 | |
4f14bcd8 | 15626 | fi |
c521c494 | 15627 | |
90dd450c | 15628 | echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6 |
c521c494 | 15629 | |
90dd450c | 15630 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
4f14bcd8 | 15631 | cat >> confdefs.h <<\EOF |
90dd450c | 15632 | #define HAVE_PW_GECOS 1 |
4f14bcd8 | 15633 | EOF |
c521c494 | 15634 | |
90dd450c | 15635 | fi |
4f14bcd8 GD |
15636 | |
15637 | ||
d29b553b VZ |
15638 | WCHAR_OK=0 |
15639 | if test "$wx_cv_sizeof_wchar_t" != "0"; then | |
15640 | WCHAR_LINK= | |
7a30264c VZ |
15641 | for ac_func in wcslen |
15642 | do | |
15643 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
43d99b6d | 15644 | echo "configure:15645: checking for $ac_func" >&5 |
7a30264c | 15645 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
4f14bcd8 GD |
15646 | echo $ac_n "(cached) $ac_c" 1>&6 |
15647 | else | |
7a30264c | 15648 | cat > conftest.$ac_ext <<EOF |
43d99b6d | 15649 | #line 15650 "configure" |
4f14bcd8 | 15650 | #include "confdefs.h" |
7a30264c VZ |
15651 | /* System header to define __stub macros and hopefully few prototypes, |
15652 | which can conflict with char $ac_func(); below. */ | |
15653 | #include <assert.h> | |
4f14bcd8 GD |
15654 | /* Override any gcc2 internal prototype to avoid an error. */ |
15655 | /* We use char because int might match the return type of a gcc2 | |
15656 | builtin and then its argument prototype would still apply. */ | |
7a30264c | 15657 | char $ac_func(); |
4f14bcd8 GD |
15658 | |
15659 | int main() { | |
7a30264c VZ |
15660 | |
15661 | /* The GNU C library defines this for functions which it implements | |
15662 | to always fail with ENOSYS. Some functions are actually named | |
15663 | something starting with __ and the normal name is an alias. */ | |
15664 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15665 | choke me | |
15666 | #else | |
15667 | $ac_func(); | |
15668 | #endif | |
15669 | ||
698dcdb6 VZ |
15670 | ; return 0; } |
15671 | EOF | |
43d99b6d | 15672 | if { (eval echo configure:15673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15673 | rm -rf conftest* |
7a30264c | 15674 | eval "ac_cv_func_$ac_func=yes" |
c521c494 | 15675 | else |
698dcdb6 VZ |
15676 | echo "configure: failed program was:" >&5 |
15677 | cat conftest.$ac_ext >&5 | |
15678 | rm -rf conftest* | |
7a30264c | 15679 | eval "ac_cv_func_$ac_func=no" |
6232543b | 15680 | fi |
698dcdb6 | 15681 | rm -f conftest* |
1e487827 | 15682 | fi |
7a30264c VZ |
15683 | |
15684 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
4f14bcd8 | 15685 | echo "$ac_t""yes" 1>&6 |
7a30264c VZ |
15686 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
15687 | cat >> confdefs.h <<EOF | |
15688 | #define $ac_tr_func 1 | |
15689 | EOF | |
15690 | ||
15691 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 15692 | #define HAVE_WCSLEN 1 |
9d8deca0 VZ |
15693 | EOF |
15694 | ||
7a30264c VZ |
15695 | WCHAR_OK=1 |
15696 | ||
9d8deca0 | 15697 | else |
4f14bcd8 | 15698 | echo "$ac_t""no" 1>&6 |
7a30264c VZ |
15699 | fi |
15700 | done | |
9d8deca0 | 15701 | |
7a30264c VZ |
15702 | |
15703 | if test "$WCHAR_OK" = 0; then | |
15704 | if test "$TOOLKIT" = "MSW"; then | |
15705 | echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6 | |
43d99b6d | 15706 | echo "configure:15707: checking for wcslen in -lmsvcrt" >&5 |
7a30264c | 15707 | ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'` |
4f14bcd8 | 15708 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
698dcdb6 | 15709 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 15710 | else |
4f14bcd8 | 15711 | ac_save_LIBS="$LIBS" |
7a30264c | 15712 | LIBS="-lmsvcrt $LIBS" |
4f14bcd8 | 15713 | cat > conftest.$ac_ext <<EOF |
43d99b6d | 15714 | #line 15715 "configure" |
10f2d63a | 15715 | #include "confdefs.h" |
4f14bcd8 GD |
15716 | /* Override any gcc2 internal prototype to avoid an error. */ |
15717 | /* We use char because int might match the return type of a gcc2 | |
15718 | builtin and then its argument prototype would still apply. */ | |
15719 | char wcslen(); | |
10f2d63a | 15720 | |
698dcdb6 | 15721 | int main() { |
4f14bcd8 | 15722 | wcslen() |
698dcdb6 VZ |
15723 | ; return 0; } |
15724 | EOF | |
43d99b6d | 15725 | if { (eval echo configure:15726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15726 | rm -rf conftest* |
4f14bcd8 | 15727 | eval "ac_cv_lib_$ac_lib_var=yes" |
10f2d63a | 15728 | else |
698dcdb6 VZ |
15729 | echo "configure: failed program was:" >&5 |
15730 | cat conftest.$ac_ext >&5 | |
15731 | rm -rf conftest* | |
4f14bcd8 | 15732 | eval "ac_cv_lib_$ac_lib_var=no" |
6232543b | 15733 | fi |
698dcdb6 | 15734 | rm -f conftest* |
4f14bcd8 | 15735 | LIBS="$ac_save_LIBS" |
703e0a69 | 15736 | |
1e487827 | 15737 | fi |
4f14bcd8 GD |
15738 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
15739 | echo "$ac_t""yes" 1>&6 | |
15740 | ||
7a30264c | 15741 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 15742 | #define HAVE_WCSLEN 1 |
9d8deca0 VZ |
15743 | EOF |
15744 | ||
7a30264c VZ |
15745 | WCHAR_OK=1 |
15746 | ||
4f14bcd8 GD |
15747 | else |
15748 | echo "$ac_t""no" 1>&6 | |
d29b553b | 15749 | fi |
698dcdb6 | 15750 | |
7a30264c VZ |
15751 | else |
15752 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 | |
43d99b6d | 15753 | echo "configure:15754: checking for wcslen in -lw" >&5 |
7a30264c | 15754 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` |
4f14bcd8 | 15755 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
698dcdb6 VZ |
15756 | echo $ac_n "(cached) $ac_c" 1>&6 |
15757 | else | |
4f14bcd8 | 15758 | ac_save_LIBS="$LIBS" |
7a30264c | 15759 | LIBS="-lw $LIBS" |
4f14bcd8 | 15760 | cat > conftest.$ac_ext <<EOF |
43d99b6d | 15761 | #line 15762 "configure" |
95c8801c | 15762 | #include "confdefs.h" |
4f14bcd8 GD |
15763 | /* Override any gcc2 internal prototype to avoid an error. */ |
15764 | /* We use char because int might match the return type of a gcc2 | |
15765 | builtin and then its argument prototype would still apply. */ | |
15766 | char wcslen(); | |
95c8801c | 15767 | |
4f14bcd8 GD |
15768 | int main() { |
15769 | wcslen() | |
698dcdb6 VZ |
15770 | ; return 0; } |
15771 | EOF | |
43d99b6d | 15772 | if { (eval echo configure:15773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15773 | rm -rf conftest* |
4f14bcd8 | 15774 | eval "ac_cv_lib_$ac_lib_var=yes" |
95c8801c | 15775 | else |
698dcdb6 VZ |
15776 | echo "configure: failed program was:" >&5 |
15777 | cat conftest.$ac_ext >&5 | |
15778 | rm -rf conftest* | |
4f14bcd8 | 15779 | eval "ac_cv_lib_$ac_lib_var=no" |
95c8801c | 15780 | fi |
698dcdb6 | 15781 | rm -f conftest* |
4f14bcd8 | 15782 | LIBS="$ac_save_LIBS" |
95c8801c VS |
15783 | |
15784 | fi | |
4f14bcd8 GD |
15785 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
15786 | echo "$ac_t""yes" 1>&6 | |
15787 | ||
7a30264c | 15788 | cat >> confdefs.h <<\EOF |
4f14bcd8 GD |
15789 | #define HAVE_WCSLEN 1 |
15790 | EOF | |
698dcdb6 | 15791 | |
7a30264c VZ |
15792 | WCHAR_LINK=" -lw" |
15793 | WCHAR_OK=1 | |
15794 | ||
4f14bcd8 GD |
15795 | else |
15796 | echo "$ac_t""no" 1>&6 | |
15797 | fi | |
10f2d63a | 15798 | |
7a30264c | 15799 | fi |
d29b553b | 15800 | fi |
4f14bcd8 | 15801 | fi |
95c8801c | 15802 | |
d29b553b VZ |
15803 | if test "$WCHAR_OK" = 1; then |
15804 | cat >> confdefs.h <<\EOF | |
15805 | #define wxUSE_WCHAR_T 1 | |
15806 | EOF | |
10f2d63a | 15807 | |
1e487827 | 15808 | |
d29b553b | 15809 | for ac_func in wcsrtombs |
eb4efbdc | 15810 | do |
698dcdb6 | 15811 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
43d99b6d | 15812 | echo "configure:15813: checking for $ac_func" >&5 |
698dcdb6 VZ |
15813 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15814 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15815 | else | |
15816 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 15817 | #line 15818 "configure" |
eb4efbdc VZ |
15818 | #include "confdefs.h" |
15819 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 15820 | which can conflict with char $ac_func(); below. */ |
eb4efbdc VZ |
15821 | #include <assert.h> |
15822 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15823 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15824 | builtin and then its argument prototype would still apply. */ |
15825 | char $ac_func(); | |
15826 | ||
15827 | int main() { | |
eb4efbdc VZ |
15828 | |
15829 | /* The GNU C library defines this for functions which it implements | |
15830 | to always fail with ENOSYS. Some functions are actually named | |
15831 | something starting with __ and the normal name is an alias. */ | |
15832 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15833 | choke me | |
15834 | #else | |
698dcdb6 | 15835 | $ac_func(); |
eb4efbdc VZ |
15836 | #endif |
15837 | ||
698dcdb6 | 15838 | ; return 0; } |
eb4efbdc | 15839 | EOF |
43d99b6d | 15840 | if { (eval echo configure:15841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15841 | rm -rf conftest* |
15842 | eval "ac_cv_func_$ac_func=yes" | |
15843 | else | |
15844 | echo "configure: failed program was:" >&5 | |
15845 | cat conftest.$ac_ext >&5 | |
15846 | rm -rf conftest* | |
15847 | eval "ac_cv_func_$ac_func=no" | |
15848 | fi | |
15849 | rm -f conftest* | |
15850 | fi | |
eb4efbdc | 15851 | |
698dcdb6 VZ |
15852 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
15853 | echo "$ac_t""yes" 1>&6 | |
15854 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15855 | cat >> confdefs.h <<EOF | |
15856 | #define $ac_tr_func 1 | |
15857 | EOF | |
15858 | ||
15859 | else | |
15860 | echo "$ac_t""no" 1>&6 | |
eb4efbdc VZ |
15861 | fi |
15862 | done | |
15863 | ||
d29b553b | 15864 | else |
a1ea5055 GD |
15865 | if test "$USE_DARWIN" = 1; then |
15866 | cat >> confdefs.h <<\EOF | |
15867 | #define wxUSE_WCHAR_T 1 | |
15868 | EOF | |
15869 | ||
15870 | else | |
15871 | echo "configure: warning: Wide character support is unavailable" 1>&2 | |
15872 | fi | |
d29b553b | 15873 | fi |
698dcdb6 | 15874 | |
4f14bcd8 | 15875 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
43d99b6d | 15876 | echo "configure:15877: checking for vprintf" >&5 |
4f14bcd8 | 15877 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
698dcdb6 VZ |
15878 | echo $ac_n "(cached) $ac_c" 1>&6 |
15879 | else | |
4f14bcd8 | 15880 | cat > conftest.$ac_ext <<EOF |
43d99b6d | 15881 | #line 15882 "configure" |
f6bcfd97 | 15882 | #include "confdefs.h" |
4f14bcd8 GD |
15883 | /* System header to define __stub macros and hopefully few prototypes, |
15884 | which can conflict with char vprintf(); below. */ | |
15885 | #include <assert.h> | |
15886 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15887 | /* We use char because int might match the return type of a gcc2 | |
15888 | builtin and then its argument prototype would still apply. */ | |
15889 | char vprintf(); | |
15890 | ||
698dcdb6 | 15891 | int main() { |
f6bcfd97 | 15892 | |
4f14bcd8 GD |
15893 | /* The GNU C library defines this for functions which it implements |
15894 | to always fail with ENOSYS. Some functions are actually named | |
15895 | something starting with __ and the normal name is an alias. */ | |
15896 | #if defined (__stub_vprintf) || defined (__stub___vprintf) | |
15897 | choke me | |
15898 | #else | |
15899 | vprintf(); | |
15900 | #endif | |
f6bcfd97 | 15901 | |
698dcdb6 VZ |
15902 | ; return 0; } |
15903 | EOF | |
43d99b6d | 15904 | if { (eval echo configure:15905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15905 | rm -rf conftest* |
4f14bcd8 | 15906 | eval "ac_cv_func_vprintf=yes" |
f6bcfd97 | 15907 | else |
698dcdb6 VZ |
15908 | echo "configure: failed program was:" >&5 |
15909 | cat conftest.$ac_ext >&5 | |
15910 | rm -rf conftest* | |
4f14bcd8 | 15911 | eval "ac_cv_func_vprintf=no" |
6232543b | 15912 | fi |
698dcdb6 | 15913 | rm -f conftest* |
1e487827 | 15914 | fi |
698dcdb6 | 15915 | |
4f14bcd8 GD |
15916 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then |
15917 | echo "$ac_t""yes" 1>&6 | |
15918 | cat >> confdefs.h <<\EOF | |
15919 | #define HAVE_VPRINTF 1 | |
f6bcfd97 BP |
15920 | EOF |
15921 | ||
4f14bcd8 GD |
15922 | else |
15923 | echo "$ac_t""no" 1>&6 | |
eb4efbdc VZ |
15924 | fi |
15925 | ||
4f14bcd8 GD |
15926 | if test "$ac_cv_func_vprintf" != yes; then |
15927 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
43d99b6d | 15928 | echo "configure:15929: checking for _doprnt" >&5 |
4f14bcd8 | 15929 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
698dcdb6 VZ |
15930 | echo $ac_n "(cached) $ac_c" 1>&6 |
15931 | else | |
15932 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 15933 | #line 15934 "configure" |
10f2d63a VZ |
15934 | #include "confdefs.h" |
15935 | /* System header to define __stub macros and hopefully few prototypes, | |
4f14bcd8 | 15936 | which can conflict with char _doprnt(); below. */ |
10f2d63a VZ |
15937 | #include <assert.h> |
15938 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15939 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 15940 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 15941 | char _doprnt(); |
698dcdb6 VZ |
15942 | |
15943 | int main() { | |
10f2d63a VZ |
15944 | |
15945 | /* The GNU C library defines this for functions which it implements | |
15946 | to always fail with ENOSYS. Some functions are actually named | |
15947 | something starting with __ and the normal name is an alias. */ | |
4f14bcd8 | 15948 | #if defined (__stub__doprnt) || defined (__stub____doprnt) |
10f2d63a VZ |
15949 | choke me |
15950 | #else | |
4f14bcd8 | 15951 | _doprnt(); |
10f2d63a VZ |
15952 | #endif |
15953 | ||
698dcdb6 | 15954 | ; return 0; } |
10f2d63a | 15955 | EOF |
43d99b6d | 15956 | if { (eval echo configure:15957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15957 | rm -rf conftest* |
4f14bcd8 | 15958 | eval "ac_cv_func__doprnt=yes" |
698dcdb6 VZ |
15959 | else |
15960 | echo "configure: failed program was:" >&5 | |
15961 | cat conftest.$ac_ext >&5 | |
15962 | rm -rf conftest* | |
4f14bcd8 | 15963 | eval "ac_cv_func__doprnt=no" |
698dcdb6 VZ |
15964 | fi |
15965 | rm -f conftest* | |
15966 | fi | |
270a909e | 15967 | |
4f14bcd8 | 15968 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then |
698dcdb6 | 15969 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
15970 | cat >> confdefs.h <<\EOF |
15971 | #define HAVE_DOPRNT 1 | |
698dcdb6 | 15972 | EOF |
4f14bcd8 | 15973 | |
698dcdb6 VZ |
15974 | else |
15975 | echo "$ac_t""no" 1>&6 | |
270a909e | 15976 | fi |
270a909e | 15977 | |
4f14bcd8 | 15978 | fi |
1e487827 | 15979 | |
52e8b690 | 15980 | |
52e8b690 | 15981 | |
52e8b690 | 15982 | |
52e8b690 | 15983 | |
52e8b690 | 15984 | |
4f14bcd8 | 15985 | echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6 |
43d99b6d | 15986 | echo "configure:15987: checking for vsnprintf" >&5 |
4f14bcd8 | 15987 | if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then |
698dcdb6 | 15988 | echo $ac_n "(cached) $ac_c" 1>&6 |
c63c7106 | 15989 | else |
4f14bcd8 | 15990 | |
af15babd | 15991 | cat > conftest.$ac_ext <<EOF |
43d99b6d | 15992 | #line 15993 "configure" |
c63c7106 | 15993 | #include "confdefs.h" |
698dcdb6 | 15994 | |
4f14bcd8 GD |
15995 | #include <stdio.h> |
15996 | #include <stdarg.h> | |
15997 | ||
af15babd VZ |
15998 | int main() { |
15999 | ||
4f14bcd8 GD |
16000 | int wx_test_vsnprintf(const char *, ...); |
16001 | ||
16002 | wx_test_vsnprintf("%s"); | |
16003 | return 0; | |
16004 | } | |
16005 | ||
16006 | int wx_test_vsnprintf(const char *fmt, ...) | |
16007 | { | |
16008 | char *s; | |
16009 | ||
16010 | va_list argp; | |
16011 | va_start(argp, fmt); | |
16012 | vsnprintf(s, 42, fmt, argp); | |
16013 | va_end(argp); | |
16014 | ||
af15babd VZ |
16015 | ; return 0; } |
16016 | EOF | |
43d99b6d | 16017 | if { (eval echo configure:16018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
16018 | rm -rf conftest* |
16019 | ||
4f14bcd8 GD |
16020 | wx_cv_func_vsnprintf=yes |
16021 | ||
af15babd VZ |
16022 | else |
16023 | echo "configure: failed program was:" >&5 | |
16024 | cat conftest.$ac_ext >&5 | |
16025 | rm -rf conftest* | |
16026 | ||
4f14bcd8 | 16027 | cat > conftest.$ac_ext <<EOF |
43d99b6d | 16028 | #line 16029 "configure" |
af15babd | 16029 | #include "confdefs.h" |
af15babd | 16030 | |
4f14bcd8 GD |
16031 | #include <stdio.h> |
16032 | #include <stdarg.h> | |
16033 | ||
af15babd VZ |
16034 | int main() { |
16035 | ||
4f14bcd8 GD |
16036 | int wx_test_vsnprintf(const char *, ...); |
16037 | ||
16038 | wx_test_vsnprintf("%s"); | |
16039 | return 0; | |
16040 | } | |
16041 | ||
16042 | int wx_test_vsnprintf(const char *fmt, ...) | |
16043 | { | |
16044 | char *s; | |
af15babd | 16045 | |
4f14bcd8 GD |
16046 | va_list argp; |
16047 | va_start(argp, fmt); | |
16048 | _vsnprintf(s, 42, fmt, argp); | |
16049 | va_end(argp); | |
16050 | ||
af15babd VZ |
16051 | ; return 0; } |
16052 | EOF | |
43d99b6d | 16053 | if { (eval echo configure:16054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd | 16054 | rm -rf conftest* |
4f14bcd8 GD |
16055 | |
16056 | wx_cv_func_vsnprintf=yes | |
16057 | ||
af15babd VZ |
16058 | else |
16059 | echo "configure: failed program was:" >&5 | |
16060 | cat conftest.$ac_ext >&5 | |
16061 | rm -rf conftest* | |
4f14bcd8 GD |
16062 | |
16063 | wx_cv_func_vsnprintf=no | |
16064 | ||
af15babd VZ |
16065 | fi |
16066 | rm -f conftest* | |
4f14bcd8 | 16067 | |
af15babd | 16068 | fi |
4f14bcd8 | 16069 | rm -f conftest* |
af15babd | 16070 | |
af15babd | 16071 | fi |
af15babd | 16072 | |
4f14bcd8 | 16073 | echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6 |
af15babd | 16074 | |
4f14bcd8 GD |
16075 | if test "$wx_cv_func_vsnprintf" = yes; then |
16076 | cat >> confdefs.h <<\EOF | |
16077 | #define HAVE_VSNPRINTF 1 | |
16078 | EOF | |
16079 | ||
16080 | else | |
f9bc1684 | 16081 | echo "configure: warning: unsafe function vsprintf will be used instead of vsnprintf" 1>&2 |
af15babd VZ |
16082 | fi |
16083 | ||
4f14bcd8 | 16084 | echo $ac_n "checking for vsscanf""... $ac_c" 1>&6 |
43d99b6d | 16085 | echo "configure:16086: checking for vsscanf" >&5 |
4f14bcd8 | 16086 | if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then |
af15babd VZ |
16087 | echo $ac_n "(cached) $ac_c" 1>&6 |
16088 | else | |
4f14bcd8 | 16089 | |
af15babd | 16090 | cat > conftest.$ac_ext <<EOF |
43d99b6d | 16091 | #line 16092 "configure" |
af15babd | 16092 | #include "confdefs.h" |
af15babd | 16093 | |
4f14bcd8 GD |
16094 | #include <stdio.h> |
16095 | #include <stdarg.h> | |
16096 | ||
af15babd VZ |
16097 | int main() { |
16098 | ||
4f14bcd8 GD |
16099 | int wx_test_vsscanf(const char *, ...); |
16100 | ||
16101 | wx_test_vsscanf("%d"); | |
16102 | return 0; | |
16103 | } | |
af15babd | 16104 | |
4f14bcd8 GD |
16105 | int wx_test_vsscanf(const char *fmt, ...) |
16106 | { | |
16107 | va_list argp; | |
16108 | va_start(argp, fmt); | |
16109 | vsscanf("42", fmt, argp); | |
16110 | va_end(argp); | |
16111 | ||
af15babd VZ |
16112 | ; return 0; } |
16113 | EOF | |
43d99b6d | 16114 | if { (eval echo configure:16115: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 16115 | rm -rf conftest* |
4f14bcd8 GD |
16116 | |
16117 | wx_cv_func_vsscanf=yes | |
16118 | ||
af15babd VZ |
16119 | else |
16120 | echo "configure: failed program was:" >&5 | |
16121 | cat conftest.$ac_ext >&5 | |
16122 | rm -rf conftest* | |
4f14bcd8 GD |
16123 | |
16124 | wx_cv_func_vsscanf=no | |
16125 | ||
af15babd VZ |
16126 | fi |
16127 | rm -f conftest* | |
4f14bcd8 | 16128 | |
af15babd VZ |
16129 | fi |
16130 | ||
4f14bcd8 GD |
16131 | echo "$ac_t""$wx_cv_func_vsscanf" 1>&6 |
16132 | ||
16133 | if test "$wx_cv_func_vsscanf" = yes; then | |
16134 | cat >> confdefs.h <<\EOF | |
16135 | #define HAVE_VSSCANF 1 | |
af15babd | 16136 | EOF |
4f14bcd8 | 16137 | |
af15babd | 16138 | fi |
af15babd | 16139 | |
4f14bcd8 | 16140 | if test "$TOOLKIT" != "MSW"; then |
af15babd | 16141 | |
4f14bcd8 GD |
16142 | |
16143 | ||
16144 | ac_ext=C | |
16145 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
16146 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16147 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16148 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16149 | cross_compiling=$ac_cv_prog_cxx_cross | |
16150 | ||
b040e242 VS |
16151 | |
16152 | ||
16153 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
16154 | if test "${with_libiconv_prefix+set}" = set; then | |
16155 | withval="$with_libiconv_prefix" | |
16156 | ||
16157 | for dir in `echo "$withval" | tr : ' '`; do | |
16158 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
16159 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
16160 | done | |
16161 | ||
16162 | fi | |
16163 | ||
16164 | ||
16165 | echo $ac_n "checking for iconv""... $ac_c" 1>&6 | |
43d99b6d | 16166 | echo "configure:16167: checking for iconv" >&5 |
b040e242 | 16167 | if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then |
af15babd VZ |
16168 | echo $ac_n "(cached) $ac_c" 1>&6 |
16169 | else | |
4f14bcd8 | 16170 | |
b040e242 VS |
16171 | am_cv_func_iconv="no, consider installing GNU libiconv" |
16172 | am_cv_lib_iconv=no | |
4f14bcd8 | 16173 | cat > conftest.$ac_ext <<EOF |
43d99b6d | 16174 | #line 16175 "configure" |
af15babd | 16175 | #include "confdefs.h" |
b040e242 | 16176 | #include <stdlib.h> |
4f14bcd8 | 16177 | #include <iconv.h> |
af15babd | 16178 | int main() { |
b040e242 VS |
16179 | iconv_t cd = iconv_open("",""); |
16180 | iconv(cd,NULL,NULL,NULL,NULL); | |
16181 | iconv_close(cd); | |
af15babd VZ |
16182 | ; return 0; } |
16183 | EOF | |
43d99b6d | 16184 | if { (eval echo configure:16185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd | 16185 | rm -rf conftest* |
b040e242 | 16186 | am_cv_func_iconv=yes |
af15babd VZ |
16187 | else |
16188 | echo "configure: failed program was:" >&5 | |
16189 | cat conftest.$ac_ext >&5 | |
b040e242 VS |
16190 | fi |
16191 | rm -f conftest* | |
16192 | if test "$am_cv_func_iconv" != yes; then | |
16193 | am_save_LIBS="$LIBS" | |
16194 | LIBS="$LIBS -liconv" | |
16195 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 16196 | #line 16197 "configure" |
b040e242 VS |
16197 | #include "confdefs.h" |
16198 | #include <stdlib.h> | |
16199 | #include <iconv.h> | |
16200 | int main() { | |
16201 | iconv_t cd = iconv_open("",""); | |
16202 | iconv(cd,NULL,NULL,NULL,NULL); | |
16203 | iconv_close(cd); | |
16204 | ; return 0; } | |
16205 | EOF | |
43d99b6d | 16206 | if { (eval echo configure:16207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd | 16207 | rm -rf conftest* |
b040e242 VS |
16208 | am_cv_lib_iconv=yes |
16209 | am_cv_func_iconv=yes | |
16210 | else | |
16211 | echo "configure: failed program was:" >&5 | |
16212 | cat conftest.$ac_ext >&5 | |
af15babd VZ |
16213 | fi |
16214 | rm -f conftest* | |
b040e242 VS |
16215 | LIBS="$am_save_LIBS" |
16216 | fi | |
16217 | ||
16218 | fi | |
16219 | ||
16220 | echo "$ac_t""$am_cv_func_iconv" 1>&6 | |
16221 | if test "$am_cv_func_iconv" = yes; then | |
16222 | cat >> confdefs.h <<\EOF | |
16223 | #define HAVE_ICONV 1 | |
16224 | EOF | |
16225 | ||
b7043674 | 16226 | echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6 |
43d99b6d | 16227 | echo "configure:16228: checking if iconv needs const" >&5 |
b7043674 | 16228 | if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then |
b040e242 VS |
16229 | echo $ac_n "(cached) $ac_c" 1>&6 |
16230 | else | |
b7043674 | 16231 | cat > conftest.$ac_ext <<EOF |
43d99b6d | 16232 | #line 16233 "configure" |
b040e242 VS |
16233 | #include "confdefs.h" |
16234 | ||
16235 | #include <stdlib.h> | |
16236 | #include <iconv.h> | |
16237 | extern | |
16238 | #ifdef __cplusplus | |
16239 | "C" | |
16240 | #endif | |
16241 | #if defined(__STDC__) || defined(__cplusplus) | |
16242 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
16243 | #else | |
16244 | size_t iconv(); | |
16245 | #endif | |
b7043674 | 16246 | |
b040e242 | 16247 | int main() { |
af15babd | 16248 | |
b040e242 VS |
16249 | ; return 0; } |
16250 | EOF | |
43d99b6d | 16251 | if { (eval echo configure:16252: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
b040e242 | 16252 | rm -rf conftest* |
b7043674 | 16253 | wx_cv_func_iconv_const="no" |
b040e242 VS |
16254 | else |
16255 | echo "configure: failed program was:" >&5 | |
16256 | cat conftest.$ac_ext >&5 | |
16257 | rm -rf conftest* | |
b7043674 VZ |
16258 | wx_cv_func_iconv_const="yes" |
16259 | ||
b040e242 VS |
16260 | fi |
16261 | rm -f conftest* | |
b7043674 | 16262 | |
af15babd | 16263 | fi |
af15babd | 16264 | |
b7043674 VZ |
16265 | echo "$ac_t""$wx_cv_func_iconv_const" 1>&6 |
16266 | ||
16267 | iconv_const= | |
1c405bb5 | 16268 | if test "x$wx_cv_func_iconv_const" = "xyes"; then |
b7043674 VZ |
16269 | iconv_const="const" |
16270 | fi | |
16271 | ||
b040e242 | 16272 | cat >> confdefs.h <<EOF |
b7043674 | 16273 | #define ICONV_CONST $iconv_const |
b040e242 VS |
16274 | EOF |
16275 | ||
16276 | fi | |
16277 | LIBICONV= | |
16278 | if test "$am_cv_lib_iconv" = yes; then | |
16279 | LIBICONV="-liconv" | |
16280 | fi | |
16281 | ||
16282 | ||
16283 | LIBS="$LIBICONV $LIBS" | |
4f14bcd8 GD |
16284 | ac_ext=c |
16285 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
16286 | ac_cpp='$CPP $CPPFLAGS' | |
16287 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16288 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16289 | cross_compiling=$ac_cv_prog_cc_cross | |
af15babd | 16290 | |
af15babd | 16291 | |
4f14bcd8 GD |
16292 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
16293 | for ac_func in sigaction | |
af15babd VZ |
16294 | do |
16295 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
43d99b6d | 16296 | echo "configure:16297: checking for $ac_func" >&5 |
af15babd VZ |
16297 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16298 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16299 | else | |
16300 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 16301 | #line 16302 "configure" |
af15babd VZ |
16302 | #include "confdefs.h" |
16303 | /* System header to define __stub macros and hopefully few prototypes, | |
16304 | which can conflict with char $ac_func(); below. */ | |
16305 | #include <assert.h> | |
16306 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16307 | /* We use char because int might match the return type of a gcc2 | |
16308 | builtin and then its argument prototype would still apply. */ | |
16309 | char $ac_func(); | |
16310 | ||
16311 | int main() { | |
16312 | ||
16313 | /* The GNU C library defines this for functions which it implements | |
16314 | to always fail with ENOSYS. Some functions are actually named | |
16315 | something starting with __ and the normal name is an alias. */ | |
16316 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16317 | choke me | |
16318 | #else | |
16319 | $ac_func(); | |
16320 | #endif | |
16321 | ||
16322 | ; return 0; } | |
16323 | EOF | |
43d99b6d | 16324 | if { (eval echo configure:16325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
16325 | rm -rf conftest* |
16326 | eval "ac_cv_func_$ac_func=yes" | |
16327 | else | |
16328 | echo "configure: failed program was:" >&5 | |
16329 | cat conftest.$ac_ext >&5 | |
16330 | rm -rf conftest* | |
16331 | eval "ac_cv_func_$ac_func=no" | |
16332 | fi | |
16333 | rm -f conftest* | |
16334 | fi | |
16335 | ||
16336 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16337 | echo "$ac_t""yes" 1>&6 | |
16338 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16339 | cat >> confdefs.h <<EOF | |
16340 | #define $ac_tr_func 1 | |
16341 | EOF | |
4f14bcd8 | 16342 | |
af15babd VZ |
16343 | else |
16344 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 GD |
16345 | fi |
16346 | done | |
16347 | ||
16348 | ||
16349 | if test "$ac_cv_func_sigaction" = "no"; then | |
16350 | echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2 | |
16351 | wxUSE_ON_FATAL_EXCEPTION=no | |
16352 | fi | |
16353 | ||
16354 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
16355 | ||
16356 | ac_ext=C | |
16357 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
16358 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16359 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16360 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16361 | cross_compiling=$ac_cv_prog_cxx_cross | |
16362 | ||
16363 | ||
16364 | echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6 | |
43d99b6d | 16365 | echo "configure:16366: checking for sa_handler type" >&5 |
4f14bcd8 | 16366 | if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then |
af15babd VZ |
16367 | echo $ac_n "(cached) $ac_c" 1>&6 |
16368 | else | |
4f14bcd8 GD |
16369 | |
16370 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 16371 | #line 16372 "configure" |
af15babd | 16372 | #include "confdefs.h" |
4f14bcd8 | 16373 | #include <signal.h> |
af15babd | 16374 | int main() { |
4f14bcd8 GD |
16375 | |
16376 | extern void testSigHandler(int); | |
16377 | ||
16378 | struct sigaction sa; | |
16379 | sa.sa_handler = testSigHandler; | |
16380 | ||
af15babd VZ |
16381 | ; return 0; } |
16382 | EOF | |
43d99b6d | 16383 | if { (eval echo configure:16384: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 16384 | rm -rf conftest* |
4f14bcd8 GD |
16385 | |
16386 | wx_cv_type_sa_handler=int | |
16387 | ||
af15babd VZ |
16388 | else |
16389 | echo "configure: failed program was:" >&5 | |
16390 | cat conftest.$ac_ext >&5 | |
16391 | rm -rf conftest* | |
4f14bcd8 GD |
16392 | |
16393 | wx_cv_type_sa_handler=void | |
16394 | ||
af15babd VZ |
16395 | fi |
16396 | rm -f conftest* | |
4f14bcd8 GD |
16397 | |
16398 | fi | |
16399 | ||
16400 | echo "$ac_t""$wx_cv_type_sa_handler" 1>&6 | |
16401 | ||
16402 | ac_ext=c | |
16403 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
16404 | ac_cpp='$CPP $CPPFLAGS' | |
16405 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16406 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16407 | cross_compiling=$ac_cv_prog_cc_cross | |
af15babd | 16408 | |
4f14bcd8 GD |
16409 | |
16410 | cat >> confdefs.h <<EOF | |
16411 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
af15babd VZ |
16412 | EOF |
16413 | ||
4f14bcd8 GD |
16414 | fi |
16415 | fi | |
af15babd | 16416 | |
4f14bcd8 | 16417 | for ac_func in vfork |
af15babd VZ |
16418 | do |
16419 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
43d99b6d | 16420 | echo "configure:16421: checking for $ac_func" >&5 |
af15babd VZ |
16421 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16422 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16423 | else | |
16424 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 16425 | #line 16426 "configure" |
af15babd VZ |
16426 | #include "confdefs.h" |
16427 | /* System header to define __stub macros and hopefully few prototypes, | |
16428 | which can conflict with char $ac_func(); below. */ | |
16429 | #include <assert.h> | |
16430 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16431 | /* We use char because int might match the return type of a gcc2 | |
16432 | builtin and then its argument prototype would still apply. */ | |
16433 | char $ac_func(); | |
16434 | ||
16435 | int main() { | |
16436 | ||
16437 | /* The GNU C library defines this for functions which it implements | |
16438 | to always fail with ENOSYS. Some functions are actually named | |
16439 | something starting with __ and the normal name is an alias. */ | |
16440 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16441 | choke me | |
16442 | #else | |
16443 | $ac_func(); | |
16444 | #endif | |
16445 | ||
16446 | ; return 0; } | |
16447 | EOF | |
43d99b6d | 16448 | if { (eval echo configure:16449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
16449 | rm -rf conftest* |
16450 | eval "ac_cv_func_$ac_func=yes" | |
16451 | else | |
16452 | echo "configure: failed program was:" >&5 | |
16453 | cat conftest.$ac_ext >&5 | |
16454 | rm -rf conftest* | |
16455 | eval "ac_cv_func_$ac_func=no" | |
16456 | fi | |
16457 | rm -f conftest* | |
16458 | fi | |
16459 | ||
16460 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16461 | echo "$ac_t""yes" 1>&6 | |
16462 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16463 | cat >> confdefs.h <<EOF | |
16464 | #define $ac_tr_func 1 | |
16465 | EOF | |
4f14bcd8 | 16466 | |
af15babd VZ |
16467 | else |
16468 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
16469 | fi |
16470 | done | |
16471 | ||
af15babd | 16472 | |
ade35f11 VZ |
16473 | for ac_func in mkstemp mktemp |
16474 | do | |
16475 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
43d99b6d | 16476 | echo "configure:16477: checking for $ac_func" >&5 |
ade35f11 VZ |
16477 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16478 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16479 | else | |
16480 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 16481 | #line 16482 "configure" |
ade35f11 VZ |
16482 | #include "confdefs.h" |
16483 | /* System header to define __stub macros and hopefully few prototypes, | |
16484 | which can conflict with char $ac_func(); below. */ | |
16485 | #include <assert.h> | |
16486 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16487 | /* We use char because int might match the return type of a gcc2 | |
16488 | builtin and then its argument prototype would still apply. */ | |
16489 | char $ac_func(); | |
16490 | ||
16491 | int main() { | |
16492 | ||
16493 | /* The GNU C library defines this for functions which it implements | |
16494 | to always fail with ENOSYS. Some functions are actually named | |
16495 | something starting with __ and the normal name is an alias. */ | |
16496 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16497 | choke me | |
16498 | #else | |
16499 | $ac_func(); | |
16500 | #endif | |
16501 | ||
16502 | ; return 0; } | |
16503 | EOF | |
43d99b6d | 16504 | if { (eval echo configure:16505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ade35f11 VZ |
16505 | rm -rf conftest* |
16506 | eval "ac_cv_func_$ac_func=yes" | |
16507 | else | |
16508 | echo "configure: failed program was:" >&5 | |
16509 | cat conftest.$ac_ext >&5 | |
16510 | rm -rf conftest* | |
16511 | eval "ac_cv_func_$ac_func=no" | |
16512 | fi | |
16513 | rm -f conftest* | |
16514 | fi | |
16515 | ||
16516 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16517 | echo "$ac_t""yes" 1>&6 | |
16518 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16519 | cat >> confdefs.h <<EOF | |
16520 | #define $ac_tr_func 1 | |
16521 | EOF | |
16522 | break | |
16523 | else | |
16524 | echo "$ac_t""no" 1>&6 | |
16525 | fi | |
16526 | done | |
16527 | ||
16528 | ||
4f14bcd8 | 16529 | echo $ac_n "checking for statfs""... $ac_c" 1>&6 |
43d99b6d | 16530 | echo "configure:16531: checking for statfs" >&5 |
4f14bcd8 GD |
16531 | if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then |
16532 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16533 | else | |
16534 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 16535 | #line 16536 "configure" |
4f14bcd8 GD |
16536 | #include "confdefs.h" |
16537 | ||
16538 | #if defined(__BSD__) | |
16539 | #include <sys/param.h> | |
16540 | #include <sys/mount.h> | |
16541 | #else | |
16542 | #include <sys/vfs.h> | |
16543 | #endif | |
16544 | ||
16545 | int main() { | |
16546 | ||
16547 | long l; | |
16548 | struct statfs fs; | |
16549 | statfs("/", &fs); | |
16550 | l = fs.f_bsize; | |
16551 | l += fs.f_blocks; | |
16552 | l += fs.f_bavail; | |
16553 | ||
16554 | ; return 0; } | |
16555 | EOF | |
43d99b6d | 16556 | if { (eval echo configure:16557: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
16557 | rm -rf conftest* |
16558 | ||
16559 | wx_cv_func_statfs=yes | |
16560 | ||
16561 | else | |
16562 | echo "configure: failed program was:" >&5 | |
16563 | cat conftest.$ac_ext >&5 | |
16564 | rm -rf conftest* | |
16565 | ||
16566 | wx_cv_func_statfs=no | |
af15babd VZ |
16567 | |
16568 | ||
16569 | fi | |
4f14bcd8 | 16570 | rm -f conftest* |
af15babd VZ |
16571 | |
16572 | fi | |
16573 | ||
4f14bcd8 GD |
16574 | echo "$ac_t""$wx_cv_func_statfs" 1>&6 |
16575 | ||
16576 | if test "$wx_cv_func_statfs" = "yes"; then | |
16577 | cat >> confdefs.h <<\EOF | |
16578 | #define HAVE_STATFS 1 | |
16579 | EOF | |
16580 | ||
16581 | else | |
16582 | echo $ac_n "checking for statvfs""... $ac_c" 1>&6 | |
43d99b6d | 16583 | echo "configure:16584: checking for statvfs" >&5 |
4f14bcd8 | 16584 | if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then |
af15babd VZ |
16585 | echo $ac_n "(cached) $ac_c" 1>&6 |
16586 | else | |
16587 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 16588 | #line 16589 "configure" |
af15babd | 16589 | #include "confdefs.h" |
af15babd | 16590 | |
4f14bcd8 GD |
16591 | #include <sys/statvfs.h> |
16592 | ||
af15babd VZ |
16593 | int main() { |
16594 | ||
4f14bcd8 GD |
16595 | long l; |
16596 | struct statvfs fs; | |
16597 | statvfs("/", &fs); | |
16598 | l = fs.f_bsize; | |
16599 | l += fs.f_blocks; | |
16600 | l += fs.f_bavail; | |
16601 | ||
af15babd VZ |
16602 | ; return 0; } |
16603 | EOF | |
43d99b6d | 16604 | if { (eval echo configure:16605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 16605 | rm -rf conftest* |
4f14bcd8 GD |
16606 | |
16607 | wx_cv_func_statvfs=yes | |
16608 | ||
af15babd VZ |
16609 | else |
16610 | echo "configure: failed program was:" >&5 | |
16611 | cat conftest.$ac_ext >&5 | |
16612 | rm -rf conftest* | |
4f14bcd8 GD |
16613 | |
16614 | wx_cv_func_statvfs=no | |
16615 | ||
16616 | ||
af15babd VZ |
16617 | fi |
16618 | rm -f conftest* | |
4f14bcd8 | 16619 | |
af15babd VZ |
16620 | fi |
16621 | ||
4f14bcd8 | 16622 | echo "$ac_t""$wx_cv_func_statvfs" 1>&6 |
af15babd | 16623 | |
4f14bcd8 GD |
16624 | if test "$wx_cv_func_statvfs" = "yes"; then |
16625 | cat >> confdefs.h <<\EOF | |
16626 | #define HAVE_STATVFS 1 | |
16627 | EOF | |
af15babd | 16628 | |
4f14bcd8 GD |
16629 | else |
16630 | echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2 | |
16631 | fi | |
16632 | fi | |
af15babd | 16633 | |
4f14bcd8 GD |
16634 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
16635 | for ac_func in fcntl flock | |
af15babd VZ |
16636 | do |
16637 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
43d99b6d | 16638 | echo "configure:16639: checking for $ac_func" >&5 |
af15babd VZ |
16639 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16640 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16641 | else | |
16642 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 16643 | #line 16644 "configure" |
af15babd VZ |
16644 | #include "confdefs.h" |
16645 | /* System header to define __stub macros and hopefully few prototypes, | |
16646 | which can conflict with char $ac_func(); below. */ | |
16647 | #include <assert.h> | |
16648 | /* Override any gcc2 internal prototype to avoid an error. */ | |
af15babd VZ |
16649 | /* We use char because int might match the return type of a gcc2 |
16650 | builtin and then its argument prototype would still apply. */ | |
16651 | char $ac_func(); | |
16652 | ||
16653 | int main() { | |
16654 | ||
16655 | /* The GNU C library defines this for functions which it implements | |
16656 | to always fail with ENOSYS. Some functions are actually named | |
16657 | something starting with __ and the normal name is an alias. */ | |
16658 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16659 | choke me | |
16660 | #else | |
16661 | $ac_func(); | |
16662 | #endif | |
16663 | ||
16664 | ; return 0; } | |
16665 | EOF | |
43d99b6d | 16666 | if { (eval echo configure:16667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
16667 | rm -rf conftest* |
16668 | eval "ac_cv_func_$ac_func=yes" | |
16669 | else | |
16670 | echo "configure: failed program was:" >&5 | |
16671 | cat conftest.$ac_ext >&5 | |
16672 | rm -rf conftest* | |
16673 | eval "ac_cv_func_$ac_func=no" | |
16674 | fi | |
16675 | rm -f conftest* | |
16676 | fi | |
16677 | ||
16678 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16679 | echo "$ac_t""yes" 1>&6 | |
16680 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16681 | cat >> confdefs.h <<EOF | |
16682 | #define $ac_tr_func 1 | |
16683 | EOF | |
4f14bcd8 | 16684 | break |
af15babd VZ |
16685 | else |
16686 | echo "$ac_t""no" 1>&6 | |
16687 | fi | |
16688 | done | |
16689 | ||
16690 | ||
4f14bcd8 GD |
16691 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then |
16692 | echo "configure: warning: wxSingleInstanceChecker not available" 1>&2 | |
16693 | wxUSE_SNGLINST_CHECKER=no | |
16694 | fi | |
16695 | fi | |
af15babd | 16696 | |
4f14bcd8 | 16697 | for ac_func in timegm |
af15babd VZ |
16698 | do |
16699 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
43d99b6d | 16700 | echo "configure:16701: checking for $ac_func" >&5 |
af15babd VZ |
16701 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16702 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16703 | else | |
16704 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 16705 | #line 16706 "configure" |
af15babd VZ |
16706 | #include "confdefs.h" |
16707 | /* System header to define __stub macros and hopefully few prototypes, | |
16708 | which can conflict with char $ac_func(); below. */ | |
16709 | #include <assert.h> | |
16710 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16711 | /* We use char because int might match the return type of a gcc2 | |
16712 | builtin and then its argument prototype would still apply. */ | |
16713 | char $ac_func(); | |
16714 | ||
698dcdb6 | 16715 | int main() { |
698dcdb6 | 16716 | |
af15babd VZ |
16717 | /* The GNU C library defines this for functions which it implements |
16718 | to always fail with ENOSYS. Some functions are actually named | |
16719 | something starting with __ and the normal name is an alias. */ | |
16720 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16721 | choke me | |
16722 | #else | |
16723 | $ac_func(); | |
16724 | #endif | |
16725 | ||
698dcdb6 VZ |
16726 | ; return 0; } |
16727 | EOF | |
43d99b6d | 16728 | if { (eval echo configure:16729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16729 | rm -rf conftest* |
af15babd | 16730 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
16731 | else |
16732 | echo "configure: failed program was:" >&5 | |
16733 | cat conftest.$ac_ext >&5 | |
16734 | rm -rf conftest* | |
af15babd | 16735 | eval "ac_cv_func_$ac_func=no" |
1e487827 | 16736 | fi |
9952adac | 16737 | rm -f conftest* |
af15babd | 16738 | fi |
703e0a69 | 16739 | |
af15babd VZ |
16740 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16741 | echo "$ac_t""yes" 1>&6 | |
16742 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
4f14bcd8 GD |
16743 | cat >> confdefs.h <<EOF |
16744 | #define $ac_tr_func 1 | |
16745 | EOF | |
16746 | ||
16747 | else | |
16748 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
16749 | fi |
16750 | done | |
16751 | ||
16752 | ||
4f14bcd8 | 16753 | for ac_func in putenv setenv |
10f2d63a | 16754 | do |
698dcdb6 | 16755 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
43d99b6d | 16756 | echo "configure:16757: checking for $ac_func" >&5 |
698dcdb6 VZ |
16757 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16758 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16759 | else | |
16760 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 16761 | #line 16762 "configure" |
af15babd VZ |
16762 | #include "confdefs.h" |
16763 | /* System header to define __stub macros and hopefully few prototypes, | |
16764 | which can conflict with char $ac_func(); below. */ | |
16765 | #include <assert.h> | |
16766 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16767 | /* We use char because int might match the return type of a gcc2 | |
16768 | builtin and then its argument prototype would still apply. */ | |
16769 | char $ac_func(); | |
16770 | ||
16771 | int main() { | |
16772 | ||
16773 | /* The GNU C library defines this for functions which it implements | |
16774 | to always fail with ENOSYS. Some functions are actually named | |
16775 | something starting with __ and the normal name is an alias. */ | |
16776 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16777 | choke me | |
16778 | #else | |
16779 | $ac_func(); | |
16780 | #endif | |
16781 | ||
16782 | ; return 0; } | |
16783 | EOF | |
43d99b6d | 16784 | if { (eval echo configure:16785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
16785 | rm -rf conftest* |
16786 | eval "ac_cv_func_$ac_func=yes" | |
16787 | else | |
16788 | echo "configure: failed program was:" >&5 | |
16789 | cat conftest.$ac_ext >&5 | |
16790 | rm -rf conftest* | |
16791 | eval "ac_cv_func_$ac_func=no" | |
16792 | fi | |
16793 | rm -f conftest* | |
16794 | fi | |
16795 | ||
16796 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16797 | echo "$ac_t""yes" 1>&6 | |
16798 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16799 | cat >> confdefs.h <<EOF | |
16800 | #define $ac_tr_func 1 | |
16801 | EOF | |
4f14bcd8 | 16802 | break |
af15babd VZ |
16803 | else |
16804 | echo "$ac_t""no" 1>&6 | |
16805 | fi | |
af15babd VZ |
16806 | done |
16807 | ||
16808 | ||
4f14bcd8 GD |
16809 | HAVE_SOME_SLEEP_FUNC=0 |
16810 | if test "$USE_BEOS" = 1; then | |
16811 | cat >> confdefs.h <<\EOF | |
16812 | #define HAVE_SLEEP 1 | |
af15babd VZ |
16813 | EOF |
16814 | ||
4f14bcd8 | 16815 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
16816 | fi |
16817 | ||
4f14bcd8 GD |
16818 | if test "$USE_DARWIN" = 1; then |
16819 | cat >> confdefs.h <<\EOF | |
16820 | #define HAVE_USLEEP 1 | |
af15babd | 16821 | EOF |
10f2d63a | 16822 | |
4f14bcd8 | 16823 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
16824 | fi |
16825 | ||
4f14bcd8 GD |
16826 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
16827 | POSIX4_LINK= | |
16828 | for ac_func in nanosleep | |
16829 | do | |
16830 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
43d99b6d | 16831 | echo "configure:16832: checking for $ac_func" >&5 |
4f14bcd8 | 16832 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 | 16833 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 16834 | else |
4f14bcd8 | 16835 | cat > conftest.$ac_ext <<EOF |
43d99b6d | 16836 | #line 16837 "configure" |
10f2d63a | 16837 | #include "confdefs.h" |
4f14bcd8 GD |
16838 | /* System header to define __stub macros and hopefully few prototypes, |
16839 | which can conflict with char $ac_func(); below. */ | |
16840 | #include <assert.h> | |
10f2d63a VZ |
16841 | /* Override any gcc2 internal prototype to avoid an error. */ |
16842 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16843 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16844 | char $ac_func(); |
698dcdb6 VZ |
16845 | |
16846 | int main() { | |
4f14bcd8 GD |
16847 | |
16848 | /* The GNU C library defines this for functions which it implements | |
16849 | to always fail with ENOSYS. Some functions are actually named | |
16850 | something starting with __ and the normal name is an alias. */ | |
16851 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16852 | choke me | |
16853 | #else | |
16854 | $ac_func(); | |
16855 | #endif | |
16856 | ||
698dcdb6 VZ |
16857 | ; return 0; } |
16858 | EOF | |
43d99b6d | 16859 | if { (eval echo configure:16860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16860 | rm -rf conftest* |
4f14bcd8 | 16861 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
16862 | else |
16863 | echo "configure: failed program was:" >&5 | |
16864 | cat conftest.$ac_ext >&5 | |
16865 | rm -rf conftest* | |
4f14bcd8 | 16866 | eval "ac_cv_func_$ac_func=no" |
698dcdb6 VZ |
16867 | fi |
16868 | rm -f conftest* | |
698dcdb6 | 16869 | fi |
4f14bcd8 GD |
16870 | |
16871 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 16872 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
16873 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
16874 | cat >> confdefs.h <<EOF | |
16875 | #define $ac_tr_func 1 | |
16876 | EOF | |
16877 | cat >> confdefs.h <<\EOF | |
16878 | #define HAVE_NANOSLEEP 1 | |
16879 | EOF | |
16880 | ||
10f2d63a | 16881 | else |
698dcdb6 | 16882 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 16883 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 |
43d99b6d | 16884 | echo "configure:16885: checking for nanosleep in -lposix4" >&5 |
4f14bcd8 | 16885 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
16886 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
16887 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 16888 | else |
698dcdb6 | 16889 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 16890 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 16891 | cat > conftest.$ac_ext <<EOF |
43d99b6d | 16892 | #line 16893 "configure" |
10f2d63a VZ |
16893 | #include "confdefs.h" |
16894 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16895 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16896 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16897 | char nanosleep(); |
698dcdb6 VZ |
16898 | |
16899 | int main() { | |
4f14bcd8 | 16900 | nanosleep() |
698dcdb6 VZ |
16901 | ; return 0; } |
16902 | EOF | |
43d99b6d | 16903 | if { (eval echo configure:16904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16904 | rm -rf conftest* |
16905 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16906 | else | |
16907 | echo "configure: failed program was:" >&5 | |
16908 | cat conftest.$ac_ext >&5 | |
16909 | rm -rf conftest* | |
16910 | eval "ac_cv_lib_$ac_lib_var=no" | |
16911 | fi | |
16912 | rm -f conftest* | |
16913 | LIBS="$ac_save_LIBS" | |
10f2d63a | 16914 | |
698dcdb6 VZ |
16915 | fi |
16916 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16917 | echo "$ac_t""yes" 1>&6 | |
16918 | ||
4f14bcd8 GD |
16919 | cat >> confdefs.h <<\EOF |
16920 | #define HAVE_NANOSLEEP 1 | |
16921 | EOF | |
16922 | ||
3d63bc3a | 16923 | POSIX4_LINK=" -lposix4" |
4f14bcd8 | 16924 | |
10f2d63a | 16925 | else |
698dcdb6 | 16926 | echo "$ac_t""no" 1>&6 |
10f2d63a | 16927 | |
4f14bcd8 GD |
16928 | for ac_func in usleep |
16929 | do | |
16930 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
43d99b6d | 16931 | echo "configure:16932: checking for $ac_func" >&5 |
4f14bcd8 | 16932 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 | 16933 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 16934 | else |
698dcdb6 | 16935 | cat > conftest.$ac_ext <<EOF |
43d99b6d | 16936 | #line 16937 "configure" |
10f2d63a | 16937 | #include "confdefs.h" |
4f14bcd8 GD |
16938 | /* System header to define __stub macros and hopefully few prototypes, |
16939 | which can conflict with char $ac_func(); below. */ | |
16940 | #include <assert.h> | |
16941 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16942 | /* We use char because int might match the return type of a gcc2 | |
16943 | builtin and then its argument prototype would still apply. */ | |
16944 | char $ac_func(); | |
16945 | ||
16946 | int main() { | |
16947 | ||
16948 | /* The GNU C library defines this for functions which it implements | |
16949 | to always fail with ENOSYS. Some functions are actually named | |
16950 | something starting with __ and the normal name is an alias. */ | |
16951 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16952 | choke me | |
16953 | #else | |
16954 | $ac_func(); | |
16955 | #endif | |
16956 | ||
16957 | ; return 0; } | |
698dcdb6 | 16958 | EOF |
43d99b6d | 16959 | if { (eval echo configure:16960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16960 | rm -rf conftest* |
4f14bcd8 | 16961 | eval "ac_cv_func_$ac_func=yes" |
1e487827 | 16962 | else |
698dcdb6 | 16963 | echo "configure: failed program was:" >&5 |
10f2d63a | 16964 | cat conftest.$ac_ext >&5 |
698dcdb6 | 16965 | rm -rf conftest* |
4f14bcd8 | 16966 | eval "ac_cv_func_$ac_func=no" |
10f2d63a | 16967 | fi |
698dcdb6 | 16968 | rm -f conftest* |
10f2d63a | 16969 | fi |
4f14bcd8 GD |
16970 | |
16971 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 16972 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
16973 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
16974 | cat >> confdefs.h <<EOF | |
16975 | #define $ac_tr_func 1 | |
16976 | EOF | |
16977 | cat >> confdefs.h <<\EOF | |
16978 | #define HAVE_USLEEP 1 | |
16979 | EOF | |
16980 | ||
698dcdb6 VZ |
16981 | else |
16982 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 GD |
16983 | echo "configure: warning: wxSleep() function will not work" 1>&2 |
16984 | ||
10f2d63a | 16985 | fi |
4f14bcd8 | 16986 | done |
10f2d63a | 16987 | |
4f14bcd8 | 16988 | |
698dcdb6 | 16989 | |
6232543b | 16990 | fi |
10f2d63a | 16991 | |
698dcdb6 | 16992 | |
4f14bcd8 | 16993 | |
1e487827 | 16994 | fi |
4f14bcd8 | 16995 | done |
703e0a69 | 16996 | |
10f2d63a VZ |
16997 | fi |
16998 | ||
4f14bcd8 | 16999 | for ac_func in uname gethostname |
70846f0a | 17000 | do |
698dcdb6 | 17001 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
43d99b6d | 17002 | echo "configure:17003: checking for $ac_func" >&5 |
698dcdb6 VZ |
17003 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17004 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17005 | else | |
17006 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 17007 | #line 17008 "configure" |
70846f0a VZ |
17008 | #include "confdefs.h" |
17009 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 17010 | which can conflict with char $ac_func(); below. */ |
70846f0a VZ |
17011 | #include <assert.h> |
17012 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17013 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
17014 | builtin and then its argument prototype would still apply. */ |
17015 | char $ac_func(); | |
17016 | ||
17017 | int main() { | |
70846f0a VZ |
17018 | |
17019 | /* The GNU C library defines this for functions which it implements | |
17020 | to always fail with ENOSYS. Some functions are actually named | |
17021 | something starting with __ and the normal name is an alias. */ | |
17022 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17023 | choke me | |
17024 | #else | |
698dcdb6 | 17025 | $ac_func(); |
70846f0a VZ |
17026 | #endif |
17027 | ||
698dcdb6 | 17028 | ; return 0; } |
70846f0a | 17029 | EOF |
43d99b6d | 17030 | if { (eval echo configure:17031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17031 | rm -rf conftest* |
17032 | eval "ac_cv_func_$ac_func=yes" | |
17033 | else | |
17034 | echo "configure: failed program was:" >&5 | |
17035 | cat conftest.$ac_ext >&5 | |
17036 | rm -rf conftest* | |
17037 | eval "ac_cv_func_$ac_func=no" | |
17038 | fi | |
17039 | rm -f conftest* | |
17040 | fi | |
70846f0a | 17041 | |
698dcdb6 VZ |
17042 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17043 | echo "$ac_t""yes" 1>&6 | |
17044 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17045 | cat >> confdefs.h <<EOF | |
17046 | #define $ac_tr_func 1 | |
17047 | EOF | |
4f14bcd8 | 17048 | break |
698dcdb6 VZ |
17049 | else |
17050 | echo "$ac_t""no" 1>&6 | |
70846f0a VZ |
17051 | fi |
17052 | done | |
17053 | ||
698dcdb6 | 17054 | |
4f14bcd8 GD |
17055 | |
17056 | ac_ext=C | |
17057 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
17058 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17059 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
17060 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17061 | cross_compiling=$ac_cv_prog_cxx_cross | |
17062 | ||
17063 | ||
17064 | for ac_func in strtok_r | |
10f2d63a | 17065 | do |
4f14bcd8 | 17066 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
43d99b6d | 17067 | echo "configure:17068: checking for $ac_func" >&5 |
4f14bcd8 | 17068 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 VZ |
17069 | echo $ac_n "(cached) $ac_c" 1>&6 |
17070 | else | |
17071 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 17072 | #line 17073 "configure" |
10f2d63a | 17073 | #include "confdefs.h" |
4f14bcd8 GD |
17074 | /* System header to define __stub macros and hopefully few prototypes, |
17075 | which can conflict with char $ac_func(); below. */ | |
17076 | #include <assert.h> | |
17077 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17078 | #ifdef __cplusplus | |
17079 | extern "C" | |
17080 | #endif | |
17081 | /* We use char because int might match the return type of a gcc2 | |
17082 | builtin and then its argument prototype would still apply. */ | |
17083 | char $ac_func(); | |
17084 | ||
17085 | int main() { | |
17086 | ||
17087 | /* The GNU C library defines this for functions which it implements | |
17088 | to always fail with ENOSYS. Some functions are actually named | |
17089 | something starting with __ and the normal name is an alias. */ | |
17090 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17091 | choke me | |
17092 | #else | |
17093 | $ac_func(); | |
17094 | #endif | |
17095 | ||
17096 | ; return 0; } | |
698dcdb6 | 17097 | EOF |
43d99b6d | 17098 | if { (eval echo configure:17099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17099 | rm -rf conftest* |
4f14bcd8 | 17100 | eval "ac_cv_func_$ac_func=yes" |
1e487827 | 17101 | else |
698dcdb6 | 17102 | echo "configure: failed program was:" >&5 |
10f2d63a | 17103 | cat conftest.$ac_ext >&5 |
698dcdb6 | 17104 | rm -rf conftest* |
4f14bcd8 | 17105 | eval "ac_cv_func_$ac_func=no" |
10f2d63a | 17106 | fi |
698dcdb6 | 17107 | rm -f conftest* |
10f2d63a | 17108 | fi |
4f14bcd8 GD |
17109 | |
17110 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 17111 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 | 17112 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
698dcdb6 | 17113 | cat >> confdefs.h <<EOF |
4f14bcd8 | 17114 | #define $ac_tr_func 1 |
10f2d63a | 17115 | EOF |
698dcdb6 VZ |
17116 | |
17117 | else | |
17118 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
17119 | fi |
17120 | done | |
17121 | ||
698dcdb6 | 17122 | |
4f14bcd8 GD |
17123 | ac_ext=c |
17124 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
17125 | ac_cpp='$CPP $CPPFLAGS' | |
17126 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
17127 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17128 | cross_compiling=$ac_cv_prog_cc_cross | |
17129 | ||
17130 | ||
17131 | INET_LINK= | |
17132 | for ac_func in inet_addr | |
17133 | do | |
17134 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
43d99b6d | 17135 | echo "configure:17136: checking for $ac_func" >&5 |
4f14bcd8 | 17136 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 | 17137 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 17138 | else |
4f14bcd8 | 17139 | cat > conftest.$ac_ext <<EOF |
43d99b6d | 17140 | #line 17141 "configure" |
10f2d63a | 17141 | #include "confdefs.h" |
4f14bcd8 GD |
17142 | /* System header to define __stub macros and hopefully few prototypes, |
17143 | which can conflict with char $ac_func(); below. */ | |
17144 | #include <assert.h> | |
10f2d63a VZ |
17145 | /* Override any gcc2 internal prototype to avoid an error. */ |
17146 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 17147 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 17148 | char $ac_func(); |
698dcdb6 VZ |
17149 | |
17150 | int main() { | |
4f14bcd8 GD |
17151 | |
17152 | /* The GNU C library defines this for functions which it implements | |
17153 | to always fail with ENOSYS. Some functions are actually named | |
17154 | something starting with __ and the normal name is an alias. */ | |
17155 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17156 | choke me | |
17157 | #else | |
17158 | $ac_func(); | |
17159 | #endif | |
17160 | ||
698dcdb6 VZ |
17161 | ; return 0; } |
17162 | EOF | |
43d99b6d | 17163 | if { (eval echo configure:17164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17164 | rm -rf conftest* |
4f14bcd8 | 17165 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
17166 | else |
17167 | echo "configure: failed program was:" >&5 | |
17168 | cat conftest.$ac_ext >&5 | |
17169 | rm -rf conftest* | |
4f14bcd8 | 17170 | eval "ac_cv_func_$ac_func=no" |
698dcdb6 VZ |
17171 | fi |
17172 | rm -f conftest* | |
698dcdb6 | 17173 | fi |
4f14bcd8 GD |
17174 | |
17175 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 17176 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
17177 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
17178 | cat >> confdefs.h <<EOF | |
17179 | #define $ac_tr_func 1 | |
17180 | EOF | |
17181 | cat >> confdefs.h <<\EOF | |
17182 | #define HAVE_INET_ADDR 1 | |
10f2d63a VZ |
17183 | EOF |
17184 | ||
17185 | else | |
698dcdb6 | 17186 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 17187 | echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6 |
43d99b6d | 17188 | echo "configure:17189: checking for inet_addr in -lnsl" >&5 |
4f14bcd8 | 17189 | ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
17190 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
17191 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 17192 | else |
698dcdb6 | 17193 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17194 | LIBS="-lnsl $LIBS" |
698dcdb6 | 17195 | cat > conftest.$ac_ext <<EOF |
43d99b6d | 17196 | #line 17197 "configure" |
10f2d63a VZ |
17197 | #include "confdefs.h" |
17198 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17199 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 17200 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 17201 | char inet_addr(); |
698dcdb6 VZ |
17202 | |
17203 | int main() { | |
4f14bcd8 | 17204 | inet_addr() |
698dcdb6 VZ |
17205 | ; return 0; } |
17206 | EOF | |
43d99b6d | 17207 | if { (eval echo configure:17208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17208 | rm -rf conftest* |
17209 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17210 | else | |
17211 | echo "configure: failed program was:" >&5 | |
17212 | cat conftest.$ac_ext >&5 | |
17213 | rm -rf conftest* | |
17214 | eval "ac_cv_lib_$ac_lib_var=no" | |
17215 | fi | |
17216 | rm -f conftest* | |
17217 | LIBS="$ac_save_LIBS" | |
17218 | ||
17219 | fi | |
17220 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17221 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 17222 | INET_LINK="nsl" |
10f2d63a | 17223 | else |
698dcdb6 | 17224 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 17225 | echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6 |
43d99b6d | 17226 | echo "configure:17227: checking for inet_addr in -lresolv" >&5 |
4f14bcd8 | 17227 | ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
17228 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
17229 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 17230 | else |
698dcdb6 | 17231 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17232 | LIBS="-lresolv $LIBS" |
698dcdb6 | 17233 | cat > conftest.$ac_ext <<EOF |
43d99b6d | 17234 | #line 17235 "configure" |
10f2d63a VZ |
17235 | #include "confdefs.h" |
17236 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17237 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 17238 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 17239 | char inet_addr(); |
698dcdb6 VZ |
17240 | |
17241 | int main() { | |
4f14bcd8 | 17242 | inet_addr() |
698dcdb6 VZ |
17243 | ; return 0; } |
17244 | EOF | |
43d99b6d | 17245 | if { (eval echo configure:17246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17246 | rm -rf conftest* |
17247 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17248 | else | |
17249 | echo "configure: failed program was:" >&5 | |
17250 | cat conftest.$ac_ext >&5 | |
17251 | rm -rf conftest* | |
17252 | eval "ac_cv_lib_$ac_lib_var=no" | |
17253 | fi | |
17254 | rm -f conftest* | |
17255 | LIBS="$ac_save_LIBS" | |
17256 | ||
17257 | fi | |
17258 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17259 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 17260 | INET_LINK="resolv" |
698dcdb6 | 17261 | else |
4f14bcd8 | 17262 | echo "$ac_t""no" 1>&6 |
3c011993 | 17263 | echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6 |
43d99b6d | 17264 | echo "configure:17265: checking for inet_addr in -lsocket" >&5 |
3c011993 VZ |
17265 | ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'` |
17266 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17267 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17268 | else | |
17269 | ac_save_LIBS="$LIBS" | |
17270 | LIBS="-lsocket $LIBS" | |
17271 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 17272 | #line 17273 "configure" |
3c011993 VZ |
17273 | #include "confdefs.h" |
17274 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17275 | /* We use char because int might match the return type of a gcc2 | |
17276 | builtin and then its argument prototype would still apply. */ | |
17277 | char inet_addr(); | |
17278 | ||
17279 | int main() { | |
17280 | inet_addr() | |
17281 | ; return 0; } | |
17282 | EOF | |
43d99b6d | 17283 | if { (eval echo configure:17284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3c011993 VZ |
17284 | rm -rf conftest* |
17285 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17286 | else | |
17287 | echo "configure: failed program was:" >&5 | |
17288 | cat conftest.$ac_ext >&5 | |
17289 | rm -rf conftest* | |
17290 | eval "ac_cv_lib_$ac_lib_var=no" | |
17291 | fi | |
17292 | rm -f conftest* | |
17293 | LIBS="$ac_save_LIBS" | |
17294 | ||
17295 | fi | |
17296 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17297 | echo "$ac_t""yes" 1>&6 | |
17298 | INET_LINK="socket" | |
17299 | ||
17300 | else | |
17301 | echo "$ac_t""no" 1>&6 | |
17302 | fi | |
17303 | ||
17304 | ||
4f14bcd8 | 17305 | fi |
698dcdb6 | 17306 | |
4f14bcd8 | 17307 | |
698dcdb6 | 17308 | fi |
4f14bcd8 GD |
17309 | |
17310 | ||
698dcdb6 VZ |
17311 | |
17312 | fi | |
4f14bcd8 GD |
17313 | done |
17314 | ||
17315 | ||
17316 | for ac_func in inet_aton | |
17317 | do | |
17318 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
43d99b6d | 17319 | echo "configure:17320: checking for $ac_func" >&5 |
4f14bcd8 | 17320 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 VZ |
17321 | echo $ac_n "(cached) $ac_c" 1>&6 |
17322 | else | |
4f14bcd8 | 17323 | cat > conftest.$ac_ext <<EOF |
43d99b6d | 17324 | #line 17325 "configure" |
f6bcfd97 | 17325 | #include "confdefs.h" |
4f14bcd8 GD |
17326 | /* System header to define __stub macros and hopefully few prototypes, |
17327 | which can conflict with char $ac_func(); below. */ | |
17328 | #include <assert.h> | |
f6bcfd97 BP |
17329 | /* Override any gcc2 internal prototype to avoid an error. */ |
17330 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 17331 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 17332 | char $ac_func(); |
698dcdb6 VZ |
17333 | |
17334 | int main() { | |
4f14bcd8 GD |
17335 | |
17336 | /* The GNU C library defines this for functions which it implements | |
17337 | to always fail with ENOSYS. Some functions are actually named | |
17338 | something starting with __ and the normal name is an alias. */ | |
17339 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17340 | choke me | |
17341 | #else | |
17342 | $ac_func(); | |
17343 | #endif | |
17344 | ||
698dcdb6 VZ |
17345 | ; return 0; } |
17346 | EOF | |
43d99b6d | 17347 | if { (eval echo configure:17348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17348 | rm -rf conftest* |
4f14bcd8 | 17349 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
17350 | else |
17351 | echo "configure: failed program was:" >&5 | |
17352 | cat conftest.$ac_ext >&5 | |
17353 | rm -rf conftest* | |
4f14bcd8 | 17354 | eval "ac_cv_func_$ac_func=no" |
698dcdb6 VZ |
17355 | fi |
17356 | rm -f conftest* | |
698dcdb6 | 17357 | fi |
4f14bcd8 GD |
17358 | |
17359 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 17360 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
17361 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
17362 | cat >> confdefs.h <<EOF | |
17363 | #define $ac_tr_func 1 | |
17364 | EOF | |
17365 | cat >> confdefs.h <<\EOF | |
17366 | #define HAVE_INET_ATON 1 | |
17367 | EOF | |
17368 | ||
10f2d63a | 17369 | else |
698dcdb6 | 17370 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 17371 | echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6 |
43d99b6d | 17372 | echo "configure:17373: checking for inet_aton in -l$INET_LINK" >&5 |
4f14bcd8 | 17373 | ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
17374 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
17375 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 17376 | else |
698dcdb6 | 17377 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17378 | LIBS="-l$INET_LINK $LIBS" |
698dcdb6 | 17379 | cat > conftest.$ac_ext <<EOF |
43d99b6d | 17380 | #line 17381 "configure" |
10f2d63a | 17381 | #include "confdefs.h" |
6232543b | 17382 | /* Override any gcc2 internal prototype to avoid an error. */ |
6232543b | 17383 | /* We use char because int might match the return type of a gcc2 |
698dcdb6 | 17384 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 17385 | char inet_aton(); |
698dcdb6 VZ |
17386 | |
17387 | int main() { | |
4f14bcd8 | 17388 | inet_aton() |
698dcdb6 VZ |
17389 | ; return 0; } |
17390 | EOF | |
43d99b6d | 17391 | if { (eval echo configure:17392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17392 | rm -rf conftest* |
17393 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17394 | else | |
17395 | echo "configure: failed program was:" >&5 | |
17396 | cat conftest.$ac_ext >&5 | |
17397 | rm -rf conftest* | |
17398 | eval "ac_cv_lib_$ac_lib_var=no" | |
17399 | fi | |
17400 | rm -f conftest* | |
17401 | LIBS="$ac_save_LIBS" | |
10f2d63a | 17402 | |
698dcdb6 VZ |
17403 | fi |
17404 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17405 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 GD |
17406 | cat >> confdefs.h <<\EOF |
17407 | #define HAVE_INET_ATON 1 | |
17408 | EOF | |
17409 | ||
698dcdb6 VZ |
17410 | else |
17411 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
17412 | fi |
17413 | ||
4f14bcd8 | 17414 | |
10f2d63a | 17415 | fi |
4f14bcd8 | 17416 | done |
10f2d63a | 17417 | |
4f14bcd8 GD |
17418 | |
17419 | if test "x$INET_LINK" != "x"; then | |
17420 | cat >> confdefs.h <<\EOF | |
17421 | #define HAVE_INET_ADDR 1 | |
17422 | EOF | |
17423 | ||
3d63bc3a | 17424 | INET_LINK=" -l$INET_LINK" |
6232543b | 17425 | fi |
10f2d63a | 17426 | |
1e487827 | 17427 | fi |
703e0a69 | 17428 | |
698dcdb6 | 17429 | |
4f14bcd8 GD |
17430 | cat > confcache <<\EOF |
17431 | # This file is a shell script that caches the results of configure | |
17432 | # tests run on this system so they can be shared between configure | |
17433 | # scripts and configure runs. It is not useful on other systems. | |
17434 | # If it contains results you don't want to keep, you may remove or edit it. | |
17435 | # | |
17436 | # By default, configure uses ./config.cache as the cache file, | |
17437 | # creating it if it does not exist already. You can give configure | |
17438 | # the --cache-file=FILE option to use a different cache file; that is | |
17439 | # what configure does when it calls configure scripts in | |
17440 | # subdirectories, so they share the cache. | |
17441 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
17442 | # config.status only pays attention to the cache file if you give it the | |
17443 | # --recheck option to rerun configure. | |
17444 | # | |
f6bcfd97 | 17445 | EOF |
4f14bcd8 GD |
17446 | # The following way of writing the cache mishandles newlines in values, |
17447 | # but we know of no workaround that is simple, portable, and efficient. | |
17448 | # So, don't put newlines in cache variables' values. | |
17449 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
17450 | # and sets the high bit in the cache file unless we assign to the vars. | |
17451 | (set) 2>&1 | | |
17452 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
17453 | *ac_space=\ *) | |
17454 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
17455 | # turns \\\\ into \\, and sed turns \\ into \). | |
17456 | sed -n \ | |
17457 | -e "s/'/'\\\\''/g" \ | |
17458 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
17459 | ;; | |
17460 | *) | |
17461 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
17462 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
17463 | ;; | |
17464 | esac >> confcache | |
17465 | if cmp -s $cache_file confcache; then | |
17466 | : | |
17467 | else | |
17468 | if test -w $cache_file; then | |
17469 | echo "updating cache $cache_file" | |
17470 | cat confcache > $cache_file | |
f6bcfd97 | 17471 | else |
4f14bcd8 | 17472 | echo "not updating unwritable cache $cache_file" |
f6bcfd97 | 17473 | fi |
4f14bcd8 GD |
17474 | fi |
17475 | rm -f confcache | |
f6bcfd97 | 17476 | |
4f14bcd8 GD |
17477 | |
17478 | ||
009fead0 | 17479 | CPP_MT_FLAG= |
4f14bcd8 GD |
17480 | if test "$TOOLKIT" != "MSW"; then |
17481 | ||
009fead0 | 17482 | |
7274f1c7 | 17483 | THREADS_LINK= |
009fead0 | 17484 | THREADS_CFLAGS= |
7274f1c7 RL |
17485 | |
17486 | if test "$wxUSE_THREADS" = "yes" ; then | |
17487 | if test "$wxUSE_WINE" = 1 ; then | |
156b2523 | 17488 | echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2 |
7274f1c7 RL |
17489 | wxUSE_THREADS="no" |
17490 | elif test "$USE_BEOS" = 1; then | |
156b2523 | 17491 | echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2 |
7274f1c7 RL |
17492 | wxUSE_THREADS="no" |
17493 | fi | |
4f14bcd8 | 17494 | fi |
4f14bcd8 | 17495 | |
7274f1c7 | 17496 | if test "$wxUSE_THREADS" = "yes" ; then |
009fead0 | 17497 | |
3010d50a | 17498 | |
009fead0 VZ |
17499 | THREAD_OPTS="-pthread" |
17500 | case "${host}" in | |
17501 | *-*-solaris2* | *-*-sunos4* ) | |
17502 | if test "x$GCC" = "xyes"; then | |
126be6b4 | 17503 | THREAD_OPTS="-pthreads $THREAD_OPTS" |
009fead0 VZ |
17504 | else |
17505 | THREAD_OPTS="-mt $THREAD_OPTS" | |
17506 | fi | |
17507 | ;; | |
17508 | *-*-freebsd*) | |
17509 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
17510 | ;; | |
17234b26 MB |
17511 | *-*-darwin* | *-*-cygwin* ) |
17512 | THREAD_OPTS="" | |
4101db81 | 17513 | ;; |
8f4a9a10 | 17514 | *-*-aix*) |
009fead0 VZ |
17515 | THREAD_OPTS="pthreads" |
17516 | ;; | |
009fead0 | 17517 | esac |
4f14bcd8 | 17518 | |
02a1dfba | 17519 | THREAD_OPTS="$THREAD_OPTS pthread none" |
595e0e44 | 17520 | |
009fead0 VZ |
17521 | THREADS_OK=no |
17522 | for flag in $THREAD_OPTS; do | |
17523 | case $flag in | |
17524 | none) | |
17525 | echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6 | |
43d99b6d | 17526 | echo "configure:17527: checking whether pthreads work without any flags" >&5 |
009fead0 | 17527 | ;; |
698dcdb6 | 17528 | |
009fead0 VZ |
17529 | -*) |
17530 | echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6 | |
43d99b6d | 17531 | echo "configure:17532: checking whether pthreads work with $flag" >&5 |
009fead0 VZ |
17532 | THREADS_CFLAGS="$flag" |
17533 | ;; | |
698dcdb6 | 17534 | |
009fead0 VZ |
17535 | *) |
17536 | echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6 | |
43d99b6d | 17537 | echo "configure:17538: checking for the pthreads library -l$flag" >&5 |
009fead0 VZ |
17538 | THREADS_LINK="-l$flag" |
17539 | ;; | |
17540 | esac | |
10f2d63a | 17541 | |
009fead0 VZ |
17542 | save_LIBS="$LIBS" |
17543 | save_CFLAGS="$CFLAGS" | |
17544 | LIBS="$THREADS_LINK $LIBS" | |
04727afd | 17545 | CFLAGS="$THREADS_CFLAGS $CFLAGS" |
10f2d63a | 17546 | |
009fead0 | 17547 | cat > conftest.$ac_ext <<EOF |
43d99b6d | 17548 | #line 17549 "configure" |
009fead0 VZ |
17549 | #include "confdefs.h" |
17550 | #include <pthread.h> | |
4f14bcd8 | 17551 | int main() { |
009fead0 | 17552 | pthread_create(0,0,0,0); |
698dcdb6 VZ |
17553 | ; return 0; } |
17554 | EOF | |
43d99b6d | 17555 | if { (eval echo configure:17556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17556 | rm -rf conftest* |
009fead0 | 17557 | THREADS_OK=yes |
10f2d63a | 17558 | else |
698dcdb6 VZ |
17559 | echo "configure: failed program was:" >&5 |
17560 | cat conftest.$ac_ext >&5 | |
6232543b | 17561 | fi |
698dcdb6 | 17562 | rm -f conftest* |
698dcdb6 | 17563 | |
009fead0 VZ |
17564 | LIBS="$save_LIBS" |
17565 | CFLAGS="$save_CFLAGS" | |
d9b9876f | 17566 | |
009fead0 VZ |
17567 | echo "$ac_t""$THREADS_OK" 1>&6 |
17568 | if test "x$THREADS_OK" = "xyes"; then | |
17569 | break; | |
17570 | fi | |
d9b9876f | 17571 | |
009fead0 VZ |
17572 | THREADS_LINK="" |
17573 | THREADS_CFLAGS="" | |
17574 | done | |
4f14bcd8 | 17575 | |
009fead0 VZ |
17576 | if test "x$THREADS_OK" != "xyes"; then |
17577 | wxUSE_THREADS=no | |
17578 | echo "configure: warning: No thread support on this system... disabled" 1>&2 | |
17579 | else | |
fe5a9cab VZ |
17580 | LIBS="$THREADS_LINK $THREADS_CFLAGS $LIBS" |
17581 | ||
009fead0 | 17582 | echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6 |
43d99b6d | 17583 | echo "configure:17584: checking if more special flags are required for pthreads" >&5 |
009fead0 VZ |
17584 | flag=no |
17585 | case "${host}" in | |
17586 | *-aix* | *-freebsd*) | |
17587 | flag="-D_THREAD_SAFE" | |
17588 | ;; | |
17589 | *solaris* | alpha*-osf*) | |
17590 | flag="-D_REENTRANT" | |
17591 | ;; | |
17592 | esac | |
17593 | echo "$ac_t""${flag}" 1>&6 | |
17594 | if test "x$flag" != xno; then | |
04727afd | 17595 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" |
009fead0 VZ |
17596 | fi |
17597 | ||
009fead0 | 17598 | if test "x$THREADS_CFLAGS" != "x"; then |
04727afd | 17599 | CFLAGS="$CFLAGS $THREADS_CFLAGS" |
009fead0 VZ |
17600 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" |
17601 | fi | |
17602 | fi | |
4f14bcd8 | 17603 | fi |
4f14bcd8 | 17604 | |
7274f1c7 RL |
17605 | if test "$wxUSE_THREADS" = "yes" ; then |
17606 | for ac_func in thr_setconcurrency | |
4f14bcd8 GD |
17607 | do |
17608 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
43d99b6d | 17609 | echo "configure:17610: checking for $ac_func" >&5 |
4f14bcd8 | 17610 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 VZ |
17611 | echo $ac_n "(cached) $ac_c" 1>&6 |
17612 | else | |
4f14bcd8 | 17613 | cat > conftest.$ac_ext <<EOF |
43d99b6d | 17614 | #line 17615 "configure" |
d9b9876f | 17615 | #include "confdefs.h" |
4f14bcd8 GD |
17616 | /* System header to define __stub macros and hopefully few prototypes, |
17617 | which can conflict with char $ac_func(); below. */ | |
17618 | #include <assert.h> | |
17619 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17620 | /* We use char because int might match the return type of a gcc2 | |
17621 | builtin and then its argument prototype would still apply. */ | |
17622 | char $ac_func(); | |
17623 | ||
698dcdb6 | 17624 | int main() { |
d9b9876f | 17625 | |
4f14bcd8 GD |
17626 | /* The GNU C library defines this for functions which it implements |
17627 | to always fail with ENOSYS. Some functions are actually named | |
17628 | something starting with __ and the normal name is an alias. */ | |
17629 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17630 | choke me | |
17631 | #else | |
17632 | $ac_func(); | |
17633 | #endif | |
17634 | ||
698dcdb6 VZ |
17635 | ; return 0; } |
17636 | EOF | |
43d99b6d | 17637 | if { (eval echo configure:17638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17638 | rm -rf conftest* |
4f14bcd8 | 17639 | eval "ac_cv_func_$ac_func=yes" |
d9b9876f | 17640 | else |
698dcdb6 VZ |
17641 | echo "configure: failed program was:" >&5 |
17642 | cat conftest.$ac_ext >&5 | |
17643 | rm -rf conftest* | |
4f14bcd8 | 17644 | eval "ac_cv_func_$ac_func=no" |
6232543b | 17645 | fi |
698dcdb6 | 17646 | rm -f conftest* |
1e487827 | 17647 | fi |
698dcdb6 | 17648 | |
4f14bcd8 GD |
17649 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17650 | echo "$ac_t""yes" 1>&6 | |
17651 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17652 | cat >> confdefs.h <<EOF | |
17653 | #define $ac_tr_func 1 | |
d9b9876f | 17654 | EOF |
4f14bcd8 GD |
17655 | |
17656 | else | |
17657 | echo "$ac_t""no" 1>&6 | |
10f2d63a | 17658 | fi |
4f14bcd8 | 17659 | done |
10f2d63a | 17660 | |
10f2d63a | 17661 | |
7274f1c7 | 17662 | for ac_hdr in sched.h |
4f14bcd8 GD |
17663 | do |
17664 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
17665 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
43d99b6d | 17666 | echo "configure:17667: checking for $ac_hdr" >&5 |
4f14bcd8 GD |
17667 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
17668 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 17669 | else |
4f14bcd8 | 17670 | cat > conftest.$ac_ext <<EOF |
43d99b6d | 17671 | #line 17672 "configure" |
4f14bcd8 GD |
17672 | #include "confdefs.h" |
17673 | #include <$ac_hdr> | |
13111b2a | 17674 | EOF |
4f14bcd8 | 17675 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
43d99b6d | 17676 | { (eval echo configure:17677: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
17677 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
17678 | if test -z "$ac_err"; then | |
17679 | rm -rf conftest* | |
17680 | eval "ac_cv_header_$ac_safe=yes" | |
17681 | else | |
17682 | echo "$ac_err" >&5 | |
17683 | echo "configure: failed program was:" >&5 | |
17684 | cat conftest.$ac_ext >&5 | |
17685 | rm -rf conftest* | |
17686 | eval "ac_cv_header_$ac_safe=no" | |
13111b2a | 17687 | fi |
4f14bcd8 | 17688 | rm -f conftest* |
10f2d63a | 17689 | fi |
4f14bcd8 GD |
17690 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
17691 | echo "$ac_t""yes" 1>&6 | |
17692 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
698dcdb6 | 17693 | cat >> confdefs.h <<EOF |
4f14bcd8 | 17694 | #define $ac_tr_hdr 1 |
f6bcfd97 | 17695 | EOF |
4f14bcd8 GD |
17696 | |
17697 | else | |
17698 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 | 17699 | fi |
4f14bcd8 | 17700 | done |
f6bcfd97 | 17701 | |
009fead0 VZ |
17702 | if test "$ac_cv_header_sched_h" = "yes"; then |
17703 | echo $ac_n "checking for sched_yield""... $ac_c" 1>&6 | |
43d99b6d | 17704 | echo "configure:17705: checking for sched_yield" >&5 |
009fead0 | 17705 | if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then |
4f14bcd8 GD |
17706 | echo $ac_n "(cached) $ac_c" 1>&6 |
17707 | else | |
009fead0 | 17708 | cat > conftest.$ac_ext <<EOF |
43d99b6d | 17709 | #line 17710 "configure" |
4f14bcd8 | 17710 | #include "confdefs.h" |
009fead0 VZ |
17711 | /* System header to define __stub macros and hopefully few prototypes, |
17712 | which can conflict with char sched_yield(); below. */ | |
17713 | #include <assert.h> | |
4f14bcd8 GD |
17714 | /* Override any gcc2 internal prototype to avoid an error. */ |
17715 | /* We use char because int might match the return type of a gcc2 | |
17716 | builtin and then its argument prototype would still apply. */ | |
17717 | char sched_yield(); | |
10f2d63a | 17718 | |
4f14bcd8 | 17719 | int main() { |
009fead0 VZ |
17720 | |
17721 | /* The GNU C library defines this for functions which it implements | |
17722 | to always fail with ENOSYS. Some functions are actually named | |
17723 | something starting with __ and the normal name is an alias. */ | |
17724 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
17725 | choke me | |
17726 | #else | |
17727 | sched_yield(); | |
17728 | #endif | |
17729 | ||
4f14bcd8 | 17730 | ; return 0; } |
10f2d63a | 17731 | EOF |
43d99b6d | 17732 | if { (eval echo configure:17733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 | 17733 | rm -rf conftest* |
009fead0 | 17734 | eval "ac_cv_func_sched_yield=yes" |
10f2d63a | 17735 | else |
4f14bcd8 GD |
17736 | echo "configure: failed program was:" >&5 |
17737 | cat conftest.$ac_ext >&5 | |
17738 | rm -rf conftest* | |
009fead0 | 17739 | eval "ac_cv_func_sched_yield=no" |
10f2d63a | 17740 | fi |
4f14bcd8 | 17741 | rm -f conftest* |
4f14bcd8 | 17742 | fi |
009fead0 VZ |
17743 | |
17744 | if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then | |
4f14bcd8 GD |
17745 | echo "$ac_t""yes" 1>&6 |
17746 | cat >> confdefs.h <<\EOF | |
17747 | #define HAVE_SCHED_YIELD 1 | |
10f2d63a VZ |
17748 | EOF |
17749 | ||
4f14bcd8 GD |
17750 | else |
17751 | echo "$ac_t""no" 1>&6 | |
009fead0 VZ |
17752 | |
17753 | echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6 | |
43d99b6d | 17754 | echo "configure:17755: checking for sched_yield in -lposix4" >&5 |
4f14bcd8 GD |
17755 | ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'` |
17756 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17757 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17758 | else | |
17759 | ac_save_LIBS="$LIBS" | |
17760 | LIBS="-lposix4 $LIBS" | |
17761 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 17762 | #line 17763 "configure" |
4f14bcd8 GD |
17763 | #include "confdefs.h" |
17764 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17765 | /* We use char because int might match the return type of a gcc2 | |
17766 | builtin and then its argument prototype would still apply. */ | |
17767 | char sched_yield(); | |
47c13eb7 | 17768 | |
4f14bcd8 GD |
17769 | int main() { |
17770 | sched_yield() | |
17771 | ; return 0; } | |
10f2d63a | 17772 | EOF |
43d99b6d | 17773 | if { (eval echo configure:17774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
17774 | rm -rf conftest* |
17775 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 17776 | else |
4f14bcd8 GD |
17777 | echo "configure: failed program was:" >&5 |
17778 | cat conftest.$ac_ext >&5 | |
17779 | rm -rf conftest* | |
17780 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 17781 | fi |
4f14bcd8 GD |
17782 | rm -f conftest* |
17783 | LIBS="$ac_save_LIBS" | |
10f2d63a | 17784 | |
54276ccf | 17785 | fi |
4f14bcd8 GD |
17786 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
17787 | echo "$ac_t""yes" 1>&6 | |
17788 | cat >> confdefs.h <<\EOF | |
17789 | #define HAVE_SCHED_YIELD 1 | |
54276ccf | 17790 | EOF |
3d63bc3a | 17791 | POSIX4_LINK=" -lposix4" |
4f14bcd8 GD |
17792 | else |
17793 | echo "$ac_t""no" 1>&6 | |
17794 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
009fead0 | 17795 | |
54276ccf VZ |
17796 | fi |
17797 | ||
009fead0 VZ |
17798 | |
17799 | ||
4f14bcd8 | 17800 | fi |
698dcdb6 | 17801 | |
009fead0 | 17802 | fi |
10f2d63a | 17803 | |
7274f1c7 | 17804 | HAVE_PRIOR_FUNCS=0 |
009fead0 | 17805 | echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6 |
43d99b6d | 17806 | echo "configure:17807: checking for pthread_attr_getschedpolicy" >&5 |
009fead0 | 17807 | if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then |
698dcdb6 VZ |
17808 | echo $ac_n "(cached) $ac_c" 1>&6 |
17809 | else | |
009fead0 | 17810 | cat > conftest.$ac_ext <<EOF |
43d99b6d | 17811 | #line 17812 "configure" |
422107f9 | 17812 | #include "confdefs.h" |
009fead0 VZ |
17813 | /* System header to define __stub macros and hopefully few prototypes, |
17814 | which can conflict with char pthread_attr_getschedpolicy(); below. */ | |
17815 | #include <assert.h> | |
4f14bcd8 GD |
17816 | /* Override any gcc2 internal prototype to avoid an error. */ |
17817 | /* We use char because int might match the return type of a gcc2 | |
17818 | builtin and then its argument prototype would still apply. */ | |
17819 | char pthread_attr_getschedpolicy(); | |
17820 | ||
17821 | int main() { | |
009fead0 VZ |
17822 | |
17823 | /* The GNU C library defines this for functions which it implements | |
17824 | to always fail with ENOSYS. Some functions are actually named | |
17825 | something starting with __ and the normal name is an alias. */ | |
17826 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
17827 | choke me | |
17828 | #else | |
17829 | pthread_attr_getschedpolicy(); | |
17830 | #endif | |
17831 | ||
4f14bcd8 | 17832 | ; return 0; } |
698dcdb6 | 17833 | EOF |
43d99b6d | 17834 | if { (eval echo configure:17835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17835 | rm -rf conftest* |
009fead0 | 17836 | eval "ac_cv_func_pthread_attr_getschedpolicy=yes" |
422107f9 | 17837 | else |
698dcdb6 | 17838 | echo "configure: failed program was:" >&5 |
422107f9 | 17839 | cat conftest.$ac_ext >&5 |
698dcdb6 | 17840 | rm -rf conftest* |
009fead0 | 17841 | eval "ac_cv_func_pthread_attr_getschedpolicy=no" |
422107f9 | 17842 | fi |
698dcdb6 | 17843 | rm -f conftest* |
422107f9 | 17844 | fi |
009fead0 VZ |
17845 | |
17846 | if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then | |
698dcdb6 | 17847 | echo "$ac_t""yes" 1>&6 |
009fead0 | 17848 | echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6 |
43d99b6d | 17849 | echo "configure:17850: checking for pthread_attr_setschedparam" >&5 |
009fead0 | 17850 | if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then |
698dcdb6 | 17851 | echo $ac_n "(cached) $ac_c" 1>&6 |
422107f9 | 17852 | else |
009fead0 | 17853 | cat > conftest.$ac_ext <<EOF |
43d99b6d | 17854 | #line 17855 "configure" |
422107f9 | 17855 | #include "confdefs.h" |
009fead0 VZ |
17856 | /* System header to define __stub macros and hopefully few prototypes, |
17857 | which can conflict with char pthread_attr_setschedparam(); below. */ | |
17858 | #include <assert.h> | |
422107f9 VZ |
17859 | /* Override any gcc2 internal prototype to avoid an error. */ |
17860 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 17861 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 17862 | char pthread_attr_setschedparam(); |
698dcdb6 VZ |
17863 | |
17864 | int main() { | |
009fead0 VZ |
17865 | |
17866 | /* The GNU C library defines this for functions which it implements | |
17867 | to always fail with ENOSYS. Some functions are actually named | |
17868 | something starting with __ and the normal name is an alias. */ | |
17869 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
17870 | choke me | |
17871 | #else | |
17872 | pthread_attr_setschedparam(); | |
17873 | #endif | |
17874 | ||
698dcdb6 VZ |
17875 | ; return 0; } |
17876 | EOF | |
43d99b6d | 17877 | if { (eval echo configure:17878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17878 | rm -rf conftest* |
009fead0 | 17879 | eval "ac_cv_func_pthread_attr_setschedparam=yes" |
698dcdb6 VZ |
17880 | else |
17881 | echo "configure: failed program was:" >&5 | |
17882 | cat conftest.$ac_ext >&5 | |
17883 | rm -rf conftest* | |
009fead0 | 17884 | eval "ac_cv_func_pthread_attr_setschedparam=no" |
698dcdb6 VZ |
17885 | fi |
17886 | rm -f conftest* | |
698dcdb6 | 17887 | fi |
009fead0 VZ |
17888 | |
17889 | if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then | |
698dcdb6 | 17890 | echo "$ac_t""yes" 1>&6 |
009fead0 | 17891 | echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6 |
43d99b6d | 17892 | echo "configure:17893: checking for sched_get_priority_max" >&5 |
009fead0 | 17893 | if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then |
698dcdb6 VZ |
17894 | echo $ac_n "(cached) $ac_c" 1>&6 |
17895 | else | |
009fead0 | 17896 | cat > conftest.$ac_ext <<EOF |
43d99b6d | 17897 | #line 17898 "configure" |
422107f9 | 17898 | #include "confdefs.h" |
009fead0 VZ |
17899 | /* System header to define __stub macros and hopefully few prototypes |
17900 | else | |
17901 | echo "$ac_t""no" 1>&6 | |
17902 | which can conflict with char sched_get_priority_max(); below. */ | |
17903 | #include <assert.h> | |
4f14bcd8 GD |
17904 | /* Override any gcc2 internal prototype to avoid an error. */ |
17905 | /* We use char because int might match the return type of a gcc2 | |
17906 | builtin and then its argument prototype would still apply. */ | |
17907 | char sched_get_priority_max(); | |
17908 | ||
17909 | int main() { | |
009fead0 VZ |
17910 | |
17911 | /* The GNU C library defines this for functions which it implements | |
17912 | to always fail with ENOSYS. Some functions are actually named | |
17913 | something starting with __ and the normal name is an alias. */ | |
17914 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
17915 | choke me | |
17916 | #else | |
17917 | sched_get_priority_max(); | |
17918 | #endif | |
17919 | ||
4f14bcd8 | 17920 | ; return 0; } |
698dcdb6 | 17921 | EOF |
43d99b6d | 17922 | if { (eval echo configure:17923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17923 | rm -rf conftest* |
009fead0 | 17924 | eval "ac_cv_func_sched_get_priority_max=yes" |
422107f9 | 17925 | else |
698dcdb6 | 17926 | echo "configure: failed program was:" >&5 |
422107f9 | 17927 | cat conftest.$ac_ext >&5 |
698dcdb6 | 17928 | rm -rf conftest* |
009fead0 | 17929 | eval "ac_cv_func_sched_get_priority_max=no" |
422107f9 | 17930 | fi |
698dcdb6 | 17931 | rm -f conftest* |
422107f9 | 17932 | fi |
009fead0 VZ |
17933 | |
17934 | if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then | |
698dcdb6 | 17935 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
17936 | HAVE_PRIOR_FUNCS=1 |
17937 | else | |
17938 | echo "$ac_t""no" 1>&6 | |
17939 | echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6 | |
43d99b6d | 17940 | echo "configure:17941: checking for sched_get_priority_max in -lposix4" >&5 |
4f14bcd8 | 17941 | ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
17942 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
17943 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 17944 | else |
698dcdb6 | 17945 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17946 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 17947 | cat > conftest.$ac_ext <<EOF |
43d99b6d | 17948 | #line 17949 "configure" |
422107f9 VZ |
17949 | #include "confdefs.h" |
17950 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17951 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 17952 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 17953 | char sched_get_priority_max(); |
698dcdb6 VZ |
17954 | |
17955 | int main() { | |
4f14bcd8 | 17956 | sched_get_priority_max() |
698dcdb6 VZ |
17957 | ; return 0; } |
17958 | EOF | |
43d99b6d | 17959 | if { (eval echo configure:17960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17960 | rm -rf conftest* |
17961 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17962 | else | |
17963 | echo "configure: failed program was:" >&5 | |
17964 | cat conftest.$ac_ext >&5 | |
17965 | rm -rf conftest* | |
17966 | eval "ac_cv_lib_$ac_lib_var=no" | |
17967 | fi | |
17968 | rm -f conftest* | |
17969 | LIBS="$ac_save_LIBS" | |
17970 | ||
17971 | fi | |
17972 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17973 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 17974 | |
7274f1c7 RL |
17975 | HAVE_PRIOR_FUNCS=1 |
17976 | POSIX4_LINK=" -lposix4" | |
17977 | ||
698dcdb6 VZ |
17978 | else |
17979 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
17980 | fi |
17981 | ||
7274f1c7 | 17982 | |
422107f9 VZ |
17983 | fi |
17984 | ||
7274f1c7 | 17985 | |
4f14bcd8 GD |
17986 | else |
17987 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
17988 | fi |
17989 | ||
7274f1c7 | 17990 | |
4f14bcd8 | 17991 | fi |
463abc64 | 17992 | |
463abc64 | 17993 | |
7274f1c7 RL |
17994 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
17995 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 17996 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 |
698dcdb6 | 17997 | EOF |
463abc64 | 17998 | |
7274f1c7 RL |
17999 | else |
18000 | echo "configure: warning: Setting thread priority will not work" 1>&2 | |
18001 | fi | |
463abc64 | 18002 | |
009fead0 | 18003 | echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6 |
43d99b6d | 18004 | echo "configure:18005: checking for pthread_cancel" >&5 |
009fead0 | 18005 | if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then |
698dcdb6 | 18006 | echo $ac_n "(cached) $ac_c" 1>&6 |
422107f9 | 18007 | else |
009fead0 | 18008 | cat > conftest.$ac_ext <<EOF |
43d99b6d | 18009 | #line 18010 "configure" |
422107f9 | 18010 | #include "confdefs.h" |
009fead0 VZ |
18011 | /* System header to define __stub macros and hopefully few prototypes, |
18012 | which can conflict with char pthread_cancel(); below. */ | |
18013 | #include <assert.h> | |
422107f9 VZ |
18014 | /* Override any gcc2 internal prototype to avoid an error. */ |
18015 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 18016 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 18017 | char pthread_cancel(); |
698dcdb6 VZ |
18018 | |
18019 | int main() { | |
009fead0 VZ |
18020 | |
18021 | /* The GNU C library defines this for functions which it implements | |
18022 | to always fail with ENOSYS. Some functions are actually named | |
18023 | something starting with __ and the normal name is an alias. */ | |
18024 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
18025 | choke me | |
18026 | #else | |
18027 | pthread_cancel(); | |
18028 | #endif | |
18029 | ||
698dcdb6 VZ |
18030 | ; return 0; } |
18031 | EOF | |
43d99b6d | 18032 | if { (eval echo configure:18033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 18033 | rm -rf conftest* |
009fead0 | 18034 | eval "ac_cv_func_pthread_cancel=yes" |
698dcdb6 VZ |
18035 | else |
18036 | echo "configure: failed program was:" >&5 | |
18037 | cat conftest.$ac_ext >&5 | |
18038 | rm -rf conftest* | |
009fead0 | 18039 | eval "ac_cv_func_pthread_cancel=no" |
698dcdb6 VZ |
18040 | fi |
18041 | rm -f conftest* | |
698dcdb6 | 18042 | fi |
009fead0 VZ |
18043 | |
18044 | if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then | |
698dcdb6 | 18045 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
18046 | cat >> confdefs.h <<\EOF |
18047 | #define HAVE_PTHREAD_CANCEL 1 | |
18048 | EOF | |
18049 | ||
698dcdb6 VZ |
18050 | else |
18051 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 | 18052 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 |
422107f9 VZ |
18053 | fi |
18054 | ||
422107f9 | 18055 | |
7274f1c7 | 18056 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 |
43d99b6d | 18057 | echo "configure:18058: checking for pthread_cleanup_push/pop" >&5 |
4f14bcd8 GD |
18058 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then |
18059 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18060 | else | |
18061 | ||
7274f1c7 | 18062 | cat > conftest.$ac_ext <<EOF |
43d99b6d | 18063 | #line 18064 "configure" |
4f14bcd8 GD |
18064 | #include "confdefs.h" |
18065 | #include <pthread.h> | |
18066 | int main() { | |
18067 | ||
7274f1c7 RL |
18068 | pthread_cleanup_push(NULL, NULL); |
18069 | pthread_cleanup_pop(0); | |
18070 | ||
4f14bcd8 GD |
18071 | ; return 0; } |
18072 | EOF | |
43d99b6d | 18073 | if { (eval echo configure:18074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
18074 | rm -rf conftest* |
18075 | ||
7274f1c7 RL |
18076 | wx_cv_func_pthread_cleanup_push=yes |
18077 | ||
4f14bcd8 GD |
18078 | else |
18079 | echo "configure: failed program was:" >&5 | |
18080 | cat conftest.$ac_ext >&5 | |
18081 | rm -rf conftest* | |
18082 | ||
7274f1c7 RL |
18083 | wx_cv_func_pthread_cleanup_push=no |
18084 | ||
4f14bcd8 GD |
18085 | fi |
18086 | rm -f conftest* | |
7274f1c7 | 18087 | |
10f2d63a VZ |
18088 | fi |
18089 | ||
4f14bcd8 GD |
18090 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 |
18091 | ||
7274f1c7 RL |
18092 | if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then |
18093 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18094 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 |
c7a2bf27 RR |
18095 | EOF |
18096 | ||
7274f1c7 | 18097 | fi |
4f14bcd8 | 18098 | |
7274f1c7 | 18099 | |
19bc6aad | 18100 | if test "x$wx_cv_lib_glibc21" = "xyes"; then |
7274f1c7 RL |
18101 | CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" |
18102 | fi | |
4f14bcd8 | 18103 | |
7274f1c7 | 18104 | echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6 |
43d99b6d | 18105 | echo "configure:18106: checking for pthread_mutexattr_t" >&5 |
4f14bcd8 | 18106 | if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then |
698dcdb6 VZ |
18107 | echo $ac_n "(cached) $ac_c" 1>&6 |
18108 | else | |
4f14bcd8 | 18109 | |
7274f1c7 | 18110 | cat > conftest.$ac_ext <<EOF |
43d99b6d | 18111 | #line 18112 "configure" |
0dcf9893 | 18112 | #include "confdefs.h" |
4f14bcd8 GD |
18113 | #include <pthread.h> |
18114 | int main() { | |
18115 | ||
7274f1c7 RL |
18116 | pthread_mutexattr_t attr; |
18117 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
18118 | ||
4f14bcd8 | 18119 | ; return 0; } |
698dcdb6 | 18120 | EOF |
43d99b6d | 18121 | if { (eval echo configure:18122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 18122 | rm -rf conftest* |
4f14bcd8 | 18123 | |
7274f1c7 RL |
18124 | wx_cv_type_pthread_mutexattr_t=yes |
18125 | ||
3fed1840 | 18126 | else |
698dcdb6 | 18127 | echo "configure: failed program was:" >&5 |
3fed1840 | 18128 | cat conftest.$ac_ext >&5 |
698dcdb6 | 18129 | rm -rf conftest* |
4f14bcd8 | 18130 | |
7274f1c7 RL |
18131 | wx_cv_type_pthread_mutexattr_t=no |
18132 | ||
4f14bcd8 | 18133 | |
3fed1840 | 18134 | fi |
698dcdb6 | 18135 | rm -f conftest* |
7274f1c7 | 18136 | |
3fed1840 | 18137 | fi |
4f14bcd8 GD |
18138 | |
18139 | echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6 | |
18140 | ||
7274f1c7 RL |
18141 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then |
18142 | cat >> confdefs.h <<\EOF | |
4f14bcd8 GD |
18143 | #define HAVE_PTHREAD_MUTEXATTR_T 1 |
18144 | EOF | |
18145 | ||
7274f1c7 RL |
18146 | else |
18147 | echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6 | |
43d99b6d | 18148 | echo "configure:18149: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 |
4f14bcd8 | 18149 | if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then |
698dcdb6 | 18150 | echo $ac_n "(cached) $ac_c" 1>&6 |
3fed1840 | 18151 | else |
4f14bcd8 | 18152 | |
7274f1c7 | 18153 | cat > conftest.$ac_ext <<EOF |
43d99b6d | 18154 | #line 18155 "configure" |
3fed1840 | 18155 | #include "confdefs.h" |
4f14bcd8 | 18156 | #include <pthread.h> |
698dcdb6 | 18157 | int main() { |
4f14bcd8 | 18158 | |
7274f1c7 RL |
18159 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; |
18160 | ||
698dcdb6 VZ |
18161 | ; return 0; } |
18162 | EOF | |
43d99b6d | 18163 | if { (eval echo configure:18164: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 18164 | rm -rf conftest* |
4f14bcd8 | 18165 | |
7274f1c7 RL |
18166 | wx_cv_type_pthread_rec_mutex_init=yes |
18167 | ||
698dcdb6 VZ |
18168 | else |
18169 | echo "configure: failed program was:" >&5 | |
18170 | cat conftest.$ac_ext >&5 | |
18171 | rm -rf conftest* | |
4f14bcd8 | 18172 | |
7274f1c7 RL |
18173 | wx_cv_type_pthread_rec_mutex_init=no |
18174 | ||
4f14bcd8 | 18175 | |
698dcdb6 VZ |
18176 | fi |
18177 | rm -f conftest* | |
7274f1c7 | 18178 | |
3fed1840 RR |
18179 | fi |
18180 | ||
4f14bcd8 | 18181 | echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6 |
7274f1c7 RL |
18182 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then |
18183 | cat >> confdefs.h <<\EOF | |
4f14bcd8 GD |
18184 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 |
18185 | EOF | |
3fed1840 | 18186 | |
7274f1c7 RL |
18187 | else |
18188 | echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2 | |
18189 | fi | |
18190 | fi | |
7274f1c7 | 18191 | fi |
3fed1840 | 18192 | |
4f14bcd8 GD |
18193 | fi |
18194 | ||
18195 | if test "$wxUSE_THREADS" = "yes"; then | |
3a922bb4 | 18196 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18197 | #define wxUSE_THREADS 1 |
7b6058cd GD |
18198 | EOF |
18199 | ||
4f14bcd8 | 18200 | |
4f14bcd8 | 18201 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" |
698dcdb6 | 18202 | else |
4f14bcd8 GD |
18203 | if test "$ac_cv_func_strtok_r" = "yes"; then |
18204 | echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6 | |
43d99b6d | 18205 | echo "configure:18206: checking if -D_REENTRANT is needed" >&5 |
4f14bcd8 GD |
18206 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
18207 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
18208 | echo "$ac_t""yes" 1>&6 | |
18209 | else | |
18210 | echo "$ac_t""no" 1>&6 | |
18211 | fi | |
18212 | fi | |
18213 | fi | |
18214 | ||
18215 | if test "$WXGTK20" = 1 ; then | |
18216 | cat >> confdefs.h <<EOF | |
18217 | #define __WXGTK20__ $WXGTK20 | |
698dcdb6 | 18218 | EOF |
4f14bcd8 GD |
18219 | |
18220 | WXGTK12=1 | |
10f2d63a | 18221 | fi |
4f14bcd8 GD |
18222 | |
18223 | if test "$WXGTK12" = 1 ; then | |
18224 | cat >> confdefs.h <<EOF | |
18225 | #define __WXGTK12__ $WXGTK12 | |
18226 | EOF | |
18227 | ||
10f2d63a | 18228 | fi |
698dcdb6 | 18229 | |
4f14bcd8 GD |
18230 | if test "$WXGTK127" = 1 ; then |
18231 | cat >> confdefs.h <<EOF | |
18232 | #define __WXGTK127__ $WXGTK127 | |
698dcdb6 | 18233 | EOF |
4f14bcd8 | 18234 | |
698dcdb6 | 18235 | fi |
10f2d63a | 18236 | |
4f14bcd8 GD |
18237 | WXDEBUG= |
18238 | ||
18239 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
18240 | WXDEBUG="-g" | |
18241 | wxUSE_OPTIMISE=no | |
698dcdb6 | 18242 | fi |
4f14bcd8 GD |
18243 | |
18244 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
18245 | wxUSE_DEBUG_INFO=yes | |
18246 | WXDEBUG="-ggdb" | |
10f2d63a VZ |
18247 | fi |
18248 | ||
4f14bcd8 GD |
18249 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then |
18250 | cat >> confdefs.h <<\EOF | |
18251 | #define WXDEBUG 1 | |
18252 | EOF | |
18253 | ||
18254 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
10f2d63a | 18255 | else |
4f14bcd8 GD |
18256 | if test "$wxUSE_GTK" = 1 ; then |
18257 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
18258 | fi | |
18259 | fi | |
18260 | ||
18261 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
18262 | cat >> confdefs.h <<\EOF | |
18263 | #define wxUSE_MEMORY_TRACING 1 | |
18264 | EOF | |
18265 | ||
18266 | cat >> confdefs.h <<\EOF | |
18267 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
18268 | EOF | |
18269 | ||
18270 | cat >> confdefs.h <<\EOF | |
18271 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
18272 | EOF | |
18273 | ||
18274 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
18275 | fi | |
18276 | ||
18277 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
3d63bc3a | 18278 | DMALLOC_LIBS="-ldmalloc" |
4f14bcd8 GD |
18279 | fi |
18280 | ||
18281 | PROFILE= | |
18282 | if test "$wxUSE_PROFILE" = "yes" ; then | |
3d63bc3a | 18283 | PROFILE=" -pg" |
10f2d63a VZ |
18284 | fi |
18285 | ||
009fead0 VZ |
18286 | CODE_GEN_FLAGS= |
18287 | CODE_GEN_FLAGS_CXX= | |
88e30f2b | 18288 | if test "$GCC" = "yes" ; then |
4f14bcd8 GD |
18289 | if test "$wxUSE_NO_RTTI" = "yes" ; then |
18290 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
3a922bb4 | 18291 | fi |
4f14bcd8 GD |
18292 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
18293 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
18294 | fi | |
18295 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
18296 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
18297 | fi | |
4f14bcd8 GD |
18298 | if test "$USE_WIN32" = 1 ; then |
18299 | # I'm not even really sure what this was ever added to solve, | |
18300 | # but someone added it for mingw native builds, so I guess | |
18301 | # they had a reason, right?? | |
18302 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return" | |
18303 | fi | |
1d1b75ac VZ |
18304 | |
18305 | case "${host}" in | |
18306 | powerpc*-*-aix* ) | |
18307 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc" | |
18308 | ;; | |
18309 | esac | |
4f14bcd8 GD |
18310 | fi |
18311 | ||
4f14bcd8 GD |
18312 | if test "$wxUSE_OPTIMISE" = "no" ; then |
18313 | OPTIMISE= | |
18314 | else | |
18315 | if test "$GCC" = yes ; then | |
18316 | OPTIMISE="-O2" | |
18317 | case "${host}" in | |
18318 | i586-*-*|i686-*-* ) | |
18319 | OPTIMISE="${OPTIMISE} " | |
18320 | ;; | |
18321 | esac | |
18322 | else | |
18323 | OPTIMISE="-O" | |
18324 | fi | |
18325 | fi | |
18326 | ||
18327 | if test "$WXWIN_COMPATIBILITY_2" = "yes"; then | |
18328 | cat >> confdefs.h <<\EOF | |
18329 | #define WXWIN_COMPATIBILITY_2 1 | |
18330 | EOF | |
18331 | ||
18332 | ||
18333 | WXWIN_COMPATIBILITY_2_2="yes" | |
18334 | fi | |
18335 | ||
0c9a1c32 | 18336 | if test "x$WXWIN_COMPATIBILITY_2_2" != "xno"; then |
4f14bcd8 GD |
18337 | cat >> confdefs.h <<\EOF |
18338 | #define WXWIN_COMPATIBILITY_2_2 1 | |
18339 | EOF | |
18340 | ||
10f2d63a VZ |
18341 | fi |
18342 | ||
698dcdb6 | 18343 | |
10f2d63a | 18344 | if test "$wxUSE_GUI" = "yes"; then |
698dcdb6 | 18345 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18346 | #define wxUSE_GUI 1 |
18347 | EOF | |
18348 | ||
698dcdb6 | 18349 | |
10f2d63a | 18350 | else |
698dcdb6 | 18351 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18352 | #define wxUSE_NOGUI 1 |
18353 | EOF | |
18354 | ||
18355 | fi | |
18356 | ||
698dcdb6 | 18357 | |
10f2d63a | 18358 | if test "$wxUSE_UNIX" = "yes"; then |
698dcdb6 | 18359 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18360 | #define wxUSE_UNIX 1 |
18361 | EOF | |
18362 | ||
18363 | fi | |
18364 | ||
698dcdb6 | 18365 | |
10f2d63a | 18366 | if test "$wxUSE_APPLE_IEEE" = "yes"; then |
698dcdb6 | 18367 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18368 | #define wxUSE_APPLE_IEEE 1 |
18369 | EOF | |
18370 | ||
18371 | fi | |
18372 | ||
1e6feb95 VZ |
18373 | if test "$wxUSE_TIMER" = "yes"; then |
18374 | cat >> confdefs.h <<\EOF | |
18375 | #define wxUSE_TIMER 1 | |
18376 | EOF | |
18377 | ||
18378 | fi | |
18379 | ||
10f2d63a | 18380 | if test "$wxUSE_WAVE" = "yes"; then |
698dcdb6 | 18381 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18382 | #define wxUSE_WAVE 1 |
18383 | EOF | |
18384 | ||
18385 | fi | |
18386 | ||
1e6feb95 VZ |
18387 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
18388 | cat >> confdefs.h <<\EOF | |
18389 | #define wxUSE_CMDLINE_PARSER 1 | |
18390 | EOF | |
18391 | ||
18392 | fi | |
18393 | ||
18394 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
18395 | cat >> confdefs.h <<\EOF | |
18396 | #define wxUSE_STOPWATCH 1 | |
18397 | EOF | |
18398 | ||
18399 | fi | |
18400 | ||
18401 | if test "$wxUSE_DATETIME" = "yes"; then | |
18402 | cat >> confdefs.h <<\EOF | |
18403 | #define wxUSE_DATETIME 1 | |
18404 | EOF | |
18405 | ||
18406 | fi | |
18407 | ||
18408 | if test "$wxUSE_TIMEDATE" = "yes"; then | |
18409 | cat >> confdefs.h <<\EOF | |
18410 | #define wxUSE_TIMEDATE 1 | |
18411 | EOF | |
18412 | ||
18413 | fi | |
18414 | ||
10f2d63a | 18415 | if test "$wxUSE_FILE" = "yes"; then |
698dcdb6 | 18416 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18417 | #define wxUSE_FILE 1 |
18418 | EOF | |
18419 | ||
18420 | fi | |
18421 | ||
1e6feb95 VZ |
18422 | if test "$wxUSE_FFILE" = "yes"; then |
18423 | cat >> confdefs.h <<\EOF | |
18424 | #define wxUSE_FFILE 1 | |
18425 | EOF | |
18426 | ||
18427 | fi | |
18428 | ||
24528b0c | 18429 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
698dcdb6 | 18430 | cat >> confdefs.h <<\EOF |
24528b0c VS |
18431 | #define wxUSE_FILESYSTEM 1 |
18432 | EOF | |
18433 | ||
18434 | fi | |
18435 | ||
10f2d63a | 18436 | if test "$wxUSE_FS_INET" = "yes"; then |
698dcdb6 | 18437 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18438 | #define wxUSE_FS_INET 1 |
18439 | EOF | |
18440 | ||
18441 | fi | |
18442 | ||
18443 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
698dcdb6 | 18444 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18445 | #define wxUSE_FS_ZIP 1 |
18446 | EOF | |
18447 | ||
18448 | fi | |
18449 | ||
18450 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
698dcdb6 | 18451 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18452 | #define wxUSE_ZIPSTREAM 1 |
18453 | EOF | |
18454 | ||
18455 | fi | |
18456 | ||
eb4efbdc | 18457 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
698dcdb6 | 18458 | cat >> confdefs.h <<\EOF |
eb4efbdc VZ |
18459 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
18460 | EOF | |
18461 | ||
18462 | fi | |
18463 | ||
4f3c5f06 | 18464 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
698dcdb6 | 18465 | cat >> confdefs.h <<\EOF |
4f3c5f06 VZ |
18466 | #define wxUSE_SNGLINST_CHECKER 1 |
18467 | EOF | |
18468 | ||
18469 | fi | |
18470 | ||
10f2d63a | 18471 | if test "$wxUSE_BUSYINFO" = "yes"; then |
698dcdb6 | 18472 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18473 | #define wxUSE_BUSYINFO 1 |
18474 | EOF | |
18475 | ||
18476 | fi | |
18477 | ||
18478 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
698dcdb6 | 18479 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18480 | #define wxUSE_STD_IOSTREAM 1 |
18481 | EOF | |
18482 | ||
18483 | fi | |
18484 | ||
a3a584a7 VZ |
18485 | if test "$wxUSE_TEXTBUFFER" = "yes"; then |
18486 | cat >> confdefs.h <<\EOF | |
18487 | #define wxUSE_TEXTBUFFER 1 | |
18488 | EOF | |
18489 | ||
18490 | fi | |
18491 | ||
10f2d63a | 18492 | if test "$wxUSE_TEXTFILE" = "yes"; then |
a3a584a7 | 18493 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then |
156b2523 | 18494 | echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2 |
10f2d63a | 18495 | else |
698dcdb6 | 18496 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18497 | #define wxUSE_TEXTFILE 1 |
18498 | EOF | |
18499 | ||
18500 | fi | |
18501 | fi | |
18502 | ||
18503 | if test "$wxUSE_CONFIG" = "yes" ; then | |
18504 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
156b2523 | 18505 | echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2 |
10f2d63a | 18506 | else |
698dcdb6 | 18507 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18508 | #define wxUSE_CONFIG 1 |
18509 | EOF | |
18510 | ||
18511 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
18512 | fi | |
18513 | fi | |
18514 | ||
18515 | if test "$wxUSE_INTL" = "yes" ; then | |
18516 | if test "$wxUSE_FILE" != "yes"; then | |
156b2523 | 18517 | echo "configure: warning: I18n code requires wxFile... disabled" 1>&2 |
10f2d63a | 18518 | else |
698dcdb6 | 18519 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18520 | #define wxUSE_INTL 1 |
18521 | EOF | |
18522 | ||
18523 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
f6bcfd97 | 18524 | GUIDIST="$GUIDIST INTL_DIST" |
10f2d63a VZ |
18525 | fi |
18526 | fi | |
18527 | ||
18528 | if test "$wxUSE_LOG" = "yes"; then | |
698dcdb6 | 18529 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18530 | #define wxUSE_LOG 1 |
18531 | EOF | |
18532 | ||
d73be714 VZ |
18533 | |
18534 | if test "$wxUSE_LOGGUI" = "yes"; then | |
18535 | cat >> confdefs.h <<\EOF | |
18536 | #define wxUSE_LOGGUI 1 | |
18537 | EOF | |
18538 | ||
18539 | fi | |
18540 | ||
18541 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
18542 | cat >> confdefs.h <<\EOF | |
18543 | #define wxUSE_LOGWINDOW 1 | |
69d27ff7 MB |
18544 | EOF |
18545 | ||
18546 | fi | |
18547 | ||
18548 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
18549 | cat >> confdefs.h <<\EOF | |
18550 | #define wxUSE_LOG_DIALOG 1 | |
d73be714 VZ |
18551 | EOF |
18552 | ||
18553 | fi | |
10f2d63a VZ |
18554 | fi |
18555 | ||
18556 | if test "$wxUSE_LONGLONG" = "yes"; then | |
698dcdb6 | 18557 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18558 | #define wxUSE_LONGLONG 1 |
18559 | EOF | |
18560 | ||
18561 | fi | |
18562 | ||
e8f65ba6 | 18563 | if test "$wxUSE_GEOMETRY" = "yes"; then |
698dcdb6 | 18564 | cat >> confdefs.h <<\EOF |
e8f65ba6 RR |
18565 | #define wxUSE_GEOMETRY 1 |
18566 | EOF | |
18567 | ||
18568 | fi | |
18569 | ||
10f2d63a | 18570 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
698dcdb6 | 18571 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18572 | #define wxUSE_DIALUP_MANAGER 1 |
18573 | EOF | |
18574 | ||
70f7a477 | 18575 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
10f2d63a VZ |
18576 | fi |
18577 | ||
18578 | if test "$wxUSE_STREAMS" = "yes" ; then | |
698dcdb6 | 18579 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18580 | #define wxUSE_STREAMS 1 |
18581 | EOF | |
18582 | ||
18583 | fi | |
18584 | ||
1e487827 | 18585 | |
1e6feb95 | 18586 | if test "$wxUSE_DATETIME" = "yes"; then |
698dcdb6 | 18587 | for ac_func in strptime |
83307f33 | 18588 | do |
698dcdb6 | 18589 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
43d99b6d | 18590 | echo "configure:18591: checking for $ac_func" >&5 |
698dcdb6 VZ |
18591 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18592 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18593 | else | |
18594 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 18595 | #line 18596 "configure" |
83307f33 VZ |
18596 | #include "confdefs.h" |
18597 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 18598 | which can conflict with char $ac_func(); below. */ |
83307f33 VZ |
18599 | #include <assert.h> |
18600 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18601 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18602 | builtin and then its argument prototype would still apply. */ |
18603 | char $ac_func(); | |
18604 | ||
18605 | int main() { | |
83307f33 VZ |
18606 | |
18607 | /* The GNU C library defines this for functions which it implements | |
18608 | to always fail with ENOSYS. Some functions are actually named | |
18609 | something starting with __ and the normal name is an alias. */ | |
18610 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18611 | choke me | |
18612 | #else | |
698dcdb6 | 18613 | $ac_func(); |
83307f33 VZ |
18614 | #endif |
18615 | ||
698dcdb6 | 18616 | ; return 0; } |
83307f33 | 18617 | EOF |
43d99b6d | 18618 | if { (eval echo configure:18619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18619 | rm -rf conftest* |
18620 | eval "ac_cv_func_$ac_func=yes" | |
18621 | else | |
18622 | echo "configure: failed program was:" >&5 | |
18623 | cat conftest.$ac_ext >&5 | |
18624 | rm -rf conftest* | |
18625 | eval "ac_cv_func_$ac_func=no" | |
18626 | fi | |
18627 | rm -f conftest* | |
18628 | fi | |
83307f33 | 18629 | |
698dcdb6 VZ |
18630 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
18631 | echo "$ac_t""yes" 1>&6 | |
18632 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18633 | cat >> confdefs.h <<EOF | |
18634 | #define $ac_tr_func 1 | |
18635 | EOF | |
18636 | ||
18637 | else | |
18638 | echo "$ac_t""no" 1>&6 | |
83307f33 VZ |
18639 | fi |
18640 | done | |
18641 | ||
1e487827 | 18642 | |
62cc730f | 18643 | echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6 |
43d99b6d | 18644 | echo "configure:18645: checking for timezone variable in <time.h>" >&5 |
698dcdb6 VZ |
18645 | if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then |
18646 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18647 | else | |
18648 | ||
18649 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 18650 | #line 18651 "configure" |
360d6699 VZ |
18651 | #include "confdefs.h" |
18652 | ||
b4085ce6 | 18653 | #include <time.h> |
698dcdb6 VZ |
18654 | |
18655 | int main() { | |
360d6699 VZ |
18656 | |
18657 | int tz; | |
4f11a343 | 18658 | tz = timezone; |
698dcdb6 VZ |
18659 | |
18660 | ; return 0; } | |
18661 | EOF | |
43d99b6d | 18662 | if { (eval echo configure:18663: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
18663 | rm -rf conftest* |
18664 | ||
4f11a343 | 18665 | wx_cv_var_timezone=timezone |
698dcdb6 | 18666 | |
360d6699 | 18667 | else |
698dcdb6 VZ |
18668 | echo "configure: failed program was:" >&5 |
18669 | cat conftest.$ac_ext >&5 | |
18670 | rm -rf conftest* | |
18671 | ||
18672 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 18673 | #line 18674 "configure" |
360d6699 VZ |
18674 | #include "confdefs.h" |
18675 | ||
b4085ce6 | 18676 | #include <time.h> |
698dcdb6 VZ |
18677 | |
18678 | int main() { | |
360d6699 VZ |
18679 | |
18680 | int tz; | |
18681 | tz = _timezone; | |
698dcdb6 VZ |
18682 | |
18683 | ; return 0; } | |
18684 | EOF | |
43d99b6d | 18685 | if { (eval echo configure:18686: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
18686 | rm -rf conftest* |
18687 | ||
360d6699 | 18688 | wx_cv_var_timezone=_timezone |
698dcdb6 | 18689 | |
5357c8e8 | 18690 | else |
698dcdb6 VZ |
18691 | echo "configure: failed program was:" >&5 |
18692 | cat conftest.$ac_ext >&5 | |
18693 | rm -rf conftest* | |
18694 | ||
18695 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 18696 | #line 18697 "configure" |
5357c8e8 VZ |
18697 | #include "confdefs.h" |
18698 | ||
b4085ce6 | 18699 | #include <time.h> |
698dcdb6 VZ |
18700 | |
18701 | int main() { | |
5357c8e8 VZ |
18702 | |
18703 | int tz; | |
4f11a343 | 18704 | tz = __timezone; |
698dcdb6 VZ |
18705 | |
18706 | ; return 0; } | |
18707 | EOF | |
43d99b6d | 18708 | if { (eval echo configure:18709: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
18709 | rm -rf conftest* |
18710 | ||
4f11a343 | 18711 | wx_cv_var_timezone=__timezone |
698dcdb6 | 18712 | |
360d6699 | 18713 | else |
698dcdb6 VZ |
18714 | echo "configure: failed program was:" >&5 |
18715 | cat conftest.$ac_ext >&5 | |
18716 | rm -rf conftest* | |
f9bc1684 VS |
18717 | |
18718 | if test "$USE_DOS" = 0 ; then | |
62cc730f | 18719 | echo "configure: warning: no timezone variable" 1>&2 |
f9bc1684 VS |
18720 | fi |
18721 | ||
698dcdb6 | 18722 | |
360d6699 | 18723 | fi |
698dcdb6 VZ |
18724 | rm -f conftest* |
18725 | ||
18726 | ||
360d6699 | 18727 | fi |
698dcdb6 VZ |
18728 | rm -f conftest* |
18729 | ||
18730 | ||
6232543b | 18731 | fi |
698dcdb6 VZ |
18732 | rm -f conftest* |
18733 | ||
18734 | ||
1e487827 | 18735 | fi |
703e0a69 | 18736 | |
698dcdb6 VZ |
18737 | echo "$ac_t""$wx_cv_var_timezone" 1>&6 |
18738 | ||
f9bc1684 | 18739 | if test "x$wx_cv_var_timezone" != x ; then |
698dcdb6 | 18740 | cat >> confdefs.h <<EOF |
360d6699 VZ |
18741 | #define WX_TIMEZONE $wx_cv_var_timezone |
18742 | EOF | |
18743 | ||
f9bc1684 | 18744 | fi |
698dcdb6 VZ |
18745 | |
18746 | for ac_func in localtime | |
afc31813 | 18747 | do |
698dcdb6 | 18748 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
43d99b6d | 18749 | echo "configure:18750: checking for $ac_func" >&5 |
698dcdb6 VZ |
18750 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18751 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18752 | else | |
18753 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 18754 | #line 18755 "configure" |
10f2d63a | 18755 | #include "confdefs.h" |
afc31813 | 18756 | /* System header to define __stub macros and hopefully few prototypes, |
698dcdb6 | 18757 | which can conflict with char $ac_func(); below. */ |
afc31813 VZ |
18758 | #include <assert.h> |
18759 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18760 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18761 | builtin and then its argument prototype would still apply. */ |
18762 | char $ac_func(); | |
18763 | ||
18764 | int main() { | |
afc31813 VZ |
18765 | |
18766 | /* The GNU C library defines this for functions which it implements | |
18767 | to always fail with ENOSYS. Some functions are actually named | |
18768 | something starting with __ and the normal name is an alias. */ | |
18769 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18770 | choke me | |
18771 | #else | |
698dcdb6 | 18772 | $ac_func(); |
afc31813 VZ |
18773 | #endif |
18774 | ||
698dcdb6 | 18775 | ; return 0; } |
10f2d63a | 18776 | EOF |
43d99b6d | 18777 | if { (eval echo configure:18778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18778 | rm -rf conftest* |
18779 | eval "ac_cv_func_$ac_func=yes" | |
18780 | else | |
18781 | echo "configure: failed program was:" >&5 | |
18782 | cat conftest.$ac_ext >&5 | |
18783 | rm -rf conftest* | |
18784 | eval "ac_cv_func_$ac_func=no" | |
18785 | fi | |
18786 | rm -f conftest* | |
18787 | fi | |
afc31813 | 18788 | |
698dcdb6 VZ |
18789 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
18790 | echo "$ac_t""yes" 1>&6 | |
18791 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18792 | cat >> confdefs.h <<EOF | |
18793 | #define $ac_tr_func 1 | |
18794 | EOF | |
18795 | ||
18796 | else | |
18797 | echo "$ac_t""no" 1>&6 | |
afc31813 VZ |
18798 | fi |
18799 | done | |
18800 | ||
1e487827 | 18801 | |
698dcdb6 VZ |
18802 | if test "$ac_cv_func_localtime" = "yes"; then |
18803 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 | |
43d99b6d | 18804 | echo "configure:18805: checking for tm_gmtoff in struct tm" >&5 |
698dcdb6 VZ |
18805 | if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then |
18806 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18807 | else | |
18808 | ||
18809 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 18810 | #line 18811 "configure" |
0470b1e6 VZ |
18811 | #include "confdefs.h" |
18812 | ||
b4085ce6 | 18813 | #include <time.h> |
698dcdb6 VZ |
18814 | |
18815 | int main() { | |
0470b1e6 VZ |
18816 | |
18817 | struct tm tm; | |
18818 | tm.tm_gmtoff++; | |
698dcdb6 VZ |
18819 | |
18820 | ; return 0; } | |
18821 | EOF | |
43d99b6d | 18822 | if { (eval echo configure:18823: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
18823 | rm -rf conftest* |
18824 | ||
f03a98d8 | 18825 | wx_cv_struct_tm_has_gmtoff=yes |
698dcdb6 | 18826 | |
0470b1e6 | 18827 | else |
698dcdb6 VZ |
18828 | echo "configure: failed program was:" >&5 |
18829 | cat conftest.$ac_ext >&5 | |
18830 | rm -rf conftest* | |
18831 | wx_cv_struct_tm_has_gmtoff=no | |
18832 | ||
0470b1e6 | 18833 | fi |
698dcdb6 VZ |
18834 | rm -f conftest* |
18835 | ||
1e487827 | 18836 | fi |
698dcdb6 VZ |
18837 | |
18838 | echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6 | |
6232543b VS |
18839 | fi |
18840 | ||
18841 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
698dcdb6 | 18842 | cat >> confdefs.h <<\EOF |
6232543b VS |
18843 | #define WX_GMTOFF_IN_TM 1 |
18844 | EOF | |
0470b1e6 | 18845 | |
3fcdd07b VZ |
18846 | fi |
18847 | ||
698dcdb6 | 18848 | for ac_func in gettimeofday ftime |
3fcdd07b | 18849 | do |
698dcdb6 | 18850 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
43d99b6d | 18851 | echo "configure:18852: checking for $ac_func" >&5 |
698dcdb6 VZ |
18852 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18853 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18854 | else | |
18855 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 18856 | #line 18857 "configure" |
3fcdd07b VZ |
18857 | #include "confdefs.h" |
18858 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 18859 | which can conflict with char $ac_func(); below. */ |
3fcdd07b VZ |
18860 | #include <assert.h> |
18861 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18862 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18863 | builtin and then its argument prototype would still apply. */ |
18864 | char $ac_func(); | |
18865 | ||
18866 | int main() { | |
3fcdd07b VZ |
18867 | |
18868 | /* The GNU C library defines this for functions which it implements | |
18869 | to always fail with ENOSYS. Some functions are actually named | |
18870 | something starting with __ and the normal name is an alias. */ | |
18871 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18872 | choke me | |
18873 | #else | |
698dcdb6 | 18874 | $ac_func(); |
3fcdd07b VZ |
18875 | #endif |
18876 | ||
698dcdb6 VZ |
18877 | ; return 0; } |
18878 | EOF | |
43d99b6d | 18879 | if { (eval echo configure:18880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18880 | rm -rf conftest* |
18881 | eval "ac_cv_func_$ac_func=yes" | |
18882 | else | |
18883 | echo "configure: failed program was:" >&5 | |
18884 | cat conftest.$ac_ext >&5 | |
18885 | rm -rf conftest* | |
18886 | eval "ac_cv_func_$ac_func=no" | |
18887 | fi | |
18888 | rm -f conftest* | |
18889 | fi | |
18890 | ||
18891 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18892 | echo "$ac_t""yes" 1>&6 | |
18893 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18894 | cat >> confdefs.h <<EOF | |
18895 | #define $ac_tr_func 1 | |
3fcdd07b VZ |
18896 | EOF |
18897 | break | |
698dcdb6 VZ |
18898 | else |
18899 | echo "$ac_t""no" 1>&6 | |
3fcdd07b VZ |
18900 | fi |
18901 | done | |
18902 | ||
afc31813 | 18903 | |
698dcdb6 VZ |
18904 | if test "$ac_cv_func_gettimeofday" = "yes"; then |
18905 | echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6 | |
43d99b6d | 18906 | echo "configure:18907: checking whether gettimeofday takes two arguments" >&5 |
698dcdb6 VZ |
18907 | if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then |
18908 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18909 | else | |
18910 | ||
18911 | ||
18912 | ac_ext=C | |
18913 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 18914 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
18915 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
18916 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
18917 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 18918 | |
698dcdb6 VZ |
18919 | |
18920 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 18921 | #line 18922 "configure" |
10f2d63a | 18922 | #include "confdefs.h" |
afc31813 VZ |
18923 | |
18924 | #include <sys/time.h> | |
18925 | #include <unistd.h> | |
698dcdb6 VZ |
18926 | |
18927 | int main() { | |
afc31813 VZ |
18928 | |
18929 | struct timeval tv; | |
776862b4 | 18930 | gettimeofday(&tv, NULL); |
698dcdb6 VZ |
18931 | |
18932 | ; return 0; } | |
18933 | EOF | |
43d99b6d | 18934 | if { (eval echo configure:18935: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 18935 | rm -rf conftest* |
afc31813 | 18936 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a | 18937 | else |
698dcdb6 VZ |
18938 | echo "configure: failed program was:" >&5 |
18939 | cat conftest.$ac_ext >&5 | |
18940 | rm -rf conftest* | |
18941 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 18942 | #line 18943 "configure" |
10f2d63a | 18943 | #include "confdefs.h" |
afc31813 VZ |
18944 | |
18945 | #include <sys/time.h> | |
18946 | #include <unistd.h> | |
698dcdb6 VZ |
18947 | |
18948 | int main() { | |
afc31813 VZ |
18949 | |
18950 | struct timeval tv; | |
18951 | gettimeofday(&tv); | |
698dcdb6 VZ |
18952 | |
18953 | ; return 0; } | |
18954 | EOF | |
43d99b6d | 18955 | if { (eval echo configure:18956: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 18956 | rm -rf conftest* |
afc31813 | 18957 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a | 18958 | else |
698dcdb6 VZ |
18959 | echo "configure: failed program was:" >&5 |
18960 | cat conftest.$ac_ext >&5 | |
18961 | rm -rf conftest* | |
776862b4 VZ |
18962 | |
18963 | echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2 | |
18964 | wx_cv_func_gettimeofday_has_2_args=unknown | |
18965 | ||
698dcdb6 | 18966 | |
10f2d63a | 18967 | fi |
698dcdb6 VZ |
18968 | rm -f conftest* |
18969 | ||
10f2d63a | 18970 | fi |
698dcdb6 | 18971 | rm -f conftest* |
afc31813 | 18972 | ac_ext=c |
698dcdb6 | 18973 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 18974 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
18975 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
18976 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
18977 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a | 18978 | |
698dcdb6 | 18979 | |
afc31813 | 18980 | fi |
698dcdb6 VZ |
18981 | |
18982 | echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6 | |
c63c7106 | 18983 | |
afc31813 | 18984 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
698dcdb6 | 18985 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
18986 | #define WX_GETTIMEOFDAY_NO_TZ 1 |
18987 | EOF | |
18988 | ||
18989 | fi | |
18990 | fi | |
18991 | ||
698dcdb6 | 18992 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
18993 | #define wxUSE_TIMEDATE 1 |
18994 | EOF | |
18995 | ||
18996 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
18997 | fi | |
18998 | ||
698dcdb6 | 18999 | |
0feee163 | 19000 | if test "$wxUSE_SOCKETS" = "yes"; then |
6c657b52 | 19001 | if test "$wxUSE_X11" = "1"; then |
0feee163 VZ |
19002 | echo "configure: warning: wxSocket not yet supported under X11... disabled" 1>&2 |
19003 | wxUSE_SOCKETS="no" | |
19004 | fi | |
6c657b52 VS |
19005 | |
19006 | if test "$wxUSE_MGL" = "1"; then | |
19007 | echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2 | |
19008 | wxUSE_SOCKETS="no" | |
19009 | fi | |
0feee163 | 19010 | fi |
b089607b | 19011 | |
0feee163 VZ |
19012 | if test "$wxUSE_SOCKETS" = "yes"; then |
19013 | if test "$TOOLKIT" != "MSW"; then | |
3a922bb4 | 19014 | echo $ac_n "checking for socket""... $ac_c" 1>&6 |
43d99b6d | 19015 | echo "configure:19016: checking for socket" >&5 |
698dcdb6 VZ |
19016 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
19017 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 19018 | else |
698dcdb6 | 19019 | cat > conftest.$ac_ext <<EOF |
43d99b6d | 19020 | #line 19021 "configure" |
c63c7106 VZ |
19021 | #include "confdefs.h" |
19022 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 19023 | which can conflict with char socket(); below. */ |
c63c7106 VZ |
19024 | #include <assert.h> |
19025 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19026 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
19027 | builtin and then its argument prototype would still apply. */ |
19028 | char socket(); | |
19029 | ||
19030 | int main() { | |
c63c7106 VZ |
19031 | |
19032 | /* The GNU C library defines this for functions which it implements | |
19033 | to always fail with ENOSYS. Some functions are actually named | |
19034 | something starting with __ and the normal name is an alias. */ | |
19035 | #if defined (__stub_socket) || defined (__stub___socket) | |
19036 | choke me | |
19037 | #else | |
698dcdb6 | 19038 | socket(); |
c63c7106 VZ |
19039 | #endif |
19040 | ||
698dcdb6 VZ |
19041 | ; return 0; } |
19042 | EOF | |
43d99b6d | 19043 | if { (eval echo configure:19044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
19044 | rm -rf conftest* |
19045 | eval "ac_cv_func_socket=yes" | |
19046 | else | |
19047 | echo "configure: failed program was:" >&5 | |
19048 | cat conftest.$ac_ext >&5 | |
19049 | rm -rf conftest* | |
19050 | eval "ac_cv_func_socket=no" | |
19051 | fi | |
19052 | rm -f conftest* | |
19053 | fi | |
19054 | ||
19055 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
19056 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
19057 | : |
19058 | else | |
698dcdb6 VZ |
19059 | echo "$ac_t""no" 1>&6 |
19060 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
43d99b6d | 19061 | echo "configure:19062: checking for socket in -lsocket" >&5 |
698dcdb6 VZ |
19062 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
19063 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19064 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 19065 | else |
698dcdb6 | 19066 | ac_save_LIBS="$LIBS" |
c63c7106 | 19067 | LIBS="-lsocket $LIBS" |
698dcdb6 | 19068 | cat > conftest.$ac_ext <<EOF |
43d99b6d | 19069 | #line 19070 "configure" |
c63c7106 VZ |
19070 | #include "confdefs.h" |
19071 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19072 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
19073 | builtin and then its argument prototype would still apply. */ |
19074 | char socket(); | |
19075 | ||
19076 | int main() { | |
19077 | socket() | |
19078 | ; return 0; } | |
19079 | EOF | |
43d99b6d | 19080 | if { (eval echo configure:19081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
19081 | rm -rf conftest* |
19082 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19083 | else | |
19084 | echo "configure: failed program was:" >&5 | |
19085 | cat conftest.$ac_ext >&5 | |
19086 | rm -rf conftest* | |
19087 | eval "ac_cv_lib_$ac_lib_var=no" | |
19088 | fi | |
19089 | rm -f conftest* | |
19090 | LIBS="$ac_save_LIBS" | |
19091 | ||
19092 | fi | |
19093 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19094 | echo "$ac_t""yes" 1>&6 | |
d558c907 VS |
19095 | if test "$INET_LINK" != " -lsocket"; then |
19096 | INET_LINK="$INET_LINK -lsocket" | |
19097 | fi | |
c63c7106 | 19098 | else |
698dcdb6 | 19099 | echo "$ac_t""no" 1>&6 |
afc31813 | 19100 | |
3a922bb4 RL |
19101 | echo "configure: warning: socket library not found - sockets will be disabled" 1>&2 |
19102 | wxUSE_SOCKETS=no | |
19103 | ||
698dcdb6 | 19104 | |
6232543b | 19105 | fi |
b089607b | 19106 | |
3a922bb4 | 19107 | |
1e487827 | 19108 | fi |
afc31813 | 19109 | |
3a922bb4 | 19110 | fi |
0feee163 | 19111 | fi |
51a9faba | 19112 | |
0feee163 VZ |
19113 | if test "$wxUSE_SOCKETS" = "yes" ; then |
19114 | if test "$TOOLKIT" != "MSW"; then | |
3a922bb4 | 19115 | echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6 |
43d99b6d | 19116 | echo "configure:19117: checking what is the type of the third argument of getsockname" >&5 |
698dcdb6 VZ |
19117 | if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then |
19118 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19119 | else | |
19120 | ||
3a922bb4 RL |
19121 | |
19122 | ac_ext=C | |
698dcdb6 | 19123 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
1e487827 | 19124 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
19125 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
19126 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
19127 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 19128 | |
698dcdb6 | 19129 | |
3a922bb4 | 19130 | cat > conftest.$ac_ext <<EOF |
43d99b6d | 19131 | #line 19132 "configure" |
afc31813 | 19132 | #include "confdefs.h" |
51a9faba | 19133 | |
3a922bb4 RL |
19134 | #include <sys/types.h> |
19135 | #include <sys/socket.h> | |
19136 | ||
698dcdb6 | 19137 | int main() { |
51a9faba | 19138 | |
3a922bb4 RL |
19139 | socklen_t len; |
19140 | getsockname(0, 0, &len); | |
19141 | ||
698dcdb6 VZ |
19142 | ; return 0; } |
19143 | EOF | |
43d99b6d | 19144 | if { (eval echo configure:19145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 19145 | rm -rf conftest* |
51a9faba | 19146 | wx_cv_type_getsockname3=socklen_t |
afc31813 | 19147 | else |
698dcdb6 VZ |
19148 | echo "configure: failed program was:" >&5 |
19149 | cat conftest.$ac_ext >&5 | |
19150 | rm -rf conftest* | |
19151 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 19152 | #line 19153 "configure" |
afc31813 | 19153 | #include "confdefs.h" |
51a9faba | 19154 | |
3a922bb4 RL |
19155 | #include <sys/types.h> |
19156 | #include <sys/socket.h> | |
19157 | ||
698dcdb6 | 19158 | int main() { |
51a9faba | 19159 | |
3a922bb4 RL |
19160 | size_t len; |
19161 | getsockname(0, 0, &len); | |
19162 | ||
698dcdb6 VZ |
19163 | ; return 0; } |
19164 | EOF | |
43d99b6d | 19165 | if { (eval echo configure:19166: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 19166 | rm -rf conftest* |
51a9faba | 19167 | wx_cv_type_getsockname3=size_t |
afc31813 | 19168 | else |
698dcdb6 VZ |
19169 | echo "configure: failed program was:" >&5 |
19170 | cat conftest.$ac_ext >&5 | |
19171 | rm -rf conftest* | |
19172 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 19173 | #line 19174 "configure" |
afc31813 | 19174 | #include "confdefs.h" |
51a9faba | 19175 | |
3a922bb4 RL |
19176 | #include <sys/types.h> |
19177 | #include <sys/socket.h> | |
19178 | ||
698dcdb6 | 19179 | int main() { |
51a9faba | 19180 | |
3a922bb4 RL |
19181 | int len; |
19182 | getsockname(0, 0, &len); | |
19183 | ||
698dcdb6 VZ |
19184 | ; return 0; } |
19185 | EOF | |
43d99b6d | 19186 | if { (eval echo configure:19187: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 19187 | rm -rf conftest* |
51a9faba | 19188 | wx_cv_type_getsockname3=int |
afc31813 | 19189 | else |
698dcdb6 VZ |
19190 | echo "configure: failed program was:" >&5 |
19191 | cat conftest.$ac_ext >&5 | |
19192 | rm -rf conftest* | |
19193 | wx_cv_type_getsockname3=unknown | |
3a922bb4 | 19194 | |
afc31813 | 19195 | fi |
698dcdb6 | 19196 | rm -f conftest* |
3a922bb4 | 19197 | |
afc31813 | 19198 | fi |
698dcdb6 | 19199 | rm -f conftest* |
3a922bb4 | 19200 | |
afc31813 | 19201 | fi |
698dcdb6 | 19202 | rm -f conftest* |
51a9faba | 19203 | |
3a922bb4 | 19204 | ac_ext=c |
698dcdb6 | 19205 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
afc31813 | 19206 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
19207 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
19208 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
19209 | cross_compiling=$ac_cv_prog_cc_cross | |
afc31813 | 19210 | |
3a922bb4 | 19211 | |
51a9faba | 19212 | fi |
698dcdb6 VZ |
19213 | |
19214 | echo "$ac_t""$wx_cv_type_getsockname3" 1>&6 | |
51a9faba | 19215 | |
3a922bb4 RL |
19216 | if test "$wx_cv_type_getsockname3" = "unknown"; then |
19217 | wxUSE_SOCKETS=no | |
19218 | echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2 | |
19219 | else | |
19220 | cat >> confdefs.h <<EOF | |
51a9faba VZ |
19221 | #define SOCKLEN_T $wx_cv_type_getsockname3 |
19222 | EOF | |
19223 | ||
3a922bb4 | 19224 | fi |
51a9faba VZ |
19225 | fi |
19226 | fi | |
afc31813 | 19227 | |
51a9faba | 19228 | if test "$wxUSE_SOCKETS" = "yes" ; then |
698dcdb6 | 19229 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
19230 | #define wxUSE_SOCKETS 1 |
19231 | EOF | |
19232 | ||
70f7a477 | 19233 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
afc31813 VZ |
19234 | fi |
19235 | ||
698dcdb6 | 19236 | |
dc3d889d VZ |
19237 | if test "$wxUSE_GUI" = "yes"; then |
19238 | ||
156b2523 GD |
19239 | if test "$TOOLKIT" = "MAC"; then |
19240 | echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2 | |
19241 | wxUSE_JOYSTICK=no | |
19242 | fi | |
19243 | if test "$TOOLKIT" = "MOTIF"; then | |
19244 | echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2 | |
19245 | wxUSE_JOYSTICK=no | |
f79bd02d JS |
19246 | fi |
19247 | if test "$TOOLKIT" = "X11"; then | |
19248 | echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2 | |
19249 | wxUSE_JOYSTICK=no | |
156b2523 GD |
19250 | fi |
19251 | ||
3a922bb4 RL |
19252 | if test "$TOOLKIT" != "MSW"; then |
19253 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
19254 | for ac_hdr in linux/joystick.h | |
10f2d63a | 19255 | do |
698dcdb6 VZ |
19256 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
19257 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
43d99b6d | 19258 | echo "configure:19259: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
19259 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
19260 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19261 | else | |
19262 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 19263 | #line 19264 "configure" |
10f2d63a | 19264 | #include "confdefs.h" |
698dcdb6 VZ |
19265 | #include <$ac_hdr> |
19266 | EOF | |
19267 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
43d99b6d | 19268 | { (eval echo configure:19269: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
19269 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
19270 | if test -z "$ac_err"; then | |
19271 | rm -rf conftest* | |
19272 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 19273 | else |
698dcdb6 VZ |
19274 | echo "$ac_err" >&5 |
19275 | echo "configure: failed program was:" >&5 | |
10f2d63a | 19276 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
19277 | rm -rf conftest* |
19278 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 19279 | fi |
698dcdb6 | 19280 | rm -f conftest* |
10f2d63a | 19281 | fi |
698dcdb6 VZ |
19282 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
19283 | echo "$ac_t""yes" 1>&6 | |
19284 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
19285 | cat >> confdefs.h <<EOF | |
19286 | #define $ac_tr_hdr 1 | |
10f2d63a | 19287 | EOF |
698dcdb6 VZ |
19288 | |
19289 | else | |
19290 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
19291 | fi |
19292 | done | |
19293 | ||
3a922bb4 RL |
19294 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then |
19295 | wxUSE_JOYSTICK=no | |
156b2523 | 19296 | echo "configure: warning: Joystick not supported by this system... disabled" 1>&2 |
3a922bb4 RL |
19297 | fi |
19298 | fi | |
19299 | fi | |
b089607b | 19300 | |
3a922bb4 RL |
19301 | if test "$wxUSE_JOYSTICK" = "yes"; then |
19302 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
19303 | #define wxUSE_JOYSTICK 1 |
19304 | EOF | |
19305 | ||
3a922bb4 RL |
19306 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
19307 | fi | |
dc3d889d VZ |
19308 | fi |
19309 | ||
698dcdb6 | 19310 | |
b089607b VZ |
19311 | if test "$TOOLKIT" != "MSW"; then |
19312 | ||
3a922bb4 RL |
19313 | HAVE_DL_FUNCS=0 |
19314 | HAVE_SHL_FUNCS=0 | |
0b9ab0bd | 19315 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then |
3a922bb4 RL |
19316 | if test "$USE_DARWIN" = 1; then |
19317 | HAVE_DL_FUNCS=1 | |
19318 | else | |
19319 | for ac_func in dlopen | |
10f2d63a | 19320 | do |
698dcdb6 | 19321 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
43d99b6d | 19322 | echo "configure:19323: checking for $ac_func" >&5 |
698dcdb6 VZ |
19323 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
19324 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19325 | else | |
19326 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 19327 | #line 19328 "configure" |
10f2d63a VZ |
19328 | #include "confdefs.h" |
19329 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 19330 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
19331 | #include <assert.h> |
19332 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19333 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
19334 | builtin and then its argument prototype would still apply. */ |
19335 | char $ac_func(); | |
19336 | ||
19337 | int main() { | |
10f2d63a VZ |
19338 | |
19339 | /* The GNU C library defines this for functions which it implements | |
19340 | to always fail with ENOSYS. Some functions are actually named | |
19341 | something starting with __ and the normal name is an alias. */ | |
19342 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19343 | choke me | |
19344 | #else | |
698dcdb6 | 19345 | $ac_func(); |
10f2d63a VZ |
19346 | #endif |
19347 | ||
698dcdb6 VZ |
19348 | ; return 0; } |
19349 | EOF | |
43d99b6d | 19350 | if { (eval echo configure:19351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
19351 | rm -rf conftest* |
19352 | eval "ac_cv_func_$ac_func=yes" | |
19353 | else | |
19354 | echo "configure: failed program was:" >&5 | |
19355 | cat conftest.$ac_ext >&5 | |
19356 | rm -rf conftest* | |
19357 | eval "ac_cv_func_$ac_func=no" | |
19358 | fi | |
19359 | rm -f conftest* | |
19360 | fi | |
19361 | ||
19362 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
19363 | echo "$ac_t""yes" 1>&6 | |
19364 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19365 | cat >> confdefs.h <<EOF | |
19366 | #define $ac_tr_func 1 | |
19367 | EOF | |
19368 | ||
3a922bb4 | 19369 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19370 | #define HAVE_DLOPEN 1 |
19371 | EOF | |
19372 | ||
3a922bb4 RL |
19373 | HAVE_DL_FUNCS=1 |
19374 | ||
10f2d63a | 19375 | else |
698dcdb6 VZ |
19376 | echo "$ac_t""no" 1>&6 |
19377 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
43d99b6d | 19378 | echo "configure:19379: checking for dlopen in -ldl" >&5 |
698dcdb6 VZ |
19379 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
19380 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19381 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 19382 | else |
698dcdb6 | 19383 | ac_save_LIBS="$LIBS" |
10f2d63a | 19384 | LIBS="-ldl $LIBS" |
698dcdb6 | 19385 | cat > conftest.$ac_ext <<EOF |
43d99b6d | 19386 | #line 19387 "configure" |
10f2d63a VZ |
19387 | #include "confdefs.h" |
19388 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19389 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
19390 | builtin and then its argument prototype would still apply. */ |
19391 | char dlopen(); | |
19392 | ||
19393 | int main() { | |
19394 | dlopen() | |
19395 | ; return 0; } | |
19396 | EOF | |
43d99b6d | 19397 | if { (eval echo configure:19398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
19398 | rm -rf conftest* |
19399 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19400 | else | |
19401 | echo "configure: failed program was:" >&5 | |
19402 | cat conftest.$ac_ext >&5 | |
19403 | rm -rf conftest* | |
19404 | eval "ac_cv_lib_$ac_lib_var=no" | |
19405 | fi | |
19406 | rm -f conftest* | |
19407 | LIBS="$ac_save_LIBS" | |
19408 | ||
19409 | fi | |
19410 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19411 | echo "$ac_t""yes" 1>&6 | |
19412 | ||
3a922bb4 | 19413 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19414 | #define HAVE_DLOPEN 1 |
19415 | EOF | |
19416 | ||
3a922bb4 | 19417 | HAVE_DL_FUNCS=1 |
3d63bc3a | 19418 | DL_LINK=" -ldl$DL_LINK" |
3a922bb4 | 19419 | |
10f2d63a | 19420 | else |
698dcdb6 | 19421 | echo "$ac_t""no" 1>&6 |
10f2d63a | 19422 | |
3a922bb4 | 19423 | for ac_func in shl_load |
10f2d63a | 19424 | do |
698dcdb6 | 19425 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
43d99b6d | 19426 | echo "configure:19427: checking for $ac_func" >&5 |
698dcdb6 VZ |
19427 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
19428 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19429 | else | |
19430 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 19431 | #line 19432 "configure" |
10f2d63a VZ |
19432 | #include "confdefs.h" |
19433 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 19434 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
19435 | #include <assert.h> |
19436 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19437 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
19438 | builtin and then its argument prototype would still apply. */ |
19439 | char $ac_func(); | |
19440 | ||
19441 | int main() { | |
10f2d63a VZ |
19442 | |
19443 | /* The GNU C library defines this for functions which it implements | |
19444 | to always fail with ENOSYS. Some functions are actually named | |
19445 | something starting with __ and the normal name is an alias. */ | |
19446 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19447 | choke me | |
19448 | #else | |
698dcdb6 | 19449 | $ac_func(); |
10f2d63a VZ |
19450 | #endif |
19451 | ||
698dcdb6 VZ |
19452 | ; return 0; } |
19453 | EOF | |
43d99b6d | 19454 | if { (eval echo configure:19455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
19455 | rm -rf conftest* |
19456 | eval "ac_cv_func_$ac_func=yes" | |
19457 | else | |
19458 | echo "configure: failed program was:" >&5 | |
19459 | cat conftest.$ac_ext >&5 | |
19460 | rm -rf conftest* | |
19461 | eval "ac_cv_func_$ac_func=no" | |
19462 | fi | |
19463 | rm -f conftest* | |
19464 | fi | |
19465 | ||
19466 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
19467 | echo "$ac_t""yes" 1>&6 | |
19468 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19469 | cat >> confdefs.h <<EOF | |
19470 | #define $ac_tr_func 1 | |
19471 | EOF | |
19472 | ||
3a922bb4 | 19473 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19474 | #define HAVE_SHL_LOAD 1 |
19475 | EOF | |
19476 | ||
3a922bb4 RL |
19477 | HAVE_SHL_FUNCS=1 |
19478 | ||
10f2d63a | 19479 | else |
698dcdb6 VZ |
19480 | echo "$ac_t""no" 1>&6 |
19481 | echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6 | |
43d99b6d | 19482 | echo "configure:19483: checking for dld in -lshl_load" >&5 |
698dcdb6 VZ |
19483 | ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'` |
19484 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19485 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 19486 | else |
698dcdb6 | 19487 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 19488 | LIBS="-lshl_load $LIBS" |
698dcdb6 | 19489 | cat > conftest.$ac_ext <<EOF |
43d99b6d | 19490 | #line 19491 "configure" |
f6bcfd97 BP |
19491 | #include "confdefs.h" |
19492 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19493 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
19494 | builtin and then its argument prototype would still apply. */ |
19495 | char dld(); | |
19496 | ||
19497 | int main() { | |
19498 | dld() | |
19499 | ; return 0; } | |
19500 | EOF | |
43d99b6d | 19501 | if { (eval echo configure:19502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
19502 | rm -rf conftest* |
19503 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19504 | else | |
19505 | echo "configure: failed program was:" >&5 | |
19506 | cat conftest.$ac_ext >&5 | |
19507 | rm -rf conftest* | |
19508 | eval "ac_cv_lib_$ac_lib_var=no" | |
19509 | fi | |
19510 | rm -f conftest* | |
19511 | LIBS="$ac_save_LIBS" | |
f6bcfd97 | 19512 | |
698dcdb6 VZ |
19513 | fi |
19514 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19515 | echo "$ac_t""yes" 1>&6 | |
19516 | ||
3a922bb4 | 19517 | HAVE_SHL_FUNCS=1 |
3d63bc3a | 19518 | DL_LINK=" -ldld$DL_LINK" |
3a922bb4 | 19519 | |
698dcdb6 VZ |
19520 | else |
19521 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
19522 | fi |
19523 | ||
3a922bb4 | 19524 | |
10f2d63a VZ |
19525 | fi |
19526 | done | |
19527 | ||
3a922bb4 | 19528 | |
10f2d63a VZ |
19529 | fi |
19530 | ||
3a922bb4 | 19531 | |
10f2d63a VZ |
19532 | fi |
19533 | done | |
19534 | ||
1e487827 | 19535 | |
3a922bb4 RL |
19536 | if test "$HAVE_DL_FUNCS" = 1; then |
19537 | for ac_func in dlerror | |
f6bcfd97 | 19538 | do |
698dcdb6 | 19539 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
43d99b6d | 19540 | echo "configure:19541: checking for $ac_func" >&5 |
698dcdb6 VZ |
19541 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
19542 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19543 | else | |
19544 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 19545 | #line 19546 "configure" |
f6bcfd97 BP |
19546 | #include "confdefs.h" |
19547 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 19548 | which can conflict with char $ac_func(); below. */ |
f6bcfd97 BP |
19549 | #include <assert.h> |
19550 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19551 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
19552 | builtin and then its argument prototype would still apply. */ |
19553 | char $ac_func(); | |
19554 | ||
19555 | int main() { | |
f6bcfd97 BP |
19556 | |
19557 | /* The GNU C library defines this for functions which it implements | |
19558 | to always fail with ENOSYS. Some functions are actually named | |
19559 | something starting with __ and the normal name is an alias. */ | |
19560 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19561 | choke me | |
19562 | #else | |
698dcdb6 | 19563 | $ac_func(); |
f6bcfd97 BP |
19564 | #endif |
19565 | ||
698dcdb6 VZ |
19566 | ; return 0; } |
19567 | EOF | |
43d99b6d | 19568 | if { (eval echo configure:19569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
19569 | rm -rf conftest* |
19570 | eval "ac_cv_func_$ac_func=yes" | |
19571 | else | |
19572 | echo "configure: failed program was:" >&5 | |
19573 | cat conftest.$ac_ext >&5 | |
19574 | rm -rf conftest* | |
19575 | eval "ac_cv_func_$ac_func=no" | |
19576 | fi | |
19577 | rm -f conftest* | |
19578 | fi | |
19579 | ||
19580 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
19581 | echo "$ac_t""yes" 1>&6 | |
19582 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19583 | cat >> confdefs.h <<EOF | |
19584 | #define $ac_tr_func 1 | |
19585 | EOF | |
19586 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
19587 | #define HAVE_DLERROR 1 |
19588 | EOF | |
19589 | ||
19590 | else | |
698dcdb6 VZ |
19591 | echo "$ac_t""no" 1>&6 |
19592 | echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6 | |
43d99b6d | 19593 | echo "configure:19594: checking for dlerror in -ldl" >&5 |
698dcdb6 VZ |
19594 | ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'` |
19595 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19596 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 19597 | else |
698dcdb6 | 19598 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 19599 | LIBS="-ldl $LIBS" |
698dcdb6 | 19600 | cat > conftest.$ac_ext <<EOF |
43d99b6d | 19601 | #line 19602 "configure" |
f6bcfd97 BP |
19602 | #include "confdefs.h" |
19603 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19604 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
19605 | builtin and then its argument prototype would still apply. */ |
19606 | char dlerror(); | |
19607 | ||
19608 | int main() { | |
19609 | dlerror() | |
19610 | ; return 0; } | |
19611 | EOF | |
43d99b6d | 19612 | if { (eval echo configure:19613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
19613 | rm -rf conftest* |
19614 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19615 | else | |
19616 | echo "configure: failed program was:" >&5 | |
19617 | cat conftest.$ac_ext >&5 | |
19618 | rm -rf conftest* | |
19619 | eval "ac_cv_lib_$ac_lib_var=no" | |
19620 | fi | |
19621 | rm -f conftest* | |
19622 | LIBS="$ac_save_LIBS" | |
19623 | ||
19624 | fi | |
19625 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19626 | echo "$ac_t""yes" 1>&6 | |
19627 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
19628 | #define HAVE_DLERROR 1 |
19629 | EOF | |
19630 | ||
698dcdb6 VZ |
19631 | else |
19632 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
19633 | fi |
19634 | ||
19635 | fi | |
19636 | done | |
19637 | ||
3a922bb4 RL |
19638 | fi |
19639 | fi | |
f6bcfd97 | 19640 | |
3a922bb4 RL |
19641 | if test "$HAVE_DL_FUNCS" = 0; then |
19642 | if test "$HAVE_SHL_FUNCS" = 0; then | |
19643 | if test "$USE_UNIX" = 1; then | |
19644 | echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2 | |
0b9ab0bd | 19645 | wxUSE_DYNAMIC_LOADER=no |
3a922bb4 RL |
19646 | wxUSE_DYNLIB_CLASS=no |
19647 | else | |
19648 | echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2 | |
19649 | fi | |
19650 | fi | |
10f2d63a VZ |
19651 | fi |
19652 | fi | |
19653 | fi | |
19654 | ||
0b9ab0bd RL |
19655 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then |
19656 | cat >> confdefs.h <<\EOF | |
19657 | #define wxUSE_DYNAMIC_LOADER 1 | |
19658 | EOF | |
19659 | ||
19660 | elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
698dcdb6 | 19661 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19662 | #define wxUSE_DYNLIB_CLASS 1 |
19663 | EOF | |
19664 | ||
19665 | fi | |
19666 | ||
698dcdb6 | 19667 | |
1e6feb95 VZ |
19668 | if test "$wxUSE_FONTMAP" = "yes" ; then |
19669 | cat >> confdefs.h <<\EOF | |
19670 | #define wxUSE_FONTMAP 1 | |
19671 | EOF | |
19672 | ||
19673 | fi | |
19674 | ||
10f2d63a | 19675 | if test "$wxUSE_UNICODE" = "yes" ; then |
698dcdb6 | 19676 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19677 | #define wxUSE_UNICODE 1 |
19678 | EOF | |
19679 | ||
3bd8fb5f | 19680 | |
bbc3925a VS |
19681 | if test "$wxUSE_MSW" != 1; then |
19682 | wxUSE_UNICODE_MSLU=no | |
19683 | fi | |
a72a4bfa VS |
19684 | |
19685 | if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
19686 | echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6 | |
43d99b6d | 19687 | echo "configure:19688: checking for main in -lunicows" >&5 |
a72a4bfa VS |
19688 | ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'` |
19689 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19690 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19691 | else | |
19692 | ac_save_LIBS="$LIBS" | |
19693 | LIBS="-lunicows $LIBS" | |
19694 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 19695 | #line 19696 "configure" |
a72a4bfa VS |
19696 | #include "confdefs.h" |
19697 | ||
19698 | int main() { | |
19699 | main() | |
19700 | ; return 0; } | |
19701 | EOF | |
43d99b6d | 19702 | if { (eval echo configure:19703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a72a4bfa VS |
19703 | rm -rf conftest* |
19704 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19705 | else | |
19706 | echo "configure: failed program was:" >&5 | |
19707 | cat conftest.$ac_ext >&5 | |
19708 | rm -rf conftest* | |
19709 | eval "ac_cv_lib_$ac_lib_var=no" | |
19710 | fi | |
19711 | rm -f conftest* | |
19712 | LIBS="$ac_save_LIBS" | |
19713 | ||
19714 | fi | |
19715 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19716 | echo "$ac_t""yes" 1>&6 | |
19717 | ||
19718 | cat >> confdefs.h <<\EOF | |
19719 | #define wxUSE_UNICODE_MSLU 1 | |
19720 | EOF | |
19721 | ||
19722 | ||
19723 | else | |
19724 | echo "$ac_t""no" 1>&6 | |
19725 | ||
19726 | echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled. | |
19727 | Applications will only run on Windows NT/2000/XP!" 1>&2 | |
19728 | wxUSE_UNICODE_MSLU=no | |
19729 | ||
19730 | fi | |
19731 | ||
19732 | fi | |
10f2d63a VZ |
19733 | fi |
19734 | ||
10f2d63a | 19735 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then |
698dcdb6 | 19736 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19737 | #define wxUSE_EXPERIMENTAL_PRINTF 1 |
19738 | EOF | |
19739 | ||
19740 | fi | |
19741 | ||
698dcdb6 | 19742 | |
698dcdb6 | 19743 | |
10f2d63a VZ |
19744 | IODBC_C_SRC="" |
19745 | if test "$wxUSE_ODBC" = "yes" ; then | |
698dcdb6 | 19746 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19747 | #define wxUSE_ODBC 1 |
19748 | EOF | |
19749 | ||
19750 | WXODBCFLAG="-D_IODBC_" | |
19751 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
10f2d63a VZ |
19752 | fi |
19753 | ||
698dcdb6 | 19754 | |
10f2d63a | 19755 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then |
698dcdb6 | 19756 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19757 | #define wxUSE_POSTSCRIPT 1 |
19758 | EOF | |
19759 | ||
19760 | fi | |
19761 | ||
698dcdb6 | 19762 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19763 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 |
19764 | EOF | |
19765 | ||
698dcdb6 VZ |
19766 | |
19767 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
19768 | #define wxUSE_NORMALIZED_PS_FONTS 1 |
19769 | EOF | |
19770 | ||
698dcdb6 VZ |
19771 | |
19772 | ||
10f2d63a | 19773 | if test "$wxUSE_CONSTRAINTS" = "yes"; then |
698dcdb6 | 19774 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19775 | #define wxUSE_CONSTRAINTS 1 |
19776 | EOF | |
19777 | ||
19778 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
19779 | fi | |
19780 | ||
19781 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
fc26f4ab | 19782 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
0feee163 | 19783 | echo "configure: warning: MDI not yet supported for wxUniversal... disabled" 1>&2 |
fc26f4ab RL |
19784 | wxUSE_MDI_ARCHITECTURE=no |
19785 | fi | |
19786 | ||
19787 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
19788 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
19789 | #define wxUSE_MDI_ARCHITECTURE 1 |
19790 | EOF | |
19791 | ||
fc26f4ab RL |
19792 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
19793 | fi | |
10f2d63a VZ |
19794 | fi |
19795 | ||
19796 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
698dcdb6 | 19797 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19798 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 |
19799 | EOF | |
19800 | ||
19801 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
19802 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
19803 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
19804 | fi | |
19805 | fi | |
19806 | ||
19807 | if test "$wxUSE_HELP" = "yes"; then | |
698dcdb6 | 19808 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19809 | #define wxUSE_HELP 1 |
19810 | EOF | |
19811 | ||
19812 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
3379ed37 | 19813 | |
77e13408 | 19814 | if test "$wxUSE_MSW" = 1; then |
031d8228 | 19815 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then |
3b7bc64a | 19816 | cat >> confdefs.h <<\EOF |
29fd3c0c VS |
19817 | #define wxUSE_MS_HTML_HELP 1 |
19818 | EOF | |
19819 | ||
3e44f09d | 19820 | fi |
3379ed37 | 19821 | fi |
031d8228 VS |
19822 | |
19823 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
19824 | if test "$wxUSE_HTML" = "yes"; then | |
19825 | cat >> confdefs.h <<\EOF | |
19826 | #define wxUSE_WXHTML_HELP 1 | |
19827 | EOF | |
19828 | ||
19829 | else | |
19830 | echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2 | |
19831 | wxUSE_WXHTML_HELP=no | |
19832 | fi | |
19833 | fi | |
10f2d63a VZ |
19834 | fi |
19835 | ||
19836 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
19837 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
698dcdb6 | 19838 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 |
10f2d63a | 19839 | else |
698dcdb6 | 19840 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19841 | #define wxUSE_PRINTING_ARCHITECTURE 1 |
19842 | EOF | |
19843 | ||
19844 | fi | |
19845 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
19846 | fi | |
19847 | ||
19848 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
698dcdb6 | 19849 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19850 | #define wxUSE_PROLOGIO 1 |
19851 | EOF | |
19852 | ||
19853 | fi | |
19854 | ||
19855 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
e334d0ea JS |
19856 | if test "$wxUSE_NANOX" = "yes"; then |
19857 | echo "configure: warning: Cannot use resource database functions in NanoX" 1>&2 | |
19858 | else | |
19859 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
19860 | #define wxUSE_RESOURCES 1 |
19861 | EOF | |
19862 | ||
e334d0ea JS |
19863 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" |
19864 | fi | |
10f2d63a VZ |
19865 | fi |
19866 | ||
19867 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
698dcdb6 | 19868 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19869 | #define wxUSE_X_RESOURCES 1 |
19870 | EOF | |
19871 | ||
19872 | fi | |
19873 | ||
698dcdb6 | 19874 | |
77e13408 RL |
19875 | if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ |
19876 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
19877 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
2b9bdf71 | 19878 | for ac_hdr in ole2.h |
10f2d63a | 19879 | do |
698dcdb6 VZ |
19880 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
19881 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
43d99b6d | 19882 | echo "configure:19883: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
19883 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
19884 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19885 | else | |
19886 | cat > conftest.$ac_ext <<EOF | |
43d99b6d | 19887 | #line 19888 "configure" |
10f2d63a | 19888 | #include "confdefs.h" |
698dcdb6 VZ |
19889 | #include <$ac_hdr> |
19890 | EOF | |
19891 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
43d99b6d | 19892 | { (eval echo configure:19893: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
19893 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
19894 | if test -z "$ac_err"; then | |
19895 | rm -rf conftest* | |
19896 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 19897 | else |
698dcdb6 VZ |
19898 | echo "$ac_err" >&5 |
19899 | echo "configure: failed program was:" >&5 | |
10f2d63a | 19900 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
19901 | rm -rf conftest* |
19902 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 19903 | fi |
698dcdb6 | 19904 | rm -f conftest* |
10f2d63a | 19905 | fi |
698dcdb6 VZ |
19906 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
19907 | echo "$ac_t""yes" 1>&6 | |
19908 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
19909 | cat >> confdefs.h <<EOF | |
19910 | #define $ac_tr_hdr 1 | |
10f2d63a | 19911 | EOF |
698dcdb6 VZ |
19912 | |
19913 | else | |
19914 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
19915 | fi |
19916 | done | |
19917 | ||
698dcdb6 | 19918 | |
2b9bdf71 VZ |
19919 | if test "$ac_cv_header_ole2_h" = "yes" ; then |
19920 | if test "$GCC" = yes ; then | |
19921 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" | |
2b9bdf71 | 19922 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" |
3d63bc3a | 19923 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
2b9bdf71 | 19924 | cat >> confdefs.h <<\EOF |
4f11a343 VS |
19925 | #define wxUSE_OLE 1 |
19926 | EOF | |
19927 | ||
b64f0a5f | 19928 | |
2b9bdf71 VZ |
19929 | fi |
19930 | ||
19931 | cat >> confdefs.h <<\EOF | |
19932 | #define wxUSE_DATAOBJ 1 | |
19933 | EOF | |
19934 | ||
19935 | else | |
19936 | echo "configure: warning: Some features disabled because OLE headers not found" 1>&2 | |
19937 | ||
19938 | wxUSE_CLIPBOARD=no | |
19939 | wxUSE_DRAG_AND_DROP=no | |
19940 | wxUSE_DATAOBJ=no | |
19941 | fi | |
19942 | ||
77e13408 | 19943 | if test "$wxUSE_METAFILE" = "yes"; then |
2b9bdf71 | 19944 | cat >> confdefs.h <<\EOF |
b64f0a5f RL |
19945 | #define wxUSE_METAFILE 1 |
19946 | EOF | |
19947 | ||
2b9bdf71 VZ |
19948 | |
19949 | cat >> confdefs.h <<\EOF | |
b64f0a5f RL |
19950 | #define wxUSE_ENH_METAFILE 1 |
19951 | EOF | |
19952 | ||
2b9bdf71 VZ |
19953 | fi |
19954 | fi | |
19955 | ||
19956 | if test "$wxUSE_IPC" = "yes"; then | |
19957 | if test "$wxUSE_SOCKETS" != "yes"; then | |
156b2523 | 19958 | echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2 |
2b9bdf71 VZ |
19959 | fi |
19960 | ||
19961 | cat >> confdefs.h <<\EOF | |
19962 | #define wxUSE_IPC 1 | |
19963 | EOF | |
19964 | ||
19965 | fi | |
19966 | ||
19967 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
6c657b52 VS |
19968 | if test "$wxUSE_MGL" = 1; then |
19969 | echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2 | |
19970 | wxUSE_CLIPBOARD=no | |
19971 | fi | |
19972 | ||
19973 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
19974 | cat >> confdefs.h <<\EOF | |
2b9bdf71 VZ |
19975 | #define wxUSE_CLIPBOARD 1 |
19976 | EOF | |
19977 | ||
673f4220 | 19978 | |
6c657b52 | 19979 | cat >> confdefs.h <<\EOF |
673f4220 VZ |
19980 | #define wxUSE_DATAOBJ 1 |
19981 | EOF | |
19982 | ||
6c657b52 | 19983 | fi |
2b9bdf71 VZ |
19984 | fi |
19985 | ||
19986 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
19987 | if test "$wxUSE_GTK" = 1; then | |
19988 | if test "$WXGTK12" != 1; then | |
156b2523 | 19989 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2 |
10f2d63a VZ |
19990 | wxUSE_DRAG_AND_DROP=no |
19991 | fi | |
19992 | fi | |
19993 | ||
2b9bdf71 | 19994 | if test "$wxUSE_MOTIF" = 1; then |
156b2523 | 19995 | echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2 |
2b9bdf71 VZ |
19996 | wxUSE_DRAG_AND_DROP=no |
19997 | fi | |
19998 | ||
f79bd02d JS |
19999 | if test "$wxUSE_X11" = 1; then |
20000 | echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2 | |
20001 | wxUSE_DRAG_AND_DROP=no | |
20002 | fi | |
20003 | ||
6c657b52 VS |
20004 | if test "$wxUSE_MGL" = 1; then |
20005 | echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2 | |
20006 | wxUSE_DRAG_AND_DROP=no | |
20007 | fi | |
20008 | ||
10f2d63a | 20009 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then |
698dcdb6 | 20010 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20011 | #define wxUSE_DRAG_AND_DROP 1 |
20012 | EOF | |
20013 | ||
20014 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
20015 | fi | |
20016 | ||
20017 | fi | |
20018 | ||
20019 | if test "$wxUSE_SPLINES" = "yes" ; then | |
698dcdb6 | 20020 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20021 | #define wxUSE_SPLINES 1 |
20022 | EOF | |
20023 | ||
20024 | fi | |
20025 | ||
698dcdb6 | 20026 | |
1e6feb95 VZ |
20027 | USES_CONTROLS=0 |
20028 | if test "$wxUSE_CONTROLS" = "yes"; then | |
20029 | USES_CONTROLS=1 | |
20030 | fi | |
20031 | ||
10f2d63a | 20032 | if test "$wxUSE_ACCEL" = "yes"; then |
698dcdb6 | 20033 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20034 | #define wxUSE_ACCEL 1 |
20035 | EOF | |
20036 | ||
1e6feb95 VZ |
20037 | USES_CONTROLS=1 |
20038 | fi | |
20039 | ||
20040 | if test "$wxUSE_BUTTON" = "yes"; then | |
20041 | cat >> confdefs.h <<\EOF | |
20042 | #define wxUSE_BUTTON 1 | |
20043 | EOF | |
20044 | ||
20045 | USES_CONTROLS=1 | |
20046 | fi | |
20047 | ||
20048 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
20049 | cat >> confdefs.h <<\EOF | |
20050 | #define wxUSE_BMPBUTTON 1 | |
20051 | EOF | |
20052 | ||
20053 | USES_CONTROLS=1 | |
20054 | fi | |
20055 | ||
20056 | if test "$wxUSE_CALCTRL" = "yes"; then | |
20057 | cat >> confdefs.h <<\EOF | |
20058 | #define wxUSE_CALENDARCTRL 1 | |
20059 | EOF | |
20060 | ||
20061 | USES_CONTROLS=1 | |
20062 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
10f2d63a VZ |
20063 | fi |
20064 | ||
20065 | if test "$wxUSE_CARET" = "yes"; then | |
698dcdb6 | 20066 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20067 | #define wxUSE_CARET 1 |
20068 | EOF | |
20069 | ||
1e6feb95 | 20070 | USES_CONTROLS=1 |
10f2d63a VZ |
20071 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" |
20072 | fi | |
20073 | ||
20074 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
698dcdb6 | 20075 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20076 | #define wxUSE_COMBOBOX 1 |
20077 | EOF | |
20078 | ||
1e6feb95 | 20079 | USES_CONTROLS=1 |
10f2d63a VZ |
20080 | fi |
20081 | ||
20082 | if test "$wxUSE_CHOICE" = "yes"; then | |
698dcdb6 | 20083 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20084 | #define wxUSE_CHOICE 1 |
20085 | EOF | |
20086 | ||
1e6feb95 | 20087 | USES_CONTROLS=1 |
10f2d63a VZ |
20088 | fi |
20089 | ||
20090 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
698dcdb6 | 20091 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20092 | #define wxUSE_CHECKBOX 1 |
20093 | EOF | |
20094 | ||
1e6feb95 | 20095 | USES_CONTROLS=1 |
10f2d63a VZ |
20096 | fi |
20097 | ||
20098 | if test "$wxUSE_CHECKLST" = "yes"; then | |
698dcdb6 | 20099 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20100 | #define wxUSE_CHECKLISTBOX 1 |
20101 | EOF | |
20102 | ||
1e6feb95 | 20103 | USES_CONTROLS=1 |
10f2d63a VZ |
20104 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" |
20105 | fi | |
20106 | ||
20107 | if test "$wxUSE_GAUGE" = "yes"; then | |
698dcdb6 | 20108 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20109 | #define wxUSE_GAUGE 1 |
20110 | EOF | |
20111 | ||
1e6feb95 | 20112 | USES_CONTROLS=1 |
10f2d63a VZ |
20113 | fi |
20114 | ||
d6a55c4b VZ |
20115 | if test "$wxUSE_NEW_GRID" = "yes"; then |
20116 | wxUSE_GRID="yes" | |
698dcdb6 | 20117 | cat >> confdefs.h <<\EOF |
d6a55c4b | 20118 | #define wxUSE_NEW_GRID 1 |
10f2d63a VZ |
20119 | EOF |
20120 | ||
1e6feb95 | 20121 | USES_CONTROLS=1 |
d6a55c4b | 20122 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid" |
10f2d63a VZ |
20123 | fi |
20124 | ||
d6a55c4b | 20125 | if test "$wxUSE_GRID" = "yes"; then |
698dcdb6 | 20126 | cat >> confdefs.h <<\EOF |
d6a55c4b | 20127 | #define wxUSE_GRID 1 |
10f2d63a VZ |
20128 | EOF |
20129 | ||
1e6feb95 | 20130 | USES_CONTROLS=1 |
d6a55c4b | 20131 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
20132 | fi |
20133 | ||
20134 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 20135 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20136 | #define wxUSE_IMAGLIST 1 |
20137 | EOF | |
20138 | ||
20139 | fi | |
20140 | ||
20141 | if test "$wxUSE_LISTBOX" = "yes"; then | |
698dcdb6 | 20142 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20143 | #define wxUSE_LISTBOX 1 |
20144 | EOF | |
20145 | ||
1e6feb95 | 20146 | USES_CONTROLS=1 |
10f2d63a VZ |
20147 | fi |
20148 | ||
20149 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
20150 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 20151 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20152 | #define wxUSE_LISTCTRL 1 |
20153 | EOF | |
20154 | ||
1e6feb95 | 20155 | USES_CONTROLS=1 |
10f2d63a VZ |
20156 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" |
20157 | else | |
698dcdb6 | 20158 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
20159 | fi |
20160 | fi | |
20161 | ||
20162 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
698dcdb6 | 20163 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20164 | #define wxUSE_NOTEBOOK 1 |
20165 | EOF | |
20166 | ||
1e6feb95 | 20167 | USES_CONTROLS=1 |
10f2d63a VZ |
20168 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" |
20169 | fi | |
20170 | ||
24176f2c GD |
20171 | if test "$wxUSE_PROPSHEET" = "yes"; then |
20172 | cat >> confdefs.h <<\EOF | |
20173 | #define wxUSE_PROPSHEET 1 | |
20174 | EOF | |
20175 | ||
20176 | USES_CONTROLS=1 | |
20177 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist" | |
20178 | fi | |
20179 | ||
10f2d63a | 20180 | if test "$wxUSE_RADIOBOX" = "yes"; then |
698dcdb6 | 20181 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20182 | #define wxUSE_RADIOBOX 1 |
20183 | EOF | |
20184 | ||
1e6feb95 | 20185 | USES_CONTROLS=1 |
10f2d63a VZ |
20186 | fi |
20187 | ||
20188 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
698dcdb6 | 20189 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20190 | #define wxUSE_RADIOBTN 1 |
20191 | EOF | |
20192 | ||
1e6feb95 | 20193 | USES_CONTROLS=1 |
10f2d63a VZ |
20194 | fi |
20195 | ||
20196 | if test "$wxUSE_SASH" = "yes"; then | |
698dcdb6 | 20197 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20198 | #define wxUSE_SASH 1 |
20199 | EOF | |
20200 | ||
20201 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
20202 | fi | |
20203 | ||
20204 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
698dcdb6 | 20205 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20206 | #define wxUSE_SCROLLBAR 1 |
20207 | EOF | |
20208 | ||
1e6feb95 | 20209 | USES_CONTROLS=1 |
741a9306 | 20210 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
20211 | fi |
20212 | ||
20213 | if test "$wxUSE_SLIDER" = "yes"; then | |
698dcdb6 | 20214 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20215 | #define wxUSE_SLIDER 1 |
20216 | EOF | |
20217 | ||
1e6feb95 | 20218 | USES_CONTROLS=1 |
10f2d63a VZ |
20219 | fi |
20220 | ||
20221 | if test "$wxUSE_SPINBTN" = "yes"; then | |
698dcdb6 | 20222 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20223 | #define wxUSE_SPINBTN 1 |
20224 | EOF | |
20225 | ||
1e6feb95 | 20226 | USES_CONTROLS=1 |
10f2d63a VZ |
20227 | fi |
20228 | ||
56cfaa52 | 20229 | if test "$wxUSE_SPINCTRL" = "yes"; then |
698dcdb6 | 20230 | cat >> confdefs.h <<\EOF |
56cfaa52 RR |
20231 | #define wxUSE_SPINCTRL 1 |
20232 | EOF | |
20233 | ||
1e6feb95 | 20234 | USES_CONTROLS=1 |
56cfaa52 RR |
20235 | fi |
20236 | ||
10f2d63a | 20237 | if test "$wxUSE_SPLITTER" = "yes"; then |
698dcdb6 | 20238 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20239 | #define wxUSE_SPLITTER 1 |
20240 | EOF | |
20241 | ||
20242 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
20243 | fi | |
20244 | ||
20245 | if test "$wxUSE_STATBMP" = "yes"; then | |
698dcdb6 | 20246 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20247 | #define wxUSE_STATBMP 1 |
20248 | EOF | |
20249 | ||
1e6feb95 | 20250 | USES_CONTROLS=1 |
10f2d63a VZ |
20251 | fi |
20252 | ||
20253 | if test "$wxUSE_STATBOX" = "yes"; then | |
698dcdb6 | 20254 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20255 | #define wxUSE_STATBOX 1 |
20256 | EOF | |
20257 | ||
1e6feb95 VZ |
20258 | USES_CONTROLS=1 |
20259 | fi | |
20260 | ||
20261 | if test "$wxUSE_STATTEXT" = "yes"; then | |
20262 | cat >> confdefs.h <<\EOF | |
20263 | #define wxUSE_STATTEXT 1 | |
20264 | EOF | |
20265 | ||
20266 | USES_CONTROLS=1 | |
10f2d63a VZ |
20267 | fi |
20268 | ||
20269 | if test "$wxUSE_STATLINE" = "yes"; then | |
20270 | if test "$wxUSE_WINE" = 1 ; then | |
698dcdb6 | 20271 | echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2 |
10f2d63a | 20272 | else |
698dcdb6 | 20273 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20274 | #define wxUSE_STATLINE 1 |
20275 | EOF | |
20276 | ||
1e6feb95 | 20277 | USES_CONTROLS=1 |
10f2d63a VZ |
20278 | fi |
20279 | fi | |
20280 | ||
20281 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
698dcdb6 | 20282 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20283 | #define wxUSE_STATUSBAR 1 |
20284 | EOF | |
20285 | ||
1e6feb95 | 20286 | USES_CONTROLS=1 |
698dcdb6 | 20287 | |
2286341c | 20288 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" |
10f2d63a VZ |
20289 | fi |
20290 | ||
20291 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
698dcdb6 | 20292 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20293 | #define wxUSE_TAB_DIALOG 1 |
20294 | EOF | |
20295 | ||
20296 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
20297 | fi | |
20298 | ||
1e6feb95 VZ |
20299 | if test "$wxUSE_TEXTCTRL" = "yes"; then |
20300 | cat >> confdefs.h <<\EOF | |
20301 | #define wxUSE_TEXTCTRL 1 | |
20302 | EOF | |
20303 | ||
20304 | USES_CONTROLS=1 | |
20305 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
20306 | fi | |
20307 | ||
1db8dc4a | 20308 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
156b2523 GD |
20309 | if test "$wxUSE_MAC" = 1; then |
20310 | echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2 | |
20311 | wxUSE_TOGGLEBTN=no | |
20312 | fi | |
20313 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
0feee163 | 20314 | echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2 |
a45d7ab7 GD |
20315 | wxUSE_TOGGLEBTN=no |
20316 | fi | |
20317 | ||
20318 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
20319 | cat >> confdefs.h <<\EOF | |
1db8dc4a VZ |
20320 | #define wxUSE_TOGGLEBTN 1 |
20321 | EOF | |
20322 | ||
1e6feb95 | 20323 | USES_CONTROLS=1 |
a45d7ab7 | 20324 | fi |
1db8dc4a VZ |
20325 | fi |
20326 | ||
360d6699 | 20327 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
698dcdb6 | 20328 | cat >> confdefs.h <<\EOF |
360d6699 VZ |
20329 | #define wxUSE_TOOLBAR_SIMPLE 1 |
20330 | EOF | |
20331 | ||
20332 | wxUSE_TOOLBAR="yes" | |
1e6feb95 | 20333 | USES_CONTROLS=1 |
360d6699 VZ |
20334 | fi |
20335 | ||
10f2d63a | 20336 | if test "$wxUSE_TOOLBAR" = "yes"; then |
698dcdb6 | 20337 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20338 | #define wxUSE_TOOLBAR 1 |
20339 | EOF | |
20340 | ||
1e6feb95 | 20341 | USES_CONTROLS=1 |
698dcdb6 | 20342 | |
360d6699 VZ |
20343 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then |
20344 | wxUSE_TOOLBAR_NATIVE="yes" | |
20345 | fi | |
20346 | ||
1e6feb95 VZ |
20347 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
20348 | cat >> confdefs.h <<\EOF | |
360d6699 VZ |
20349 | #define wxUSE_TOOLBAR_NATIVE 1 |
20350 | EOF | |
20351 | ||
1e6feb95 VZ |
20352 | USES_CONTROLS=1 |
20353 | fi | |
20354 | ||
20355 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
360d6699 VZ |
20356 | fi |
20357 | ||
10f2d63a VZ |
20358 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
20359 | if test "$wxUSE_MOTIF" = 1; then | |
156b2523 | 20360 | echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2 |
10f2d63a VZ |
20361 | else |
20362 | if test "$wxUSE_WINE" = 1; then | |
156b2523 | 20363 | echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2 |
10f2d63a | 20364 | else |
69d27ff7 | 20365 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
0feee163 | 20366 | echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2 |
69d27ff7 | 20367 | else |
3c011993 | 20368 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20369 | #define wxUSE_TOOLTIPS 1 |
20370 | EOF | |
20371 | ||
69d27ff7 | 20372 | fi |
10f2d63a VZ |
20373 | fi |
20374 | fi | |
20375 | fi | |
20376 | ||
20377 | if test "$wxUSE_TREECTRL" = "yes"; then | |
20378 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 20379 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20380 | #define wxUSE_TREECTRL 1 |
20381 | EOF | |
20382 | ||
1e6feb95 | 20383 | USES_CONTROLS=1 |
10f2d63a VZ |
20384 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" |
20385 | else | |
698dcdb6 | 20386 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
20387 | fi |
20388 | fi | |
20389 | ||
9f41d601 | 20390 | if test "$wxUSE_POPUPWIN" = "yes"; then |
6abe4b65 | 20391 | if test "$wxUSE_MAC" = 1; then |
156b2523 | 20392 | echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2 |
6abe4b65 | 20393 | else |
485cf710 VZ |
20394 | if test "$wxUSE_MOTIF" = 1; then |
20395 | echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2 | |
20396 | else | |
3c011993 VZ |
20397 | if test "$wxUSE_PM" = 1; then |
20398 | echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2 | |
3bd8fb5f | 20399 | else |
3c011993 | 20400 | cat >> confdefs.h <<\EOF |
9f41d601 RR |
20401 | #define wxUSE_POPUPWIN 1 |
20402 | EOF | |
20403 | ||
9926e4a4 | 20404 | |
3c011993 VZ |
20405 | USES_CONTROLS=1 |
20406 | fi | |
485cf710 | 20407 | fi |
6abe4b65 | 20408 | fi |
9f41d601 RR |
20409 | fi |
20410 | ||
dd964dcc | 20411 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
3c011993 VZ |
20412 | if test "$wxUSE_PM" = 1; then |
20413 | echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2 | |
3bd8fb5f | 20414 | else |
3c011993 | 20415 | cat >> confdefs.h <<\EOF |
dd964dcc VZ |
20416 | #define wxUSE_TIPWINDOW 1 |
20417 | EOF | |
20418 | ||
3c011993 | 20419 | fi |
dd964dcc VZ |
20420 | fi |
20421 | ||
1e6feb95 VZ |
20422 | if test "$USES_CONTROLS" = 1; then |
20423 | cat >> confdefs.h <<\EOF | |
20424 | #define wxUSE_CONTROLS 1 | |
10f2d63a VZ |
20425 | EOF |
20426 | ||
10f2d63a VZ |
20427 | fi |
20428 | ||
1e6feb95 | 20429 | |
24176f2c GD |
20430 | if test "$wxUSE_TREELAYOUT" = "yes"; then |
20431 | cat >> confdefs.h <<\EOF | |
20432 | #define wxUSE_TREELAYOUT 1 | |
20433 | EOF | |
20434 | ||
20435 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay" | |
20436 | fi | |
1e6feb95 | 20437 | |
24fd6d87 VZ |
20438 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
20439 | cat >> confdefs.h <<\EOF | |
20440 | #define wxUSE_DRAGIMAGE 1 | |
20441 | EOF | |
20442 | ||
20443 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
20444 | fi | |
20445 | ||
1e6feb95 | 20446 | if test "$wxUSE_MENUS" = "yes"; then |
698dcdb6 | 20447 | cat >> confdefs.h <<\EOF |
1e6feb95 | 20448 | #define wxUSE_MENUS 1 |
10f2d63a VZ |
20449 | EOF |
20450 | ||
1e6feb95 | 20451 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" |
10f2d63a VZ |
20452 | fi |
20453 | ||
1e6feb95 VZ |
20454 | if test "$wxUSE_METAFILE" = "yes"; then |
20455 | cat >> confdefs.h <<\EOF | |
20456 | #define wxUSE_METAFILE 1 | |
10f2d63a VZ |
20457 | EOF |
20458 | ||
10f2d63a VZ |
20459 | fi |
20460 | ||
1e6feb95 VZ |
20461 | if test "$wxUSE_MIMETYPE" = "yes"; then |
20462 | cat >> confdefs.h <<\EOF | |
20463 | #define wxUSE_MIMETYPE 1 | |
10f2d63a VZ |
20464 | EOF |
20465 | ||
10f2d63a VZ |
20466 | fi |
20467 | ||
3e44f09d VZ |
20468 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then |
20469 | cat >> confdefs.h <<\EOF | |
20470 | #define wxUSE_SYSTEM_OPTIONS 1 | |
20471 | EOF | |
20472 | ||
321d2b14 VZ |
20473 | if test "$TOOLKIT" = "MSW"; then |
20474 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" | |
20475 | fi | |
20476 | ||
3e44f09d VZ |
20477 | fi |
20478 | ||
4cdb0ab0 | 20479 | if test "$wxUSE_PROTOCOL" = "yes"; then |
3954f9ca VS |
20480 | if test "$wxUSE_SOCKETS" != "yes"; then |
20481 | echo "configure: warning: Protocol classes require sockets... disabled" 1>&2 | |
20482 | wxUSE_PROTOCOL=no | |
20483 | fi | |
20484 | ||
20485 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
20486 | cat >> confdefs.h <<\EOF | |
4cdb0ab0 VS |
20487 | #define wxUSE_PROTOCOL 1 |
20488 | EOF | |
20489 | ||
20490 | ||
3954f9ca VS |
20491 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then |
20492 | cat >> confdefs.h <<\EOF | |
4cdb0ab0 VS |
20493 | #define wxUSE_PROTOCOL_HTTP 1 |
20494 | EOF | |
20495 | ||
3954f9ca VS |
20496 | fi |
20497 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
20498 | cat >> confdefs.h <<\EOF | |
4cdb0ab0 VS |
20499 | #define wxUSE_PROTOCOL_FTP 1 |
20500 | EOF | |
20501 | ||
3954f9ca VS |
20502 | fi |
20503 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
20504 | cat >> confdefs.h <<\EOF | |
20505 | #define wxUSE_PROTOCOL_FILE 1 | |
20506 | EOF | |
20507 | ||
20508 | fi | |
4cdb0ab0 | 20509 | fi |
3954f9ca VS |
20510 | fi |
20511 | ||
20512 | if test "$wxUSE_URL" = "yes"; then | |
20513 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
20514 | echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2 | |
20515 | wxUSE_URL=no | |
20516 | fi | |
20517 | if test "$wxUSE_URL" = "yes"; then | |
4cdb0ab0 | 20518 | cat >> confdefs.h <<\EOF |
3954f9ca | 20519 | #define wxUSE_URL 1 |
4cdb0ab0 VS |
20520 | EOF |
20521 | ||
20522 | fi | |
20523 | fi | |
20524 | ||
10f2d63a | 20525 | if test "$wxUSE_MINIFRAME" = "yes"; then |
698dcdb6 | 20526 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20527 | #define wxUSE_MINIFRAME 1 |
20528 | EOF | |
20529 | ||
20530 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
20531 | fi | |
20532 | ||
20533 | if test "$wxUSE_HTML" = "yes"; then | |
698dcdb6 | 20534 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20535 | #define wxUSE_HTML 1 |
20536 | EOF | |
20537 | ||
20538 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
10f2d63a VZ |
20539 | fi |
20540 | ||
20541 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
698dcdb6 | 20542 | cat >> confdefs.h <<\EOF |
1e487827 VS |
20543 | #define wxUSE_VALIDATORS 1 |
20544 | EOF | |
703e0a69 | 20545 | |
698dcdb6 VZ |
20546 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" |
20547 | fi | |
20548 | ||
edae8572 VZ |
20549 | if test "$wxUSE_PALETTE" = "yes" ; then |
20550 | cat >> confdefs.h <<\EOF | |
20551 | #define wxUSE_PALETTE 1 | |
20552 | EOF | |
20553 | ||
20554 | fi | |
20555 | ||
698dcdb6 VZ |
20556 | if test "$wxUSE_IMAGE" = "yes" ; then |
20557 | cat >> confdefs.h <<\EOF | |
20558 | #define wxUSE_IMAGE 1 | |
20559 | EOF | |
20560 | ||
20561 | fi | |
20562 | ||
20563 | if test "$wxUSE_GIF" = "yes" ; then | |
20564 | cat >> confdefs.h <<\EOF | |
20565 | #define wxUSE_GIF 1 | |
20566 | EOF | |
20567 | ||
20568 | fi | |
20569 | ||
20570 | if test "$wxUSE_PCX" = "yes" ; then | |
20571 | cat >> confdefs.h <<\EOF | |
20572 | #define wxUSE_PCX 1 | |
20573 | EOF | |
20574 | ||
20575 | fi | |
20576 | ||
4b6b4dfc RR |
20577 | if test "$wxUSE_IFF" = "yes" ; then |
20578 | cat >> confdefs.h <<\EOF | |
20579 | #define wxUSE_IFF 1 | |
20580 | EOF | |
20581 | ||
20582 | fi | |
20583 | ||
698dcdb6 VZ |
20584 | if test "$wxUSE_PNM" = "yes" ; then |
20585 | cat >> confdefs.h <<\EOF | |
20586 | #define wxUSE_PNM 1 | |
20587 | EOF | |
20588 | ||
20589 | fi | |
20590 | ||
20591 | if test "$wxUSE_XPM" = "yes" ; then | |
20592 | cat >> confdefs.h <<\EOF | |
20593 | #define wxUSE_XPM 1 | |
20594 | EOF | |
20595 | ||
20596 | fi | |
20597 | ||
658974ae VS |
20598 | if test "$wxUSE_ICO_CUR" = "yes" ; then |
20599 | cat >> confdefs.h <<\EOF | |
20600 | #define wxUSE_ICO_CUR 1 | |
20601 | EOF | |
20602 | ||
20603 | fi | |
20604 | ||
a72a4bfa VS |
20605 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then |
20606 | LIBS=" -lunicows $LIBS" | |
20607 | fi | |
20608 | ||
698dcdb6 | 20609 | |
1e6feb95 VZ |
20610 | if test "$wxUSE_CHOICEDLG" = "yes"; then |
20611 | cat >> confdefs.h <<\EOF | |
20612 | #define wxUSE_CHOICEDLG 1 | |
20613 | EOF | |
20614 | ||
20615 | fi | |
20616 | ||
20617 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
20618 | cat >> confdefs.h <<\EOF | |
20619 | #define wxUSE_COLOURDLG 1 | |
20620 | EOF | |
20621 | ||
20622 | fi | |
20623 | ||
20624 | if test "$wxUSE_FILEDLG" = "yes"; then | |
20625 | cat >> confdefs.h <<\EOF | |
20626 | #define wxUSE_FILEDLG 1 | |
20627 | EOF | |
20628 | ||
20629 | fi | |
20630 | ||
8db37e06 VZ |
20631 | if test "$wxUSE_FINDREPLDLG" = "yes"; then |
20632 | cat >> confdefs.h <<\EOF | |
20633 | #define wxUSE_FINDREPLDLG 1 | |
20634 | EOF | |
20635 | ||
20636 | fi | |
20637 | ||
1e6feb95 VZ |
20638 | if test "$wxUSE_FONTDLG" = "yes"; then |
20639 | cat >> confdefs.h <<\EOF | |
20640 | #define wxUSE_FONTDLG 1 | |
20641 | EOF | |
20642 | ||
20643 | fi | |
20644 | ||
20645 | if test "$wxUSE_DIRDLG" = "yes"; then | |
ae1daed0 JS |
20646 | if test "$wxUSE_TREECTRL" != "yes"; then |
20647 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 | |
1e6feb95 | 20648 | else |
ae1daed0 | 20649 | cat >> confdefs.h <<\EOF |
1e6feb95 VZ |
20650 | #define wxUSE_DIRDLG 1 |
20651 | EOF | |
20652 | ||
1e6feb95 VZ |
20653 | fi |
20654 | fi | |
20655 | ||
20656 | if test "$wxUSE_MSGDLG" = "yes"; then | |
20657 | cat >> confdefs.h <<\EOF | |
20658 | #define wxUSE_MSGDLG 1 | |
20659 | EOF | |
20660 | ||
20661 | fi | |
20662 | ||
20663 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
20664 | cat >> confdefs.h <<\EOF | |
20665 | #define wxUSE_NUMBERDLG 1 | |
20666 | EOF | |
20667 | ||
20668 | fi | |
20669 | ||
20670 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
20671 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
20672 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 | |
20673 | else | |
20674 | cat >> confdefs.h <<\EOF | |
20675 | #define wxUSE_PROGRESSDLG 1 | |
20676 | EOF | |
20677 | ||
20678 | fi | |
20679 | fi | |
20680 | ||
cbca9943 VZ |
20681 | if test "$wxUSE_SPLASH" = "yes"; then |
20682 | cat >> confdefs.h <<\EOF | |
20683 | #define wxUSE_SPLASH 1 | |
20684 | EOF | |
20685 | ||
20686 | fi | |
20687 | ||
1e6feb95 VZ |
20688 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then |
20689 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
20690 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 | |
20691 | else | |
20692 | cat >> confdefs.h <<\EOF | |
20693 | #define wxUSE_STARTUP_TIPS 1 | |
20694 | EOF | |
20695 | ||
20696 | fi | |
20697 | fi | |
20698 | ||
20699 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
20700 | cat >> confdefs.h <<\EOF | |
20701 | #define wxUSE_TEXTDLG 1 | |
20702 | EOF | |
20703 | ||
20704 | fi | |
20705 | ||
b1f5d087 VZ |
20706 | if test "$wxUSE_WIZARDDLG" = "yes"; then |
20707 | cat >> confdefs.h <<\EOF | |
20708 | #define wxUSE_WIZARDDLG 1 | |
20709 | EOF | |
20710 | ||
20711 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
20712 | fi | |
20713 | ||
1e6feb95 | 20714 | |
698dcdb6 VZ |
20715 | if test "$cross_compiling" = "yes"; then |
20716 | OSINFO="\"$host\"" | |
20717 | else | |
20718 | OSINFO=`uname -s -r -m` | |
20719 | OSINFO="\"$OSINFO\"" | |
20720 | fi | |
20721 | ||
20722 | cat >> confdefs.h <<EOF | |
20723 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
20724 | EOF | |
20725 | ||
20726 | ||
20727 | ||
06dda230 VZ |
20728 | if test "x$prefix" != "xNONE"; then |
20729 | wxPREFIX=$prefix | |
20730 | else | |
20731 | wxPREFIX=$ac_default_prefix | |
20732 | fi | |
20733 | ||
7e67ed0d | 20734 | cat >> confdefs.h <<EOF |
06dda230 | 20735 | #define wxINSTALL_PREFIX "$wxPREFIX" |
7e67ed0d VZ |
20736 | EOF |
20737 | ||
20738 | ||
20739 | ||
698dcdb6 | 20740 | |
3a922bb4 | 20741 | |
f11bdd03 | 20742 | if test "$wxUSE_MAC" = 1 ; then |
3d63bc3a | 20743 | LDFLAGS="$LDFLAGS -framework Carbon -framework System" |
698dcdb6 | 20744 | fi |
3a922bb4 | 20745 | |
3d63bc3a | 20746 | |
009fead0 | 20747 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK -lm $LIBS" |
3d63bc3a | 20748 | |
698dcdb6 | 20749 | if test "$wxUSE_GUI" = "yes"; then |
3d63bc3a | 20750 | |
cb61c62d | 20751 | LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS" |
3a922bb4 RL |
20752 | |
20753 | ||
867a54b6 | 20754 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \ |
3a922bb4 RL |
20755 | drawing dynamic erase event exec font image \ |
20756 | minimal richedit rotate widgets" | |
20757 | ||
3a922bb4 RL |
20758 | CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)" |
20759 | else | |
20760 | SAMPLES_SUBDIRS="console" | |
698dcdb6 VZ |
20761 | fi |
20762 | ||
698dcdb6 | 20763 | |
57973b9c VZ |
20764 | INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \ |
20765 | -I\${top_srcdir}/include \ | |
20766 | $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \ | |
20767 | $TOOLKIT_INCLUDE" | |
698dcdb6 | 20768 | |
63e7762e | 20769 | if test "$wxUSE_GTK" = 1; then |
3d63bc3a | 20770 | WXCONFIG_INCLUDE= |
698dcdb6 VZ |
20771 | else |
20772 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
20773 | fi | |
20774 | ||
20775 | if test "$GXX" = yes ; then | |
20776 | CXXWARNINGS="-Wall" | |
88e30f2b RL |
20777 | |
20778 | if test "$wxUSE_NO_DEPS" = "no" ; then | |
20779 | CFLAGS="-MMD $CFLAGS" | |
20780 | CXXFLAGS="-MMD $CXXFLAGS" | |
20781 | fi | |
20782 | fi | |
20783 | ||
1725144d | 20784 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES" |
698dcdb6 VZ |
20785 | |
20786 | CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` | |
20787 | CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
fe5a9cab | 20788 | LIBS=`echo $LIBS | sed 's/ \+/ /g'` |
698dcdb6 | 20789 | |
fe5a9cab | 20790 | LDFLAGS="$LDFLAGS $PROFILE" |
698dcdb6 | 20791 | |
698dcdb6 VZ |
20792 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" |
20793 | ||
20794 | ||
20795 | ||
20796 | ||
20797 | ||
20798 | ||
20799 | ||
20800 | ||
20801 | ||
20802 | ||
20803 | ||
20804 | ||
20805 | ||
20806 | ||
20807 | ||
20808 | ||
20809 | ||
20810 | ||
20811 | ||
20812 | ||
20813 | ||
20814 | ||
20815 | ||
20816 | ||
20817 | ||
20818 | ||
20819 | ||
20820 | ||
20821 | ||
20822 | ||
20823 | ||
20824 | ||
20825 | ||
20826 | ||
20827 | ||
20828 | ||
20829 | ||
20830 | ||
20831 | ||
20832 | ||
20833 | ||
20834 | ||
20835 | ||
20836 | ||
20837 | ||
20838 | ||
20839 | ||
20840 | ||
20841 | ||
20842 | ||
20843 | ||
20844 | ||
20845 | ||
20846 | ||
20847 | ||
20848 | ||
20849 | ||
20850 | ||
20851 | ||
20852 | ||
20853 | ||
20854 | ||
20855 | ||
20856 | ||
20857 | ||
20858 | ||
20859 | ||
32832908 | 20860 | |
2f51a9ec GD |
20861 | |
20862 | ||
20863 | ||
20864 | ||
f6bcfd97 | 20865 | |
dad6c0ea | 20866 | |
caa2c79b | 20867 | |
3711412e | 20868 | |
1e6feb95 VZ |
20869 | |
20870 | ||
885d4bf5 VS |
20871 | |
20872 | ||
20873 | ||
20874 | ||
9b695262 VZ |
20875 | |
20876 | ||
62d0491b | 20877 | |
ef7f2189 | 20878 | |
40f7145c | 20879 | |
3bd8fb5f | 20880 | |
10f2d63a VZ |
20881 | |
20882 | ||
698dcdb6 | 20883 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
43d99b6d | 20884 | echo "configure:20885: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
698dcdb6 VZ |
20885 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
20886 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
20887 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 20888 | else |
698dcdb6 | 20889 | cat > conftestmake <<\EOF |
10f2d63a VZ |
20890 | all: |
20891 | @echo 'ac_maketemp="${MAKE}"' | |
20892 | EOF | |
20893 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
698dcdb6 | 20894 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
10f2d63a VZ |
20895 | if test -n "$ac_maketemp"; then |
20896 | eval ac_cv_prog_make_${ac_make}_set=yes | |
20897 | else | |
20898 | eval ac_cv_prog_make_${ac_make}_set=no | |
20899 | fi | |
698dcdb6 | 20900 | rm -f conftestmake |
10f2d63a VZ |
20901 | fi |
20902 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
698dcdb6 | 20903 | echo "$ac_t""yes" 1>&6 |
10f2d63a VZ |
20904 | SET_MAKE= |
20905 | else | |
698dcdb6 | 20906 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
20907 | SET_MAKE="MAKE=${MAKE-make}" |
20908 | fi | |
20909 | ||
698dcdb6 | 20910 | |
3a922bb4 RL |
20911 | if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then |
20912 | mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h | |
00cf1208 | 20913 | fi |
665bbe97 | 20914 | |
698dcdb6 | 20915 | |
10f2d63a | 20916 | |
57973b9c VZ |
20917 | wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS |
20918 | wx_cv_if_gnu_make=$IF_GNU_MAKE | |
20919 | wx_cv_path_ifs=$PATH_IFS | |
20920 | wx_cv_program_ext=$PROGRAM_EXT | |
20921 | wx_cv_target_library=$WX_TARGET_LIBRARY | |
20922 | wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL | |
20923 | wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE | |
20924 | export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \ | |
20925 | wx_cv_path_ifs wx_cv_program_ext \ | |
20926 | wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype | |
20927 | ||
20928 | subdirs="demos samples utils contrib" | |
2224580a | 20929 | |
10f2d63a | 20930 | |
698dcdb6 VZ |
20931 | trap '' 1 2 15 |
20932 | cat > confcache <<\EOF | |
10f2d63a VZ |
20933 | # This file is a shell script that caches the results of configure |
20934 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
20935 | # scripts and configure runs. It is not useful on other systems. |
20936 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 20937 | # |
698dcdb6 VZ |
20938 | # By default, configure uses ./config.cache as the cache file, |
20939 | # creating it if it does not exist already. You can give configure | |
20940 | # the --cache-file=FILE option to use a different cache file; that is | |
20941 | # what configure does when it calls configure scripts in | |
20942 | # subdirectories, so they share the cache. | |
20943 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
20944 | # config.status only pays attention to the cache file if you give it the | |
20945 | # --recheck option to rerun configure. | |
10f2d63a | 20946 | # |
698dcdb6 | 20947 | EOF |
10f2d63a VZ |
20948 | # The following way of writing the cache mishandles newlines in values, |
20949 | # but we know of no workaround that is simple, portable, and efficient. | |
20950 | # So, don't put newlines in cache variables' values. | |
20951 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
20952 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
20953 | (set) 2>&1 | |
20954 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
20955 | *ac_space=\ *) | |
20956 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
20957 | # turns \\\\ into \\, and sed turns \\ into \). | |
20958 | sed -n \ | |
20959 | -e "s/'/'\\\\''/g" \ | |
20960 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
20961 | ;; | |
20962 | *) | |
20963 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
20964 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
20965 | ;; | |
20966 | esac >> confcache | |
20967 | if cmp -s $cache_file confcache; then | |
20968 | : | |
20969 | else | |
10f2d63a | 20970 | if test -w $cache_file; then |
698dcdb6 VZ |
20971 | echo "updating cache $cache_file" |
20972 | cat confcache > $cache_file | |
10f2d63a VZ |
20973 | else |
20974 | echo "not updating unwritable cache $cache_file" | |
20975 | fi | |
20976 | fi | |
20977 | rm -f confcache | |
20978 | ||
698dcdb6 VZ |
20979 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
20980 | ||
10f2d63a VZ |
20981 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
20982 | # Let make expand exec_prefix. | |
20983 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
20984 | ||
698dcdb6 VZ |
20985 | # Any assignment to VPATH causes Sun make to only execute |
20986 | # the first set of double-colon rules, so remove it if not needed. | |
20987 | # If there is a colon in the path, we need to keep it. | |
10f2d63a | 20988 | if test "x$srcdir" = x.; then |
698dcdb6 | 20989 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
10f2d63a VZ |
20990 | fi |
20991 | ||
698dcdb6 VZ |
20992 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
20993 | ||
10f2d63a VZ |
20994 | DEFS=-DHAVE_CONFIG_H |
20995 | ||
698dcdb6 | 20996 | # Without the "./", some shells look in PATH for config.status. |
10f2d63a | 20997 | : ${CONFIG_STATUS=./config.status} |
698dcdb6 VZ |
20998 | |
20999 | echo creating $CONFIG_STATUS | |
21000 | rm -f $CONFIG_STATUS | |
21001 | cat > $CONFIG_STATUS <<EOF | |
21002 | #! /bin/sh | |
10f2d63a VZ |
21003 | # Generated automatically by configure. |
21004 | # Run this file to recreate the current configuration. | |
698dcdb6 VZ |
21005 | # This directory was configured as follows, |
21006 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
21007 | # | |
21008 | # $0 $ac_configure_args | |
21009 | # | |
10f2d63a | 21010 | # Compiler output produced by configure, useful for debugging |
698dcdb6 | 21011 | # configure, is in ./config.log if it exists. |
1e487827 | 21012 | |
698dcdb6 VZ |
21013 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
21014 | for ac_option | |
10f2d63a | 21015 | do |
698dcdb6 | 21016 | case "\$ac_option" in |
10f2d63a | 21017 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
698dcdb6 VZ |
21018 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
21019 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
21020 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
21021 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
21022 | exit 0 ;; | |
21023 | -help | --help | --hel | --he | --h) | |
21024 | echo "\$ac_cs_usage"; exit 0 ;; | |
21025 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
10f2d63a VZ |
21026 | esac |
21027 | done | |
21028 | ||
698dcdb6 VZ |
21029 | ac_given_srcdir=$srcdir |
21030 | ac_given_INSTALL="$INSTALL" | |
703e0a69 | 21031 | |
698dcdb6 VZ |
21032 | trap 'rm -fr `echo " |
21033 | wx-config | |
21034 | src/make.env | |
21035 | src/makeprog.env | |
21036 | src/makelib.env | |
21037 | Makefile | |
21038 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
1e487827 | 21039 | EOF |
698dcdb6 | 21040 | cat >> $CONFIG_STATUS <<EOF |
1e487827 | 21041 | |
698dcdb6 VZ |
21042 | # Protect against being on the right side of a sed subst in config.status. |
21043 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
21044 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
21045 | $ac_vpsub | |
21046 | $extrasub | |
21047 | s%@SHELL@%$SHELL%g | |
21048 | s%@CFLAGS@%$CFLAGS%g | |
21049 | s%@CPPFLAGS@%$CPPFLAGS%g | |
21050 | s%@CXXFLAGS@%$CXXFLAGS%g | |
21051 | s%@FFLAGS@%$FFLAGS%g | |
21052 | s%@DEFS@%$DEFS%g | |
21053 | s%@LDFLAGS@%$LDFLAGS%g | |
21054 | s%@LIBS@%$LIBS%g | |
21055 | s%@exec_prefix@%$exec_prefix%g | |
21056 | s%@prefix@%$prefix%g | |
21057 | s%@program_transform_name@%$program_transform_name%g | |
21058 | s%@bindir@%$bindir%g | |
21059 | s%@sbindir@%$sbindir%g | |
21060 | s%@libexecdir@%$libexecdir%g | |
21061 | s%@datadir@%$datadir%g | |
21062 | s%@sysconfdir@%$sysconfdir%g | |
21063 | s%@sharedstatedir@%$sharedstatedir%g | |
21064 | s%@localstatedir@%$localstatedir%g | |
21065 | s%@libdir@%$libdir%g | |
21066 | s%@includedir@%$includedir%g | |
21067 | s%@oldincludedir@%$oldincludedir%g | |
21068 | s%@infodir@%$infodir%g | |
21069 | s%@mandir@%$mandir%g | |
21070 | s%@host@%$host%g | |
21071 | s%@host_alias@%$host_alias%g | |
21072 | s%@host_cpu@%$host_cpu%g | |
21073 | s%@host_vendor@%$host_vendor%g | |
21074 | s%@host_os@%$host_os%g | |
21075 | s%@target@%$target%g | |
21076 | s%@target_alias@%$target_alias%g | |
21077 | s%@target_cpu@%$target_cpu%g | |
21078 | s%@target_vendor@%$target_vendor%g | |
21079 | s%@target_os@%$target_os%g | |
21080 | s%@build@%$build%g | |
21081 | s%@build_alias@%$build_alias%g | |
21082 | s%@build_cpu@%$build_cpu%g | |
21083 | s%@build_vendor@%$build_vendor%g | |
21084 | s%@build_os@%$build_os%g | |
21085 | s%@CC@%$CC%g | |
21086 | s%@CPP@%$CPP%g | |
21087 | s%@CXX@%$CXX%g | |
698dcdb6 VZ |
21088 | s%@RANLIB@%$RANLIB%g |
21089 | s%@AR@%$AR%g | |
21090 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
d6853540 | 21091 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
6054113a | 21092 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
698dcdb6 | 21093 | s%@STRIP@%$STRIP%g |
613d0995 | 21094 | s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g |
698dcdb6 VZ |
21095 | s%@YACC@%$YACC%g |
21096 | s%@LEX@%$LEX%g | |
21097 | s%@LEXLIB@%$LEXLIB%g | |
21098 | s%@LN_S@%$LN_S%g | |
90dd450c | 21099 | s%@CXXCPP@%$CXXCPP%g |
9e691f46 | 21100 | s%@PKG_CONFIG@%$PKG_CONFIG%g |
698dcdb6 VZ |
21101 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g |
21102 | s%@GTK_LIBS@%$GTK_LIBS%g | |
8168de4c | 21103 | s%@GTK_CONFIG@%$GTK_CONFIG%g |
698dcdb6 VZ |
21104 | s%@X_CFLAGS@%$X_CFLAGS%g |
21105 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
21106 | s%@X_LIBS@%$X_LIBS%g | |
21107 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
321d2b14 | 21108 | s%@AIX_CXX_LD@%$AIX_CXX_LD%g |
3a922bb4 | 21109 | s%@RESCOMP@%$RESCOMP%g |
698dcdb6 | 21110 | s%@DEREZ@%$DEREZ%g |
b040e242 | 21111 | s%@LIBICONV@%$LIBICONV%g |
698dcdb6 VZ |
21112 | s%@LEX_STEM@%$LEX_STEM%g |
21113 | s%@PATH_IFS@%$PATH_IFS%g | |
21114 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g | |
21115 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
21116 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
698dcdb6 VZ |
21117 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g |
21118 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
77e13408 | 21119 | s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g |
698dcdb6 VZ |
21120 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g |
21121 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
21122 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
698dcdb6 | 21123 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g |
698dcdb6 VZ |
21124 | s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g |
21125 | s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g | |
698dcdb6 VZ |
21126 | s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g |
21127 | s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g | |
21128 | s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g | |
698dcdb6 VZ |
21129 | s%@WX_ALL@%$WX_ALL%g |
21130 | s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g | |
21131 | s%@SHARED_LD@%$SHARED_LD%g | |
21132 | s%@PIC_FLAG@%$PIC_FLAG%g | |
698dcdb6 VZ |
21133 | s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g |
21134 | s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g | |
3a922bb4 RL |
21135 | s%@SONAME_FLAGS@%$SONAME_FLAGS%g |
21136 | s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g | |
698dcdb6 VZ |
21137 | s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g |
21138 | s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g | |
21139 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g | |
21140 | s%@USE_GUI@%$USE_GUI%g | |
21141 | s%@AFMINSTALL@%$AFMINSTALL%g | |
21142 | s%@TOOLKIT@%$TOOLKIT%g | |
698dcdb6 | 21143 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g |
1e6feb95 | 21144 | s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g |
3a922bb4 RL |
21145 | s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g |
21146 | s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g | |
00c81359 | 21147 | s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g |
3a922bb4 RL |
21148 | s%@cross_compiling@%$cross_compiling%g |
21149 | s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g | |
21150 | s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g | |
885d4bf5 VS |
21151 | s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g |
21152 | s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g | |
698dcdb6 | 21153 | s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g |
3bd8fb5f | 21154 | s%@WXCONFIG_RPATH@%$WXCONFIG_RPATH%g |
698dcdb6 | 21155 | s%@ALL_OBJECTS@%$ALL_OBJECTS%g |
9b695262 VZ |
21156 | s%@ALL_HEADERS@%$ALL_HEADERS%g |
21157 | s%@ALL_SOURCES@%$ALL_SOURCES%g | |
698dcdb6 VZ |
21158 | s%@GUIDIST@%$GUIDIST%g |
21159 | s%@PORT_FILES@%$PORT_FILES%g | |
21160 | s%@DISTDIR@%$DISTDIR%g | |
698dcdb6 | 21161 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g |
62d0491b | 21162 | s%@LDFLAGS_GL@%$LDFLAGS_GL%g |
40f7145c | 21163 | s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g |
698dcdb6 | 21164 | s%@OPENGL_LIBS@%$OPENGL_LIBS%g |
3d63bc3a | 21165 | s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g |
698dcdb6 | 21166 | s%@EXTRADEFS@%$EXTRADEFS%g |
698dcdb6 | 21167 | s%@RESFLAGS@%$RESFLAGS%g |
3a922bb4 | 21168 | s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g |
e95edd8d GD |
21169 | s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g |
21170 | s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g | |
ef7f2189 | 21171 | s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g |
698dcdb6 VZ |
21172 | s%@LIBWXMACRES@%$LIBWXMACRES%g |
21173 | s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g | |
2baaf735 | 21174 | s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g |
698dcdb6 VZ |
21175 | s%@DLLTOOL@%$DLLTOOL%g |
21176 | s%@AS@%$AS%g | |
21177 | s%@NM@%$NM%g | |
21178 | s%@LD@%$LD%g | |
21179 | s%@MAKEINFO@%$MAKEINFO%g | |
885d4bf5 | 21180 | s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g |
698dcdb6 VZ |
21181 | s%@SET_MAKE@%$SET_MAKE%g |
21182 | s%@subdirs@%$subdirs%g | |
1e487827 | 21183 | |
1e487827 | 21184 | CEOF |
1e487827 VS |
21185 | EOF |
21186 | ||
698dcdb6 VZ |
21187 | cat >> $CONFIG_STATUS <<\EOF |
21188 | ||
21189 | # Split the substitutions into bite-sized pieces for seds with | |
21190 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
21191 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
21192 | ac_file=1 # Number of current file. | |
21193 | ac_beg=1 # First line for current file. | |
21194 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
21195 | ac_more_lines=: | |
21196 | ac_sed_cmds="" | |
21197 | while $ac_more_lines; do | |
21198 | if test $ac_beg -gt 1; then | |
21199 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
21200 | else | |
21201 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
21202 | fi | |
21203 | if test ! -s conftest.s$ac_file; then | |
21204 | ac_more_lines=false | |
21205 | rm -f conftest.s$ac_file | |
21206 | else | |
21207 | if test -z "$ac_sed_cmds"; then | |
21208 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
10f2d63a | 21209 | else |
698dcdb6 | 21210 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
10f2d63a | 21211 | fi |
698dcdb6 VZ |
21212 | ac_file=`expr $ac_file + 1` |
21213 | ac_beg=$ac_end | |
21214 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
10f2d63a | 21215 | fi |
698dcdb6 VZ |
21216 | done |
21217 | if test -z "$ac_sed_cmds"; then | |
21218 | ac_sed_cmds=cat | |
21219 | fi | |
21220 | EOF | |
10f2d63a | 21221 | |
698dcdb6 VZ |
21222 | cat >> $CONFIG_STATUS <<EOF |
21223 | ||
21224 | CONFIG_FILES=\${CONFIG_FILES-"wx-config | |
21225 | src/make.env | |
21226 | src/makeprog.env | |
21227 | src/makelib.env | |
21228 | Makefile | |
21229 | "} | |
10f2d63a | 21230 | EOF |
698dcdb6 VZ |
21231 | cat >> $CONFIG_STATUS <<\EOF |
21232 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
10f2d63a | 21233 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
698dcdb6 VZ |
21234 | case "$ac_file" in |
21235 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
21236 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
21237 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
21238 | esac |
21239 | ||
698dcdb6 | 21240 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
1e487827 | 21241 | |
698dcdb6 VZ |
21242 | # Remove last slash and all that follows it. Not all systems have dirname. |
21243 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
21244 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
21245 | # The file is in a subdirectory. | |
21246 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
21247 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
10f2d63a | 21248 | # A "../" for each directory in $ac_dir_suffix. |
698dcdb6 | 21249 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
10f2d63a VZ |
21250 | else |
21251 | ac_dir_suffix= ac_dots= | |
21252 | fi | |
21253 | ||
698dcdb6 VZ |
21254 | case "$ac_given_srcdir" in |
21255 | .) srcdir=. | |
21256 | if test -z "$ac_dots"; then top_srcdir=. | |
21257 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
21258 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
10f2d63a | 21259 | *) # Relative path. |
698dcdb6 VZ |
21260 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
21261 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
10f2d63a VZ |
21262 | esac |
21263 | ||
698dcdb6 VZ |
21264 | case "$ac_given_INSTALL" in |
21265 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
21266 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
10f2d63a VZ |
21267 | esac |
21268 | ||
698dcdb6 VZ |
21269 | echo creating "$ac_file" |
21270 | rm -f "$ac_file" | |
21271 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
21272 | case "$ac_file" in | |
21273 | *Makefile*) ac_comsub="1i\\ | |
21274 | # $configure_input" ;; | |
21275 | *) ac_comsub= ;; | |
21276 | esac | |
10f2d63a | 21277 | |
698dcdb6 VZ |
21278 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
21279 | sed -e "$ac_comsub | |
21280 | s%@configure_input@%$configure_input%g | |
21281 | s%@srcdir@%$srcdir%g | |
21282 | s%@top_srcdir@%$top_srcdir%g | |
21283 | s%@INSTALL@%$INSTALL%g | |
21284 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
21285 | fi; done | |
21286 | rm -f conftest.s* | |
10f2d63a VZ |
21287 | |
21288 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
21289 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
21290 | # | |
21291 | # ac_d sets the value in "#define NAME VALUE" lines. | |
698dcdb6 VZ |
21292 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
21293 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
21294 | ac_dC='\3' | |
21295 | ac_dD='%g' | |
21296 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
21297 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
21298 | ac_uB='\([ ]\)%\1#\2define\3' | |
10f2d63a | 21299 | ac_uC=' ' |
698dcdb6 VZ |
21300 | ac_uD='\4%g' |
21301 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
21302 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
21303 | ac_eB='$%\1#\2define\3' | |
21304 | ac_eC=' ' | |
21305 | ac_eD='%g' | |
10f2d63a | 21306 | |
698dcdb6 VZ |
21307 | if test "${CONFIG_HEADERS+set}" != set; then |
21308 | EOF | |
21309 | cat >> $CONFIG_STATUS <<EOF | |
21310 | CONFIG_HEADERS="setup.h:setup.h.in" | |
21311 | EOF | |
21312 | cat >> $CONFIG_STATUS <<\EOF | |
21313 | fi | |
21314 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
10f2d63a | 21315 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
698dcdb6 VZ |
21316 | case "$ac_file" in |
21317 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
21318 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
21319 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
21320 | esac |
21321 | ||
698dcdb6 VZ |
21322 | echo creating $ac_file |
21323 | ||
21324 | rm -f conftest.frag conftest.in conftest.out | |
21325 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
21326 | cat $ac_file_inputs > conftest.in | |
21327 | ||
21328 | EOF | |
21329 | ||
21330 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
21331 | # the proper values into config.h.in to produce config.h. And first: | |
21332 | # Protect against being on the right side of a sed subst in config.status. | |
21333 | # Protect against being in an unquoted here document in config.status. | |
21334 | rm -f conftest.vals | |
21335 | cat > conftest.hdr <<\EOF | |
21336 | s/[\\&%]/\\&/g | |
21337 | s%[\\$`]%\\&%g | |
21338 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
21339 | s%ac_d%ac_u%gp | |
21340 | s%ac_u%ac_e%gp | |
21341 | EOF | |
21342 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
21343 | rm -f conftest.hdr | |
10f2d63a VZ |
21344 | |
21345 | # This sed command replaces #undef with comments. This is necessary, for | |
21346 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
21347 | # on some systems where configure will not decide to define it. | |
698dcdb6 VZ |
21348 | cat >> conftest.vals <<\EOF |
21349 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
10f2d63a VZ |
21350 | EOF |
21351 | ||
698dcdb6 VZ |
21352 | # Break up conftest.vals because some shells have a limit on |
21353 | # the size of here documents, and old seds have small limits too. | |
10f2d63a VZ |
21354 | |
21355 | rm -f conftest.tail | |
698dcdb6 | 21356 | while : |
10f2d63a | 21357 | do |
698dcdb6 VZ |
21358 | ac_lines=`grep -c . conftest.vals` |
21359 | # grep -c gives empty output for an empty file on some AIX systems. | |
21360 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
21361 | # Write a limited-size here document to conftest.frag. | |
21362 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
21363 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
10f2d63a | 21364 | echo 'CEOF |
698dcdb6 VZ |
21365 | sed -f conftest.frag conftest.in > conftest.out |
21366 | rm -f conftest.in | |
21367 | mv conftest.out conftest.in | |
21368 | ' >> $CONFIG_STATUS | |
21369 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
21370 | rm -f conftest.vals | |
21371 | mv conftest.tail conftest.vals | |
10f2d63a | 21372 | done |
698dcdb6 VZ |
21373 | rm -f conftest.vals |
21374 | ||
21375 | cat >> $CONFIG_STATUS <<\EOF | |
21376 | rm -f conftest.frag conftest.h | |
21377 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
21378 | cat conftest.in >> conftest.h | |
21379 | rm -f conftest.in | |
21380 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
21381 | echo "$ac_file is unchanged" | |
21382 | rm -f conftest.h | |
10f2d63a | 21383 | else |
698dcdb6 VZ |
21384 | # Remove last slash and all that follows it. Not all systems have dirname. |
21385 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
10f2d63a | 21386 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
698dcdb6 VZ |
21387 | # The file is in a subdirectory. |
21388 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
10f2d63a | 21389 | fi |
698dcdb6 VZ |
21390 | rm -f $ac_file |
21391 | mv conftest.h $ac_file | |
10f2d63a | 21392 | fi |
698dcdb6 VZ |
21393 | fi; done |
21394 | ||
10f2d63a | 21395 | EOF |
698dcdb6 | 21396 | cat >> $CONFIG_STATUS <<EOF |
10f2d63a | 21397 | |
3a922bb4 | 21398 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}" |
698dcdb6 VZ |
21399 | LN_S="${LN_S}" |
21400 | ||
21401 | ||
21402 | EOF | |
21403 | cat >> $CONFIG_STATUS <<\EOF | |
10f2d63a | 21404 | |
652d930d | 21405 | if test ! -h wx-config; then |
991a5759 | 21406 | chmod +x wx-config |
3a922bb4 RL |
21407 | mv wx-config wx${TOOLCHAIN_NAME}-config |
21408 | ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config | |
991a5759 | 21409 | fi |
665bbe97 | 21410 | |
00cf1208 RR |
21411 | if test ! -d lib; then |
21412 | mkdir lib | |
21413 | fi | |
21414 | if test ! -d lib/wx; then | |
21415 | mkdir lib/wx | |
21416 | fi | |
21417 | if test ! -d lib/wx/include; then | |
21418 | mkdir lib/wx/include | |
21419 | fi | |
3a922bb4 RL |
21420 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then |
21421 | mkdir lib/wx/include/${TOOLCHAIN_NAME} | |
00cf1208 | 21422 | fi |
3a922bb4 RL |
21423 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then |
21424 | mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx | |
00cf1208 RR |
21425 | fi |
21426 | if test -f setup.h; then | |
3a922bb4 | 21427 | mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h |
00cf1208 | 21428 | fi |
698dcdb6 VZ |
21429 | |
21430 | exit 0 | |
10f2d63a VZ |
21431 | EOF |
21432 | chmod +x $CONFIG_STATUS | |
698dcdb6 VZ |
21433 | rm -fr confdefs* $ac_clean_files |
21434 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
10f2d63a | 21435 | |
2224580a VZ |
21436 | if test "$no_recursion" != yes; then |
21437 | ||
21438 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
21439 | ac_sub_configure_args= | |
21440 | ac_prev= | |
21441 | for ac_arg in $ac_configure_args; do | |
21442 | if test -n "$ac_prev"; then | |
21443 | ac_prev= | |
21444 | continue | |
21445 | fi | |
698dcdb6 | 21446 | case "$ac_arg" in |
2224580a VZ |
21447 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
21448 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
21449 | ac_prev=cache_file ;; | |
21450 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
698dcdb6 | 21451 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
2224580a VZ |
21452 | ;; |
21453 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
21454 | ac_prev=srcdir ;; | |
21455 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
21456 | ;; | |
21457 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
21458 | esac | |
21459 | done | |
21460 | ||
8f4a9a10 | 21461 | for ac_config_dir in demos samples utils contrib; do |
2224580a VZ |
21462 | |
21463 | # Do not complain, so a configure script can configure whichever | |
21464 | # parts of a large source tree are present. | |
698dcdb6 VZ |
21465 | if test ! -d $srcdir/$ac_config_dir; then |
21466 | continue | |
21467 | fi | |
21468 | ||
21469 | echo configuring in $ac_config_dir | |
2224580a | 21470 | |
698dcdb6 | 21471 | case "$srcdir" in |
2224580a VZ |
21472 | .) ;; |
21473 | *) | |
698dcdb6 VZ |
21474 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; |
21475 | else | |
21476 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
21477 | fi | |
21478 | ;; | |
2224580a VZ |
21479 | esac |
21480 | ||
21481 | ac_popdir=`pwd` | |
698dcdb6 | 21482 | cd $ac_config_dir |
2224580a | 21483 | |
698dcdb6 VZ |
21484 | # A "../" for each directory in /$ac_config_dir. |
21485 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
2224580a | 21486 | |
698dcdb6 | 21487 | case "$srcdir" in |
2224580a VZ |
21488 | .) # No --srcdir option. We are building in place. |
21489 | ac_sub_srcdir=$srcdir ;; | |
698dcdb6 VZ |
21490 | /*) # Absolute path. |
21491 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
2224580a | 21492 | *) # Relative path. |
698dcdb6 | 21493 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; |
2224580a VZ |
21494 | esac |
21495 | ||
21496 | # Check for guested configure; otherwise get Cygnus style configure. | |
698dcdb6 VZ |
21497 | if test -f $ac_sub_srcdir/configure; then |
21498 | ac_sub_configure=$ac_sub_srcdir/configure | |
2224580a VZ |
21499 | elif test -f $ac_sub_srcdir/configure.in; then |
21500 | ac_sub_configure=$ac_configure | |
21501 | else | |
698dcdb6 | 21502 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 |
2224580a VZ |
21503 | ac_sub_configure= |
21504 | fi | |
21505 | ||
21506 | # The recursion is here. | |
21507 | if test -n "$ac_sub_configure"; then | |
698dcdb6 | 21508 | |
2224580a | 21509 | # Make the cache file name correct relative to the subdirectory. |
698dcdb6 VZ |
21510 | case "$cache_file" in |
21511 | /*) ac_sub_cache_file=$cache_file ;; | |
2224580a | 21512 | *) # Relative path. |
698dcdb6 | 21513 | ac_sub_cache_file="$ac_dots$cache_file" ;; |
2224580a | 21514 | esac |
698dcdb6 VZ |
21515 | case "$ac_given_INSTALL" in |
21516 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
21517 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
21518 | esac | |
2224580a | 21519 | |
698dcdb6 | 21520 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" |
2224580a | 21521 | # The eval makes quoting arguments work. |
698dcdb6 VZ |
21522 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir |
21523 | then : | |
21524 | else | |
21525 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
21526 | fi | |
2224580a VZ |
21527 | fi |
21528 | ||
21529 | cd $ac_popdir | |
21530 | done | |
21531 | fi | |
21532 | ||
698dcdb6 | 21533 |