]>
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" |
698dcdb6 | 156 | ac_help="$ac_help |
8168de4c | 157 | --enable-intl use internationalization system" |
698dcdb6 | 158 | ac_help="$ac_help |
8168de4c | 159 | --enable-config use wxConfig (and derived) classes" |
a1622950 VZ |
160 | ac_help="$ac_help |
161 | --enable-protocols use wxProtocol and derived classes" | |
162 | ac_help="$ac_help | |
163 | --enable-ftp use wxFTP (requires wxProtocol" | |
164 | ac_help="$ac_help | |
165 | --enable-http use wxHTTP (requires wxProtocol" | |
166 | ac_help="$ac_help | |
167 | --enable-fileproto use wxFileProto class (requires wxProtocol" | |
698dcdb6 | 168 | ac_help="$ac_help |
8168de4c | 169 | --enable-sockets use socket/network classes" |
698dcdb6 | 170 | ac_help="$ac_help |
8168de4c | 171 | --enable-ipc use interprocess communication (wxSocket etc.)" |
698dcdb6 | 172 | ac_help="$ac_help |
8168de4c | 173 | --enable-cmdline use wxCmdLineParser class" |
1e6feb95 | 174 | ac_help="$ac_help |
8168de4c | 175 | --enable-datetime use wxDateTime class" |
1e6feb95 | 176 | ac_help="$ac_help |
8168de4c | 177 | --enable-timedate use obsolete wxDate/wxTime classes" |
1e6feb95 | 178 | ac_help="$ac_help |
8168de4c | 179 | --enable-stopwatch use wxStopWatch class" |
1e6feb95 | 180 | ac_help="$ac_help |
8168de4c | 181 | --enable-dialupman use dialup network classes" |
698dcdb6 | 182 | ac_help="$ac_help |
8168de4c | 183 | --enable-apple_ieee use the Apple IEEE codec" |
698dcdb6 | 184 | ac_help="$ac_help |
8168de4c | 185 | --enable-timer use wxTimer class" |
698dcdb6 | 186 | ac_help="$ac_help |
8168de4c | 187 | --enable-wave use wxWave class" |
698dcdb6 | 188 | ac_help="$ac_help |
8168de4c | 189 | --enable-fraction use wxFraction class" |
698dcdb6 | 190 | ac_help="$ac_help |
8168de4c | 191 | --enable-dynlib use wxLibrary class for DLL loading" |
0b9ab0bd RL |
192 | ac_help="$ac_help |
193 | --enable-dynamicloader use (new) wxDynamicLibrary class" | |
698dcdb6 | 194 | ac_help="$ac_help |
8168de4c | 195 | --enable-longlong use wxLongLong class" |
698dcdb6 | 196 | ac_help="$ac_help |
8168de4c | 197 | --enable-geometry use geometry class" |
698dcdb6 | 198 | ac_help="$ac_help |
8168de4c | 199 | --enable-log use logging system" |
698dcdb6 | 200 | ac_help="$ac_help |
8168de4c | 201 | --enable-streams use wxStream etc classes" |
698dcdb6 | 202 | ac_help="$ac_help |
8168de4c | 203 | --enable-file use wxFile classes" |
698dcdb6 | 204 | ac_help="$ac_help |
8168de4c | 205 | --enable-ffile use wxFFile classes" |
1e6feb95 | 206 | ac_help="$ac_help |
a3a584a7 VZ |
207 | --enable-textbuf use wxTextBuffer class" |
208 | ac_help="$ac_help | |
209 | --enable-textfile use wxTextFile class" | |
698dcdb6 | 210 | ac_help="$ac_help |
8168de4c | 211 | --enable-fontmap use font encodings conversion classes" |
1e6feb95 | 212 | ac_help="$ac_help |
8168de4c | 213 | --enable-unicode compile wxString with Unicode support" |
a72a4bfa VS |
214 | ac_help="$ac_help |
215 | --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)" | |
698dcdb6 | 216 | ac_help="$ac_help |
8168de4c | 217 | --enable-wxprintfv use wxWindows implementation of vprintf()" |
698dcdb6 | 218 | ac_help="$ac_help |
8168de4c | 219 | --enable-std_iostreams use standard C++ stream classes" |
698dcdb6 | 220 | ac_help="$ac_help |
8168de4c | 221 | --enable-filesystem use virtual file systems classes" |
698dcdb6 | 222 | ac_help="$ac_help |
8168de4c | 223 | --enable-fs_inet use virtual HTTP/FTP filesystems" |
698dcdb6 | 224 | ac_help="$ac_help |
8168de4c | 225 | --enable-fs_zip use virtual ZIP filesystems" |
698dcdb6 | 226 | ac_help="$ac_help |
8168de4c | 227 | --enable-zipstream use wxZipInputStream" |
698dcdb6 | 228 | ac_help="$ac_help |
8168de4c | 229 | --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException" |
698dcdb6 | 230 | ac_help="$ac_help |
8168de4c | 231 | --enable-snglinst use wxSingleInstanceChecker class" |
698dcdb6 | 232 | ac_help="$ac_help |
69d27ff7 | 233 | --enable-mimetype use wxMimeTypesManager" |
3e44f09d | 234 | ac_help="$ac_help |
b3e8d00a | 235 | --enable-sysoptions use wxSystemOptions" |
4cdb0ab0 VS |
236 | ac_help="$ac_help |
237 | --enable-url use wxURL class" | |
238 | ac_help="$ac_help | |
239 | --enable-protocol use wxProtocol class" | |
240 | ac_help="$ac_help | |
241 | --enable-protocol-http HTTP support in wxProtocol" | |
242 | ac_help="$ac_help | |
243 | --enable-protocol-ftp FTP support in wxProtocol" | |
244 | ac_help="$ac_help | |
245 | --enable-protocol-file FILE support in wxProtocol" | |
1e6feb95 | 246 | ac_help="$ac_help |
8168de4c | 247 | --enable-threads use threads" |
698dcdb6 | 248 | ac_help="$ac_help |
8168de4c | 249 | --enable-docview use document view architecture" |
698dcdb6 | 250 | ac_help="$ac_help |
3379ed37 | 251 | --enable-help use help subsystem" |
29fd3c0c VS |
252 | ac_help="$ac_help |
253 | --enable-mshtmlhelp use MS HTML Help (win32)" | |
3379ed37 VZ |
254 | ac_help="$ac_help |
255 | --enable-html use wxHTML sub-library" | |
256 | ac_help="$ac_help | |
257 | --enable-htmlhelp use wxHTML-based help" | |
698dcdb6 | 258 | ac_help="$ac_help |
8168de4c | 259 | --enable-constraints use layout-constraints system" |
698dcdb6 | 260 | ac_help="$ac_help |
8168de4c | 261 | --enable-printarch use printing architecture" |
698dcdb6 | 262 | ac_help="$ac_help |
8168de4c | 263 | --enable-mdi use multiple document interface architecture" |
698dcdb6 | 264 | ac_help="$ac_help |
8168de4c | 265 | --enable-loggui use standard GUI logger" |
1e6feb95 | 266 | ac_help="$ac_help |
8168de4c | 267 | --enable-logwin use wxLogWindow" |
69d27ff7 MB |
268 | ac_help="$ac_help |
269 | --enable-logdialog use wxLogDialog" | |
1e6feb95 | 270 | ac_help="$ac_help |
8168de4c | 271 | --enable-postscript use wxPostscriptDC device context (default for gtk+)" |
698dcdb6 | 272 | ac_help="$ac_help |
8168de4c | 273 | --enable-prologio use Prolog IO library" |
698dcdb6 | 274 | ac_help="$ac_help |
8168de4c | 275 | --enable-resources use wxWindows resources" |
698dcdb6 | 276 | ac_help="$ac_help |
8168de4c | 277 | --enable-xresources use X resources for save (default for gtk+)" |
698dcdb6 | 278 | ac_help="$ac_help |
8168de4c | 279 | --enable-clipboard use wxClipboard classes" |
698dcdb6 | 280 | ac_help="$ac_help |
8168de4c | 281 | --enable-dnd use Drag'n'Drop classes" |
698dcdb6 | 282 | ac_help="$ac_help |
8168de4c | 283 | --enable-metafile use win32 metafiles" |
698dcdb6 | 284 | ac_help="$ac_help |
24176f2c | 285 | --enable-treelayout use wxTreeLayout classes" |
698dcdb6 | 286 | ac_help="$ac_help |
8168de4c | 287 | --enable-controls use all usual controls" |
698dcdb6 | 288 | ac_help="$ac_help |
8168de4c | 289 | --enable-accel use accelerators" |
698dcdb6 | 290 | ac_help="$ac_help |
8168de4c | 291 | --enable-button use wxButton class" |
698dcdb6 | 292 | ac_help="$ac_help |
8168de4c | 293 | --enable-bmpbutton use wxBitmapButton class" |
698dcdb6 | 294 | ac_help="$ac_help |
8168de4c | 295 | --enable-calendar use wxCalendarCtrl class" |
1e6feb95 | 296 | ac_help="$ac_help |
8168de4c | 297 | --enable-caret use wxCaret class" |
1e6feb95 | 298 | ac_help="$ac_help |
8168de4c | 299 | --enable-checkbox use wxCheckBox class" |
698dcdb6 | 300 | ac_help="$ac_help |
8168de4c | 301 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class" |
698dcdb6 | 302 | ac_help="$ac_help |
8168de4c | 303 | --enable-choice use wxChoice class" |
698dcdb6 | 304 | ac_help="$ac_help |
8168de4c | 305 | --enable-combobox use wxComboBox classes" |
698dcdb6 | 306 | ac_help="$ac_help |
8168de4c | 307 | --enable-gauge use wxGauge class" |
698dcdb6 | 308 | ac_help="$ac_help |
8168de4c | 309 | --enable-grid use wxGrid class" |
698dcdb6 | 310 | ac_help="$ac_help |
8168de4c | 311 | --enable-newgrid use new wxGrid class" |
698dcdb6 | 312 | ac_help="$ac_help |
8168de4c | 313 | --enable-imaglist use wxImageList class" |
698dcdb6 | 314 | ac_help="$ac_help |
8168de4c | 315 | --enable-listbox use wxListBox class" |
698dcdb6 | 316 | ac_help="$ac_help |
8168de4c | 317 | --enable-listctrl use wxListCtrl class" |
698dcdb6 | 318 | ac_help="$ac_help |
8168de4c | 319 | --enable-notebook use wxNotebook class" |
24176f2c GD |
320 | ac_help="$ac_help |
321 | --enable-propsheet use wxPropertySheet class" | |
698dcdb6 | 322 | ac_help="$ac_help |
8168de4c | 323 | --enable-radiobox use wxRadioBox class" |
698dcdb6 | 324 | ac_help="$ac_help |
8168de4c | 325 | --enable-radiobtn use wxRadioButton class" |
698dcdb6 | 326 | ac_help="$ac_help |
8168de4c | 327 | --enable-sash use wxSashWindow class" |
698dcdb6 | 328 | ac_help="$ac_help |
8168de4c | 329 | --enable-scrollbar use wxScrollBar class and scrollable windows" |
698dcdb6 | 330 | ac_help="$ac_help |
8168de4c | 331 | --enable-slider use wxSlider class" |
698dcdb6 | 332 | ac_help="$ac_help |
8168de4c | 333 | --enable-spinbtn use wxSpinButton class" |
698dcdb6 | 334 | ac_help="$ac_help |
8168de4c | 335 | --enable-spinctrl use wxSpinCtrl class" |
698dcdb6 | 336 | ac_help="$ac_help |
8168de4c | 337 | --enable-splitter use wxSplitterWindow class" |
698dcdb6 | 338 | ac_help="$ac_help |
8168de4c | 339 | --enable-statbmp use wxStaticBitmap class" |
698dcdb6 | 340 | ac_help="$ac_help |
8168de4c | 341 | --enable-statbox use wxStaticBox class" |
698dcdb6 | 342 | ac_help="$ac_help |
8168de4c | 343 | --enable-statline use wxStaticLine class" |
698dcdb6 | 344 | ac_help="$ac_help |
8168de4c | 345 | --enable-stattext use wxStaticText class" |
1e6feb95 | 346 | ac_help="$ac_help |
8168de4c | 347 | --enable-statusbar use wxStatusBar class" |
698dcdb6 | 348 | ac_help="$ac_help |
8168de4c | 349 | --enable-tabdialog use wxTabControl class" |
698dcdb6 | 350 | ac_help="$ac_help |
8168de4c | 351 | --enable-textctrl use wxTextCtrl class" |
1e6feb95 | 352 | ac_help="$ac_help |
8168de4c | 353 | --enable-togglebtn use wxToggleButton class" |
698dcdb6 | 354 | ac_help="$ac_help |
8168de4c | 355 | --enable-toolbar use wxToolBar class" |
698dcdb6 | 356 | ac_help="$ac_help |
8168de4c | 357 | --enable-tbarnative use native wxToolBar class" |
698dcdb6 | 358 | ac_help="$ac_help |
8168de4c | 359 | --enable-tbarsmpl use wxToolBarSimple class" |
698dcdb6 | 360 | ac_help="$ac_help |
8168de4c | 361 | --enable-treectrl use wxTreeCtrl class" |
9926e4a4 VZ |
362 | ac_help="$ac_help |
363 | --enable-tipwindow use wxTipWindow class" | |
9f41d601 RR |
364 | ac_help="$ac_help |
365 | --enable-popupwin use wxPopUpWindow class" | |
698dcdb6 | 366 | ac_help="$ac_help |
b3e8d00a | 367 | --enable-commondlg use all common dialogs" |
698dcdb6 | 368 | ac_help="$ac_help |
8168de4c | 369 | --enable-choicedlg use wxChoiceDialog" |
1e6feb95 | 370 | ac_help="$ac_help |
8168de4c | 371 | --enable-coldlg use wxColourDialog" |
1e6feb95 | 372 | ac_help="$ac_help |
8168de4c | 373 | --enable-filedlg use wxFileDialog" |
8db37e06 VZ |
374 | ac_help="$ac_help |
375 | --enable-finddlg use wxFindReplaceDialog" | |
1e6feb95 | 376 | ac_help="$ac_help |
8168de4c | 377 | --enable-fontdlg use wxFontDialog" |
1e6feb95 | 378 | ac_help="$ac_help |
8168de4c | 379 | --enable-dirdlg use wxDirDialog" |
698dcdb6 | 380 | ac_help="$ac_help |
8168de4c | 381 | --enable-msgdlg use wxMessageDialog" |
1e6feb95 | 382 | ac_help="$ac_help |
8168de4c | 383 | --enable-numberdlg use wxNumberEntryDialog" |
cbca9943 VZ |
384 | ac_help="$ac_help |
385 | --enable-splash use wxSplashScreen" | |
1e6feb95 | 386 | ac_help="$ac_help |
8168de4c | 387 | --enable-textdlg use wxTextDialog" |
698dcdb6 | 388 | ac_help="$ac_help |
8168de4c | 389 | --enable-tipdlg use startup tips" |
698dcdb6 | 390 | ac_help="$ac_help |
8168de4c | 391 | --enable-progressdlg use wxProgressDialog" |
b1f5d087 VZ |
392 | ac_help="$ac_help |
393 | --enable-wizarddlg use wxWizard" | |
698dcdb6 | 394 | ac_help="$ac_help |
8168de4c | 395 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes" |
1e6feb95 | 396 | ac_help="$ac_help |
8168de4c | 397 | --enable-miniframe use wxMiniFrame class" |
698dcdb6 | 398 | ac_help="$ac_help |
8168de4c | 399 | --enable-tooltips use wxToolTip class" |
698dcdb6 | 400 | ac_help="$ac_help |
8168de4c | 401 | --enable-splines use spline drawing code" |
698dcdb6 | 402 | ac_help="$ac_help |
8168de4c | 403 | --enable-validators use wxValidator and derived classes" |
698dcdb6 | 404 | ac_help="$ac_help |
8168de4c | 405 | --enable-busyinfo use wxBusyInfo" |
698dcdb6 | 406 | ac_help="$ac_help |
b3e8d00a | 407 | --enable-joystick use wxJoystick (Linux only)" |
698dcdb6 | 408 | ac_help="$ac_help |
8168de4c | 409 | --enable-metafiles use wxMetaFile (Windows only)" |
24fd6d87 VZ |
410 | ac_help="$ac_help |
411 | --enable-dragimage use wxDragImage" | |
edae8572 VZ |
412 | ac_help="$ac_help |
413 | --enable-palette use wxPalette class" | |
1e6feb95 | 414 | ac_help="$ac_help |
8168de4c | 415 | --enable-image use wxImage class" |
698dcdb6 | 416 | ac_help="$ac_help |
8168de4c | 417 | --enable-gif use gif images (GIF file format)" |
698dcdb6 | 418 | ac_help="$ac_help |
8168de4c | 419 | --enable-pcx use pcx images (PCX file format)" |
4b6b4dfc RR |
420 | ac_help="$ac_help |
421 | --enable-iff use iff images (IFF file format)" | |
698dcdb6 | 422 | ac_help="$ac_help |
8168de4c | 423 | --enable-pnm use pnm images (PNM file format)" |
698dcdb6 | 424 | ac_help="$ac_help |
8168de4c | 425 | --enable-xpm use xpm images (XPM file format)" |
658974ae VS |
426 | ac_help="$ac_help |
427 | --enable-icocur use Windows ICO and CUR formats" | |
90dd450c VZ |
428 | ac_help="$ac_help |
429 | --disable-largefile omit support for large files" | |
698dcdb6 | 430 | ac_help="$ac_help |
9e691f46 | 431 | --disable-gtktest do not try to compile and run a test GTK+ program" |
3f345b47 VZ |
432 | ac_help="$ac_help |
433 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
434 | ac_help="$ac_help | |
435 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
436 | ac_help="$ac_help | |
437 | --disable-gtktest Do not try to compile and run a test GTK program" | |
438 | ac_help="$ac_help | |
439 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
440 | ac_help="$ac_help | |
441 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
442 | ac_help="$ac_help | |
443 | --disable-gtktest Do not try to compile and run a test GTK program" | |
698dcdb6 VZ |
444 | ac_help="$ac_help |
445 | --with-x use the X Window System" | |
b040e242 VS |
446 | ac_help="$ac_help |
447 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib" | |
10f2d63a VZ |
448 | |
449 | # Initialize some variables set by options. | |
450 | # The variables have the same names as the options, with | |
451 | # dashes changed to underlines. | |
698dcdb6 VZ |
452 | build=NONE |
453 | cache_file=./config.cache | |
10f2d63a | 454 | exec_prefix=NONE |
698dcdb6 | 455 | host=NONE |
10f2d63a | 456 | no_create= |
698dcdb6 | 457 | nonopt=NONE |
10f2d63a VZ |
458 | no_recursion= |
459 | prefix=NONE | |
460 | program_prefix=NONE | |
461 | program_suffix=NONE | |
462 | program_transform_name=s,x,x, | |
463 | silent= | |
464 | site= | |
465 | srcdir= | |
698dcdb6 | 466 | target=NONE |
10f2d63a VZ |
467 | verbose= |
468 | x_includes=NONE | |
469 | x_libraries=NONE | |
470 | bindir='${exec_prefix}/bin' | |
471 | sbindir='${exec_prefix}/sbin' | |
472 | libexecdir='${exec_prefix}/libexec' | |
473 | datadir='${prefix}/share' | |
474 | sysconfdir='${prefix}/etc' | |
475 | sharedstatedir='${prefix}/com' | |
476 | localstatedir='${prefix}/var' | |
477 | libdir='${exec_prefix}/lib' | |
478 | includedir='${prefix}/include' | |
479 | oldincludedir='/usr/include' | |
480 | infodir='${prefix}/info' | |
481 | mandir='${prefix}/man' | |
482 | ||
698dcdb6 VZ |
483 | # Initialize some other variables. |
484 | subdirs= | |
485 | MFLAGS= MAKEFLAGS= | |
486 | SHELL=${CONFIG_SHELL-/bin/sh} | |
487 | # Maximum number of lines to put in a shell here document. | |
488 | ac_max_here_lines=12 | |
10f2d63a VZ |
489 | |
490 | ac_prev= | |
491 | for ac_option | |
492 | do | |
698dcdb6 | 493 | |
10f2d63a VZ |
494 | # If the previous option needs an argument, assign it. |
495 | if test -n "$ac_prev"; then | |
496 | eval "$ac_prev=\$ac_option" | |
497 | ac_prev= | |
498 | continue | |
499 | fi | |
500 | ||
698dcdb6 VZ |
501 | case "$ac_option" in |
502 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
503 | *) ac_optarg= ;; | |
504 | esac | |
10f2d63a VZ |
505 | |
506 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
507 | ||
698dcdb6 | 508 | case "$ac_option" in |
10f2d63a VZ |
509 | |
510 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
511 | ac_prev=bindir ;; | |
512 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
698dcdb6 | 513 | bindir="$ac_optarg" ;; |
10f2d63a VZ |
514 | |
515 | -build | --build | --buil | --bui | --bu) | |
698dcdb6 | 516 | ac_prev=build ;; |
10f2d63a | 517 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
698dcdb6 | 518 | build="$ac_optarg" ;; |
10f2d63a VZ |
519 | |
520 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
521 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
522 | ac_prev=cache_file ;; | |
523 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
524 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
698dcdb6 | 525 | cache_file="$ac_optarg" ;; |
10f2d63a VZ |
526 | |
527 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
528 | ac_prev=datadir ;; | |
529 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
530 | | --da=*) | |
698dcdb6 | 531 | datadir="$ac_optarg" ;; |
10f2d63a VZ |
532 | |
533 | -disable-* | --disable-*) | |
698dcdb6 | 534 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
10f2d63a | 535 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
536 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
537 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
538 | fi | |
539 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
540 | eval "enable_${ac_feature}=no" ;; | |
10f2d63a VZ |
541 | |
542 | -enable-* | --enable-*) | |
698dcdb6 | 543 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
10f2d63a | 544 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
545 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
546 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
547 | fi | |
548 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
549 | case "$ac_option" in | |
550 | *=*) ;; | |
10f2d63a VZ |
551 | *) ac_optarg=yes ;; |
552 | esac | |
698dcdb6 | 553 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
10f2d63a VZ |
554 | |
555 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
556 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
557 | | --exec | --exe | --ex) | |
558 | ac_prev=exec_prefix ;; | |
559 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
560 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
561 | | --exec=* | --exe=* | --ex=*) | |
698dcdb6 | 562 | exec_prefix="$ac_optarg" ;; |
10f2d63a VZ |
563 | |
564 | -gas | --gas | --ga | --g) | |
565 | # Obsolete; use --with-gas. | |
566 | with_gas=yes ;; | |
567 | ||
698dcdb6 VZ |
568 | -help | --help | --hel | --he) |
569 | # Omit some internal or obsolete options to make the list less imposing. | |
570 | # This message is too long to be a string in the A/UX 3.1 sh. | |
571 | cat << EOF | |
572 | Usage: configure [options] [host] | |
573 | Options: [defaults in brackets after descriptions] | |
574 | Configuration: | |
575 | --cache-file=FILE cache test results in FILE | |
576 | --help print this message | |
577 | --no-create do not create output files | |
578 | --quiet, --silent do not print \`checking...' messages | |
579 | --version print the version of autoconf that created configure | |
580 | Directory and file names: | |
581 | --prefix=PREFIX install architecture-independent files in PREFIX | |
582 | [$ac_default_prefix] | |
583 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
584 | [same as prefix] | |
585 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
586 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
587 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
588 | --datadir=DIR read-only architecture-independent data in DIR | |
589 | [PREFIX/share] | |
590 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
591 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
592 | [PREFIX/com] | |
593 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
594 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
595 | --includedir=DIR C header files in DIR [PREFIX/include] | |
596 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
597 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
598 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
599 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
600 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
601 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
602 | --program-transform-name=PROGRAM | |
603 | run sed PROGRAM on installed program names | |
604 | EOF | |
605 | cat << EOF | |
606 | Host type: | |
607 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
608 | --host=HOST configure for HOST [guessed] | |
609 | --target=TARGET configure for TARGET [TARGET=HOST] | |
610 | Features and packages: | |
611 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
612 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
613 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
614 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
615 | --x-includes=DIR X include files are in DIR | |
616 | --x-libraries=DIR X library files are in DIR | |
617 | EOF | |
618 | if test -n "$ac_help"; then | |
619 | echo "--enable and --with options recognized:$ac_help" | |
620 | fi | |
621 | exit 0 ;; | |
10f2d63a VZ |
622 | |
623 | -host | --host | --hos | --ho) | |
698dcdb6 | 624 | ac_prev=host ;; |
10f2d63a | 625 | -host=* | --host=* | --hos=* | --ho=*) |
698dcdb6 | 626 | host="$ac_optarg" ;; |
10f2d63a VZ |
627 | |
628 | -includedir | --includedir | --includedi | --included | --include \ | |
629 | | --includ | --inclu | --incl | --inc) | |
630 | ac_prev=includedir ;; | |
631 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
632 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
698dcdb6 | 633 | includedir="$ac_optarg" ;; |
10f2d63a VZ |
634 | |
635 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
636 | ac_prev=infodir ;; | |
637 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
698dcdb6 | 638 | infodir="$ac_optarg" ;; |
10f2d63a VZ |
639 | |
640 | -libdir | --libdir | --libdi | --libd) | |
641 | ac_prev=libdir ;; | |
642 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
698dcdb6 | 643 | libdir="$ac_optarg" ;; |
10f2d63a VZ |
644 | |
645 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
646 | | --libexe | --libex | --libe) | |
647 | ac_prev=libexecdir ;; | |
648 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
649 | | --libexe=* | --libex=* | --libe=*) | |
698dcdb6 | 650 | libexecdir="$ac_optarg" ;; |
10f2d63a VZ |
651 | |
652 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
653 | | --localstate | --localstat | --localsta | --localst \ | |
654 | | --locals | --local | --loca | --loc | --lo) | |
655 | ac_prev=localstatedir ;; | |
656 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
657 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
658 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
698dcdb6 | 659 | localstatedir="$ac_optarg" ;; |
10f2d63a VZ |
660 | |
661 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
662 | ac_prev=mandir ;; | |
663 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
698dcdb6 | 664 | mandir="$ac_optarg" ;; |
10f2d63a VZ |
665 | |
666 | -nfp | --nfp | --nf) | |
667 | # Obsolete; use --without-fp. | |
668 | with_fp=no ;; | |
669 | ||
670 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
671 | | --no-cr | --no-c) | |
672 | no_create=yes ;; | |
673 | ||
674 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
675 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
676 | no_recursion=yes ;; | |
677 | ||
678 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
679 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
680 | | --oldin | --oldi | --old | --ol | --o) | |
681 | ac_prev=oldincludedir ;; | |
682 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
683 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
684 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
698dcdb6 | 685 | oldincludedir="$ac_optarg" ;; |
10f2d63a VZ |
686 | |
687 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
688 | ac_prev=prefix ;; | |
689 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
698dcdb6 | 690 | prefix="$ac_optarg" ;; |
10f2d63a VZ |
691 | |
692 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
693 | | --program-pre | --program-pr | --program-p) | |
694 | ac_prev=program_prefix ;; | |
695 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
696 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
698dcdb6 | 697 | program_prefix="$ac_optarg" ;; |
10f2d63a VZ |
698 | |
699 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
700 | | --program-suf | --program-su | --program-s) | |
701 | ac_prev=program_suffix ;; | |
702 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
703 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
698dcdb6 | 704 | program_suffix="$ac_optarg" ;; |
10f2d63a VZ |
705 | |
706 | -program-transform-name | --program-transform-name \ | |
707 | | --program-transform-nam | --program-transform-na \ | |
708 | | --program-transform-n | --program-transform- \ | |
709 | | --program-transform | --program-transfor \ | |
710 | | --program-transfo | --program-transf \ | |
711 | | --program-trans | --program-tran \ | |
712 | | --progr-tra | --program-tr | --program-t) | |
713 | ac_prev=program_transform_name ;; | |
714 | -program-transform-name=* | --program-transform-name=* \ | |
715 | | --program-transform-nam=* | --program-transform-na=* \ | |
716 | | --program-transform-n=* | --program-transform-=* \ | |
717 | | --program-transform=* | --program-transfor=* \ | |
718 | | --program-transfo=* | --program-transf=* \ | |
719 | | --program-trans=* | --program-tran=* \ | |
720 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
698dcdb6 | 721 | program_transform_name="$ac_optarg" ;; |
10f2d63a VZ |
722 | |
723 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
724 | | -silent | --silent | --silen | --sile | --sil) | |
725 | silent=yes ;; | |
726 | ||
727 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
728 | ac_prev=sbindir ;; | |
729 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
730 | | --sbi=* | --sb=*) | |
698dcdb6 | 731 | sbindir="$ac_optarg" ;; |
10f2d63a VZ |
732 | |
733 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
734 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
735 | | --sharedst | --shareds | --shared | --share | --shar \ | |
736 | | --sha | --sh) | |
737 | ac_prev=sharedstatedir ;; | |
738 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
739 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
740 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
741 | | --sha=* | --sh=*) | |
698dcdb6 | 742 | sharedstatedir="$ac_optarg" ;; |
10f2d63a VZ |
743 | |
744 | -site | --site | --sit) | |
745 | ac_prev=site ;; | |
746 | -site=* | --site=* | --sit=*) | |
698dcdb6 | 747 | site="$ac_optarg" ;; |
10f2d63a VZ |
748 | |
749 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
750 | ac_prev=srcdir ;; | |
751 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
698dcdb6 | 752 | srcdir="$ac_optarg" ;; |
10f2d63a VZ |
753 | |
754 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
755 | | --syscon | --sysco | --sysc | --sys | --sy) | |
756 | ac_prev=sysconfdir ;; | |
757 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
758 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
698dcdb6 | 759 | sysconfdir="$ac_optarg" ;; |
10f2d63a VZ |
760 | |
761 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
698dcdb6 | 762 | ac_prev=target ;; |
10f2d63a | 763 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
698dcdb6 | 764 | target="$ac_optarg" ;; |
10f2d63a VZ |
765 | |
766 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
767 | verbose=yes ;; | |
768 | ||
698dcdb6 VZ |
769 | -version | --version | --versio | --versi | --vers) |
770 | echo "configure generated by autoconf version 2.13" | |
771 | exit 0 ;; | |
10f2d63a VZ |
772 | |
773 | -with-* | --with-*) | |
698dcdb6 | 774 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
10f2d63a | 775 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
776 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
777 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
778 | fi | |
10f2d63a | 779 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
698dcdb6 VZ |
780 | case "$ac_option" in |
781 | *=*) ;; | |
10f2d63a VZ |
782 | *) ac_optarg=yes ;; |
783 | esac | |
698dcdb6 | 784 | eval "with_${ac_package}='$ac_optarg'" ;; |
10f2d63a VZ |
785 | |
786 | -without-* | --without-*) | |
698dcdb6 | 787 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
10f2d63a | 788 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
789 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
790 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
791 | fi | |
792 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
793 | eval "with_${ac_package}=no" ;; | |
10f2d63a VZ |
794 | |
795 | --x) | |
796 | # Obsolete; use --with-x. | |
797 | with_x=yes ;; | |
798 | ||
799 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
800 | | --x-incl | --x-inc | --x-in | --x-i) | |
801 | ac_prev=x_includes ;; | |
802 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
803 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
698dcdb6 | 804 | x_includes="$ac_optarg" ;; |
10f2d63a VZ |
805 | |
806 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
807 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
808 | ac_prev=x_libraries ;; | |
809 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
810 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
698dcdb6 | 811 | x_libraries="$ac_optarg" ;; |
10f2d63a | 812 | |
698dcdb6 | 813 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
10f2d63a VZ |
814 | ;; |
815 | ||
816 | *) | |
698dcdb6 VZ |
817 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
818 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
819 | fi | |
820 | if test "x$nonopt" != xNONE; then | |
821 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
822 | fi | |
823 | nonopt="$ac_option" | |
10f2d63a VZ |
824 | ;; |
825 | ||
826 | esac | |
827 | done | |
828 | ||
829 | if test -n "$ac_prev"; then | |
698dcdb6 VZ |
830 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
831 | fi | |
832 | ||
833 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
834 | ||
835 | # File descriptor usage: | |
836 | # 0 standard input | |
837 | # 1 file creation | |
838 | # 2 errors and warnings | |
839 | # 3 some systems may open it to /dev/tty | |
840 | # 4 used on the Kubota Titan | |
841 | # 6 checking for... messages and results | |
842 | # 5 compiler messages saved in config.log | |
843 | if test "$silent" = yes; then | |
844 | exec 6>/dev/null | |
845 | else | |
846 | exec 6>&1 | |
10f2d63a | 847 | fi |
698dcdb6 VZ |
848 | exec 5>./config.log |
849 | ||
850 | echo "\ | |
851 | This file contains any messages produced by compilers while | |
852 | running configure, to aid debugging if configure makes a mistake. | |
853 | " 1>&5 | |
10f2d63a | 854 | |
698dcdb6 VZ |
855 | # Strip out --no-create and --no-recursion so they do not pile up. |
856 | # Also quote any args containing shell metacharacters. | |
857 | ac_configure_args= | |
858 | for ac_arg | |
10f2d63a | 859 | do |
698dcdb6 VZ |
860 | case "$ac_arg" in |
861 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
862 | | --no-cr | --no-c) ;; | |
863 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
864 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
865 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
866 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
867 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
10f2d63a VZ |
868 | esac |
869 | done | |
870 | ||
698dcdb6 VZ |
871 | # NLS nuisances. |
872 | # Only set these to C if already set. These must not be set unconditionally | |
873 | # because not all systems understand e.g. LANG=C (notably SCO). | |
874 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
875 | # Non-C LC_CTYPE values break the ctype check. | |
876 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
877 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
878 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
879 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
10f2d63a | 880 | |
698dcdb6 VZ |
881 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
882 | rm -rf conftest* confdefs.h | |
883 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
884 | echo > confdefs.h | |
10f2d63a | 885 | |
698dcdb6 VZ |
886 | # A filename unique to this package, relative to the directory that |
887 | # configure is in, which we can look for to find out if srcdir is correct. | |
888 | ac_unique_file=wx-config.in | |
10f2d63a VZ |
889 | |
890 | # Find the source files, if location was not specified. | |
891 | if test -z "$srcdir"; then | |
892 | ac_srcdir_defaulted=yes | |
893 | # Try the directory containing this script, then its parent. | |
894 | ac_prog=$0 | |
698dcdb6 | 895 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
10f2d63a VZ |
896 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
897 | srcdir=$ac_confdir | |
898 | if test ! -r $srcdir/$ac_unique_file; then | |
899 | srcdir=.. | |
900 | fi | |
901 | else | |
902 | ac_srcdir_defaulted=no | |
903 | fi | |
904 | if test ! -r $srcdir/$ac_unique_file; then | |
905 | if test "$ac_srcdir_defaulted" = yes; then | |
698dcdb6 | 906 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
10f2d63a | 907 | else |
698dcdb6 | 908 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
10f2d63a VZ |
909 | fi |
910 | fi | |
698dcdb6 | 911 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
10f2d63a VZ |
912 | |
913 | # Prefer explicitly selected file to automatically selected ones. | |
914 | if test -z "$CONFIG_SITE"; then | |
915 | if test "x$prefix" != xNONE; then | |
916 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
917 | else | |
918 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
919 | fi | |
920 | fi | |
921 | for ac_site_file in $CONFIG_SITE; do | |
922 | if test -r "$ac_site_file"; then | |
698dcdb6 | 923 | echo "loading site script $ac_site_file" |
10f2d63a VZ |
924 | . "$ac_site_file" |
925 | fi | |
926 | done | |
927 | ||
928 | if test -r "$cache_file"; then | |
698dcdb6 VZ |
929 | echo "loading cache $cache_file" |
930 | . $cache_file | |
10f2d63a | 931 | else |
698dcdb6 VZ |
932 | echo "creating cache $cache_file" |
933 | > $cache_file | |
10f2d63a VZ |
934 | fi |
935 | ||
936 | ac_ext=c | |
698dcdb6 | 937 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 938 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
939 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
940 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
941 | cross_compiling=$ac_cv_prog_cc_cross | |
942 | ||
943 | ac_exeext= | |
944 | ac_objext=o | |
945 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
946 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
947 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
948 | ac_n= ac_c=' | |
949 | ' ac_t=' ' | |
950 | else | |
951 | ac_n=-n ac_c= ac_t= | |
952 | fi | |
10f2d63a | 953 | else |
698dcdb6 | 954 | ac_n= ac_c='\c' ac_t= |
10f2d63a | 955 | fi |
698dcdb6 VZ |
956 | |
957 | ||
10f2d63a | 958 | |
7c66a493 VZ |
959 | ac_aux_dir= |
960 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
961 | if test -f $ac_dir/install-sh; then | |
962 | ac_aux_dir=$ac_dir | |
963 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
964 | break | |
965 | elif test -f $ac_dir/install.sh; then | |
966 | ac_aux_dir=$ac_dir | |
967 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
968 | break | |
969 | fi | |
970 | done | |
971 | if test -z "$ac_aux_dir"; then | |
698dcdb6 | 972 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
7c66a493 | 973 | fi |
698dcdb6 VZ |
974 | ac_config_guess=$ac_aux_dir/config.guess |
975 | ac_config_sub=$ac_aux_dir/config.sub | |
976 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
703e0a69 | 977 | |
698dcdb6 VZ |
978 | |
979 | # Do some error checking and defaulting for the host and target type. | |
980 | # The inputs are: | |
981 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
982 | # | |
983 | # The rules are: | |
984 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
985 | # same time. | |
986 | # 2. Host defaults to nonopt. | |
987 | # 3. If nonopt is not specified, then host defaults to the current host, | |
988 | # as determined by config.guess. | |
989 | # 4. Target and build default to nonopt. | |
990 | # 5. If nonopt is not specified, then target and build default to host. | |
7c66a493 VZ |
991 | |
992 | # The aliases save the names the user supplied, while $host etc. | |
993 | # will get canonicalized. | |
698dcdb6 VZ |
994 | case $host---$target---$nonopt in |
995 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
996 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
997 | esac | |
998 | ||
999 | ||
1000 | # Make sure we can run config.sub. | |
1001 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
1002 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
1003 | fi | |
1004 | ||
1005 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
986ecc86 | 1006 | echo "configure:1007: checking host system type" >&5 |
698dcdb6 VZ |
1007 | |
1008 | host_alias=$host | |
1009 | case "$host_alias" in | |
1010 | NONE) | |
1011 | case $nonopt in | |
1012 | NONE) | |
1013 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
1014 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
1015 | fi ;; | |
1016 | *) host_alias=$nonopt ;; | |
1017 | esac ;; | |
1018 | esac | |
1019 | ||
1020 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
1021 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1022 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1023 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1024 | echo "$ac_t""$host" 1>&6 | |
1025 | ||
1026 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
986ecc86 | 1027 | echo "configure:1028: checking target system type" >&5 |
698dcdb6 VZ |
1028 | |
1029 | target_alias=$target | |
1030 | case "$target_alias" in | |
1031 | NONE) | |
1032 | case $nonopt in | |
1033 | NONE) target_alias=$host_alias ;; | |
1034 | *) target_alias=$nonopt ;; | |
1035 | esac ;; | |
1036 | esac | |
1037 | ||
1038 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
1039 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1040 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1041 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1042 | echo "$ac_t""$target" 1>&6 | |
1043 | ||
1044 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
986ecc86 | 1045 | echo "configure:1046: checking build system type" >&5 |
698dcdb6 VZ |
1046 | |
1047 | build_alias=$build | |
1048 | case "$build_alias" in | |
1049 | NONE) | |
1050 | case $nonopt in | |
1051 | NONE) build_alias=$host_alias ;; | |
1052 | *) build_alias=$nonopt ;; | |
1053 | esac ;; | |
1054 | esac | |
1055 | ||
1056 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
1057 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1058 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1059 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1060 | echo "$ac_t""$build" 1>&6 | |
1061 | ||
1062 | test "$host_alias" != "$target_alias" && | |
7c66a493 VZ |
1063 | test "$program_prefix$program_suffix$program_transform_name" = \ |
1064 | NONENONEs,x,x, && | |
1065 | program_prefix=${target_alias}- | |
1066 | ||
698dcdb6 VZ |
1067 | |
1068 | ||
10f2d63a | 1069 | WX_MAJOR_VERSION_NUMBER=2 |
37d403aa | 1070 | WX_MINOR_VERSION_NUMBER=3 |
a0d927d1 | 1071 | WX_RELEASE_NUMBER=3 |
10f2d63a | 1072 | |
10f2d63a | 1073 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER |
10f2d63a | 1074 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER |
6426998c | 1075 | |
978f1259 RL |
1076 | WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER |
1077 | ||
a0d927d1 | 1078 | WX_CURRENT=2 |
6426998c RL |
1079 | WX_REVISION=0 |
1080 | WX_AGE=0 | |
1081 | ||
698dcdb6 VZ |
1082 | |
1083 | ||
10f2d63a VZ |
1084 | USE_UNIX=1 |
1085 | USE_WIN32=0 | |
f9bc1684 | 1086 | USE_DOS=0 |
b12915c1 | 1087 | USE_BEOS=0 |
1216f52d | 1088 | USE_MAC=0 |
b12915c1 | 1089 | |
10f2d63a VZ |
1090 | USE_LINUX= |
1091 | USE_SGI= | |
1092 | USE_HPUX= | |
1093 | USE_SYSV= | |
1094 | USE_SVR4= | |
1095 | USE_AIX= | |
1096 | USE_SUN= | |
1097 | USE_SOLARIS= | |
1098 | USE_SUNOS= | |
1099 | USE_ALPHA= | |
1100 | USE_OSF= | |
1101 | USE_BSD= | |
f11bdd03 | 1102 | USE_DARWIN= |
10f2d63a | 1103 | USE_FREEBSD= |
95c8801c | 1104 | USE_OPENBSD= |
f6bcfd97 | 1105 | USE_NETBSD= |
10f2d63a VZ |
1106 | USE_VMS= |
1107 | USE_ULTRIX= | |
10f2d63a VZ |
1108 | USE_DATA_GENERAL= |
1109 | ||
ab9b9eab VZ |
1110 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
1111 | ||
f79bd02d | 1112 | ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE X11" |
10f2d63a VZ |
1113 | |
1114 | DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1115 | DEFAULT_wxUSE_MAC=0 |
1116 | DEFAULT_wxUSE_MGL=0 | |
1725144d | 1117 | DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1118 | DEFAULT_wxUSE_MOTIF=0 |
1119 | DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1120 | DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1121 | DEFAULT_wxUSE_WINE=0 |
f79bd02d | 1122 | DEFAULT_wxUSE_X11=0 |
10f2d63a VZ |
1123 | |
1124 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1125 | DEFAULT_DEFAULT_wxUSE_MAC=0 |
1126 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1725144d | 1127 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1128 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 |
1129 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1130 | DEFAULT_DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1131 | DEFAULT_DEFAULT_wxUSE_WINE=0 |
f79bd02d | 1132 | DEFAULT_DEFAULT_wxUSE_X11=0 |
10f2d63a | 1133 | |
d6a55c4b | 1134 | PROGRAM_EXT= |
3a922bb4 | 1135 | SO_SUFFIX=so |
d6a55c4b | 1136 | |
10f2d63a VZ |
1137 | case "${host}" in |
1138 | *-hp-hpux* ) | |
1139 | USE_HPUX=1 | |
1140 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1141 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
3a922bb4 | 1142 | SO_SUFFIX=sl |
698dcdb6 | 1143 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1144 | #define __HPUX__ 1 |
1145 | EOF | |
1146 | ||
1147 | ;; | |
1148 | *-*-linux* ) | |
1149 | USE_LINUX=1 | |
698dcdb6 | 1150 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1151 | #define __LINUX__ 1 |
1152 | EOF | |
1153 | ||
1154 | TMP=`uname -m` | |
1155 | if test "x$TMP" = "xalpha"; then | |
1156 | USE_ALPHA=1 | |
698dcdb6 | 1157 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1158 | #define __ALPHA__ 1 |
1159 | EOF | |
1160 | ||
1161 | fi | |
1162 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1163 | ;; | |
1164 | *-*-irix5* | *-*-irix6* ) | |
1165 | USE_SGI=1 | |
1166 | USE_SVR4=1 | |
698dcdb6 | 1167 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1168 | #define __SGI__ 1 |
1169 | EOF | |
1170 | ||
698dcdb6 | 1171 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1172 | #define __SVR4__ 1 |
1173 | EOF | |
1174 | ||
1175 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1176 | ;; | |
1177 | *-*-solaris2* ) | |
1178 | USE_SUN=1 | |
1179 | USE_SOLARIS=1 | |
1180 | USE_SVR4=1 | |
698dcdb6 | 1181 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1182 | #define __SUN__ 1 |
1183 | EOF | |
1184 | ||
698dcdb6 | 1185 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1186 | #define __SOLARIS__ 1 |
1187 | EOF | |
1188 | ||
698dcdb6 | 1189 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1190 | #define __SVR4__ 1 |
1191 | EOF | |
1192 | ||
1193 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1194 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1195 | ;; |
1196 | *-*-sunos4* ) | |
1197 | USE_SUN=1 | |
1198 | USE_SUNOS=1 | |
1199 | USE_BSD=1 | |
698dcdb6 | 1200 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1201 | #define __SUN__ 1 |
1202 | EOF | |
1203 | ||
698dcdb6 | 1204 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1205 | #define __SUNOS__ 1 |
1206 | EOF | |
1207 | ||
698dcdb6 | 1208 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1209 | #define __BSD__ 1 |
1210 | EOF | |
1211 | ||
1212 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1213 | ;; | |
f6bcfd97 | 1214 | *-*-freebsd*) |
10f2d63a VZ |
1215 | USE_BSD=1 |
1216 | USE_FREEBSD=1 | |
698dcdb6 | 1217 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1218 | #define __FREEBSD__ 1 |
1219 | EOF | |
1220 | ||
698dcdb6 | 1221 | cat >> confdefs.h <<\EOF |
10f2d63a | 1222 | #define __BSD__ 1 |
95c8801c VS |
1223 | EOF |
1224 | ||
1225 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1226 | ;; | |
1227 | *-*-openbsd*) | |
1228 | USE_BSD=1 | |
1229 | USE_OPENBSD=1 | |
698dcdb6 | 1230 | cat >> confdefs.h <<\EOF |
95c8801c VS |
1231 | #define __FREEBSD__ 1 |
1232 | EOF | |
1233 | ||
698dcdb6 | 1234 | cat >> confdefs.h <<\EOF |
95c8801c | 1235 | #define __OPENBSD__ 1 |
f6bcfd97 BP |
1236 | EOF |
1237 | ||
1238 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1239 | ;; | |
1240 | *-*-netbsd*) | |
1241 | USE_BSD=1 | |
1242 | USE_NETBSD=1 | |
698dcdb6 | 1243 | cat >> confdefs.h <<\EOF |
f6bcfd97 BP |
1244 | #define __FREEBSD__ 1 |
1245 | EOF | |
1246 | ||
698dcdb6 | 1247 | cat >> confdefs.h <<\EOF |
f6bcfd97 | 1248 | #define __NETBSD__ 1 |
10f2d63a VZ |
1249 | EOF |
1250 | ||
1251 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1252 | ;; | |
1253 | *-*-osf* ) | |
1254 | USE_ALPHA=1 | |
1255 | USE_OSF=1 | |
698dcdb6 | 1256 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1257 | #define __ALPHA__ 1 |
1258 | EOF | |
1259 | ||
698dcdb6 | 1260 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1261 | #define __OSF__ 1 |
1262 | EOF | |
1263 | ||
1264 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1265 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1266 | ;; |
1267 | *-*-dgux5* ) | |
1268 | USE_ALPHA=1 | |
1269 | USE_SVR4=1 | |
698dcdb6 | 1270 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1271 | #define __ALPHA__ 1 |
1272 | EOF | |
1273 | ||
698dcdb6 | 1274 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1275 | #define __SVR4__ 1 |
1276 | EOF | |
1277 | ||
1278 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1279 | ;; | |
1280 | *-*-sysv5* ) | |
1281 | USE_SYSV=1 | |
1282 | USE_SVR4=1 | |
698dcdb6 | 1283 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1284 | #define __SYSV__ 1 |
1285 | EOF | |
1286 | ||
698dcdb6 | 1287 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1288 | #define __SVR4__ 1 |
1289 | EOF | |
1290 | ||
1291 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1292 | ;; | |
1293 | *-*-aix* ) | |
1294 | USE_AIX=1 | |
1295 | USE_SYSV=1 | |
1296 | USE_SVR4=1 | |
321d2b14 | 1297 | SO_SUFFIX=a |
698dcdb6 | 1298 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1299 | #define __AIX__ 1 |
1300 | EOF | |
1301 | ||
698dcdb6 | 1302 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1303 | #define __SYSV__ 1 |
1304 | EOF | |
1305 | ||
698dcdb6 | 1306 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1307 | #define __SVR4__ 1 |
1308 | EOF | |
1309 | ||
1310 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1311 | ;; | |
1312 | ||
1c8183e2 | 1313 | *-*-cygwin* | *-*-mingw32* ) |
17234b26 | 1314 | SO_SUFFIX=dll |
cf27ef00 | 1315 | PROGRAM_EXT=".exe" |
7b7a7637 | 1316 | RESCOMP=windres |
10f2d63a VZ |
1317 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1318 | ;; | |
1319 | ||
f9bc1684 VS |
1320 | *-pc-msdosdjgpp ) |
1321 | USE_UNIX=0 | |
1322 | USE_DOS=1 | |
1323 | cat >> confdefs.h <<\EOF | |
1324 | #define __DOS__ 1 | |
1325 | EOF | |
1326 | ||
1327 | PROGRAM_EXT=".exe" | |
1328 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
f9bc1684 VS |
1329 | ;; |
1330 | ||
6fa882bd | 1331 | *-pc-os2_emx | *-pc-os2-emx ) |
698dcdb6 | 1332 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1333 | #define __EMX__ 1 |
1334 | EOF | |
1335 | ||
cf27ef00 | 1336 | PROGRAM_EXT=".exe" |
e07802fc | 1337 | DEFAULT_DEFAULT_wxUSE_PM=1 |
d558c907 | 1338 | LIBS="$LIBS -lstdcpp" |
10f2d63a VZ |
1339 | ;; |
1340 | ||
d08b457b GD |
1341 | powerpc-*-darwin* ) |
1342 | USE_BSD=1 | |
f11bdd03 | 1343 | USE_DARWIN=1 |
3a922bb4 | 1344 | SO_SUFFIX=dylib |
698dcdb6 | 1345 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1346 | #define __BSD__ 1 |
b4085ce6 GD |
1347 | EOF |
1348 | ||
698dcdb6 | 1349 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1350 | #define __DARWIN__ 1 |
d08b457b GD |
1351 | EOF |
1352 | ||
1353 | cat >> confdefs.h <<\EOF | |
1354 | #define __POWERPC__ 1 | |
b4085ce6 GD |
1355 | EOF |
1356 | ||
1357 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1358 | ;; | |
1359 | ||
b12915c1 VZ |
1360 | *-*-beos* ) |
1361 | USE_BEOS=1 | |
698dcdb6 | 1362 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
1363 | #define __BEOS__ 1 |
1364 | EOF | |
1365 | ||
1366 | ;; | |
1367 | ||
10f2d63a | 1368 | *) |
698dcdb6 | 1369 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } |
10f2d63a VZ |
1370 | esac |
1371 | ||
1e487827 | 1372 | |
1e487827 | 1373 | |
6232543b | 1374 | |
10f2d63a VZ |
1375 | wx_arg_cache_file="configarg.cache" |
1376 | echo "loading argument cache $wx_arg_cache_file" | |
1377 | rm -f ${wx_arg_cache_file}.tmp | |
1378 | touch ${wx_arg_cache_file}.tmp | |
1379 | touch ${wx_arg_cache_file} | |
698dcdb6 | 1380 | |
10f2d63a VZ |
1381 | |
1382 | DEBUG_CONFIGURE=0 | |
1383 | if test $DEBUG_CONFIGURE = 1; then | |
1e6feb95 VZ |
1384 | DEFAULT_wxUSE_UNIVERSAL=no |
1385 | ||
d8356fa3 VZ |
1386 | DEFAULT_wxUSE_NANOX=no |
1387 | ||
10f2d63a VZ |
1388 | DEFAULT_wxUSE_THREADS=yes |
1389 | ||
1390 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1391 | DEFAULT_wxUSE_SONAME=no |
1e6feb95 | 1392 | DEFAULT_wxUSE_OPTIMISE=no |
10f2d63a VZ |
1393 | DEFAULT_wxUSE_PROFILE=no |
1394 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
1395 | DEFAULT_wxUSE_NO_RTTI=no |
1396 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
1397 | DEFAULT_wxUSE_PERMISSIVE=no |
1398 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1399 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1400 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1401 | DEFAULT_wxUSE_MEM_TRACING=no | |
1402 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1403 | DEFAULT_wxUSE_DMALLOC=no | |
a7ae7112 | 1404 | DEFAULT_wxUSE_PRECOMP=no |
10f2d63a VZ |
1405 | DEFAULT_wxUSE_APPLE_IEEE=no |
1406 | ||
1407 | DEFAULT_wxUSE_LOG=yes | |
1e6feb95 VZ |
1408 | DEFAULT_wxUSE_LOGWINDOW=no |
1409 | DEFAULT_wxUSE_LOGGUI=no | |
69d27ff7 | 1410 | DEFAULT_wxUSE_LOGDIALOG=no |
10f2d63a VZ |
1411 | |
1412 | DEFAULT_wxUSE_GUI=yes | |
1e6feb95 | 1413 | DEFAULT_wxUSE_CONTROLS=no |
10f2d63a | 1414 | |
3e44f09d | 1415 | DEFAULT_wxUSE_REGEX=no |
10f2d63a VZ |
1416 | DEFAULT_wxUSE_ZLIB=no |
1417 | DEFAULT_wxUSE_LIBPNG=no | |
1418 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 1419 | DEFAULT_wxUSE_LIBTIFF=no |
10f2d63a | 1420 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 1421 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1422 | |
eb4efbdc | 1423 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
4f3c5f06 | 1424 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
10f2d63a | 1425 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1426 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
1427 | DEFAULT_wxUSE_DATETIME=no | |
1428 | DEFAULT_wxUSE_TIMEDATE=no | |
1429 | DEFAULT_wxUSE_TIMER=no | |
1430 | DEFAULT_wxUSE_STOPWATCH=no | |
10f2d63a | 1431 | DEFAULT_wxUSE_FILE=no |
1e6feb95 | 1432 | DEFAULT_wxUSE_FFILE=no |
a3a584a7 | 1433 | DEFAULT_wxUSE_TEXTBUFFER=no |
10f2d63a | 1434 | DEFAULT_wxUSE_TEXTFILE=no |
10f2d63a VZ |
1435 | DEFAULT_wxUSE_WAVE=no |
1436 | DEFAULT_wxUSE_INTL=no | |
1437 | DEFAULT_wxUSE_CONFIG=no | |
1e6feb95 | 1438 | DEFAULT_wxUSE_FONTMAP=no |
10f2d63a VZ |
1439 | DEFAULT_wxUSE_STREAMS=no |
1440 | DEFAULT_wxUSE_SOCKETS=no | |
1441 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
10f2d63a | 1442 | DEFAULT_wxUSE_JOYSTICK=no |
6bff71f8 | 1443 | DEFAULT_wxUSE_DYNLIB_CLASS=no |
0b9ab0bd | 1444 | DEFAULT_wxUSE_DYNAMIC_LOADER=no |
10f2d63a | 1445 | DEFAULT_wxUSE_LONGLONG=no |
e8f65ba6 | 1446 | DEFAULT_wxUSE_GEOMETRY=no |
10f2d63a VZ |
1447 | |
1448 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1449 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1450 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1451 | ||
1452 | DEFAULT_wxUSE_X_RESOURCES=no | |
1453 | DEFAULT_wxUSE_CLIPBOARD=no | |
1454 | DEFAULT_wxUSE_TOOLTIPS=no | |
1455 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
24fd6d87 | 1456 | DEFAULT_wxUSE_DRAGIMAGE=no |
10f2d63a VZ |
1457 | DEFAULT_wxUSE_SPLINES=no |
1458 | ||
1459 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1460 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1461 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1462 | ||
1463 | DEFAULT_wxUSE_PROLOGIO=no | |
1464 | DEFAULT_wxUSE_RESOURCES=no | |
1465 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1466 | DEFAULT_wxUSE_IPC=no | |
1467 | DEFAULT_wxUSE_HELP=no | |
29fd3c0c | 1468 | DEFAULT_wxUSE_MS_HTML_HELP=no |
3379ed37 | 1469 | DEFAULT_wxUSE_WXHTML_HELP=no |
24176f2c | 1470 | DEFAULT_wxUSE_TREELAYOUT=no |
10f2d63a | 1471 | DEFAULT_wxUSE_METAFILE=no |
1e6feb95 | 1472 | DEFAULT_wxUSE_MIMETYPE=no |
4cdb0ab0 VS |
1473 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no |
1474 | DEFAULT_wxUSE_PROTOCOL=no | |
1475 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
1476 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
1477 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
1478 | DEFAULT_wxUSE_URL=no | |
1479 | ||
10f2d63a | 1480 | DEFAULT_wxUSE_COMMONDLGS=no |
1e6feb95 VZ |
1481 | DEFAULT_wxUSE_CHOICEDLG=no |
1482 | DEFAULT_wxUSE_COLOURDLG=no | |
10f2d63a | 1483 | DEFAULT_wxUSE_DIRDLG=no |
1e6feb95 | 1484 | DEFAULT_wxUSE_FILEDLG=no |
8db37e06 | 1485 | DEFAULT_wxUSE_FINDREPLDLG=no |
1e6feb95 VZ |
1486 | DEFAULT_wxUSE_FONTDLG=no |
1487 | DEFAULT_wxUSE_MSGDLG=no | |
1488 | DEFAULT_wxUSE_NUMBERDLG=no | |
10f2d63a | 1489 | DEFAULT_wxUSE_TEXTDLG=no |
cbca9943 | 1490 | DEFAULT_wxUSE_SPLASH=no |
10f2d63a VZ |
1491 | DEFAULT_wxUSE_STARTUP_TIPS=no |
1492 | DEFAULT_wxUSE_PROGRESSDLG=no | |
b1f5d087 VZ |
1493 | DEFAULT_wxUSE_WIZARDDLG=no |
1494 | ||
1e6feb95 | 1495 | DEFAULT_wxUSE_MENUS=no |
10f2d63a VZ |
1496 | DEFAULT_wxUSE_MINIFRAME=no |
1497 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 1498 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
1499 | DEFAULT_wxUSE_FS_INET=no |
1500 | DEFAULT_wxUSE_FS_ZIP=no | |
1501 | DEFAULT_wxUSE_BUSYINFO=no | |
1502 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1e6feb95 | 1503 | DEFAULT_wxUSE_VALIDATORS=no |
10f2d63a VZ |
1504 | |
1505 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 | 1506 | DEFAULT_wxUSE_BUTTON=no |
10f2d63a | 1507 | DEFAULT_wxUSE_BMPBUTTON=no |
1e6feb95 VZ |
1508 | DEFAULT_wxUSE_CALCTRL=no |
1509 | DEFAULT_wxUSE_CARET=no | |
10f2d63a VZ |
1510 | DEFAULT_wxUSE_CHECKBOX=no |
1511 | DEFAULT_wxUSE_CHECKLST=no | |
1e6feb95 | 1512 | DEFAULT_wxUSE_CHOICE=no |
10f2d63a VZ |
1513 | DEFAULT_wxUSE_COMBOBOX=no |
1514 | DEFAULT_wxUSE_GAUGE=no | |
1515 | DEFAULT_wxUSE_GRID=no | |
1516 | DEFAULT_wxUSE_NEW_GRID=no | |
1517 | DEFAULT_wxUSE_IMAGLIST=no | |
1518 | DEFAULT_wxUSE_LISTBOX=no | |
1519 | DEFAULT_wxUSE_LISTCTRL=no | |
1520 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 1521 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
1522 | DEFAULT_wxUSE_RADIOBOX=no |
1523 | DEFAULT_wxUSE_RADIOBTN=no | |
1524 | DEFAULT_wxUSE_SASH=no | |
1525 | DEFAULT_wxUSE_SCROLLBAR=no | |
1526 | DEFAULT_wxUSE_SLIDER=no | |
1527 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 1528 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
1529 | DEFAULT_wxUSE_SPLITTER=no |
1530 | DEFAULT_wxUSE_STATBMP=no | |
1531 | DEFAULT_wxUSE_STATBOX=no | |
1532 | DEFAULT_wxUSE_STATLINE=no | |
1e6feb95 | 1533 | DEFAULT_wxUSE_STATTEXT=no |
10f2d63a VZ |
1534 | DEFAULT_wxUSE_STATUSBAR=yes |
1535 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1536 | DEFAULT_wxUSE_TEXTCTRL=no |
1db8dc4a | 1537 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 1538 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
1539 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
1540 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a | 1541 | DEFAULT_wxUSE_TREECTRL=no |
9f41d601 | 1542 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 1543 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
1544 | |
1545 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 1546 | DEFAULT_wxUSE_UNICODE_MSLU=no |
10f2d63a VZ |
1547 | DEFAULT_wxUSE_WCSRTOMBS=no |
1548 | ||
edae8572 | 1549 | DEFAULT_wxUSE_PALETTE=no |
0046ff7c | 1550 | DEFAULT_wxUSE_IMAGE=no |
10f2d63a VZ |
1551 | DEFAULT_wxUSE_GIF=no |
1552 | DEFAULT_wxUSE_PCX=no | |
1553 | DEFAULT_wxUSE_PNM=no | |
4b6b4dfc | 1554 | DEFAULT_wxUSE_IFF=no |
0046ff7c | 1555 | DEFAULT_wxUSE_XPM=no |
658974ae | 1556 | DEFAULT_wxUSE_ICO_CUR=no |
10f2d63a | 1557 | else |
1e6feb95 VZ |
1558 | DEFAULT_wxUSE_UNIVERSAL=no |
1559 | ||
d8356fa3 VZ |
1560 | DEFAULT_wxUSE_NANOX=no |
1561 | ||
10f2d63a VZ |
1562 | DEFAULT_wxUSE_THREADS=yes |
1563 | ||
1564 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1565 | DEFAULT_wxUSE_SONAME=no |
10f2d63a VZ |
1566 | DEFAULT_wxUSE_OPTIMISE=yes |
1567 | DEFAULT_wxUSE_PROFILE=no | |
1568 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
1569 | DEFAULT_wxUSE_NO_RTTI=no |
1570 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
1571 | DEFAULT_wxUSE_PERMISSIVE=no |
1572 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1573 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1574 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1575 | DEFAULT_wxUSE_MEM_TRACING=no | |
1576 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1577 | DEFAULT_wxUSE_DMALLOC=no | |
a7ae7112 | 1578 | DEFAULT_wxUSE_PRECOMP=no |
10f2d63a VZ |
1579 | DEFAULT_wxUSE_APPLE_IEEE=yes |
1580 | ||
1581 | DEFAULT_wxUSE_LOG=yes | |
d73be714 VZ |
1582 | DEFAULT_wxUSE_LOGWINDOW=yes |
1583 | DEFAULT_wxUSE_LOGGUI=yes | |
69d27ff7 | 1584 | DEFAULT_wxUSE_LOGDIALOG=yes |
10f2d63a VZ |
1585 | |
1586 | DEFAULT_wxUSE_GUI=yes | |
1587 | ||
831b3152 | 1588 | DEFAULT_wxUSE_REGEX=yes |
10f2d63a VZ |
1589 | DEFAULT_wxUSE_ZLIB=yes |
1590 | DEFAULT_wxUSE_LIBPNG=yes | |
1591 | DEFAULT_wxUSE_LIBJPEG=yes | |
b47c832e | 1592 | DEFAULT_wxUSE_LIBTIFF=yes |
16b52fa1 | 1593 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 1594 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1595 | |
eb4efbdc | 1596 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
4f3c5f06 | 1597 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
10f2d63a | 1598 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1599 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
1600 | DEFAULT_wxUSE_DATETIME=yes | |
1601 | DEFAULT_wxUSE_TIMEDATE=no | |
1602 | DEFAULT_wxUSE_TIMER=yes | |
1603 | DEFAULT_wxUSE_STOPWATCH=yes | |
10f2d63a | 1604 | DEFAULT_wxUSE_FILE=yes |
1e6feb95 | 1605 | DEFAULT_wxUSE_FFILE=yes |
a3a584a7 | 1606 | DEFAULT_wxUSE_TEXTBUFFER=yes |
10f2d63a | 1607 | DEFAULT_wxUSE_TEXTFILE=yes |
10f2d63a VZ |
1608 | DEFAULT_wxUSE_WAVE=no |
1609 | DEFAULT_wxUSE_INTL=yes | |
1610 | DEFAULT_wxUSE_CONFIG=yes | |
1e6feb95 | 1611 | DEFAULT_wxUSE_FONTMAP=yes |
10f2d63a VZ |
1612 | DEFAULT_wxUSE_STREAMS=yes |
1613 | DEFAULT_wxUSE_SOCKETS=yes | |
1614 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
10f2d63a | 1615 | DEFAULT_wxUSE_JOYSTICK=yes |
6bff71f8 | 1616 | DEFAULT_wxUSE_DYNLIB_CLASS=yes |
9337b578 | 1617 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes |
b685cd9b | 1618 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 1619 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
1620 | |
1621 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1622 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1623 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1624 | ||
1625 | DEFAULT_wxUSE_X_RESOURCES=no | |
1626 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1627 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1628 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
24fd6d87 | 1629 | DEFAULT_wxUSE_DRAGIMAGE=yes |
10f2d63a VZ |
1630 | DEFAULT_wxUSE_SPLINES=yes |
1631 | ||
1632 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1633 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1634 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1635 | ||
1636 | DEFAULT_wxUSE_PROLOGIO=yes | |
1637 | DEFAULT_wxUSE_RESOURCES=yes | |
1638 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
1639 | DEFAULT_wxUSE_IPC=yes | |
1640 | DEFAULT_wxUSE_HELP=yes | |
29fd3c0c | 1641 | DEFAULT_wxUSE_MS_HTML_HELP=yes |
3379ed37 | 1642 | DEFAULT_wxUSE_WXHTML_HELP=yes |
24176f2c | 1643 | DEFAULT_wxUSE_TREELAYOUT=yes |
10f2d63a | 1644 | DEFAULT_wxUSE_METAFILE=yes |
1e6feb95 | 1645 | DEFAULT_wxUSE_MIMETYPE=yes |
3e44f09d | 1646 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
4cdb0ab0 VS |
1647 | DEFAULT_wxUSE_PROTOCOL=yes |
1648 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
1649 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
1650 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
1651 | DEFAULT_wxUSE_URL=yes | |
10f2d63a VZ |
1652 | |
1653 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1e6feb95 VZ |
1654 | DEFAULT_wxUSE_CHOICEDLG=yes |
1655 | DEFAULT_wxUSE_COLOURDLG=yes | |
10f2d63a | 1656 | DEFAULT_wxUSE_DIRDLG=yes |
1e6feb95 | 1657 | DEFAULT_wxUSE_FILEDLG=yes |
8db37e06 | 1658 | DEFAULT_wxUSE_FINDREPLDLG=yes |
1e6feb95 VZ |
1659 | DEFAULT_wxUSE_FONTDLG=yes |
1660 | DEFAULT_wxUSE_MSGDLG=yes | |
1661 | DEFAULT_wxUSE_NUMBERDLG=yes | |
10f2d63a | 1662 | DEFAULT_wxUSE_TEXTDLG=yes |
cbca9943 | 1663 | DEFAULT_wxUSE_SPLASH=yes |
10f2d63a VZ |
1664 | DEFAULT_wxUSE_STARTUP_TIPS=yes |
1665 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
f33f19dd VZ |
1666 | DEFAULT_wxUSE_WIZARDDLG=yes |
1667 | ||
1e6feb95 | 1668 | DEFAULT_wxUSE_MENUS=yes |
10f2d63a VZ |
1669 | DEFAULT_wxUSE_MINIFRAME=yes |
1670 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 1671 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
1672 | DEFAULT_wxUSE_FS_INET=yes |
1673 | DEFAULT_wxUSE_FS_ZIP=yes | |
1674 | DEFAULT_wxUSE_BUSYINFO=yes | |
1675 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1676 | DEFAULT_wxUSE_VALIDATORS=yes | |
1677 | ||
1678 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 | 1679 | DEFAULT_wxUSE_BUTTON=yes |
10f2d63a | 1680 | DEFAULT_wxUSE_BMPBUTTON=yes |
1e6feb95 VZ |
1681 | DEFAULT_wxUSE_CALCTRL=yes |
1682 | DEFAULT_wxUSE_CARET=yes | |
10f2d63a VZ |
1683 | DEFAULT_wxUSE_CHECKBOX=yes |
1684 | DEFAULT_wxUSE_CHECKLST=yes | |
1685 | DEFAULT_wxUSE_CHOICE=yes | |
1686 | DEFAULT_wxUSE_COMBOBOX=yes | |
1687 | DEFAULT_wxUSE_GAUGE=yes | |
1688 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 1689 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
1690 | DEFAULT_wxUSE_IMAGLIST=yes |
1691 | DEFAULT_wxUSE_LISTBOX=yes | |
1692 | DEFAULT_wxUSE_LISTCTRL=yes | |
1693 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 1694 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
1695 | DEFAULT_wxUSE_RADIOBOX=yes |
1696 | DEFAULT_wxUSE_RADIOBTN=yes | |
1697 | DEFAULT_wxUSE_SASH=yes | |
1698 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1699 | DEFAULT_wxUSE_SLIDER=yes | |
1700 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 1701 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
1702 | DEFAULT_wxUSE_SPLITTER=yes |
1703 | DEFAULT_wxUSE_STATBMP=yes | |
1704 | DEFAULT_wxUSE_STATBOX=yes | |
1705 | DEFAULT_wxUSE_STATLINE=yes | |
1e6feb95 | 1706 | DEFAULT_wxUSE_STATTEXT=yes |
10f2d63a VZ |
1707 | DEFAULT_wxUSE_STATUSBAR=yes |
1708 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1709 | DEFAULT_wxUSE_TEXTCTRL=yes |
1db8dc4a | 1710 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 1711 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
1712 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
1713 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a | 1714 | DEFAULT_wxUSE_TREECTRL=yes |
9f41d601 | 1715 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 1716 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
1717 | |
1718 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 1719 | DEFAULT_wxUSE_UNICODE_MSLU=yes |
10f2d63a VZ |
1720 | DEFAULT_wxUSE_WCSRTOMBS=no |
1721 | ||
edae8572 | 1722 | DEFAULT_wxUSE_PALETTE=yes |
0046ff7c | 1723 | DEFAULT_wxUSE_IMAGE=yes |
10f2d63a VZ |
1724 | DEFAULT_wxUSE_GIF=yes |
1725 | DEFAULT_wxUSE_PCX=yes | |
cc0e8480 | 1726 | DEFAULT_wxUSE_IFF=no |
10f2d63a | 1727 | DEFAULT_wxUSE_PNM=yes |
0046ff7c | 1728 | DEFAULT_wxUSE_XPM=yes |
658974ae | 1729 | DEFAULT_wxUSE_ICO_CUR=yes |
10f2d63a VZ |
1730 | fi |
1731 | ||
698dcdb6 VZ |
1732 | |
1733 | ||
10f2d63a VZ |
1734 | for toolkit in `echo $ALL_TOOLKITS`; do |
1735 | LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}` | |
1736 | if test "x$LINE" != x ; then | |
1737 | has_toolkit_in_cache=1 | |
1738 | eval "DEFAULT_$LINE" | |
1739 | eval "CACHE_$toolkit=1" | |
1740 | fi | |
1741 | done | |
1742 | ||
698dcdb6 VZ |
1743 | |
1744 | ||
1745 | echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6 | |
17234b26 | 1746 | echo "configure:1747: checking for --enable-gui" >&5 |
10f2d63a VZ |
1747 | no_cache=0 |
1748 | # Check whether --enable-gui or --disable-gui was given. | |
1749 | if test "${enable_gui+set}" = set; then | |
1750 | enableval="$enable_gui" | |
698dcdb6 | 1751 | |
10f2d63a VZ |
1752 | if test "$enableval" = yes; then |
1753 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1754 | else | |
1755 | ac_cv_use_gui='wxUSE_GUI=no' | |
1756 | fi | |
698dcdb6 | 1757 | |
10f2d63a | 1758 | else |
698dcdb6 | 1759 | |
10f2d63a VZ |
1760 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` |
1761 | if test "x$LINE" != x ; then | |
1762 | eval "DEFAULT_$LINE" | |
1763 | else | |
1764 | no_cache=1 | |
1765 | fi | |
1766 | ||
1767 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
698dcdb6 VZ |
1768 | |
1769 | fi | |
10f2d63a VZ |
1770 | |
1771 | ||
1772 | eval "$ac_cv_use_gui" | |
1773 | if test "$no_cache" != 1; then | |
1774 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1775 | fi | |
1776 | ||
1777 | if test "$wxUSE_GUI" = yes; then | |
698dcdb6 | 1778 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 1779 | else |
698dcdb6 | 1780 | echo "$ac_t""no" 1>&6 |
10f2d63a | 1781 | fi |
698dcdb6 | 1782 | |
10f2d63a | 1783 | |
b12915c1 | 1784 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a | 1785 | |
1e6feb95 VZ |
1786 | |
1787 | echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6 | |
17234b26 | 1788 | echo "configure:1789: checking for --enable-universal" >&5 |
1e6feb95 VZ |
1789 | no_cache=0 |
1790 | # Check whether --enable-universal or --disable-universal was given. | |
1791 | if test "${enable_universal+set}" = set; then | |
1792 | enableval="$enable_universal" | |
1793 | ||
1794 | if test "$enableval" = yes; then | |
1795 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
1796 | else | |
1797 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
1798 | fi | |
1799 | ||
1800 | else | |
1801 | ||
1802 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
1803 | if test "x$LINE" != x ; then | |
1804 | eval "DEFAULT_$LINE" | |
1805 | else | |
1806 | no_cache=1 | |
1807 | fi | |
1808 | ||
1809 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
1810 | ||
1811 | fi | |
1812 | ||
1813 | ||
1814 | eval "$ac_cv_use_universal" | |
1815 | if test "$no_cache" != 1; then | |
1816 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
1817 | fi | |
1818 | ||
1819 | if test "$wxUSE_UNIVERSAL" = yes; then | |
1820 | echo "$ac_t""yes" 1>&6 | |
1821 | else | |
1822 | echo "$ac_t""no" 1>&6 | |
1823 | fi | |
1824 | ||
10f2d63a VZ |
1825 | # Check whether --with-gtk or --without-gtk was given. |
1826 | if test "${with_gtk+set}" = set; then | |
1827 | withval="$with_gtk" | |
1828 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1829 | fi |
10f2d63a VZ |
1830 | |
1831 | # Check whether --with-motif or --without-motif was given. | |
1832 | if test "${with_motif+set}" = set; then | |
1833 | withval="$with_motif" | |
1834 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1835 | fi |
10f2d63a | 1836 | |
b4085ce6 GD |
1837 | # Check whether --with-mac or --without-mac was given. |
1838 | if test "${with_mac+set}" = set; then | |
1839 | withval="$with_mac" | |
1840 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
698dcdb6 | 1841 | fi |
b4085ce6 | 1842 | |
10f2d63a VZ |
1843 | # Check whether --with-wine or --without-wine was given. |
1844 | if test "${with_wine+set}" = set; then | |
1845 | withval="$with_wine" | |
1846 | wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1847 | fi |
10f2d63a | 1848 | |
77e13408 RL |
1849 | # Check whether --with-msw or --without-msw was given. |
1850 | if test "${with_msw+set}" = set; then | |
1851 | withval="$with_msw" | |
b4efce5e | 1852 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 |
698dcdb6 | 1853 | fi |
10f2d63a | 1854 | |
e07802fc VZ |
1855 | # Check whether --with-pm or --without-pm was given. |
1856 | if test "${with_pm+set}" = set; then | |
1857 | withval="$with_pm" | |
1858 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
698dcdb6 VZ |
1859 | fi |
1860 | ||
1e6feb95 VZ |
1861 | # Check whether --with-mgl or --without-mgl was given. |
1862 | if test "${with_mgl+set}" = set; then | |
1863 | withval="$with_mgl" | |
6c657b52 | 1864 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 |
1e6feb95 VZ |
1865 | fi |
1866 | ||
1725144d RR |
1867 | # Check whether --with-microwin or --without-microwin was given. |
1868 | if test "${with_microwin+set}" = set; then | |
1869 | withval="$with_microwin" | |
1870 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
1871 | fi | |
1872 | ||
f79bd02d JS |
1873 | # Check whether --with-x11 or --without-x11 was given. |
1874 | if test "${with_x11+set}" = set; then | |
1875 | withval="$with_x11" | |
3c011993 | 1876 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 |
f79bd02d JS |
1877 | fi |
1878 | ||
10f2d63a | 1879 | |
ba875e66 | 1880 | echo $ac_n "checking for --enable-nanox""... $ac_c" 1>&6 |
17234b26 | 1881 | echo "configure:1882: checking for --enable-nanox" >&5 |
d8356fa3 | 1882 | no_cache=0 |
ba875e66 VZ |
1883 | # Check whether --enable-nanox or --disable-nanox was given. |
1884 | if test "${enable_nanox+set}" = set; then | |
1885 | enableval="$enable_nanox" | |
d8356fa3 VZ |
1886 | |
1887 | if test "$enableval" = yes; then | |
ba875e66 | 1888 | ac_cv_use_nanox='wxUSE_NANOX=yes' |
d8356fa3 | 1889 | else |
ba875e66 | 1890 | ac_cv_use_nanox='wxUSE_NANOX=no' |
d8356fa3 VZ |
1891 | fi |
1892 | ||
1893 | else | |
1894 | ||
1895 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` | |
1896 | if test "x$LINE" != x ; then | |
1897 | eval "DEFAULT_$LINE" | |
1898 | else | |
1899 | no_cache=1 | |
1900 | fi | |
1901 | ||
ba875e66 | 1902 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX |
d8356fa3 VZ |
1903 | |
1904 | fi | |
1905 | ||
1906 | ||
ba875e66 | 1907 | eval "$ac_cv_use_nanox" |
d8356fa3 | 1908 | if test "$no_cache" != 1; then |
ba875e66 | 1909 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp |
d8356fa3 VZ |
1910 | fi |
1911 | ||
1912 | if test "$wxUSE_NANOX" = yes; then | |
1913 | echo "$ac_t""yes" 1>&6 | |
1914 | else | |
1915 | echo "$ac_t""no" 1>&6 | |
1916 | fi | |
1917 | ||
1918 | ||
8168de4c VZ |
1919 | # Check whether --enable-gtk2 or --disable-gtk2 was given. |
1920 | if test "${enable_gtk2+set}" = set; then | |
1921 | enableval="$enable_gtk2" | |
9e691f46 | 1922 | wxUSE_GTK2="yes" |
10f2d63a | 1923 | else |
9e691f46 | 1924 | wxUSE_GTK2="no" |
698dcdb6 VZ |
1925 | fi |
1926 | ||
703e0a69 | 1927 | |
1e487827 | 1928 | |
698dcdb6 | 1929 | echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6 |
17234b26 | 1930 | echo "configure:1931: checking for --with-libpng" >&5 |
698dcdb6 VZ |
1931 | no_cache=0 |
1932 | # Check whether --with-libpng or --without-libpng was given. | |
b12915c1 VZ |
1933 | if test "${with_libpng+set}" = set; then |
1934 | withval="$with_libpng" | |
698dcdb6 | 1935 | |
10f2d63a | 1936 | if test "$withval" = yes; then |
b12915c1 | 1937 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 1938 | elif test "$withval" = no; then |
b12915c1 | 1939 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
1940 | elif test "$withval" = sys; then |
1941 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
4f14bcd8 GD |
1942 | elif test "$withval" = builtin; then |
1943 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
422107f9 | 1944 | else |
4f14bcd8 | 1945 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 1946 | fi |
698dcdb6 | 1947 | |
10f2d63a | 1948 | else |
698dcdb6 | 1949 | |
b12915c1 | 1950 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1951 | if test "x$LINE" != x ; then |
1952 | eval "DEFAULT_$LINE" | |
1953 | else | |
1954 | no_cache=1 | |
1955 | fi | |
1956 | ||
b12915c1 | 1957 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
698dcdb6 VZ |
1958 | |
1959 | fi | |
10f2d63a VZ |
1960 | |
1961 | ||
b12915c1 | 1962 | eval "$ac_cv_use_libpng" |
10f2d63a | 1963 | if test "$no_cache" != 1; then |
b12915c1 | 1964 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1965 | fi |
1966 | ||
b12915c1 | 1967 | if test "$wxUSE_LIBPNG" = yes; then |
698dcdb6 | 1968 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1969 | elif test "$wxUSE_LIBPNG" = no; then |
698dcdb6 | 1970 | echo "$ac_t""no" 1>&6 |
422107f9 | 1971 | elif test "$wxUSE_LIBPNG" = sys; then |
698dcdb6 | 1972 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
1973 | elif test "$wxUSE_LIBPNG" = builtin; then |
1974 | echo "$ac_t""builtin version" 1>&6 | |
422107f9 | 1975 | else |
4f14bcd8 | 1976 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 1977 | fi |
698dcdb6 | 1978 | |
10f2d63a | 1979 | |
698dcdb6 | 1980 | echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6 |
17234b26 | 1981 | echo "configure:1982: checking for --with-libjpeg" >&5 |
10f2d63a | 1982 | no_cache=0 |
698dcdb6 | 1983 | # Check whether --with-libjpeg or --without-libjpeg was given. |
b12915c1 VZ |
1984 | if test "${with_libjpeg+set}" = set; then |
1985 | withval="$with_libjpeg" | |
698dcdb6 | 1986 | |
10f2d63a | 1987 | if test "$withval" = yes; then |
b12915c1 | 1988 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 1989 | elif test "$withval" = no; then |
b12915c1 | 1990 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
1991 | elif test "$withval" = sys; then |
1992 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
4f14bcd8 GD |
1993 | elif test "$withval" = builtin; then |
1994 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
422107f9 | 1995 | else |
4f14bcd8 | 1996 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 1997 | fi |
698dcdb6 | 1998 | |
10f2d63a | 1999 | else |
698dcdb6 | 2000 | |
b12915c1 | 2001 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2002 | if test "x$LINE" != x ; then |
2003 | eval "DEFAULT_$LINE" | |
2004 | else | |
2005 | no_cache=1 | |
2006 | fi | |
2007 | ||
b12915c1 | 2008 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
698dcdb6 VZ |
2009 | |
2010 | fi | |
10f2d63a VZ |
2011 | |
2012 | ||
b12915c1 | 2013 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 2014 | if test "$no_cache" != 1; then |
b12915c1 | 2015 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2016 | fi |
2017 | ||
b12915c1 | 2018 | if test "$wxUSE_LIBJPEG" = yes; then |
698dcdb6 | 2019 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2020 | elif test "$wxUSE_LIBJPEG" = no; then |
698dcdb6 | 2021 | echo "$ac_t""no" 1>&6 |
422107f9 | 2022 | elif test "$wxUSE_LIBJPEG" = sys; then |
698dcdb6 | 2023 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2024 | elif test "$wxUSE_LIBJPEG" = builtin; then |
2025 | echo "$ac_t""builtin version" 1>&6 | |
422107f9 | 2026 | else |
4f14bcd8 | 2027 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2028 | fi |
698dcdb6 | 2029 | |
10f2d63a | 2030 | |
698dcdb6 | 2031 | echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6 |
17234b26 | 2032 | echo "configure:2033: checking for --with-libtiff" >&5 |
10f2d63a | 2033 | no_cache=0 |
698dcdb6 | 2034 | # Check whether --with-libtiff or --without-libtiff was given. |
b12915c1 VZ |
2035 | if test "${with_libtiff+set}" = set; then |
2036 | withval="$with_libtiff" | |
698dcdb6 | 2037 | |
10f2d63a | 2038 | if test "$withval" = yes; then |
b12915c1 | 2039 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 2040 | elif test "$withval" = no; then |
b12915c1 | 2041 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
2042 | elif test "$withval" = sys; then |
2043 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
4f14bcd8 GD |
2044 | elif test "$withval" = builtin; then |
2045 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
0dcf9893 | 2046 | else |
4f14bcd8 | 2047 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2048 | fi |
698dcdb6 | 2049 | |
10f2d63a | 2050 | else |
698dcdb6 | 2051 | |
b12915c1 | 2052 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
2053 | if test "x$LINE" != x ; then |
2054 | eval "DEFAULT_$LINE" | |
2055 | else | |
2056 | no_cache=1 | |
2057 | fi | |
2058 | ||
b12915c1 | 2059 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
698dcdb6 VZ |
2060 | |
2061 | fi | |
10f2d63a VZ |
2062 | |
2063 | ||
b12915c1 | 2064 | eval "$ac_cv_use_libtiff" |
10f2d63a | 2065 | if test "$no_cache" != 1; then |
b12915c1 | 2066 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2067 | fi |
2068 | ||
b12915c1 | 2069 | if test "$wxUSE_LIBTIFF" = yes; then |
698dcdb6 | 2070 | echo "$ac_t""yes" 1>&6 |
0dcf9893 | 2071 | elif test "$wxUSE_LIBTIFF" = no; then |
698dcdb6 | 2072 | echo "$ac_t""no" 1>&6 |
0dcf9893 | 2073 | elif test "$wxUSE_LIBTIFF" = sys; then |
698dcdb6 | 2074 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2075 | elif test "$wxUSE_LIBTIFF" = builtin; then |
2076 | echo "$ac_t""builtin version" 1>&6 | |
0dcf9893 | 2077 | else |
4f14bcd8 | 2078 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2079 | fi |
698dcdb6 | 2080 | |
10f2d63a | 2081 | |
698dcdb6 | 2082 | echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6 |
17234b26 | 2083 | echo "configure:2084: checking for --with-opengl" >&5 |
10f2d63a | 2084 | no_cache=0 |
698dcdb6 | 2085 | # Check whether --with-opengl or --without-opengl was given. |
b12915c1 VZ |
2086 | if test "${with_opengl+set}" = set; then |
2087 | withval="$with_opengl" | |
698dcdb6 | 2088 | |
10f2d63a | 2089 | if test "$withval" = yes; then |
b12915c1 | 2090 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 2091 | else |
b12915c1 | 2092 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a | 2093 | fi |
698dcdb6 | 2094 | |
10f2d63a | 2095 | else |
698dcdb6 | 2096 | |
b12915c1 | 2097 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
2098 | if test "x$LINE" != x ; then |
2099 | eval "DEFAULT_$LINE" | |
2100 | else | |
2101 | no_cache=1 | |
2102 | fi | |
2103 | ||
b12915c1 | 2104 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
698dcdb6 VZ |
2105 | |
2106 | fi | |
10f2d63a VZ |
2107 | |
2108 | ||
b12915c1 | 2109 | eval "$ac_cv_use_opengl" |
10f2d63a | 2110 | if test "$no_cache" != 1; then |
b12915c1 | 2111 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2112 | fi |
2113 | ||
b12915c1 | 2114 | if test "$wxUSE_OPENGL" = yes; then |
698dcdb6 | 2115 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2116 | else |
698dcdb6 | 2117 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2118 | fi |
698dcdb6 | 2119 | |
10f2d63a | 2120 | |
b12915c1 VZ |
2121 | fi |
2122 | ||
1e487827 | 2123 | |
698dcdb6 | 2124 | echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6 |
17234b26 | 2125 | echo "configure:2126: checking for --with-dmalloc" >&5 |
698dcdb6 VZ |
2126 | no_cache=0 |
2127 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
b12915c1 VZ |
2128 | if test "${with_dmalloc+set}" = set; then |
2129 | withval="$with_dmalloc" | |
698dcdb6 | 2130 | |
c7a2bf27 | 2131 | if test "$withval" = yes; then |
b12915c1 | 2132 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 2133 | else |
b12915c1 | 2134 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 | 2135 | fi |
698dcdb6 | 2136 | |
c7a2bf27 | 2137 | else |
698dcdb6 | 2138 | |
b12915c1 | 2139 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
2140 | if test "x$LINE" != x ; then |
2141 | eval "DEFAULT_$LINE" | |
2142 | else | |
2143 | no_cache=1 | |
2144 | fi | |
2145 | ||
b12915c1 | 2146 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
698dcdb6 VZ |
2147 | |
2148 | fi | |
c7a2bf27 RR |
2149 | |
2150 | ||
b12915c1 | 2151 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 2152 | if test "$no_cache" != 1; then |
b12915c1 | 2153 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
2154 | fi |
2155 | ||
b12915c1 | 2156 | if test "$wxUSE_DMALLOC" = yes; then |
698dcdb6 | 2157 | echo "$ac_t""yes" 1>&6 |
c7a2bf27 | 2158 | else |
698dcdb6 | 2159 | echo "$ac_t""no" 1>&6 |
c7a2bf27 | 2160 | fi |
698dcdb6 | 2161 | |
c7a2bf27 | 2162 | |
3e44f09d | 2163 | echo $ac_n "checking for --with-regex""... $ac_c" 1>&6 |
17234b26 | 2164 | echo "configure:2165: checking for --with-regex" >&5 |
3e44f09d VZ |
2165 | no_cache=0 |
2166 | # Check whether --with-regex or --without-regex was given. | |
2167 | if test "${with_regex+set}" = set; then | |
2168 | withval="$with_regex" | |
2169 | ||
2170 | if test "$withval" = yes; then | |
2171 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
2172 | elif test "$withval" = no; then | |
2173 | ac_cv_use_regex='wxUSE_REGEX=no' | |
2174 | elif test "$withval" = sys; then | |
2175 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
4f14bcd8 GD |
2176 | elif test "$withval" = builtin; then |
2177 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3e44f09d | 2178 | else |
4f14bcd8 | 2179 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d VZ |
2180 | fi |
2181 | ||
2182 | else | |
2183 | ||
2184 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` | |
2185 | if test "x$LINE" != x ; then | |
2186 | eval "DEFAULT_$LINE" | |
2187 | else | |
2188 | no_cache=1 | |
2189 | fi | |
2190 | ||
2191 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
2192 | ||
2193 | fi | |
2194 | ||
2195 | ||
2196 | eval "$ac_cv_use_regex" | |
2197 | if test "$no_cache" != 1; then | |
2198 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
2199 | fi | |
2200 | ||
2201 | if test "$wxUSE_REGEX" = yes; then | |
2202 | echo "$ac_t""yes" 1>&6 | |
2203 | elif test "$wxUSE_REGEX" = no; then | |
2204 | echo "$ac_t""no" 1>&6 | |
2205 | elif test "$wxUSE_REGEX" = sys; then | |
2206 | echo "$ac_t""system version" 1>&6 | |
4f14bcd8 GD |
2207 | elif test "$wxUSE_REGEX" = builtin; then |
2208 | echo "$ac_t""builtin version" 1>&6 | |
3e44f09d | 2209 | else |
4f14bcd8 | 2210 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d VZ |
2211 | fi |
2212 | ||
2213 | ||
698dcdb6 | 2214 | echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6 |
17234b26 | 2215 | echo "configure:2216: checking for --with-zlib" >&5 |
10f2d63a | 2216 | no_cache=0 |
698dcdb6 | 2217 | # Check whether --with-zlib or --without-zlib was given. |
b12915c1 VZ |
2218 | if test "${with_zlib+set}" = set; then |
2219 | withval="$with_zlib" | |
698dcdb6 | 2220 | |
10f2d63a | 2221 | if test "$withval" = yes; then |
b12915c1 | 2222 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 2223 | elif test "$withval" = no; then |
b12915c1 | 2224 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
2225 | elif test "$withval" = sys; then |
2226 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
4f14bcd8 GD |
2227 | elif test "$withval" = builtin; then |
2228 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
422107f9 | 2229 | else |
4f14bcd8 | 2230 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2231 | fi |
698dcdb6 | 2232 | |
10f2d63a | 2233 | else |
698dcdb6 | 2234 | |
b12915c1 | 2235 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
2236 | if test "x$LINE" != x ; then |
2237 | eval "DEFAULT_$LINE" | |
2238 | else | |
2239 | no_cache=1 | |
2240 | fi | |
2241 | ||
b12915c1 | 2242 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
698dcdb6 VZ |
2243 | |
2244 | fi | |
10f2d63a VZ |
2245 | |
2246 | ||
b12915c1 | 2247 | eval "$ac_cv_use_zlib" |
10f2d63a | 2248 | if test "$no_cache" != 1; then |
b12915c1 | 2249 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2250 | fi |
2251 | ||
b12915c1 | 2252 | if test "$wxUSE_ZLIB" = yes; then |
698dcdb6 | 2253 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2254 | elif test "$wxUSE_ZLIB" = no; then |
698dcdb6 | 2255 | echo "$ac_t""no" 1>&6 |
422107f9 | 2256 | elif test "$wxUSE_ZLIB" = sys; then |
698dcdb6 | 2257 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2258 | elif test "$wxUSE_ZLIB" = builtin; then |
2259 | echo "$ac_t""builtin version" 1>&6 | |
422107f9 | 2260 | else |
4f14bcd8 | 2261 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2262 | fi |
698dcdb6 | 2263 | |
10f2d63a | 2264 | |
698dcdb6 | 2265 | echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6 |
17234b26 | 2266 | echo "configure:2267: checking for --with-odbc" >&5 |
10f2d63a | 2267 | no_cache=0 |
698dcdb6 | 2268 | # Check whether --with-odbc or --without-odbc was given. |
10f2d63a VZ |
2269 | if test "${with_odbc+set}" = set; then |
2270 | withval="$with_odbc" | |
698dcdb6 | 2271 | |
10f2d63a VZ |
2272 | if test "$withval" = yes; then |
2273 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
2274 | else | |
2275 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
2276 | fi | |
698dcdb6 | 2277 | |
10f2d63a | 2278 | else |
698dcdb6 | 2279 | |
10f2d63a VZ |
2280 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` |
2281 | if test "x$LINE" != x ; then | |
2282 | eval "DEFAULT_$LINE" | |
2283 | else | |
2284 | no_cache=1 | |
2285 | fi | |
2286 | ||
2287 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
698dcdb6 VZ |
2288 | |
2289 | fi | |
10f2d63a VZ |
2290 | |
2291 | ||
2292 | eval "$ac_cv_use_odbc" | |
2293 | if test "$no_cache" != 1; then | |
2294 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
2295 | fi | |
2296 | ||
2297 | if test "$wxUSE_ODBC" = yes; then | |
698dcdb6 | 2298 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2299 | else |
698dcdb6 | 2300 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2301 | fi |
698dcdb6 VZ |
2302 | |
2303 | ||
10f2d63a | 2304 | |
698dcdb6 | 2305 | |
698dcdb6 | 2306 | echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6 |
17234b26 | 2307 | echo "configure:2308: checking for --enable-shared" >&5 |
10f2d63a VZ |
2308 | no_cache=0 |
2309 | # Check whether --enable-shared or --disable-shared was given. | |
2310 | if test "${enable_shared+set}" = set; then | |
2311 | enableval="$enable_shared" | |
698dcdb6 | 2312 | |
10f2d63a VZ |
2313 | if test "$enableval" = yes; then |
2314 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
2315 | else | |
2316 | ac_cv_use_shared='wxUSE_SHARED=no' | |
2317 | fi | |
698dcdb6 | 2318 | |
10f2d63a | 2319 | else |
698dcdb6 | 2320 | |
10f2d63a VZ |
2321 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` |
2322 | if test "x$LINE" != x ; then | |
2323 | eval "DEFAULT_$LINE" | |
2324 | else | |
2325 | no_cache=1 | |
2326 | fi | |
2327 | ||
2328 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
698dcdb6 VZ |
2329 | |
2330 | fi | |
10f2d63a VZ |
2331 | |
2332 | ||
2333 | eval "$ac_cv_use_shared" | |
2334 | if test "$no_cache" != 1; then | |
2335 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
2336 | fi | |
2337 | ||
2338 | if test "$wxUSE_SHARED" = yes; then | |
698dcdb6 | 2339 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2340 | else |
698dcdb6 | 2341 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2342 | fi |
698dcdb6 | 2343 | |
10f2d63a | 2344 | |
3a922bb4 | 2345 | echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6 |
17234b26 | 2346 | echo "configure:2347: checking for --enable-soname" >&5 |
00cf1208 | 2347 | no_cache=0 |
3a922bb4 RL |
2348 | # Check whether --enable-soname or --disable-soname was given. |
2349 | if test "${enable_soname+set}" = set; then | |
2350 | enableval="$enable_soname" | |
698dcdb6 | 2351 | |
00cf1208 | 2352 | if test "$enableval" = yes; then |
3a922bb4 | 2353 | ac_cv_use_soname='wxUSE_SONAME=yes' |
00cf1208 | 2354 | else |
3a922bb4 | 2355 | ac_cv_use_soname='wxUSE_SONAME=no' |
00cf1208 | 2356 | fi |
698dcdb6 | 2357 | |
00cf1208 | 2358 | else |
698dcdb6 | 2359 | |
3a922bb4 | 2360 | LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}` |
00cf1208 RR |
2361 | if test "x$LINE" != x ; then |
2362 | eval "DEFAULT_$LINE" | |
2363 | else | |
2364 | no_cache=1 | |
2365 | fi | |
2366 | ||
3a922bb4 | 2367 | ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME |
698dcdb6 VZ |
2368 | |
2369 | fi | |
00cf1208 RR |
2370 | |
2371 | ||
3a922bb4 | 2372 | eval "$ac_cv_use_soname" |
00cf1208 | 2373 | if test "$no_cache" != 1; then |
3a922bb4 | 2374 | echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp |
00cf1208 RR |
2375 | fi |
2376 | ||
3a922bb4 | 2377 | if test "$wxUSE_SONAME" = yes; then |
698dcdb6 | 2378 | echo "$ac_t""yes" 1>&6 |
00cf1208 | 2379 | else |
698dcdb6 | 2380 | echo "$ac_t""no" 1>&6 |
00cf1208 | 2381 | fi |
698dcdb6 | 2382 | |
00cf1208 | 2383 | |
698dcdb6 | 2384 | echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6 |
17234b26 | 2385 | echo "configure:2386: checking for --enable-optimise" >&5 |
10f2d63a VZ |
2386 | no_cache=0 |
2387 | # Check whether --enable-optimise or --disable-optimise was given. | |
2388 | if test "${enable_optimise+set}" = set; then | |
2389 | enableval="$enable_optimise" | |
698dcdb6 | 2390 | |
10f2d63a VZ |
2391 | if test "$enableval" = yes; then |
2392 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
2393 | else | |
2394 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
2395 | fi | |
698dcdb6 | 2396 | |
10f2d63a | 2397 | else |
698dcdb6 | 2398 | |
10f2d63a VZ |
2399 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` |
2400 | if test "x$LINE" != x ; then | |
2401 | eval "DEFAULT_$LINE" | |
2402 | else | |
2403 | no_cache=1 | |
2404 | fi | |
2405 | ||
2406 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
698dcdb6 VZ |
2407 | |
2408 | fi | |
10f2d63a VZ |
2409 | |
2410 | ||
2411 | eval "$ac_cv_use_optimise" | |
2412 | if test "$no_cache" != 1; then | |
2413 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
2414 | fi | |
2415 | ||
2416 | if test "$wxUSE_OPTIMISE" = yes; then | |
698dcdb6 | 2417 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2418 | else |
698dcdb6 | 2419 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2420 | fi |
698dcdb6 | 2421 | |
10f2d63a | 2422 | |
698dcdb6 | 2423 | echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6 |
17234b26 | 2424 | echo "configure:2425: checking for --enable-debug" >&5 |
10f2d63a VZ |
2425 | no_cache=0 |
2426 | # Check whether --enable-debug or --disable-debug was given. | |
2427 | if test "${enable_debug+set}" = set; then | |
2428 | enableval="$enable_debug" | |
698dcdb6 | 2429 | |
10f2d63a VZ |
2430 | if test "$enableval" = yes; then |
2431 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
2432 | else | |
2433 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
2434 | fi | |
698dcdb6 | 2435 | |
10f2d63a | 2436 | else |
698dcdb6 | 2437 | |
10f2d63a VZ |
2438 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` |
2439 | if test "x$LINE" != x ; then | |
2440 | eval "DEFAULT_$LINE" | |
2441 | else | |
2442 | no_cache=1 | |
2443 | fi | |
2444 | ||
2445 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
698dcdb6 VZ |
2446 | |
2447 | fi | |
10f2d63a VZ |
2448 | |
2449 | ||
2450 | eval "$ac_cv_use_debug" | |
2451 | if test "$no_cache" != 1; then | |
2452 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
2453 | fi | |
2454 | ||
2455 | if test "$wxUSE_DEBUG" = yes; then | |
698dcdb6 | 2456 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2457 | else |
698dcdb6 | 2458 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2459 | fi |
698dcdb6 | 2460 | |
10f2d63a | 2461 | |
683dccda GD |
2462 | |
2463 | echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6 | |
17234b26 | 2464 | echo "configure:2465: checking for --enable-precomp" >&5 |
683dccda GD |
2465 | no_cache=0 |
2466 | # Check whether --enable-precomp or --disable-precomp was given. | |
2467 | if test "${enable_precomp+set}" = set; then | |
2468 | enableval="$enable_precomp" | |
2469 | ||
2470 | if test "$enableval" = yes; then | |
2471 | ac_cv_use_precomp='wxUSE_PRECOMP=yes' | |
2472 | else | |
2473 | ac_cv_use_precomp='wxUSE_PRECOMP=no' | |
2474 | fi | |
2475 | ||
2476 | else | |
2477 | ||
2478 | LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}` | |
2479 | if test "x$LINE" != x ; then | |
2480 | eval "DEFAULT_$LINE" | |
2481 | else | |
2482 | no_cache=1 | |
2483 | fi | |
2484 | ||
2485 | ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP | |
2486 | ||
2487 | fi | |
2488 | ||
2489 | ||
2490 | eval "$ac_cv_use_precomp" | |
2491 | if test "$no_cache" != 1; then | |
2492 | echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp | |
2493 | fi | |
2494 | ||
2495 | if test "$wxUSE_PRECOMP" = yes; then | |
2496 | echo "$ac_t""yes" 1>&6 | |
2497 | else | |
2498 | echo "$ac_t""no" 1>&6 | |
2499 | fi | |
2500 | ||
2501 | ||
10f2d63a VZ |
2502 | if test "$wxUSE_DEBUG" = "yes"; then |
2503 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2504 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2505 | elif test "$wxUSE_DEBUG" = "no"; then | |
2506 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2507 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2508 | fi | |
2509 | ||
698dcdb6 VZ |
2510 | |
2511 | echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6 | |
17234b26 | 2512 | echo "configure:2513: checking for --enable-debug_flag" >&5 |
10f2d63a VZ |
2513 | no_cache=0 |
2514 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
2515 | if test "${enable_debug_flag+set}" = set; then | |
2516 | enableval="$enable_debug_flag" | |
698dcdb6 | 2517 | |
10f2d63a VZ |
2518 | if test "$enableval" = yes; then |
2519 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
2520 | else | |
2521 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
2522 | fi | |
698dcdb6 | 2523 | |
10f2d63a | 2524 | else |
698dcdb6 | 2525 | |
10f2d63a VZ |
2526 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` |
2527 | if test "x$LINE" != x ; then | |
2528 | eval "DEFAULT_$LINE" | |
2529 | else | |
2530 | no_cache=1 | |
2531 | fi | |
2532 | ||
2533 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
698dcdb6 VZ |
2534 | |
2535 | fi | |
10f2d63a VZ |
2536 | |
2537 | ||
2538 | eval "$ac_cv_use_debug_flag" | |
2539 | if test "$no_cache" != 1; then | |
2540 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
2541 | fi | |
2542 | ||
2543 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
698dcdb6 | 2544 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2545 | else |
698dcdb6 | 2546 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2547 | fi |
698dcdb6 | 2548 | |
10f2d63a | 2549 | |
698dcdb6 | 2550 | echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6 |
17234b26 | 2551 | echo "configure:2552: checking for --enable-debug_info" >&5 |
10f2d63a VZ |
2552 | no_cache=0 |
2553 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2554 | if test "${enable_debug_info+set}" = set; then | |
2555 | enableval="$enable_debug_info" | |
698dcdb6 | 2556 | |
10f2d63a VZ |
2557 | if test "$enableval" = yes; then |
2558 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2559 | else | |
2560 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2561 | fi | |
698dcdb6 | 2562 | |
10f2d63a | 2563 | else |
698dcdb6 | 2564 | |
10f2d63a VZ |
2565 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` |
2566 | if test "x$LINE" != x ; then | |
2567 | eval "DEFAULT_$LINE" | |
2568 | else | |
2569 | no_cache=1 | |
2570 | fi | |
2571 | ||
2572 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
698dcdb6 VZ |
2573 | |
2574 | fi | |
10f2d63a VZ |
2575 | |
2576 | ||
2577 | eval "$ac_cv_use_debug_info" | |
2578 | if test "$no_cache" != 1; then | |
2579 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2580 | fi | |
2581 | ||
2582 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
698dcdb6 | 2583 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2584 | else |
698dcdb6 | 2585 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2586 | fi |
698dcdb6 | 2587 | |
10f2d63a | 2588 | |
698dcdb6 | 2589 | echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6 |
17234b26 | 2590 | echo "configure:2591: checking for --enable-debug_gdb" >&5 |
10f2d63a VZ |
2591 | no_cache=0 |
2592 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2593 | if test "${enable_debug_gdb+set}" = set; then | |
2594 | enableval="$enable_debug_gdb" | |
698dcdb6 | 2595 | |
10f2d63a VZ |
2596 | if test "$enableval" = yes; then |
2597 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2598 | else | |
2599 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2600 | fi | |
698dcdb6 | 2601 | |
10f2d63a | 2602 | else |
698dcdb6 | 2603 | |
10f2d63a VZ |
2604 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` |
2605 | if test "x$LINE" != x ; then | |
2606 | eval "DEFAULT_$LINE" | |
2607 | else | |
2608 | no_cache=1 | |
2609 | fi | |
2610 | ||
2611 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
698dcdb6 VZ |
2612 | |
2613 | fi | |
10f2d63a VZ |
2614 | |
2615 | ||
2616 | eval "$ac_cv_use_debug_gdb" | |
2617 | if test "$no_cache" != 1; then | |
2618 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2619 | fi | |
2620 | ||
2621 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
698dcdb6 | 2622 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2623 | else |
698dcdb6 | 2624 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2625 | fi |
698dcdb6 | 2626 | |
10f2d63a | 2627 | |
698dcdb6 | 2628 | echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6 |
17234b26 | 2629 | echo "configure:2630: checking for --enable-debug_cntxt" >&5 |
10f2d63a VZ |
2630 | no_cache=0 |
2631 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2632 | if test "${enable_debug_cntxt+set}" = set; then | |
2633 | enableval="$enable_debug_cntxt" | |
698dcdb6 | 2634 | |
10f2d63a VZ |
2635 | if test "$enableval" = yes; then |
2636 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2637 | else | |
2638 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2639 | fi | |
698dcdb6 | 2640 | |
10f2d63a | 2641 | else |
698dcdb6 | 2642 | |
10f2d63a VZ |
2643 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` |
2644 | if test "x$LINE" != x ; then | |
2645 | eval "DEFAULT_$LINE" | |
2646 | else | |
2647 | no_cache=1 | |
2648 | fi | |
2649 | ||
2650 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
698dcdb6 VZ |
2651 | |
2652 | fi | |
10f2d63a VZ |
2653 | |
2654 | ||
2655 | eval "$ac_cv_use_debug_cntxt" | |
2656 | if test "$no_cache" != 1; then | |
2657 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2658 | fi | |
2659 | ||
2660 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
698dcdb6 | 2661 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2662 | else |
698dcdb6 | 2663 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2664 | fi |
698dcdb6 | 2665 | |
10f2d63a | 2666 | |
698dcdb6 | 2667 | echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6 |
17234b26 | 2668 | echo "configure:2669: checking for --enable-mem_tracing" >&5 |
10f2d63a VZ |
2669 | no_cache=0 |
2670 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2671 | if test "${enable_mem_tracing+set}" = set; then | |
2672 | enableval="$enable_mem_tracing" | |
698dcdb6 | 2673 | |
10f2d63a VZ |
2674 | if test "$enableval" = yes; then |
2675 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2676 | else | |
2677 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2678 | fi | |
698dcdb6 | 2679 | |
10f2d63a | 2680 | else |
698dcdb6 | 2681 | |
10f2d63a VZ |
2682 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` |
2683 | if test "x$LINE" != x ; then | |
2684 | eval "DEFAULT_$LINE" | |
2685 | else | |
2686 | no_cache=1 | |
2687 | fi | |
2688 | ||
2689 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
698dcdb6 VZ |
2690 | |
2691 | fi | |
10f2d63a VZ |
2692 | |
2693 | ||
2694 | eval "$ac_cv_use_mem_tracing" | |
2695 | if test "$no_cache" != 1; then | |
2696 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2697 | fi | |
2698 | ||
2699 | if test "$wxUSE_MEM_TRACING" = yes; then | |
698dcdb6 | 2700 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2701 | else |
698dcdb6 | 2702 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2703 | fi |
698dcdb6 | 2704 | |
10f2d63a | 2705 | |
698dcdb6 | 2706 | echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6 |
17234b26 | 2707 | echo "configure:2708: checking for --enable-profile" >&5 |
10f2d63a VZ |
2708 | no_cache=0 |
2709 | # Check whether --enable-profile or --disable-profile was given. | |
2710 | if test "${enable_profile+set}" = set; then | |
2711 | enableval="$enable_profile" | |
698dcdb6 | 2712 | |
10f2d63a VZ |
2713 | if test "$enableval" = yes; then |
2714 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2715 | else | |
2716 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2717 | fi | |
698dcdb6 | 2718 | |
10f2d63a | 2719 | else |
698dcdb6 | 2720 | |
10f2d63a VZ |
2721 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` |
2722 | if test "x$LINE" != x ; then | |
2723 | eval "DEFAULT_$LINE" | |
2724 | else | |
2725 | no_cache=1 | |
2726 | fi | |
2727 | ||
2728 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
698dcdb6 VZ |
2729 | |
2730 | fi | |
10f2d63a VZ |
2731 | |
2732 | ||
2733 | eval "$ac_cv_use_profile" | |
2734 | if test "$no_cache" != 1; then | |
2735 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2736 | fi | |
2737 | ||
2738 | if test "$wxUSE_PROFILE" = yes; then | |
698dcdb6 | 2739 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2740 | else |
698dcdb6 | 2741 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2742 | fi |
698dcdb6 | 2743 | |
10f2d63a | 2744 | |
698dcdb6 | 2745 | echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6 |
17234b26 | 2746 | echo "configure:2747: checking for --enable-no_rtti" >&5 |
10f2d63a VZ |
2747 | no_cache=0 |
2748 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2749 | if test "${enable_no_rtti+set}" = set; then | |
2750 | enableval="$enable_no_rtti" | |
698dcdb6 | 2751 | |
10f2d63a VZ |
2752 | if test "$enableval" = yes; then |
2753 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2754 | else | |
2755 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2756 | fi | |
698dcdb6 | 2757 | |
10f2d63a | 2758 | else |
698dcdb6 | 2759 | |
10f2d63a VZ |
2760 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` |
2761 | if test "x$LINE" != x ; then | |
2762 | eval "DEFAULT_$LINE" | |
2763 | else | |
2764 | no_cache=1 | |
2765 | fi | |
2766 | ||
2767 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
698dcdb6 VZ |
2768 | |
2769 | fi | |
10f2d63a VZ |
2770 | |
2771 | ||
2772 | eval "$ac_cv_use_no_rtti" | |
2773 | if test "$no_cache" != 1; then | |
2774 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2775 | fi | |
2776 | ||
2777 | if test "$wxUSE_NO_RTTI" = yes; then | |
698dcdb6 | 2778 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2779 | else |
698dcdb6 | 2780 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2781 | fi |
698dcdb6 | 2782 | |
10f2d63a | 2783 | |
698dcdb6 | 2784 | echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6 |
17234b26 | 2785 | echo "configure:2786: checking for --enable-no_exceptions" >&5 |
10f2d63a VZ |
2786 | no_cache=0 |
2787 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2788 | if test "${enable_no_exceptions+set}" = set; then | |
2789 | enableval="$enable_no_exceptions" | |
698dcdb6 | 2790 | |
10f2d63a VZ |
2791 | if test "$enableval" = yes; then |
2792 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2793 | else | |
2794 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2795 | fi | |
698dcdb6 | 2796 | |
10f2d63a | 2797 | else |
698dcdb6 | 2798 | |
10f2d63a VZ |
2799 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` |
2800 | if test "x$LINE" != x ; then | |
2801 | eval "DEFAULT_$LINE" | |
2802 | else | |
2803 | no_cache=1 | |
2804 | fi | |
2805 | ||
2806 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
698dcdb6 VZ |
2807 | |
2808 | fi | |
10f2d63a VZ |
2809 | |
2810 | ||
2811 | eval "$ac_cv_use_no_exceptions" | |
2812 | if test "$no_cache" != 1; then | |
2813 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2814 | fi | |
2815 | ||
2816 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
698dcdb6 | 2817 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2818 | else |
698dcdb6 | 2819 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2820 | fi |
698dcdb6 | 2821 | |
10f2d63a | 2822 | |
698dcdb6 | 2823 | echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6 |
17234b26 | 2824 | echo "configure:2825: checking for --enable-permissive" >&5 |
10f2d63a VZ |
2825 | no_cache=0 |
2826 | # Check whether --enable-permissive or --disable-permissive was given. | |
2827 | if test "${enable_permissive+set}" = set; then | |
2828 | enableval="$enable_permissive" | |
698dcdb6 | 2829 | |
10f2d63a VZ |
2830 | if test "$enableval" = yes; then |
2831 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2832 | else | |
2833 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2834 | fi | |
698dcdb6 | 2835 | |
10f2d63a | 2836 | else |
698dcdb6 | 2837 | |
10f2d63a VZ |
2838 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` |
2839 | if test "x$LINE" != x ; then | |
2840 | eval "DEFAULT_$LINE" | |
2841 | else | |
2842 | no_cache=1 | |
2843 | fi | |
2844 | ||
2845 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
698dcdb6 VZ |
2846 | |
2847 | fi | |
10f2d63a VZ |
2848 | |
2849 | ||
2850 | eval "$ac_cv_use_permissive" | |
2851 | if test "$no_cache" != 1; then | |
2852 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2853 | fi | |
2854 | ||
2855 | if test "$wxUSE_PERMISSIVE" = yes; then | |
698dcdb6 | 2856 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2857 | else |
698dcdb6 | 2858 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2859 | fi |
698dcdb6 | 2860 | |
10f2d63a | 2861 | |
698dcdb6 | 2862 | echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6 |
17234b26 | 2863 | echo "configure:2864: checking for --enable-no_deps" >&5 |
10f2d63a VZ |
2864 | no_cache=0 |
2865 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2866 | if test "${enable_no_deps+set}" = set; then | |
2867 | enableval="$enable_no_deps" | |
698dcdb6 | 2868 | |
10f2d63a VZ |
2869 | if test "$enableval" = yes; then |
2870 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2871 | else | |
2872 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2873 | fi | |
698dcdb6 | 2874 | |
10f2d63a | 2875 | else |
698dcdb6 | 2876 | |
10f2d63a VZ |
2877 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` |
2878 | if test "x$LINE" != x ; then | |
2879 | eval "DEFAULT_$LINE" | |
2880 | else | |
2881 | no_cache=1 | |
2882 | fi | |
2883 | ||
2884 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
698dcdb6 VZ |
2885 | |
2886 | fi | |
10f2d63a VZ |
2887 | |
2888 | ||
2889 | eval "$ac_cv_use_no_deps" | |
2890 | if test "$no_cache" != 1; then | |
2891 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2892 | fi | |
2893 | ||
2894 | if test "$wxUSE_NO_DEPS" = yes; then | |
698dcdb6 | 2895 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2896 | else |
698dcdb6 | 2897 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2898 | fi |
698dcdb6 VZ |
2899 | |
2900 | ||
10f2d63a | 2901 | |
54276ccf | 2902 | echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6 |
17234b26 | 2903 | echo "configure:2904: checking for --enable-compat20" >&5 |
54276ccf VZ |
2904 | no_cache=0 |
2905 | # Check whether --enable-compat20 or --disable-compat20 was given. | |
2906 | if test "${enable_compat20+set}" = set; then | |
2907 | enableval="$enable_compat20" | |
2908 | ||
2909 | if test "$enableval" = yes; then | |
2910 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes' | |
2911 | else | |
2912 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no' | |
2913 | fi | |
2914 | ||
2915 | else | |
2916 | ||
2917 | LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}` | |
2918 | if test "x$LINE" != x ; then | |
2919 | eval "DEFAULT_$LINE" | |
2920 | else | |
2921 | no_cache=1 | |
2922 | fi | |
2923 | ||
2924 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2 | |
2925 | ||
2926 | fi | |
2927 | ||
2928 | ||
2929 | eval "$ac_cv_use_compat20" | |
2930 | if test "$no_cache" != 1; then | |
2931 | echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp | |
2932 | fi | |
2933 | ||
2934 | if test "$WXWIN_COMPATIBILITY_2" = yes; then | |
2935 | echo "$ac_t""yes" 1>&6 | |
2936 | else | |
2937 | echo "$ac_t""no" 1>&6 | |
2938 | fi | |
2939 | ||
2940 | ||
2941 | echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6 | |
17234b26 | 2942 | echo "configure:2943: checking for --enable-compat22" >&5 |
54276ccf VZ |
2943 | no_cache=0 |
2944 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
2945 | if test "${enable_compat22+set}" = set; then | |
2946 | enableval="$enable_compat22" | |
2947 | ||
2948 | if test "$enableval" = yes; then | |
2949 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
2950 | else | |
2951 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
2952 | fi | |
2953 | ||
2954 | else | |
2955 | ||
2956 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` | |
2957 | if test "x$LINE" != x ; then | |
2958 | eval "DEFAULT_$LINE" | |
2959 | else | |
2960 | no_cache=1 | |
2961 | fi | |
2962 | ||
2963 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
2964 | ||
2965 | fi | |
2966 | ||
2967 | ||
2968 | eval "$ac_cv_use_compat22" | |
2969 | if test "$no_cache" != 1; then | |
2970 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
2971 | fi | |
2972 | ||
2973 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
2974 | echo "$ac_t""yes" 1>&6 | |
2975 | else | |
2976 | echo "$ac_t""no" 1>&6 | |
2977 | fi | |
2978 | ||
2979 | ||
2980 | ||
698dcdb6 VZ |
2981 | |
2982 | echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6 | |
17234b26 | 2983 | echo "configure:2984: checking for --enable-intl" >&5 |
10f2d63a VZ |
2984 | no_cache=0 |
2985 | # Check whether --enable-intl or --disable-intl was given. | |
2986 | if test "${enable_intl+set}" = set; then | |
2987 | enableval="$enable_intl" | |
698dcdb6 | 2988 | |
10f2d63a VZ |
2989 | if test "$enableval" = yes; then |
2990 | ac_cv_use_intl='wxUSE_INTL=yes' | |
2991 | else | |
2992 | ac_cv_use_intl='wxUSE_INTL=no' | |
2993 | fi | |
698dcdb6 | 2994 | |
10f2d63a | 2995 | else |
698dcdb6 | 2996 | |
10f2d63a VZ |
2997 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` |
2998 | if test "x$LINE" != x ; then | |
2999 | eval "DEFAULT_$LINE" | |
3000 | else | |
3001 | no_cache=1 | |
3002 | fi | |
3003 | ||
3004 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
698dcdb6 VZ |
3005 | |
3006 | fi | |
10f2d63a VZ |
3007 | |
3008 | ||
3009 | eval "$ac_cv_use_intl" | |
3010 | if test "$no_cache" != 1; then | |
3011 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
3012 | fi | |
3013 | ||
3014 | if test "$wxUSE_INTL" = yes; then | |
698dcdb6 | 3015 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3016 | else |
698dcdb6 | 3017 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3018 | fi |
698dcdb6 | 3019 | |
10f2d63a | 3020 | |
698dcdb6 | 3021 | echo $ac_n "checking for --enable-config""... $ac_c" 1>&6 |
17234b26 | 3022 | echo "configure:3023: checking for --enable-config" >&5 |
10f2d63a VZ |
3023 | no_cache=0 |
3024 | # Check whether --enable-config or --disable-config was given. | |
3025 | if test "${enable_config+set}" = set; then | |
3026 | enableval="$enable_config" | |
698dcdb6 | 3027 | |
10f2d63a VZ |
3028 | if test "$enableval" = yes; then |
3029 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
3030 | else | |
3031 | ac_cv_use_config='wxUSE_CONFIG=no' | |
3032 | fi | |
698dcdb6 | 3033 | |
10f2d63a | 3034 | else |
698dcdb6 | 3035 | |
10f2d63a VZ |
3036 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` |
3037 | if test "x$LINE" != x ; then | |
3038 | eval "DEFAULT_$LINE" | |
3039 | else | |
3040 | no_cache=1 | |
3041 | fi | |
3042 | ||
3043 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
698dcdb6 VZ |
3044 | |
3045 | fi | |
10f2d63a VZ |
3046 | |
3047 | ||
3048 | eval "$ac_cv_use_config" | |
3049 | if test "$no_cache" != 1; then | |
3050 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
3051 | fi | |
3052 | ||
3053 | if test "$wxUSE_CONFIG" = yes; then | |
698dcdb6 | 3054 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3055 | else |
698dcdb6 | 3056 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3057 | fi |
698dcdb6 VZ |
3058 | |
3059 | ||
b12915c1 | 3060 | |
a1622950 | 3061 | echo $ac_n "checking for --enable-protocols""... $ac_c" 1>&6 |
17234b26 | 3062 | echo "configure:3063: checking for --enable-protocols" >&5 |
a1622950 VZ |
3063 | no_cache=0 |
3064 | # Check whether --enable-protocols or --disable-protocols was given. | |
3065 | if test "${enable_protocols+set}" = set; then | |
3066 | enableval="$enable_protocols" | |
3067 | ||
3068 | if test "$enableval" = yes; then | |
3069 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
3070 | else | |
3071 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
3072 | fi | |
3073 | ||
3074 | else | |
3075 | ||
3076 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
3077 | if test "x$LINE" != x ; then | |
3078 | eval "DEFAULT_$LINE" | |
3079 | else | |
3080 | no_cache=1 | |
3081 | fi | |
3082 | ||
3083 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
3084 | ||
3085 | fi | |
3086 | ||
3087 | ||
3088 | eval "$ac_cv_use_protocols" | |
3089 | if test "$no_cache" != 1; then | |
3090 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
3091 | fi | |
3092 | ||
3093 | if test "$wxUSE_PROTOCOL" = yes; then | |
3094 | echo "$ac_t""yes" 1>&6 | |
3095 | else | |
3096 | echo "$ac_t""no" 1>&6 | |
3097 | fi | |
3098 | ||
3099 | ||
3100 | echo $ac_n "checking for --enable-ftp""... $ac_c" 1>&6 | |
17234b26 | 3101 | echo "configure:3102: checking for --enable-ftp" >&5 |
a1622950 VZ |
3102 | no_cache=0 |
3103 | # Check whether --enable-ftp or --disable-ftp was given. | |
3104 | if test "${enable_ftp+set}" = set; then | |
3105 | enableval="$enable_ftp" | |
3106 | ||
3107 | if test "$enableval" = yes; then | |
3108 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
3109 | else | |
3110 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
3111 | fi | |
3112 | ||
3113 | else | |
3114 | ||
3115 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
3116 | if test "x$LINE" != x ; then | |
3117 | eval "DEFAULT_$LINE" | |
3118 | else | |
3119 | no_cache=1 | |
3120 | fi | |
3121 | ||
3122 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
3123 | ||
3124 | fi | |
3125 | ||
3126 | ||
3127 | eval "$ac_cv_use_ftp" | |
3128 | if test "$no_cache" != 1; then | |
3129 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
3130 | fi | |
3131 | ||
3132 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
3133 | echo "$ac_t""yes" 1>&6 | |
3134 | else | |
3135 | echo "$ac_t""no" 1>&6 | |
3136 | fi | |
3137 | ||
3138 | ||
3139 | echo $ac_n "checking for --enable-http""... $ac_c" 1>&6 | |
17234b26 | 3140 | echo "configure:3141: checking for --enable-http" >&5 |
a1622950 VZ |
3141 | no_cache=0 |
3142 | # Check whether --enable-http or --disable-http was given. | |
3143 | if test "${enable_http+set}" = set; then | |
3144 | enableval="$enable_http" | |
3145 | ||
3146 | if test "$enableval" = yes; then | |
3147 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
3148 | else | |
3149 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
3150 | fi | |
3151 | ||
3152 | else | |
3153 | ||
3154 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
3155 | if test "x$LINE" != x ; then | |
3156 | eval "DEFAULT_$LINE" | |
3157 | else | |
3158 | no_cache=1 | |
3159 | fi | |
3160 | ||
3161 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
3162 | ||
3163 | fi | |
3164 | ||
3165 | ||
3166 | eval "$ac_cv_use_http" | |
3167 | if test "$no_cache" != 1; then | |
3168 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
3169 | fi | |
3170 | ||
3171 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
3172 | echo "$ac_t""yes" 1>&6 | |
3173 | else | |
3174 | echo "$ac_t""no" 1>&6 | |
3175 | fi | |
3176 | ||
3177 | ||
3178 | echo $ac_n "checking for --enable-fileproto""... $ac_c" 1>&6 | |
17234b26 | 3179 | echo "configure:3180: checking for --enable-fileproto" >&5 |
a1622950 VZ |
3180 | no_cache=0 |
3181 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
3182 | if test "${enable_fileproto+set}" = set; then | |
3183 | enableval="$enable_fileproto" | |
3184 | ||
3185 | if test "$enableval" = yes; then | |
3186 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
3187 | else | |
3188 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
3189 | fi | |
3190 | ||
3191 | else | |
3192 | ||
3193 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
3194 | if test "x$LINE" != x ; then | |
3195 | eval "DEFAULT_$LINE" | |
3196 | else | |
3197 | no_cache=1 | |
3198 | fi | |
3199 | ||
3200 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
3201 | ||
3202 | fi | |
3203 | ||
3204 | ||
3205 | eval "$ac_cv_use_fileproto" | |
3206 | if test "$no_cache" != 1; then | |
3207 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
3208 | fi | |
3209 | ||
3210 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
3211 | echo "$ac_t""yes" 1>&6 | |
3212 | else | |
3213 | echo "$ac_t""no" 1>&6 | |
3214 | fi | |
3215 | ||
3216 | ||
698dcdb6 | 3217 | echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6 |
17234b26 | 3218 | echo "configure:3219: checking for --enable-sockets" >&5 |
10f2d63a VZ |
3219 | no_cache=0 |
3220 | # Check whether --enable-sockets or --disable-sockets was given. | |
3221 | if test "${enable_sockets+set}" = set; then | |
3222 | enableval="$enable_sockets" | |
698dcdb6 | 3223 | |
10f2d63a VZ |
3224 | if test "$enableval" = yes; then |
3225 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
3226 | else | |
3227 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
3228 | fi | |
698dcdb6 | 3229 | |
10f2d63a | 3230 | else |
698dcdb6 | 3231 | |
10f2d63a VZ |
3232 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` |
3233 | if test "x$LINE" != x ; then | |
3234 | eval "DEFAULT_$LINE" | |
3235 | else | |
3236 | no_cache=1 | |
3237 | fi | |
3238 | ||
3239 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
698dcdb6 VZ |
3240 | |
3241 | fi | |
10f2d63a VZ |
3242 | |
3243 | ||
3244 | eval "$ac_cv_use_sockets" | |
3245 | if test "$no_cache" != 1; then | |
3246 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
3247 | fi | |
3248 | ||
3249 | if test "$wxUSE_SOCKETS" = yes; then | |
698dcdb6 | 3250 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3251 | else |
698dcdb6 | 3252 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3253 | fi |
698dcdb6 | 3254 | |
b12915c1 | 3255 | |
698dcdb6 VZ |
3256 | |
3257 | echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6 | |
17234b26 | 3258 | echo "configure:3259: checking for --enable-ipc" >&5 |
10f2d63a | 3259 | no_cache=0 |
eb4efbdc VZ |
3260 | # Check whether --enable-ipc or --disable-ipc was given. |
3261 | if test "${enable_ipc+set}" = set; then | |
3262 | enableval="$enable_ipc" | |
698dcdb6 | 3263 | |
10f2d63a | 3264 | if test "$enableval" = yes; then |
eb4efbdc | 3265 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 3266 | else |
eb4efbdc | 3267 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a | 3268 | fi |
698dcdb6 | 3269 | |
10f2d63a | 3270 | else |
698dcdb6 | 3271 | |
eb4efbdc | 3272 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
3273 | if test "x$LINE" != x ; then |
3274 | eval "DEFAULT_$LINE" | |
3275 | else | |
3276 | no_cache=1 | |
3277 | fi | |
3278 | ||
eb4efbdc | 3279 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
698dcdb6 VZ |
3280 | |
3281 | fi | |
10f2d63a VZ |
3282 | |
3283 | ||
eb4efbdc | 3284 | eval "$ac_cv_use_ipc" |
10f2d63a | 3285 | if test "$no_cache" != 1; then |
eb4efbdc | 3286 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3287 | fi |
3288 | ||
eb4efbdc | 3289 | if test "$wxUSE_IPC" = yes; then |
698dcdb6 | 3290 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3291 | else |
698dcdb6 | 3292 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3293 | fi |
698dcdb6 VZ |
3294 | |
3295 | ||
eb4efbdc | 3296 | |
1e6feb95 | 3297 | echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6 |
17234b26 | 3298 | echo "configure:3299: checking for --enable-cmdline" >&5 |
1e6feb95 VZ |
3299 | no_cache=0 |
3300 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
3301 | if test "${enable_cmdline+set}" = set; then | |
3302 | enableval="$enable_cmdline" | |
3303 | ||
3304 | if test "$enableval" = yes; then | |
3305 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
3306 | else | |
3307 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
3308 | fi | |
3309 | ||
3310 | else | |
3311 | ||
3312 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
3313 | if test "x$LINE" != x ; then | |
3314 | eval "DEFAULT_$LINE" | |
3315 | else | |
3316 | no_cache=1 | |
3317 | fi | |
3318 | ||
3319 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
3320 | ||
3321 | fi | |
3322 | ||
3323 | ||
3324 | eval "$ac_cv_use_cmdline" | |
3325 | if test "$no_cache" != 1; then | |
3326 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
3327 | fi | |
3328 | ||
3329 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
3330 | echo "$ac_t""yes" 1>&6 | |
3331 | else | |
3332 | echo "$ac_t""no" 1>&6 | |
3333 | fi | |
3334 | ||
3335 | ||
3336 | echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6 | |
17234b26 | 3337 | echo "configure:3338: checking for --enable-datetime" >&5 |
1e6feb95 VZ |
3338 | no_cache=0 |
3339 | # Check whether --enable-datetime or --disable-datetime was given. | |
3340 | if test "${enable_datetime+set}" = set; then | |
3341 | enableval="$enable_datetime" | |
3342 | ||
3343 | if test "$enableval" = yes; then | |
3344 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
3345 | else | |
3346 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
3347 | fi | |
3348 | ||
3349 | else | |
3350 | ||
3351 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
3352 | if test "x$LINE" != x ; then | |
3353 | eval "DEFAULT_$LINE" | |
3354 | else | |
3355 | no_cache=1 | |
3356 | fi | |
3357 | ||
3358 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
3359 | ||
3360 | fi | |
3361 | ||
3362 | ||
3363 | eval "$ac_cv_use_datetime" | |
3364 | if test "$no_cache" != 1; then | |
3365 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
3366 | fi | |
3367 | ||
3368 | if test "$wxUSE_DATETIME" = yes; then | |
3369 | echo "$ac_t""yes" 1>&6 | |
3370 | else | |
3371 | echo "$ac_t""no" 1>&6 | |
3372 | fi | |
3373 | ||
3374 | ||
3375 | echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6 | |
17234b26 | 3376 | echo "configure:3377: checking for --enable-timedate" >&5 |
1e6feb95 VZ |
3377 | no_cache=0 |
3378 | # Check whether --enable-timedate or --disable-timedate was given. | |
3379 | if test "${enable_timedate+set}" = set; then | |
3380 | enableval="$enable_timedate" | |
3381 | ||
3382 | if test "$enableval" = yes; then | |
3383 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
3384 | else | |
3385 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
3386 | fi | |
3387 | ||
3388 | else | |
3389 | ||
3390 | LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}` | |
3391 | if test "x$LINE" != x ; then | |
3392 | eval "DEFAULT_$LINE" | |
3393 | else | |
3394 | no_cache=1 | |
3395 | fi | |
3396 | ||
3397 | ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
3398 | ||
3399 | fi | |
3400 | ||
3401 | ||
3402 | eval "$ac_cv_use_timedate" | |
3403 | if test "$no_cache" != 1; then | |
3404 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
3405 | fi | |
3406 | ||
3407 | if test "$wxUSE_TIMEDATE" = yes; then | |
3408 | echo "$ac_t""yes" 1>&6 | |
3409 | else | |
3410 | echo "$ac_t""no" 1>&6 | |
3411 | fi | |
3412 | ||
3413 | ||
3414 | echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6 | |
17234b26 | 3415 | echo "configure:3416: checking for --enable-stopwatch" >&5 |
1e6feb95 VZ |
3416 | no_cache=0 |
3417 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
3418 | if test "${enable_stopwatch+set}" = set; then | |
3419 | enableval="$enable_stopwatch" | |
3420 | ||
3421 | if test "$enableval" = yes; then | |
3422 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
3423 | else | |
3424 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
3425 | fi | |
3426 | ||
3427 | else | |
3428 | ||
3429 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
3430 | if test "x$LINE" != x ; then | |
3431 | eval "DEFAULT_$LINE" | |
3432 | else | |
3433 | no_cache=1 | |
3434 | fi | |
3435 | ||
3436 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
3437 | ||
3438 | fi | |
3439 | ||
3440 | ||
3441 | eval "$ac_cv_use_stopwatch" | |
3442 | if test "$no_cache" != 1; then | |
3443 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
3444 | fi | |
3445 | ||
3446 | if test "$wxUSE_STOPWATCH" = yes; then | |
3447 | echo "$ac_t""yes" 1>&6 | |
3448 | else | |
3449 | echo "$ac_t""no" 1>&6 | |
3450 | fi | |
3451 | ||
3452 | ||
698dcdb6 | 3453 | echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6 |
17234b26 | 3454 | echo "configure:3455: checking for --enable-dialupman" >&5 |
10f2d63a | 3455 | no_cache=0 |
eb4efbdc VZ |
3456 | # Check whether --enable-dialupman or --disable-dialupman was given. |
3457 | if test "${enable_dialupman+set}" = set; then | |
3458 | enableval="$enable_dialupman" | |
698dcdb6 | 3459 | |
10f2d63a | 3460 | if test "$enableval" = yes; then |
eb4efbdc | 3461 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 3462 | else |
eb4efbdc | 3463 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a | 3464 | fi |
698dcdb6 | 3465 | |
10f2d63a | 3466 | else |
698dcdb6 | 3467 | |
eb4efbdc | 3468 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3469 | if test "x$LINE" != x ; then |
3470 | eval "DEFAULT_$LINE" | |
3471 | else | |
3472 | no_cache=1 | |
3473 | fi | |
3474 | ||
eb4efbdc | 3475 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
698dcdb6 VZ |
3476 | |
3477 | fi | |
10f2d63a VZ |
3478 | |
3479 | ||
eb4efbdc | 3480 | eval "$ac_cv_use_dialupman" |
10f2d63a | 3481 | if test "$no_cache" != 1; then |
eb4efbdc | 3482 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3483 | fi |
3484 | ||
eb4efbdc | 3485 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
698dcdb6 | 3486 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3487 | else |
698dcdb6 | 3488 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3489 | fi |
698dcdb6 | 3490 | |
10f2d63a | 3491 | |
698dcdb6 | 3492 | echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6 |
17234b26 | 3493 | echo "configure:3494: checking for --enable-apple_ieee" >&5 |
10f2d63a VZ |
3494 | no_cache=0 |
3495 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
3496 | if test "${enable_apple_ieee+set}" = set; then | |
3497 | enableval="$enable_apple_ieee" | |
698dcdb6 | 3498 | |
10f2d63a VZ |
3499 | if test "$enableval" = yes; then |
3500 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
3501 | else | |
3502 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
3503 | fi | |
698dcdb6 | 3504 | |
10f2d63a | 3505 | else |
698dcdb6 | 3506 | |
10f2d63a VZ |
3507 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` |
3508 | if test "x$LINE" != x ; then | |
3509 | eval "DEFAULT_$LINE" | |
3510 | else | |
3511 | no_cache=1 | |
3512 | fi | |
3513 | ||
3514 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
698dcdb6 VZ |
3515 | |
3516 | fi | |
10f2d63a VZ |
3517 | |
3518 | ||
3519 | eval "$ac_cv_use_apple_ieee" | |
3520 | if test "$no_cache" != 1; then | |
3521 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
3522 | fi | |
3523 | ||
3524 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
698dcdb6 | 3525 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3526 | else |
698dcdb6 | 3527 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3528 | fi |
698dcdb6 | 3529 | |
10f2d63a | 3530 | |
1e6feb95 | 3531 | echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6 |
17234b26 | 3532 | echo "configure:3533: checking for --enable-timer" >&5 |
10f2d63a | 3533 | no_cache=0 |
1e6feb95 VZ |
3534 | # Check whether --enable-timer or --disable-timer was given. |
3535 | if test "${enable_timer+set}" = set; then | |
3536 | enableval="$enable_timer" | |
698dcdb6 | 3537 | |
10f2d63a | 3538 | if test "$enableval" = yes; then |
1e6feb95 | 3539 | ac_cv_use_timer='wxUSE_TIMER=yes' |
10f2d63a | 3540 | else |
1e6feb95 | 3541 | ac_cv_use_timer='wxUSE_TIMER=no' |
10f2d63a | 3542 | fi |
698dcdb6 | 3543 | |
10f2d63a | 3544 | else |
698dcdb6 | 3545 | |
1e6feb95 | 3546 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3547 | if test "x$LINE" != x ; then |
3548 | eval "DEFAULT_$LINE" | |
3549 | else | |
3550 | no_cache=1 | |
3551 | fi | |
3552 | ||
1e6feb95 | 3553 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER |
698dcdb6 VZ |
3554 | |
3555 | fi | |
10f2d63a VZ |
3556 | |
3557 | ||
1e6feb95 | 3558 | eval "$ac_cv_use_timer" |
10f2d63a | 3559 | if test "$no_cache" != 1; then |
1e6feb95 | 3560 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3561 | fi |
3562 | ||
1e6feb95 | 3563 | if test "$wxUSE_TIMER" = yes; then |
698dcdb6 | 3564 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3565 | else |
698dcdb6 | 3566 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3567 | fi |
698dcdb6 | 3568 | |
10f2d63a | 3569 | |
698dcdb6 | 3570 | echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6 |
17234b26 | 3571 | echo "configure:3572: checking for --enable-wave" >&5 |
10f2d63a VZ |
3572 | no_cache=0 |
3573 | # Check whether --enable-wave or --disable-wave was given. | |
3574 | if test "${enable_wave+set}" = set; then | |
3575 | enableval="$enable_wave" | |
698dcdb6 | 3576 | |
10f2d63a VZ |
3577 | if test "$enableval" = yes; then |
3578 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
3579 | else | |
3580 | ac_cv_use_wave='wxUSE_WAVE=no' | |
3581 | fi | |
698dcdb6 | 3582 | |
10f2d63a | 3583 | else |
698dcdb6 | 3584 | |
10f2d63a VZ |
3585 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` |
3586 | if test "x$LINE" != x ; then | |
3587 | eval "DEFAULT_$LINE" | |
3588 | else | |
3589 | no_cache=1 | |
3590 | fi | |
3591 | ||
3592 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
698dcdb6 VZ |
3593 | |
3594 | fi | |
10f2d63a VZ |
3595 | |
3596 | ||
3597 | eval "$ac_cv_use_wave" | |
3598 | if test "$no_cache" != 1; then | |
3599 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
3600 | fi | |
3601 | ||
3602 | if test "$wxUSE_WAVE" = yes; then | |
698dcdb6 | 3603 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3604 | else |
698dcdb6 | 3605 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3606 | fi |
698dcdb6 | 3607 | |
10f2d63a | 3608 | |
698dcdb6 | 3609 | echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6 |
17234b26 | 3610 | echo "configure:3611: checking for --enable-fraction" >&5 |
10f2d63a VZ |
3611 | no_cache=0 |
3612 | # Check whether --enable-fraction or --disable-fraction was given. | |
3613 | if test "${enable_fraction+set}" = set; then | |
3614 | enableval="$enable_fraction" | |
698dcdb6 | 3615 | |
10f2d63a VZ |
3616 | if test "$enableval" = yes; then |
3617 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
3618 | else | |
3619 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
3620 | fi | |
698dcdb6 | 3621 | |
10f2d63a | 3622 | else |
698dcdb6 | 3623 | |
10f2d63a VZ |
3624 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` |
3625 | if test "x$LINE" != x ; then | |
3626 | eval "DEFAULT_$LINE" | |
3627 | else | |
3628 | no_cache=1 | |
3629 | fi | |
3630 | ||
3631 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
698dcdb6 VZ |
3632 | |
3633 | fi | |
10f2d63a VZ |
3634 | |
3635 | ||
3636 | eval "$ac_cv_use_fraction" | |
3637 | if test "$no_cache" != 1; then | |
3638 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
3639 | fi | |
3640 | ||
3641 | if test "$wxUSE_FRACTION" = yes; then | |
698dcdb6 | 3642 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3643 | else |
698dcdb6 | 3644 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3645 | fi |
698dcdb6 | 3646 | |
10f2d63a | 3647 | |
698dcdb6 | 3648 | echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6 |
17234b26 | 3649 | echo "configure:3650: checking for --enable-dynlib" >&5 |
10f2d63a VZ |
3650 | no_cache=0 |
3651 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
3652 | if test "${enable_dynlib+set}" = set; then | |
3653 | enableval="$enable_dynlib" | |
698dcdb6 | 3654 | |
10f2d63a VZ |
3655 | if test "$enableval" = yes; then |
3656 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
3657 | else | |
3658 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
3659 | fi | |
698dcdb6 | 3660 | |
10f2d63a | 3661 | else |
698dcdb6 | 3662 | |
10f2d63a VZ |
3663 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` |
3664 | if test "x$LINE" != x ; then | |
3665 | eval "DEFAULT_$LINE" | |
3666 | else | |
3667 | no_cache=1 | |
3668 | fi | |
3669 | ||
3670 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
698dcdb6 VZ |
3671 | |
3672 | fi | |
10f2d63a VZ |
3673 | |
3674 | ||
3675 | eval "$ac_cv_use_dynlib" | |
3676 | if test "$no_cache" != 1; then | |
3677 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
3678 | fi | |
3679 | ||
3680 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
698dcdb6 | 3681 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3682 | else |
698dcdb6 | 3683 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3684 | fi |
698dcdb6 | 3685 | |
10f2d63a | 3686 | |
0b9ab0bd | 3687 | echo $ac_n "checking for --enable-dynamicloader""... $ac_c" 1>&6 |
17234b26 | 3688 | echo "configure:3689: checking for --enable-dynamicloader" >&5 |
0b9ab0bd RL |
3689 | no_cache=0 |
3690 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
3691 | if test "${enable_dynamicloader+set}" = set; then | |
3692 | enableval="$enable_dynamicloader" | |
3693 | ||
3694 | if test "$enableval" = yes; then | |
3695 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
3696 | else | |
3697 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
3698 | fi | |
3699 | ||
3700 | else | |
3701 | ||
3702 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` | |
3703 | if test "x$LINE" != x ; then | |
3704 | eval "DEFAULT_$LINE" | |
3705 | else | |
3706 | no_cache=1 | |
3707 | fi | |
3708 | ||
3709 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
3710 | ||
3711 | fi | |
3712 | ||
3713 | ||
3714 | eval "$ac_cv_use_dynamicloader" | |
3715 | if test "$no_cache" != 1; then | |
3716 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
3717 | fi | |
3718 | ||
3719 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
3720 | echo "$ac_t""yes" 1>&6 | |
3721 | else | |
3722 | echo "$ac_t""no" 1>&6 | |
3723 | fi | |
3724 | ||
3725 | ||
698dcdb6 | 3726 | echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6 |
17234b26 | 3727 | echo "configure:3728: checking for --enable-longlong" >&5 |
10f2d63a VZ |
3728 | no_cache=0 |
3729 | # Check whether --enable-longlong or --disable-longlong was given. | |
3730 | if test "${enable_longlong+set}" = set; then | |
3731 | enableval="$enable_longlong" | |
698dcdb6 | 3732 | |
10f2d63a VZ |
3733 | if test "$enableval" = yes; then |
3734 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
3735 | else | |
3736 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
3737 | fi | |
698dcdb6 | 3738 | |
10f2d63a | 3739 | else |
698dcdb6 | 3740 | |
10f2d63a VZ |
3741 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` |
3742 | if test "x$LINE" != x ; then | |
3743 | eval "DEFAULT_$LINE" | |
3744 | else | |
3745 | no_cache=1 | |
3746 | fi | |
3747 | ||
3748 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
698dcdb6 VZ |
3749 | |
3750 | fi | |
10f2d63a VZ |
3751 | |
3752 | ||
3753 | eval "$ac_cv_use_longlong" | |
3754 | if test "$no_cache" != 1; then | |
3755 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
3756 | fi | |
3757 | ||
3758 | if test "$wxUSE_LONGLONG" = yes; then | |
698dcdb6 | 3759 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3760 | else |
698dcdb6 | 3761 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3762 | fi |
698dcdb6 | 3763 | |
10f2d63a | 3764 | |
698dcdb6 | 3765 | echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6 |
17234b26 | 3766 | echo "configure:3767: checking for --enable-geometry" >&5 |
e8f65ba6 RR |
3767 | no_cache=0 |
3768 | # Check whether --enable-geometry or --disable-geometry was given. | |
3769 | if test "${enable_geometry+set}" = set; then | |
3770 | enableval="$enable_geometry" | |
698dcdb6 | 3771 | |
e8f65ba6 RR |
3772 | if test "$enableval" = yes; then |
3773 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
3774 | else | |
3775 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
3776 | fi | |
698dcdb6 | 3777 | |
e8f65ba6 | 3778 | else |
698dcdb6 | 3779 | |
e8f65ba6 RR |
3780 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` |
3781 | if test "x$LINE" != x ; then | |
3782 | eval "DEFAULT_$LINE" | |
3783 | else | |
3784 | no_cache=1 | |
3785 | fi | |
3786 | ||
3787 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
698dcdb6 VZ |
3788 | |
3789 | fi | |
e8f65ba6 RR |
3790 | |
3791 | ||
3792 | eval "$ac_cv_use_geometry" | |
3793 | if test "$no_cache" != 1; then | |
3794 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
3795 | fi | |
3796 | ||
3797 | if test "$wxUSE_GEOMETRY" = yes; then | |
698dcdb6 | 3798 | echo "$ac_t""yes" 1>&6 |
e8f65ba6 | 3799 | else |
698dcdb6 | 3800 | echo "$ac_t""no" 1>&6 |
e8f65ba6 | 3801 | fi |
698dcdb6 | 3802 | |
e8f65ba6 | 3803 | |
698dcdb6 | 3804 | echo $ac_n "checking for --enable-log""... $ac_c" 1>&6 |
17234b26 | 3805 | echo "configure:3806: checking for --enable-log" >&5 |
10f2d63a VZ |
3806 | no_cache=0 |
3807 | # Check whether --enable-log or --disable-log was given. | |
3808 | if test "${enable_log+set}" = set; then | |
3809 | enableval="$enable_log" | |
698dcdb6 | 3810 | |
10f2d63a VZ |
3811 | if test "$enableval" = yes; then |
3812 | ac_cv_use_log='wxUSE_LOG=yes' | |
3813 | else | |
3814 | ac_cv_use_log='wxUSE_LOG=no' | |
3815 | fi | |
698dcdb6 | 3816 | |
10f2d63a | 3817 | else |
698dcdb6 | 3818 | |
10f2d63a VZ |
3819 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` |
3820 | if test "x$LINE" != x ; then | |
3821 | eval "DEFAULT_$LINE" | |
3822 | else | |
3823 | no_cache=1 | |
3824 | fi | |
3825 | ||
3826 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
698dcdb6 VZ |
3827 | |
3828 | fi | |
10f2d63a VZ |
3829 | |
3830 | ||
3831 | eval "$ac_cv_use_log" | |
3832 | if test "$no_cache" != 1; then | |
3833 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
3834 | fi | |
3835 | ||
3836 | if test "$wxUSE_LOG" = yes; then | |
698dcdb6 | 3837 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3838 | else |
698dcdb6 | 3839 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3840 | fi |
698dcdb6 | 3841 | |
10f2d63a | 3842 | |
698dcdb6 | 3843 | echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6 |
17234b26 | 3844 | echo "configure:3845: checking for --enable-streams" >&5 |
10f2d63a VZ |
3845 | no_cache=0 |
3846 | # Check whether --enable-streams or --disable-streams was given. | |
3847 | if test "${enable_streams+set}" = set; then | |
3848 | enableval="$enable_streams" | |
698dcdb6 | 3849 | |
10f2d63a VZ |
3850 | if test "$enableval" = yes; then |
3851 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
3852 | else | |
3853 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
3854 | fi | |
698dcdb6 | 3855 | |
10f2d63a | 3856 | else |
698dcdb6 | 3857 | |
10f2d63a VZ |
3858 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` |
3859 | if test "x$LINE" != x ; then | |
3860 | eval "DEFAULT_$LINE" | |
3861 | else | |
3862 | no_cache=1 | |
3863 | fi | |
3864 | ||
3865 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
698dcdb6 VZ |
3866 | |
3867 | fi | |
10f2d63a VZ |
3868 | |
3869 | ||
3870 | eval "$ac_cv_use_streams" | |
3871 | if test "$no_cache" != 1; then | |
3872 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
3873 | fi | |
3874 | ||
3875 | if test "$wxUSE_STREAMS" = yes; then | |
698dcdb6 | 3876 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3877 | else |
698dcdb6 | 3878 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3879 | fi |
698dcdb6 | 3880 | |
10f2d63a | 3881 | |
698dcdb6 | 3882 | echo $ac_n "checking for --enable-file""... $ac_c" 1>&6 |
17234b26 | 3883 | echo "configure:3884: checking for --enable-file" >&5 |
10f2d63a VZ |
3884 | no_cache=0 |
3885 | # Check whether --enable-file or --disable-file was given. | |
3886 | if test "${enable_file+set}" = set; then | |
3887 | enableval="$enable_file" | |
698dcdb6 | 3888 | |
10f2d63a VZ |
3889 | if test "$enableval" = yes; then |
3890 | ac_cv_use_file='wxUSE_FILE=yes' | |
3891 | else | |
3892 | ac_cv_use_file='wxUSE_FILE=no' | |
3893 | fi | |
698dcdb6 | 3894 | |
10f2d63a | 3895 | else |
698dcdb6 | 3896 | |
10f2d63a VZ |
3897 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` |
3898 | if test "x$LINE" != x ; then | |
3899 | eval "DEFAULT_$LINE" | |
3900 | else | |
3901 | no_cache=1 | |
3902 | fi | |
3903 | ||
3904 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
698dcdb6 VZ |
3905 | |
3906 | fi | |
10f2d63a VZ |
3907 | |
3908 | ||
3909 | eval "$ac_cv_use_file" | |
3910 | if test "$no_cache" != 1; then | |
3911 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
3912 | fi | |
3913 | ||
3914 | if test "$wxUSE_FILE" = yes; then | |
698dcdb6 | 3915 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3916 | else |
698dcdb6 | 3917 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3918 | fi |
698dcdb6 | 3919 | |
10f2d63a | 3920 | |
1e6feb95 | 3921 | echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6 |
17234b26 | 3922 | echo "configure:3923: checking for --enable-ffile" >&5 |
10f2d63a | 3923 | no_cache=0 |
1e6feb95 VZ |
3924 | # Check whether --enable-ffile or --disable-ffile was given. |
3925 | if test "${enable_ffile+set}" = set; then | |
3926 | enableval="$enable_ffile" | |
698dcdb6 | 3927 | |
10f2d63a | 3928 | if test "$enableval" = yes; then |
1e6feb95 | 3929 | ac_cv_use_ffile='wxUSE_FFILE=yes' |
10f2d63a | 3930 | else |
1e6feb95 | 3931 | ac_cv_use_ffile='wxUSE_FFILE=no' |
10f2d63a | 3932 | fi |
698dcdb6 | 3933 | |
10f2d63a | 3934 | else |
698dcdb6 | 3935 | |
1e6feb95 | 3936 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
3937 | if test "x$LINE" != x ; then |
3938 | eval "DEFAULT_$LINE" | |
3939 | else | |
3940 | no_cache=1 | |
3941 | fi | |
3942 | ||
1e6feb95 | 3943 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE |
698dcdb6 VZ |
3944 | |
3945 | fi | |
10f2d63a VZ |
3946 | |
3947 | ||
1e6feb95 | 3948 | eval "$ac_cv_use_ffile" |
10f2d63a | 3949 | if test "$no_cache" != 1; then |
1e6feb95 | 3950 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3951 | fi |
3952 | ||
1e6feb95 | 3953 | if test "$wxUSE_FFILE" = yes; then |
698dcdb6 | 3954 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3955 | else |
698dcdb6 | 3956 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3957 | fi |
698dcdb6 | 3958 | |
10f2d63a | 3959 | |
a3a584a7 | 3960 | echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6 |
17234b26 | 3961 | echo "configure:3962: checking for --enable-textbuf" >&5 |
a3a584a7 VZ |
3962 | no_cache=0 |
3963 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
3964 | if test "${enable_textbuf+set}" = set; then | |
3965 | enableval="$enable_textbuf" | |
3966 | ||
3967 | if test "$enableval" = yes; then | |
3968 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
3969 | else | |
3970 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
3971 | fi | |
3972 | ||
3973 | else | |
3974 | ||
3975 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` | |
3976 | if test "x$LINE" != x ; then | |
3977 | eval "DEFAULT_$LINE" | |
3978 | else | |
3979 | no_cache=1 | |
3980 | fi | |
3981 | ||
3982 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
3983 | ||
3984 | fi | |
3985 | ||
3986 | ||
3987 | eval "$ac_cv_use_textbuf" | |
3988 | if test "$no_cache" != 1; then | |
3989 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
3990 | fi | |
3991 | ||
3992 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
3993 | echo "$ac_t""yes" 1>&6 | |
3994 | else | |
3995 | echo "$ac_t""no" 1>&6 | |
3996 | fi | |
3997 | ||
3998 | ||
1e6feb95 | 3999 | echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6 |
17234b26 | 4000 | echo "configure:4001: checking for --enable-textfile" >&5 |
10f2d63a | 4001 | no_cache=0 |
1e6feb95 VZ |
4002 | # Check whether --enable-textfile or --disable-textfile was given. |
4003 | if test "${enable_textfile+set}" = set; then | |
4004 | enableval="$enable_textfile" | |
698dcdb6 | 4005 | |
10f2d63a | 4006 | if test "$enableval" = yes; then |
1e6feb95 | 4007 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' |
10f2d63a | 4008 | else |
1e6feb95 | 4009 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' |
10f2d63a | 4010 | fi |
698dcdb6 | 4011 | |
10f2d63a | 4012 | else |
698dcdb6 | 4013 | |
1e6feb95 | 4014 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4015 | if test "x$LINE" != x ; then |
4016 | eval "DEFAULT_$LINE" | |
4017 | else | |
4018 | no_cache=1 | |
4019 | fi | |
4020 | ||
1e6feb95 | 4021 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE |
698dcdb6 VZ |
4022 | |
4023 | fi | |
10f2d63a VZ |
4024 | |
4025 | ||
1e6feb95 | 4026 | eval "$ac_cv_use_textfile" |
10f2d63a | 4027 | if test "$no_cache" != 1; then |
1e6feb95 | 4028 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4029 | fi |
4030 | ||
1e6feb95 | 4031 | if test "$wxUSE_TEXTFILE" = yes; then |
698dcdb6 | 4032 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4033 | else |
698dcdb6 | 4034 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4035 | fi |
698dcdb6 | 4036 | |
10f2d63a | 4037 | |
1e6feb95 | 4038 | echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6 |
17234b26 | 4039 | echo "configure:4040: checking for --enable-fontmap" >&5 |
10f2d63a | 4040 | no_cache=0 |
1e6feb95 VZ |
4041 | # Check whether --enable-fontmap or --disable-fontmap was given. |
4042 | if test "${enable_fontmap+set}" = set; then | |
4043 | enableval="$enable_fontmap" | |
698dcdb6 | 4044 | |
10f2d63a | 4045 | if test "$enableval" = yes; then |
1e6feb95 | 4046 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' |
10f2d63a | 4047 | else |
1e6feb95 | 4048 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' |
10f2d63a | 4049 | fi |
698dcdb6 | 4050 | |
10f2d63a | 4051 | else |
698dcdb6 | 4052 | |
1e6feb95 | 4053 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` |
10f2d63a VZ |
4054 | if test "x$LINE" != x ; then |
4055 | eval "DEFAULT_$LINE" | |
4056 | else | |
4057 | no_cache=1 | |
4058 | fi | |
4059 | ||
1e6feb95 | 4060 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP |
698dcdb6 VZ |
4061 | |
4062 | fi | |
10f2d63a VZ |
4063 | |
4064 | ||
1e6feb95 | 4065 | eval "$ac_cv_use_fontmap" |
10f2d63a | 4066 | if test "$no_cache" != 1; then |
1e6feb95 | 4067 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4068 | fi |
4069 | ||
1e6feb95 | 4070 | if test "$wxUSE_FONTMAP" = yes; then |
698dcdb6 | 4071 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4072 | else |
698dcdb6 | 4073 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4074 | fi |
698dcdb6 | 4075 | |
10f2d63a | 4076 | |
1e6feb95 | 4077 | echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6 |
17234b26 | 4078 | echo "configure:4079: checking for --enable-unicode" >&5 |
10f2d63a | 4079 | no_cache=0 |
1e6feb95 VZ |
4080 | # Check whether --enable-unicode or --disable-unicode was given. |
4081 | if test "${enable_unicode+set}" = set; then | |
4082 | enableval="$enable_unicode" | |
4083 | ||
4084 | if test "$enableval" = yes; then | |
4085 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
4086 | else | |
4087 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
4088 | fi | |
4089 | ||
4090 | else | |
4091 | ||
4092 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
4093 | if test "x$LINE" != x ; then | |
4094 | eval "DEFAULT_$LINE" | |
4095 | else | |
4096 | no_cache=1 | |
4097 | fi | |
4098 | ||
4099 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
4100 | ||
4101 | fi | |
4102 | ||
4103 | ||
4104 | eval "$ac_cv_use_unicode" | |
4105 | if test "$no_cache" != 1; then | |
4106 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
4107 | fi | |
4108 | ||
4109 | if test "$wxUSE_UNICODE" = yes; then | |
4110 | echo "$ac_t""yes" 1>&6 | |
4111 | else | |
4112 | echo "$ac_t""no" 1>&6 | |
4113 | fi | |
4114 | ||
4115 | ||
a72a4bfa | 4116 | echo $ac_n "checking for --enable-mslu""... $ac_c" 1>&6 |
17234b26 | 4117 | echo "configure:4118: checking for --enable-mslu" >&5 |
a72a4bfa VS |
4118 | no_cache=0 |
4119 | # Check whether --enable-mslu or --disable-mslu was given. | |
4120 | if test "${enable_mslu+set}" = set; then | |
4121 | enableval="$enable_mslu" | |
4122 | ||
4123 | if test "$enableval" = yes; then | |
4124 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
4125 | else | |
4126 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
4127 | fi | |
4128 | ||
4129 | else | |
4130 | ||
4131 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` | |
4132 | if test "x$LINE" != x ; then | |
4133 | eval "DEFAULT_$LINE" | |
4134 | else | |
4135 | no_cache=1 | |
4136 | fi | |
4137 | ||
4138 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
4139 | ||
4140 | fi | |
4141 | ||
4142 | ||
4143 | eval "$ac_cv_use_mslu" | |
4144 | if test "$no_cache" != 1; then | |
4145 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
4146 | fi | |
4147 | ||
4148 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
4149 | echo "$ac_t""yes" 1>&6 | |
4150 | else | |
4151 | echo "$ac_t""no" 1>&6 | |
4152 | fi | |
4153 | ||
4154 | ||
1e6feb95 | 4155 | echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6 |
17234b26 | 4156 | echo "configure:4157: checking for --enable-wxprintfv" >&5 |
1e6feb95 VZ |
4157 | no_cache=0 |
4158 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
4159 | if test "${enable_wxprintfv+set}" = set; then | |
4160 | enableval="$enable_wxprintfv" | |
4161 | ||
4162 | if test "$enableval" = yes; then | |
10f2d63a VZ |
4163 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' |
4164 | else | |
4165 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
4166 | fi | |
698dcdb6 | 4167 | |
10f2d63a | 4168 | else |
698dcdb6 | 4169 | |
10f2d63a VZ |
4170 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` |
4171 | if test "x$LINE" != x ; then | |
4172 | eval "DEFAULT_$LINE" | |
4173 | else | |
4174 | no_cache=1 | |
4175 | fi | |
4176 | ||
4177 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
698dcdb6 VZ |
4178 | |
4179 | fi | |
10f2d63a VZ |
4180 | |
4181 | ||
4182 | eval "$ac_cv_use_wxprintfv" | |
4183 | if test "$no_cache" != 1; then | |
4184 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
4185 | fi | |
4186 | ||
4187 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
698dcdb6 | 4188 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4189 | else |
698dcdb6 | 4190 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4191 | fi |
698dcdb6 | 4192 | |
10f2d63a | 4193 | |
698dcdb6 | 4194 | echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6 |
17234b26 | 4195 | echo "configure:4196: checking for --enable-std_iostreams" >&5 |
10f2d63a VZ |
4196 | no_cache=0 |
4197 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
4198 | if test "${enable_std_iostreams+set}" = set; then | |
4199 | enableval="$enable_std_iostreams" | |
698dcdb6 | 4200 | |
10f2d63a VZ |
4201 | if test "$enableval" = yes; then |
4202 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
4203 | else | |
4204 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
4205 | fi | |
698dcdb6 | 4206 | |
10f2d63a | 4207 | else |
698dcdb6 | 4208 | |
10f2d63a VZ |
4209 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
4210 | if test "x$LINE" != x ; then | |
4211 | eval "DEFAULT_$LINE" | |
4212 | else | |
4213 | no_cache=1 | |
4214 | fi | |
4215 | ||
4216 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
698dcdb6 VZ |
4217 | |
4218 | fi | |
10f2d63a VZ |
4219 | |
4220 | ||
4221 | eval "$ac_cv_use_std_iostreams" | |
4222 | if test "$no_cache" != 1; then | |
4223 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
4224 | fi | |
4225 | ||
4226 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
698dcdb6 | 4227 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4228 | else |
698dcdb6 | 4229 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4230 | fi |
698dcdb6 | 4231 | |
10f2d63a | 4232 | |
698dcdb6 | 4233 | echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6 |
17234b26 | 4234 | echo "configure:4235: checking for --enable-filesystem" >&5 |
24528b0c VS |
4235 | no_cache=0 |
4236 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
4237 | if test "${enable_filesystem+set}" = set; then | |
4238 | enableval="$enable_filesystem" | |
698dcdb6 | 4239 | |
24528b0c VS |
4240 | if test "$enableval" = yes; then |
4241 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
4242 | else | |
4243 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
4244 | fi | |
698dcdb6 | 4245 | |
24528b0c | 4246 | else |
698dcdb6 | 4247 | |
24528b0c VS |
4248 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` |
4249 | if test "x$LINE" != x ; then | |
4250 | eval "DEFAULT_$LINE" | |
4251 | else | |
4252 | no_cache=1 | |
4253 | fi | |
4254 | ||
4255 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
698dcdb6 VZ |
4256 | |
4257 | fi | |
24528b0c VS |
4258 | |
4259 | ||
4260 | eval "$ac_cv_use_filesystem" | |
4261 | if test "$no_cache" != 1; then | |
4262 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
4263 | fi | |
4264 | ||
4265 | if test "$wxUSE_FILESYSTEM" = yes; then | |
698dcdb6 | 4266 | echo "$ac_t""yes" 1>&6 |
24528b0c | 4267 | else |
698dcdb6 | 4268 | echo "$ac_t""no" 1>&6 |
24528b0c | 4269 | fi |
698dcdb6 | 4270 | |
24528b0c | 4271 | |
698dcdb6 | 4272 | echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6 |
17234b26 | 4273 | echo "configure:4274: checking for --enable-fs_inet" >&5 |
10f2d63a VZ |
4274 | no_cache=0 |
4275 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
4276 | if test "${enable_fs_inet+set}" = set; then | |
4277 | enableval="$enable_fs_inet" | |
698dcdb6 | 4278 | |
10f2d63a VZ |
4279 | if test "$enableval" = yes; then |
4280 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
4281 | else | |
4282 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
4283 | fi | |
698dcdb6 | 4284 | |
10f2d63a | 4285 | else |
698dcdb6 | 4286 | |
10f2d63a VZ |
4287 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` |
4288 | if test "x$LINE" != x ; then | |
4289 | eval "DEFAULT_$LINE" | |
4290 | else | |
4291 | no_cache=1 | |
4292 | fi | |
4293 | ||
4294 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
698dcdb6 VZ |
4295 | |
4296 | fi | |
10f2d63a VZ |
4297 | |
4298 | ||
4299 | eval "$ac_cv_use_fs_inet" | |
4300 | if test "$no_cache" != 1; then | |
4301 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
4302 | fi | |
4303 | ||
4304 | if test "$wxUSE_FS_INET" = yes; then | |
698dcdb6 | 4305 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4306 | else |
698dcdb6 | 4307 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4308 | fi |
698dcdb6 | 4309 | |
10f2d63a | 4310 | |
698dcdb6 | 4311 | echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6 |
17234b26 | 4312 | echo "configure:4313: checking for --enable-fs_zip" >&5 |
10f2d63a VZ |
4313 | no_cache=0 |
4314 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
4315 | if test "${enable_fs_zip+set}" = set; then | |
4316 | enableval="$enable_fs_zip" | |
698dcdb6 | 4317 | |
10f2d63a VZ |
4318 | if test "$enableval" = yes; then |
4319 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
4320 | else | |
4321 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
4322 | fi | |
698dcdb6 | 4323 | |
10f2d63a | 4324 | else |
698dcdb6 | 4325 | |
10f2d63a VZ |
4326 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` |
4327 | if test "x$LINE" != x ; then | |
4328 | eval "DEFAULT_$LINE" | |
4329 | else | |
4330 | no_cache=1 | |
4331 | fi | |
4332 | ||
4333 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
698dcdb6 VZ |
4334 | |
4335 | fi | |
10f2d63a VZ |
4336 | |
4337 | ||
4338 | eval "$ac_cv_use_fs_zip" | |
4339 | if test "$no_cache" != 1; then | |
4340 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
4341 | fi | |
4342 | ||
4343 | if test "$wxUSE_FS_ZIP" = yes; then | |
698dcdb6 | 4344 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4345 | else |
698dcdb6 | 4346 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4347 | fi |
698dcdb6 | 4348 | |
10f2d63a | 4349 | |
698dcdb6 | 4350 | echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6 |
17234b26 | 4351 | echo "configure:4352: checking for --enable-zipstream" >&5 |
10f2d63a VZ |
4352 | no_cache=0 |
4353 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
4354 | if test "${enable_zipstream+set}" = set; then | |
4355 | enableval="$enable_zipstream" | |
698dcdb6 | 4356 | |
10f2d63a VZ |
4357 | if test "$enableval" = yes; then |
4358 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
4359 | else | |
4360 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
4361 | fi | |
698dcdb6 | 4362 | |
10f2d63a | 4363 | else |
698dcdb6 | 4364 | |
10f2d63a VZ |
4365 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` |
4366 | if test "x$LINE" != x ; then | |
4367 | eval "DEFAULT_$LINE" | |
4368 | else | |
4369 | no_cache=1 | |
4370 | fi | |
4371 | ||
4372 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
698dcdb6 VZ |
4373 | |
4374 | fi | |
10f2d63a VZ |
4375 | |
4376 | ||
4377 | eval "$ac_cv_use_zipstream" | |
4378 | if test "$no_cache" != 1; then | |
4379 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
4380 | fi | |
4381 | ||
4382 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
698dcdb6 | 4383 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4384 | else |
698dcdb6 | 4385 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4386 | fi |
698dcdb6 | 4387 | |
10f2d63a | 4388 | |
698dcdb6 VZ |
4389 | |
4390 | echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6 | |
17234b26 | 4391 | echo "configure:4392: checking for --enable-catch_segvs" >&5 |
eb4efbdc VZ |
4392 | no_cache=0 |
4393 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
4394 | if test "${enable_catch_segvs+set}" = set; then | |
4395 | enableval="$enable_catch_segvs" | |
698dcdb6 | 4396 | |
eb4efbdc VZ |
4397 | if test "$enableval" = yes; then |
4398 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
4399 | else | |
4400 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
4401 | fi | |
698dcdb6 | 4402 | |
eb4efbdc | 4403 | else |
698dcdb6 | 4404 | |
eb4efbdc VZ |
4405 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
4406 | if test "x$LINE" != x ; then | |
4407 | eval "DEFAULT_$LINE" | |
4408 | else | |
4409 | no_cache=1 | |
4410 | fi | |
4411 | ||
4412 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
698dcdb6 VZ |
4413 | |
4414 | fi | |
eb4efbdc VZ |
4415 | |
4416 | ||
4417 | eval "$ac_cv_use_catch_segvs" | |
4418 | if test "$no_cache" != 1; then | |
4419 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4420 | fi | |
4421 | ||
4422 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
698dcdb6 | 4423 | echo "$ac_t""yes" 1>&6 |
eb4efbdc | 4424 | else |
698dcdb6 | 4425 | echo "$ac_t""no" 1>&6 |
eb4efbdc | 4426 | fi |
698dcdb6 | 4427 | |
eb4efbdc | 4428 | |
698dcdb6 | 4429 | echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6 |
17234b26 | 4430 | echo "configure:4431: checking for --enable-snglinst" >&5 |
4f3c5f06 VZ |
4431 | no_cache=0 |
4432 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
4433 | if test "${enable_snglinst+set}" = set; then | |
4434 | enableval="$enable_snglinst" | |
698dcdb6 | 4435 | |
4f3c5f06 VZ |
4436 | if test "$enableval" = yes; then |
4437 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
4438 | else | |
4439 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
4440 | fi | |
698dcdb6 | 4441 | |
4f3c5f06 | 4442 | else |
698dcdb6 | 4443 | |
4f3c5f06 VZ |
4444 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` |
4445 | if test "x$LINE" != x ; then | |
4446 | eval "DEFAULT_$LINE" | |
4447 | else | |
4448 | no_cache=1 | |
4449 | fi | |
4450 | ||
4451 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
698dcdb6 VZ |
4452 | |
4453 | fi | |
4f3c5f06 VZ |
4454 | |
4455 | ||
4456 | eval "$ac_cv_use_snglinst" | |
4457 | if test "$no_cache" != 1; then | |
4458 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
4459 | fi | |
4460 | ||
4461 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
698dcdb6 | 4462 | echo "$ac_t""yes" 1>&6 |
4f3c5f06 | 4463 | else |
698dcdb6 | 4464 | echo "$ac_t""no" 1>&6 |
4f3c5f06 | 4465 | fi |
698dcdb6 VZ |
4466 | |
4467 | ||
eb4efbdc | 4468 | |
1e6feb95 | 4469 | echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6 |
17234b26 | 4470 | echo "configure:4471: checking for --enable-mimetype" >&5 |
1e6feb95 VZ |
4471 | no_cache=0 |
4472 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
4473 | if test "${enable_mimetype+set}" = set; then | |
4474 | enableval="$enable_mimetype" | |
4475 | ||
4476 | if test "$enableval" = yes; then | |
4477 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
4478 | else | |
4479 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
4480 | fi | |
4481 | ||
4482 | else | |
4483 | ||
4484 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
4485 | if test "x$LINE" != x ; then | |
4486 | eval "DEFAULT_$LINE" | |
4487 | else | |
4488 | no_cache=1 | |
4489 | fi | |
4490 | ||
4491 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
4492 | ||
4493 | fi | |
4494 | ||
4495 | ||
4496 | eval "$ac_cv_use_mimetype" | |
4497 | if test "$no_cache" != 1; then | |
4498 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
4499 | fi | |
4500 | ||
4501 | if test "$wxUSE_MIMETYPE" = yes; then | |
4502 | echo "$ac_t""yes" 1>&6 | |
4503 | else | |
4504 | echo "$ac_t""no" 1>&6 | |
4505 | fi | |
4506 | ||
4507 | ||
3e44f09d | 4508 | echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6 |
17234b26 | 4509 | echo "configure:4510: checking for --enable-system_options" >&5 |
3e44f09d VZ |
4510 | no_cache=0 |
4511 | # Check whether --enable-system_options or --disable-system_options was given. | |
4512 | if test "${enable_system_options+set}" = set; then | |
4513 | enableval="$enable_system_options" | |
4514 | ||
4515 | if test "$enableval" = yes; then | |
4516 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
4517 | else | |
4518 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
4519 | fi | |
4520 | ||
4521 | else | |
4522 | ||
4523 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` | |
4524 | if test "x$LINE" != x ; then | |
4525 | eval "DEFAULT_$LINE" | |
4526 | else | |
4527 | no_cache=1 | |
4528 | fi | |
4529 | ||
4530 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
4531 | ||
4532 | fi | |
4533 | ||
4534 | ||
4535 | eval "$ac_cv_use_system_options" | |
4536 | if test "$no_cache" != 1; then | |
4537 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
4538 | fi | |
4539 | ||
4540 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
4541 | echo "$ac_t""yes" 1>&6 | |
4542 | else | |
4543 | echo "$ac_t""no" 1>&6 | |
4544 | fi | |
4545 | ||
4546 | ||
1e6feb95 | 4547 | |
4cdb0ab0 | 4548 | echo $ac_n "checking for --enable-url""... $ac_c" 1>&6 |
17234b26 | 4549 | echo "configure:4550: checking for --enable-url" >&5 |
4cdb0ab0 VS |
4550 | no_cache=0 |
4551 | # Check whether --enable-url or --disable-url was given. | |
4552 | if test "${enable_url+set}" = set; then | |
4553 | enableval="$enable_url" | |
4554 | ||
4555 | if test "$enableval" = yes; then | |
4556 | ac_cv_use_url='wxUSE_URL=yes' | |
4557 | else | |
4558 | ac_cv_use_url='wxUSE_URL=no' | |
4559 | fi | |
4560 | ||
4561 | else | |
4562 | ||
4563 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` | |
4564 | if test "x$LINE" != x ; then | |
4565 | eval "DEFAULT_$LINE" | |
4566 | else | |
4567 | no_cache=1 | |
4568 | fi | |
4569 | ||
4570 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
4571 | ||
4572 | fi | |
4573 | ||
4574 | ||
4575 | eval "$ac_cv_use_url" | |
4576 | if test "$no_cache" != 1; then | |
4577 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
4578 | fi | |
4579 | ||
4580 | if test "$wxUSE_URL" = yes; then | |
4581 | echo "$ac_t""yes" 1>&6 | |
4582 | else | |
4583 | echo "$ac_t""no" 1>&6 | |
4584 | fi | |
4585 | ||
4586 | ||
4587 | echo $ac_n "checking for --enable-protocol""... $ac_c" 1>&6 | |
17234b26 | 4588 | echo "configure:4589: checking for --enable-protocol" >&5 |
4cdb0ab0 VS |
4589 | no_cache=0 |
4590 | # Check whether --enable-protocol or --disable-protocol was given. | |
4591 | if test "${enable_protocol+set}" = set; then | |
4592 | enableval="$enable_protocol" | |
4593 | ||
4594 | if test "$enableval" = yes; then | |
4595 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
4596 | else | |
4597 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
4598 | fi | |
4599 | ||
4600 | else | |
4601 | ||
4602 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
4603 | if test "x$LINE" != x ; then | |
4604 | eval "DEFAULT_$LINE" | |
4605 | else | |
4606 | no_cache=1 | |
4607 | fi | |
4608 | ||
4609 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
4610 | ||
4611 | fi | |
4612 | ||
4613 | ||
4614 | eval "$ac_cv_use_protocol" | |
4615 | if test "$no_cache" != 1; then | |
4616 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
4617 | fi | |
4618 | ||
4619 | if test "$wxUSE_PROTOCOL" = yes; then | |
4620 | echo "$ac_t""yes" 1>&6 | |
4621 | else | |
4622 | echo "$ac_t""no" 1>&6 | |
4623 | fi | |
4624 | ||
4625 | ||
4626 | echo $ac_n "checking for --enable-protocol_http""... $ac_c" 1>&6 | |
17234b26 | 4627 | echo "configure:4628: checking for --enable-protocol_http" >&5 |
4cdb0ab0 VS |
4628 | no_cache=0 |
4629 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
4630 | if test "${enable_protocol_http+set}" = set; then | |
4631 | enableval="$enable_protocol_http" | |
4632 | ||
4633 | if test "$enableval" = yes; then | |
4634 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
4635 | else | |
4636 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
4637 | fi | |
4638 | ||
4639 | else | |
4640 | ||
4641 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
4642 | if test "x$LINE" != x ; then | |
4643 | eval "DEFAULT_$LINE" | |
4644 | else | |
4645 | no_cache=1 | |
4646 | fi | |
4647 | ||
4648 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
4649 | ||
4650 | fi | |
4651 | ||
4652 | ||
4653 | eval "$ac_cv_use_protocol_http" | |
4654 | if test "$no_cache" != 1; then | |
4655 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
4656 | fi | |
4657 | ||
4658 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
4659 | echo "$ac_t""yes" 1>&6 | |
4660 | else | |
4661 | echo "$ac_t""no" 1>&6 | |
4662 | fi | |
4663 | ||
4664 | ||
4665 | echo $ac_n "checking for --enable-protocol_ftp""... $ac_c" 1>&6 | |
17234b26 | 4666 | echo "configure:4667: checking for --enable-protocol_ftp" >&5 |
4cdb0ab0 VS |
4667 | no_cache=0 |
4668 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
4669 | if test "${enable_protocol_ftp+set}" = set; then | |
4670 | enableval="$enable_protocol_ftp" | |
4671 | ||
4672 | if test "$enableval" = yes; then | |
4673 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4674 | else | |
4675 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
4676 | fi | |
4677 | ||
4678 | else | |
4679 | ||
4680 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
4681 | if test "x$LINE" != x ; then | |
4682 | eval "DEFAULT_$LINE" | |
4683 | else | |
4684 | no_cache=1 | |
4685 | fi | |
4686 | ||
4687 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
4688 | ||
4689 | fi | |
4690 | ||
4691 | ||
4692 | eval "$ac_cv_use_protocol_ftp" | |
4693 | if test "$no_cache" != 1; then | |
4694 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
4695 | fi | |
4696 | ||
4697 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
4698 | echo "$ac_t""yes" 1>&6 | |
4699 | else | |
4700 | echo "$ac_t""no" 1>&6 | |
4701 | fi | |
4702 | ||
4703 | ||
4704 | echo $ac_n "checking for --enable-protocol_file""... $ac_c" 1>&6 | |
17234b26 | 4705 | echo "configure:4706: checking for --enable-protocol_file" >&5 |
4cdb0ab0 VS |
4706 | no_cache=0 |
4707 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
4708 | if test "${enable_protocol_file+set}" = set; then | |
4709 | enableval="$enable_protocol_file" | |
4710 | ||
4711 | if test "$enableval" = yes; then | |
4712 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
4713 | else | |
4714 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
4715 | fi | |
4716 | ||
4717 | else | |
4718 | ||
4719 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
4720 | if test "x$LINE" != x ; then | |
4721 | eval "DEFAULT_$LINE" | |
4722 | else | |
4723 | no_cache=1 | |
4724 | fi | |
4725 | ||
4726 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
4727 | ||
4728 | fi | |
4729 | ||
4730 | ||
4731 | eval "$ac_cv_use_protocol_file" | |
4732 | if test "$no_cache" != 1; then | |
4733 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
4734 | fi | |
4735 | ||
4736 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
4737 | echo "$ac_t""yes" 1>&6 | |
4738 | else | |
4739 | echo "$ac_t""no" 1>&6 | |
4740 | fi | |
4741 | ||
4742 | ||
4743 | ||
4744 | ||
698dcdb6 VZ |
4745 | |
4746 | echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6 | |
17234b26 | 4747 | echo "configure:4748: checking for --enable-threads" >&5 |
10f2d63a VZ |
4748 | no_cache=0 |
4749 | # Check whether --enable-threads or --disable-threads was given. | |
4750 | if test "${enable_threads+set}" = set; then | |
4751 | enableval="$enable_threads" | |
698dcdb6 | 4752 | |
10f2d63a VZ |
4753 | if test "$enableval" = yes; then |
4754 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
4755 | else | |
4756 | ac_cv_use_threads='wxUSE_THREADS=no' | |
4757 | fi | |
698dcdb6 | 4758 | |
10f2d63a | 4759 | else |
698dcdb6 | 4760 | |
10f2d63a VZ |
4761 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` |
4762 | if test "x$LINE" != x ; then | |
4763 | eval "DEFAULT_$LINE" | |
4764 | else | |
4765 | no_cache=1 | |
4766 | fi | |
4767 | ||
4768 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
698dcdb6 VZ |
4769 | |
4770 | fi | |
10f2d63a VZ |
4771 | |
4772 | ||
4773 | eval "$ac_cv_use_threads" | |
4774 | if test "$no_cache" != 1; then | |
4775 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
4776 | fi | |
4777 | ||
4778 | if test "$wxUSE_THREADS" = yes; then | |
698dcdb6 | 4779 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4780 | else |
698dcdb6 | 4781 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4782 | fi |
698dcdb6 | 4783 | |
10f2d63a | 4784 | |
b12915c1 VZ |
4785 | if test "$wxUSE_GUI" = "yes"; then |
4786 | ||
698dcdb6 VZ |
4787 | |
4788 | ||
4789 | echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6 | |
17234b26 | 4790 | echo "configure:4791: checking for --enable-docview" >&5 |
10f2d63a VZ |
4791 | no_cache=0 |
4792 | # Check whether --enable-docview or --disable-docview was given. | |
4793 | if test "${enable_docview+set}" = set; then | |
4794 | enableval="$enable_docview" | |
698dcdb6 | 4795 | |
10f2d63a VZ |
4796 | if test "$enableval" = yes; then |
4797 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
4798 | else | |
4799 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
4800 | fi | |
698dcdb6 | 4801 | |
10f2d63a | 4802 | else |
698dcdb6 | 4803 | |
10f2d63a VZ |
4804 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` |
4805 | if test "x$LINE" != x ; then | |
4806 | eval "DEFAULT_$LINE" | |
4807 | else | |
4808 | no_cache=1 | |
4809 | fi | |
4810 | ||
4811 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
698dcdb6 VZ |
4812 | |
4813 | fi | |
10f2d63a VZ |
4814 | |
4815 | ||
4816 | eval "$ac_cv_use_docview" | |
4817 | if test "$no_cache" != 1; then | |
4818 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
4819 | fi | |
4820 | ||
4821 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
698dcdb6 | 4822 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4823 | else |
698dcdb6 | 4824 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4825 | fi |
698dcdb6 | 4826 | |
10f2d63a | 4827 | |
698dcdb6 | 4828 | echo $ac_n "checking for --enable-help""... $ac_c" 1>&6 |
17234b26 | 4829 | echo "configure:4830: checking for --enable-help" >&5 |
10f2d63a VZ |
4830 | no_cache=0 |
4831 | # Check whether --enable-help or --disable-help was given. | |
4832 | if test "${enable_help+set}" = set; then | |
4833 | enableval="$enable_help" | |
698dcdb6 | 4834 | |
10f2d63a VZ |
4835 | if test "$enableval" = yes; then |
4836 | ac_cv_use_help='wxUSE_HELP=yes' | |
4837 | else | |
4838 | ac_cv_use_help='wxUSE_HELP=no' | |
4839 | fi | |
698dcdb6 | 4840 | |
10f2d63a | 4841 | else |
698dcdb6 | 4842 | |
10f2d63a VZ |
4843 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` |
4844 | if test "x$LINE" != x ; then | |
4845 | eval "DEFAULT_$LINE" | |
4846 | else | |
4847 | no_cache=1 | |
4848 | fi | |
4849 | ||
4850 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
698dcdb6 VZ |
4851 | |
4852 | fi | |
10f2d63a VZ |
4853 | |
4854 | ||
4855 | eval "$ac_cv_use_help" | |
4856 | if test "$no_cache" != 1; then | |
4857 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
4858 | fi | |
4859 | ||
4860 | if test "$wxUSE_HELP" = yes; then | |
698dcdb6 | 4861 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4862 | else |
698dcdb6 | 4863 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4864 | fi |
698dcdb6 | 4865 | |
10f2d63a | 4866 | |
29fd3c0c | 4867 | echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6 |
17234b26 | 4868 | echo "configure:4869: checking for --enable-mshtmlhelp" >&5 |
29fd3c0c VS |
4869 | no_cache=0 |
4870 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
4871 | if test "${enable_mshtmlhelp+set}" = set; then | |
4872 | enableval="$enable_mshtmlhelp" | |
4873 | ||
4874 | if test "$enableval" = yes; then | |
4875 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
4876 | else | |
4877 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
4878 | fi | |
4879 | ||
4880 | else | |
4881 | ||
4882 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` | |
4883 | if test "x$LINE" != x ; then | |
4884 | eval "DEFAULT_$LINE" | |
4885 | else | |
4886 | no_cache=1 | |
4887 | fi | |
4888 | ||
4889 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
4890 | ||
4891 | fi | |
4892 | ||
4893 | ||
4894 | eval "$ac_cv_use_mshtmlhelp" | |
4895 | if test "$no_cache" != 1; then | |
4896 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
4897 | fi | |
4898 | ||
4899 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
4900 | echo "$ac_t""yes" 1>&6 | |
4901 | else | |
4902 | echo "$ac_t""no" 1>&6 | |
4903 | fi | |
4904 | ||
4905 | ||
3379ed37 | 4906 | echo $ac_n "checking for --enable-html""... $ac_c" 1>&6 |
17234b26 | 4907 | echo "configure:4908: checking for --enable-html" >&5 |
3379ed37 VZ |
4908 | no_cache=0 |
4909 | # Check whether --enable-html or --disable-html was given. | |
4910 | if test "${enable_html+set}" = set; then | |
4911 | enableval="$enable_html" | |
4912 | ||
4913 | if test "$enableval" = yes; then | |
4914 | ac_cv_use_html='wxUSE_HTML=yes' | |
4915 | else | |
4916 | ac_cv_use_html='wxUSE_HTML=no' | |
4917 | fi | |
4918 | ||
4919 | else | |
4920 | ||
4921 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
4922 | if test "x$LINE" != x ; then | |
4923 | eval "DEFAULT_$LINE" | |
4924 | else | |
4925 | no_cache=1 | |
4926 | fi | |
4927 | ||
4928 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
4929 | ||
4930 | fi | |
4931 | ||
4932 | ||
4933 | eval "$ac_cv_use_html" | |
4934 | if test "$no_cache" != 1; then | |
4935 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
4936 | fi | |
4937 | ||
4938 | if test "$wxUSE_HTML" = yes; then | |
4939 | echo "$ac_t""yes" 1>&6 | |
4940 | else | |
4941 | echo "$ac_t""no" 1>&6 | |
4942 | fi | |
4943 | ||
4944 | ||
4945 | echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6 | |
17234b26 | 4946 | echo "configure:4947: checking for --enable-htmlhelp" >&5 |
3379ed37 VZ |
4947 | no_cache=0 |
4948 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
4949 | if test "${enable_htmlhelp+set}" = set; then | |
4950 | enableval="$enable_htmlhelp" | |
4951 | ||
4952 | if test "$enableval" = yes; then | |
4953 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
4954 | else | |
4955 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
4956 | fi | |
4957 | ||
4958 | else | |
4959 | ||
4960 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` | |
4961 | if test "x$LINE" != x ; then | |
4962 | eval "DEFAULT_$LINE" | |
4963 | else | |
4964 | no_cache=1 | |
4965 | fi | |
4966 | ||
4967 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
4968 | ||
4969 | fi | |
4970 | ||
4971 | ||
4972 | eval "$ac_cv_use_htmlhelp" | |
4973 | if test "$no_cache" != 1; then | |
4974 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
4975 | fi | |
4976 | ||
4977 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
4978 | echo "$ac_t""yes" 1>&6 | |
4979 | else | |
4980 | echo "$ac_t""no" 1>&6 | |
4981 | fi | |
4982 | ||
4983 | ||
698dcdb6 | 4984 | echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6 |
17234b26 | 4985 | echo "configure:4986: checking for --enable-constraints" >&5 |
10f2d63a VZ |
4986 | no_cache=0 |
4987 | # Check whether --enable-constraints or --disable-constraints was given. | |
4988 | if test "${enable_constraints+set}" = set; then | |
4989 | enableval="$enable_constraints" | |
698dcdb6 | 4990 | |
10f2d63a VZ |
4991 | if test "$enableval" = yes; then |
4992 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
4993 | else | |
4994 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
4995 | fi | |
698dcdb6 | 4996 | |
10f2d63a | 4997 | else |
698dcdb6 | 4998 | |
10f2d63a VZ |
4999 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` |
5000 | if test "x$LINE" != x ; then | |
5001 | eval "DEFAULT_$LINE" | |
5002 | else | |
5003 | no_cache=1 | |
5004 | fi | |
5005 | ||
5006 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
698dcdb6 VZ |
5007 | |
5008 | fi | |
10f2d63a VZ |
5009 | |
5010 | ||
5011 | eval "$ac_cv_use_constraints" | |
5012 | if test "$no_cache" != 1; then | |
5013 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
5014 | fi | |
5015 | ||
5016 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
698dcdb6 | 5017 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5018 | else |
698dcdb6 | 5019 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5020 | fi |
698dcdb6 | 5021 | |
10f2d63a | 5022 | |
698dcdb6 | 5023 | echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6 |
17234b26 | 5024 | echo "configure:5025: checking for --enable-printarch" >&5 |
10f2d63a VZ |
5025 | no_cache=0 |
5026 | # Check whether --enable-printarch or --disable-printarch was given. | |
5027 | if test "${enable_printarch+set}" = set; then | |
5028 | enableval="$enable_printarch" | |
698dcdb6 | 5029 | |
10f2d63a VZ |
5030 | if test "$enableval" = yes; then |
5031 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
5032 | else | |
5033 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
5034 | fi | |
698dcdb6 | 5035 | |
10f2d63a | 5036 | else |
698dcdb6 | 5037 | |
10f2d63a VZ |
5038 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` |
5039 | if test "x$LINE" != x ; then | |
5040 | eval "DEFAULT_$LINE" | |
5041 | else | |
5042 | no_cache=1 | |
5043 | fi | |
5044 | ||
5045 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
698dcdb6 VZ |
5046 | |
5047 | fi | |
10f2d63a VZ |
5048 | |
5049 | ||
5050 | eval "$ac_cv_use_printarch" | |
5051 | if test "$no_cache" != 1; then | |
5052 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
5053 | fi | |
5054 | ||
5055 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
698dcdb6 | 5056 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5057 | else |
698dcdb6 | 5058 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5059 | fi |
698dcdb6 | 5060 | |
10f2d63a | 5061 | |
698dcdb6 | 5062 | echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6 |
17234b26 | 5063 | echo "configure:5064: checking for --enable-mdi" >&5 |
10f2d63a VZ |
5064 | no_cache=0 |
5065 | # Check whether --enable-mdi or --disable-mdi was given. | |
5066 | if test "${enable_mdi+set}" = set; then | |
5067 | enableval="$enable_mdi" | |
698dcdb6 | 5068 | |
10f2d63a VZ |
5069 | if test "$enableval" = yes; then |
5070 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
5071 | else | |
5072 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
5073 | fi | |
698dcdb6 | 5074 | |
10f2d63a | 5075 | else |
698dcdb6 | 5076 | |
10f2d63a VZ |
5077 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` |
5078 | if test "x$LINE" != x ; then | |
5079 | eval "DEFAULT_$LINE" | |
5080 | else | |
5081 | no_cache=1 | |
5082 | fi | |
5083 | ||
5084 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
698dcdb6 VZ |
5085 | |
5086 | fi | |
10f2d63a VZ |
5087 | |
5088 | ||
5089 | eval "$ac_cv_use_mdi" | |
5090 | if test "$no_cache" != 1; then | |
5091 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
5092 | fi | |
5093 | ||
5094 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
698dcdb6 | 5095 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5096 | else |
698dcdb6 | 5097 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5098 | fi |
698dcdb6 VZ |
5099 | |
5100 | ||
1e6feb95 | 5101 | echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6 |
17234b26 | 5102 | echo "configure:5103: checking for --enable-loggui" >&5 |
1e6feb95 VZ |
5103 | no_cache=0 |
5104 | # Check whether --enable-loggui or --disable-loggui was given. | |
5105 | if test "${enable_loggui+set}" = set; then | |
5106 | enableval="$enable_loggui" | |
5107 | ||
5108 | if test "$enableval" = yes; then | |
5109 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
5110 | else | |
5111 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
5112 | fi | |
5113 | ||
5114 | else | |
5115 | ||
5116 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
5117 | if test "x$LINE" != x ; then | |
5118 | eval "DEFAULT_$LINE" | |
5119 | else | |
5120 | no_cache=1 | |
5121 | fi | |
5122 | ||
5123 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
5124 | ||
5125 | fi | |
5126 | ||
5127 | ||
5128 | eval "$ac_cv_use_loggui" | |
5129 | if test "$no_cache" != 1; then | |
5130 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
5131 | fi | |
5132 | ||
5133 | if test "$wxUSE_LOGGUI" = yes; then | |
5134 | echo "$ac_t""yes" 1>&6 | |
5135 | else | |
5136 | echo "$ac_t""no" 1>&6 | |
5137 | fi | |
5138 | ||
5139 | ||
5140 | echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6 | |
17234b26 | 5141 | echo "configure:5142: checking for --enable-logwin" >&5 |
1e6feb95 VZ |
5142 | no_cache=0 |
5143 | # Check whether --enable-logwin or --disable-logwin was given. | |
5144 | if test "${enable_logwin+set}" = set; then | |
5145 | enableval="$enable_logwin" | |
5146 | ||
5147 | if test "$enableval" = yes; then | |
5148 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
5149 | else | |
5150 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
5151 | fi | |
5152 | ||
5153 | else | |
5154 | ||
5155 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
5156 | if test "x$LINE" != x ; then | |
5157 | eval "DEFAULT_$LINE" | |
5158 | else | |
5159 | no_cache=1 | |
5160 | fi | |
5161 | ||
5162 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
5163 | ||
5164 | fi | |
5165 | ||
5166 | ||
5167 | eval "$ac_cv_use_logwin" | |
5168 | if test "$no_cache" != 1; then | |
5169 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
5170 | fi | |
5171 | ||
5172 | if test "$wxUSE_LOGWINDOW" = yes; then | |
5173 | echo "$ac_t""yes" 1>&6 | |
5174 | else | |
5175 | echo "$ac_t""no" 1>&6 | |
5176 | fi | |
5177 | ||
5178 | ||
69d27ff7 | 5179 | echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6 |
17234b26 | 5180 | echo "configure:5181: checking for --enable-logdialog" >&5 |
69d27ff7 MB |
5181 | no_cache=0 |
5182 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
5183 | if test "${enable_logdialog+set}" = set; then | |
5184 | enableval="$enable_logdialog" | |
5185 | ||
5186 | if test "$enableval" = yes; then | |
5187 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
5188 | else | |
5189 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
5190 | fi | |
5191 | ||
5192 | else | |
5193 | ||
5194 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` | |
5195 | if test "x$LINE" != x ; then | |
5196 | eval "DEFAULT_$LINE" | |
5197 | else | |
5198 | no_cache=1 | |
5199 | fi | |
5200 | ||
5201 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
5202 | ||
5203 | fi | |
5204 | ||
5205 | ||
5206 | eval "$ac_cv_use_logdialog" | |
5207 | if test "$no_cache" != 1; then | |
5208 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
5209 | fi | |
5210 | ||
5211 | if test "$wxUSE_LOGDIALOG" = yes; then | |
5212 | echo "$ac_t""yes" 1>&6 | |
5213 | else | |
5214 | echo "$ac_t""no" 1>&6 | |
5215 | fi | |
5216 | ||
5217 | ||
10f2d63a | 5218 | |
698dcdb6 | 5219 | echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6 |
17234b26 | 5220 | echo "configure:5221: checking for --enable-postscript" >&5 |
10f2d63a VZ |
5221 | no_cache=0 |
5222 | # Check whether --enable-postscript or --disable-postscript was given. | |
5223 | if test "${enable_postscript+set}" = set; then | |
5224 | enableval="$enable_postscript" | |
698dcdb6 | 5225 | |
10f2d63a VZ |
5226 | if test "$enableval" = yes; then |
5227 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
5228 | else | |
5229 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
5230 | fi | |
698dcdb6 | 5231 | |
10f2d63a | 5232 | else |
698dcdb6 | 5233 | |
10f2d63a VZ |
5234 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` |
5235 | if test "x$LINE" != x ; then | |
5236 | eval "DEFAULT_$LINE" | |
5237 | else | |
5238 | no_cache=1 | |
5239 | fi | |
5240 | ||
5241 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
698dcdb6 VZ |
5242 | |
5243 | fi | |
10f2d63a VZ |
5244 | |
5245 | ||
5246 | eval "$ac_cv_use_postscript" | |
5247 | if test "$no_cache" != 1; then | |
5248 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
5249 | fi | |
5250 | ||
5251 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
698dcdb6 | 5252 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5253 | else |
698dcdb6 | 5254 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5255 | fi |
698dcdb6 VZ |
5256 | |
5257 | ||
5258 | ||
10f2d63a | 5259 | |
1e6feb95 | 5260 | |
698dcdb6 | 5261 | echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6 |
17234b26 | 5262 | echo "configure:5263: checking for --enable-prologio" >&5 |
10f2d63a VZ |
5263 | no_cache=0 |
5264 | # Check whether --enable-prologio or --disable-prologio was given. | |
5265 | if test "${enable_prologio+set}" = set; then | |
5266 | enableval="$enable_prologio" | |
698dcdb6 | 5267 | |
10f2d63a VZ |
5268 | if test "$enableval" = yes; then |
5269 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
5270 | else | |
5271 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
5272 | fi | |
698dcdb6 | 5273 | |
10f2d63a | 5274 | else |
698dcdb6 | 5275 | |
10f2d63a VZ |
5276 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` |
5277 | if test "x$LINE" != x ; then | |
5278 | eval "DEFAULT_$LINE" | |
5279 | else | |
5280 | no_cache=1 | |
5281 | fi | |
5282 | ||
5283 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
698dcdb6 VZ |
5284 | |
5285 | fi | |
10f2d63a VZ |
5286 | |
5287 | ||
5288 | eval "$ac_cv_use_prologio" | |
5289 | if test "$no_cache" != 1; then | |
5290 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
5291 | fi | |
5292 | ||
5293 | if test "$wxUSE_PROLOGIO" = yes; then | |
698dcdb6 | 5294 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5295 | else |
698dcdb6 | 5296 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5297 | fi |
698dcdb6 | 5298 | |
10f2d63a | 5299 | |
698dcdb6 | 5300 | echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6 |
17234b26 | 5301 | echo "configure:5302: checking for --enable-resources" >&5 |
10f2d63a VZ |
5302 | no_cache=0 |
5303 | # Check whether --enable-resources or --disable-resources was given. | |
5304 | if test "${enable_resources+set}" = set; then | |
5305 | enableval="$enable_resources" | |
698dcdb6 | 5306 | |
10f2d63a VZ |
5307 | if test "$enableval" = yes; then |
5308 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
5309 | else | |
5310 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
5311 | fi | |
698dcdb6 | 5312 | |
10f2d63a | 5313 | else |
698dcdb6 | 5314 | |
10f2d63a VZ |
5315 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` |
5316 | if test "x$LINE" != x ; then | |
5317 | eval "DEFAULT_$LINE" | |
5318 | else | |
5319 | no_cache=1 | |
5320 | fi | |
5321 | ||
5322 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
698dcdb6 VZ |
5323 | |
5324 | fi | |
10f2d63a VZ |
5325 | |
5326 | ||
5327 | eval "$ac_cv_use_resources" | |
5328 | if test "$no_cache" != 1; then | |
5329 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
5330 | fi | |
5331 | ||
5332 | if test "$wxUSE_RESOURCES" = yes; then | |
698dcdb6 | 5333 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5334 | else |
698dcdb6 | 5335 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5336 | fi |
698dcdb6 | 5337 | |
10f2d63a | 5338 | |
698dcdb6 VZ |
5339 | |
5340 | echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6 | |
17234b26 | 5341 | echo "configure:5342: checking for --enable-xresources" >&5 |
10f2d63a VZ |
5342 | no_cache=0 |
5343 | # Check whether --enable-xresources or --disable-xresources was given. | |
5344 | if test "${enable_xresources+set}" = set; then | |
5345 | enableval="$enable_xresources" | |
698dcdb6 | 5346 | |
10f2d63a VZ |
5347 | if test "$enableval" = yes; then |
5348 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
5349 | else | |
5350 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
5351 | fi | |
698dcdb6 | 5352 | |
10f2d63a | 5353 | else |
698dcdb6 | 5354 | |
10f2d63a VZ |
5355 | LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}` |
5356 | if test "x$LINE" != x ; then | |
5357 | eval "DEFAULT_$LINE" | |
5358 | else | |
5359 | no_cache=1 | |
5360 | fi | |
5361 | ||
5362 | ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
698dcdb6 VZ |
5363 | |
5364 | fi | |
10f2d63a VZ |
5365 | |
5366 | ||
5367 | eval "$ac_cv_use_xresources" | |
5368 | if test "$no_cache" != 1; then | |
5369 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
5370 | fi | |
5371 | ||
5372 | if test "$wxUSE_X_RESOURCES" = yes; then | |
698dcdb6 | 5373 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5374 | else |
698dcdb6 | 5375 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5376 | fi |
698dcdb6 VZ |
5377 | |
5378 | ||
10f2d63a | 5379 | |
698dcdb6 VZ |
5380 | |
5381 | echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6 | |
17234b26 | 5382 | echo "configure:5383: checking for --enable-clipboard" >&5 |
10f2d63a VZ |
5383 | no_cache=0 |
5384 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
5385 | if test "${enable_clipboard+set}" = set; then | |
5386 | enableval="$enable_clipboard" | |
698dcdb6 | 5387 | |
10f2d63a VZ |
5388 | if test "$enableval" = yes; then |
5389 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
5390 | else | |
5391 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
5392 | fi | |
698dcdb6 | 5393 | |
10f2d63a | 5394 | else |
698dcdb6 | 5395 | |
10f2d63a VZ |
5396 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` |
5397 | if test "x$LINE" != x ; then | |
5398 | eval "DEFAULT_$LINE" | |
5399 | else | |
5400 | no_cache=1 | |
5401 | fi | |
5402 | ||
5403 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
698dcdb6 VZ |
5404 | |
5405 | fi | |
10f2d63a VZ |
5406 | |
5407 | ||
5408 | eval "$ac_cv_use_clipboard" | |
5409 | if test "$no_cache" != 1; then | |
5410 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
5411 | fi | |
5412 | ||
5413 | if test "$wxUSE_CLIPBOARD" = yes; then | |
698dcdb6 | 5414 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5415 | else |
698dcdb6 | 5416 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5417 | fi |
698dcdb6 | 5418 | |
10f2d63a | 5419 | |
698dcdb6 | 5420 | echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6 |
17234b26 | 5421 | echo "configure:5422: checking for --enable-dnd" >&5 |
10f2d63a VZ |
5422 | no_cache=0 |
5423 | # Check whether --enable-dnd or --disable-dnd was given. | |
5424 | if test "${enable_dnd+set}" = set; then | |
5425 | enableval="$enable_dnd" | |
698dcdb6 | 5426 | |
10f2d63a VZ |
5427 | if test "$enableval" = yes; then |
5428 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
5429 | else | |
5430 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
5431 | fi | |
698dcdb6 | 5432 | |
10f2d63a | 5433 | else |
698dcdb6 | 5434 | |
10f2d63a VZ |
5435 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` |
5436 | if test "x$LINE" != x ; then | |
5437 | eval "DEFAULT_$LINE" | |
5438 | else | |
5439 | no_cache=1 | |
5440 | fi | |
5441 | ||
5442 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
698dcdb6 VZ |
5443 | |
5444 | fi | |
10f2d63a VZ |
5445 | |
5446 | ||
5447 | eval "$ac_cv_use_dnd" | |
5448 | if test "$no_cache" != 1; then | |
5449 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
5450 | fi | |
5451 | ||
5452 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
698dcdb6 | 5453 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5454 | else |
698dcdb6 | 5455 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5456 | fi |
698dcdb6 | 5457 | |
10f2d63a | 5458 | |
698dcdb6 | 5459 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
17234b26 | 5460 | echo "configure:5461: checking for --enable-metafile" >&5 |
b64f0a5f RL |
5461 | no_cache=0 |
5462 | # Check whether --enable-metafile or --disable-metafile was given. | |
5463 | if test "${enable_metafile+set}" = set; then | |
5464 | enableval="$enable_metafile" | |
698dcdb6 | 5465 | |
b64f0a5f RL |
5466 | if test "$enableval" = yes; then |
5467 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
5468 | else | |
5469 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
5470 | fi | |
698dcdb6 | 5471 | |
b64f0a5f | 5472 | else |
698dcdb6 | 5473 | |
b64f0a5f RL |
5474 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
5475 | if test "x$LINE" != x ; then | |
5476 | eval "DEFAULT_$LINE" | |
5477 | else | |
5478 | no_cache=1 | |
5479 | fi | |
5480 | ||
5481 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
698dcdb6 VZ |
5482 | |
5483 | fi | |
b64f0a5f RL |
5484 | |
5485 | ||
5486 | eval "$ac_cv_use_metafile" | |
5487 | if test "$no_cache" != 1; then | |
5488 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
5489 | fi | |
5490 | ||
5491 | if test "$wxUSE_METAFILE" = yes; then | |
698dcdb6 | 5492 | echo "$ac_t""yes" 1>&6 |
b64f0a5f | 5493 | else |
698dcdb6 | 5494 | echo "$ac_t""no" 1>&6 |
b64f0a5f | 5495 | fi |
698dcdb6 VZ |
5496 | |
5497 | ||
10f2d63a | 5498 | |
24176f2c | 5499 | echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6 |
17234b26 | 5500 | echo "configure:5501: checking for --enable-treelayout" >&5 |
10f2d63a | 5501 | no_cache=0 |
24176f2c GD |
5502 | # Check whether --enable-treelayout or --disable-treelayout was given. |
5503 | if test "${enable_treelayout+set}" = set; then | |
5504 | enableval="$enable_treelayout" | |
698dcdb6 | 5505 | |
10f2d63a | 5506 | if test "$enableval" = yes; then |
24176f2c | 5507 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes' |
10f2d63a | 5508 | else |
24176f2c | 5509 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=no' |
10f2d63a | 5510 | fi |
698dcdb6 | 5511 | |
10f2d63a | 5512 | else |
698dcdb6 | 5513 | |
24176f2c | 5514 | LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}` |
10f2d63a VZ |
5515 | if test "x$LINE" != x ; then |
5516 | eval "DEFAULT_$LINE" | |
5517 | else | |
5518 | no_cache=1 | |
5519 | fi | |
5520 | ||
24176f2c | 5521 | ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT |
698dcdb6 VZ |
5522 | |
5523 | fi | |
10f2d63a VZ |
5524 | |
5525 | ||
24176f2c | 5526 | eval "$ac_cv_use_treelayout" |
10f2d63a | 5527 | if test "$no_cache" != 1; then |
24176f2c | 5528 | echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5529 | fi |
5530 | ||
24176f2c | 5531 | if test "$wxUSE_TREELAYOUT" = yes; then |
698dcdb6 | 5532 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5533 | else |
698dcdb6 | 5534 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5535 | fi |
698dcdb6 | 5536 | |
10f2d63a | 5537 | |
698dcdb6 VZ |
5538 | |
5539 | ||
5540 | echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6 | |
17234b26 | 5541 | echo "configure:5542: checking for --enable-controls" >&5 |
10f2d63a VZ |
5542 | no_cache=0 |
5543 | # Check whether --enable-controls or --disable-controls was given. | |
5544 | if test "${enable_controls+set}" = set; then | |
5545 | enableval="$enable_controls" | |
698dcdb6 | 5546 | |
10f2d63a VZ |
5547 | if test "$enableval" = yes; then |
5548 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
5549 | else | |
5550 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
5551 | fi | |
698dcdb6 | 5552 | |
10f2d63a | 5553 | else |
698dcdb6 | 5554 | |
10f2d63a VZ |
5555 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` |
5556 | if test "x$LINE" != x ; then | |
5557 | eval "DEFAULT_$LINE" | |
5558 | else | |
5559 | no_cache=1 | |
5560 | fi | |
5561 | ||
5562 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
698dcdb6 VZ |
5563 | |
5564 | fi | |
10f2d63a VZ |
5565 | |
5566 | ||
5567 | eval "$ac_cv_use_controls" | |
5568 | if test "$no_cache" != 1; then | |
5569 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
5570 | fi | |
5571 | ||
5572 | if test "$wxUSE_CONTROLS" = yes; then | |
698dcdb6 | 5573 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5574 | else |
698dcdb6 | 5575 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5576 | fi |
698dcdb6 | 5577 | |
10f2d63a VZ |
5578 | |
5579 | if test "$wxUSE_CONTROLS" = "yes"; then | |
5580 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 VZ |
5581 | DEFAULT_wxUSE_BMPBUTTON=yes |
5582 | DEFAULT_wxUSE_BUTTON=yes | |
5583 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5584 | DEFAULT_wxUSE_CARET=yes |
5585 | DEFAULT_wxUSE_COMBOBOX=yes | |
10f2d63a VZ |
5586 | DEFAULT_wxUSE_CHECKBOX=yes |
5587 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
5588 | DEFAULT_wxUSE_CHOICE=yes | |
5589 | DEFAULT_wxUSE_GAUGE=yes | |
5590 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 5591 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
5592 | DEFAULT_wxUSE_IMAGLIST=yes |
5593 | DEFAULT_wxUSE_LISTBOX=yes | |
5594 | DEFAULT_wxUSE_LISTCTRL=yes | |
5595 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 5596 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
5597 | DEFAULT_wxUSE_RADIOBOX=yes |
5598 | DEFAULT_wxUSE_RADIOBTN=yes | |
5599 | DEFAULT_wxUSE_SASH=yes | |
5600 | DEFAULT_wxUSE_SCROLLBAR=yes | |
5601 | DEFAULT_wxUSE_SLIDER=yes | |
5602 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 5603 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
5604 | DEFAULT_wxUSE_SPLITTER=yes |
5605 | DEFAULT_wxUSE_STATBMP=yes | |
5606 | DEFAULT_wxUSE_STATBOX=yes | |
5607 | DEFAULT_wxUSE_STATLINE=yes | |
5608 | DEFAULT_wxUSE_STATUSBAR=yes | |
5609 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 5610 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 5611 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
5612 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
5613 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
5614 | DEFAULT_wxUSE_TOOLTIPS=yes |
5615 | DEFAULT_wxUSE_TREECTRL=yes | |
9f41d601 | 5616 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 5617 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
5618 | elif test "$wxUSE_CONTROLS" = "no"; then |
5619 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 VZ |
5620 | DEFAULT_wxUSE_BMPBUTTON=no |
5621 | DEFAULT_wxUSE_BUTTON=no | |
5622 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5623 | DEFAULT_wxUSE_CARET=no |
5624 | DEFAULT_wxUSE_COMBOBOX=no | |
10f2d63a VZ |
5625 | DEFAULT_wxUSE_CHECKBOX=no |
5626 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
5627 | DEFAULT_wxUSE_CHOICE=no | |
5628 | DEFAULT_wxUSE_GAUGE=no | |
5629 | DEFAULT_wxUSE_GRID=no | |
5630 | DEFAULT_wxUSE_NEW_GRID=no | |
5631 | DEFAULT_wxUSE_IMAGLIST=no | |
5632 | DEFAULT_wxUSE_LISTBOX=no | |
5633 | DEFAULT_wxUSE_LISTCTRL=no | |
5634 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 5635 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
5636 | DEFAULT_wxUSE_RADIOBOX=no |
5637 | DEFAULT_wxUSE_RADIOBTN=no | |
5638 | DEFAULT_wxUSE_SASH=no | |
5639 | DEFAULT_wxUSE_SCROLLBAR=no | |
5640 | DEFAULT_wxUSE_SLIDER=no | |
5641 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 5642 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
5643 | DEFAULT_wxUSE_SPLITTER=no |
5644 | DEFAULT_wxUSE_STATBMP=no | |
5645 | DEFAULT_wxUSE_STATBOX=no | |
5646 | DEFAULT_wxUSE_STATLINE=no | |
5647 | DEFAULT_wxUSE_STATUSBAR=no | |
5648 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 5649 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 5650 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
5651 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
5652 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
5653 | DEFAULT_wxUSE_TOOLTIPS=no |
5654 | DEFAULT_wxUSE_TREECTRL=no | |
9f41d601 | 5655 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 5656 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
5657 | fi |
5658 | ||
698dcdb6 VZ |
5659 | |
5660 | echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6 | |
17234b26 | 5661 | echo "configure:5662: checking for --enable-accel" >&5 |
10f2d63a VZ |
5662 | no_cache=0 |
5663 | # Check whether --enable-accel or --disable-accel was given. | |
5664 | if test "${enable_accel+set}" = set; then | |
5665 | enableval="$enable_accel" | |
698dcdb6 | 5666 | |
10f2d63a VZ |
5667 | if test "$enableval" = yes; then |
5668 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
5669 | else | |
5670 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
5671 | fi | |
698dcdb6 | 5672 | |
10f2d63a | 5673 | else |
698dcdb6 | 5674 | |
10f2d63a VZ |
5675 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` |
5676 | if test "x$LINE" != x ; then | |
5677 | eval "DEFAULT_$LINE" | |
5678 | else | |
5679 | no_cache=1 | |
5680 | fi | |
5681 | ||
5682 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
698dcdb6 VZ |
5683 | |
5684 | fi | |
10f2d63a VZ |
5685 | |
5686 | ||
5687 | eval "$ac_cv_use_accel" | |
5688 | if test "$no_cache" != 1; then | |
5689 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
5690 | fi | |
5691 | ||
5692 | if test "$wxUSE_ACCEL" = yes; then | |
698dcdb6 | 5693 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5694 | else |
698dcdb6 | 5695 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5696 | fi |
698dcdb6 | 5697 | |
10f2d63a | 5698 | |
1e6feb95 | 5699 | echo $ac_n "checking for --enable-button""... $ac_c" 1>&6 |
17234b26 | 5700 | echo "configure:5701: checking for --enable-button" >&5 |
10f2d63a | 5701 | no_cache=0 |
1e6feb95 VZ |
5702 | # Check whether --enable-button or --disable-button was given. |
5703 | if test "${enable_button+set}" = set; then | |
5704 | enableval="$enable_button" | |
698dcdb6 | 5705 | |
10f2d63a | 5706 | if test "$enableval" = yes; then |
1e6feb95 | 5707 | ac_cv_use_button='wxUSE_BUTTON=yes' |
10f2d63a | 5708 | else |
1e6feb95 | 5709 | ac_cv_use_button='wxUSE_BUTTON=no' |
10f2d63a | 5710 | fi |
698dcdb6 | 5711 | |
10f2d63a | 5712 | else |
698dcdb6 | 5713 | |
1e6feb95 | 5714 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` |
10f2d63a VZ |
5715 | if test "x$LINE" != x ; then |
5716 | eval "DEFAULT_$LINE" | |
5717 | else | |
5718 | no_cache=1 | |
5719 | fi | |
5720 | ||
1e6feb95 | 5721 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON |
698dcdb6 VZ |
5722 | |
5723 | fi | |
10f2d63a VZ |
5724 | |
5725 | ||
1e6feb95 | 5726 | eval "$ac_cv_use_button" |
10f2d63a | 5727 | if test "$no_cache" != 1; then |
1e6feb95 | 5728 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5729 | fi |
5730 | ||
1e6feb95 | 5731 | if test "$wxUSE_BUTTON" = yes; then |
698dcdb6 | 5732 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5733 | else |
698dcdb6 | 5734 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5735 | fi |
698dcdb6 | 5736 | |
10f2d63a | 5737 | |
698dcdb6 | 5738 | echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6 |
17234b26 | 5739 | echo "configure:5740: checking for --enable-bmpbutton" >&5 |
10f2d63a VZ |
5740 | no_cache=0 |
5741 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
5742 | if test "${enable_bmpbutton+set}" = set; then | |
5743 | enableval="$enable_bmpbutton" | |
698dcdb6 | 5744 | |
10f2d63a VZ |
5745 | if test "$enableval" = yes; then |
5746 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
5747 | else | |
5748 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
5749 | fi | |
698dcdb6 | 5750 | |
10f2d63a | 5751 | else |
698dcdb6 | 5752 | |
10f2d63a VZ |
5753 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` |
5754 | if test "x$LINE" != x ; then | |
5755 | eval "DEFAULT_$LINE" | |
5756 | else | |
5757 | no_cache=1 | |
5758 | fi | |
5759 | ||
5760 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
698dcdb6 VZ |
5761 | |
5762 | fi | |
10f2d63a VZ |
5763 | |
5764 | ||
5765 | eval "$ac_cv_use_bmpbutton" | |
5766 | if test "$no_cache" != 1; then | |
5767 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
5768 | fi | |
5769 | ||
5770 | if test "$wxUSE_BMPBUTTON" = yes; then | |
698dcdb6 | 5771 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5772 | else |
698dcdb6 | 5773 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5774 | fi |
698dcdb6 | 5775 | |
10f2d63a | 5776 | |
1e6feb95 | 5777 | echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6 |
17234b26 | 5778 | echo "configure:5779: checking for --enable-calendar" >&5 |
1e6feb95 VZ |
5779 | no_cache=0 |
5780 | # Check whether --enable-calendar or --disable-calendar was given. | |
5781 | if test "${enable_calendar+set}" = set; then | |
5782 | enableval="$enable_calendar" | |
5783 | ||
5784 | if test "$enableval" = yes; then | |
5785 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
5786 | else | |
5787 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
5788 | fi | |
5789 | ||
5790 | else | |
5791 | ||
5792 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
5793 | if test "x$LINE" != x ; then | |
5794 | eval "DEFAULT_$LINE" | |
5795 | else | |
5796 | no_cache=1 | |
5797 | fi | |
5798 | ||
5799 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
5800 | ||
5801 | fi | |
5802 | ||
5803 | ||
5804 | eval "$ac_cv_use_calendar" | |
5805 | if test "$no_cache" != 1; then | |
5806 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
5807 | fi | |
5808 | ||
5809 | if test "$wxUSE_CALCTRL" = yes; then | |
5810 | echo "$ac_t""yes" 1>&6 | |
5811 | else | |
5812 | echo "$ac_t""no" 1>&6 | |
5813 | fi | |
5814 | ||
5815 | ||
5816 | echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6 | |
17234b26 | 5817 | echo "configure:5818: checking for --enable-caret" >&5 |
1e6feb95 VZ |
5818 | no_cache=0 |
5819 | # Check whether --enable-caret or --disable-caret was given. | |
5820 | if test "${enable_caret+set}" = set; then | |
5821 | enableval="$enable_caret" | |
5822 | ||
5823 | if test "$enableval" = yes; then | |
5824 | ac_cv_use_caret='wxUSE_CARET=yes' | |
5825 | else | |
5826 | ac_cv_use_caret='wxUSE_CARET=no' | |
5827 | fi | |
5828 | ||
5829 | else | |
5830 | ||
5831 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
5832 | if test "x$LINE" != x ; then | |
5833 | eval "DEFAULT_$LINE" | |
5834 | else | |
5835 | no_cache=1 | |
5836 | fi | |
5837 | ||
5838 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
5839 | ||
5840 | fi | |
5841 | ||
5842 | ||
5843 | eval "$ac_cv_use_caret" | |
5844 | if test "$no_cache" != 1; then | |
5845 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
5846 | fi | |
5847 | ||
5848 | if test "$wxUSE_CARET" = yes; then | |
5849 | echo "$ac_t""yes" 1>&6 | |
5850 | else | |
5851 | echo "$ac_t""no" 1>&6 | |
5852 | fi | |
5853 | ||
5854 | ||
698dcdb6 | 5855 | echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6 |
17234b26 | 5856 | echo "configure:5857: checking for --enable-checkbox" >&5 |
10f2d63a VZ |
5857 | no_cache=0 |
5858 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
5859 | if test "${enable_checkbox+set}" = set; then | |
5860 | enableval="$enable_checkbox" | |
698dcdb6 | 5861 | |
10f2d63a VZ |
5862 | if test "$enableval" = yes; then |
5863 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
5864 | else | |
5865 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
5866 | fi | |
698dcdb6 | 5867 | |
10f2d63a | 5868 | else |
698dcdb6 | 5869 | |
10f2d63a VZ |
5870 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` |
5871 | if test "x$LINE" != x ; then | |
5872 | eval "DEFAULT_$LINE" | |
5873 | else | |
5874 | no_cache=1 | |
5875 | fi | |
5876 | ||
5877 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
698dcdb6 VZ |
5878 | |
5879 | fi | |
10f2d63a VZ |
5880 | |
5881 | ||
5882 | eval "$ac_cv_use_checkbox" | |
5883 | if test "$no_cache" != 1; then | |
5884 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
5885 | fi | |
5886 | ||
5887 | if test "$wxUSE_CHECKBOX" = yes; then | |
698dcdb6 | 5888 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5889 | else |
698dcdb6 | 5890 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5891 | fi |
698dcdb6 | 5892 | |
10f2d63a | 5893 | |
698dcdb6 | 5894 | echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6 |
17234b26 | 5895 | echo "configure:5896: checking for --enable-checklst" >&5 |
10f2d63a VZ |
5896 | no_cache=0 |
5897 | # Check whether --enable-checklst or --disable-checklst was given. | |
5898 | if test "${enable_checklst+set}" = set; then | |
5899 | enableval="$enable_checklst" | |
698dcdb6 | 5900 | |
10f2d63a VZ |
5901 | if test "$enableval" = yes; then |
5902 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
5903 | else | |
5904 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
5905 | fi | |
698dcdb6 | 5906 | |
10f2d63a | 5907 | else |
698dcdb6 | 5908 | |
10f2d63a VZ |
5909 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` |
5910 | if test "x$LINE" != x ; then | |
5911 | eval "DEFAULT_$LINE" | |
5912 | else | |
5913 | no_cache=1 | |
5914 | fi | |
5915 | ||
5916 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
698dcdb6 VZ |
5917 | |
5918 | fi | |
10f2d63a VZ |
5919 | |
5920 | ||
5921 | eval "$ac_cv_use_checklst" | |
5922 | if test "$no_cache" != 1; then | |
5923 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
5924 | fi | |
5925 | ||
5926 | if test "$wxUSE_CHECKLST" = yes; then | |
698dcdb6 | 5927 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5928 | else |
698dcdb6 | 5929 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5930 | fi |
698dcdb6 | 5931 | |
10f2d63a | 5932 | |
698dcdb6 | 5933 | echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6 |
17234b26 | 5934 | echo "configure:5935: checking for --enable-choice" >&5 |
10f2d63a VZ |
5935 | no_cache=0 |
5936 | # Check whether --enable-choice or --disable-choice was given. | |
5937 | if test "${enable_choice+set}" = set; then | |
5938 | enableval="$enable_choice" | |
698dcdb6 | 5939 | |
10f2d63a VZ |
5940 | if test "$enableval" = yes; then |
5941 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
5942 | else | |
5943 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
5944 | fi | |
698dcdb6 | 5945 | |
10f2d63a | 5946 | else |
698dcdb6 | 5947 | |
10f2d63a VZ |
5948 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` |
5949 | if test "x$LINE" != x ; then | |
5950 | eval "DEFAULT_$LINE" | |
5951 | else | |
5952 | no_cache=1 | |
5953 | fi | |
5954 | ||
5955 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
698dcdb6 VZ |
5956 | |
5957 | fi | |
10f2d63a VZ |
5958 | |
5959 | ||
5960 | eval "$ac_cv_use_choice" | |
5961 | if test "$no_cache" != 1; then | |
5962 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
5963 | fi | |
5964 | ||
5965 | if test "$wxUSE_CHOICE" = yes; then | |
698dcdb6 | 5966 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5967 | else |
698dcdb6 | 5968 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5969 | fi |
698dcdb6 | 5970 | |
10f2d63a | 5971 | |
698dcdb6 | 5972 | echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6 |
17234b26 | 5973 | echo "configure:5974: checking for --enable-combobox" >&5 |
10f2d63a VZ |
5974 | no_cache=0 |
5975 | # Check whether --enable-combobox or --disable-combobox was given. | |
5976 | if test "${enable_combobox+set}" = set; then | |
5977 | enableval="$enable_combobox" | |
698dcdb6 | 5978 | |
10f2d63a VZ |
5979 | if test "$enableval" = yes; then |
5980 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
5981 | else | |
5982 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
5983 | fi | |
698dcdb6 | 5984 | |
10f2d63a | 5985 | else |
698dcdb6 | 5986 | |
10f2d63a VZ |
5987 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` |
5988 | if test "x$LINE" != x ; then | |
5989 | eval "DEFAULT_$LINE" | |
5990 | else | |
5991 | no_cache=1 | |
5992 | fi | |
5993 | ||
5994 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
698dcdb6 VZ |
5995 | |
5996 | fi | |
10f2d63a VZ |
5997 | |
5998 | ||
5999 | eval "$ac_cv_use_combobox" | |
6000 | if test "$no_cache" != 1; then | |
6001 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
6002 | fi | |
6003 | ||
6004 | if test "$wxUSE_COMBOBOX" = yes; then | |
698dcdb6 | 6005 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6006 | else |
698dcdb6 | 6007 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6008 | fi |
698dcdb6 | 6009 | |
10f2d63a | 6010 | |
698dcdb6 | 6011 | echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6 |
17234b26 | 6012 | echo "configure:6013: checking for --enable-gauge" >&5 |
10f2d63a VZ |
6013 | no_cache=0 |
6014 | # Check whether --enable-gauge or --disable-gauge was given. | |
6015 | if test "${enable_gauge+set}" = set; then | |
6016 | enableval="$enable_gauge" | |
698dcdb6 | 6017 | |
10f2d63a VZ |
6018 | if test "$enableval" = yes; then |
6019 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
6020 | else | |
6021 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
6022 | fi | |
698dcdb6 | 6023 | |
10f2d63a | 6024 | else |
698dcdb6 | 6025 | |
10f2d63a VZ |
6026 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` |
6027 | if test "x$LINE" != x ; then | |
6028 | eval "DEFAULT_$LINE" | |
6029 | else | |
6030 | no_cache=1 | |
6031 | fi | |
6032 | ||
6033 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
698dcdb6 VZ |
6034 | |
6035 | fi | |
10f2d63a VZ |
6036 | |
6037 | ||
6038 | eval "$ac_cv_use_gauge" | |
6039 | if test "$no_cache" != 1; then | |
6040 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
6041 | fi | |
6042 | ||
6043 | if test "$wxUSE_GAUGE" = yes; then | |
698dcdb6 | 6044 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6045 | else |
698dcdb6 | 6046 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6047 | fi |
698dcdb6 | 6048 | |
10f2d63a | 6049 | |
698dcdb6 | 6050 | echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6 |
17234b26 | 6051 | echo "configure:6052: checking for --enable-grid" >&5 |
10f2d63a VZ |
6052 | no_cache=0 |
6053 | # Check whether --enable-grid or --disable-grid was given. | |
6054 | if test "${enable_grid+set}" = set; then | |
6055 | enableval="$enable_grid" | |
698dcdb6 | 6056 | |
10f2d63a VZ |
6057 | if test "$enableval" = yes; then |
6058 | ac_cv_use_grid='wxUSE_GRID=yes' | |
6059 | else | |
6060 | ac_cv_use_grid='wxUSE_GRID=no' | |
6061 | fi | |
698dcdb6 | 6062 | |
10f2d63a | 6063 | else |
698dcdb6 | 6064 | |
10f2d63a VZ |
6065 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` |
6066 | if test "x$LINE" != x ; then | |
6067 | eval "DEFAULT_$LINE" | |
6068 | else | |
6069 | no_cache=1 | |
6070 | fi | |
6071 | ||
6072 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
698dcdb6 VZ |
6073 | |
6074 | fi | |
10f2d63a VZ |
6075 | |
6076 | ||
6077 | eval "$ac_cv_use_grid" | |
6078 | if test "$no_cache" != 1; then | |
6079 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
6080 | fi | |
6081 | ||
6082 | if test "$wxUSE_GRID" = yes; then | |
698dcdb6 | 6083 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6084 | else |
698dcdb6 | 6085 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6086 | fi |
698dcdb6 | 6087 | |
10f2d63a | 6088 | |
698dcdb6 | 6089 | echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6 |
17234b26 | 6090 | echo "configure:6091: checking for --enable-newgrid" >&5 |
10f2d63a VZ |
6091 | no_cache=0 |
6092 | # Check whether --enable-newgrid or --disable-newgrid was given. | |
6093 | if test "${enable_newgrid+set}" = set; then | |
6094 | enableval="$enable_newgrid" | |
698dcdb6 | 6095 | |
10f2d63a VZ |
6096 | if test "$enableval" = yes; then |
6097 | ac_cv_use_newgrid='wxUSE_NEW_GRID=yes' | |
6098 | else | |
6099 | ac_cv_use_newgrid='wxUSE_NEW_GRID=no' | |
6100 | fi | |
698dcdb6 | 6101 | |
10f2d63a | 6102 | else |
698dcdb6 | 6103 | |
10f2d63a VZ |
6104 | LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}` |
6105 | if test "x$LINE" != x ; then | |
6106 | eval "DEFAULT_$LINE" | |
6107 | else | |
6108 | no_cache=1 | |
6109 | fi | |
6110 | ||
6111 | ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID | |
698dcdb6 VZ |
6112 | |
6113 | fi | |
10f2d63a VZ |
6114 | |
6115 | ||
6116 | eval "$ac_cv_use_newgrid" | |
6117 | if test "$no_cache" != 1; then | |
6118 | echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp | |
6119 | fi | |
6120 | ||
6121 | if test "$wxUSE_NEW_GRID" = yes; then | |
698dcdb6 | 6122 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6123 | else |
698dcdb6 | 6124 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6125 | fi |
698dcdb6 | 6126 | |
10f2d63a | 6127 | |
698dcdb6 | 6128 | echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6 |
17234b26 | 6129 | echo "configure:6130: checking for --enable-imaglist" >&5 |
10f2d63a VZ |
6130 | no_cache=0 |
6131 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
6132 | if test "${enable_imaglist+set}" = set; then | |
6133 | enableval="$enable_imaglist" | |
698dcdb6 | 6134 | |
10f2d63a VZ |
6135 | if test "$enableval" = yes; then |
6136 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
6137 | else | |
6138 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
6139 | fi | |
698dcdb6 | 6140 | |
10f2d63a | 6141 | else |
698dcdb6 | 6142 | |
10f2d63a VZ |
6143 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` |
6144 | if test "x$LINE" != x ; then | |
6145 | eval "DEFAULT_$LINE" | |
6146 | else | |
6147 | no_cache=1 | |
6148 | fi | |
6149 | ||
6150 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
698dcdb6 VZ |
6151 | |
6152 | fi | |
10f2d63a VZ |
6153 | |
6154 | ||
6155 | eval "$ac_cv_use_imaglist" | |
6156 | if test "$no_cache" != 1; then | |
6157 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
6158 | fi | |
6159 | ||
6160 | if test "$wxUSE_IMAGLIST" = yes; then | |
698dcdb6 | 6161 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6162 | else |
698dcdb6 | 6163 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6164 | fi |
698dcdb6 | 6165 | |
10f2d63a | 6166 | |
698dcdb6 | 6167 | echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6 |
17234b26 | 6168 | echo "configure:6169: checking for --enable-listbox" >&5 |
10f2d63a VZ |
6169 | no_cache=0 |
6170 | # Check whether --enable-listbox or --disable-listbox was given. | |
6171 | if test "${enable_listbox+set}" = set; then | |
6172 | enableval="$enable_listbox" | |
698dcdb6 | 6173 | |
10f2d63a VZ |
6174 | if test "$enableval" = yes; then |
6175 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
6176 | else | |
6177 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
6178 | fi | |
698dcdb6 | 6179 | |
10f2d63a | 6180 | else |
698dcdb6 | 6181 | |
10f2d63a VZ |
6182 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` |
6183 | if test "x$LINE" != x ; then | |
6184 | eval "DEFAULT_$LINE" | |
6185 | else | |
6186 | no_cache=1 | |
6187 | fi | |
6188 | ||
6189 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
698dcdb6 VZ |
6190 | |
6191 | fi | |
10f2d63a VZ |
6192 | |
6193 | ||
6194 | eval "$ac_cv_use_listbox" | |
6195 | if test "$no_cache" != 1; then | |
6196 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
6197 | fi | |
6198 | ||
6199 | if test "$wxUSE_LISTBOX" = yes; then | |
698dcdb6 | 6200 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6201 | else |
698dcdb6 | 6202 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6203 | fi |
698dcdb6 | 6204 | |
10f2d63a | 6205 | |
698dcdb6 | 6206 | echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6 |
17234b26 | 6207 | echo "configure:6208: checking for --enable-listctrl" >&5 |
10f2d63a VZ |
6208 | no_cache=0 |
6209 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
6210 | if test "${enable_listctrl+set}" = set; then | |
6211 | enableval="$enable_listctrl" | |
698dcdb6 | 6212 | |
10f2d63a VZ |
6213 | if test "$enableval" = yes; then |
6214 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
6215 | else | |
6216 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
6217 | fi | |
698dcdb6 | 6218 | |
10f2d63a | 6219 | else |
698dcdb6 | 6220 | |
10f2d63a VZ |
6221 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` |
6222 | if test "x$LINE" != x ; then | |
6223 | eval "DEFAULT_$LINE" | |
6224 | else | |
6225 | no_cache=1 | |
6226 | fi | |
6227 | ||
6228 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
698dcdb6 VZ |
6229 | |
6230 | fi | |
10f2d63a VZ |
6231 | |
6232 | ||
6233 | eval "$ac_cv_use_listctrl" | |
6234 | if test "$no_cache" != 1; then | |
6235 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
6236 | fi | |
6237 | ||
6238 | if test "$wxUSE_LISTCTRL" = yes; then | |
698dcdb6 | 6239 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6240 | else |
698dcdb6 | 6241 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6242 | fi |
698dcdb6 | 6243 | |
10f2d63a | 6244 | |
698dcdb6 | 6245 | echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6 |
17234b26 | 6246 | echo "configure:6247: checking for --enable-notebook" >&5 |
10f2d63a VZ |
6247 | no_cache=0 |
6248 | # Check whether --enable-notebook or --disable-notebook was given. | |
6249 | if test "${enable_notebook+set}" = set; then | |
6250 | enableval="$enable_notebook" | |
698dcdb6 | 6251 | |
10f2d63a VZ |
6252 | if test "$enableval" = yes; then |
6253 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
6254 | else | |
6255 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
6256 | fi | |
698dcdb6 | 6257 | |
10f2d63a | 6258 | else |
698dcdb6 | 6259 | |
10f2d63a VZ |
6260 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` |
6261 | if test "x$LINE" != x ; then | |
6262 | eval "DEFAULT_$LINE" | |
6263 | else | |
6264 | no_cache=1 | |
6265 | fi | |
6266 | ||
6267 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
698dcdb6 VZ |
6268 | |
6269 | fi | |
10f2d63a VZ |
6270 | |
6271 | ||
6272 | eval "$ac_cv_use_notebook" | |
6273 | if test "$no_cache" != 1; then | |
6274 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
6275 | fi | |
6276 | ||
6277 | if test "$wxUSE_NOTEBOOK" = yes; then | |
698dcdb6 | 6278 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6279 | else |
698dcdb6 | 6280 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6281 | fi |
698dcdb6 | 6282 | |
10f2d63a | 6283 | |
24176f2c | 6284 | echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6 |
17234b26 | 6285 | echo "configure:6286: checking for --enable-propsheet" >&5 |
24176f2c GD |
6286 | no_cache=0 |
6287 | # Check whether --enable-propsheet or --disable-propsheet was given. | |
6288 | if test "${enable_propsheet+set}" = set; then | |
6289 | enableval="$enable_propsheet" | |
6290 | ||
6291 | if test "$enableval" = yes; then | |
6292 | ac_cv_use_propsheet='wxUSE_PROPSHEET=yes' | |
6293 | else | |
6294 | ac_cv_use_propsheet='wxUSE_PROPSHEET=no' | |
6295 | fi | |
6296 | ||
6297 | else | |
6298 | ||
6299 | LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}` | |
6300 | if test "x$LINE" != x ; then | |
6301 | eval "DEFAULT_$LINE" | |
6302 | else | |
6303 | no_cache=1 | |
6304 | fi | |
6305 | ||
6306 | ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET | |
6307 | ||
6308 | fi | |
6309 | ||
6310 | ||
6311 | eval "$ac_cv_use_propsheet" | |
6312 | if test "$no_cache" != 1; then | |
6313 | echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp | |
6314 | fi | |
6315 | ||
6316 | if test "$wxUSE_PROPSHEET" = yes; then | |
6317 | echo "$ac_t""yes" 1>&6 | |
6318 | else | |
6319 | echo "$ac_t""no" 1>&6 | |
6320 | fi | |
6321 | ||
6322 | ||
698dcdb6 | 6323 | echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6 |
17234b26 | 6324 | echo "configure:6325: checking for --enable-radiobox" >&5 |
10f2d63a VZ |
6325 | no_cache=0 |
6326 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
6327 | if test "${enable_radiobox+set}" = set; then | |
6328 | enableval="$enable_radiobox" | |
698dcdb6 | 6329 | |
10f2d63a VZ |
6330 | if test "$enableval" = yes; then |
6331 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
6332 | else | |
6333 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
6334 | fi | |
698dcdb6 | 6335 | |
10f2d63a | 6336 | else |
698dcdb6 | 6337 | |
10f2d63a VZ |
6338 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` |
6339 | if test "x$LINE" != x ; then | |
6340 | eval "DEFAULT_$LINE" | |
6341 | else | |
6342 | no_cache=1 | |
6343 | fi | |
6344 | ||
6345 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
698dcdb6 VZ |
6346 | |
6347 | fi | |
10f2d63a VZ |
6348 | |
6349 | ||
6350 | eval "$ac_cv_use_radiobox" | |
6351 | if test "$no_cache" != 1; then | |
6352 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
6353 | fi | |
6354 | ||
6355 | if test "$wxUSE_RADIOBOX" = yes; then | |
698dcdb6 | 6356 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6357 | else |
698dcdb6 | 6358 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6359 | fi |
698dcdb6 | 6360 | |
10f2d63a | 6361 | |
698dcdb6 | 6362 | echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6 |
17234b26 | 6363 | echo "configure:6364: checking for --enable-radiobtn" >&5 |
10f2d63a VZ |
6364 | no_cache=0 |
6365 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
6366 | if test "${enable_radiobtn+set}" = set; then | |
6367 | enableval="$enable_radiobtn" | |
698dcdb6 | 6368 | |
10f2d63a VZ |
6369 | if test "$enableval" = yes; then |
6370 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
6371 | else | |
6372 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
6373 | fi | |
698dcdb6 | 6374 | |
10f2d63a | 6375 | else |
698dcdb6 | 6376 | |
10f2d63a VZ |
6377 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` |
6378 | if test "x$LINE" != x ; then | |
6379 | eval "DEFAULT_$LINE" | |
6380 | else | |
6381 | no_cache=1 | |
6382 | fi | |
6383 | ||
6384 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
698dcdb6 VZ |
6385 | |
6386 | fi | |
10f2d63a VZ |
6387 | |
6388 | ||
6389 | eval "$ac_cv_use_radiobtn" | |
6390 | if test "$no_cache" != 1; then | |
6391 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
6392 | fi | |
6393 | ||
6394 | if test "$wxUSE_RADIOBTN" = yes; then | |
698dcdb6 | 6395 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6396 | else |
698dcdb6 | 6397 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6398 | fi |
698dcdb6 | 6399 | |
10f2d63a | 6400 | |
698dcdb6 | 6401 | echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6 |
17234b26 | 6402 | echo "configure:6403: checking for --enable-sash" >&5 |
10f2d63a VZ |
6403 | no_cache=0 |
6404 | # Check whether --enable-sash or --disable-sash was given. | |
6405 | if test "${enable_sash+set}" = set; then | |
6406 | enableval="$enable_sash" | |
698dcdb6 | 6407 | |
10f2d63a VZ |
6408 | if test "$enableval" = yes; then |
6409 | ac_cv_use_sash='wxUSE_SASH=yes' | |
6410 | else | |
6411 | ac_cv_use_sash='wxUSE_SASH=no' | |
6412 | fi | |
698dcdb6 | 6413 | |
10f2d63a | 6414 | else |
698dcdb6 | 6415 | |
10f2d63a VZ |
6416 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` |
6417 | if test "x$LINE" != x ; then | |
6418 | eval "DEFAULT_$LINE" | |
6419 | else | |
6420 | no_cache=1 | |
6421 | fi | |
6422 | ||
6423 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
698dcdb6 VZ |
6424 | |
6425 | fi | |
10f2d63a VZ |
6426 | |
6427 | ||
6428 | eval "$ac_cv_use_sash" | |
6429 | if test "$no_cache" != 1; then | |
6430 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
6431 | fi | |
6432 | ||
6433 | if test "$wxUSE_SASH" = yes; then | |
698dcdb6 | 6434 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6435 | else |
698dcdb6 | 6436 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6437 | fi |
698dcdb6 | 6438 | |
10f2d63a | 6439 | |
698dcdb6 | 6440 | echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6 |
17234b26 | 6441 | echo "configure:6442: checking for --enable-scrollbar" >&5 |
10f2d63a VZ |
6442 | no_cache=0 |
6443 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
6444 | if test "${enable_scrollbar+set}" = set; then | |
6445 | enableval="$enable_scrollbar" | |
698dcdb6 | 6446 | |
10f2d63a VZ |
6447 | if test "$enableval" = yes; then |
6448 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
6449 | else | |
6450 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
6451 | fi | |
698dcdb6 | 6452 | |
10f2d63a | 6453 | else |
698dcdb6 | 6454 | |
10f2d63a VZ |
6455 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` |
6456 | if test "x$LINE" != x ; then | |
6457 | eval "DEFAULT_$LINE" | |
6458 | else | |
6459 | no_cache=1 | |
6460 | fi | |
6461 | ||
6462 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
698dcdb6 VZ |
6463 | |
6464 | fi | |
10f2d63a VZ |
6465 | |
6466 | ||
6467 | eval "$ac_cv_use_scrollbar" | |
6468 | if test "$no_cache" != 1; then | |
6469 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
6470 | fi | |
6471 | ||
6472 | if test "$wxUSE_SCROLLBAR" = yes; then | |
698dcdb6 | 6473 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6474 | else |
698dcdb6 | 6475 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6476 | fi |
698dcdb6 | 6477 | |
10f2d63a | 6478 | |
698dcdb6 | 6479 | echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6 |
17234b26 | 6480 | echo "configure:6481: checking for --enable-slider" >&5 |
10f2d63a VZ |
6481 | no_cache=0 |
6482 | # Check whether --enable-slider or --disable-slider was given. | |
6483 | if test "${enable_slider+set}" = set; then | |
6484 | enableval="$enable_slider" | |
698dcdb6 | 6485 | |
10f2d63a VZ |
6486 | if test "$enableval" = yes; then |
6487 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
6488 | else | |
6489 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
6490 | fi | |
698dcdb6 | 6491 | |
10f2d63a | 6492 | else |
698dcdb6 | 6493 | |
10f2d63a VZ |
6494 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` |
6495 | if test "x$LINE" != x ; then | |
6496 | eval "DEFAULT_$LINE" | |
6497 | else | |
6498 | no_cache=1 | |
6499 | fi | |
6500 | ||
6501 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
698dcdb6 VZ |
6502 | |
6503 | fi | |
10f2d63a VZ |
6504 | |
6505 | ||
6506 | eval "$ac_cv_use_slider" | |
6507 | if test "$no_cache" != 1; then | |
6508 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
6509 | fi | |
6510 | ||
6511 | if test "$wxUSE_SLIDER" = yes; then | |
698dcdb6 | 6512 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6513 | else |
698dcdb6 | 6514 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6515 | fi |
698dcdb6 | 6516 | |
10f2d63a | 6517 | |
698dcdb6 | 6518 | echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6 |
17234b26 | 6519 | echo "configure:6520: checking for --enable-spinbtn" >&5 |
10f2d63a VZ |
6520 | no_cache=0 |
6521 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
6522 | if test "${enable_spinbtn+set}" = set; then | |
6523 | enableval="$enable_spinbtn" | |
698dcdb6 | 6524 | |
10f2d63a VZ |
6525 | if test "$enableval" = yes; then |
6526 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
6527 | else | |
6528 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
6529 | fi | |
698dcdb6 | 6530 | |
10f2d63a | 6531 | else |
698dcdb6 | 6532 | |
10f2d63a VZ |
6533 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` |
6534 | if test "x$LINE" != x ; then | |
6535 | eval "DEFAULT_$LINE" | |
6536 | else | |
6537 | no_cache=1 | |
6538 | fi | |
6539 | ||
6540 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
698dcdb6 VZ |
6541 | |
6542 | fi | |
10f2d63a VZ |
6543 | |
6544 | ||
6545 | eval "$ac_cv_use_spinbtn" | |
6546 | if test "$no_cache" != 1; then | |
6547 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
6548 | fi | |
6549 | ||
6550 | if test "$wxUSE_SPINBTN" = yes; then | |
698dcdb6 | 6551 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6552 | else |
698dcdb6 | 6553 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6554 | fi |
698dcdb6 | 6555 | |
10f2d63a | 6556 | |
698dcdb6 | 6557 | echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6 |
17234b26 | 6558 | echo "configure:6559: checking for --enable-spinctrl" >&5 |
56cfaa52 RR |
6559 | no_cache=0 |
6560 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
6561 | if test "${enable_spinctrl+set}" = set; then | |
6562 | enableval="$enable_spinctrl" | |
698dcdb6 | 6563 | |
56cfaa52 RR |
6564 | if test "$enableval" = yes; then |
6565 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
6566 | else | |
6567 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
6568 | fi | |
698dcdb6 | 6569 | |
56cfaa52 | 6570 | else |
698dcdb6 | 6571 | |
56cfaa52 RR |
6572 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` |
6573 | if test "x$LINE" != x ; then | |
6574 | eval "DEFAULT_$LINE" | |
6575 | else | |
6576 | no_cache=1 | |
6577 | fi | |
6578 | ||
6579 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
698dcdb6 VZ |
6580 | |
6581 | fi | |
56cfaa52 RR |
6582 | |
6583 | ||
6584 | eval "$ac_cv_use_spinctrl" | |
6585 | if test "$no_cache" != 1; then | |
6586 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
6587 | fi | |
6588 | ||
6589 | if test "$wxUSE_SPINCTRL" = yes; then | |
698dcdb6 | 6590 | echo "$ac_t""yes" 1>&6 |
56cfaa52 | 6591 | else |
698dcdb6 | 6592 | echo "$ac_t""no" 1>&6 |
56cfaa52 | 6593 | fi |
698dcdb6 | 6594 | |
56cfaa52 | 6595 | |
698dcdb6 | 6596 | echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6 |
17234b26 | 6597 | echo "configure:6598: checking for --enable-splitter" >&5 |
10f2d63a VZ |
6598 | no_cache=0 |
6599 | # Check whether --enable-splitter or --disable-splitter was given. | |
6600 | if test "${enable_splitter+set}" = set; then | |
6601 | enableval="$enable_splitter" | |
698dcdb6 | 6602 | |
10f2d63a VZ |
6603 | if test "$enableval" = yes; then |
6604 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
6605 | else | |
6606 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
6607 | fi | |
698dcdb6 | 6608 | |
10f2d63a | 6609 | else |
698dcdb6 | 6610 | |
10f2d63a VZ |
6611 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` |
6612 | if test "x$LINE" != x ; then | |
6613 | eval "DEFAULT_$LINE" | |
6614 | else | |
6615 | no_cache=1 | |
6616 | fi | |
6617 | ||
6618 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
698dcdb6 VZ |
6619 | |
6620 | fi | |
10f2d63a VZ |
6621 | |
6622 | ||
6623 | eval "$ac_cv_use_splitter" | |
6624 | if test "$no_cache" != 1; then | |
6625 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
6626 | fi | |
6627 | ||
6628 | if test "$wxUSE_SPLITTER" = yes; then | |
698dcdb6 | 6629 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6630 | else |
698dcdb6 | 6631 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6632 | fi |
698dcdb6 | 6633 | |
10f2d63a | 6634 | |
698dcdb6 | 6635 | echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6 |
17234b26 | 6636 | echo "configure:6637: checking for --enable-statbmp" >&5 |
10f2d63a VZ |
6637 | no_cache=0 |
6638 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
6639 | if test "${enable_statbmp+set}" = set; then | |
6640 | enableval="$enable_statbmp" | |
698dcdb6 | 6641 | |
10f2d63a VZ |
6642 | if test "$enableval" = yes; then |
6643 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
6644 | else | |
6645 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
6646 | fi | |
698dcdb6 | 6647 | |
10f2d63a | 6648 | else |
698dcdb6 | 6649 | |
10f2d63a VZ |
6650 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` |
6651 | if test "x$LINE" != x ; then | |
6652 | eval "DEFAULT_$LINE" | |
6653 | else | |
6654 | no_cache=1 | |
6655 | fi | |
6656 | ||
6657 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
698dcdb6 VZ |
6658 | |
6659 | fi | |
10f2d63a VZ |
6660 | |
6661 | ||
6662 | eval "$ac_cv_use_statbmp" | |
6663 | if test "$no_cache" != 1; then | |
6664 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
6665 | fi | |
6666 | ||
6667 | if test "$wxUSE_STATBMP" = yes; then | |
698dcdb6 | 6668 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6669 | else |
698dcdb6 | 6670 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6671 | fi |
698dcdb6 | 6672 | |
10f2d63a | 6673 | |
698dcdb6 | 6674 | echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6 |
17234b26 | 6675 | echo "configure:6676: checking for --enable-statbox" >&5 |
10f2d63a VZ |
6676 | no_cache=0 |
6677 | # Check whether --enable-statbox or --disable-statbox was given. | |
6678 | if test "${enable_statbox+set}" = set; then | |
6679 | enableval="$enable_statbox" | |
698dcdb6 | 6680 | |
10f2d63a VZ |
6681 | if test "$enableval" = yes; then |
6682 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
6683 | else | |
6684 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
6685 | fi | |
698dcdb6 | 6686 | |
10f2d63a | 6687 | else |
698dcdb6 | 6688 | |
10f2d63a VZ |
6689 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` |
6690 | if test "x$LINE" != x ; then | |
6691 | eval "DEFAULT_$LINE" | |
6692 | else | |
6693 | no_cache=1 | |
6694 | fi | |
6695 | ||
6696 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
698dcdb6 VZ |
6697 | |
6698 | fi | |
10f2d63a VZ |
6699 | |
6700 | ||
6701 | eval "$ac_cv_use_statbox" | |
6702 | if test "$no_cache" != 1; then | |
6703 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
6704 | fi | |
6705 | ||
6706 | if test "$wxUSE_STATBOX" = yes; then | |
698dcdb6 | 6707 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6708 | else |
698dcdb6 | 6709 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6710 | fi |
698dcdb6 | 6711 | |
10f2d63a | 6712 | |
698dcdb6 | 6713 | echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6 |
17234b26 | 6714 | echo "configure:6715: checking for --enable-statline" >&5 |
10f2d63a VZ |
6715 | no_cache=0 |
6716 | # Check whether --enable-statline or --disable-statline was given. | |
6717 | if test "${enable_statline+set}" = set; then | |
6718 | enableval="$enable_statline" | |
698dcdb6 | 6719 | |
10f2d63a VZ |
6720 | if test "$enableval" = yes; then |
6721 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
6722 | else | |
6723 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
6724 | fi | |
698dcdb6 | 6725 | |
10f2d63a | 6726 | else |
698dcdb6 | 6727 | |
10f2d63a VZ |
6728 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` |
6729 | if test "x$LINE" != x ; then | |
6730 | eval "DEFAULT_$LINE" | |
6731 | else | |
6732 | no_cache=1 | |
6733 | fi | |
6734 | ||
6735 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
698dcdb6 VZ |
6736 | |
6737 | fi | |
10f2d63a VZ |
6738 | |
6739 | ||
6740 | eval "$ac_cv_use_statline" | |
6741 | if test "$no_cache" != 1; then | |
6742 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
6743 | fi | |
6744 | ||
6745 | if test "$wxUSE_STATLINE" = yes; then | |
698dcdb6 | 6746 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6747 | else |
698dcdb6 | 6748 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6749 | fi |
698dcdb6 | 6750 | |
10f2d63a | 6751 | |
1e6feb95 | 6752 | echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6 |
17234b26 | 6753 | echo "configure:6754: checking for --enable-stattext" >&5 |
1e6feb95 VZ |
6754 | no_cache=0 |
6755 | # Check whether --enable-stattext or --disable-stattext was given. | |
6756 | if test "${enable_stattext+set}" = set; then | |
6757 | enableval="$enable_stattext" | |
6758 | ||
6759 | if test "$enableval" = yes; then | |
6760 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
6761 | else | |
6762 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
6763 | fi | |
6764 | ||
6765 | else | |
6766 | ||
6767 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
6768 | if test "x$LINE" != x ; then | |
6769 | eval "DEFAULT_$LINE" | |
6770 | else | |
6771 | no_cache=1 | |
6772 | fi | |
6773 | ||
6774 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
6775 | ||
6776 | fi | |
6777 | ||
6778 | ||
6779 | eval "$ac_cv_use_stattext" | |
6780 | if test "$no_cache" != 1; then | |
6781 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
6782 | fi | |
6783 | ||
6784 | if test "$wxUSE_STATTEXT" = yes; then | |
6785 | echo "$ac_t""yes" 1>&6 | |
6786 | else | |
6787 | echo "$ac_t""no" 1>&6 | |
6788 | fi | |
6789 | ||
6790 | ||
698dcdb6 | 6791 | echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6 |
17234b26 | 6792 | echo "configure:6793: checking for --enable-statusbar" >&5 |
10f2d63a VZ |
6793 | no_cache=0 |
6794 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
6795 | if test "${enable_statusbar+set}" = set; then | |
6796 | enableval="$enable_statusbar" | |
698dcdb6 | 6797 | |
10f2d63a VZ |
6798 | if test "$enableval" = yes; then |
6799 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
6800 | else | |
6801 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
6802 | fi | |
698dcdb6 | 6803 | |
10f2d63a | 6804 | else |
698dcdb6 | 6805 | |
10f2d63a VZ |
6806 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` |
6807 | if test "x$LINE" != x ; then | |
6808 | eval "DEFAULT_$LINE" | |
6809 | else | |
6810 | no_cache=1 | |
6811 | fi | |
6812 | ||
6813 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
698dcdb6 VZ |
6814 | |
6815 | fi | |
10f2d63a VZ |
6816 | |
6817 | ||
6818 | eval "$ac_cv_use_statusbar" | |
6819 | if test "$no_cache" != 1; then | |
6820 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
6821 | fi | |
6822 | ||
6823 | if test "$wxUSE_STATUSBAR" = yes; then | |
698dcdb6 | 6824 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6825 | else |
698dcdb6 | 6826 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6827 | fi |
698dcdb6 | 6828 | |
10f2d63a | 6829 | |
698dcdb6 | 6830 | echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6 |
17234b26 | 6831 | echo "configure:6832: checking for --enable-tabdialog" >&5 |
10f2d63a VZ |
6832 | no_cache=0 |
6833 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
6834 | if test "${enable_tabdialog+set}" = set; then | |
6835 | enableval="$enable_tabdialog" | |
698dcdb6 | 6836 | |
10f2d63a VZ |
6837 | if test "$enableval" = yes; then |
6838 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
6839 | else | |
6840 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
6841 | fi | |
698dcdb6 | 6842 | |
10f2d63a | 6843 | else |
698dcdb6 | 6844 | |
10f2d63a VZ |
6845 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` |
6846 | if test "x$LINE" != x ; then | |
6847 | eval "DEFAULT_$LINE" | |
6848 | else | |
6849 | no_cache=1 | |
6850 | fi | |
6851 | ||
6852 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
698dcdb6 VZ |
6853 | |
6854 | fi | |
10f2d63a VZ |
6855 | |
6856 | ||
6857 | eval "$ac_cv_use_tabdialog" | |
6858 | if test "$no_cache" != 1; then | |
6859 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
6860 | fi | |
6861 | ||
6862 | if test "$wxUSE_TABDIALOG" = yes; then | |
698dcdb6 | 6863 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6864 | else |
698dcdb6 | 6865 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6866 | fi |
698dcdb6 | 6867 | |
10f2d63a | 6868 | |
1e6feb95 | 6869 | echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6 |
17234b26 | 6870 | echo "configure:6871: checking for --enable-textctrl" >&5 |
1e6feb95 VZ |
6871 | no_cache=0 |
6872 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
6873 | if test "${enable_textctrl+set}" = set; then | |
6874 | enableval="$enable_textctrl" | |
6875 | ||
6876 | if test "$enableval" = yes; then | |
6877 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
6878 | else | |
6879 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
6880 | fi | |
6881 | ||
6882 | else | |
6883 | ||
6884 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
6885 | if test "x$LINE" != x ; then | |
6886 | eval "DEFAULT_$LINE" | |
6887 | else | |
6888 | no_cache=1 | |
6889 | fi | |
6890 | ||
6891 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
6892 | ||
6893 | fi | |
6894 | ||
6895 | ||
6896 | eval "$ac_cv_use_textctrl" | |
6897 | if test "$no_cache" != 1; then | |
6898 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
6899 | fi | |
6900 | ||
6901 | if test "$wxUSE_TEXTCTRL" = yes; then | |
6902 | echo "$ac_t""yes" 1>&6 | |
6903 | else | |
6904 | echo "$ac_t""no" 1>&6 | |
6905 | fi | |
6906 | ||
6907 | ||
698dcdb6 | 6908 | echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6 |
17234b26 | 6909 | echo "configure:6910: checking for --enable-togglebtn" >&5 |
1db8dc4a VZ |
6910 | no_cache=0 |
6911 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
6912 | if test "${enable_togglebtn+set}" = set; then | |
6913 | enableval="$enable_togglebtn" | |
698dcdb6 | 6914 | |
1db8dc4a VZ |
6915 | if test "$enableval" = yes; then |
6916 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
6917 | else | |
6918 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
6919 | fi | |
698dcdb6 | 6920 | |
1db8dc4a | 6921 | else |
698dcdb6 | 6922 | |
1db8dc4a VZ |
6923 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` |
6924 | if test "x$LINE" != x ; then | |
6925 | eval "DEFAULT_$LINE" | |
6926 | else | |
6927 | no_cache=1 | |
6928 | fi | |
6929 | ||
6930 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
698dcdb6 VZ |
6931 | |
6932 | fi | |
1db8dc4a VZ |
6933 | |
6934 | ||
6935 | eval "$ac_cv_use_togglebtn" | |
6936 | if test "$no_cache" != 1; then | |
6937 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
6938 | fi | |
6939 | ||
6940 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
698dcdb6 | 6941 | echo "$ac_t""yes" 1>&6 |
1db8dc4a | 6942 | else |
698dcdb6 | 6943 | echo "$ac_t""no" 1>&6 |
1db8dc4a | 6944 | fi |
698dcdb6 | 6945 | |
1db8dc4a | 6946 | |
698dcdb6 | 6947 | echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6 |
17234b26 | 6948 | echo "configure:6949: checking for --enable-toolbar" >&5 |
10f2d63a VZ |
6949 | no_cache=0 |
6950 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
6951 | if test "${enable_toolbar+set}" = set; then | |
6952 | enableval="$enable_toolbar" | |
698dcdb6 | 6953 | |
10f2d63a VZ |
6954 | if test "$enableval" = yes; then |
6955 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
6956 | else | |
6957 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
6958 | fi | |
698dcdb6 | 6959 | |
10f2d63a | 6960 | else |
698dcdb6 | 6961 | |
10f2d63a VZ |
6962 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` |
6963 | if test "x$LINE" != x ; then | |
6964 | eval "DEFAULT_$LINE" | |
6965 | else | |
6966 | no_cache=1 | |
6967 | fi | |
6968 | ||
6969 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
698dcdb6 VZ |
6970 | |
6971 | fi | |
10f2d63a VZ |
6972 | |
6973 | ||
6974 | eval "$ac_cv_use_toolbar" | |
6975 | if test "$no_cache" != 1; then | |
6976 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
6977 | fi | |
6978 | ||
6979 | if test "$wxUSE_TOOLBAR" = yes; then | |
698dcdb6 | 6980 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6981 | else |
698dcdb6 | 6982 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6983 | fi |
698dcdb6 | 6984 | |
10f2d63a | 6985 | |
698dcdb6 | 6986 | echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6 |
17234b26 | 6987 | echo "configure:6988: checking for --enable-tbarnative" >&5 |
360d6699 VZ |
6988 | no_cache=0 |
6989 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
6990 | if test "${enable_tbarnative+set}" = set; then | |
6991 | enableval="$enable_tbarnative" | |
698dcdb6 | 6992 | |
360d6699 VZ |
6993 | if test "$enableval" = yes; then |
6994 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
6995 | else | |
6996 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
6997 | fi | |
698dcdb6 | 6998 | |
360d6699 | 6999 | else |
698dcdb6 | 7000 | |
360d6699 VZ |
7001 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` |
7002 | if test "x$LINE" != x ; then | |
7003 | eval "DEFAULT_$LINE" | |
7004 | else | |
7005 | no_cache=1 | |
7006 | fi | |
7007 | ||
7008 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
698dcdb6 VZ |
7009 | |
7010 | fi | |
360d6699 VZ |
7011 | |
7012 | ||
7013 | eval "$ac_cv_use_tbarnative" | |
7014 | if test "$no_cache" != 1; then | |
7015 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
7016 | fi | |
7017 | ||
7018 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
698dcdb6 | 7019 | echo "$ac_t""yes" 1>&6 |
360d6699 | 7020 | else |
698dcdb6 | 7021 | echo "$ac_t""no" 1>&6 |
360d6699 | 7022 | fi |
698dcdb6 | 7023 | |
360d6699 | 7024 | |
698dcdb6 | 7025 | echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6 |
17234b26 | 7026 | echo "configure:7027: checking for --enable-tbarsmpl" >&5 |
360d6699 VZ |
7027 | no_cache=0 |
7028 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
7029 | if test "${enable_tbarsmpl+set}" = set; then | |
7030 | enableval="$enable_tbarsmpl" | |
698dcdb6 | 7031 | |
360d6699 VZ |
7032 | if test "$enableval" = yes; then |
7033 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
7034 | else | |
7035 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
7036 | fi | |
698dcdb6 | 7037 | |
360d6699 | 7038 | else |
698dcdb6 | 7039 | |
360d6699 VZ |
7040 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` |
7041 | if test "x$LINE" != x ; then | |
7042 | eval "DEFAULT_$LINE" | |
7043 | else | |
7044 | no_cache=1 | |
7045 | fi | |
7046 | ||
7047 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
698dcdb6 VZ |
7048 | |
7049 | fi | |
360d6699 VZ |
7050 | |
7051 | ||
7052 | eval "$ac_cv_use_tbarsmpl" | |
7053 | if test "$no_cache" != 1; then | |
7054 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
7055 | fi | |
7056 | ||
7057 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
698dcdb6 | 7058 | echo "$ac_t""yes" 1>&6 |
360d6699 | 7059 | else |
698dcdb6 | 7060 | echo "$ac_t""no" 1>&6 |
360d6699 | 7061 | fi |
698dcdb6 | 7062 | |
360d6699 | 7063 | |
698dcdb6 | 7064 | echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6 |
17234b26 | 7065 | echo "configure:7066: checking for --enable-treectrl" >&5 |
10f2d63a VZ |
7066 | no_cache=0 |
7067 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
7068 | if test "${enable_treectrl+set}" = set; then | |
7069 | enableval="$enable_treectrl" | |
698dcdb6 | 7070 | |
10f2d63a VZ |
7071 | if test "$enableval" = yes; then |
7072 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
7073 | else | |
7074 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
7075 | fi | |
698dcdb6 | 7076 | |
10f2d63a | 7077 | else |
698dcdb6 | 7078 | |
10f2d63a VZ |
7079 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` |
7080 | if test "x$LINE" != x ; then | |
7081 | eval "DEFAULT_$LINE" | |
7082 | else | |
7083 | no_cache=1 | |
7084 | fi | |
7085 | ||
7086 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
698dcdb6 VZ |
7087 | |
7088 | fi | |
10f2d63a VZ |
7089 | |
7090 | ||
1e6feb95 VZ |
7091 | eval "$ac_cv_use_treectrl" |
7092 | if test "$no_cache" != 1; then | |
7093 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
7094 | fi | |
7095 | ||
7096 | if test "$wxUSE_TREECTRL" = yes; then | |
7097 | echo "$ac_t""yes" 1>&6 | |
7098 | else | |
7099 | echo "$ac_t""no" 1>&6 | |
7100 | fi | |
7101 | ||
7102 | ||
9926e4a4 | 7103 | echo $ac_n "checking for --enable-tipwindow""... $ac_c" 1>&6 |
17234b26 | 7104 | echo "configure:7105: checking for --enable-tipwindow" >&5 |
9926e4a4 VZ |
7105 | no_cache=0 |
7106 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
7107 | if test "${enable_tipwindow+set}" = set; then | |
7108 | enableval="$enable_tipwindow" | |
7109 | ||
7110 | if test "$enableval" = yes; then | |
7111 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
7112 | else | |
7113 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
7114 | fi | |
7115 | ||
7116 | else | |
7117 | ||
7118 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` | |
7119 | if test "x$LINE" != x ; then | |
7120 | eval "DEFAULT_$LINE" | |
7121 | else | |
7122 | no_cache=1 | |
7123 | fi | |
7124 | ||
7125 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
7126 | ||
7127 | fi | |
7128 | ||
7129 | ||
7130 | eval "$ac_cv_use_tipwindow" | |
7131 | if test "$no_cache" != 1; then | |
7132 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
7133 | fi | |
7134 | ||
7135 | if test "$wxUSE_TIPWINDOW" = yes; then | |
7136 | echo "$ac_t""yes" 1>&6 | |
7137 | else | |
7138 | echo "$ac_t""no" 1>&6 | |
7139 | fi | |
7140 | ||
7141 | ||
9f41d601 | 7142 | echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6 |
17234b26 | 7143 | echo "configure:7144: checking for --enable-popupwin" >&5 |
9f41d601 RR |
7144 | no_cache=0 |
7145 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
7146 | if test "${enable_popupwin+set}" = set; then | |
7147 | enableval="$enable_popupwin" | |
7148 | ||
7149 | if test "$enableval" = yes; then | |
7150 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
7151 | else | |
7152 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
7153 | fi | |
7154 | ||
7155 | else | |
7156 | ||
7157 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` | |
7158 | if test "x$LINE" != x ; then | |
7159 | eval "DEFAULT_$LINE" | |
7160 | else | |
7161 | no_cache=1 | |
7162 | fi | |
7163 | ||
7164 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
7165 | ||
7166 | fi | |
7167 | ||
7168 | ||
7169 | eval "$ac_cv_use_popupwin" | |
7170 | if test "$no_cache" != 1; then | |
7171 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
7172 | fi | |
7173 | ||
7174 | if test "$wxUSE_POPUPWIN" = yes; then | |
7175 | echo "$ac_t""yes" 1>&6 | |
7176 | else | |
7177 | echo "$ac_t""no" 1>&6 | |
7178 | fi | |
7179 | ||
7180 | ||
1e6feb95 VZ |
7181 | |
7182 | ||
7183 | echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6 | |
17234b26 | 7184 | echo "configure:7185: checking for --enable-commondlg" >&5 |
1e6feb95 VZ |
7185 | no_cache=0 |
7186 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
7187 | if test "${enable_commondlg+set}" = set; then | |
7188 | enableval="$enable_commondlg" | |
7189 | ||
7190 | if test "$enableval" = yes; then | |
7191 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
7192 | else | |
7193 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
7194 | fi | |
7195 | ||
7196 | else | |
7197 | ||
7198 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
7199 | if test "x$LINE" != x ; then | |
7200 | eval "DEFAULT_$LINE" | |
7201 | else | |
7202 | no_cache=1 | |
7203 | fi | |
7204 | ||
7205 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
7206 | ||
7207 | fi | |
7208 | ||
7209 | ||
7210 | eval "$ac_cv_use_commondlg" | |
7211 | if test "$no_cache" != 1; then | |
7212 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
7213 | fi | |
7214 | ||
7215 | if test "$wxUSE_COMMONDLGS" = yes; then | |
7216 | echo "$ac_t""yes" 1>&6 | |
7217 | else | |
7218 | echo "$ac_t""no" 1>&6 | |
7219 | fi | |
7220 | ||
7221 | ||
7222 | echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6 | |
17234b26 | 7223 | echo "configure:7224: checking for --enable-choicedlg" >&5 |
1e6feb95 VZ |
7224 | no_cache=0 |
7225 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
7226 | if test "${enable_choicedlg+set}" = set; then | |
7227 | enableval="$enable_choicedlg" | |
7228 | ||
7229 | if test "$enableval" = yes; then | |
7230 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
7231 | else | |
7232 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
7233 | fi | |
7234 | ||
7235 | else | |
7236 | ||
7237 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
7238 | if test "x$LINE" != x ; then | |
7239 | eval "DEFAULT_$LINE" | |
7240 | else | |
7241 | no_cache=1 | |
7242 | fi | |
7243 | ||
7244 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
7245 | ||
7246 | fi | |
7247 | ||
7248 | ||
7249 | eval "$ac_cv_use_choicedlg" | |
7250 | if test "$no_cache" != 1; then | |
7251 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
7252 | fi | |
7253 | ||
7254 | if test "$wxUSE_CHOICEDLG" = yes; then | |
7255 | echo "$ac_t""yes" 1>&6 | |
7256 | else | |
7257 | echo "$ac_t""no" 1>&6 | |
7258 | fi | |
7259 | ||
7260 | ||
7261 | echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6 | |
17234b26 | 7262 | echo "configure:7263: checking for --enable-coldlg" >&5 |
1e6feb95 VZ |
7263 | no_cache=0 |
7264 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
7265 | if test "${enable_coldlg+set}" = set; then | |
7266 | enableval="$enable_coldlg" | |
7267 | ||
7268 | if test "$enableval" = yes; then | |
7269 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
7270 | else | |
7271 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
7272 | fi | |
7273 | ||
7274 | else | |
7275 | ||
7276 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
7277 | if test "x$LINE" != x ; then | |
7278 | eval "DEFAULT_$LINE" | |
7279 | else | |
7280 | no_cache=1 | |
7281 | fi | |
7282 | ||
7283 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
7284 | ||
7285 | fi | |
7286 | ||
7287 | ||
7288 | eval "$ac_cv_use_coldlg" | |
7289 | if test "$no_cache" != 1; then | |
7290 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
7291 | fi | |
7292 | ||
7293 | if test "$wxUSE_COLOURDLG" = yes; then | |
7294 | echo "$ac_t""yes" 1>&6 | |
7295 | else | |
7296 | echo "$ac_t""no" 1>&6 | |
7297 | fi | |
7298 | ||
7299 | ||
7300 | echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6 | |
17234b26 | 7301 | echo "configure:7302: checking for --enable-filedlg" >&5 |
1e6feb95 VZ |
7302 | no_cache=0 |
7303 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
7304 | if test "${enable_filedlg+set}" = set; then | |
7305 | enableval="$enable_filedlg" | |
7306 | ||
7307 | if test "$enableval" = yes; then | |
7308 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
7309 | else | |
7310 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
7311 | fi | |
7312 | ||
7313 | else | |
7314 | ||
7315 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
7316 | if test "x$LINE" != x ; then | |
7317 | eval "DEFAULT_$LINE" | |
7318 | else | |
7319 | no_cache=1 | |
7320 | fi | |
7321 | ||
7322 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
7323 | ||
7324 | fi | |
7325 | ||
7326 | ||
7327 | eval "$ac_cv_use_filedlg" | |
7328 | if test "$no_cache" != 1; then | |
7329 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
7330 | fi | |
7331 | ||
7332 | if test "$wxUSE_FILEDLG" = yes; then | |
7333 | echo "$ac_t""yes" 1>&6 | |
7334 | else | |
7335 | echo "$ac_t""no" 1>&6 | |
7336 | fi | |
7337 | ||
7338 | ||
69d27ff7 | 7339 | echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6 |
17234b26 | 7340 | echo "configure:7341: checking for --enable-finddlg" >&5 |
8db37e06 | 7341 | no_cache=0 |
69d27ff7 MB |
7342 | # Check whether --enable-finddlg or --disable-finddlg was given. |
7343 | if test "${enable_finddlg+set}" = set; then | |
7344 | enableval="$enable_finddlg" | |
8db37e06 VZ |
7345 | |
7346 | if test "$enableval" = yes; then | |
69d27ff7 | 7347 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' |
8db37e06 | 7348 | else |
69d27ff7 | 7349 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' |
8db37e06 VZ |
7350 | fi |
7351 | ||
7352 | else | |
7353 | ||
7354 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` | |
7355 | if test "x$LINE" != x ; then | |
7356 | eval "DEFAULT_$LINE" | |
7357 | else | |
7358 | no_cache=1 | |
7359 | fi | |
7360 | ||
69d27ff7 | 7361 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG |
8db37e06 VZ |
7362 | |
7363 | fi | |
7364 | ||
7365 | ||
69d27ff7 | 7366 | eval "$ac_cv_use_finddlg" |
8db37e06 | 7367 | if test "$no_cache" != 1; then |
69d27ff7 | 7368 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp |
8db37e06 VZ |
7369 | fi |
7370 | ||
7371 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
7372 | echo "$ac_t""yes" 1>&6 | |
7373 | else | |
7374 | echo "$ac_t""no" 1>&6 | |
7375 | fi | |
7376 | ||
7377 | ||
1e6feb95 | 7378 | echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6 |
17234b26 | 7379 | echo "configure:7380: checking for --enable-fontdlg" >&5 |
1e6feb95 VZ |
7380 | no_cache=0 |
7381 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
7382 | if test "${enable_fontdlg+set}" = set; then | |
7383 | enableval="$enable_fontdlg" | |
7384 | ||
7385 | if test "$enableval" = yes; then | |
7386 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
7387 | else | |
7388 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
7389 | fi | |
7390 | ||
7391 | else | |
7392 | ||
7393 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
7394 | if test "x$LINE" != x ; then | |
7395 | eval "DEFAULT_$LINE" | |
7396 | else | |
7397 | no_cache=1 | |
7398 | fi | |
7399 | ||
7400 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
7401 | ||
7402 | fi | |
7403 | ||
7404 | ||
7405 | eval "$ac_cv_use_fontdlg" | |
7406 | if test "$no_cache" != 1; then | |
7407 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
7408 | fi | |
7409 | ||
7410 | if test "$wxUSE_FONTDLG" = yes; then | |
7411 | echo "$ac_t""yes" 1>&6 | |
7412 | else | |
7413 | echo "$ac_t""no" 1>&6 | |
7414 | fi | |
7415 | ||
7416 | ||
7417 | echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6 | |
17234b26 | 7418 | echo "configure:7419: checking for --enable-dirdlg" >&5 |
1e6feb95 VZ |
7419 | no_cache=0 |
7420 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
7421 | if test "${enable_dirdlg+set}" = set; then | |
7422 | enableval="$enable_dirdlg" | |
7423 | ||
7424 | if test "$enableval" = yes; then | |
7425 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
7426 | else | |
7427 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
7428 | fi | |
7429 | ||
7430 | else | |
7431 | ||
7432 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
7433 | if test "x$LINE" != x ; then | |
7434 | eval "DEFAULT_$LINE" | |
7435 | else | |
7436 | no_cache=1 | |
7437 | fi | |
7438 | ||
7439 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
7440 | ||
7441 | fi | |
7442 | ||
7443 | ||
7444 | eval "$ac_cv_use_dirdlg" | |
10f2d63a | 7445 | if test "$no_cache" != 1; then |
1e6feb95 | 7446 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7447 | fi |
7448 | ||
1e6feb95 | 7449 | if test "$wxUSE_DIRDLG" = yes; then |
698dcdb6 | 7450 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7451 | else |
698dcdb6 | 7452 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7453 | fi |
698dcdb6 VZ |
7454 | |
7455 | ||
1e6feb95 | 7456 | echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6 |
17234b26 | 7457 | echo "configure:7458: checking for --enable-msgdlg" >&5 |
10f2d63a | 7458 | no_cache=0 |
1e6feb95 VZ |
7459 | # Check whether --enable-msgdlg or --disable-msgdlg was given. |
7460 | if test "${enable_msgdlg+set}" = set; then | |
7461 | enableval="$enable_msgdlg" | |
698dcdb6 | 7462 | |
10f2d63a | 7463 | if test "$enableval" = yes; then |
1e6feb95 | 7464 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' |
10f2d63a | 7465 | else |
1e6feb95 | 7466 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' |
10f2d63a | 7467 | fi |
698dcdb6 | 7468 | |
10f2d63a | 7469 | else |
698dcdb6 | 7470 | |
1e6feb95 | 7471 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
7472 | if test "x$LINE" != x ; then |
7473 | eval "DEFAULT_$LINE" | |
7474 | else | |
7475 | no_cache=1 | |
7476 | fi | |
7477 | ||
1e6feb95 | 7478 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG |
698dcdb6 VZ |
7479 | |
7480 | fi | |
10f2d63a VZ |
7481 | |
7482 | ||
1e6feb95 | 7483 | eval "$ac_cv_use_msgdlg" |
10f2d63a | 7484 | if test "$no_cache" != 1; then |
1e6feb95 | 7485 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7486 | fi |
7487 | ||
1e6feb95 | 7488 | if test "$wxUSE_MSGDLG" = yes; then |
698dcdb6 | 7489 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7490 | else |
698dcdb6 | 7491 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7492 | fi |
698dcdb6 | 7493 | |
10f2d63a | 7494 | |
1e6feb95 | 7495 | echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6 |
17234b26 | 7496 | echo "configure:7497: checking for --enable-numberdlg" >&5 |
10f2d63a | 7497 | no_cache=0 |
1e6feb95 VZ |
7498 | # Check whether --enable-numberdlg or --disable-numberdlg was given. |
7499 | if test "${enable_numberdlg+set}" = set; then | |
7500 | enableval="$enable_numberdlg" | |
698dcdb6 | 7501 | |
10f2d63a | 7502 | if test "$enableval" = yes; then |
1e6feb95 | 7503 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' |
10f2d63a | 7504 | else |
1e6feb95 | 7505 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' |
10f2d63a | 7506 | fi |
698dcdb6 | 7507 | |
10f2d63a | 7508 | else |
698dcdb6 | 7509 | |
1e6feb95 | 7510 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
7511 | if test "x$LINE" != x ; then |
7512 | eval "DEFAULT_$LINE" | |
7513 | else | |
7514 | no_cache=1 | |
7515 | fi | |
7516 | ||
1e6feb95 | 7517 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG |
698dcdb6 VZ |
7518 | |
7519 | fi | |
10f2d63a VZ |
7520 | |
7521 | ||
1e6feb95 | 7522 | eval "$ac_cv_use_numberdlg" |
10f2d63a | 7523 | if test "$no_cache" != 1; then |
1e6feb95 | 7524 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7525 | fi |
7526 | ||
1e6feb95 | 7527 | if test "$wxUSE_NUMBERDLG" = yes; then |
698dcdb6 | 7528 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7529 | else |
698dcdb6 | 7530 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7531 | fi |
698dcdb6 | 7532 | |
10f2d63a | 7533 | |
cbca9943 | 7534 | echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6 |
17234b26 | 7535 | echo "configure:7536: checking for --enable-splash" >&5 |
cbca9943 VZ |
7536 | no_cache=0 |
7537 | # Check whether --enable-splash or --disable-splash was given. | |
7538 | if test "${enable_splash+set}" = set; then | |
7539 | enableval="$enable_splash" | |
7540 | ||
7541 | if test "$enableval" = yes; then | |
7542 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
7543 | else | |
7544 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
7545 | fi | |
7546 | ||
7547 | else | |
7548 | ||
7549 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` | |
7550 | if test "x$LINE" != x ; then | |
7551 | eval "DEFAULT_$LINE" | |
7552 | else | |
7553 | no_cache=1 | |
7554 | fi | |
7555 | ||
7556 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
7557 | ||
7558 | fi | |
7559 | ||
7560 | ||
7561 | eval "$ac_cv_use_splash" | |
7562 | if test "$no_cache" != 1; then | |
7563 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
7564 | fi | |
7565 | ||
7566 | if test "$wxUSE_SPLASH" = yes; then | |
7567 | echo "$ac_t""yes" 1>&6 | |
7568 | else | |
7569 | echo "$ac_t""no" 1>&6 | |
7570 | fi | |
7571 | ||
7572 | ||
698dcdb6 | 7573 | echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6 |
17234b26 | 7574 | echo "configure:7575: checking for --enable-textdlg" >&5 |
10f2d63a VZ |
7575 | no_cache=0 |
7576 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
7577 | if test "${enable_textdlg+set}" = set; then | |
7578 | enableval="$enable_textdlg" | |
698dcdb6 | 7579 | |
10f2d63a VZ |
7580 | if test "$enableval" = yes; then |
7581 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
7582 | else | |
7583 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
7584 | fi | |
698dcdb6 | 7585 | |
10f2d63a | 7586 | else |
698dcdb6 | 7587 | |
10f2d63a VZ |
7588 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` |
7589 | if test "x$LINE" != x ; then | |
7590 | eval "DEFAULT_$LINE" | |
7591 | else | |
7592 | no_cache=1 | |
7593 | fi | |
7594 | ||
7595 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
698dcdb6 VZ |
7596 | |
7597 | fi | |
10f2d63a VZ |
7598 | |
7599 | ||
7600 | eval "$ac_cv_use_textdlg" | |
7601 | if test "$no_cache" != 1; then | |
7602 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
7603 | fi | |
7604 | ||
7605 | if test "$wxUSE_TEXTDLG" = yes; then | |
698dcdb6 | 7606 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7607 | else |
698dcdb6 | 7608 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7609 | fi |
698dcdb6 | 7610 | |
10f2d63a | 7611 | |
698dcdb6 | 7612 | echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6 |
17234b26 | 7613 | echo "configure:7614: checking for --enable-tipdlg" >&5 |
10f2d63a VZ |
7614 | no_cache=0 |
7615 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
7616 | if test "${enable_tipdlg+set}" = set; then | |
7617 | enableval="$enable_tipdlg" | |
698dcdb6 | 7618 | |
10f2d63a VZ |
7619 | if test "$enableval" = yes; then |
7620 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
7621 | else | |
7622 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
7623 | fi | |
698dcdb6 | 7624 | |
10f2d63a | 7625 | else |
698dcdb6 | 7626 | |
10f2d63a VZ |
7627 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` |
7628 | if test "x$LINE" != x ; then | |
7629 | eval "DEFAULT_$LINE" | |
7630 | else | |
7631 | no_cache=1 | |
7632 | fi | |
7633 | ||
7634 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
698dcdb6 VZ |
7635 | |
7636 | fi | |
10f2d63a VZ |
7637 | |
7638 | ||
7639 | eval "$ac_cv_use_tipdlg" | |
7640 | if test "$no_cache" != 1; then | |
7641 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
7642 | fi | |
7643 | ||
7644 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
698dcdb6 | 7645 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7646 | else |
698dcdb6 | 7647 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7648 | fi |
698dcdb6 | 7649 | |
10f2d63a | 7650 | |
698dcdb6 | 7651 | echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6 |
17234b26 | 7652 | echo "configure:7653: checking for --enable-progressdlg" >&5 |
10f2d63a VZ |
7653 | no_cache=0 |
7654 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
7655 | if test "${enable_progressdlg+set}" = set; then | |
7656 | enableval="$enable_progressdlg" | |
698dcdb6 | 7657 | |
10f2d63a VZ |
7658 | if test "$enableval" = yes; then |
7659 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
7660 | else | |
7661 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
7662 | fi | |
698dcdb6 | 7663 | |
10f2d63a | 7664 | else |
698dcdb6 | 7665 | |
10f2d63a VZ |
7666 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` |
7667 | if test "x$LINE" != x ; then | |
7668 | eval "DEFAULT_$LINE" | |
7669 | else | |
7670 | no_cache=1 | |
7671 | fi | |
7672 | ||
7673 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
698dcdb6 VZ |
7674 | |
7675 | fi | |
10f2d63a VZ |
7676 | |
7677 | ||
7678 | eval "$ac_cv_use_progressdlg" | |
7679 | if test "$no_cache" != 1; then | |
7680 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
7681 | fi | |
7682 | ||
7683 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
698dcdb6 | 7684 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7685 | else |
698dcdb6 | 7686 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7687 | fi |
698dcdb6 | 7688 | |
10f2d63a | 7689 | |
b1f5d087 | 7690 | echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6 |
17234b26 | 7691 | echo "configure:7692: checking for --enable-wizarddlg" >&5 |
b1f5d087 VZ |
7692 | no_cache=0 |
7693 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
7694 | if test "${enable_wizarddlg+set}" = set; then | |
7695 | enableval="$enable_wizarddlg" | |
7696 | ||
7697 | if test "$enableval" = yes; then | |
7698 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
7699 | else | |
7700 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
7701 | fi | |
7702 | ||
7703 | else | |
7704 | ||
7705 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
7706 | if test "x$LINE" != x ; then | |
7707 | eval "DEFAULT_$LINE" | |
7708 | else | |
7709 | no_cache=1 | |
7710 | fi | |
7711 | ||
7712 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
7713 | ||
7714 | fi | |
7715 | ||
7716 | ||
7717 | eval "$ac_cv_use_wizarddlg" | |
7718 | if test "$no_cache" != 1; then | |
7719 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
7720 | fi | |
7721 | ||
7722 | if test "$wxUSE_WIZARDDLG" = yes; then | |
7723 | echo "$ac_t""yes" 1>&6 | |
7724 | else | |
7725 | echo "$ac_t""no" 1>&6 | |
7726 | fi | |
7727 | ||
7728 | ||
7729 | ||
7730 | ||
1e6feb95 | 7731 | echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6 |
17234b26 | 7732 | echo "configure:7733: checking for --enable-menus" >&5 |
1e6feb95 VZ |
7733 | no_cache=0 |
7734 | # Check whether --enable-menus or --disable-menus was given. | |
7735 | if test "${enable_menus+set}" = set; then | |
7736 | enableval="$enable_menus" | |
7737 | ||
7738 | if test "$enableval" = yes; then | |
7739 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
7740 | else | |
7741 | ac_cv_use_menus='wxUSE_MENUS=no' | |
7742 | fi | |
7743 | ||
7744 | else | |
7745 | ||
7746 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
7747 | if test "x$LINE" != x ; then | |
7748 | eval "DEFAULT_$LINE" | |
7749 | else | |
7750 | no_cache=1 | |
7751 | fi | |
7752 | ||
7753 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
7754 | ||
7755 | fi | |
7756 | ||
7757 | ||
7758 | eval "$ac_cv_use_menus" | |
7759 | if test "$no_cache" != 1; then | |
7760 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
7761 | fi | |
7762 | ||
7763 | if test "$wxUSE_MENUS" = yes; then | |
7764 | echo "$ac_t""yes" 1>&6 | |
7765 | else | |
7766 | echo "$ac_t""no" 1>&6 | |
7767 | fi | |
7768 | ||
7769 | ||
698dcdb6 | 7770 | echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6 |
17234b26 | 7771 | echo "configure:7772: checking for --enable-miniframe" >&5 |
10f2d63a VZ |
7772 | no_cache=0 |
7773 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
7774 | if test "${enable_miniframe+set}" = set; then | |
7775 | enableval="$enable_miniframe" | |
698dcdb6 | 7776 | |
10f2d63a VZ |
7777 | if test "$enableval" = yes; then |
7778 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
7779 | else | |
7780 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
7781 | fi | |
698dcdb6 | 7782 | |
10f2d63a | 7783 | else |
698dcdb6 | 7784 | |
10f2d63a VZ |
7785 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` |
7786 | if test "x$LINE" != x ; then | |
7787 | eval "DEFAULT_$LINE" | |
7788 | else | |
7789 | no_cache=1 | |
7790 | fi | |
7791 | ||
7792 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
698dcdb6 VZ |
7793 | |
7794 | fi | |
10f2d63a VZ |
7795 | |
7796 | ||
7797 | eval "$ac_cv_use_miniframe" | |
7798 | if test "$no_cache" != 1; then | |
7799 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
7800 | fi | |
7801 | ||
7802 | if test "$wxUSE_MINIFRAME" = yes; then | |
698dcdb6 | 7803 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7804 | else |
698dcdb6 | 7805 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7806 | fi |
698dcdb6 | 7807 | |
10f2d63a | 7808 | |
698dcdb6 | 7809 | echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6 |
17234b26 | 7810 | echo "configure:7811: checking for --enable-tooltips" >&5 |
10f2d63a VZ |
7811 | no_cache=0 |
7812 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
7813 | if test "${enable_tooltips+set}" = set; then | |
7814 | enableval="$enable_tooltips" | |
698dcdb6 | 7815 | |
10f2d63a VZ |
7816 | if test "$enableval" = yes; then |
7817 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
7818 | else | |
7819 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
7820 | fi | |
698dcdb6 | 7821 | |
10f2d63a | 7822 | else |
698dcdb6 | 7823 | |
10f2d63a VZ |
7824 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` |
7825 | if test "x$LINE" != x ; then | |
7826 | eval "DEFAULT_$LINE" | |
7827 | else | |
7828 | no_cache=1 | |
7829 | fi | |
7830 | ||
7831 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
698dcdb6 VZ |
7832 | |
7833 | fi | |
10f2d63a VZ |
7834 | |
7835 | ||
7836 | eval "$ac_cv_use_tooltips" | |
7837 | if test "$no_cache" != 1; then | |
7838 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
7839 | fi | |
7840 | ||
7841 | if test "$wxUSE_TOOLTIPS" = yes; then | |
698dcdb6 | 7842 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7843 | else |
698dcdb6 | 7844 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7845 | fi |
698dcdb6 | 7846 | |
10f2d63a | 7847 | |
698dcdb6 | 7848 | echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6 |
17234b26 | 7849 | echo "configure:7850: checking for --enable-splines" >&5 |
10f2d63a VZ |
7850 | no_cache=0 |
7851 | # Check whether --enable-splines or --disable-splines was given. | |
7852 | if test "${enable_splines+set}" = set; then | |
7853 | enableval="$enable_splines" | |
698dcdb6 | 7854 | |
10f2d63a VZ |
7855 | if test "$enableval" = yes; then |
7856 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
7857 | else | |
7858 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
7859 | fi | |
698dcdb6 | 7860 | |
10f2d63a | 7861 | else |
698dcdb6 | 7862 | |
10f2d63a VZ |
7863 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` |
7864 | if test "x$LINE" != x ; then | |
7865 | eval "DEFAULT_$LINE" | |
7866 | else | |
7867 | no_cache=1 | |
7868 | fi | |
7869 | ||
7870 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
698dcdb6 VZ |
7871 | |
7872 | fi | |
10f2d63a VZ |
7873 | |
7874 | ||
7875 | eval "$ac_cv_use_splines" | |
7876 | if test "$no_cache" != 1; then | |
7877 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
7878 | fi | |
7879 | ||
7880 | if test "$wxUSE_SPLINES" = yes; then | |
698dcdb6 | 7881 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7882 | else |
698dcdb6 | 7883 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7884 | fi |
698dcdb6 | 7885 | |
10f2d63a | 7886 | |
698dcdb6 | 7887 | echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6 |
17234b26 | 7888 | echo "configure:7889: checking for --enable-validators" >&5 |
10f2d63a VZ |
7889 | no_cache=0 |
7890 | # Check whether --enable-validators or --disable-validators was given. | |
7891 | if test "${enable_validators+set}" = set; then | |
7892 | enableval="$enable_validators" | |
698dcdb6 | 7893 | |
10f2d63a VZ |
7894 | if test "$enableval" = yes; then |
7895 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
7896 | else | |
7897 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
7898 | fi | |
698dcdb6 | 7899 | |
10f2d63a | 7900 | else |
698dcdb6 | 7901 | |
10f2d63a VZ |
7902 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` |
7903 | if test "x$LINE" != x ; then | |
7904 | eval "DEFAULT_$LINE" | |
7905 | else | |
7906 | no_cache=1 | |
7907 | fi | |
7908 | ||
7909 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
698dcdb6 VZ |
7910 | |
7911 | fi | |
10f2d63a VZ |
7912 | |
7913 | ||
7914 | eval "$ac_cv_use_validators" | |
7915 | if test "$no_cache" != 1; then | |
7916 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
7917 | fi | |
7918 | ||
7919 | if test "$wxUSE_VALIDATORS" = yes; then | |
698dcdb6 | 7920 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7921 | else |
698dcdb6 | 7922 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7923 | fi |
698dcdb6 | 7924 | |
10f2d63a | 7925 | |
698dcdb6 | 7926 | echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6 |
17234b26 | 7927 | echo "configure:7928: checking for --enable-busyinfo" >&5 |
10f2d63a VZ |
7928 | no_cache=0 |
7929 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
7930 | if test "${enable_busyinfo+set}" = set; then | |
7931 | enableval="$enable_busyinfo" | |
698dcdb6 | 7932 | |
10f2d63a VZ |
7933 | if test "$enableval" = yes; then |
7934 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
7935 | else | |
7936 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
7937 | fi | |
698dcdb6 | 7938 | |
10f2d63a | 7939 | else |
698dcdb6 | 7940 | |
10f2d63a VZ |
7941 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` |
7942 | if test "x$LINE" != x ; then | |
7943 | eval "DEFAULT_$LINE" | |
7944 | else | |
7945 | no_cache=1 | |
7946 | fi | |
7947 | ||
7948 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
698dcdb6 VZ |
7949 | |
7950 | fi | |
10f2d63a VZ |
7951 | |
7952 | ||
7953 | eval "$ac_cv_use_busyinfo" | |
7954 | if test "$no_cache" != 1; then | |
7955 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
7956 | fi | |
7957 | ||
7958 | if test "$wxUSE_BUSYINFO" = yes; then | |
698dcdb6 | 7959 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7960 | else |
698dcdb6 | 7961 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7962 | fi |
698dcdb6 | 7963 | |
10f2d63a | 7964 | |
698dcdb6 | 7965 | echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6 |
17234b26 | 7966 | echo "configure:7967: checking for --enable-joystick" >&5 |
f6bcfd97 BP |
7967 | no_cache=0 |
7968 | # Check whether --enable-joystick or --disable-joystick was given. | |
7969 | if test "${enable_joystick+set}" = set; then | |
7970 | enableval="$enable_joystick" | |
698dcdb6 | 7971 | |
f6bcfd97 BP |
7972 | if test "$enableval" = yes; then |
7973 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
7974 | else | |
7975 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
7976 | fi | |
698dcdb6 | 7977 | |
f6bcfd97 | 7978 | else |
698dcdb6 | 7979 | |
f6bcfd97 BP |
7980 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` |
7981 | if test "x$LINE" != x ; then | |
7982 | eval "DEFAULT_$LINE" | |
7983 | else | |
7984 | no_cache=1 | |
7985 | fi | |
7986 | ||
7987 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
698dcdb6 VZ |
7988 | |
7989 | fi | |
f6bcfd97 BP |
7990 | |
7991 | ||
7992 | eval "$ac_cv_use_joystick" | |
7993 | if test "$no_cache" != 1; then | |
7994 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
7995 | fi | |
7996 | ||
7997 | if test "$wxUSE_JOYSTICK" = yes; then | |
698dcdb6 | 7998 | echo "$ac_t""yes" 1>&6 |
f6bcfd97 | 7999 | else |
698dcdb6 | 8000 | echo "$ac_t""no" 1>&6 |
f6bcfd97 | 8001 | fi |
698dcdb6 VZ |
8002 | |
8003 | ||
1e6feb95 | 8004 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
17234b26 | 8005 | echo "configure:8006: checking for --enable-metafile" >&5 |
1e6feb95 VZ |
8006 | no_cache=0 |
8007 | # Check whether --enable-metafile or --disable-metafile was given. | |
8008 | if test "${enable_metafile+set}" = set; then | |
8009 | enableval="$enable_metafile" | |
8010 | ||
8011 | if test "$enableval" = yes; then | |
8012 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
8013 | else | |
8014 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
8015 | fi | |
8016 | ||
8017 | else | |
8018 | ||
8019 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
8020 | if test "x$LINE" != x ; then | |
8021 | eval "DEFAULT_$LINE" | |
8022 | else | |
8023 | no_cache=1 | |
8024 | fi | |
8025 | ||
8026 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
8027 | ||
8028 | fi | |
8029 | ||
8030 | ||
8031 | eval "$ac_cv_use_metafile" | |
8032 | if test "$no_cache" != 1; then | |
8033 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
8034 | fi | |
8035 | ||
8036 | if test "$wxUSE_METAFILE" = yes; then | |
8037 | echo "$ac_t""yes" 1>&6 | |
8038 | else | |
8039 | echo "$ac_t""no" 1>&6 | |
8040 | fi | |
8041 | ||
8042 | ||
24fd6d87 | 8043 | echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6 |
17234b26 | 8044 | echo "configure:8045: checking for --enable-dragimage" >&5 |
24fd6d87 VZ |
8045 | no_cache=0 |
8046 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
8047 | if test "${enable_dragimage+set}" = set; then | |
8048 | enableval="$enable_dragimage" | |
8049 | ||
8050 | if test "$enableval" = yes; then | |
8051 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
8052 | else | |
8053 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
8054 | fi | |
8055 | ||
8056 | else | |
8057 | ||
8058 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
8059 | if test "x$LINE" != x ; then | |
8060 | eval "DEFAULT_$LINE" | |
8061 | else | |
8062 | no_cache=1 | |
8063 | fi | |
8064 | ||
8065 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
8066 | ||
8067 | fi | |
8068 | ||
8069 | ||
8070 | eval "$ac_cv_use_dragimage" | |
8071 | if test "$no_cache" != 1; then | |
8072 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
8073 | fi | |
8074 | ||
8075 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
8076 | echo "$ac_t""yes" 1>&6 | |
8077 | else | |
8078 | echo "$ac_t""no" 1>&6 | |
8079 | fi | |
8080 | ||
8081 | ||
10f2d63a | 8082 | |
698dcdb6 | 8083 | |
edae8572 | 8084 | echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6 |
17234b26 | 8085 | echo "configure:8086: checking for --enable-palette" >&5 |
edae8572 VZ |
8086 | no_cache=0 |
8087 | # Check whether --enable-palette or --disable-palette was given. | |
8088 | if test "${enable_palette+set}" = set; then | |
8089 | enableval="$enable_palette" | |
8090 | ||
8091 | if test "$enableval" = yes; then | |
8092 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
8093 | else | |
8094 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
8095 | fi | |
8096 | ||
8097 | else | |
8098 | ||
8099 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` | |
8100 | if test "x$LINE" != x ; then | |
8101 | eval "DEFAULT_$LINE" | |
8102 | else | |
8103 | no_cache=1 | |
8104 | fi | |
8105 | ||
8106 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
8107 | ||
8108 | fi | |
8109 | ||
8110 | ||
8111 | eval "$ac_cv_use_palette" | |
8112 | if test "$no_cache" != 1; then | |
8113 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
8114 | fi | |
8115 | ||
8116 | if test "$wxUSE_PALETTE" = yes; then | |
8117 | echo "$ac_t""yes" 1>&6 | |
8118 | else | |
8119 | echo "$ac_t""no" 1>&6 | |
8120 | fi | |
8121 | ||
8122 | ||
698dcdb6 | 8123 | echo $ac_n "checking for --enable-image""... $ac_c" 1>&6 |
17234b26 | 8124 | echo "configure:8125: checking for --enable-image" >&5 |
0046ff7c VS |
8125 | no_cache=0 |
8126 | # Check whether --enable-image or --disable-image was given. | |
8127 | if test "${enable_image+set}" = set; then | |
8128 | enableval="$enable_image" | |
698dcdb6 | 8129 | |
0046ff7c VS |
8130 | if test "$enableval" = yes; then |
8131 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
8132 | else | |
8133 | ac_cv_use_image='wxUSE_IMAGE=no' | |
8134 | fi | |
698dcdb6 | 8135 | |
0046ff7c | 8136 | else |
698dcdb6 | 8137 | |
0046ff7c VS |
8138 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` |
8139 | if test "x$LINE" != x ; then | |
8140 | eval "DEFAULT_$LINE" | |
8141 | else | |
8142 | no_cache=1 | |
8143 | fi | |
8144 | ||
8145 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
698dcdb6 VZ |
8146 | |
8147 | fi | |
0046ff7c VS |
8148 | |
8149 | ||
8150 | eval "$ac_cv_use_image" | |
8151 | if test "$no_cache" != 1; then | |
8152 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
8153 | fi | |
8154 | ||
8155 | if test "$wxUSE_IMAGE" = yes; then | |
698dcdb6 | 8156 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 8157 | else |
698dcdb6 | 8158 | echo "$ac_t""no" 1>&6 |
0046ff7c | 8159 | fi |
698dcdb6 | 8160 | |
0046ff7c | 8161 | |
698dcdb6 | 8162 | echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6 |
17234b26 | 8163 | echo "configure:8164: checking for --enable-gif" >&5 |
10f2d63a VZ |
8164 | no_cache=0 |
8165 | # Check whether --enable-gif or --disable-gif was given. | |
8166 | if test "${enable_gif+set}" = set; then | |
8167 | enableval="$enable_gif" | |
698dcdb6 | 8168 | |
10f2d63a VZ |
8169 | if test "$enableval" = yes; then |
8170 | ac_cv_use_gif='wxUSE_GIF=yes' | |
8171 | else | |
8172 | ac_cv_use_gif='wxUSE_GIF=no' | |
8173 | fi | |
698dcdb6 | 8174 | |
10f2d63a | 8175 | else |
698dcdb6 | 8176 | |
10f2d63a VZ |
8177 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` |
8178 | if test "x$LINE" != x ; then | |
8179 | eval "DEFAULT_$LINE" | |
8180 | else | |
8181 | no_cache=1 | |
8182 | fi | |
8183 | ||
8184 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
698dcdb6 VZ |
8185 | |
8186 | fi | |
10f2d63a VZ |
8187 | |
8188 | ||
8189 | eval "$ac_cv_use_gif" | |
8190 | if test "$no_cache" != 1; then | |
8191 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
8192 | fi | |
8193 | ||
8194 | if test "$wxUSE_GIF" = yes; then | |
698dcdb6 | 8195 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8196 | else |
698dcdb6 | 8197 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8198 | fi |
698dcdb6 | 8199 | |
10f2d63a | 8200 | |
698dcdb6 | 8201 | echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6 |
17234b26 | 8202 | echo "configure:8203: checking for --enable-pcx" >&5 |
10f2d63a VZ |
8203 | no_cache=0 |
8204 | # Check whether --enable-pcx or --disable-pcx was given. | |
8205 | if test "${enable_pcx+set}" = set; then | |
8206 | enableval="$enable_pcx" | |
698dcdb6 | 8207 | |
10f2d63a VZ |
8208 | if test "$enableval" = yes; then |
8209 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
8210 | else | |
8211 | ac_cv_use_pcx='wxUSE_PCX=no' | |
8212 | fi | |
698dcdb6 | 8213 | |
10f2d63a | 8214 | else |
698dcdb6 | 8215 | |
10f2d63a VZ |
8216 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` |
8217 | if test "x$LINE" != x ; then | |
8218 | eval "DEFAULT_$LINE" | |
8219 | else | |
8220 | no_cache=1 | |
8221 | fi | |
8222 | ||
8223 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
698dcdb6 VZ |
8224 | |
8225 | fi | |
10f2d63a VZ |
8226 | |
8227 | ||
8228 | eval "$ac_cv_use_pcx" | |
8229 | if test "$no_cache" != 1; then | |
8230 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
8231 | fi | |
8232 | ||
8233 | if test "$wxUSE_PCX" = yes; then | |
698dcdb6 | 8234 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8235 | else |
698dcdb6 | 8236 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8237 | fi |
698dcdb6 | 8238 | |
10f2d63a | 8239 | |
4b6b4dfc | 8240 | echo $ac_n "checking for --enable-iff""... $ac_c" 1>&6 |
17234b26 | 8241 | echo "configure:8242: checking for --enable-iff" >&5 |
4b6b4dfc RR |
8242 | no_cache=0 |
8243 | # Check whether --enable-iff or --disable-iff was given. | |
8244 | if test "${enable_iff+set}" = set; then | |
8245 | enableval="$enable_iff" | |
8246 | ||
8247 | if test "$enableval" = yes; then | |
8248 | ac_cv_use_iff='wxUSE_IFF=yes' | |
8249 | else | |
8250 | ac_cv_use_iff='wxUSE_IFF=no' | |
8251 | fi | |
8252 | ||
8253 | else | |
8254 | ||
8255 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` | |
8256 | if test "x$LINE" != x ; then | |
8257 | eval "DEFAULT_$LINE" | |
8258 | else | |
8259 | no_cache=1 | |
8260 | fi | |
8261 | ||
8262 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
8263 | ||
8264 | fi | |
8265 | ||
8266 | ||
8267 | eval "$ac_cv_use_iff" | |
8268 | if test "$no_cache" != 1; then | |
8269 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
8270 | fi | |
8271 | ||
8272 | if test "$wxUSE_IFF" = yes; then | |
8273 | echo "$ac_t""yes" 1>&6 | |
8274 | else | |
8275 | echo "$ac_t""no" 1>&6 | |
8276 | fi | |
8277 | ||
8278 | ||
698dcdb6 | 8279 | echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6 |
17234b26 | 8280 | echo "configure:8281: checking for --enable-pnm" >&5 |
10f2d63a VZ |
8281 | no_cache=0 |
8282 | # Check whether --enable-pnm or --disable-pnm was given. | |
8283 | if test "${enable_pnm+set}" = set; then | |
8284 | enableval="$enable_pnm" | |
698dcdb6 | 8285 | |
10f2d63a VZ |
8286 | if test "$enableval" = yes; then |
8287 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
8288 | else | |
8289 | ac_cv_use_pnm='wxUSE_PNM=no' | |
8290 | fi | |
698dcdb6 | 8291 | |
10f2d63a | 8292 | else |
698dcdb6 | 8293 | |
10f2d63a VZ |
8294 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` |
8295 | if test "x$LINE" != x ; then | |
8296 | eval "DEFAULT_$LINE" | |
8297 | else | |
8298 | no_cache=1 | |
8299 | fi | |
8300 | ||
8301 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
698dcdb6 VZ |
8302 | |
8303 | fi | |
10f2d63a VZ |
8304 | |
8305 | ||
8306 | eval "$ac_cv_use_pnm" | |
8307 | if test "$no_cache" != 1; then | |
8308 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
8309 | fi | |
8310 | ||
8311 | if test "$wxUSE_PNM" = yes; then | |
698dcdb6 | 8312 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8313 | else |
698dcdb6 | 8314 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8315 | fi |
698dcdb6 | 8316 | |
10f2d63a | 8317 | |
69d27ff7 | 8318 | echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6 |
17234b26 | 8319 | echo "configure:8320: checking for --enable-xpm" >&5 |
0046ff7c | 8320 | no_cache=0 |
69d27ff7 MB |
8321 | # Check whether --enable-xpm or --disable-xpm was given. |
8322 | if test "${enable_xpm+set}" = set; then | |
8323 | enableval="$enable_xpm" | |
698dcdb6 | 8324 | |
0046ff7c | 8325 | if test "$enableval" = yes; then |
69d27ff7 | 8326 | ac_cv_use_xpm='wxUSE_XPM=yes' |
0046ff7c | 8327 | else |
69d27ff7 | 8328 | ac_cv_use_xpm='wxUSE_XPM=no' |
0046ff7c | 8329 | fi |
698dcdb6 | 8330 | |
0046ff7c | 8331 | else |
698dcdb6 | 8332 | |
0046ff7c VS |
8333 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` |
8334 | if test "x$LINE" != x ; then | |
8335 | eval "DEFAULT_$LINE" | |
8336 | else | |
8337 | no_cache=1 | |
8338 | fi | |
8339 | ||
69d27ff7 | 8340 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM |
698dcdb6 VZ |
8341 | |
8342 | fi | |
0046ff7c VS |
8343 | |
8344 | ||
69d27ff7 | 8345 | eval "$ac_cv_use_xpm" |
0046ff7c | 8346 | if test "$no_cache" != 1; then |
69d27ff7 | 8347 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp |
0046ff7c VS |
8348 | fi |
8349 | ||
8350 | if test "$wxUSE_XPM" = yes; then | |
698dcdb6 | 8351 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 8352 | else |
698dcdb6 | 8353 | echo "$ac_t""no" 1>&6 |
0046ff7c | 8354 | fi |
698dcdb6 | 8355 | |
0046ff7c | 8356 | |
c7206e64 | 8357 | echo $ac_n "checking for --enable-ico_cur""... $ac_c" 1>&6 |
17234b26 | 8358 | echo "configure:8359: checking for --enable-ico_cur" >&5 |
658974ae | 8359 | no_cache=0 |
c7206e64 VS |
8360 | # Check whether --enable-ico_cur or --disable-ico_cur was given. |
8361 | if test "${enable_ico_cur+set}" = set; then | |
8362 | enableval="$enable_ico_cur" | |
658974ae VS |
8363 | |
8364 | if test "$enableval" = yes; then | |
c7206e64 | 8365 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' |
658974ae | 8366 | else |
c7206e64 | 8367 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' |
658974ae VS |
8368 | fi |
8369 | ||
8370 | else | |
8371 | ||
8372 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` | |
8373 | if test "x$LINE" != x ; then | |
8374 | eval "DEFAULT_$LINE" | |
8375 | else | |
8376 | no_cache=1 | |
8377 | fi | |
8378 | ||
c7206e64 | 8379 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR |
658974ae VS |
8380 | |
8381 | fi | |
8382 | ||
8383 | ||
c7206e64 | 8384 | eval "$ac_cv_use_ico_cur" |
658974ae | 8385 | if test "$no_cache" != 1; then |
c7206e64 | 8386 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp |
658974ae VS |
8387 | fi |
8388 | ||
8389 | if test "$wxUSE_ICO_CUR" = yes; then | |
8390 | echo "$ac_t""yes" 1>&6 | |
8391 | else | |
8392 | echo "$ac_t""no" 1>&6 | |
8393 | fi | |
8394 | ||
8395 | ||
b12915c1 VZ |
8396 | fi |
8397 | ||
d558c907 VS |
8398 | case "${host}" in |
8399 | *-pc-os2_emx | *-pc-os2-emx ) | |
8400 | LEX_STEM="lexyy" | |
8401 | ;; | |
8402 | *) | |
8403 | PATH_IFS=':' | |
8404 | LEX_STEM="lex.yy" | |
8405 | ;; | |
8406 | esac | |
8407 | ||
8408 | ||
698dcdb6 | 8409 | |
10f2d63a VZ |
8410 | echo "saving argument cache $wx_arg_cache_file" |
8411 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
698dcdb6 | 8412 | |
10f2d63a | 8413 | |
698dcdb6 VZ |
8414 | |
8415 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 | |
17234b26 | 8416 | echo "configure:8417: checking for toolkit" >&5 |
10f2d63a VZ |
8417 | |
8418 | if test "$wxUSE_GUI" = "yes"; then | |
8419 | ||
3a922bb4 RL |
8420 | if test "$USE_BEOS" = 1; then |
8421 | { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; } | |
8422 | fi | |
b12915c1 | 8423 | |
3a922bb4 RL |
8424 | if test "$TOOLKIT_GIVEN" = 1; then |
8425 | for toolkit in `echo $ALL_TOOLKITS`; do | |
8426 | var=wxUSE_$toolkit | |
8427 | eval "value=\$${var}" | |
8428 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
8429 | done | |
10f2d63a | 8430 | else |
3a922bb4 RL |
8431 | for toolkit in `echo $ALL_TOOLKITS`; do |
8432 | if test "$has_toolkit_in_cache" != 1; then | |
8433 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
8434 | else | |
8435 | var=DEFAULT_wxUSE_$toolkit | |
8436 | fi | |
8437 | eval "wxUSE_$toolkit=\$${var}" | |
8438 | done | |
10f2d63a | 8439 | fi |
10f2d63a | 8440 | |
3a922bb4 | 8441 | NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \ |
f79bd02d | 8442 | + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}` |
10f2d63a | 8443 | |
d558c907 | 8444 | case "${host}" in |
6fa882bd | 8445 | *-pc-os2_emx | *-pc-os2-emx ) |
3a922bb4 | 8446 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` |
3a922bb4 | 8447 | esac |
10f2d63a | 8448 | |
3a922bb4 RL |
8449 | case "$NUM_TOOLKITS" in |
8450 | 1) | |
8451 | ;; | |
8452 | 0) | |
8453 | { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; } | |
8454 | ;; | |
8455 | *) | |
8456 | { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; } | |
8457 | esac | |
10f2d63a | 8458 | |
3a922bb4 RL |
8459 | for toolkit in `echo $ALL_TOOLKITS`; do |
8460 | var=wxUSE_$toolkit | |
8461 | eval "value=\$${var}" | |
8462 | if test "x$value" != x; then | |
8463 | cache_var=CACHE_$toolkit | |
8464 | eval "cache=\$${cache_var}" | |
8465 | if test "$cache" = 1; then | |
8466 | echo "$var=$value" >> ${wx_arg_cache_file} | |
8467 | fi | |
8468 | if test "$value" = 1; then | |
8469 | toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]` | |
8470 | echo "$ac_t""$toolkit_echo" 1>&6 | |
8471 | fi | |
8472 | fi | |
8473 | done | |
10f2d63a | 8474 | else |
3a922bb4 | 8475 | echo "$ac_t""base ($host_alias hosted) only" 1>&6 |
10f2d63a VZ |
8476 | fi |
8477 | ||
698dcdb6 | 8478 | |
17234b26 MB |
8479 | define_win32=0 |
8480 | case "${host}" in | |
8481 | *-*-cygwin*) | |
8482 | if test "$wxUSE_MSW" = 1 ; then | |
8483 | define_win32=1 | |
8484 | fi | |
8485 | ;; | |
8486 | *-*-mingw*) | |
8487 | define_win32=1 | |
8488 | ;; | |
8489 | esac | |
8490 | ||
8491 | if test "$define_win32" = 1 ; then | |
8492 | USE_UNIX=0 | |
8493 | USE_WIN32=1 | |
8494 | cat >> confdefs.h <<\EOF | |
8495 | #define __WIN32__ 1 | |
8496 | EOF | |
8497 | ||
8498 | cat >> confdefs.h <<\EOF | |
8499 | #define __WIN95__ 1 | |
8500 | EOF | |
8501 | ||
8502 | cat >> confdefs.h <<\EOF | |
8503 | #define __WINDOWS__ 1 | |
8504 | EOF | |
8505 | ||
8506 | cat >> confdefs.h <<\EOF | |
8507 | #define __GNUWIN32__ 1 | |
8508 | EOF | |
8509 | ||
8510 | cat >> confdefs.h <<\EOF | |
8511 | #define STRICT 1 | |
8512 | EOF | |
8513 | ||
8514 | cat >> confdefs.h <<\EOF | |
8515 | #define WINVER 0x0400 | |
8516 | EOF | |
8517 | ||
8518 | else | |
8519 | USE_UNIX=1 | |
8520 | USE_WIN32=0 | |
8521 | fi | |
8522 | ||
8523 | if test "$USE_UNIX" = 1 ; then | |
8524 | wxUSE_UNIX=yes | |
8525 | cat >> confdefs.h <<\EOF | |
8526 | #define __UNIX__ 1 | |
8527 | EOF | |
8528 | ||
8529 | fi | |
8530 | ||
8531 | ||
698dcdb6 | 8532 | cat > confcache <<\EOF |
10f2d63a VZ |
8533 | # This file is a shell script that caches the results of configure |
8534 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
8535 | # scripts and configure runs. It is not useful on other systems. |
8536 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 8537 | # |
698dcdb6 VZ |
8538 | # By default, configure uses ./config.cache as the cache file, |
8539 | # creating it if it does not exist already. You can give configure | |
8540 | # the --cache-file=FILE option to use a different cache file; that is | |
8541 | # what configure does when it calls configure scripts in | |
8542 | # subdirectories, so they share the cache. | |
8543 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
8544 | # config.status only pays attention to the cache file if you give it the | |
8545 | # --recheck option to rerun configure. | |
10f2d63a | 8546 | # |
698dcdb6 | 8547 | EOF |
10f2d63a VZ |
8548 | # The following way of writing the cache mishandles newlines in values, |
8549 | # but we know of no workaround that is simple, portable, and efficient. | |
8550 | # So, don't put newlines in cache variables' values. | |
8551 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
8552 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
8553 | (set) 2>&1 | |
8554 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
8555 | *ac_space=\ *) | |
8556 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
8557 | # turns \\\\ into \\, and sed turns \\ into \). | |
8558 | sed -n \ | |
8559 | -e "s/'/'\\\\''/g" \ | |
8560 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
8561 | ;; | |
8562 | *) | |
8563 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
8564 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
8565 | ;; | |
8566 | esac >> confcache | |
8567 | if cmp -s $cache_file confcache; then | |
8568 | : | |
8569 | else | |
10f2d63a | 8570 | if test -w $cache_file; then |
698dcdb6 VZ |
8571 | echo "updating cache $cache_file" |
8572 | cat confcache > $cache_file | |
10f2d63a VZ |
8573 | else |
8574 | echo "not updating unwritable cache $cache_file" | |
8575 | fi | |
8576 | fi | |
8577 | rm -f confcache | |
8578 | ||
698dcdb6 | 8579 | |
e59890c3 | 8580 | if test "$build" != "$host" ; then |
9d353d4a | 8581 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then |
3a922bb4 RL |
8582 | CC=$host_alias-gcc |
8583 | CXX=$host_alias-c++ | |
8584 | AR=$host_alias-ar | |
8585 | RANLIB=$host_alias-ranlib | |
8586 | DLLTOOL=$host_alias-dlltool | |
8587 | RESCOMP=$host_alias-windres | |
8588 | LD=$host_alias-ld | |
8589 | NM=$host_alias-nm | |
8590 | STRIP=$host_alias-strip | |
8591 | else | |
8592 | { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; } | |
8593 | fi | |
10f2d63a VZ |
8594 | fi |
8595 | ||
ec603395 | 8596 | CFLAGS=${CFLAGS:=} |
698dcdb6 | 8597 | # Extract the first word of "gcc", so it can be a program name with args. |
1e487827 | 8598 | set dummy gcc; ac_word=$2 |
698dcdb6 | 8599 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
17234b26 | 8600 | echo "configure:8601: checking for $ac_word" >&5 |
698dcdb6 VZ |
8601 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8602 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6232543b VS |
8603 | else |
8604 | if test -n "$CC"; then | |
8605 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10f2d63a | 8606 | else |
698dcdb6 VZ |
8607 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8608 | ac_dummy="$PATH" | |
8609 | for ac_dir in $ac_dummy; do | |
8610 | test -z "$ac_dir" && ac_dir=. | |
8611 | if test -f $ac_dir/$ac_word; then | |
8612 | ac_cv_prog_CC="gcc" | |
8613 | break | |
8614 | fi | |
8615 | done | |
8616 | IFS="$ac_save_ifs" | |
10f2d63a | 8617 | fi |
6232543b | 8618 | fi |
698dcdb6 | 8619 | CC="$ac_cv_prog_CC" |
6232543b | 8620 | if test -n "$CC"; then |
698dcdb6 | 8621 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 8622 | else |
698dcdb6 | 8623 | echo "$ac_t""no" 1>&6 |
1e487827 | 8624 | fi |
6232543b | 8625 | |
1e487827 VS |
8626 | if test -z "$CC"; then |
8627 | # Extract the first word of "cc", so it can be a program name with args. | |
8628 | set dummy cc; ac_word=$2 | |
698dcdb6 | 8629 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
17234b26 | 8630 | echo "configure:8631: checking for $ac_word" >&5 |
698dcdb6 VZ |
8631 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8632 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 VS |
8633 | else |
8634 | if test -n "$CC"; then | |
8635 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
8636 | else | |
698dcdb6 | 8637 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1e487827 | 8638 | ac_prog_rejected=no |
698dcdb6 VZ |
8639 | ac_dummy="$PATH" |
8640 | for ac_dir in $ac_dummy; do | |
8641 | test -z "$ac_dir" && ac_dir=. | |
8642 | if test -f $ac_dir/$ac_word; then | |
8643 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
8644 | ac_prog_rejected=yes | |
8645 | continue | |
8646 | fi | |
8647 | ac_cv_prog_CC="cc" | |
8648 | break | |
8649 | fi | |
8650 | done | |
8651 | IFS="$ac_save_ifs" | |
1e487827 VS |
8652 | if test $ac_prog_rejected = yes; then |
8653 | # We found a bogon in the path, so make sure we never use it. | |
8654 | set dummy $ac_cv_prog_CC | |
8655 | shift | |
698dcdb6 | 8656 | if test $# -gt 0; then |
1e487827 VS |
8657 | # We chose a different compiler from the bogus one. |
8658 | # However, it has the same basename, so the bogon will be chosen | |
8659 | # first if we set CC to just the basename; use the full file name. | |
8660 | shift | |
698dcdb6 | 8661 | set dummy "$ac_dir/$ac_word" "$@" |
1e487827 VS |
8662 | shift |
8663 | ac_cv_prog_CC="$@" | |
703e0a69 | 8664 | fi |
1e487827 VS |
8665 | fi |
8666 | fi | |
8667 | fi | |
698dcdb6 | 8668 | CC="$ac_cv_prog_CC" |
1e487827 | 8669 | if test -n "$CC"; then |
698dcdb6 | 8670 | echo "$ac_t""$CC" 1>&6 |
703e0a69 | 8671 | else |
698dcdb6 | 8672 | echo "$ac_t""no" 1>&6 |
703e0a69 | 8673 | fi |
1e487827 | 8674 | |
698dcdb6 VZ |
8675 | if test -z "$CC"; then |
8676 | case "`uname -s`" in | |
8677 | *win32* | *WIN32*) | |
8678 | # Extract the first word of "cl", so it can be a program name with args. | |
8679 | set dummy cl; ac_word=$2 | |
8680 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
17234b26 | 8681 | echo "configure:8682: checking for $ac_word" >&5 |
698dcdb6 VZ |
8682 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8683 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 VS |
8684 | else |
8685 | if test -n "$CC"; then | |
8686 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
703e0a69 | 8687 | else |
698dcdb6 VZ |
8688 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8689 | ac_dummy="$PATH" | |
8690 | for ac_dir in $ac_dummy; do | |
8691 | test -z "$ac_dir" && ac_dir=. | |
8692 | if test -f $ac_dir/$ac_word; then | |
8693 | ac_cv_prog_CC="cl" | |
8694 | break | |
8695 | fi | |
8696 | done | |
8697 | IFS="$ac_save_ifs" | |
703e0a69 | 8698 | fi |
1e487827 | 8699 | fi |
698dcdb6 | 8700 | CC="$ac_cv_prog_CC" |
1e487827 | 8701 | if test -n "$CC"; then |
698dcdb6 | 8702 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 8703 | else |
698dcdb6 | 8704 | echo "$ac_t""no" 1>&6 |
1e487827 | 8705 | fi |
698dcdb6 VZ |
8706 | ;; |
8707 | esac | |
8708 | fi | |
8709 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
1e487827 VS |
8710 | fi |
8711 | ||
698dcdb6 | 8712 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
17234b26 | 8713 | echo "configure:8714: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
1e487827 | 8714 | |
698dcdb6 VZ |
8715 | ac_ext=c |
8716 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8717 | ac_cpp='$CPP $CPPFLAGS' | |
8718 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8719 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8720 | cross_compiling=$ac_cv_prog_cc_cross | |
6232543b | 8721 | |
698dcdb6 | 8722 | cat > conftest.$ac_ext << EOF |
1e487827 | 8723 | |
17234b26 | 8724 | #line 8725 "configure" |
1e487827 VS |
8725 | #include "confdefs.h" |
8726 | ||
698dcdb6 VZ |
8727 | main(){return(0);} |
8728 | EOF | |
17234b26 | 8729 | if { (eval echo configure:8730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
8730 | ac_cv_prog_cc_works=yes |
8731 | # If we can't run a trivial program, we are probably using a cross compiler. | |
8732 | if (./conftest; exit) 2>/dev/null; then | |
8733 | ac_cv_prog_cc_cross=no | |
8734 | else | |
8735 | ac_cv_prog_cc_cross=yes | |
8736 | fi | |
8737 | else | |
8738 | echo "configure: failed program was:" >&5 | |
8739 | cat conftest.$ac_ext >&5 | |
8740 | ac_cv_prog_cc_works=no | |
8741 | fi | |
8742 | rm -fr conftest* | |
8743 | ac_ext=c | |
8744 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8745 | ac_cpp='$CPP $CPPFLAGS' | |
8746 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8747 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8748 | cross_compiling=$ac_cv_prog_cc_cross | |
8749 | ||
8750 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
8751 | if test $ac_cv_prog_cc_works = no; then | |
8752 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
8753 | fi | |
8754 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
17234b26 | 8755 | echo "configure:8756: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
698dcdb6 VZ |
8756 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
8757 | cross_compiling=$ac_cv_prog_cc_cross | |
8758 | ||
8759 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
17234b26 | 8760 | echo "configure:8761: checking whether we are using GNU C" >&5 |
698dcdb6 VZ |
8761 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
8762 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8763 | else | |
8764 | cat > conftest.c <<EOF | |
8765 | #ifdef __GNUC__ | |
8766 | yes; | |
1e487827 | 8767 | #endif |
698dcdb6 | 8768 | EOF |
17234b26 | 8769 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8770: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
698dcdb6 VZ |
8770 | ac_cv_prog_gcc=yes |
8771 | else | |
8772 | ac_cv_prog_gcc=no | |
8773 | fi | |
8774 | fi | |
1e487827 | 8775 | |
698dcdb6 | 8776 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
1e487827 | 8777 | |
698dcdb6 VZ |
8778 | if test $ac_cv_prog_gcc = yes; then |
8779 | GCC=yes | |
8780 | else | |
8781 | GCC= | |
8782 | fi | |
1e487827 | 8783 | |
698dcdb6 VZ |
8784 | ac_test_CFLAGS="${CFLAGS+set}" |
8785 | ac_save_CFLAGS="$CFLAGS" | |
8786 | CFLAGS= | |
8787 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
17234b26 | 8788 | echo "configure:8789: checking whether ${CC-cc} accepts -g" >&5 |
698dcdb6 VZ |
8789 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
8790 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8791 | else | |
8792 | echo 'void f(){}' > conftest.c | |
8793 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
10f2d63a VZ |
8794 | ac_cv_prog_cc_g=yes |
8795 | else | |
698dcdb6 | 8796 | ac_cv_prog_cc_g=no |
10f2d63a | 8797 | fi |
698dcdb6 VZ |
8798 | rm -f conftest* |
8799 | ||
10f2d63a | 8800 | fi |
698dcdb6 VZ |
8801 | |
8802 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
10f2d63a | 8803 | if test "$ac_test_CFLAGS" = set; then |
698dcdb6 | 8804 | CFLAGS="$ac_save_CFLAGS" |
10f2d63a VZ |
8805 | elif test $ac_cv_prog_cc_g = yes; then |
8806 | if test "$GCC" = yes; then | |
8807 | CFLAGS="-g -O2" | |
8808 | else | |
8809 | CFLAGS="-g" | |
8810 | fi | |
8811 | else | |
8812 | if test "$GCC" = yes; then | |
8813 | CFLAGS="-O2" | |
8814 | else | |
8815 | CFLAGS= | |
8816 | fi | |
8817 | fi | |
8818 | ||
8819 | ||
698dcdb6 | 8820 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
17234b26 | 8821 | echo "configure:8822: checking how to run the C preprocessor" >&5 |
10f2d63a VZ |
8822 | # On Suns, sometimes $CPP names a directory. |
8823 | if test -n "$CPP" && test -d "$CPP"; then | |
8824 | CPP= | |
8825 | fi | |
8826 | if test -z "$CPP"; then | |
698dcdb6 VZ |
8827 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
8828 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8829 | else | |
8830 | # This must be in double quotes, not single quotes, because CPP may get | |
8831 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
8832 | CPP="${CC-cc} -E" | |
10f2d63a | 8833 | # On the NeXT, cc -E runs the code through the compiler's parser, |
698dcdb6 VZ |
8834 | # not just through cpp. |
8835 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 8836 | #line 8837 "configure" |
10f2d63a VZ |
8837 | #include "confdefs.h" |
8838 | #include <assert.h> | |
698dcdb6 VZ |
8839 | Syntax Error |
8840 | EOF | |
8841 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
17234b26 | 8842 | { (eval echo configure:8843: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8843 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8844 | if test -z "$ac_err"; then | |
10f2d63a VZ |
8845 | : |
8846 | else | |
698dcdb6 VZ |
8847 | echo "$ac_err" >&5 |
8848 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8849 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8850 | rm -rf conftest* |
8851 | CPP="${CC-cc} -E -traditional-cpp" | |
8852 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 8853 | #line 8854 "configure" |
10f2d63a | 8854 | #include "confdefs.h" |
698dcdb6 VZ |
8855 | #include <assert.h> |
8856 | Syntax Error | |
8857 | EOF | |
8858 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
17234b26 | 8859 | { (eval echo configure:8860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8860 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8861 | if test -z "$ac_err"; then | |
8862 | : | |
10f2d63a | 8863 | else |
698dcdb6 VZ |
8864 | echo "$ac_err" >&5 |
8865 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8866 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8867 | rm -rf conftest* |
8868 | CPP="${CC-cc} -nologo -E" | |
8869 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 8870 | #line 8871 "configure" |
10f2d63a VZ |
8871 | #include "confdefs.h" |
8872 | #include <assert.h> | |
698dcdb6 VZ |
8873 | Syntax Error |
8874 | EOF | |
8875 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
17234b26 | 8876 | { (eval echo configure:8877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8877 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8878 | if test -z "$ac_err"; then | |
10f2d63a VZ |
8879 | : |
8880 | else | |
698dcdb6 VZ |
8881 | echo "$ac_err" >&5 |
8882 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8883 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8884 | rm -rf conftest* |
8885 | CPP=/lib/cpp | |
10f2d63a | 8886 | fi |
698dcdb6 | 8887 | rm -f conftest* |
10f2d63a | 8888 | fi |
698dcdb6 | 8889 | rm -f conftest* |
703e0a69 | 8890 | fi |
698dcdb6 VZ |
8891 | rm -f conftest* |
8892 | ac_cv_prog_CPP="$CPP" | |
8893 | fi | |
8894 | CPP="$ac_cv_prog_CPP" | |
10f2d63a | 8895 | else |
698dcdb6 | 8896 | ac_cv_prog_CPP="$CPP" |
10f2d63a | 8897 | fi |
698dcdb6 | 8898 | echo "$ac_t""$CPP" 1>&6 |
10f2d63a | 8899 | |
698dcdb6 VZ |
8900 | if test $ac_cv_prog_gcc = yes; then |
8901 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
17234b26 | 8902 | echo "configure:8903: checking whether ${CC-cc} needs -traditional" >&5 |
698dcdb6 VZ |
8903 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
8904 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8905 | else |
8906 | ac_pattern="Autoconf.*'x'" | |
698dcdb6 | 8907 | cat > conftest.$ac_ext <<EOF |
17234b26 | 8908 | #line 8909 "configure" |
10f2d63a VZ |
8909 | #include "confdefs.h" |
8910 | #include <sgtty.h> | |
8911 | Autoconf TIOCGETP | |
698dcdb6 | 8912 | EOF |
10f2d63a VZ |
8913 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8914 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
698dcdb6 | 8915 | rm -rf conftest* |
10f2d63a VZ |
8916 | ac_cv_prog_gcc_traditional=yes |
8917 | else | |
698dcdb6 | 8918 | rm -rf conftest* |
10f2d63a VZ |
8919 | ac_cv_prog_gcc_traditional=no |
8920 | fi | |
8921 | rm -f conftest* | |
8922 | ||
698dcdb6 | 8923 | |
10f2d63a | 8924 | if test $ac_cv_prog_gcc_traditional = no; then |
698dcdb6 | 8925 | cat > conftest.$ac_ext <<EOF |
17234b26 | 8926 | #line 8927 "configure" |
10f2d63a VZ |
8927 | #include "confdefs.h" |
8928 | #include <termio.h> | |
8929 | Autoconf TCGETA | |
698dcdb6 | 8930 | EOF |
10f2d63a VZ |
8931 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8932 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
698dcdb6 | 8933 | rm -rf conftest* |
10f2d63a VZ |
8934 | ac_cv_prog_gcc_traditional=yes |
8935 | fi | |
8936 | rm -f conftest* | |
8937 | ||
8938 | fi | |
8939 | fi | |
698dcdb6 VZ |
8940 | |
8941 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
10f2d63a VZ |
8942 | if test $ac_cv_prog_gcc_traditional = yes; then |
8943 | CC="$CC -traditional" | |
8944 | fi | |
8945 | fi | |
8946 | ||
703e0a69 | 8947 | |
698dcdb6 VZ |
8948 | |
8949 | ac_ext=C | |
8950 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 8951 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
8952 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
8953 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8954 | cross_compiling=$ac_cv_prog_cxx_cross | |
8955 | ||
8956 | ||
ec603395 | 8957 | CXXFLAGS=${CXXFLAGS:=} |
698dcdb6 VZ |
8958 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
8959 | do | |
8960 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
8961 | set dummy $ac_prog; ac_word=$2 | |
8962 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
17234b26 | 8963 | echo "configure:8964: checking for $ac_word" >&5 |
698dcdb6 VZ |
8964 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
8965 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8966 | else |
8967 | if test -n "$CXX"; then | |
8968 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
8969 | else | |
698dcdb6 VZ |
8970 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8971 | ac_dummy="$PATH" | |
8972 | for ac_dir in $ac_dummy; do | |
8973 | test -z "$ac_dir" && ac_dir=. | |
8974 | if test -f $ac_dir/$ac_word; then | |
8975 | ac_cv_prog_CXX="$ac_prog" | |
8976 | break | |
8977 | fi | |
8978 | done | |
8979 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8980 | fi |
8981 | fi | |
698dcdb6 | 8982 | CXX="$ac_cv_prog_CXX" |
10f2d63a | 8983 | if test -n "$CXX"; then |
698dcdb6 | 8984 | echo "$ac_t""$CXX" 1>&6 |
10f2d63a | 8985 | else |
698dcdb6 | 8986 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8987 | fi |
8988 | ||
698dcdb6 | 8989 | test -n "$CXX" && break |
10f2d63a | 8990 | done |
698dcdb6 | 8991 | test -n "$CXX" || CXX="gcc" |
10f2d63a VZ |
8992 | |
8993 | ||
698dcdb6 | 8994 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
17234b26 | 8995 | echo "configure:8996: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
10f2d63a | 8996 | |
698dcdb6 VZ |
8997 | ac_ext=C |
8998 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8999 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9000 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9001 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9002 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 9003 | |
698dcdb6 VZ |
9004 | cat > conftest.$ac_ext << EOF |
9005 | ||
17234b26 | 9006 | #line 9007 "configure" |
10f2d63a VZ |
9007 | #include "confdefs.h" |
9008 | ||
698dcdb6 VZ |
9009 | int main(){return(0);} |
9010 | EOF | |
17234b26 | 9011 | if { (eval echo configure:9012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9012 | ac_cv_prog_cxx_works=yes |
9013 | # If we can't run a trivial program, we are probably using a cross compiler. | |
9014 | if (./conftest; exit) 2>/dev/null; then | |
9015 | ac_cv_prog_cxx_cross=no | |
9016 | else | |
9017 | ac_cv_prog_cxx_cross=yes | |
9018 | fi | |
9019 | else | |
9020 | echo "configure: failed program was:" >&5 | |
9021 | cat conftest.$ac_ext >&5 | |
9022 | ac_cv_prog_cxx_works=no | |
9023 | fi | |
9024 | rm -fr conftest* | |
9025 | ac_ext=C | |
9026 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9027 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9028 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9029 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9030 | cross_compiling=$ac_cv_prog_cxx_cross | |
9031 | ||
9032 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 | |
9033 | if test $ac_cv_prog_cxx_works = no; then | |
9034 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
9035 | fi | |
9036 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
17234b26 | 9037 | echo "configure:9038: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
698dcdb6 VZ |
9038 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
9039 | cross_compiling=$ac_cv_prog_cxx_cross | |
9040 | ||
9041 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | |
17234b26 | 9042 | echo "configure:9043: checking whether we are using GNU C++" >&5 |
698dcdb6 VZ |
9043 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
9044 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9045 | else | |
9046 | cat > conftest.C <<EOF | |
9047 | #ifdef __GNUC__ | |
9048 | yes; | |
10f2d63a | 9049 | #endif |
698dcdb6 | 9050 | EOF |
17234b26 | 9051 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9052: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
698dcdb6 VZ |
9052 | ac_cv_prog_gxx=yes |
9053 | else | |
9054 | ac_cv_prog_gxx=no | |
9055 | fi | |
9056 | fi | |
10f2d63a | 9057 | |
698dcdb6 | 9058 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
10f2d63a | 9059 | |
698dcdb6 VZ |
9060 | if test $ac_cv_prog_gxx = yes; then |
9061 | GXX=yes | |
9062 | else | |
9063 | GXX= | |
9064 | fi | |
10f2d63a | 9065 | |
698dcdb6 VZ |
9066 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
9067 | ac_save_CXXFLAGS="$CXXFLAGS" | |
9068 | CXXFLAGS= | |
9069 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
17234b26 | 9070 | echo "configure:9071: checking whether ${CXX-g++} accepts -g" >&5 |
698dcdb6 VZ |
9071 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
9072 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9073 | else | |
9074 | echo 'void f(){}' > conftest.cc | |
9075 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
10f2d63a VZ |
9076 | ac_cv_prog_cxx_g=yes |
9077 | else | |
698dcdb6 | 9078 | ac_cv_prog_cxx_g=no |
10f2d63a | 9079 | fi |
698dcdb6 VZ |
9080 | rm -f conftest* |
9081 | ||
10f2d63a | 9082 | fi |
698dcdb6 VZ |
9083 | |
9084 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
10f2d63a | 9085 | if test "$ac_test_CXXFLAGS" = set; then |
698dcdb6 | 9086 | CXXFLAGS="$ac_save_CXXFLAGS" |
10f2d63a VZ |
9087 | elif test $ac_cv_prog_cxx_g = yes; then |
9088 | if test "$GXX" = yes; then | |
9089 | CXXFLAGS="-g -O2" | |
9090 | else | |
9091 | CXXFLAGS="-g" | |
9092 | fi | |
9093 | else | |
9094 | if test "$GXX" = yes; then | |
9095 | CXXFLAGS="-O2" | |
9096 | else | |
9097 | CXXFLAGS= | |
9098 | fi | |
9099 | fi | |
9100 | ||
9101 | ||
10f2d63a | 9102 | ac_ext=c |
698dcdb6 | 9103 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 9104 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
9105 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
9106 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9107 | cross_compiling=$ac_cv_prog_cc_cross | |
9108 | ||
9109 | ||
9110 | # Extract the first word of "ranlib", so it can be a program name with args. | |
9111 | set dummy ranlib; ac_word=$2 | |
9112 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
17234b26 | 9113 | echo "configure:9114: checking for $ac_word" >&5 |
698dcdb6 VZ |
9114 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
9115 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9116 | else |
9117 | if test -n "$RANLIB"; then | |
9118 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
9119 | else | |
698dcdb6 VZ |
9120 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9121 | ac_dummy="$PATH" | |
9122 | for ac_dir in $ac_dummy; do | |
9123 | test -z "$ac_dir" && ac_dir=. | |
9124 | if test -f $ac_dir/$ac_word; then | |
9125 | ac_cv_prog_RANLIB="ranlib" | |
9126 | break | |
9127 | fi | |
9128 | done | |
9129 | IFS="$ac_save_ifs" | |
9130 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
10f2d63a VZ |
9131 | fi |
9132 | fi | |
698dcdb6 | 9133 | RANLIB="$ac_cv_prog_RANLIB" |
10f2d63a | 9134 | if test -n "$RANLIB"; then |
698dcdb6 | 9135 | echo "$ac_t""$RANLIB" 1>&6 |
10f2d63a | 9136 | else |
698dcdb6 | 9137 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9138 | fi |
9139 | ||
9140 | ||
9141 | # Extract the first word of "ar", so it can be a program name with args. | |
9142 | set dummy ar; ac_word=$2 | |
698dcdb6 | 9143 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
17234b26 | 9144 | echo "configure:9145: checking for $ac_word" >&5 |
698dcdb6 VZ |
9145 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
9146 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9147 | else |
9148 | if test -n "$AR"; then | |
9149 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
9150 | else | |
698dcdb6 VZ |
9151 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9152 | ac_dummy="$PATH" | |
9153 | for ac_dir in $ac_dummy; do | |
9154 | test -z "$ac_dir" && ac_dir=. | |
9155 | if test -f $ac_dir/$ac_word; then | |
9156 | ac_cv_prog_AR="ar" | |
9157 | break | |
9158 | fi | |
9159 | done | |
9160 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9161 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
9162 | fi | |
9163 | fi | |
698dcdb6 | 9164 | AR="$ac_cv_prog_AR" |
10f2d63a | 9165 | if test -n "$AR"; then |
698dcdb6 | 9166 | echo "$ac_t""$AR" 1>&6 |
10f2d63a | 9167 | else |
698dcdb6 | 9168 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9169 | fi |
9170 | ||
698dcdb6 | 9171 | |
6054113a | 9172 | # Find a good install program. We prefer a C program (faster), |
10f2d63a VZ |
9173 | # so one script is as good as another. But avoid the broken or |
9174 | # incompatible versions: | |
9175 | # SysV /etc/install, /usr/sbin/install | |
9176 | # SunOS /usr/etc/install | |
9177 | # IRIX /sbin/install | |
9178 | # AIX /bin/install | |
9179 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
9180 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
9181 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
9182 | # ./install, which can be erroneously created by make from ./install.sh. | |
698dcdb6 | 9183 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
17234b26 | 9184 | echo "configure:9185: checking for a BSD compatible install" >&5 |
10f2d63a | 9185 | if test -z "$INSTALL"; then |
698dcdb6 VZ |
9186 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
9187 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 9188 | else |
698dcdb6 | 9189 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
10f2d63a VZ |
9190 | for ac_dir in $PATH; do |
9191 | # Account for people who put trailing slashes in PATH elements. | |
698dcdb6 VZ |
9192 | case "$ac_dir/" in |
9193 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
10f2d63a VZ |
9194 | *) |
9195 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
9196 | # Don't use installbsd from OSF since it installs stuff as root | |
9197 | # by default. | |
9198 | for ac_prog in ginstall scoinst install; do | |
698dcdb6 | 9199 | if test -f $ac_dir/$ac_prog; then |
10f2d63a | 9200 | if test $ac_prog = install && |
698dcdb6 | 9201 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
10f2d63a VZ |
9202 | # AIX install. It has an incompatible calling convention. |
9203 | : | |
9204 | else | |
9205 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
9206 | break 2 | |
9207 | fi | |
9208 | fi | |
9209 | done | |
9210 | ;; | |
9211 | esac | |
9212 | done | |
698dcdb6 | 9213 | IFS="$ac_save_IFS" |
10f2d63a VZ |
9214 | |
9215 | fi | |
9216 | if test "${ac_cv_path_install+set}" = set; then | |
698dcdb6 | 9217 | INSTALL="$ac_cv_path_install" |
10f2d63a VZ |
9218 | else |
9219 | # As a last resort, use the slow shell script. We don't cache a | |
9220 | # path for INSTALL within a source directory, because that will | |
9221 | # break other packages using the cache if that directory is | |
9222 | # removed, or if the path is relative. | |
698dcdb6 | 9223 | INSTALL="$ac_install_sh" |
10f2d63a VZ |
9224 | fi |
9225 | fi | |
698dcdb6 | 9226 | echo "$ac_t""$INSTALL" 1>&6 |
10f2d63a VZ |
9227 | |
9228 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
9229 | # It thinks the first close brace ends the variable substitution. | |
9230 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
9231 | ||
698dcdb6 | 9232 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
10f2d63a VZ |
9233 | |
9234 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
9235 | ||
1d1b75ac VZ |
9236 | |
9237 | case ${INSTALL} in | |
9238 | /* ) # Absolute | |
9239 | ;; | |
9240 | *) | |
9241 | INSTALL=`pwd`/${INSTALL} ;; | |
9242 | esac | |
9243 | ||
9244 | ||
6054113a GD |
9245 | case "${host}" in |
9246 | ||
b5853384 | 9247 | powerpc-*-darwin* ) |
eb99ae0b GD |
9248 | INSTALL_PROGRAM="cp -fp" |
9249 | INSTALL_DATA="cp -fp" | |
6054113a GD |
9250 | ;; |
9251 | *) | |
9252 | ;; | |
d6853540 | 9253 | esac |
698dcdb6 | 9254 | |
10f2d63a VZ |
9255 | # Extract the first word of "strip", so it can be a program name with args. |
9256 | set dummy strip; ac_word=$2 | |
698dcdb6 | 9257 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
17234b26 | 9258 | echo "configure:9259: checking for $ac_word" >&5 |
698dcdb6 VZ |
9259 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
9260 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9261 | else |
9262 | if test -n "$STRIP"; then | |
9263 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9264 | else | |
698dcdb6 VZ |
9265 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9266 | ac_dummy="$PATH" | |
9267 | for ac_dir in $ac_dummy; do | |
9268 | test -z "$ac_dir" && ac_dir=. | |
9269 | if test -f $ac_dir/$ac_word; then | |
9270 | ac_cv_prog_STRIP="strip" | |
9271 | break | |
9272 | fi | |
9273 | done | |
9274 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9275 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
9276 | fi | |
9277 | fi | |
698dcdb6 | 9278 | STRIP="$ac_cv_prog_STRIP" |
10f2d63a | 9279 | if test -n "$STRIP"; then |
698dcdb6 | 9280 | echo "$ac_t""$STRIP" 1>&6 |
10f2d63a | 9281 | else |
698dcdb6 | 9282 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9283 | fi |
9284 | ||
698dcdb6 | 9285 | |
414eab6d | 9286 | echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6 |
17234b26 | 9287 | echo "configure:9288: checking if make is GNU make" >&5 |
414eab6d VZ |
9288 | if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then |
9289 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9290 | else | |
9291 | ||
9292 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
d558c907 | 9293 | egrep -s GNU > /dev/null); then |
414eab6d VZ |
9294 | wx_cv_prog_makeisgnu="yes" |
9295 | else | |
9296 | wx_cv_prog_makeisgnu="no" | |
9297 | fi | |
9298 | ||
9299 | fi | |
9300 | ||
9301 | echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6 | |
9302 | ||
9303 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
9304 | IF_GNU_MAKE="" | |
9305 | else | |
9306 | IF_GNU_MAKE="#" | |
9307 | fi | |
9308 | ||
9309 | ||
9310 | ||
9311 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then | |
04e7a216 | 9312 | echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6 |
17234b26 | 9313 | echo "configure:9314: checking if make supports VPATH" >&5 |
04e7a216 VZ |
9314 | if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then |
9315 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9316 | else | |
9317 | ||
10f2d63a VZ |
9318 | cat - << EOF > confMake |
9319 | check : file | |
9320 | cp \$? \$@ | |
9321 | cp \$? final_file | |
9322 | EOF | |
9323 | ||
9324 | if test ! -d sub ; then | |
9325 | mkdir sub | |
9326 | fi | |
9327 | echo dummy > sub/file | |
f6bcfd97 | 9328 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
9329 | RESULT=$? |
9330 | rm -f sub/file check final_file confMake | |
9331 | rmdir sub | |
9332 | if test "$RESULT" = 0; then | |
04e7a216 | 9333 | wx_cv_prog_makevpath="yes" |
10f2d63a | 9334 | else |
04e7a216 VZ |
9335 | wx_cv_prog_makevpath="no" |
9336 | fi | |
9337 | ||
9338 | fi | |
9339 | ||
9340 | echo "$ac_t""$wx_cv_prog_makevpath" 1>&6 | |
9341 | ||
9342 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
9343 | { echo "configure: error: | |
1e487827 VS |
9344 | You need a make-utility that is able to use the variable |
9345 | VPATH correctly. | |
9346 | If your version of make does not support VPATH correctly, | |
9347 | please install GNU-make (possibly as gmake), and start | |
9348 | configure with the following command: | |
9349 | export MAKE=gmake; ./configure for sh-type shells | |
9350 | setenv MAKE gmake; ./configure for csh-type shells | |
9351 | Also please do remember to use gmake in this case every time | |
9352 | you are trying to compile. | |
698dcdb6 | 9353 | " 1>&2; exit 1; } |
414eab6d | 9354 | fi fi |
10f2d63a VZ |
9355 | for ac_prog in 'bison -y' byacc |
9356 | do | |
698dcdb6 | 9357 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
10f2d63a | 9358 | set dummy $ac_prog; ac_word=$2 |
698dcdb6 | 9359 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
17234b26 | 9360 | echo "configure:9361: checking for $ac_word" >&5 |
698dcdb6 VZ |
9361 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
9362 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9363 | else |
9364 | if test -n "$YACC"; then | |
9365 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
9366 | else | |
698dcdb6 VZ |
9367 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9368 | ac_dummy="$PATH" | |
9369 | for ac_dir in $ac_dummy; do | |
9370 | test -z "$ac_dir" && ac_dir=. | |
9371 | if test -f $ac_dir/$ac_word; then | |
9372 | ac_cv_prog_YACC="$ac_prog" | |
9373 | break | |
9374 | fi | |
9375 | done | |
9376 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9377 | fi |
9378 | fi | |
698dcdb6 | 9379 | YACC="$ac_cv_prog_YACC" |
10f2d63a | 9380 | if test -n "$YACC"; then |
698dcdb6 | 9381 | echo "$ac_t""$YACC" 1>&6 |
10f2d63a | 9382 | else |
698dcdb6 | 9383 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9384 | fi |
9385 | ||
698dcdb6 | 9386 | test -n "$YACC" && break |
10f2d63a VZ |
9387 | done |
9388 | test -n "$YACC" || YACC="yacc" | |
9389 | ||
698dcdb6 VZ |
9390 | |
9391 | # Extract the first word of "flex", so it can be a program name with args. | |
9392 | set dummy flex; ac_word=$2 | |
9393 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
17234b26 | 9394 | echo "configure:9395: checking for $ac_word" >&5 |
698dcdb6 VZ |
9395 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
9396 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9397 | else |
9398 | if test -n "$LEX"; then | |
9399 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
9400 | else | |
698dcdb6 VZ |
9401 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9402 | ac_dummy="$PATH" | |
9403 | for ac_dir in $ac_dummy; do | |
9404 | test -z "$ac_dir" && ac_dir=. | |
9405 | if test -f $ac_dir/$ac_word; then | |
9406 | ac_cv_prog_LEX="flex" | |
9407 | break | |
9408 | fi | |
9409 | done | |
9410 | IFS="$ac_save_ifs" | |
9411 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
10f2d63a VZ |
9412 | fi |
9413 | fi | |
698dcdb6 | 9414 | LEX="$ac_cv_prog_LEX" |
10f2d63a | 9415 | if test -n "$LEX"; then |
698dcdb6 | 9416 | echo "$ac_t""$LEX" 1>&6 |
10f2d63a | 9417 | else |
698dcdb6 | 9418 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9419 | fi |
9420 | ||
9421 | if test -z "$LEXLIB" | |
9422 | then | |
698dcdb6 VZ |
9423 | case "$LEX" in |
9424 | flex*) ac_lib=fl ;; | |
9425 | *) ac_lib=l ;; | |
9426 | esac | |
9427 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
17234b26 | 9428 | echo "configure:9429: checking for yywrap in -l$ac_lib" >&5 |
698dcdb6 VZ |
9429 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
9430 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9431 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9432 | else | |
9433 | ac_save_LIBS="$LIBS" | |
9434 | LIBS="-l$ac_lib $LIBS" | |
9435 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 9436 | #line 9437 "configure" |
10f2d63a VZ |
9437 | #include "confdefs.h" |
9438 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9439 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9440 | builtin and then its argument prototype would still apply. */ |
9441 | char yywrap(); | |
10f2d63a | 9442 | |
698dcdb6 VZ |
9443 | int main() { |
9444 | yywrap() | |
9445 | ; return 0; } | |
9446 | EOF | |
17234b26 | 9447 | if { (eval echo configure:9448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9448 | rm -rf conftest* |
9449 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 9450 | else |
698dcdb6 VZ |
9451 | echo "configure: failed program was:" >&5 |
9452 | cat conftest.$ac_ext >&5 | |
9453 | rm -rf conftest* | |
9454 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 9455 | fi |
698dcdb6 VZ |
9456 | rm -f conftest* |
9457 | LIBS="$ac_save_LIBS" | |
9458 | ||
10f2d63a | 9459 | fi |
698dcdb6 VZ |
9460 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
9461 | echo "$ac_t""yes" 1>&6 | |
9462 | LEXLIB="-l$ac_lib" | |
9463 | else | |
9464 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
9465 | fi |
9466 | ||
9467 | fi | |
9468 | ||
9469 | ||
698dcdb6 | 9470 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
17234b26 | 9471 | echo "configure:9472: checking whether ln -s works" >&5 |
698dcdb6 VZ |
9472 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
9473 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 9474 | else |
698dcdb6 VZ |
9475 | rm -f conftestdata |
9476 | if ln -s X conftestdata 2>/dev/null | |
9477 | then | |
9478 | rm -f conftestdata | |
9479 | ac_cv_prog_LN_S="ln -s" | |
10f2d63a | 9480 | else |
698dcdb6 | 9481 | ac_cv_prog_LN_S=ln |
10f2d63a VZ |
9482 | fi |
9483 | fi | |
698dcdb6 VZ |
9484 | LN_S="$ac_cv_prog_LN_S" |
9485 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
9486 | echo "$ac_t""yes" 1>&6 | |
10f2d63a | 9487 | else |
698dcdb6 | 9488 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9489 | fi |
9490 | ||
9491 | ||
9492 | ||
21d1c967 GD |
9493 | if test "$wxUSE_MAC" != 1; then |
9494 | for ac_hdr in strings.h | |
9495 | do | |
9496 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9497 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
17234b26 | 9498 | echo "configure:9499: checking for $ac_hdr" >&5 |
21d1c967 | 9499 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
19bc6aad VZ |
9500 | echo $ac_n "(cached) $ac_c" 1>&6 |
9501 | else | |
90dd450c | 9502 | cat > conftest.$ac_ext <<EOF |
17234b26 | 9503 | #line 9504 "configure" |
19bc6aad | 9504 | #include "confdefs.h" |
21d1c967 | 9505 | #include <$ac_hdr> |
19bc6aad | 9506 | EOF |
21d1c967 | 9507 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
17234b26 | 9508 | { (eval echo configure:9509: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
9509 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9510 | if test -z "$ac_err"; then | |
19bc6aad | 9511 | rm -rf conftest* |
21d1c967 | 9512 | eval "ac_cv_header_$ac_safe=yes" |
19bc6aad | 9513 | else |
21d1c967 | 9514 | echo "$ac_err" >&5 |
19bc6aad VZ |
9515 | echo "configure: failed program was:" >&5 |
9516 | cat conftest.$ac_ext >&5 | |
9517 | rm -rf conftest* | |
21d1c967 | 9518 | eval "ac_cv_header_$ac_safe=no" |
19bc6aad VZ |
9519 | fi |
9520 | rm -f conftest* | |
19bc6aad | 9521 | fi |
21d1c967 GD |
9522 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9523 | echo "$ac_t""yes" 1>&6 | |
9524 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9525 | cat >> confdefs.h <<EOF | |
9526 | #define $ac_tr_hdr 1 | |
19bc6aad | 9527 | EOF |
21d1c967 GD |
9528 | |
9529 | else | |
9530 | echo "$ac_t""no" 1>&6 | |
9531 | fi | |
9532 | done | |
19bc6aad | 9533 | |
19bc6aad VZ |
9534 | fi |
9535 | ||
21d1c967 GD |
9536 | for ac_hdr in stdlib.h |
9537 | do | |
9538 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9539 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
17234b26 | 9540 | echo "configure:9541: checking for $ac_hdr" >&5 |
21d1c967 | 9541 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
18dbb1f6 VZ |
9542 | echo $ac_n "(cached) $ac_c" 1>&6 |
9543 | else | |
9544 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 9545 | #line 9546 "configure" |
18dbb1f6 | 9546 | #include "confdefs.h" |
21d1c967 | 9547 | #include <$ac_hdr> |
18dbb1f6 | 9548 | EOF |
21d1c967 | 9549 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
17234b26 | 9550 | { (eval echo configure:9551: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
9551 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9552 | if test -z "$ac_err"; then | |
18dbb1f6 | 9553 | rm -rf conftest* |
21d1c967 | 9554 | eval "ac_cv_header_$ac_safe=yes" |
18dbb1f6 | 9555 | else |
21d1c967 | 9556 | echo "$ac_err" >&5 |
18dbb1f6 VZ |
9557 | echo "configure: failed program was:" >&5 |
9558 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
9559 | rm -rf conftest* |
9560 | eval "ac_cv_header_$ac_safe=no" | |
18dbb1f6 VZ |
9561 | fi |
9562 | rm -f conftest* | |
90dd450c | 9563 | fi |
21d1c967 GD |
9564 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9565 | echo "$ac_t""yes" 1>&6 | |
9566 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9567 | cat >> confdefs.h <<EOF | |
9568 | #define $ac_tr_hdr 1 | |
90dd450c | 9569 | EOF |
21d1c967 GD |
9570 | |
9571 | else | |
9572 | echo "$ac_t""no" 1>&6 | |
9573 | fi | |
9574 | done | |
90dd450c | 9575 | |
21d1c967 GD |
9576 | for ac_hdr in malloc.h |
9577 | do | |
9578 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9579 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
17234b26 | 9580 | echo "configure:9581: checking for $ac_hdr" >&5 |
21d1c967 | 9581 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
90dd450c | 9582 | echo $ac_n "(cached) $ac_c" 1>&6 |
90dd450c VZ |
9583 | else |
9584 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 9585 | #line 9586 "configure" |
90dd450c | 9586 | #include "confdefs.h" |
21d1c967 | 9587 | #include <$ac_hdr> |
18dbb1f6 | 9588 | EOF |
21d1c967 | 9589 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
17234b26 | 9590 | { (eval echo configure:9591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
9591 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9592 | if test -z "$ac_err"; then | |
9593 | rm -rf conftest* | |
9594 | eval "ac_cv_header_$ac_safe=yes" | |
18dbb1f6 | 9595 | else |
21d1c967 | 9596 | echo "$ac_err" >&5 |
18dbb1f6 VZ |
9597 | echo "configure: failed program was:" >&5 |
9598 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
9599 | rm -rf conftest* |
9600 | eval "ac_cv_header_$ac_safe=no" | |
18dbb1f6 | 9601 | fi |
21d1c967 | 9602 | rm -f conftest* |
18dbb1f6 | 9603 | fi |
21d1c967 GD |
9604 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9605 | echo "$ac_t""yes" 1>&6 | |
9606 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9607 | cat >> confdefs.h <<EOF | |
9608 | #define $ac_tr_hdr 1 | |
4f14bcd8 | 9609 | EOF |
21d1c967 GD |
9610 | |
9611 | else | |
9612 | echo "$ac_t""no" 1>&6 | |
9613 | fi | |
9614 | done | |
dad6c0ea | 9615 | |
21d1c967 GD |
9616 | for ac_hdr in unistd.h |
9617 | do | |
9618 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9619 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
17234b26 | 9620 | echo "configure:9621: checking for $ac_hdr" >&5 |
21d1c967 | 9621 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
3a922bb4 RL |
9622 | echo $ac_n "(cached) $ac_c" 1>&6 |
9623 | else | |
9624 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 9625 | #line 9626 "configure" |
3a922bb4 | 9626 | #include "confdefs.h" |
21d1c967 | 9627 | #include <$ac_hdr> |
3a922bb4 | 9628 | EOF |
21d1c967 | 9629 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
17234b26 | 9630 | { (eval echo configure:9631: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
9631 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9632 | if test -z "$ac_err"; then | |
9633 | rm -rf conftest* | |
9634 | eval "ac_cv_header_$ac_safe=yes" | |
3a922bb4 | 9635 | else |
21d1c967 | 9636 | echo "$ac_err" >&5 |
3a922bb4 RL |
9637 | echo "configure: failed program was:" >&5 |
9638 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
9639 | rm -rf conftest* |
9640 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 9641 | fi |
21d1c967 | 9642 | rm -f conftest* |
90dd450c | 9643 | fi |
21d1c967 GD |
9644 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9645 | echo "$ac_t""yes" 1>&6 | |
9646 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9647 | cat >> confdefs.h <<EOF | |
9648 | #define $ac_tr_hdr 1 | |
90dd450c | 9649 | EOF |
21d1c967 GD |
9650 | |
9651 | else | |
9652 | echo "$ac_t""no" 1>&6 | |
9653 | fi | |
9654 | done | |
90dd450c | 9655 | |
21d1c967 GD |
9656 | for ac_hdr in wchar.h |
9657 | do | |
9658 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9659 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
17234b26 | 9660 | echo "configure:9661: checking for $ac_hdr" >&5 |
21d1c967 | 9661 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4f14bcd8 | 9662 | echo $ac_n "(cached) $ac_c" 1>&6 |
90dd450c VZ |
9663 | else |
9664 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 9665 | #line 9666 "configure" |
4f14bcd8 | 9666 | #include "confdefs.h" |
21d1c967 | 9667 | #include <$ac_hdr> |
3a922bb4 | 9668 | EOF |
21d1c967 | 9669 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
17234b26 | 9670 | { (eval echo configure:9671: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
9671 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9672 | if test -z "$ac_err"; then | |
9673 | rm -rf conftest* | |
9674 | eval "ac_cv_header_$ac_safe=yes" | |
4f14bcd8 | 9675 | else |
21d1c967 | 9676 | echo "$ac_err" >&5 |
4f14bcd8 GD |
9677 | echo "configure: failed program was:" >&5 |
9678 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
9679 | rm -rf conftest* |
9680 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 9681 | fi |
21d1c967 | 9682 | rm -f conftest* |
4f14bcd8 | 9683 | fi |
21d1c967 GD |
9684 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9685 | echo "$ac_t""yes" 1>&6 | |
9686 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9687 | cat >> confdefs.h <<EOF | |
9688 | #define $ac_tr_hdr 1 | |
4f14bcd8 | 9689 | EOF |
21d1c967 GD |
9690 | |
9691 | else | |
9692 | echo "$ac_t""no" 1>&6 | |
9693 | fi | |
9694 | done | |
4f14bcd8 | 9695 | |
4f14bcd8 | 9696 | |
21d1c967 GD |
9697 | if test "$ac_cv_header_wchar_h" != "yes"; then |
9698 | for ac_hdr in wcstr.h | |
9699 | do | |
9700 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9701 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
17234b26 | 9702 | echo "configure:9703: checking for $ac_hdr" >&5 |
21d1c967 | 9703 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
d4158b5d VS |
9704 | echo $ac_n "(cached) $ac_c" 1>&6 |
9705 | else | |
9706 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 9707 | #line 9708 "configure" |
d4158b5d | 9708 | #include "confdefs.h" |
21d1c967 | 9709 | #include <$ac_hdr> |
d4158b5d | 9710 | EOF |
21d1c967 | 9711 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
17234b26 | 9712 | { (eval echo configure:9713: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
9713 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9714 | if test -z "$ac_err"; then | |
9715 | rm -rf conftest* | |
9716 | eval "ac_cv_header_$ac_safe=yes" | |
d4158b5d | 9717 | else |
21d1c967 | 9718 | echo "$ac_err" >&5 |
d4158b5d VS |
9719 | echo "configure: failed program was:" >&5 |
9720 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
9721 | rm -rf conftest* |
9722 | eval "ac_cv_header_$ac_safe=no" | |
d4158b5d | 9723 | fi |
21d1c967 GD |
9724 | rm -f conftest* |
9725 | fi | |
9726 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9727 | echo "$ac_t""yes" 1>&6 | |
9728 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9729 | cat >> confdefs.h <<EOF | |
9730 | #define $ac_tr_hdr 1 | |
9731 | EOF | |
9732 | ||
9733 | else | |
9734 | echo "$ac_t""no" 1>&6 | |
d4158b5d | 9735 | fi |
21d1c967 | 9736 | done |
f6bcfd97 | 9737 | |
90dd450c | 9738 | fi |
90dd450c VZ |
9739 | |
9740 | ||
21d1c967 GD |
9741 | for ac_hdr in fnmatch.h |
9742 | do | |
9743 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9744 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
17234b26 | 9745 | echo "configure:9746: checking for $ac_hdr" >&5 |
21d1c967 | 9746 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
90dd450c | 9747 | echo $ac_n "(cached) $ac_c" 1>&6 |
90dd450c VZ |
9748 | else |
9749 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 9750 | #line 9751 "configure" |
90dd450c | 9751 | #include "confdefs.h" |
21d1c967 | 9752 | #include <$ac_hdr> |
90dd450c | 9753 | EOF |
21d1c967 | 9754 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
17234b26 | 9755 | { (eval echo configure:9756: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
9756 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9757 | if test -z "$ac_err"; then | |
9758 | rm -rf conftest* | |
9759 | eval "ac_cv_header_$ac_safe=yes" | |
3a922bb4 | 9760 | else |
21d1c967 | 9761 | echo "$ac_err" >&5 |
3a922bb4 RL |
9762 | echo "configure: failed program was:" >&5 |
9763 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
9764 | rm -rf conftest* |
9765 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 9766 | fi |
21d1c967 | 9767 | rm -f conftest* |
4f14bcd8 | 9768 | fi |
21d1c967 GD |
9769 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9770 | echo "$ac_t""yes" 1>&6 | |
9771 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9772 | cat >> confdefs.h <<EOF | |
9773 | #define $ac_tr_hdr 1 | |
90dd450c | 9774 | EOF |
21d1c967 GD |
9775 | |
9776 | else | |
9777 | echo "$ac_t""no" 1>&6 | |
9778 | fi | |
9779 | done | |
90dd450c VZ |
9780 | |
9781 | ||
21d1c967 GD |
9782 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then |
9783 | for ac_func in fnmatch | |
9784 | do | |
9785 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
17234b26 | 9786 | echo "configure:9787: checking for $ac_func" >&5 |
21d1c967 | 9787 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
90dd450c | 9788 | echo $ac_n "(cached) $ac_c" 1>&6 |
90dd450c VZ |
9789 | else |
9790 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 9791 | #line 9792 "configure" |
90dd450c | 9792 | #include "confdefs.h" |
21d1c967 GD |
9793 | /* System header to define __stub macros and hopefully few prototypes, |
9794 | which can conflict with char $ac_func(); below. */ | |
9795 | #include <assert.h> | |
9796 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9797 | /* We use char because int might match the return type of a gcc2 | |
9798 | builtin and then its argument prototype would still apply. */ | |
9799 | char $ac_func(); | |
9800 | ||
9801 | int main() { | |
9802 | ||
9803 | /* The GNU C library defines this for functions which it implements | |
9804 | to always fail with ENOSYS. Some functions are actually named | |
9805 | something starting with __ and the normal name is an alias. */ | |
9806 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9807 | choke me | |
9808 | #else | |
9809 | $ac_func(); | |
9810 | #endif | |
9811 | ||
9812 | ; return 0; } | |
90dd450c | 9813 | EOF |
17234b26 | 9814 | if { (eval echo configure:9815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21d1c967 GD |
9815 | rm -rf conftest* |
9816 | eval "ac_cv_func_$ac_func=yes" | |
90dd450c VZ |
9817 | else |
9818 | echo "configure: failed program was:" >&5 | |
9819 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
9820 | rm -rf conftest* |
9821 | eval "ac_cv_func_$ac_func=no" | |
90dd450c | 9822 | fi |
21d1c967 | 9823 | rm -f conftest* |
4f14bcd8 | 9824 | fi |
32832908 | 9825 | |
21d1c967 GD |
9826 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
9827 | echo "$ac_t""yes" 1>&6 | |
9828 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9829 | cat >> confdefs.h <<EOF | |
9830 | #define $ac_tr_func 1 | |
90dd450c | 9831 | EOF |
21d1c967 GD |
9832 | |
9833 | else | |
9834 | echo "$ac_t""no" 1>&6 | |
9835 | fi | |
9836 | done | |
90dd450c | 9837 | |
21d1c967 | 9838 | fi |
90dd450c | 9839 | |
21d1c967 GD |
9840 | for ac_hdr in langinfo.h |
9841 | do | |
9842 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9843 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
17234b26 | 9844 | echo "configure:9845: checking for $ac_hdr" >&5 |
21d1c967 | 9845 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
90dd450c | 9846 | echo $ac_n "(cached) $ac_c" 1>&6 |
90dd450c VZ |
9847 | else |
9848 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 9849 | #line 9850 "configure" |
90dd450c | 9850 | #include "confdefs.h" |
21d1c967 | 9851 | #include <$ac_hdr> |
90dd450c | 9852 | EOF |
21d1c967 | 9853 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
17234b26 | 9854 | { (eval echo configure:9855: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
9855 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9856 | if test -z "$ac_err"; then | |
9857 | rm -rf conftest* | |
9858 | eval "ac_cv_header_$ac_safe=yes" | |
90dd450c | 9859 | else |
21d1c967 | 9860 | echo "$ac_err" >&5 |
90dd450c VZ |
9861 | echo "configure: failed program was:" >&5 |
9862 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
9863 | rm -rf conftest* |
9864 | eval "ac_cv_header_$ac_safe=no" | |
90dd450c | 9865 | fi |
21d1c967 | 9866 | rm -f conftest* |
4f14bcd8 | 9867 | fi |
21d1c967 GD |
9868 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9869 | echo "$ac_t""yes" 1>&6 | |
9870 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9871 | cat >> confdefs.h <<EOF | |
9872 | #define $ac_tr_hdr 1 | |
90dd450c | 9873 | EOF |
21d1c967 GD |
9874 | |
9875 | else | |
9876 | echo "$ac_t""no" 1>&6 | |
9877 | fi | |
9878 | done | |
3a922bb4 | 9879 | |
7b7a7637 | 9880 | |
21d1c967 GD |
9881 | if test "$wxUSE_GUI" = "yes"; then |
9882 | if test "$wxUSE_UNIX" = "yes"; then | |
9883 | for ac_hdr in X11/XKBlib.h | |
9884 | do | |
9885 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9886 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
17234b26 | 9887 | echo "configure:9888: checking for $ac_hdr" >&5 |
21d1c967 | 9888 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
90dd450c | 9889 | echo $ac_n "(cached) $ac_c" 1>&6 |
90dd450c VZ |
9890 | else |
9891 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 9892 | #line 9893 "configure" |
90dd450c | 9893 | #include "confdefs.h" |
21d1c967 | 9894 | #include <$ac_hdr> |
90dd450c | 9895 | EOF |
21d1c967 | 9896 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
17234b26 | 9897 | { (eval echo configure:9898: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
9898 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9899 | if test -z "$ac_err"; then | |
9900 | rm -rf conftest* | |
9901 | eval "ac_cv_header_$ac_safe=yes" | |
90dd450c | 9902 | else |
21d1c967 | 9903 | echo "$ac_err" >&5 |
90dd450c VZ |
9904 | echo "configure: failed program was:" >&5 |
9905 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
9906 | rm -rf conftest* |
9907 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 9908 | fi |
21d1c967 | 9909 | rm -f conftest* |
90dd450c | 9910 | fi |
21d1c967 GD |
9911 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9912 | echo "$ac_t""yes" 1>&6 | |
9913 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9914 | cat >> confdefs.h <<EOF | |
9915 | #define $ac_tr_hdr 1 | |
4f14bcd8 | 9916 | EOF |
21d1c967 GD |
9917 | |
9918 | else | |
9919 | echo "$ac_t""no" 1>&6 | |
9920 | fi | |
9921 | done | |
10f2d63a | 9922 | |
21d1c967 | 9923 | fi |
90dd450c | 9924 | fi |
81809c07 | 9925 | |
21d1c967 GD |
9926 | |
9927 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
17234b26 | 9928 | echo "configure:9929: checking for working const" >&5 |
21d1c967 | 9929 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
8168de4c VZ |
9930 | echo $ac_n "(cached) $ac_c" 1>&6 |
9931 | else | |
21d1c967 | 9932 | cat > conftest.$ac_ext <<EOF |
17234b26 | 9933 | #line 9934 "configure" |
4f14bcd8 | 9934 | #include "confdefs.h" |
21d1c967 | 9935 | |
4f14bcd8 | 9936 | int main() { |
21d1c967 GD |
9937 | |
9938 | /* Ultrix mips cc rejects this. */ | |
9939 | typedef int charset[2]; const charset x; | |
9940 | /* SunOS 4.1.1 cc rejects this. */ | |
9941 | char const *const *ccp; | |
9942 | char **p; | |
9943 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
9944 | struct point {int x, y;}; | |
9945 | static struct point const zero = {0,0}; | |
9946 | /* AIX XL C 1.02.0.0 rejects this. | |
9947 | It does not let you subtract one const X* pointer from another in an arm | |
9948 | of an if-expression whose if-part is not a constant expression */ | |
9949 | const char *g = "string"; | |
9950 | ccp = &g + (g ? g-g : 0); | |
9951 | /* HPUX 7.0 cc rejects these. */ | |
9952 | ++ccp; | |
9953 | p = (char**) ccp; | |
9954 | ccp = (char const *const *) p; | |
9955 | { /* SCO 3.2v4 cc rejects this. */ | |
9956 | char *t; | |
9957 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
9958 | ||
9959 | *t++ = 0; | |
9960 | } | |
9961 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
9962 | int x[] = {25, 17}; | |
9963 | const int *foo = &x[0]; | |
9964 | ++foo; | |
9965 | } | |
9966 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
9967 | typedef const int *iptr; | |
9968 | iptr p = 0; | |
9969 | ++p; | |
9970 | } | |
9971 | { /* AIX XL C 1.02.0.0 rejects this saying | |
9972 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
9973 | struct s { int j; const int *ap[3]; }; | |
9974 | struct s *b; b->j = 5; | |
9975 | } | |
9976 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
9977 | const int foo = 10; | |
9978 | } | |
4f14bcd8 | 9979 | |
4f14bcd8 GD |
9980 | ; return 0; } |
9981 | EOF | |
17234b26 | 9982 | if { (eval echo configure:9983: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 | 9983 | rm -rf conftest* |
21d1c967 | 9984 | ac_cv_c_const=yes |
6f72b082 | 9985 | else |
4f14bcd8 GD |
9986 | echo "configure: failed program was:" >&5 |
9987 | cat conftest.$ac_ext >&5 | |
9988 | rm -rf conftest* | |
21d1c967 | 9989 | ac_cv_c_const=no |
4f14bcd8 GD |
9990 | fi |
9991 | rm -f conftest* | |
698dcdb6 | 9992 | fi |
6f72b082 | 9993 | |
21d1c967 GD |
9994 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
9995 | if test $ac_cv_c_const = no; then | |
9996 | cat >> confdefs.h <<\EOF | |
9997 | #define const | |
90dd450c VZ |
9998 | EOF |
9999 | ||
21d1c967 | 10000 | fi |
90dd450c | 10001 | |
21d1c967 | 10002 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
17234b26 | 10003 | echo "configure:10004: checking for inline" >&5 |
21d1c967 | 10004 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
4f14bcd8 | 10005 | echo $ac_n "(cached) $ac_c" 1>&6 |
6f72b082 | 10006 | else |
21d1c967 GD |
10007 | ac_cv_c_inline=no |
10008 | for ac_kw in inline __inline__ __inline; do | |
10009 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 10010 | #line 10011 "configure" |
4f14bcd8 | 10011 | #include "confdefs.h" |
90dd450c | 10012 | |
21d1c967 GD |
10013 | int main() { |
10014 | } $ac_kw foo() { | |
4f14bcd8 GD |
10015 | ; return 0; } |
10016 | EOF | |
17234b26 | 10017 | if { (eval echo configure:10018: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 | 10018 | rm -rf conftest* |
21d1c967 | 10019 | ac_cv_c_inline=$ac_kw; break |
6f72b082 | 10020 | else |
4f14bcd8 GD |
10021 | echo "configure: failed program was:" >&5 |
10022 | cat conftest.$ac_ext >&5 | |
698dcdb6 | 10023 | fi |
4f14bcd8 | 10024 | rm -f conftest* |
21d1c967 | 10025 | done |
4f14bcd8 | 10026 | |
21d1c967 | 10027 | fi |
4f14bcd8 | 10028 | |
21d1c967 GD |
10029 | echo "$ac_t""$ac_cv_c_inline" 1>&6 |
10030 | case "$ac_cv_c_inline" in | |
10031 | inline | yes) ;; | |
10032 | no) cat >> confdefs.h <<\EOF | |
10033 | #define inline | |
90dd450c | 10034 | EOF |
21d1c967 GD |
10035 | ;; |
10036 | *) cat >> confdefs.h <<EOF | |
10037 | #define inline $ac_cv_c_inline | |
4f14bcd8 | 10038 | EOF |
21d1c967 GD |
10039 | ;; |
10040 | esac | |
4f14bcd8 | 10041 | |
90dd450c | 10042 | |
21d1c967 | 10043 | echo $ac_n "checking size of char""... $ac_c" 1>&6 |
17234b26 | 10044 | echo "configure:10045: checking size of char" >&5 |
21d1c967 | 10045 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
4f14bcd8 GD |
10046 | echo $ac_n "(cached) $ac_c" 1>&6 |
10047 | else | |
21d1c967 GD |
10048 | if test "$cross_compiling" = yes; then |
10049 | ac_cv_sizeof_char=1 | |
4f14bcd8 | 10050 | else |
90dd450c | 10051 | cat > conftest.$ac_ext <<EOF |
17234b26 | 10052 | #line 10053 "configure" |
4f14bcd8 | 10053 | #include "confdefs.h" |
21d1c967 | 10054 | #include <stdio.h> |
17234b26 | 10055 | #include <sys/types.h> |
21d1c967 GD |
10056 | main() |
10057 | { | |
10058 | FILE *f=fopen("conftestval", "w"); | |
10059 | if (!f) exit(1); | |
10060 | fprintf(f, "%d\n", sizeof(char)); | |
10061 | exit(0); | |
90dd450c | 10062 | } |
4f14bcd8 | 10063 | EOF |
17234b26 | 10064 | if { (eval echo configure:10065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
90dd450c | 10065 | then |
21d1c967 | 10066 | ac_cv_sizeof_char=`cat conftestval` |
4f14bcd8 GD |
10067 | else |
10068 | echo "configure: failed program was:" >&5 | |
10069 | cat conftest.$ac_ext >&5 | |
90dd450c | 10070 | rm -fr conftest* |
21d1c967 | 10071 | ac_cv_sizeof_char=0 |
90dd450c VZ |
10072 | fi |
10073 | rm -fr conftest* | |
4f14bcd8 | 10074 | fi |
4f14bcd8 GD |
10075 | |
10076 | fi | |
21d1c967 GD |
10077 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
10078 | cat >> confdefs.h <<EOF | |
10079 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
10080 | EOF | |
4f14bcd8 | 10081 | |
21d1c967 GD |
10082 | |
10083 | echo $ac_n "checking size of short""... $ac_c" 1>&6 | |
17234b26 | 10084 | echo "configure:10085: checking size of short" >&5 |
21d1c967 GD |
10085 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
10086 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10087 | else | |
10088 | if test "$cross_compiling" = yes; then | |
10089 | ac_cv_sizeof_short=2 | |
10090 | else | |
10091 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 10092 | #line 10093 "configure" |
21d1c967 GD |
10093 | #include "confdefs.h" |
10094 | #include <stdio.h> | |
17234b26 | 10095 | #include <sys/types.h> |
21d1c967 GD |
10096 | main() |
10097 | { | |
10098 | FILE *f=fopen("conftestval", "w"); | |
10099 | if (!f) exit(1); | |
10100 | fprintf(f, "%d\n", sizeof(short)); | |
10101 | exit(0); | |
10102 | } | |
90dd450c | 10103 | EOF |
17234b26 | 10104 | if { (eval echo configure:10105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
21d1c967 GD |
10105 | then |
10106 | ac_cv_sizeof_short=`cat conftestval` | |
10107 | else | |
10108 | echo "configure: failed program was:" >&5 | |
10109 | cat conftest.$ac_ext >&5 | |
10110 | rm -fr conftest* | |
10111 | ac_cv_sizeof_short=0 | |
10112 | fi | |
10113 | rm -fr conftest* | |
10114 | fi | |
4f14bcd8 | 10115 | |
4f14bcd8 | 10116 | fi |
21d1c967 GD |
10117 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
10118 | cat >> confdefs.h <<EOF | |
10119 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
10120 | EOF | |
4f14bcd8 GD |
10121 | |
10122 | ||
21d1c967 | 10123 | echo $ac_n "checking size of void *""... $ac_c" 1>&6 |
17234b26 | 10124 | echo "configure:10125: checking size of void *" >&5 |
21d1c967 | 10125 | if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then |
4f14bcd8 GD |
10126 | echo $ac_n "(cached) $ac_c" 1>&6 |
10127 | else | |
21d1c967 GD |
10128 | if test "$cross_compiling" = yes; then |
10129 | ac_cv_sizeof_void_p=4 | |
10130 | else | |
4f14bcd8 | 10131 | cat > conftest.$ac_ext <<EOF |
17234b26 | 10132 | #line 10133 "configure" |
4f14bcd8 | 10133 | #include "confdefs.h" |
21d1c967 | 10134 | #include <stdio.h> |
17234b26 | 10135 | #include <sys/types.h> |
21d1c967 GD |
10136 | main() |
10137 | { | |
10138 | FILE *f=fopen("conftestval", "w"); | |
10139 | if (!f) exit(1); | |
10140 | fprintf(f, "%d\n", sizeof(void *)); | |
10141 | exit(0); | |
10142 | } | |
4f14bcd8 | 10143 | EOF |
17234b26 | 10144 | if { (eval echo configure:10145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
21d1c967 GD |
10145 | then |
10146 | ac_cv_sizeof_void_p=`cat conftestval` | |
4f14bcd8 | 10147 | else |
4f14bcd8 GD |
10148 | echo "configure: failed program was:" >&5 |
10149 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
10150 | rm -fr conftest* |
10151 | ac_cv_sizeof_void_p=0 | |
4f14bcd8 | 10152 | fi |
21d1c967 | 10153 | rm -fr conftest* |
4f14bcd8 | 10154 | fi |
4f14bcd8 | 10155 | |
21d1c967 GD |
10156 | fi |
10157 | echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6 | |
10158 | cat >> confdefs.h <<EOF | |
10159 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
90dd450c VZ |
10160 | EOF |
10161 | ||
90dd450c | 10162 | |
21d1c967 | 10163 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
17234b26 | 10164 | echo "configure:10165: checking size of int" >&5 |
21d1c967 | 10165 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
4f14bcd8 | 10166 | echo $ac_n "(cached) $ac_c" 1>&6 |
21d1c967 GD |
10167 | else |
10168 | if test "$cross_compiling" = yes; then | |
10169 | ac_cv_sizeof_int=4 | |
4f14bcd8 GD |
10170 | else |
10171 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 10172 | #line 10173 "configure" |
4f14bcd8 | 10173 | #include "confdefs.h" |
21d1c967 | 10174 | #include <stdio.h> |
17234b26 | 10175 | #include <sys/types.h> |
21d1c967 GD |
10176 | main() |
10177 | { | |
10178 | FILE *f=fopen("conftestval", "w"); | |
10179 | if (!f) exit(1); | |
10180 | fprintf(f, "%d\n", sizeof(int)); | |
10181 | exit(0); | |
10182 | } | |
4f14bcd8 | 10183 | EOF |
17234b26 | 10184 | if { (eval echo configure:10185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
21d1c967 GD |
10185 | then |
10186 | ac_cv_sizeof_int=`cat conftestval` | |
4f14bcd8 | 10187 | else |
4f14bcd8 GD |
10188 | echo "configure: failed program was:" >&5 |
10189 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
10190 | rm -fr conftest* |
10191 | ac_cv_sizeof_int=0 | |
4f14bcd8 | 10192 | fi |
21d1c967 | 10193 | rm -fr conftest* |
4f14bcd8 | 10194 | fi |
4f14bcd8 | 10195 | |
21d1c967 GD |
10196 | fi |
10197 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | |
10198 | cat >> confdefs.h <<EOF | |
10199 | #define SIZEOF_INT $ac_cv_sizeof_int | |
90dd450c VZ |
10200 | EOF |
10201 | ||
90dd450c | 10202 | |
21d1c967 | 10203 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
17234b26 | 10204 | echo "configure:10205: checking size of long" >&5 |
21d1c967 | 10205 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
4f14bcd8 GD |
10206 | echo $ac_n "(cached) $ac_c" 1>&6 |
10207 | else | |
21d1c967 GD |
10208 | if test "$cross_compiling" = yes; then |
10209 | ac_cv_sizeof_long=4 | |
10210 | else | |
10211 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 10212 | #line 10213 "configure" |
90dd450c | 10213 | #include "confdefs.h" |
21d1c967 | 10214 | #include <stdio.h> |
17234b26 | 10215 | #include <sys/types.h> |
21d1c967 GD |
10216 | main() |
10217 | { | |
10218 | FILE *f=fopen("conftestval", "w"); | |
10219 | if (!f) exit(1); | |
10220 | fprintf(f, "%d\n", sizeof(long)); | |
10221 | exit(0); | |
10222 | } | |
4f14bcd8 | 10223 | EOF |
17234b26 | 10224 | if { (eval echo configure:10225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
21d1c967 GD |
10225 | then |
10226 | ac_cv_sizeof_long=`cat conftestval` | |
4f14bcd8 GD |
10227 | else |
10228 | echo "configure: failed program was:" >&5 | |
10229 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
10230 | rm -fr conftest* |
10231 | ac_cv_sizeof_long=0 | |
4f14bcd8 | 10232 | fi |
21d1c967 | 10233 | rm -fr conftest* |
90dd450c | 10234 | fi |
4f14bcd8 | 10235 | |
21d1c967 GD |
10236 | fi |
10237 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 | |
10238 | cat >> confdefs.h <<EOF | |
10239 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
90dd450c | 10240 | EOF |
4f14bcd8 | 10241 | |
4f14bcd8 | 10242 | |
4f14bcd8 | 10243 | |
21d1c967 GD |
10244 | case "${host}" in |
10245 | arm-*-linux* ) | |
10246 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
17234b26 | 10247 | echo "configure:10248: checking size of long long" >&5 |
21d1c967 GD |
10248 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
10249 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10250 | else | |
10251 | if test "$cross_compiling" = yes; then | |
10252 | ac_cv_sizeof_long_long=8 | |
10253 | else | |
10254 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 10255 | #line 10256 "configure" |
21d1c967 GD |
10256 | #include "confdefs.h" |
10257 | #include <stdio.h> | |
17234b26 | 10258 | #include <sys/types.h> |
21d1c967 GD |
10259 | main() |
10260 | { | |
10261 | FILE *f=fopen("conftestval", "w"); | |
10262 | if (!f) exit(1); | |
10263 | fprintf(f, "%d\n", sizeof(long long)); | |
10264 | exit(0); | |
10265 | } | |
90dd450c | 10266 | EOF |
17234b26 | 10267 | if { (eval echo configure:10268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
21d1c967 GD |
10268 | then |
10269 | ac_cv_sizeof_long_long=`cat conftestval` | |
90dd450c | 10270 | else |
21d1c967 GD |
10271 | echo "configure: failed program was:" >&5 |
10272 | cat conftest.$ac_ext >&5 | |
10273 | rm -fr conftest* | |
10274 | ac_cv_sizeof_long_long=0 | |
10275 | fi | |
10276 | rm -fr conftest* | |
90dd450c | 10277 | fi |
4f14bcd8 | 10278 | |
21d1c967 GD |
10279 | fi |
10280 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 | |
10281 | cat >> confdefs.h <<EOF | |
10282 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
10283 | EOF | |
90dd450c | 10284 | |
21d1c967 GD |
10285 | |
10286 | ;; | |
10287 | * ) | |
10288 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
17234b26 | 10289 | echo "configure:10290: checking size of long long" >&5 |
21d1c967 | 10290 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
4f14bcd8 GD |
10291 | echo $ac_n "(cached) $ac_c" 1>&6 |
10292 | else | |
21d1c967 GD |
10293 | if test "$cross_compiling" = yes; then |
10294 | ac_cv_sizeof_long_long=0 | |
10295 | else | |
10296 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 10297 | #line 10298 "configure" |
90dd450c | 10298 | #include "confdefs.h" |
21d1c967 | 10299 | #include <stdio.h> |
17234b26 | 10300 | #include <sys/types.h> |
21d1c967 GD |
10301 | main() |
10302 | { | |
10303 | FILE *f=fopen("conftestval", "w"); | |
10304 | if (!f) exit(1); | |
10305 | fprintf(f, "%d\n", sizeof(long long)); | |
10306 | exit(0); | |
10307 | } | |
90dd450c | 10308 | EOF |
17234b26 | 10309 | if { (eval echo configure:10310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
21d1c967 GD |
10310 | then |
10311 | ac_cv_sizeof_long_long=`cat conftestval` | |
4f14bcd8 | 10312 | else |
90dd450c VZ |
10313 | echo "configure: failed program was:" >&5 |
10314 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
10315 | rm -fr conftest* |
10316 | ac_cv_sizeof_long_long=0 | |
90dd450c | 10317 | fi |
21d1c967 | 10318 | rm -fr conftest* |
4f14bcd8 GD |
10319 | fi |
10320 | ||
90dd450c | 10321 | fi |
21d1c967 GD |
10322 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
10323 | cat >> confdefs.h <<EOF | |
10324 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
90dd450c | 10325 | EOF |
9e691f46 | 10326 | |
9e691f46 | 10327 | |
21d1c967 GD |
10328 | esac |
10329 | ||
10330 | echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 | |
17234b26 | 10331 | echo "configure:10332: checking size of wchar_t" >&5 |
21d1c967 | 10332 | if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then |
90dd450c | 10333 | echo $ac_n "(cached) $ac_c" 1>&6 |
21d1c967 GD |
10334 | else |
10335 | ||
10336 | if test "$cross_compiling" = yes; then | |
10337 | wx_cv_sizeof_wchar_t=4 | |
10338 | ||
6f72b082 | 10339 | else |
698dcdb6 | 10340 | cat > conftest.$ac_ext <<EOF |
17234b26 | 10341 | #line 10342 "configure" |
6f72b082 | 10342 | #include "confdefs.h" |
21d1c967 GD |
10343 | |
10344 | #ifdef HAVE_WCHAR_H | |
10345 | # ifdef __CYGWIN__ | |
10346 | # include <stddef.h> | |
10347 | # endif | |
10348 | # include <wchar.h> | |
10349 | #endif | |
10350 | #ifdef HAVE_STDLIB_H | |
10351 | # include <stdlib.h> | |
10352 | #endif | |
10353 | #include <stdio.h> | |
10354 | int main() | |
10355 | { | |
10356 | FILE *f=fopen("conftestval", "w"); | |
10357 | if (!f) exit(1); | |
10358 | fprintf(f, "%i", sizeof(wchar_t)); | |
10359 | exit(0); | |
10360 | } | |
10361 | ||
698dcdb6 | 10362 | EOF |
17234b26 | 10363 | if { (eval echo configure:10364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
21d1c967 GD |
10364 | then |
10365 | wx_cv_sizeof_wchar_t=`cat conftestval` | |
6f72b082 | 10366 | else |
698dcdb6 VZ |
10367 | echo "configure: failed program was:" >&5 |
10368 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
10369 | rm -fr conftest* |
10370 | wx_cv_sizeof_wchar_t=0 | |
6f72b082 | 10371 | fi |
21d1c967 | 10372 | rm -fr conftest* |
6f72b082 | 10373 | fi |
6f72b082 | 10374 | |
90dd450c | 10375 | |
3f345b47 VZ |
10376 | fi |
10377 | ||
21d1c967 | 10378 | echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6 |
3f345b47 | 10379 | |
21d1c967 GD |
10380 | cat >> confdefs.h <<EOF |
10381 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t | |
10382 | EOF | |
90dd450c | 10383 | |
90dd450c | 10384 | |
21d1c967 GD |
10385 | # Check whether --enable-largefile or --disable-largefile was given. |
10386 | if test "${enable_largefile+set}" = set; then | |
10387 | enableval="$enable_largefile" | |
10388 | : | |
3f345b47 VZ |
10389 | fi |
10390 | ||
21d1c967 GD |
10391 | if test "$enable_largefile" != no; then |
10392 | wx_largefile=no | |
10393 | ||
10394 | echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6 | |
17234b26 | 10395 | echo "configure:10396: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
21d1c967 | 10396 | if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then |
698dcdb6 | 10397 | echo $ac_n "(cached) $ac_c" 1>&6 |
f6bcfd97 | 10398 | else |
21d1c967 GD |
10399 | |
10400 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 10401 | #line 10402 "configure" |
90dd450c | 10402 | #include "confdefs.h" |
21d1c967 GD |
10403 | #define _FILE_OFFSET_BITS 64 |
10404 | #include <sys/types.h> | |
10405 | int main() { | |
10406 | typedef struct { | |
10407 | unsigned int field: sizeof(off_t) == 8; | |
10408 | } wxlf; | |
10409 | ||
10410 | ; return 0; } | |
90dd450c | 10411 | EOF |
17234b26 | 10412 | if { (eval echo configure:10413: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
90dd450c | 10413 | rm -rf conftest* |
21d1c967 | 10414 | ac_cv_sys_file_offset_bits=64 |
f6bcfd97 | 10415 | else |
90dd450c VZ |
10416 | echo "configure: failed program was:" >&5 |
10417 | cat conftest.$ac_ext >&5 | |
10418 | rm -rf conftest* | |
21d1c967 | 10419 | ac_cv_sys_file_offset_bits=no |
f6bcfd97 | 10420 | fi |
90dd450c | 10421 | rm -f conftest* |
21d1c967 GD |
10422 | |
10423 | ||
90dd450c | 10424 | fi |
21d1c967 GD |
10425 | |
10426 | echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6 | |
10427 | ||
10428 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
10429 | wx_largefile=yes | |
10430 | cat >> confdefs.h <<EOF | |
10431 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
10432 | EOF | |
10433 | ||
10434 | fi | |
10435 | ||
10436 | if test "x$wx_largefile" != "xyes"; then | |
10437 | ||
10438 | echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6 | |
17234b26 | 10439 | echo "configure:10440: checking for _LARGE_FILES value needed for large files" >&5 |
21d1c967 | 10440 | if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then |
90dd450c | 10441 | echo $ac_n "(cached) $ac_c" 1>&6 |
f6bcfd97 | 10442 | else |
21d1c967 GD |
10443 | |
10444 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 10445 | #line 10446 "configure" |
f6bcfd97 | 10446 | #include "confdefs.h" |
21d1c967 GD |
10447 | #define _LARGE_FILES 1 |
10448 | #include <sys/types.h> | |
90dd450c | 10449 | int main() { |
21d1c967 GD |
10450 | typedef struct { |
10451 | unsigned int field: sizeof(off_t) == 8; | |
10452 | } wxlf; | |
10453 | ||
90dd450c | 10454 | ; return 0; } |
698dcdb6 | 10455 | EOF |
17234b26 | 10456 | if { (eval echo configure:10457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
90dd450c | 10457 | rm -rf conftest* |
21d1c967 | 10458 | ac_cv_sys_large_files=1 |
f6bcfd97 | 10459 | else |
698dcdb6 VZ |
10460 | echo "configure: failed program was:" >&5 |
10461 | cat conftest.$ac_ext >&5 | |
90dd450c | 10462 | rm -rf conftest* |
21d1c967 | 10463 | ac_cv_sys_large_files=no |
f6bcfd97 | 10464 | fi |
90dd450c | 10465 | rm -f conftest* |
21d1c967 GD |
10466 | |
10467 | ||
f6bcfd97 | 10468 | fi |
698dcdb6 | 10469 | |
21d1c967 | 10470 | echo "$ac_t""$ac_cv_sys_large_files" 1>&6 |
3f345b47 | 10471 | |
21d1c967 GD |
10472 | if test "$ac_cv_sys_large_files" != no; then |
10473 | wx_largefile=yes | |
10474 | cat >> confdefs.h <<EOF | |
10475 | #define _LARGE_FILES $ac_cv_sys_large_files | |
10476 | EOF | |
90dd450c | 10477 | |
90dd450c VZ |
10478 | fi |
10479 | ||
90dd450c | 10480 | fi |
90dd450c | 10481 | |
21d1c967 | 10482 | echo $ac_n "checking if large file support is available""... $ac_c" 1>&6 |
17234b26 | 10483 | echo "configure:10484: checking if large file support is available" >&5 |
21d1c967 GD |
10484 | if test "x$wx_largefile" = "xyes"; then |
10485 | cat >> confdefs.h <<\EOF | |
10486 | #define HAVE_LARGEFILE_SUPPORT 1 | |
90dd450c VZ |
10487 | EOF |
10488 | ||
90dd450c | 10489 | fi |
21d1c967 GD |
10490 | echo "$ac_t""$wx_largefile" 1>&6 |
10491 | fi | |
90dd450c | 10492 | |
90dd450c | 10493 | |
21d1c967 | 10494 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
17234b26 | 10495 | echo "configure:10496: checking whether byte ordering is bigendian" >&5 |
21d1c967 | 10496 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
90dd450c VZ |
10497 | echo $ac_n "(cached) $ac_c" 1>&6 |
10498 | else | |
21d1c967 GD |
10499 | ac_cv_c_bigendian=unknown |
10500 | # See if sys/param.h defines the BYTE_ORDER macro. | |
10501 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 10502 | #line 10503 "configure" |
90dd450c | 10503 | #include "confdefs.h" |
21d1c967 GD |
10504 | #include <sys/types.h> |
10505 | #include <sys/param.h> | |
10506 | int main() { | |
10507 | ||
10508 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
10509 | bogus endian macros | |
10510 | #endif | |
10511 | ; return 0; } | |
90dd450c | 10512 | EOF |
17234b26 | 10513 | if { (eval echo configure:10514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
90dd450c | 10514 | rm -rf conftest* |
21d1c967 | 10515 | # It does; now see whether it defined to BIG_ENDIAN or not. |
90dd450c | 10516 | cat > conftest.$ac_ext <<EOF |
17234b26 | 10517 | #line 10518 "configure" |
90dd450c | 10518 | #include "confdefs.h" |
21d1c967 GD |
10519 | #include <sys/types.h> |
10520 | #include <sys/param.h> | |
3f345b47 | 10521 | int main() { |
21d1c967 GD |
10522 | |
10523 | #if BYTE_ORDER != BIG_ENDIAN | |
10524 | not big endian | |
10525 | #endif | |
3f345b47 VZ |
10526 | ; return 0; } |
10527 | EOF | |
17234b26 | 10528 | if { (eval echo configure:10529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
3f345b47 | 10529 | rm -rf conftest* |
21d1c967 | 10530 | ac_cv_c_bigendian=yes |
3f345b47 VZ |
10531 | else |
10532 | echo "configure: failed program was:" >&5 | |
10533 | cat conftest.$ac_ext >&5 | |
10534 | rm -rf conftest* | |
21d1c967 | 10535 | ac_cv_c_bigendian=no |
3f345b47 VZ |
10536 | fi |
10537 | rm -f conftest* | |
3f345b47 | 10538 | else |
21d1c967 GD |
10539 | echo "configure: failed program was:" >&5 |
10540 | cat conftest.$ac_ext >&5 | |
3f345b47 | 10541 | fi |
21d1c967 GD |
10542 | rm -f conftest* |
10543 | if test $ac_cv_c_bigendian = unknown; then | |
10544 | if test "$cross_compiling" = yes; then | |
10545 | ac_cv_c_bigendian=unknown | |
10f2d63a | 10546 | else |
90dd450c | 10547 | cat > conftest.$ac_ext <<EOF |
17234b26 | 10548 | #line 10549 "configure" |
90dd450c | 10549 | #include "confdefs.h" |
21d1c967 GD |
10550 | main () { |
10551 | /* Are we little or big endian? From Harbison&Steele. */ | |
10552 | union | |
10553 | { | |
10554 | long l; | |
10555 | char c[sizeof (long)]; | |
10556 | } u; | |
10557 | u.l = 1; | |
10558 | exit (u.c[sizeof (long) - 1] == 1); | |
10559 | } | |
3f345b47 | 10560 | EOF |
17234b26 | 10561 | if { (eval echo configure:10562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
21d1c967 GD |
10562 | then |
10563 | ac_cv_c_bigendian=no | |
3f345b47 VZ |
10564 | else |
10565 | echo "configure: failed program was:" >&5 | |
10566 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
10567 | rm -fr conftest* |
10568 | ac_cv_c_bigendian=yes | |
3f345b47 | 10569 | fi |
21d1c967 | 10570 | rm -fr conftest* |
8168de4c | 10571 | fi |
703e0a69 | 10572 | |
21d1c967 GD |
10573 | fi |
10574 | fi | |
698dcdb6 | 10575 | |
21d1c967 GD |
10576 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 |
10577 | if test $ac_cv_c_bigendian = unknown; then | |
10578 | 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 | |
10579 | fi | |
10580 | if test $ac_cv_c_bigendian = yes; then | |
10581 | cat >> confdefs.h <<\EOF | |
10582 | #define WORDS_BIGENDIAN 1 | |
10583 | EOF | |
10584 | ||
10585 | fi | |
10586 | ||
10587 | ||
10588 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 | |
17234b26 | 10589 | echo "configure:10590: checking how to run the C++ preprocessor" >&5 |
21d1c967 GD |
10590 | if test -z "$CXXCPP"; then |
10591 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then | |
698dcdb6 | 10592 | echo $ac_n "(cached) $ac_c" 1>&6 |
7ec2881a | 10593 | else |
21d1c967 GD |
10594 | ac_ext=C |
10595 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10596 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10597 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10598 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10599 | cross_compiling=$ac_cv_prog_cxx_cross | |
10600 | CXXCPP="${CXX-g++} -E" | |
10601 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 10602 | #line 10603 "configure" |
7ec2881a | 10603 | #include "confdefs.h" |
21d1c967 | 10604 | #include <stdlib.h> |
698dcdb6 | 10605 | EOF |
21d1c967 | 10606 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
17234b26 | 10607 | { (eval echo configure:10608: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
10608 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10609 | if test -z "$ac_err"; then | |
10610 | : | |
698dcdb6 | 10611 | else |
21d1c967 | 10612 | echo "$ac_err" >&5 |
698dcdb6 VZ |
10613 | echo "configure: failed program was:" >&5 |
10614 | cat conftest.$ac_ext >&5 | |
10615 | rm -rf conftest* | |
21d1c967 | 10616 | CXXCPP=/lib/cpp |
698dcdb6 VZ |
10617 | fi |
10618 | rm -f conftest* | |
21d1c967 GD |
10619 | ac_cv_prog_CXXCPP="$CXXCPP" |
10620 | ac_ext=C | |
10621 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10622 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10623 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10624 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10625 | cross_compiling=$ac_cv_prog_cxx_cross | |
7ec2881a | 10626 | fi |
90dd450c | 10627 | fi |
21d1c967 GD |
10628 | CXXCPP="$ac_cv_prog_CXXCPP" |
10629 | echo "$ac_t""$CXXCPP" 1>&6 | |
1e6feb95 | 10630 | |
1725144d | 10631 | |
21d1c967 | 10632 | if test "$cross_compiling" = "yes"; then |
90dd450c | 10633 | cat >> confdefs.h <<\EOF |
21d1c967 | 10634 | #define wxUSE_IOSTREAMH 1 |
90dd450c | 10635 | EOF |
ab9b9eab | 10636 | |
21d1c967 GD |
10637 | else |
10638 | ||
10639 | ac_ext=C | |
10640 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10641 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10642 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10643 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10644 | cross_compiling=$ac_cv_prog_cxx_cross | |
10645 | ||
ba337fe7 | 10646 | |
21d1c967 GD |
10647 | for ac_hdr in iostream |
10648 | do | |
10649 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
10650 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
17234b26 | 10651 | echo "configure:10652: checking for $ac_hdr" >&5 |
90dd450c | 10652 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
698dcdb6 | 10653 | echo $ac_n "(cached) $ac_c" 1>&6 |
ab9b9eab | 10654 | else |
90dd450c | 10655 | cat > conftest.$ac_ext <<EOF |
17234b26 | 10656 | #line 10657 "configure" |
ab9b9eab | 10657 | #include "confdefs.h" |
21d1c967 | 10658 | #include <$ac_hdr> |
698dcdb6 VZ |
10659 | EOF |
10660 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
17234b26 | 10661 | { (eval echo configure:10662: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
10662 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10663 | if test -z "$ac_err"; then | |
10664 | rm -rf conftest* | |
90dd450c | 10665 | eval "ac_cv_header_$ac_safe=yes" |
ab9b9eab | 10666 | else |
698dcdb6 VZ |
10667 | echo "$ac_err" >&5 |
10668 | echo "configure: failed program was:" >&5 | |
ab9b9eab | 10669 | cat conftest.$ac_ext >&5 |
698dcdb6 | 10670 | rm -rf conftest* |
90dd450c | 10671 | eval "ac_cv_header_$ac_safe=no" |
ab9b9eab | 10672 | fi |
698dcdb6 | 10673 | rm -f conftest* |
90dd450c VZ |
10674 | fi |
10675 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10676 | echo "$ac_t""yes" 1>&6 | |
21d1c967 GD |
10677 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
10678 | cat >> confdefs.h <<EOF | |
10679 | #define $ac_tr_hdr 1 | |
698dcdb6 | 10680 | EOF |
21d1c967 | 10681 | |
ab9b9eab | 10682 | else |
90dd450c VZ |
10683 | echo "$ac_t""no" 1>&6 |
10684 | fi | |
21d1c967 | 10685 | done |
10f2d63a | 10686 | |
10f2d63a | 10687 | |
21d1c967 GD |
10688 | if test "$ac_cv_header_iostream" = "yes" ; then |
10689 | : | |
10690 | else | |
10691 | cat >> confdefs.h <<\EOF | |
10692 | #define wxUSE_IOSTREAMH 1 | |
10693 | EOF | |
788deba1 | 10694 | |
90dd450c | 10695 | fi |
ab9b9eab | 10696 | |
21d1c967 GD |
10697 | ac_ext=c |
10698 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10699 | ac_cpp='$CPP $CPPFLAGS' | |
10700 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10701 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10702 | cross_compiling=$ac_cv_prog_cc_cross | |
ab9b9eab | 10703 | |
21d1c967 | 10704 | fi |
ab9b9eab | 10705 | |
21d1c967 GD |
10706 | |
10707 | ||
10708 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 | |
17234b26 | 10709 | echo "configure:10710: checking if C++ compiler supports bool" >&5 |
21d1c967 | 10710 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then |
698dcdb6 | 10711 | echo $ac_n "(cached) $ac_c" 1>&6 |
ab9b9eab | 10712 | else |
21d1c967 GD |
10713 | |
10714 | ||
10715 | ac_ext=C | |
10716 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10717 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10718 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10719 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10720 | cross_compiling=$ac_cv_prog_cxx_cross | |
10721 | ||
10722 | ||
10723 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 10724 | #line 10725 "configure" |
ab9b9eab | 10725 | #include "confdefs.h" |
21d1c967 GD |
10726 | |
10727 | ||
10728 | int main() { | |
10729 | ||
10730 | bool b = true; | |
10731 | ||
10732 | return 0; | |
10733 | ||
10734 | ; return 0; } | |
698dcdb6 | 10735 | EOF |
17234b26 | 10736 | if { (eval echo configure:10737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 10737 | rm -rf conftest* |
21d1c967 GD |
10738 | |
10739 | wx_cv_cpp_bool=yes | |
10740 | ||
698dcdb6 VZ |
10741 | else |
10742 | echo "configure: failed program was:" >&5 | |
10743 | cat conftest.$ac_ext >&5 | |
10744 | rm -rf conftest* | |
21d1c967 GD |
10745 | |
10746 | wx_cv_cpp_bool=no | |
10747 | ||
10748 | ||
698dcdb6 VZ |
10749 | fi |
10750 | rm -f conftest* | |
21d1c967 GD |
10751 | |
10752 | ac_ext=c | |
10753 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10754 | ac_cpp='$CPP $CPPFLAGS' | |
10755 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10756 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10757 | cross_compiling=$ac_cv_prog_cc_cross | |
10758 | ||
10759 | ||
698dcdb6 | 10760 | fi |
21d1c967 GD |
10761 | |
10762 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 | |
10763 | ||
10764 | if test "$wx_cv_cpp_bool" = "yes"; then | |
10765 | cat >> confdefs.h <<\EOF | |
10766 | #define HAVE_BOOL 1 | |
90dd450c | 10767 | EOF |
ab9b9eab | 10768 | |
21d1c967 GD |
10769 | fi |
10770 | ||
10771 | ||
10772 | ||
986ecc86 | 10773 | echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6 |
17234b26 | 10774 | echo "configure:10775: checking if C++ compiler supports the explicit keyword" >&5 |
986ecc86 VZ |
10775 | if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then |
10776 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10777 | else | |
10778 | ||
10779 | ||
10780 | ac_ext=C | |
10781 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10782 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10783 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10784 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10785 | cross_compiling=$ac_cv_prog_cxx_cross | |
10786 | ||
10787 | ||
10788 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 10789 | #line 10790 "configure" |
986ecc86 VZ |
10790 | #include "confdefs.h" |
10791 | ||
10792 | class Foo { public: explicit Foo(int) {} }; | |
10793 | ||
10794 | int main() { | |
10795 | ||
10796 | return 0; | |
10797 | ||
10798 | ; return 0; } | |
10799 | EOF | |
17234b26 | 10800 | if { (eval echo configure:10801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
986ecc86 VZ |
10801 | rm -rf conftest* |
10802 | ||
10803 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 10804 | #line 10805 "configure" |
986ecc86 VZ |
10805 | #include "confdefs.h" |
10806 | ||
10807 | class Foo { public: explicit Foo(int) {} }; | |
10808 | static void TakeFoo(const Foo& foo) { } | |
10809 | ||
10810 | int main() { | |
10811 | ||
10812 | TakeFoo(17); | |
10813 | return 0; | |
10814 | ||
10815 | ; return 0; } | |
10816 | EOF | |
17234b26 | 10817 | if { (eval echo configure:10818: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
986ecc86 VZ |
10818 | rm -rf conftest* |
10819 | wx_cv_explicit=no | |
10820 | else | |
10821 | echo "configure: failed program was:" >&5 | |
10822 | cat conftest.$ac_ext >&5 | |
10823 | rm -rf conftest* | |
10824 | wx_cv_explicit=yes | |
10825 | ||
10826 | fi | |
10827 | rm -f conftest* | |
10828 | ||
10829 | else | |
10830 | echo "configure: failed program was:" >&5 | |
10831 | cat conftest.$ac_ext >&5 | |
10832 | rm -rf conftest* | |
10833 | wx_cv_explicit=no | |
10834 | ||
10835 | fi | |
10836 | rm -f conftest* | |
10837 | ||
10838 | ac_ext=c | |
10839 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10840 | ac_cpp='$CPP $CPPFLAGS' | |
10841 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10842 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10843 | cross_compiling=$ac_cv_prog_cc_cross | |
10844 | ||
10845 | ||
10846 | fi | |
10847 | ||
10848 | echo "$ac_t""$wx_cv_explicit" 1>&6 | |
10849 | ||
10850 | if test "$wx_cv_explicit" = "yes"; then | |
10851 | cat >> confdefs.h <<\EOF | |
10852 | #define HAVE_EXPLICIT 1 | |
10853 | EOF | |
10854 | ||
10855 | fi | |
10856 | ||
10857 | ||
10858 | ||
21d1c967 GD |
10859 | SEARCH_INCLUDE="\ |
10860 | /usr/local/include \ | |
10861 | \ | |
10862 | /usr/Motif-1.2/include \ | |
10863 | /usr/Motif-2.1/include \ | |
10864 | \ | |
10865 | /usr/include/Motif1.2 \ | |
10866 | /opt/xpm/include/X11 \ | |
10867 | /opt/GBxpm/include/ \ | |
10868 | /opt/GBxpm/X11/include/ \ | |
10869 | \ | |
10870 | /usr/Motif1.2/include \ | |
10871 | /usr/dt/include \ | |
10872 | /usr/openwin/include \ | |
10873 | \ | |
10874 | /usr/include/Xm \ | |
10875 | \ | |
10876 | /usr/X11R6/include \ | |
10877 | /usr/X11R6.4/include \ | |
10878 | /usr/X11R5/include \ | |
10879 | /usr/X11R4/include \ | |
10880 | \ | |
10881 | /usr/include/X11R6 \ | |
10882 | /usr/include/X11R5 \ | |
10883 | /usr/include/X11R4 \ | |
10884 | \ | |
10885 | /usr/local/X11R6/include \ | |
10886 | /usr/local/X11R5/include \ | |
10887 | /usr/local/X11R4/include \ | |
10888 | \ | |
10889 | /usr/local/include/X11R6 \ | |
10890 | /usr/local/include/X11R5 \ | |
10891 | /usr/local/include/X11R4 \ | |
10892 | \ | |
10893 | /usr/X11/include \ | |
10894 | /usr/include/X11 \ | |
10895 | /usr/local/X11/include \ | |
10896 | /usr/local/include/X11 \ | |
10897 | \ | |
10898 | /usr/X386/include \ | |
10899 | /usr/x386/include \ | |
10900 | /usr/XFree86/include/X11 \ | |
10901 | \ | |
10902 | X:/XFree86/include \ | |
10903 | X:/XFree86/include/X11 \ | |
10904 | \ | |
10905 | /usr/include/gtk \ | |
10906 | /usr/local/include/gtk \ | |
10907 | /usr/include/glib \ | |
10908 | /usr/local/include/glib \ | |
10909 | \ | |
10910 | /usr/include/qt \ | |
10911 | /usr/local/include/qt \ | |
10912 | \ | |
10913 | /usr/include/windows \ | |
10914 | /usr/include/wine \ | |
10915 | /usr/local/include/wine \ | |
10916 | \ | |
10917 | /usr/unsupported/include \ | |
10918 | /usr/athena/include \ | |
10919 | /usr/local/x11r5/include \ | |
10920 | /usr/lpp/Xamples/include \ | |
10921 | \ | |
10922 | /usr/openwin/share/include \ | |
10923 | \ | |
10924 | /usr/include" | |
10925 | ||
10926 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
10927 | ||
10928 | ||
10929 | cat > confcache <<\EOF | |
10930 | # This file is a shell script that caches the results of configure | |
10931 | # tests run on this system so they can be shared between configure | |
10932 | # scripts and configure runs. It is not useful on other systems. | |
10933 | # If it contains results you don't want to keep, you may remove or edit it. | |
10934 | # | |
10935 | # By default, configure uses ./config.cache as the cache file, | |
10936 | # creating it if it does not exist already. You can give configure | |
10937 | # the --cache-file=FILE option to use a different cache file; that is | |
10938 | # what configure does when it calls configure scripts in | |
10939 | # subdirectories, so they share the cache. | |
10940 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
10941 | # config.status only pays attention to the cache file if you give it the | |
10942 | # --recheck option to rerun configure. | |
10943 | # | |
698dcdb6 | 10944 | EOF |
21d1c967 GD |
10945 | # The following way of writing the cache mishandles newlines in values, |
10946 | # but we know of no workaround that is simple, portable, and efficient. | |
10947 | # So, don't put newlines in cache variables' values. | |
10948 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
10949 | # and sets the high bit in the cache file unless we assign to the vars. | |
10950 | (set) 2>&1 | | |
10951 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
10952 | *ac_space=\ *) | |
10953 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
10954 | # turns \\\\ into \\, and sed turns \\ into \). | |
10955 | sed -n \ | |
10956 | -e "s/'/'\\\\''/g" \ | |
10957 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
10958 | ;; | |
10959 | *) | |
10960 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
10961 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
10962 | ;; | |
10963 | esac >> confcache | |
10964 | if cmp -s $cache_file confcache; then | |
90dd450c | 10965 | : |
698dcdb6 | 10966 | else |
21d1c967 GD |
10967 | if test -w $cache_file; then |
10968 | echo "updating cache $cache_file" | |
10969 | cat confcache > $cache_file | |
10970 | else | |
10971 | echo "not updating unwritable cache $cache_file" | |
10972 | fi | |
ab9b9eab | 10973 | fi |
21d1c967 | 10974 | rm -f confcache |
ab9b9eab | 10975 | |
ab9b9eab | 10976 | |
21d1c967 GD |
10977 | if test "$USE_LINUX" = 1; then |
10978 | echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6 | |
17234b26 | 10979 | echo "configure:10980: checking for glibc 2.1 or later" >&5 |
21d1c967 | 10980 | if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then |
698dcdb6 VZ |
10981 | echo $ac_n "(cached) $ac_c" 1>&6 |
10982 | else | |
90dd450c | 10983 | |
21d1c967 | 10984 | cat > conftest.$ac_ext <<EOF |
17234b26 | 10985 | #line 10986 "configure" |
ab9b9eab | 10986 | #include "confdefs.h" |
21d1c967 | 10987 | #include <features.h> |
698dcdb6 | 10988 | int main() { |
ab9b9eab | 10989 | |
21d1c967 GD |
10990 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) |
10991 | #error not glibc2.1 | |
10992 | #endif | |
10993 | ||
698dcdb6 VZ |
10994 | ; return 0; } |
10995 | EOF | |
17234b26 | 10996 | if { (eval echo configure:10997: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 10997 | rm -rf conftest* |
90dd450c | 10998 | |
21d1c967 GD |
10999 | wx_cv_lib_glibc21=yes |
11000 | ||
698dcdb6 VZ |
11001 | else |
11002 | echo "configure: failed program was:" >&5 | |
11003 | cat conftest.$ac_ext >&5 | |
11004 | rm -rf conftest* | |
90dd450c | 11005 | |
21d1c967 GD |
11006 | wx_cv_lib_glibc21=no |
11007 | ||
11008 | ||
698dcdb6 VZ |
11009 | fi |
11010 | rm -f conftest* | |
90dd450c | 11011 | |
698dcdb6 VZ |
11012 | fi |
11013 | ||
21d1c967 GD |
11014 | echo "$ac_t""$wx_cv_lib_glibc21" 1>&6 |
11015 | if test "$wx_cv_lib_glibc21" = "yes"; then | |
11016 | cat >> confdefs.h <<\EOF | |
11017 | #define wxHAVE_GLIBC2 1 | |
11018 | EOF | |
1e487827 | 11019 | |
90dd450c | 11020 | fi |
ab9b9eab VZ |
11021 | fi |
11022 | ||
ab9b9eab | 11023 | |
ab9b9eab | 11024 | |
21d1c967 GD |
11025 | REGEX_INCLUDE= |
11026 | if test "$wxUSE_REGEX" != "no"; then | |
11027 | cat >> confdefs.h <<\EOF | |
11028 | #define wxUSE_REGEX 1 | |
11029 | EOF | |
698dcdb6 | 11030 | |
ab9b9eab | 11031 | |
21d1c967 GD |
11032 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then |
11033 | ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'` | |
11034 | echo $ac_n "checking for regex.h""... $ac_c" 1>&6 | |
17234b26 | 11035 | echo "configure:11036: checking for regex.h" >&5 |
21d1c967 | 11036 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
698dcdb6 | 11037 | echo $ac_n "(cached) $ac_c" 1>&6 |
ab9b9eab | 11038 | else |
21d1c967 | 11039 | cat > conftest.$ac_ext <<EOF |
17234b26 | 11040 | #line 11041 "configure" |
21d1c967 GD |
11041 | #include "confdefs.h" |
11042 | #include <regex.h> | |
11043 | EOF | |
11044 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
17234b26 | 11045 | { (eval echo configure:11046: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
11046 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11047 | if test -z "$ac_err"; then | |
11048 | rm -rf conftest* | |
11049 | eval "ac_cv_header_$ac_safe=yes" | |
698dcdb6 | 11050 | else |
21d1c967 GD |
11051 | echo "$ac_err" >&5 |
11052 | echo "configure: failed program was:" >&5 | |
11053 | cat conftest.$ac_ext >&5 | |
11054 | rm -rf conftest* | |
11055 | eval "ac_cv_header_$ac_safe=no" | |
11056 | fi | |
11057 | rm -f conftest* | |
698dcdb6 | 11058 | fi |
21d1c967 GD |
11059 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11060 | echo "$ac_t""yes" 1>&6 | |
11061 | for ac_func in regcomp | |
11062 | do | |
11063 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
17234b26 | 11064 | echo "configure:11065: checking for $ac_func" >&5 |
21d1c967 GD |
11065 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11066 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11067 | else | |
11068 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 11069 | #line 11070 "configure" |
21d1c967 GD |
11070 | #include "confdefs.h" |
11071 | /* System header to define __stub macros and hopefully few prototypes, | |
11072 | which can conflict with char $ac_func(); below. */ | |
11073 | #include <assert.h> | |
11074 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11075 | /* We use char because int might match the return type of a gcc2 | |
11076 | builtin and then its argument prototype would still apply. */ | |
11077 | char $ac_func(); | |
698dcdb6 | 11078 | |
21d1c967 | 11079 | int main() { |
90dd450c | 11080 | |
21d1c967 GD |
11081 | /* The GNU C library defines this for functions which it implements |
11082 | to always fail with ENOSYS. Some functions are actually named | |
11083 | something starting with __ and the normal name is an alias. */ | |
11084 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11085 | choke me | |
11086 | #else | |
11087 | $ac_func(); | |
11088 | #endif | |
90dd450c | 11089 | |
21d1c967 GD |
11090 | ; return 0; } |
11091 | EOF | |
17234b26 | 11092 | if { (eval echo configure:11093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21d1c967 GD |
11093 | rm -rf conftest* |
11094 | eval "ac_cv_func_$ac_func=yes" | |
11095 | else | |
11096 | echo "configure: failed program was:" >&5 | |
11097 | cat conftest.$ac_ext >&5 | |
11098 | rm -rf conftest* | |
11099 | eval "ac_cv_func_$ac_func=no" | |
11100 | fi | |
11101 | rm -f conftest* | |
11102 | fi | |
90dd450c | 11103 | |
21d1c967 GD |
11104 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
11105 | echo "$ac_t""yes" 1>&6 | |
11106 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11107 | cat >> confdefs.h <<EOF | |
11108 | #define $ac_tr_func 1 | |
11109 | EOF | |
11110 | ||
90dd450c | 11111 | else |
21d1c967 | 11112 | echo "$ac_t""no" 1>&6 |
698dcdb6 | 11113 | fi |
21d1c967 GD |
11114 | done |
11115 | ||
698dcdb6 VZ |
11116 | else |
11117 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11118 | fi |
11119 | ||
90dd450c | 11120 | |
21d1c967 GD |
11121 | if test "x$ac_cv_func_regcomp" != "xyes"; then |
11122 | if test "$wxUSE_REGEX" = "sys" ; then | |
11123 | { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; } | |
11124 | else | |
11125 | echo "configure: warning: system regex library not found, will use built-in instead" 1>&2 | |
11126 | wxUSE_REGEX=builtin | |
11127 | fi | |
11128 | else | |
11129 | wxUSE_REGEX=sys | |
11130 | fi | |
ab9b9eab | 11131 | fi |
90dd450c | 11132 | |
21d1c967 GD |
11133 | if test "$wxUSE_REGEX" = "builtin" ; then |
11134 | REGEX_INCLUDE="-I\${top_srcdir}/src/regex" | |
90dd450c | 11135 | fi |
21d1c967 | 11136 | fi |
90dd450c | 11137 | |
90dd450c | 11138 | |
21d1c967 GD |
11139 | ZLIB_INCLUDE= |
11140 | ZLIB_LINK= | |
11141 | if test "$wxUSE_ZLIB" != "no" ; then | |
11142 | cat >> confdefs.h <<\EOF | |
11143 | #define wxUSE_ZLIB 1 | |
11144 | EOF | |
11145 | ||
11146 | ||
11147 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then | |
11148 | ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'` | |
11149 | echo $ac_n "checking for zlib.h""... $ac_c" 1>&6 | |
17234b26 | 11150 | echo "configure:11151: checking for zlib.h" >&5 |
21d1c967 GD |
11151 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11152 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11153 | else |
698dcdb6 | 11154 | cat > conftest.$ac_ext <<EOF |
17234b26 | 11155 | #line 11156 "configure" |
ab9b9eab | 11156 | #include "confdefs.h" |
21d1c967 | 11157 | #include <zlib.h> |
698dcdb6 | 11158 | EOF |
21d1c967 | 11159 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
17234b26 | 11160 | { (eval echo configure:11161: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
11161 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11162 | if test -z "$ac_err"; then | |
11163 | rm -rf conftest* | |
11164 | eval "ac_cv_header_$ac_safe=yes" | |
698dcdb6 | 11165 | else |
21d1c967 | 11166 | echo "$ac_err" >&5 |
698dcdb6 VZ |
11167 | echo "configure: failed program was:" >&5 |
11168 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
11169 | rm -rf conftest* |
11170 | eval "ac_cv_header_$ac_safe=no" | |
698dcdb6 | 11171 | fi |
21d1c967 | 11172 | rm -f conftest* |
ab9b9eab | 11173 | fi |
21d1c967 GD |
11174 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11175 | echo "$ac_t""yes" 1>&6 | |
11176 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6 | |
17234b26 | 11177 | echo "configure:11178: checking for deflate in -lz" >&5 |
21d1c967 GD |
11178 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'` |
11179 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11180 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11181 | else | |
11182 | ac_save_LIBS="$LIBS" | |
11183 | LIBS="-lz $LIBS" | |
11184 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 11185 | #line 11186 "configure" |
ab9b9eab | 11186 | #include "confdefs.h" |
21d1c967 GD |
11187 | /* Override any gcc2 internal prototype to avoid an error. */ |
11188 | /* We use char because int might match the return type of a gcc2 | |
11189 | builtin and then its argument prototype would still apply. */ | |
11190 | char deflate(); | |
ab9b9eab | 11191 | |
90dd450c | 11192 | int main() { |
21d1c967 | 11193 | deflate() |
698dcdb6 VZ |
11194 | ; return 0; } |
11195 | EOF | |
17234b26 | 11196 | if { (eval echo configure:11197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 11197 | rm -rf conftest* |
21d1c967 | 11198 | eval "ac_cv_lib_$ac_lib_var=yes" |
698dcdb6 VZ |
11199 | else |
11200 | echo "configure: failed program was:" >&5 | |
11201 | cat conftest.$ac_ext >&5 | |
11202 | rm -rf conftest* | |
21d1c967 | 11203 | eval "ac_cv_lib_$ac_lib_var=no" |
698dcdb6 VZ |
11204 | fi |
11205 | rm -f conftest* | |
21d1c967 | 11206 | LIBS="$ac_save_LIBS" |
ab9b9eab | 11207 | |
21d1c967 GD |
11208 | fi |
11209 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11210 | echo "$ac_t""yes" 1>&6 | |
11211 | ZLIB_LINK=" -lz" | |
ab9b9eab | 11212 | else |
21d1c967 | 11213 | echo "$ac_t""no" 1>&6 |
90dd450c | 11214 | fi |
698dcdb6 | 11215 | |
698dcdb6 | 11216 | else |
21d1c967 | 11217 | echo "$ac_t""no" 1>&6 |
698dcdb6 | 11218 | fi |
698dcdb6 | 11219 | |
21d1c967 GD |
11220 | |
11221 | if test "x$ZLIB_LINK" = "x" ; then | |
11222 | if test "$wxUSE_ZLIB" = "sys" ; then | |
11223 | { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; } | |
11224 | else | |
11225 | echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2 | |
11226 | wxUSE_ZLIB=builtin | |
11227 | fi | |
11228 | else | |
11229 | wxUSE_ZLIB=sys | |
11230 | fi | |
11231 | fi | |
11232 | ||
11233 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
11234 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
11235 | fi | |
ab9b9eab VZ |
11236 | fi |
11237 | ||
ab9b9eab | 11238 | |
21d1c967 GD |
11239 | PNG_INCLUDE= |
11240 | PNG_LINK= | |
11241 | if test "$wxUSE_LIBPNG" != "no" ; then | |
11242 | cat >> confdefs.h <<\EOF | |
11243 | #define wxUSE_LIBPNG 1 | |
11244 | EOF | |
90dd450c | 11245 | |
21d1c967 GD |
11246 | |
11247 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then | |
11248 | echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2 | |
11249 | wxUSE_LIBPNG=sys | |
11250 | fi | |
90dd450c | 11251 | |
21d1c967 GD |
11252 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then |
11253 | echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2 | |
11254 | wxUSE_LIBPNG=builtin | |
11255 | fi | |
11256 | ||
11257 | if test "$wxUSE_MGL" != 1 ; then | |
11258 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
11259 | ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` | |
11260 | echo $ac_n "checking for png.h""... $ac_c" 1>&6 | |
17234b26 | 11261 | echo "configure:11262: checking for png.h" >&5 |
21d1c967 | 11262 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
90dd450c VZ |
11263 | echo $ac_n "(cached) $ac_c" 1>&6 |
11264 | else | |
21d1c967 | 11265 | cat > conftest.$ac_ext <<EOF |
17234b26 | 11266 | #line 11267 "configure" |
21d1c967 GD |
11267 | #include "confdefs.h" |
11268 | #include <png.h> | |
11269 | EOF | |
11270 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
17234b26 | 11271 | { (eval echo configure:11272: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
11272 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11273 | if test -z "$ac_err"; then | |
11274 | rm -rf conftest* | |
11275 | eval "ac_cv_header_$ac_safe=yes" | |
90dd450c | 11276 | else |
21d1c967 | 11277 | echo "$ac_err" >&5 |
90dd450c VZ |
11278 | echo "configure: failed program was:" >&5 |
11279 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
11280 | rm -rf conftest* |
11281 | eval "ac_cv_header_$ac_safe=no" | |
90dd450c | 11282 | fi |
21d1c967 | 11283 | rm -f conftest* |
90dd450c | 11284 | fi |
21d1c967 GD |
11285 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11286 | echo "$ac_t""yes" 1>&6 | |
11287 | echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6 | |
17234b26 | 11288 | echo "configure:11289: checking for png_check_sig in -lpng" >&5 |
21d1c967 GD |
11289 | ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'` |
11290 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11291 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11292 | else | |
11293 | ac_save_LIBS="$LIBS" | |
11294 | LIBS="-lpng -lz -lm $LIBS" | |
11295 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 11296 | #line 11297 "configure" |
90dd450c | 11297 | #include "confdefs.h" |
21d1c967 GD |
11298 | /* Override any gcc2 internal prototype to avoid an error. */ |
11299 | /* We use char because int might match the return type of a gcc2 | |
11300 | builtin and then its argument prototype would still apply. */ | |
11301 | char png_check_sig(); | |
90dd450c VZ |
11302 | |
11303 | int main() { | |
21d1c967 | 11304 | png_check_sig() |
90dd450c VZ |
11305 | ; return 0; } |
11306 | EOF | |
17234b26 | 11307 | if { (eval echo configure:11308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c | 11308 | rm -rf conftest* |
21d1c967 | 11309 | eval "ac_cv_lib_$ac_lib_var=yes" |
90dd450c VZ |
11310 | else |
11311 | echo "configure: failed program was:" >&5 | |
11312 | cat conftest.$ac_ext >&5 | |
11313 | rm -rf conftest* | |
21d1c967 | 11314 | eval "ac_cv_lib_$ac_lib_var=no" |
90dd450c VZ |
11315 | fi |
11316 | rm -f conftest* | |
21d1c967 | 11317 | LIBS="$ac_save_LIBS" |
90dd450c | 11318 | |
90dd450c | 11319 | fi |
21d1c967 GD |
11320 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
11321 | echo "$ac_t""yes" 1>&6 | |
11322 | PNG_LINK=" -lpng" | |
90dd450c | 11323 | else |
21d1c967 | 11324 | echo "$ac_t""no" 1>&6 |
90dd450c VZ |
11325 | fi |
11326 | ||
21d1c967 | 11327 | |
90dd450c | 11328 | else |
21d1c967 | 11329 | echo "$ac_t""no" 1>&6 |
90dd450c VZ |
11330 | fi |
11331 | ||
11332 | ||
21d1c967 GD |
11333 | if test "x$PNG_LINK" = "x" ; then |
11334 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
11335 | { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; } | |
11336 | else | |
11337 | echo "configure: warning: system png library not found, will use built-in instead" 1>&2 | |
11338 | wxUSE_LIBPNG=builtin | |
11339 | fi | |
11340 | else | |
11341 | wxUSE_LIBPNG=yes | |
11342 | fi | |
11343 | fi | |
11344 | fi | |
90dd450c | 11345 | |
21d1c967 GD |
11346 | if test "$wxUSE_LIBPNG" = "builtin" ; then |
11347 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
11348 | fi | |
90dd450c | 11349 | |
21d1c967 | 11350 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
90dd450c VZ |
11351 | fi |
11352 | ||
90dd450c | 11353 | |
21d1c967 GD |
11354 | JPEG_INCLUDE= |
11355 | JPEG_LINK= | |
11356 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
11357 | cat >> confdefs.h <<\EOF | |
11358 | #define wxUSE_LIBJPEG 1 | |
11359 | EOF | |
90dd450c | 11360 | |
90dd450c | 11361 | |
21d1c967 GD |
11362 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then |
11363 | echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2 | |
11364 | wxUSE_LIBJPEG=sys | |
11365 | fi | |
90dd450c | 11366 | |
21d1c967 GD |
11367 | if test "$wxUSE_MGL" != 1 ; then |
11368 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
11369 | echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 | |
17234b26 | 11370 | echo "configure:11371: checking for jpeglib.h" >&5 |
21d1c967 GD |
11371 | if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then |
11372 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11373 | else | |
11374 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 11375 | #line 11376 "configure" |
21d1c967 | 11376 | #include "confdefs.h" |
90dd450c | 11377 | |
21d1c967 GD |
11378 | #undef HAVE_STDLIB_H |
11379 | #include <stdio.h> | |
11380 | #include <jpeglib.h> | |
11381 | ||
11382 | int main() { | |
90dd450c | 11383 | |
21d1c967 GD |
11384 | |
11385 | ; return 0; } | |
90dd450c | 11386 | EOF |
17234b26 | 11387 | if { (eval echo configure:11388: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
21d1c967 GD |
11388 | rm -rf conftest* |
11389 | ac_cv_header_jpeglib_h=yes | |
90dd450c VZ |
11390 | else |
11391 | echo "configure: failed program was:" >&5 | |
11392 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
11393 | rm -rf conftest* |
11394 | ac_cv_header_jpeglib_h=no | |
11395 | ||
90dd450c | 11396 | fi |
21d1c967 GD |
11397 | rm -f conftest* |
11398 | ||
90dd450c VZ |
11399 | fi |
11400 | ||
21d1c967 | 11401 | echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6 |
90dd450c | 11402 | |
21d1c967 GD |
11403 | if test "$ac_cv_header_jpeglib_h" = "yes"; then |
11404 | echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6 | |
17234b26 | 11405 | echo "configure:11406: checking for jpeg_read_header in -ljpeg" >&5 |
21d1c967 GD |
11406 | ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'` |
11407 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11408 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11409 | else | |
11410 | ac_save_LIBS="$LIBS" | |
11411 | LIBS="-ljpeg $LIBS" | |
11412 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 11413 | #line 11414 "configure" |
21d1c967 GD |
11414 | #include "confdefs.h" |
11415 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11416 | /* We use char because int might match the return type of a gcc2 | |
11417 | builtin and then its argument prototype would still apply. */ | |
11418 | char jpeg_read_header(); | |
90dd450c VZ |
11419 | |
11420 | int main() { | |
21d1c967 | 11421 | jpeg_read_header() |
90dd450c VZ |
11422 | ; return 0; } |
11423 | EOF | |
17234b26 | 11424 | if { (eval echo configure:11425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c | 11425 | rm -rf conftest* |
21d1c967 | 11426 | eval "ac_cv_lib_$ac_lib_var=yes" |
90dd450c VZ |
11427 | else |
11428 | echo "configure: failed program was:" >&5 | |
11429 | cat conftest.$ac_ext >&5 | |
11430 | rm -rf conftest* | |
21d1c967 | 11431 | eval "ac_cv_lib_$ac_lib_var=no" |
90dd450c VZ |
11432 | fi |
11433 | rm -f conftest* | |
21d1c967 | 11434 | LIBS="$ac_save_LIBS" |
90dd450c | 11435 | |
21d1c967 GD |
11436 | fi |
11437 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11438 | echo "$ac_t""yes" 1>&6 | |
11439 | JPEG_LINK=" -ljpeg" | |
11440 | else | |
11441 | echo "$ac_t""no" 1>&6 | |
90dd450c VZ |
11442 | fi |
11443 | ||
21d1c967 | 11444 | fi |
90dd450c | 11445 | |
21d1c967 GD |
11446 | if test "x$JPEG_LINK" = "x" ; then |
11447 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
11448 | { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; } | |
11449 | else | |
11450 | echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2 | |
11451 | wxUSE_LIBJPEG=builtin | |
11452 | fi | |
11453 | else | |
11454 | wxUSE_LIBJPEG=sys | |
11455 | fi | |
11456 | fi | |
11457 | fi | |
90dd450c | 11458 | |
21d1c967 GD |
11459 | if test "$wxUSE_LIBJPEG" = "builtin" ; then |
11460 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
11461 | fi | |
11462 | fi | |
90dd450c | 11463 | |
90dd450c | 11464 | |
21d1c967 GD |
11465 | TIFF_INCLUDE= |
11466 | TIFF_LINK= | |
11467 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
11468 | cat >> confdefs.h <<\EOF | |
11469 | #define wxUSE_LIBTIFF 1 | |
11470 | EOF | |
11471 | ||
11472 | ||
11473 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then | |
11474 | ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` | |
11475 | echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | |
17234b26 | 11476 | echo "configure:11477: checking for tiffio.h" >&5 |
21d1c967 GD |
11477 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11478 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11479 | else | |
11480 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 11481 | #line 11482 "configure" |
21d1c967 GD |
11482 | #include "confdefs.h" |
11483 | #include <tiffio.h> | |
11484 | EOF | |
11485 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
17234b26 | 11486 | { (eval echo configure:11487: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
11487 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11488 | if test -z "$ac_err"; then | |
11489 | rm -rf conftest* | |
11490 | eval "ac_cv_header_$ac_safe=yes" | |
11491 | else | |
11492 | echo "$ac_err" >&5 | |
11493 | echo "configure: failed program was:" >&5 | |
11494 | cat conftest.$ac_ext >&5 | |
11495 | rm -rf conftest* | |
11496 | eval "ac_cv_header_$ac_safe=no" | |
11497 | fi | |
11498 | rm -f conftest* | |
11499 | fi | |
11500 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11501 | echo "$ac_t""yes" 1>&6 | |
11502 | echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6 | |
17234b26 | 11503 | echo "configure:11504: checking for TIFFError in -ltiff" >&5 |
21d1c967 | 11504 | ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
11505 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
11506 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11507 | else | |
11508 | ac_save_LIBS="$LIBS" | |
21d1c967 | 11509 | LIBS="-ltiff -lm $LIBS" |
698dcdb6 | 11510 | cat > conftest.$ac_ext <<EOF |
17234b26 | 11511 | #line 11512 "configure" |
ab9b9eab VZ |
11512 | #include "confdefs.h" |
11513 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11514 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 11515 | builtin and then its argument prototype would still apply. */ |
21d1c967 | 11516 | char TIFFError(); |
698dcdb6 VZ |
11517 | |
11518 | int main() { | |
21d1c967 | 11519 | TIFFError() |
698dcdb6 VZ |
11520 | ; return 0; } |
11521 | EOF | |
17234b26 | 11522 | if { (eval echo configure:11523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11523 | rm -rf conftest* |
11524 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11525 | else | |
11526 | echo "configure: failed program was:" >&5 | |
11527 | cat conftest.$ac_ext >&5 | |
11528 | rm -rf conftest* | |
11529 | eval "ac_cv_lib_$ac_lib_var=no" | |
11530 | fi | |
11531 | rm -f conftest* | |
11532 | LIBS="$ac_save_LIBS" | |
11533 | ||
11534 | fi | |
11535 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11536 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 11537 | TIFF_LINK=" -ltiff" |
698dcdb6 VZ |
11538 | else |
11539 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11540 | fi |
11541 | ||
21d1c967 GD |
11542 | |
11543 | else | |
11544 | echo "$ac_t""no" 1>&6 | |
11545 | fi | |
cd6d6d5b | 11546 | |
c79a329d | 11547 | |
21d1c967 GD |
11548 | if test "x$TIFF_LINK" = "x" ; then |
11549 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
11550 | { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; } | |
90dd450c | 11551 | else |
21d1c967 GD |
11552 | echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2 |
11553 | wxUSE_LIBTIFF=builtin | |
d8356fa3 | 11554 | fi |
d8356fa3 | 11555 | else |
21d1c967 | 11556 | wxUSE_LIBTIFF=sys |
d8356fa3 | 11557 | fi |
21d1c967 | 11558 | fi |
d8356fa3 | 11559 | |
21d1c967 GD |
11560 | if test "$wxUSE_LIBTIFF" = "builtin" ; then |
11561 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" | |
1e6feb95 | 11562 | fi |
21d1c967 | 11563 | fi |
10f2d63a | 11564 | |
90dd450c | 11565 | |
21d1c967 | 11566 | AFMINSTALL= |
90dd450c | 11567 | |
21d1c967 GD |
11568 | TOOLKIT= |
11569 | TOOLKIT_INCLUDE= | |
11570 | WIDGET_SET= | |
11571 | ||
11572 | if test "$USE_WIN32" = 1 ; then | |
11573 | for ac_hdr in w32api.h | |
11574 | do | |
11575 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
11576 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
17234b26 | 11577 | echo "configure:11578: checking for $ac_hdr" >&5 |
21d1c967 | 11578 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
f79bd02d JS |
11579 | echo $ac_n "(cached) $ac_c" 1>&6 |
11580 | else | |
21d1c967 | 11581 | cat > conftest.$ac_ext <<EOF |
17234b26 | 11582 | #line 11583 "configure" |
f79bd02d | 11583 | #include "confdefs.h" |
21d1c967 | 11584 | #include <$ac_hdr> |
f79bd02d JS |
11585 | EOF |
11586 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
17234b26 | 11587 | { (eval echo configure:11588: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
f79bd02d JS |
11588 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11589 | if test -z "$ac_err"; then | |
11590 | rm -rf conftest* | |
21d1c967 | 11591 | eval "ac_cv_header_$ac_safe=yes" |
f79bd02d JS |
11592 | else |
11593 | echo "$ac_err" >&5 | |
11594 | echo "configure: failed program was:" >&5 | |
11595 | cat conftest.$ac_ext >&5 | |
11596 | rm -rf conftest* | |
21d1c967 | 11597 | eval "ac_cv_header_$ac_safe=no" |
f79bd02d JS |
11598 | fi |
11599 | rm -f conftest* | |
21d1c967 GD |
11600 | fi |
11601 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11602 | echo "$ac_t""yes" 1>&6 | |
11603 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11604 | cat >> confdefs.h <<EOF | |
11605 | #define $ac_tr_hdr 1 | |
11606 | EOF | |
11607 | ||
11608 | else | |
11609 | echo "$ac_t""no" 1>&6 | |
11610 | fi | |
11611 | done | |
f79bd02d | 11612 | |
21d1c967 GD |
11613 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` |
11614 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
17234b26 | 11615 | echo "configure:11616: checking for windows.h" >&5 |
21d1c967 GD |
11616 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11617 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11618 | else | |
11619 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 11620 | #line 11621 "configure" |
90dd450c | 11621 | #include "confdefs.h" |
21d1c967 | 11622 | #include <windows.h> |
f79bd02d | 11623 | EOF |
21d1c967 | 11624 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
17234b26 | 11625 | { (eval echo configure:11626: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
11626 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11627 | if test -z "$ac_err"; then | |
90dd450c | 11628 | rm -rf conftest* |
21d1c967 | 11629 | eval "ac_cv_header_$ac_safe=yes" |
90dd450c | 11630 | else |
21d1c967 | 11631 | echo "$ac_err" >&5 |
90dd450c VZ |
11632 | echo "configure: failed program was:" >&5 |
11633 | cat conftest.$ac_ext >&5 | |
11634 | rm -rf conftest* | |
21d1c967 | 11635 | eval "ac_cv_header_$ac_safe=no" |
90dd450c VZ |
11636 | fi |
11637 | rm -f conftest* | |
90dd450c | 11638 | fi |
21d1c967 GD |
11639 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11640 | echo "$ac_t""yes" 1>&6 | |
11641 | : | |
90dd450c | 11642 | else |
21d1c967 GD |
11643 | echo "$ac_t""no" 1>&6 |
11644 | ||
11645 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
11646 | ||
90dd450c | 11647 | fi |
f79bd02d | 11648 | |
f79bd02d | 11649 | |
21d1c967 | 11650 | echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6 |
17234b26 | 11651 | echo "configure:11652: checking if w32api has good enough MSIE support" >&5 |
21d1c967 GD |
11652 | if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then |
11653 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f79bd02d | 11654 | else |
21d1c967 | 11655 | |
f79bd02d | 11656 | cat > conftest.$ac_ext <<EOF |
17234b26 | 11657 | #line 11658 "configure" |
f79bd02d | 11658 | #include "confdefs.h" |
21d1c967 | 11659 | #include <w32api.h> |
f79bd02d JS |
11660 | int main() { |
11661 | ||
21d1c967 GD |
11662 | #define wxCHECK_W32API_VERSION( major, minor ) \ |
11663 | ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \ | |
11664 | && ( ( __W32API_MAJOR_VERSION > (major) ) \ | |
11665 | || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor)))) | |
11666 | ||
11667 | #if !wxCHECK_W32API_VERSION(1,1) | |
11668 | #error You need w32api 1.1 or newer | |
11669 | #endif | |
11670 | ||
f79bd02d JS |
11671 | ; return 0; } |
11672 | EOF | |
17234b26 | 11673 | if { (eval echo configure:11674: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
f79bd02d | 11674 | rm -rf conftest* |
21d1c967 GD |
11675 | |
11676 | wx_cv_w32api_win32_ie=yes | |
11677 | ||
f79bd02d JS |
11678 | else |
11679 | echo "configure: failed program was:" >&5 | |
11680 | cat conftest.$ac_ext >&5 | |
11681 | rm -rf conftest* | |
21d1c967 GD |
11682 | |
11683 | wx_cv_w32api_win32_ie=no | |
11684 | ||
f79bd02d JS |
11685 | fi |
11686 | rm -f conftest* | |
21d1c967 GD |
11687 | |
11688 | fi | |
f79bd02d | 11689 | |
21d1c967 GD |
11690 | echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6 |
11691 | if test "$wx_cv_w32api_win32_ie" = "yes" ; then | |
11692 | CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400" | |
11693 | fi | |
f79bd02d | 11694 | |
21d1c967 GD |
11695 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32" |
11696 | ||
11697 | case "${host}" in | |
11698 | *-*-cygwin* ) | |
11699 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32" | |
11700 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
f79bd02d | 11701 | esac |
f79bd02d | 11702 | |
21d1c967 GD |
11703 | if test "$wxUSE_ODBC" = "yes" ; then |
11704 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
11705 | fi | |
f79bd02d | 11706 | |
21d1c967 GD |
11707 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
11708 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
f79bd02d | 11709 | fi |
f79bd02d | 11710 | |
21d1c967 GD |
11711 | if test "$wxUSE_GUI" = "yes"; then |
11712 | USE_GUI=1 | |
f79bd02d | 11713 | |
21d1c967 | 11714 | GUI_TK_LIBRARY= |
f79bd02d | 11715 | |
21d1c967 GD |
11716 | WXGTK12= |
11717 | WXGTK127= | |
11718 | WXGTK20= | |
f79bd02d | 11719 | |
21d1c967 GD |
11720 | if test "$wxUSE_MSW" = 1 ; then |
11721 | TOOLKIT=MSW | |
11722 | GUIDIST=MSW_DIST | |
f79bd02d | 11723 | |
21d1c967 GD |
11724 | case "${host}" in |
11725 | *-*-mingw32* ) | |
11726 | LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows" | |
11727 | esac | |
f79bd02d JS |
11728 | fi |
11729 | ||
21d1c967 GD |
11730 | if test "$wxUSE_GTK" = 1; then |
11731 | echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6 | |
17234b26 | 11732 | echo "configure:11733: checking for GTK+ version" >&5 |
21d1c967 GD |
11733 | |
11734 | gtk_version_cached=1 | |
11735 | if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then | |
f79bd02d JS |
11736 | echo $ac_n "(cached) $ac_c" 1>&6 |
11737 | else | |
21d1c967 GD |
11738 | |
11739 | gtk_version_cached=0 | |
11740 | echo "$ac_t""" 1>&6 | |
f79bd02d | 11741 | |
21d1c967 GD |
11742 | GTK_MODULES= |
11743 | if test "$wxUSE_THREADS" = "yes"; then | |
11744 | GTK_MODULES=gthread | |
11745 | fi | |
f79bd02d | 11746 | |
21d1c967 GD |
11747 | wx_cv_lib_gtk= |
11748 | if test "x$wxUSE_GTK2" = "xyes"; then | |
11749 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
11750 | if test "${enable_gtktest+set}" = set; then | |
11751 | enableval="$enable_gtktest" | |
f79bd02d JS |
11752 | : |
11753 | else | |
21d1c967 | 11754 | enable_gtktest=yes |
f79bd02d JS |
11755 | fi |
11756 | ||
f79bd02d | 11757 | |
21d1c967 GD |
11758 | pkg_config_args=gtk+-2.0 |
11759 | for module in . $GTK_MODULES | |
11760 | do | |
11761 | case "$module" in | |
11762 | gthread) | |
11763 | pkg_config_args="$pkg_config_args gthread-2.0" | |
11764 | ;; | |
11765 | esac | |
11766 | done | |
11767 | ||
11768 | no_gtk="" | |
f79bd02d | 11769 | |
21d1c967 GD |
11770 | # Extract the first word of "pkg-config", so it can be a program name with args. |
11771 | set dummy pkg-config; ac_word=$2 | |
11772 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
17234b26 | 11773 | echo "configure:11774: checking for $ac_word" >&5 |
21d1c967 GD |
11774 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
11775 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11776 | else | |
11777 | case "$PKG_CONFIG" in | |
11778 | /*) | |
11779 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
11780 | ;; | |
11781 | ?:/*) | |
11782 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
11783 | ;; | |
11784 | *) | |
11785 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
11786 | ac_dummy="$PATH" | |
11787 | for ac_dir in $ac_dummy; do | |
11788 | test -z "$ac_dir" && ac_dir=. | |
11789 | if test -f $ac_dir/$ac_word; then | |
11790 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
11791 | break | |
11792 | fi | |
11793 | done | |
11794 | IFS="$ac_save_ifs" | |
11795 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
11796 | ;; | |
11797 | esac | |
f79bd02d | 11798 | fi |
21d1c967 GD |
11799 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
11800 | if test -n "$PKG_CONFIG"; then | |
11801 | echo "$ac_t""$PKG_CONFIG" 1>&6 | |
f79bd02d JS |
11802 | else |
11803 | echo "$ac_t""no" 1>&6 | |
11804 | fi | |
11805 | ||
f79bd02d | 11806 | |
21d1c967 GD |
11807 | if test x$PKG_CONFIG != xno ; then |
11808 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
11809 | : | |
11810 | else | |
11811 | echo *** pkg-config too old; version 0.7 or better required. | |
11812 | no_gtk=yes | |
11813 | PKG_CONFIG=no | |
11814 | fi | |
11815 | else | |
11816 | no_gtk=yes | |
11817 | fi | |
f79bd02d | 11818 | |
21d1c967 GD |
11819 | min_gtk_version=2.0.0 |
11820 | echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6 | |
17234b26 | 11821 | echo "configure:11822: checking for GTK+ - version >= $min_gtk_version" >&5 |
f79bd02d | 11822 | |
21d1c967 GD |
11823 | if test x$PKG_CONFIG != xno ; then |
11824 | ## don't try to run the test against uninstalled libtool libs | |
11825 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
11826 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
11827 | enable_gtktest=no | |
11828 | fi | |
f79bd02d | 11829 | |
21d1c967 GD |
11830 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then |
11831 | : | |
11832 | else | |
11833 | no_gtk=yes | |
11834 | fi | |
11835 | fi | |
f79bd02d | 11836 | |
21d1c967 GD |
11837 | if test x"$no_gtk" = x ; then |
11838 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
11839 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
11840 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
11841 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
11842 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
11843 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
11844 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
11845 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
11846 | if test "x$enable_gtktest" = "xyes" ; then | |
11847 | ac_save_CFLAGS="$CFLAGS" | |
11848 | ac_save_LIBS="$LIBS" | |
11849 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
11850 | LIBS="$GTK_LIBS $LIBS" | |
11851 | rm -f conf.gtktest | |
11852 | if test "$cross_compiling" = yes; then | |
11853 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 11854 | else |
21d1c967 | 11855 | cat > conftest.$ac_ext <<EOF |
17234b26 | 11856 | #line 11857 "configure" |
f79bd02d | 11857 | #include "confdefs.h" |
f79bd02d | 11858 | |
21d1c967 GD |
11859 | #include <gtk/gtk.h> |
11860 | #include <stdio.h> | |
11861 | #include <stdlib.h> | |
f79bd02d | 11862 | |
21d1c967 GD |
11863 | int |
11864 | main () | |
11865 | { | |
11866 | int major, minor, micro; | |
11867 | char *tmp_version; | |
f79bd02d | 11868 | |
21d1c967 | 11869 | system ("touch conf.gtktest"); |
f79bd02d | 11870 | |
21d1c967 GD |
11871 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
11872 | tmp_version = g_strdup("$min_gtk_version"); | |
11873 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
11874 | printf("%s, bad version string\n", "$min_gtk_version"); | |
11875 | exit(1); | |
11876 | } | |
f79bd02d | 11877 | |
21d1c967 GD |
11878 | if ((gtk_major_version != $gtk_config_major_version) || |
11879 | (gtk_minor_version != $gtk_config_minor_version) || | |
11880 | (gtk_micro_version != $gtk_config_micro_version)) | |
11881 | { | |
11882 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
11883 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
11884 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
11885 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
11886 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
11887 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
11888 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
11889 | printf("*** required on your system.\n"); | |
11890 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
11891 | printf("*** to point to the correct configuration files\n"); | |
11892 | } | |
11893 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
11894 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
11895 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
11896 | { | |
11897 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
11898 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
11899 | printf("*** library (version %d.%d.%d)\n", | |
11900 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
11901 | } | |
11902 | else | |
11903 | { | |
11904 | if ((gtk_major_version > major) || | |
11905 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
11906 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
11907 | { | |
11908 | return 0; | |
11909 | } | |
11910 | else | |
11911 | { | |
11912 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
11913 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
11914 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
11915 | major, minor, micro); | |
11916 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
11917 | printf("***\n"); | |
11918 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
11919 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
11920 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
11921 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
11922 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
11923 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
11924 | printf("*** so that the correct libraries are found at run-time))\n"); | |
11925 | } | |
11926 | } | |
11927 | return 1; | |
11928 | } | |
f79bd02d | 11929 | |
f79bd02d | 11930 | EOF |
17234b26 | 11931 | if { (eval echo configure:11932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
21d1c967 GD |
11932 | then |
11933 | : | |
f79bd02d JS |
11934 | else |
11935 | echo "configure: failed program was:" >&5 | |
11936 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
11937 | rm -fr conftest* |
11938 | no_gtk=yes | |
f79bd02d | 11939 | fi |
21d1c967 | 11940 | rm -fr conftest* |
f79bd02d JS |
11941 | fi |
11942 | ||
21d1c967 GD |
11943 | CFLAGS="$ac_save_CFLAGS" |
11944 | LIBS="$ac_save_LIBS" | |
11945 | fi | |
11946 | fi | |
11947 | if test "x$no_gtk" = x ; then | |
11948 | echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6 | |
11949 | wx_cv_lib_gtk=2.0 | |
11950 | else | |
11951 | echo "$ac_t""no" 1>&6 | |
11952 | if test "$PKG_CONFIG" = "no" ; then | |
11953 | echo "*** A new enough version of pkg-config was not found." | |
11954 | echo "*** See http://pkgconfig.sourceforge.net" | |
11955 | else | |
11956 | if test -f conf.gtktest ; then | |
11957 | : | |
11958 | else | |
11959 | echo "*** Could not run GTK+ test program, checking why..." | |
11960 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
11961 | LIBS="$LIBS $GTK_LIBS" | |
11962 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 11963 | #line 11964 "configure" |
f79bd02d | 11964 | #include "confdefs.h" |
21d1c967 GD |
11965 | |
11966 | #include <gtk/gtk.h> | |
11967 | #include <stdio.h> | |
f79bd02d JS |
11968 | |
11969 | int main() { | |
21d1c967 | 11970 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); |
f79bd02d JS |
11971 | ; return 0; } |
11972 | EOF | |
17234b26 | 11973 | if { (eval echo configure:11974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d | 11974 | rm -rf conftest* |
21d1c967 GD |
11975 | echo "*** The test program compiled, but did not run. This usually means" |
11976 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
11977 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
11978 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
11979 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
11980 | echo "*** is required on your system" | |
11981 | echo "***" | |
11982 | echo "*** If you have an old version installed, it is best to remove it, although" | |
11983 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
f79bd02d JS |
11984 | else |
11985 | echo "configure: failed program was:" >&5 | |
11986 | cat conftest.$ac_ext >&5 | |
11987 | rm -rf conftest* | |
21d1c967 GD |
11988 | echo "*** The test program failed to compile or link. See the file config.log for the" |
11989 | echo "*** exact error that occured. This usually means GTK+ was incorrectly installed" | |
11990 | echo "*** or that you have moved GTK+ since it was installed. In the latter case, you" | |
11991 | echo "*** may want to edit the pkg-config script: $PKG_CONFIG" | |
f79bd02d JS |
11992 | fi |
11993 | rm -f conftest* | |
21d1c967 GD |
11994 | CFLAGS="$ac_save_CFLAGS" |
11995 | LIBS="$ac_save_LIBS" | |
11996 | fi | |
11997 | fi | |
11998 | GTK_CFLAGS="" | |
11999 | GTK_LIBS="" | |
12000 | : | |
12001 | fi | |
12002 | ||
12003 | ||
12004 | rm -f conf.gtktest | |
f79bd02d | 12005 | |
21d1c967 | 12006 | fi |
f79bd02d | 12007 | |
21d1c967 GD |
12008 | if test -z "$wx_cv_lib_gtk"; then |
12009 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
12010 | if test "${with_gtk_prefix+set}" = set; then | |
12011 | withval="$with_gtk_prefix" | |
12012 | gtk_config_prefix="$withval" | |
12013 | else | |
12014 | gtk_config_prefix="" | |
12015 | fi | |
f79bd02d | 12016 | |
21d1c967 GD |
12017 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
12018 | if test "${with_gtk_exec_prefix+set}" = set; then | |
12019 | withval="$with_gtk_exec_prefix" | |
12020 | gtk_config_exec_prefix="$withval" | |
12021 | else | |
12022 | gtk_config_exec_prefix="" | |
12023 | fi | |
12024 | ||
12025 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
12026 | if test "${enable_gtktest+set}" = set; then | |
12027 | enableval="$enable_gtktest" | |
12028 | : | |
12029 | else | |
12030 | enable_gtktest=yes | |
12031 | fi | |
12032 | ||
12033 | ||
12034 | for module in . $GTK_MODULES | |
12035 | do | |
12036 | case "$module" in | |
12037 | gthread) | |
12038 | gtk_config_args="$gtk_config_args gthread" | |
12039 | ;; | |
12040 | esac | |
12041 | done | |
12042 | ||
12043 | if test x$gtk_config_exec_prefix != x ; then | |
12044 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
12045 | if test x${GTK_CONFIG+set} != xset ; then | |
12046 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
12047 | fi | |
12048 | fi | |
12049 | if test x$gtk_config_prefix != x ; then | |
12050 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
12051 | if test x${GTK_CONFIG+set} != xset ; then | |
12052 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
12053 | fi | |
12054 | fi | |
12055 | ||
12056 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
12057 | set dummy gtk-config; ac_word=$2 | |
12058 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
17234b26 | 12059 | echo "configure:12060: checking for $ac_word" >&5 |
21d1c967 | 12060 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
f79bd02d | 12061 | echo $ac_n "(cached) $ac_c" 1>&6 |
21d1c967 GD |
12062 | else |
12063 | case "$GTK_CONFIG" in | |
12064 | /*) | |
12065 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
12066 | ;; | |
12067 | ?:/*) | |
12068 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
12069 | ;; | |
12070 | *) | |
12071 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
12072 | ac_dummy="$PATH" | |
12073 | for ac_dir in $ac_dummy; do | |
12074 | test -z "$ac_dir" && ac_dir=. | |
12075 | if test -f $ac_dir/$ac_word; then | |
12076 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
12077 | break | |
12078 | fi | |
12079 | done | |
12080 | IFS="$ac_save_ifs" | |
12081 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
12082 | ;; | |
12083 | esac | |
12084 | fi | |
12085 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" | |
12086 | if test -n "$GTK_CONFIG"; then | |
12087 | echo "$ac_t""$GTK_CONFIG" 1>&6 | |
12088 | else | |
12089 | echo "$ac_t""no" 1>&6 | |
12090 | fi | |
12091 | ||
12092 | min_gtk_version=1.2.7 | |
12093 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 | |
17234b26 | 12094 | echo "configure:12095: checking for GTK - version >= $min_gtk_version" >&5 |
21d1c967 GD |
12095 | no_gtk="" |
12096 | if test "$GTK_CONFIG" = "no" ; then | |
12097 | no_gtk=yes | |
12098 | else | |
12099 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
12100 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
12101 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12102 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
12103 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12104 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
12105 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12106 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
12107 | if test "x$enable_gtktest" = "xyes" ; then | |
12108 | ac_save_CFLAGS="$CFLAGS" | |
12109 | ac_save_LIBS="$LIBS" | |
12110 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12111 | LIBS="$GTK_LIBS $LIBS" | |
12112 | rm -f conf.gtktest | |
12113 | if test "$cross_compiling" = yes; then | |
12114 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 12115 | else |
90dd450c | 12116 | cat > conftest.$ac_ext <<EOF |
17234b26 | 12117 | #line 12118 "configure" |
f79bd02d JS |
12118 | #include "confdefs.h" |
12119 | ||
21d1c967 GD |
12120 | #include <gtk/gtk.h> |
12121 | #include <stdio.h> | |
12122 | #include <stdlib.h> | |
f79bd02d | 12123 | |
21d1c967 GD |
12124 | int |
12125 | main () | |
12126 | { | |
12127 | int major, minor, micro; | |
12128 | char *tmp_version; | |
12129 | ||
12130 | system ("touch conf.gtktest"); | |
12131 | ||
12132 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
12133 | tmp_version = g_strdup("$min_gtk_version"); | |
12134 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
12135 | printf("%s, bad version string\n", "$min_gtk_version"); | |
12136 | exit(1); | |
12137 | } | |
90dd450c | 12138 | |
21d1c967 GD |
12139 | if ((gtk_major_version != $gtk_config_major_version) || |
12140 | (gtk_minor_version != $gtk_config_minor_version) || | |
12141 | (gtk_micro_version != $gtk_config_micro_version)) | |
12142 | { | |
12143 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
12144 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
12145 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12146 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
12147 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
12148 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
12149 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
12150 | printf("*** required on your system.\n"); | |
12151 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
12152 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
12153 | printf("*** before re-running configure\n"); | |
12154 | } | |
12155 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
12156 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
12157 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
12158 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
12159 | { | |
12160 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
12161 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
12162 | printf("*** library (version %d.%d.%d)\n", | |
12163 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12164 | } | |
12165 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
12166 | else | |
12167 | { | |
12168 | if ((gtk_major_version > major) || | |
12169 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
12170 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
12171 | { | |
12172 | return 0; | |
12173 | } | |
12174 | else | |
12175 | { | |
12176 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
12177 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12178 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
12179 | major, minor, micro); | |
12180 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
12181 | printf("***\n"); | |
12182 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
12183 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
12184 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
12185 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
12186 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
12187 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
12188 | printf("*** so that the correct libraries are found at run-time))\n"); | |
12189 | } | |
12190 | } | |
12191 | return 1; | |
12192 | } | |
12193 | ||
12194 | EOF | |
17234b26 | 12195 | if { (eval echo configure:12196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
21d1c967 GD |
12196 | then |
12197 | : | |
12198 | else | |
12199 | echo "configure: failed program was:" >&5 | |
12200 | cat conftest.$ac_ext >&5 | |
12201 | rm -fr conftest* | |
12202 | no_gtk=yes | |
12203 | fi | |
12204 | rm -fr conftest* | |
12205 | fi | |
12206 | ||
12207 | CFLAGS="$ac_save_CFLAGS" | |
12208 | LIBS="$ac_save_LIBS" | |
12209 | fi | |
12210 | fi | |
12211 | if test "x$no_gtk" = x ; then | |
12212 | echo "$ac_t""yes" 1>&6 | |
12213 | wx_cv_lib_gtk=1.2.7 | |
12214 | else | |
12215 | echo "$ac_t""no" 1>&6 | |
12216 | if test "$GTK_CONFIG" = "no" ; then | |
12217 | echo "*** The gtk-config script installed by GTK could not be found" | |
12218 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
12219 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
12220 | echo "*** full path to gtk-config." | |
12221 | else | |
12222 | if test -f conf.gtktest ; then | |
12223 | : | |
12224 | else | |
12225 | echo "*** Could not run GTK test program, checking why..." | |
12226 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12227 | LIBS="$LIBS $GTK_LIBS" | |
12228 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 12229 | #line 12230 "configure" |
21d1c967 GD |
12230 | #include "confdefs.h" |
12231 | ||
12232 | #include <gtk/gtk.h> | |
12233 | #include <stdio.h> | |
12234 | ||
12235 | int main() { | |
12236 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
f79bd02d JS |
12237 | ; return 0; } |
12238 | EOF | |
17234b26 | 12239 | if { (eval echo configure:12240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d | 12240 | rm -rf conftest* |
21d1c967 GD |
12241 | echo "*** The test program compiled, but did not run. This usually means" |
12242 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
12243 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
12244 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
12245 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
12246 | echo "*** is required on your system" | |
12247 | echo "***" | |
12248 | echo "*** If you have an old version installed, it is best to remove it, although" | |
12249 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
12250 | echo "***" | |
12251 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
12252 | echo "*** came with the system with the command" | |
12253 | echo "***" | |
12254 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
f79bd02d JS |
12255 | else |
12256 | echo "configure: failed program was:" >&5 | |
12257 | cat conftest.$ac_ext >&5 | |
12258 | rm -rf conftest* | |
21d1c967 GD |
12259 | echo "*** The test program failed to compile or link. See the file config.log for the" |
12260 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
12261 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
12262 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
f79bd02d JS |
12263 | fi |
12264 | rm -f conftest* | |
21d1c967 GD |
12265 | CFLAGS="$ac_save_CFLAGS" |
12266 | LIBS="$ac_save_LIBS" | |
12267 | fi | |
12268 | fi | |
12269 | GTK_CFLAGS="" | |
12270 | GTK_LIBS="" | |
12271 | : | |
12272 | fi | |
12273 | ||
12274 | ||
12275 | rm -f conf.gtktest | |
12276 | ||
12277 | fi | |
12278 | ||
12279 | if test -z "$wx_cv_lib_gtk"; then | |
12280 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
12281 | if test "${with_gtk_prefix+set}" = set; then | |
12282 | withval="$with_gtk_prefix" | |
12283 | gtk_config_prefix="$withval" | |
12284 | else | |
12285 | gtk_config_prefix="" | |
90dd450c | 12286 | fi |
f79bd02d | 12287 | |
21d1c967 GD |
12288 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
12289 | if test "${with_gtk_exec_prefix+set}" = set; then | |
12290 | withval="$with_gtk_exec_prefix" | |
12291 | gtk_config_exec_prefix="$withval" | |
12292 | else | |
12293 | gtk_config_exec_prefix="" | |
12294 | fi | |
12295 | ||
12296 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
12297 | if test "${enable_gtktest+set}" = set; then | |
12298 | enableval="$enable_gtktest" | |
90dd450c VZ |
12299 | : |
12300 | else | |
21d1c967 | 12301 | enable_gtktest=yes |
90dd450c | 12302 | fi |
f79bd02d | 12303 | |
21d1c967 GD |
12304 | |
12305 | for module in . $GTK_MODULES | |
12306 | do | |
12307 | case "$module" in | |
12308 | gthread) | |
12309 | gtk_config_args="$gtk_config_args gthread" | |
12310 | ;; | |
12311 | esac | |
12312 | done | |
12313 | ||
12314 | if test x$gtk_config_exec_prefix != x ; then | |
12315 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
12316 | if test x${GTK_CONFIG+set} != xset ; then | |
12317 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
12318 | fi | |
12319 | fi | |
12320 | if test x$gtk_config_prefix != x ; then | |
12321 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
12322 | if test x${GTK_CONFIG+set} != xset ; then | |
12323 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
12324 | fi | |
12325 | fi | |
12326 | ||
12327 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
12328 | set dummy gtk-config; ac_word=$2 | |
12329 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
17234b26 | 12330 | echo "configure:12331: checking for $ac_word" >&5 |
21d1c967 | 12331 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
90dd450c VZ |
12332 | echo $ac_n "(cached) $ac_c" 1>&6 |
12333 | else | |
21d1c967 GD |
12334 | case "$GTK_CONFIG" in |
12335 | /*) | |
12336 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
12337 | ;; | |
12338 | ?:/*) | |
12339 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
12340 | ;; | |
12341 | *) | |
12342 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
12343 | ac_dummy="$PATH" | |
12344 | for ac_dir in $ac_dummy; do | |
12345 | test -z "$ac_dir" && ac_dir=. | |
12346 | if test -f $ac_dir/$ac_word; then | |
12347 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
12348 | break | |
12349 | fi | |
12350 | done | |
12351 | IFS="$ac_save_ifs" | |
12352 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
12353 | ;; | |
12354 | esac | |
12355 | fi | |
12356 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" | |
12357 | if test -n "$GTK_CONFIG"; then | |
12358 | echo "$ac_t""$GTK_CONFIG" 1>&6 | |
12359 | else | |
12360 | echo "$ac_t""no" 1>&6 | |
12361 | fi | |
12362 | ||
12363 | min_gtk_version=1.2.3 | |
12364 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 | |
17234b26 | 12365 | echo "configure:12366: checking for GTK - version >= $min_gtk_version" >&5 |
21d1c967 GD |
12366 | no_gtk="" |
12367 | if test "$GTK_CONFIG" = "no" ; then | |
12368 | no_gtk=yes | |
12369 | else | |
12370 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
12371 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
12372 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12373 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
12374 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12375 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
12376 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12377 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
12378 | if test "x$enable_gtktest" = "xyes" ; then | |
12379 | ac_save_CFLAGS="$CFLAGS" | |
12380 | ac_save_LIBS="$LIBS" | |
12381 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12382 | LIBS="$GTK_LIBS $LIBS" | |
12383 | rm -f conf.gtktest | |
12384 | if test "$cross_compiling" = yes; then | |
12385 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
12386 | else | |
12387 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 12388 | #line 12389 "configure" |
f79bd02d | 12389 | #include "confdefs.h" |
21d1c967 GD |
12390 | |
12391 | #include <gtk/gtk.h> | |
12392 | #include <stdio.h> | |
12393 | #include <stdlib.h> | |
12394 | ||
12395 | int | |
12396 | main () | |
12397 | { | |
12398 | int major, minor, micro; | |
12399 | char *tmp_version; | |
12400 | ||
12401 | system ("touch conf.gtktest"); | |
12402 | ||
12403 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
12404 | tmp_version = g_strdup("$min_gtk_version"); | |
12405 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
12406 | printf("%s, bad version string\n", "$min_gtk_version"); | |
12407 | exit(1); | |
12408 | } | |
12409 | ||
12410 | if ((gtk_major_version != $gtk_config_major_version) || | |
12411 | (gtk_minor_version != $gtk_config_minor_version) || | |
12412 | (gtk_micro_version != $gtk_config_micro_version)) | |
12413 | { | |
12414 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
12415 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
12416 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12417 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
12418 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
12419 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
12420 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
12421 | printf("*** required on your system.\n"); | |
12422 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
12423 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
12424 | printf("*** before re-running configure\n"); | |
12425 | } | |
12426 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
12427 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
12428 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
12429 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
12430 | { | |
12431 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
12432 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
12433 | printf("*** library (version %d.%d.%d)\n", | |
12434 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12435 | } | |
12436 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
12437 | else | |
12438 | { | |
12439 | if ((gtk_major_version > major) || | |
12440 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
12441 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
12442 | { | |
12443 | return 0; | |
12444 | } | |
12445 | else | |
12446 | { | |
12447 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
12448 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12449 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
12450 | major, minor, micro); | |
12451 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
12452 | printf("***\n"); | |
12453 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
12454 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
12455 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
12456 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
12457 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
12458 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
12459 | printf("*** so that the correct libraries are found at run-time))\n"); | |
12460 | } | |
12461 | } | |
12462 | return 1; | |
12463 | } | |
12464 | ||
12465 | EOF | |
17234b26 | 12466 | if { (eval echo configure:12467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
21d1c967 GD |
12467 | then |
12468 | : | |
12469 | else | |
12470 | echo "configure: failed program was:" >&5 | |
12471 | cat conftest.$ac_ext >&5 | |
12472 | rm -fr conftest* | |
12473 | no_gtk=yes | |
12474 | fi | |
12475 | rm -fr conftest* | |
12476 | fi | |
12477 | ||
12478 | CFLAGS="$ac_save_CFLAGS" | |
12479 | LIBS="$ac_save_LIBS" | |
12480 | fi | |
12481 | fi | |
12482 | if test "x$no_gtk" = x ; then | |
12483 | echo "$ac_t""yes" 1>&6 | |
12484 | wx_cv_lib_gtk=1.2.3 | |
12485 | else | |
12486 | echo "$ac_t""no" 1>&6 | |
12487 | if test "$GTK_CONFIG" = "no" ; then | |
12488 | echo "*** The gtk-config script installed by GTK could not be found" | |
12489 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
12490 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
12491 | echo "*** full path to gtk-config." | |
12492 | else | |
12493 | if test -f conf.gtktest ; then | |
12494 | : | |
12495 | else | |
12496 | echo "*** Could not run GTK test program, checking why..." | |
12497 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12498 | LIBS="$LIBS $GTK_LIBS" | |
12499 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 12500 | #line 12501 "configure" |
21d1c967 GD |
12501 | #include "confdefs.h" |
12502 | ||
12503 | #include <gtk/gtk.h> | |
12504 | #include <stdio.h> | |
f79bd02d | 12505 | |
f79bd02d | 12506 | int main() { |
21d1c967 | 12507 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); |
f79bd02d JS |
12508 | ; return 0; } |
12509 | EOF | |
17234b26 | 12510 | if { (eval echo configure:12511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d | 12511 | rm -rf conftest* |
21d1c967 GD |
12512 | echo "*** The test program compiled, but did not run. This usually means" |
12513 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
12514 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
12515 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
12516 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
12517 | echo "*** is required on your system" | |
12518 | echo "***" | |
12519 | echo "*** If you have an old version installed, it is best to remove it, although" | |
12520 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
12521 | echo "***" | |
12522 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
12523 | echo "*** came with the system with the command" | |
12524 | echo "***" | |
12525 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
f79bd02d JS |
12526 | else |
12527 | echo "configure: failed program was:" >&5 | |
12528 | cat conftest.$ac_ext >&5 | |
12529 | rm -rf conftest* | |
21d1c967 GD |
12530 | echo "*** The test program failed to compile or link. See the file config.log for the" |
12531 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
12532 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
12533 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
f79bd02d JS |
12534 | fi |
12535 | rm -f conftest* | |
21d1c967 GD |
12536 | CFLAGS="$ac_save_CFLAGS" |
12537 | LIBS="$ac_save_LIBS" | |
12538 | fi | |
12539 | fi | |
12540 | GTK_CFLAGS="" | |
12541 | GTK_LIBS="" | |
12542 | : | |
12543 | fi | |
12544 | ||
12545 | ||
12546 | rm -f conf.gtktest | |
f79bd02d | 12547 | |
21d1c967 GD |
12548 | fi |
12549 | ||
12550 | if test -z "$wx_cv_lib_gtk"; then | |
12551 | wx_cv_lib_gtk=none | |
12552 | else | |
12553 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
12554 | wx_cv_libs_gtk=$GTK_LIBS | |
12555 | fi | |
12556 | ||
12557 | ||
90dd450c | 12558 | fi |
b4085ce6 | 12559 | |
e07802fc | 12560 | |
21d1c967 GD |
12561 | if test "$gtk_version_cached" = 1; then |
12562 | echo "$ac_t""$wx_cv_lib_gtk" 1>&6 | |
12563 | fi | |
12564 | ||
12565 | case "$wx_cv_lib_gtk" in | |
12566 | 2.0) WXGTK20=1 | |
12567 | ;; | |
12568 | 1.2.7) WXGTK127=1 | |
12569 | WXGTK12=1 | |
12570 | ;; | |
12571 | 1.2.3) WXGTK12=1 | |
12572 | ;; | |
12573 | *) { echo "configure: error: | |
12574 | Please check that gtk-config is in path, the directory | |
12575 | where GTK+ libraries are installed (returned by | |
12576 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
12577 | equivalent variable and GTK+ is version 1.2.3 or above. | |
12578 | " 1>&2; exit 1; } | |
12579 | ;; | |
12580 | esac | |
12581 | ||
12582 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" | |
12583 | GUI_TK_LIBRARY="$wx_cv_libs_gtk" | |
12584 | ||
12585 | AFMINSTALL=afminstall | |
12586 | TOOLKIT=GTK | |
12587 | GUIDIST=GTK_DIST | |
12588 | ||
12589 | echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6 | |
17234b26 | 12590 | echo "configure:12591: checking for gdk_im_open in -lgdk" >&5 |
21d1c967 | 12591 | ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'` |
90dd450c VZ |
12592 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
12593 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12594 | else | |
12595 | ac_save_LIBS="$LIBS" | |
21d1c967 | 12596 | LIBS="-lgdk $LIBS" |
90dd450c | 12597 | cat > conftest.$ac_ext <<EOF |
17234b26 | 12598 | #line 12599 "configure" |
90dd450c VZ |
12599 | #include "confdefs.h" |
12600 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12601 | /* We use char because int might match the return type of a gcc2 | |
12602 | builtin and then its argument prototype would still apply. */ | |
21d1c967 | 12603 | char gdk_im_open(); |
9b695262 | 12604 | |
90dd450c | 12605 | int main() { |
21d1c967 | 12606 | gdk_im_open() |
90dd450c VZ |
12607 | ; return 0; } |
12608 | EOF | |
17234b26 | 12609 | if { (eval echo configure:12610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
12610 | rm -rf conftest* |
12611 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12612 | else | |
12613 | echo "configure: failed program was:" >&5 | |
12614 | cat conftest.$ac_ext >&5 | |
12615 | rm -rf conftest* | |
12616 | eval "ac_cv_lib_$ac_lib_var=no" | |
12617 | fi | |
12618 | rm -f conftest* | |
12619 | LIBS="$ac_save_LIBS" | |
9b695262 | 12620 | |
90dd450c VZ |
12621 | fi |
12622 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12623 | echo "$ac_t""yes" 1>&6 | |
21d1c967 GD |
12624 | cat >> confdefs.h <<\EOF |
12625 | #define HAVE_XIM 1 | |
12626 | EOF | |
12627 | ||
90dd450c VZ |
12628 | else |
12629 | echo "$ac_t""no" 1>&6 | |
12630 | fi | |
1e6feb95 | 12631 | |
21d1c967 | 12632 | fi |
1e6feb95 | 12633 | |
21d1c967 GD |
12634 | if test "$wxUSE_MGL" = 1; then |
12635 | echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6 | |
17234b26 | 12636 | echo "configure:12637: checking for SciTech MGL library" >&5 |
21d1c967 GD |
12637 | if test "x$MGL_ROOT" = x ; then |
12638 | echo "$ac_t""not found" 1>&6 | |
12639 | { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; } | |
12640 | else | |
12641 | echo "$ac_t""$MGL_ROOT" 1>&6 | |
12642 | fi | |
12643 | ||
12644 | case "${host}" in | |
12645 | *-*-linux* ) | |
12646 | mgl_os=linux/gcc/glibc | |
12647 | ;; | |
12648 | *-pc-msdosdjgpp ) | |
12649 | mgl_os=dos32/dj2 | |
12650 | ;; | |
12651 | *) | |
12652 | { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; } | |
12653 | esac | |
1e6feb95 | 12654 | |
21d1c967 | 12655 | mgl_lib_type="" |
3fcdd07b | 12656 | |
21d1c967 GD |
12657 | if test "$wxUSE_DEBUG_FLAG" = yes ; then |
12658 | if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \ | |
12659 | -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then | |
12660 | mgl_lib_type=debug | |
12661 | fi | |
12662 | fi | |
12663 | if test "x$mgl_lib_type" = x ; then | |
12664 | if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \ | |
12665 | -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then | |
12666 | mgl_lib_type=release | |
12667 | else | |
12668 | { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; } | |
12669 | fi | |
90dd450c | 12670 | fi |
2224580a | 12671 | |
1d1b75ac VZ |
12672 | wxUSE_UNIVERSAL="yes" |
12673 | ||
21d1c967 GD |
12674 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" |
12675 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
12676 | ||
90dd450c | 12677 | AFMINSTALL=afminstall |
21d1c967 GD |
12678 | TOOLKIT=MGL |
12679 | GUIDIST=MGL_DIST | |
12680 | fi | |
dad6c0ea | 12681 | |
21d1c967 GD |
12682 | if test "$wxUSE_MICROWIN" = 1; then |
12683 | echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6 | |
17234b26 | 12684 | echo "configure:12685: checking for MicroWindows" >&5 |
21d1c967 GD |
12685 | if test "x$MICROWINDOWS" = x ; then |
12686 | echo "$ac_t""not found" 1>&6 | |
12687 | { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; } | |
12688 | else | |
12689 | echo "$ac_t""$MICROWINDOWS" 1>&6 | |
12690 | fi | |
f6bcfd97 | 12691 | |
21d1c967 GD |
12692 | if test -f $MICROWINDOWS/lib/libmwin.a; then |
12693 | echo "$ac_t""MicroWindows' libraries found." 1>&6 | |
12694 | else | |
12695 | { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; } | |
90dd450c | 12696 | fi |
0b2effe9 | 12697 | |
21d1c967 GD |
12698 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" |
12699 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
12700 | ||
1d1b75ac VZ |
12701 | wxUSE_UNIVERSAL="yes" |
12702 | ||
21d1c967 GD |
12703 | AFMINSTALL=afminstall |
12704 | TOOLKIT=MICROWIN | |
12705 | GUIDIST=MICROWIN_DIST | |
1d1b75ac VZ |
12706 | |
12707 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
21d1c967 | 12708 | fi |
f6bcfd97 | 12709 | |
21d1c967 GD |
12710 | if test "$wxUSE_X11" = 1; then |
12711 | # If we find X, set shell vars x_includes and x_libraries to the | |
12712 | # paths, otherwise set no_x=yes. | |
12713 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
12714 | # --without-x overrides everything else, but does not touch the cache. | |
12715 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
17234b26 | 12716 | echo "configure:12717: checking for X" >&5 |
d8356fa3 | 12717 | |
21d1c967 GD |
12718 | # Check whether --with-x or --without-x was given. |
12719 | if test "${with_x+set}" = set; then | |
12720 | withval="$with_x" | |
12721 | : | |
12722 | fi | |
2224580a | 12723 | |
21d1c967 GD |
12724 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
12725 | if test "x$with_x" = xno; then | |
12726 | # The user explicitly disabled X. | |
12727 | have_x=disabled | |
12728 | else | |
12729 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
12730 | # Both variables are already set. | |
12731 | have_x=yes | |
12732 | else | |
12733 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then | |
12734 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12735 | else | |
12736 | # One or both of the vars are not set, and there is no cached value. | |
12737 | ac_x_includes=NO ac_x_libraries=NO | |
12738 | rm -fr conftestdir | |
12739 | if mkdir conftestdir; then | |
12740 | cd conftestdir | |
12741 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
12742 | cat > Imakefile <<'EOF' | |
12743 | acfindx: | |
12744 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
12745 | EOF | |
12746 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
12747 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
12748 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
12749 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
12750 | for ac_extension in a so sl; do | |
12751 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
12752 | test -f $ac_im_libdir/libX11.$ac_extension; then | |
12753 | ac_im_usrlibdir=$ac_im_libdir; break | |
12754 | fi | |
12755 | done | |
12756 | # Screen out bogus values from the imake configuration. They are | |
12757 | # bogus both because they are the default anyway, and because | |
12758 | # using them would break gcc on systems where it needs fixed includes. | |
12759 | case "$ac_im_incroot" in | |
12760 | /usr/include) ;; | |
12761 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; | |
12762 | esac | |
12763 | case "$ac_im_usrlibdir" in | |
12764 | /usr/lib | /lib) ;; | |
12765 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; | |
12766 | esac | |
12767 | fi | |
12768 | cd .. | |
12769 | rm -fr conftestdir | |
12770 | fi | |
10f2d63a | 12771 | |
21d1c967 GD |
12772 | if test "$ac_x_includes" = NO; then |
12773 | # Guess where to find include files, by looking for this one X11 .h file. | |
12774 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
e45387bf | 12775 | |
21d1c967 GD |
12776 | # First, try using that file with no special directory specified. |
12777 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 12778 | #line 12779 "configure" |
21d1c967 GD |
12779 | #include "confdefs.h" |
12780 | #include <$x_direct_test_include> | |
90dd450c | 12781 | EOF |
21d1c967 | 12782 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
17234b26 | 12783 | { (eval echo configure:12784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
12784 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12785 | if test -z "$ac_err"; then | |
90dd450c | 12786 | rm -rf conftest* |
21d1c967 GD |
12787 | # We can compile using X headers with no special include directory. |
12788 | ac_x_includes= | |
90dd450c | 12789 | else |
21d1c967 | 12790 | echo "$ac_err" >&5 |
90dd450c VZ |
12791 | echo "configure: failed program was:" >&5 |
12792 | cat conftest.$ac_ext >&5 | |
12793 | rm -rf conftest* | |
21d1c967 GD |
12794 | # Look for the header file in a standard set of common directories. |
12795 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
12796 | for ac_dir in \ | |
12797 | /usr/X11/include \ | |
12798 | /usr/X11R6/include \ | |
12799 | /usr/X11R5/include \ | |
12800 | /usr/X11R4/include \ | |
12801 | \ | |
12802 | /usr/include/X11 \ | |
12803 | /usr/include/X11R6 \ | |
12804 | /usr/include/X11R5 \ | |
12805 | /usr/include/X11R4 \ | |
12806 | \ | |
12807 | /usr/local/X11/include \ | |
12808 | /usr/local/X11R6/include \ | |
12809 | /usr/local/X11R5/include \ | |
12810 | /usr/local/X11R4/include \ | |
12811 | \ | |
12812 | /usr/local/include/X11 \ | |
12813 | /usr/local/include/X11R6 \ | |
12814 | /usr/local/include/X11R5 \ | |
12815 | /usr/local/include/X11R4 \ | |
12816 | \ | |
12817 | /usr/X386/include \ | |
12818 | /usr/x386/include \ | |
12819 | /usr/XFree86/include/X11 \ | |
12820 | \ | |
12821 | /usr/include \ | |
12822 | /usr/local/include \ | |
12823 | /usr/unsupported/include \ | |
12824 | /usr/athena/include \ | |
12825 | /usr/local/x11r5/include \ | |
12826 | /usr/lpp/Xamples/include \ | |
12827 | \ | |
12828 | /usr/openwin/include \ | |
12829 | /usr/openwin/share/include \ | |
12830 | ; \ | |
12831 | do | |
12832 | if test -r "$ac_dir/$x_direct_test_include"; then | |
12833 | ac_x_includes=$ac_dir | |
12834 | break | |
12835 | fi | |
12836 | done | |
3a922bb4 | 12837 | fi |
90dd450c | 12838 | rm -f conftest* |
21d1c967 | 12839 | fi # $ac_x_includes = NO |
10f2d63a | 12840 | |
21d1c967 GD |
12841 | if test "$ac_x_libraries" = NO; then |
12842 | # Check for the libraries. | |
be505a65 | 12843 | |
21d1c967 GD |
12844 | test -z "$x_direct_test_library" && x_direct_test_library=Xt |
12845 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
90dd450c | 12846 | |
21d1c967 GD |
12847 | # See if we find them without any special options. |
12848 | # Don't add to $LIBS permanently. | |
12849 | ac_save_LIBS="$LIBS" | |
12850 | LIBS="-l$x_direct_test_library $LIBS" | |
12851 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 12852 | #line 12853 "configure" |
3a922bb4 | 12853 | #include "confdefs.h" |
21d1c967 GD |
12854 | |
12855 | int main() { | |
12856 | ${x_direct_test_function}() | |
12857 | ; return 0; } | |
3a922bb4 | 12858 | EOF |
17234b26 | 12859 | if { (eval echo configure:12860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3a922bb4 | 12860 | rm -rf conftest* |
21d1c967 GD |
12861 | LIBS="$ac_save_LIBS" |
12862 | # We can link X programs with no special library path. | |
12863 | ac_x_libraries= | |
3a922bb4 | 12864 | else |
3a922bb4 RL |
12865 | echo "configure: failed program was:" >&5 |
12866 | cat conftest.$ac_ext >&5 | |
12867 | rm -rf conftest* | |
21d1c967 GD |
12868 | LIBS="$ac_save_LIBS" |
12869 | # First see if replacing the include by lib works. | |
12870 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
12871 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
12872 | /usr/X11/lib \ | |
12873 | /usr/X11R6/lib \ | |
12874 | /usr/X11R5/lib \ | |
12875 | /usr/X11R4/lib \ | |
12876 | \ | |
12877 | /usr/lib/X11 \ | |
12878 | /usr/lib/X11R6 \ | |
12879 | /usr/lib/X11R5 \ | |
12880 | /usr/lib/X11R4 \ | |
12881 | \ | |
12882 | /usr/local/X11/lib \ | |
12883 | /usr/local/X11R6/lib \ | |
12884 | /usr/local/X11R5/lib \ | |
12885 | /usr/local/X11R4/lib \ | |
12886 | \ | |
12887 | /usr/local/lib/X11 \ | |
12888 | /usr/local/lib/X11R6 \ | |
12889 | /usr/local/lib/X11R5 \ | |
12890 | /usr/local/lib/X11R4 \ | |
12891 | \ | |
12892 | /usr/X386/lib \ | |
12893 | /usr/x386/lib \ | |
12894 | /usr/XFree86/lib/X11 \ | |
12895 | \ | |
12896 | /usr/lib \ | |
12897 | /usr/local/lib \ | |
12898 | /usr/unsupported/lib \ | |
12899 | /usr/athena/lib \ | |
12900 | /usr/local/x11r5/lib \ | |
12901 | /usr/lpp/Xamples/lib \ | |
12902 | /lib/usr/lib/X11 \ | |
12903 | \ | |
12904 | /usr/openwin/lib \ | |
12905 | /usr/openwin/share/lib \ | |
12906 | ; \ | |
12907 | do | |
12908 | for ac_extension in a so sl; do | |
12909 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then | |
12910 | ac_x_libraries=$ac_dir | |
12911 | break 2 | |
12912 | fi | |
12913 | done | |
12914 | done | |
3a922bb4 RL |
12915 | fi |
12916 | rm -f conftest* | |
21d1c967 | 12917 | fi # $ac_x_libraries = NO |
90dd450c | 12918 | |
21d1c967 GD |
12919 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
12920 | # Didn't find X anywhere. Cache the known absence of X. | |
12921 | ac_cv_have_x="have_x=no" | |
12922 | else | |
12923 | # Record where we found X for the cache. | |
12924 | ac_cv_have_x="have_x=yes \ | |
12925 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
90dd450c | 12926 | fi |
21d1c967 GD |
12927 | fi |
12928 | fi | |
12929 | eval "$ac_cv_have_x" | |
12930 | fi # $with_x != no | |
90dd450c | 12931 | |
21d1c967 GD |
12932 | if test "$have_x" != yes; then |
12933 | echo "$ac_t""$have_x" 1>&6 | |
12934 | no_x=yes | |
12935 | else | |
12936 | # If each of the values was on the command line, it overrides each guess. | |
12937 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
12938 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
12939 | # Update the cache value to reflect the command line values. | |
12940 | ac_cv_have_x="have_x=yes \ | |
12941 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
12942 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 | |
12943 | fi | |
90dd450c | 12944 | |
21d1c967 | 12945 | if test "$no_x" = yes; then |
90dd450c VZ |
12946 | # Not all programs may use this symbol, but it does not hurt to define it. |
12947 | cat >> confdefs.h <<\EOF | |
12948 | #define X_DISPLAY_MISSING 1 | |
12949 | EOF | |
12950 | ||
12951 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
12952 | else | |
12953 | if test -n "$x_includes"; then | |
12954 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
62d0491b | 12955 | fi |
3a922bb4 | 12956 | |
90dd450c VZ |
12957 | # It would also be nice to do this for all -L options, not just this one. |
12958 | if test -n "$x_libraries"; then | |
12959 | X_LIBS="$X_LIBS -L$x_libraries" | |
12960 | # For Solaris; some versions of Sun CC require a space after -R and | |
12961 | # others require no space. Words are not sufficient . . . . | |
12962 | case "`(uname -sr) 2>/dev/null`" in | |
12963 | "SunOS 5"*) | |
12964 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 | |
17234b26 | 12965 | echo "configure:12966: checking whether -R must be followed by a space" >&5 |
90dd450c VZ |
12966 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
12967 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 12968 | #line 12969 "configure" |
90dd450c VZ |
12969 | #include "confdefs.h" |
12970 | ||
12971 | int main() { | |
12972 | ||
12973 | ; return 0; } | |
12974 | EOF | |
17234b26 | 12975 | if { (eval echo configure:12976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
12976 | rm -rf conftest* |
12977 | ac_R_nospace=yes | |
3a922bb4 | 12978 | else |
90dd450c VZ |
12979 | echo "configure: failed program was:" >&5 |
12980 | cat conftest.$ac_ext >&5 | |
12981 | rm -rf conftest* | |
12982 | ac_R_nospace=no | |
3a922bb4 | 12983 | fi |
90dd450c VZ |
12984 | rm -f conftest* |
12985 | if test $ac_R_nospace = yes; then | |
12986 | echo "$ac_t""no" 1>&6 | |
12987 | X_LIBS="$X_LIBS -R$x_libraries" | |
12988 | else | |
12989 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
12990 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 12991 | #line 12992 "configure" |
90dd450c | 12992 | #include "confdefs.h" |
3a922bb4 | 12993 | |
90dd450c | 12994 | int main() { |
6f754473 | 12995 | |
90dd450c VZ |
12996 | ; return 0; } |
12997 | EOF | |
17234b26 | 12998 | if { (eval echo configure:12999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
12999 | rm -rf conftest* |
13000 | ac_R_space=yes | |
13001 | else | |
13002 | echo "configure: failed program was:" >&5 | |
13003 | cat conftest.$ac_ext >&5 | |
13004 | rm -rf conftest* | |
13005 | ac_R_space=no | |
13006 | fi | |
13007 | rm -f conftest* | |
13008 | if test $ac_R_space = yes; then | |
13009 | echo "$ac_t""yes" 1>&6 | |
13010 | X_LIBS="$X_LIBS -R $x_libraries" | |
13011 | else | |
13012 | echo "$ac_t""neither works" 1>&6 | |
13013 | fi | |
13014 | fi | |
13015 | LIBS="$ac_xsave_LIBS" | |
13016 | esac | |
13017 | fi | |
13018 | ||
13019 | # Check for system-dependent libraries X programs must link with. | |
13020 | # Do this before checking for the system-independent R6 libraries | |
13021 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
6f754473 | 13022 | |
90dd450c VZ |
13023 | if test "$ISC" = yes; then |
13024 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
13025 | else | |
13026 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X | |
13027 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
13028 | # the Alpha needs dnet_stub (dnet does not exist). | |
13029 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 | |
17234b26 | 13030 | echo "configure:13031: checking for dnet_ntoa in -ldnet" >&5 |
90dd450c VZ |
13031 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
13032 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13033 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13034 | else | |
13035 | ac_save_LIBS="$LIBS" | |
13036 | LIBS="-ldnet $LIBS" | |
13037 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 13038 | #line 13039 "configure" |
90dd450c VZ |
13039 | #include "confdefs.h" |
13040 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13041 | /* We use char because int might match the return type of a gcc2 | |
13042 | builtin and then its argument prototype would still apply. */ | |
13043 | char dnet_ntoa(); | |
6f754473 | 13044 | |
90dd450c VZ |
13045 | int main() { |
13046 | dnet_ntoa() | |
13047 | ; return 0; } | |
6f754473 | 13048 | EOF |
17234b26 | 13049 | if { (eval echo configure:13050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
13050 | rm -rf conftest* |
13051 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13052 | else | |
13053 | echo "configure: failed program was:" >&5 | |
13054 | cat conftest.$ac_ext >&5 | |
13055 | rm -rf conftest* | |
13056 | eval "ac_cv_lib_$ac_lib_var=no" | |
3a922bb4 | 13057 | fi |
90dd450c VZ |
13058 | rm -f conftest* |
13059 | LIBS="$ac_save_LIBS" | |
3a922bb4 | 13060 | |
3a922bb4 | 13061 | fi |
90dd450c VZ |
13062 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
13063 | echo "$ac_t""yes" 1>&6 | |
13064 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
13065 | else | |
13066 | echo "$ac_t""no" 1>&6 | |
3a922bb4 RL |
13067 | fi |
13068 | ||
90dd450c VZ |
13069 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
13070 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 | |
17234b26 | 13071 | echo "configure:13072: checking for dnet_ntoa in -ldnet_stub" >&5 |
90dd450c VZ |
13072 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
13073 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13074 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13075 | else | |
13076 | ac_save_LIBS="$LIBS" | |
13077 | LIBS="-ldnet_stub $LIBS" | |
13078 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 13079 | #line 13080 "configure" |
90dd450c VZ |
13080 | #include "confdefs.h" |
13081 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13082 | /* We use char because int might match the return type of a gcc2 | |
13083 | builtin and then its argument prototype would still apply. */ | |
13084 | char dnet_ntoa(); | |
f676c7ff | 13085 | |
90dd450c VZ |
13086 | int main() { |
13087 | dnet_ntoa() | |
13088 | ; return 0; } | |
13089 | EOF | |
17234b26 | 13090 | if { (eval echo configure:13091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
13091 | rm -rf conftest* |
13092 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13093 | else | |
13094 | echo "configure: failed program was:" >&5 | |
13095 | cat conftest.$ac_ext >&5 | |
13096 | rm -rf conftest* | |
13097 | eval "ac_cv_lib_$ac_lib_var=no" | |
3a922bb4 | 13098 | fi |
90dd450c VZ |
13099 | rm -f conftest* |
13100 | LIBS="$ac_save_LIBS" | |
3a922bb4 | 13101 | |
90dd450c VZ |
13102 | fi |
13103 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13104 | echo "$ac_t""yes" 1>&6 | |
13105 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
13106 | else | |
13107 | echo "$ac_t""no" 1>&6 | |
3a922bb4 RL |
13108 | fi |
13109 | ||
90dd450c | 13110 | fi |
978f1259 | 13111 | |
90dd450c VZ |
13112 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
13113 | # to get the SysV transport functions. | |
13114 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) | |
13115 | # needs -lnsl. | |
13116 | # The nsl library prevents programs from opening the X display | |
13117 | # on Irix 5.2, according to dickey@clark.net. | |
13118 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
17234b26 | 13119 | echo "configure:13120: checking for gethostbyname" >&5 |
90dd450c VZ |
13120 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
13121 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13122 | else | |
13123 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 13124 | #line 13125 "configure" |
90dd450c VZ |
13125 | #include "confdefs.h" |
13126 | /* System header to define __stub macros and hopefully few prototypes, | |
13127 | which can conflict with char gethostbyname(); below. */ | |
13128 | #include <assert.h> | |
13129 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13130 | /* We use char because int might match the return type of a gcc2 | |
13131 | builtin and then its argument prototype would still apply. */ | |
13132 | char gethostbyname(); | |
978f1259 | 13133 | |
90dd450c | 13134 | int main() { |
978f1259 | 13135 | |
90dd450c VZ |
13136 | /* The GNU C library defines this for functions which it implements |
13137 | to always fail with ENOSYS. Some functions are actually named | |
13138 | something starting with __ and the normal name is an alias. */ | |
13139 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
13140 | choke me | |
13141 | #else | |
13142 | gethostbyname(); | |
13143 | #endif | |
978f1259 | 13144 | |
90dd450c VZ |
13145 | ; return 0; } |
13146 | EOF | |
17234b26 | 13147 | if { (eval echo configure:13148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
13148 | rm -rf conftest* |
13149 | eval "ac_cv_func_gethostbyname=yes" | |
13150 | else | |
13151 | echo "configure: failed program was:" >&5 | |
13152 | cat conftest.$ac_ext >&5 | |
13153 | rm -rf conftest* | |
13154 | eval "ac_cv_func_gethostbyname=no" | |
978f1259 | 13155 | fi |
90dd450c | 13156 | rm -f conftest* |
4222829b VS |
13157 | fi |
13158 | ||
90dd450c VZ |
13159 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then |
13160 | echo "$ac_t""yes" 1>&6 | |
13161 | : | |
13162 | else | |
13163 | echo "$ac_t""no" 1>&6 | |
13164 | fi | |
698dcdb6 | 13165 | |
90dd450c VZ |
13166 | if test $ac_cv_func_gethostbyname = no; then |
13167 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 | |
17234b26 | 13168 | echo "configure:13169: checking for gethostbyname in -lnsl" >&5 |
90dd450c VZ |
13169 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
13170 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13171 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13172 | else | |
13173 | ac_save_LIBS="$LIBS" | |
13174 | LIBS="-lnsl $LIBS" | |
13175 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 13176 | #line 13177 "configure" |
90dd450c VZ |
13177 | #include "confdefs.h" |
13178 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13179 | /* We use char because int might match the return type of a gcc2 | |
13180 | builtin and then its argument prototype would still apply. */ | |
13181 | char gethostbyname(); | |
f6bcfd97 | 13182 | |
90dd450c VZ |
13183 | int main() { |
13184 | gethostbyname() | |
13185 | ; return 0; } | |
13186 | EOF | |
17234b26 | 13187 | if { (eval echo configure:13188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
13188 | rm -rf conftest* |
13189 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13190 | else | |
13191 | echo "configure: failed program was:" >&5 | |
13192 | cat conftest.$ac_ext >&5 | |
13193 | rm -rf conftest* | |
13194 | eval "ac_cv_lib_$ac_lib_var=no" | |
13195 | fi | |
13196 | rm -f conftest* | |
13197 | LIBS="$ac_save_LIBS" | |
55e80573 | 13198 | |
90dd450c VZ |
13199 | fi |
13200 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13201 | echo "$ac_t""yes" 1>&6 | |
13202 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
13203 | else | |
13204 | echo "$ac_t""no" 1>&6 | |
13205 | fi | |
b12915c1 | 13206 | |
90dd450c VZ |
13207 | fi |
13208 | ||
13209 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
13210 | # socket/setsockopt and other routines are undefined under SCO ODT | |
13211 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
13212 | # on later versions), says simon@lia.di.epfl.ch: it contains | |
13213 | # gethostby* variants that don't use the nameserver (or something). | |
13214 | # -lsocket must be given before -lnsl if both are needed. | |
13215 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
13216 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
17234b26 | 13217 | echo "configure:13218: checking for connect" >&5 |
90dd450c | 13218 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
55e80573 VZ |
13219 | echo $ac_n "(cached) $ac_c" 1>&6 |
13220 | else | |
90dd450c | 13221 | cat > conftest.$ac_ext <<EOF |
17234b26 | 13222 | #line 13223 "configure" |
55e80573 | 13223 | #include "confdefs.h" |
90dd450c VZ |
13224 | /* System header to define __stub macros and hopefully few prototypes, |
13225 | which can conflict with char connect(); below. */ | |
13226 | #include <assert.h> | |
13227 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13228 | /* We use char because int might match the return type of a gcc2 | |
13229 | builtin and then its argument prototype would still apply. */ | |
13230 | char connect(); | |
55e80573 VZ |
13231 | |
13232 | int main() { | |
13233 | ||
90dd450c VZ |
13234 | /* The GNU C library defines this for functions which it implements |
13235 | to always fail with ENOSYS. Some functions are actually named | |
13236 | something starting with __ and the normal name is an alias. */ | |
13237 | #if defined (__stub_connect) || defined (__stub___connect) | |
13238 | choke me | |
13239 | #else | |
13240 | connect(); | |
13241 | #endif | |
13242 | ||
55e80573 VZ |
13243 | ; return 0; } |
13244 | EOF | |
17234b26 | 13245 | if { (eval echo configure:13246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
55e80573 | 13246 | rm -rf conftest* |
90dd450c | 13247 | eval "ac_cv_func_connect=yes" |
55e80573 VZ |
13248 | else |
13249 | echo "configure: failed program was:" >&5 | |
13250 | cat conftest.$ac_ext >&5 | |
13251 | rm -rf conftest* | |
90dd450c | 13252 | eval "ac_cv_func_connect=no" |
55e80573 VZ |
13253 | fi |
13254 | rm -f conftest* | |
55e80573 VZ |
13255 | fi |
13256 | ||
90dd450c VZ |
13257 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then |
13258 | echo "$ac_t""yes" 1>&6 | |
13259 | : | |
13260 | else | |
13261 | echo "$ac_t""no" 1>&6 | |
13262 | fi | |
55e80573 | 13263 | |
90dd450c VZ |
13264 | if test $ac_cv_func_connect = no; then |
13265 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 | |
17234b26 | 13266 | echo "configure:13267: checking for connect in -lsocket" >&5 |
90dd450c VZ |
13267 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
13268 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13269 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13270 | else | |
13271 | ac_save_LIBS="$LIBS" | |
13272 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
13273 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 13274 | #line 13275 "configure" |
90dd450c VZ |
13275 | #include "confdefs.h" |
13276 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13277 | /* We use char because int might match the return type of a gcc2 | |
13278 | builtin and then its argument prototype would still apply. */ | |
13279 | char connect(); | |
55e80573 | 13280 | |
90dd450c VZ |
13281 | int main() { |
13282 | connect() | |
13283 | ; return 0; } | |
13284 | EOF | |
17234b26 | 13285 | if { (eval echo configure:13286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
13286 | rm -rf conftest* |
13287 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13288 | else | |
13289 | echo "configure: failed program was:" >&5 | |
13290 | cat conftest.$ac_ext >&5 | |
13291 | rm -rf conftest* | |
13292 | eval "ac_cv_lib_$ac_lib_var=no" | |
13293 | fi | |
13294 | rm -f conftest* | |
13295 | LIBS="$ac_save_LIBS" | |
77e13408 | 13296 | |
90dd450c VZ |
13297 | fi |
13298 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13299 | echo "$ac_t""yes" 1>&6 | |
13300 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
13301 | else | |
13302 | echo "$ac_t""no" 1>&6 | |
13303 | fi | |
77e13408 | 13304 | |
90dd450c | 13305 | fi |
25d0687a | 13306 | |
90dd450c VZ |
13307 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
13308 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
17234b26 | 13309 | echo "configure:13310: checking for remove" >&5 |
90dd450c VZ |
13310 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
13311 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13312 | else | |
13313 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 13314 | #line 13315 "configure" |
90dd450c VZ |
13315 | #include "confdefs.h" |
13316 | /* System header to define __stub macros and hopefully few prototypes, | |
13317 | which can conflict with char remove(); below. */ | |
13318 | #include <assert.h> | |
13319 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13320 | /* We use char because int might match the return type of a gcc2 | |
13321 | builtin and then its argument prototype would still apply. */ | |
13322 | char remove(); | |
7b7a7637 | 13323 | |
90dd450c | 13324 | int main() { |
55e80573 | 13325 | |
90dd450c VZ |
13326 | /* The GNU C library defines this for functions which it implements |
13327 | to always fail with ENOSYS. Some functions are actually named | |
13328 | something starting with __ and the normal name is an alias. */ | |
13329 | #if defined (__stub_remove) || defined (__stub___remove) | |
13330 | choke me | |
13331 | #else | |
13332 | remove(); | |
13333 | #endif | |
55e80573 | 13334 | |
90dd450c VZ |
13335 | ; return 0; } |
13336 | EOF | |
17234b26 | 13337 | if { (eval echo configure:13338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
13338 | rm -rf conftest* |
13339 | eval "ac_cv_func_remove=yes" | |
13340 | else | |
13341 | echo "configure: failed program was:" >&5 | |
13342 | cat conftest.$ac_ext >&5 | |
13343 | rm -rf conftest* | |
13344 | eval "ac_cv_func_remove=no" | |
13345 | fi | |
13346 | rm -f conftest* | |
13347 | fi | |
55e80573 | 13348 | |
90dd450c VZ |
13349 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then |
13350 | echo "$ac_t""yes" 1>&6 | |
13351 | : | |
13352 | else | |
13353 | echo "$ac_t""no" 1>&6 | |
13354 | fi | |
10f2d63a | 13355 | |
90dd450c VZ |
13356 | if test $ac_cv_func_remove = no; then |
13357 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 | |
17234b26 | 13358 | echo "configure:13359: checking for remove in -lposix" >&5 |
90dd450c VZ |
13359 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
13360 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13361 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13362 | else | |
13363 | ac_save_LIBS="$LIBS" | |
13364 | LIBS="-lposix $LIBS" | |
13365 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 13366 | #line 13367 "configure" |
90dd450c VZ |
13367 | #include "confdefs.h" |
13368 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13369 | /* We use char because int might match the return type of a gcc2 | |
13370 | builtin and then its argument prototype would still apply. */ | |
13371 | char remove(); | |
55e80573 | 13372 | |
90dd450c VZ |
13373 | int main() { |
13374 | remove() | |
13375 | ; return 0; } | |
13376 | EOF | |
17234b26 | 13377 | if { (eval echo configure:13378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
13378 | rm -rf conftest* |
13379 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13380 | else | |
13381 | echo "configure: failed program was:" >&5 | |
13382 | cat conftest.$ac_ext >&5 | |
13383 | rm -rf conftest* | |
13384 | eval "ac_cv_lib_$ac_lib_var=no" | |
3a922bb4 | 13385 | fi |
90dd450c VZ |
13386 | rm -f conftest* |
13387 | LIBS="$ac_save_LIBS" | |
f6bcfd97 | 13388 | |
90dd450c VZ |
13389 | fi |
13390 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13391 | echo "$ac_t""yes" 1>&6 | |
13392 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
13393 | else | |
13394 | echo "$ac_t""no" 1>&6 | |
13395 | fi | |
f6bcfd97 | 13396 | |
6fa882bd RR |
13397 | fi |
13398 | ||
90dd450c VZ |
13399 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
13400 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 | |
17234b26 | 13401 | echo "configure:13402: checking for shmat" >&5 |
90dd450c VZ |
13402 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
13403 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13404 | else | |
13405 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 13406 | #line 13407 "configure" |
90dd450c VZ |
13407 | #include "confdefs.h" |
13408 | /* System header to define __stub macros and hopefully few prototypes, | |
13409 | which can conflict with char shmat(); below. */ | |
13410 | #include <assert.h> | |
13411 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13412 | /* We use char because int might match the return type of a gcc2 | |
13413 | builtin and then its argument prototype would still apply. */ | |
13414 | char shmat(); | |
698dcdb6 | 13415 | |
90dd450c | 13416 | int main() { |
3a922bb4 | 13417 | |
90dd450c VZ |
13418 | /* The GNU C library defines this for functions which it implements |
13419 | to always fail with ENOSYS. Some functions are actually named | |
13420 | something starting with __ and the normal name is an alias. */ | |
13421 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
13422 | choke me | |
13423 | #else | |
13424 | shmat(); | |
13425 | #endif | |
10f2d63a | 13426 | |
90dd450c VZ |
13427 | ; return 0; } |
13428 | EOF | |
17234b26 | 13429 | if { (eval echo configure:13430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
13430 | rm -rf conftest* |
13431 | eval "ac_cv_func_shmat=yes" | |
d08b457b | 13432 | else |
90dd450c VZ |
13433 | echo "configure: failed program was:" >&5 |
13434 | cat conftest.$ac_ext >&5 | |
13435 | rm -rf conftest* | |
13436 | eval "ac_cv_func_shmat=no" | |
d08b457b | 13437 | fi |
90dd450c | 13438 | rm -f conftest* |
d08b457b | 13439 | fi |
90dd450c VZ |
13440 | |
13441 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
13442 | echo "$ac_t""yes" 1>&6 | |
13443 | : | |
d08b457b GD |
13444 | else |
13445 | echo "$ac_t""no" 1>&6 | |
13446 | fi | |
13447 | ||
90dd450c VZ |
13448 | if test $ac_cv_func_shmat = no; then |
13449 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 | |
17234b26 | 13450 | echo "configure:13451: checking for shmat in -lipc" >&5 |
90dd450c VZ |
13451 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
13452 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
d08b457b GD |
13453 | echo $ac_n "(cached) $ac_c" 1>&6 |
13454 | else | |
90dd450c VZ |
13455 | ac_save_LIBS="$LIBS" |
13456 | LIBS="-lipc $LIBS" | |
13457 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 13458 | #line 13459 "configure" |
90dd450c VZ |
13459 | #include "confdefs.h" |
13460 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13461 | /* We use char because int might match the return type of a gcc2 | |
13462 | builtin and then its argument prototype would still apply. */ | |
13463 | char shmat(); | |
13464 | ||
13465 | int main() { | |
13466 | shmat() | |
13467 | ; return 0; } | |
13468 | EOF | |
17234b26 | 13469 | if { (eval echo configure:13470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
13470 | rm -rf conftest* |
13471 | eval "ac_cv_lib_$ac_lib_var=yes" | |
d08b457b | 13472 | else |
90dd450c VZ |
13473 | echo "configure: failed program was:" >&5 |
13474 | cat conftest.$ac_ext >&5 | |
13475 | rm -rf conftest* | |
13476 | eval "ac_cv_lib_$ac_lib_var=no" | |
d08b457b | 13477 | fi |
90dd450c VZ |
13478 | rm -f conftest* |
13479 | LIBS="$ac_save_LIBS" | |
13480 | ||
d08b457b | 13481 | fi |
90dd450c VZ |
13482 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
13483 | echo "$ac_t""yes" 1>&6 | |
13484 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
d08b457b GD |
13485 | else |
13486 | echo "$ac_t""no" 1>&6 | |
13487 | fi | |
13488 | ||
d558c907 | 13489 | fi |
90dd450c | 13490 | fi |
3a922bb4 | 13491 | |
90dd450c VZ |
13492 | # Check for libraries that X11R6 Xt/Xaw programs need. |
13493 | ac_save_LDFLAGS="$LDFLAGS" | |
13494 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
13495 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
13496 | # check for ICE first), but we must link in the order -lSM -lICE or | |
13497 | # we get undefined symbols. So assume we have SM if we have ICE. | |
13498 | # These have to be linked with before -lX11, unlike the other | |
13499 | # libraries we check for below, so use a different variable. | |
13500 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. | |
13501 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
17234b26 | 13502 | echo "configure:13503: checking for IceConnectionNumber in -lICE" >&5 |
90dd450c VZ |
13503 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
13504 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 VZ |
13505 | echo $ac_n "(cached) $ac_c" 1>&6 |
13506 | else | |
90dd450c VZ |
13507 | ac_save_LIBS="$LIBS" |
13508 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
13509 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 13510 | #line 13511 "configure" |
9cfadba2 | 13511 | #include "confdefs.h" |
90dd450c VZ |
13512 | /* Override any gcc2 internal prototype to avoid an error. */ |
13513 | /* We use char because int might match the return type of a gcc2 | |
13514 | builtin and then its argument prototype would still apply. */ | |
13515 | char IceConnectionNumber(); | |
13516 | ||
13517 | int main() { | |
13518 | IceConnectionNumber() | |
13519 | ; return 0; } | |
698dcdb6 | 13520 | EOF |
17234b26 | 13521 | if { (eval echo configure:13522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 13522 | rm -rf conftest* |
90dd450c | 13523 | eval "ac_cv_lib_$ac_lib_var=yes" |
6232543b | 13524 | else |
698dcdb6 | 13525 | echo "configure: failed program was:" >&5 |
9cfadba2 | 13526 | cat conftest.$ac_ext >&5 |
698dcdb6 | 13527 | rm -rf conftest* |
90dd450c | 13528 | eval "ac_cv_lib_$ac_lib_var=no" |
9cfadba2 | 13529 | fi |
698dcdb6 | 13530 | rm -f conftest* |
90dd450c VZ |
13531 | LIBS="$ac_save_LIBS" |
13532 | ||
9cfadba2 | 13533 | fi |
90dd450c | 13534 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
698dcdb6 | 13535 | echo "$ac_t""yes" 1>&6 |
90dd450c | 13536 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
698dcdb6 VZ |
13537 | else |
13538 | echo "$ac_t""no" 1>&6 | |
9cfadba2 | 13539 | fi |
10f2d63a | 13540 | |
90dd450c VZ |
13541 | LDFLAGS="$ac_save_LDFLAGS" |
13542 | ||
13543 | fi | |
13544 | ||
13545 | ||
13546 | if test "$no_x" = "yes"; then | |
13547 | { echo "configure: error: X11 not found" 1>&2; exit 1; } | |
13548 | fi | |
13549 | ||
13550 | GUI_TK_LIBRARY="$X_LIBS" | |
13551 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
13552 | AFMINSTALL=afminstall | |
13553 | COMPILED_X_PROGRAM=0 | |
13554 | ||
21d1c967 GD |
13555 | if test "$wxUSE_NANOX" = "yes"; then |
13556 | echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6 | |
17234b26 | 13557 | echo "configure:13558: checking for MicroWindows/NanoX distribution" >&5 |
21d1c967 GD |
13558 | if test "x$MICROWIN" = x ; then |
13559 | echo "$ac_t""not found" 1>&6 | |
13560 | { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; } | |
90dd450c | 13561 | else |
21d1c967 GD |
13562 | echo "$ac_t""$MICROWIN" 1>&6 |
13563 | cat >> confdefs.h <<\EOF | |
13564 | #define wxUSE_NANOX 1 | |
698dcdb6 | 13565 | EOF |
21d1c967 | 13566 | |
90dd450c VZ |
13567 | fi |
13568 | fi | |
13569 | ||
13570 | xpm_link= | |
13571 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
17234b26 | 13572 | echo "configure:13573: checking for Xpm library" >&5 |
90dd450c VZ |
13573 | |
13574 | ac_find_libraries= | |
13575 | for ac_dir in $SEARCH_LIB; | |
13576 | do | |
13577 | for ac_extension in a so sl dylib; do | |
13578 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
13579 | ac_find_libraries=$ac_dir | |
13580 | break 2 | |
13581 | fi | |
13582 | done | |
13583 | done | |
13584 | ||
13585 | if test "$ac_find_libraries" != "" ; then | |
13586 | ||
13587 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
13588 | result=$? | |
13589 | if test $result = 0; then | |
13590 | ac_path_to_link="" | |
13591 | else | |
13592 | ac_path_to_link=" -L$ac_find_libraries" | |
21d1c967 | 13593 | fi |
90dd450c | 13594 | |
21d1c967 GD |
13595 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
13596 | xpm_link=" -lXpm" | |
13597 | cat >> confdefs.h <<\EOF | |
13598 | #define wxHAVE_LIB_XPM 1 | |
13599 | EOF | |
90dd450c | 13600 | |
21d1c967 GD |
13601 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
13602 | else | |
13603 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 13604 | #line 13605 "configure" |
21d1c967 | 13605 | #include "confdefs.h" |
90dd450c | 13606 | |
21d1c967 GD |
13607 | #include <X11/xpm.h> |
13608 | ||
13609 | int main() { | |
6f72b082 | 13610 | |
21d1c967 GD |
13611 | int version; |
13612 | version = XpmLibraryVersion(); | |
13613 | ||
13614 | ; return 0; } | |
13615 | EOF | |
17234b26 | 13616 | if { (eval echo configure:13617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
21d1c967 GD |
13617 | rm -rf conftest* |
13618 | ||
13619 | xpm_link=" -lXpm" | |
13620 | cat >> confdefs.h <<\EOF | |
13621 | #define wxHAVE_LIB_XPM 1 | |
13622 | EOF | |
90dd450c | 13623 | |
21d1c967 GD |
13624 | echo "$ac_t""found in default search path" 1>&6 |
13625 | COMPILED_X_PROGRAM=0 | |
13626 | ||
13627 | else | |
13628 | echo "configure: failed program was:" >&5 | |
13629 | cat conftest.$ac_ext >&5 | |
13630 | rm -rf conftest* | |
13631 | ||
13632 | echo "$ac_t""no" 1>&6 | |
13633 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
13634 | ||
13635 | ||
6f72b082 | 13636 | fi |
21d1c967 GD |
13637 | rm -f conftest* |
13638 | fi | |
90dd450c | 13639 | |
1d1b75ac VZ |
13640 | wxUSE_UNIVERSAL="yes" |
13641 | ||
21d1c967 GD |
13642 | if test "$wxUSE_NANOX" = "yes"; then |
13643 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
13644 | 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" | |
13645 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" | |
13646 | else | |
13647 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link" | |
13648 | fi | |
6f72b082 | 13649 | |
21d1c967 GD |
13650 | TOOLKIT_VPATH="\${top_srcdir}/src/x11" |
13651 | TOOLKIT=X11 | |
13652 | GUIDIST=X11_DIST | |
13653 | fi | |
90dd450c | 13654 | |
21d1c967 GD |
13655 | if test "$wxUSE_WINE" = 1; then |
13656 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` | |
13657 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
17234b26 | 13658 | echo "configure:13659: checking for windows.h" >&5 |
698dcdb6 VZ |
13659 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13660 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13661 | else | |
13662 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 13663 | #line 13664 "configure" |
6f72b082 | 13664 | #include "confdefs.h" |
21d1c967 | 13665 | #include <windows.h> |
698dcdb6 VZ |
13666 | EOF |
13667 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
17234b26 | 13668 | { (eval echo configure:13669: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13669 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13670 | if test -z "$ac_err"; then | |
13671 | rm -rf conftest* | |
13672 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 13673 | else |
698dcdb6 VZ |
13674 | echo "$ac_err" >&5 |
13675 | echo "configure: failed program was:" >&5 | |
10f2d63a | 13676 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13677 | rm -rf conftest* |
13678 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 13679 | fi |
698dcdb6 | 13680 | rm -f conftest* |
10f2d63a | 13681 | fi |
698dcdb6 VZ |
13682 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13683 | echo "$ac_t""yes" 1>&6 | |
21d1c967 GD |
13684 | : |
13685 | else | |
13686 | echo "$ac_t""no" 1>&6 | |
13687 | ||
13688 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
13689 | ||
13690 | fi | |
13691 | ||
13692 | ||
13693 | xpm_link= | |
13694 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
17234b26 | 13695 | echo "configure:13696: checking for Xpm library" >&5 |
21d1c967 | 13696 | |
90dd450c VZ |
13697 | ac_find_libraries= |
13698 | for ac_dir in $SEARCH_LIB; | |
13699 | do | |
13700 | for ac_extension in a so sl dylib; do | |
21d1c967 | 13701 | if test -f "$ac_dir/libXpm.$ac_extension"; then |
90dd450c VZ |
13702 | ac_find_libraries=$ac_dir |
13703 | break 2 | |
13704 | fi | |
13705 | done | |
13706 | done | |
13707 | ||
21d1c967 GD |
13708 | if test "$ac_find_libraries" != "" ; then |
13709 | GUI_TK_LIBRARY="-L$ac_find_libraries" | |
13710 | xpm_link=" -lXpm" | |
13711 | cat >> confdefs.h <<\EOF | |
13712 | #define wxHAVE_LIB_XPM 1 | |
13713 | EOF | |
90dd450c | 13714 | |
21d1c967 GD |
13715 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
13716 | else | |
13717 | echo "$ac_t""no" 1>&6 | |
13718 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
13719 | fi | |
13720 | ||
13721 | mesa_link= | |
13722 | echo $ac_n "checking for Mesa library""... $ac_c" 1>&6 | |
17234b26 | 13723 | echo "configure:13724: checking for Mesa library" >&5 |
21d1c967 | 13724 | |
90dd450c VZ |
13725 | ac_find_libraries= |
13726 | for ac_dir in $SEARCH_LIB; | |
13727 | do | |
13728 | for ac_extension in a so sl dylib; do | |
13729 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
13730 | ac_find_libraries=$ac_dir | |
13731 | break 2 | |
13732 | fi | |
13733 | done | |
13734 | done | |
13735 | ||
21d1c967 GD |
13736 | if test "$ac_find_libraries" != "" ; then |
13737 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries" | |
13738 | mesa_link=" -lMesaGL" | |
13739 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
13740 | else | |
13741 | { echo "configure: error: no" 1>&2; exit 1; } | |
13742 | fi | |
13743 | ||
13744 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses" | |
13745 | TOOLKIT=MSW | |
13746 | GUIDIST=MSW_DIST | |
13747 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__" | |
13748 | fi | |
13749 | ||
13750 | if test "$wxUSE_MOTIF" = 1; then | |
13751 | if test "$no_x" = yes; then | |
13752 | # Not all programs may use this symbol, but it does not hurt to define it. | |
13753 | cat >> confdefs.h <<\EOF | |
13754 | #define X_DISPLAY_MISSING 1 | |
13755 | EOF | |
13756 | ||
13757 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
13758 | else | |
13759 | if test -n "$x_includes"; then | |
13760 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
90dd450c VZ |
13761 | fi |
13762 | ||
21d1c967 GD |
13763 | # It would also be nice to do this for all -L options, not just this one. |
13764 | if test -n "$x_libraries"; then | |
13765 | X_LIBS="$X_LIBS -L$x_libraries" | |
13766 | # For Solaris; some versions of Sun CC require a space after -R and | |
13767 | # others require no space. Words are not sufficient . . . . | |
13768 | case "`(uname -sr) 2>/dev/null`" in | |
13769 | "SunOS 5"*) | |
13770 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 | |
17234b26 | 13771 | echo "configure:13772: checking whether -R must be followed by a space" >&5 |
21d1c967 GD |
13772 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
13773 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 13774 | #line 13775 "configure" |
21d1c967 GD |
13775 | #include "confdefs.h" |
13776 | ||
13777 | int main() { | |
13778 | ||
13779 | ; return 0; } | |
13780 | EOF | |
17234b26 | 13781 | if { (eval echo configure:13782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21d1c967 GD |
13782 | rm -rf conftest* |
13783 | ac_R_nospace=yes | |
698dcdb6 | 13784 | else |
21d1c967 GD |
13785 | echo "configure: failed program was:" >&5 |
13786 | cat conftest.$ac_ext >&5 | |
13787 | rm -rf conftest* | |
13788 | ac_R_nospace=no | |
10f2d63a | 13789 | fi |
21d1c967 GD |
13790 | rm -f conftest* |
13791 | if test $ac_R_nospace = yes; then | |
13792 | echo "$ac_t""no" 1>&6 | |
13793 | X_LIBS="$X_LIBS -R$x_libraries" | |
13794 | else | |
13795 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
13796 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 13797 | #line 13798 "configure" |
21d1c967 | 13798 | #include "confdefs.h" |
10f2d63a | 13799 | |
21d1c967 | 13800 | int main() { |
f0c87536 | 13801 | |
21d1c967 | 13802 | ; return 0; } |
698dcdb6 | 13803 | EOF |
17234b26 | 13804 | if { (eval echo configure:13805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21d1c967 GD |
13805 | rm -rf conftest* |
13806 | ac_R_space=yes | |
13807 | else | |
13808 | echo "configure: failed program was:" >&5 | |
13809 | cat conftest.$ac_ext >&5 | |
13810 | rm -rf conftest* | |
13811 | ac_R_space=no | |
13812 | fi | |
13813 | rm -f conftest* | |
13814 | if test $ac_R_space = yes; then | |
13815 | echo "$ac_t""yes" 1>&6 | |
13816 | X_LIBS="$X_LIBS -R $x_libraries" | |
13817 | else | |
13818 | echo "$ac_t""neither works" 1>&6 | |
13819 | fi | |
13820 | fi | |
13821 | LIBS="$ac_xsave_LIBS" | |
13822 | esac | |
13823 | fi | |
90dd450c | 13824 | |
21d1c967 GD |
13825 | # Check for system-dependent libraries X programs must link with. |
13826 | # Do this before checking for the system-independent R6 libraries | |
13827 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
13828 | ||
13829 | if test "$ISC" = yes; then | |
13830 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
13831 | else | |
13832 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X | |
13833 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
13834 | # the Alpha needs dnet_stub (dnet does not exist). | |
13835 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 | |
17234b26 | 13836 | echo "configure:13837: checking for dnet_ntoa in -ldnet" >&5 |
21d1c967 GD |
13837 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
13838 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13839 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13840 | else | |
13841 | ac_save_LIBS="$LIBS" | |
13842 | LIBS="-ldnet $LIBS" | |
13843 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 13844 | #line 13845 "configure" |
21d1c967 GD |
13845 | #include "confdefs.h" |
13846 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13847 | /* We use char because int might match the return type of a gcc2 | |
13848 | builtin and then its argument prototype would still apply. */ | |
13849 | char dnet_ntoa(); | |
13850 | ||
13851 | int main() { | |
13852 | dnet_ntoa() | |
13853 | ; return 0; } | |
90dd450c | 13854 | EOF |
17234b26 | 13855 | if { (eval echo configure:13856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21d1c967 GD |
13856 | rm -rf conftest* |
13857 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13858 | else | |
13859 | echo "configure: failed program was:" >&5 | |
13860 | cat conftest.$ac_ext >&5 | |
13861 | rm -rf conftest* | |
13862 | eval "ac_cv_lib_$ac_lib_var=no" | |
0fb0dd83 | 13863 | fi |
21d1c967 GD |
13864 | rm -f conftest* |
13865 | LIBS="$ac_save_LIBS" | |
90dd450c | 13866 | |
0fb0dd83 | 13867 | fi |
21d1c967 GD |
13868 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
13869 | echo "$ac_t""yes" 1>&6 | |
13870 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
13871 | else | |
13872 | echo "$ac_t""no" 1>&6 | |
0fb0dd83 | 13873 | fi |
0fb0dd83 | 13874 | |
21d1c967 GD |
13875 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
13876 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 | |
17234b26 | 13877 | echo "configure:13878: checking for dnet_ntoa in -ldnet_stub" >&5 |
21d1c967 GD |
13878 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
13879 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13880 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13881 | else | |
13882 | ac_save_LIBS="$LIBS" | |
13883 | LIBS="-ldnet_stub $LIBS" | |
13884 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 13885 | #line 13886 "configure" |
21d1c967 GD |
13886 | #include "confdefs.h" |
13887 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13888 | /* We use char because int might match the return type of a gcc2 | |
13889 | builtin and then its argument prototype would still apply. */ | |
13890 | char dnet_ntoa(); | |
90dd450c | 13891 | |
21d1c967 GD |
13892 | int main() { |
13893 | dnet_ntoa() | |
13894 | ; return 0; } | |
13895 | EOF | |
17234b26 | 13896 | if { (eval echo configure:13897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21d1c967 GD |
13897 | rm -rf conftest* |
13898 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13899 | else | |
13900 | echo "configure: failed program was:" >&5 | |
13901 | cat conftest.$ac_ext >&5 | |
13902 | rm -rf conftest* | |
13903 | eval "ac_cv_lib_$ac_lib_var=no" | |
90dd450c | 13904 | fi |
21d1c967 GD |
13905 | rm -f conftest* |
13906 | LIBS="$ac_save_LIBS" | |
90dd450c | 13907 | |
21d1c967 GD |
13908 | fi |
13909 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13910 | echo "$ac_t""yes" 1>&6 | |
13911 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
13912 | else | |
13913 | echo "$ac_t""no" 1>&6 | |
90dd450c VZ |
13914 | fi |
13915 | ||
21d1c967 | 13916 | fi |
90dd450c | 13917 | |
21d1c967 GD |
13918 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
13919 | # to get the SysV transport functions. | |
13920 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) | |
13921 | # needs -lnsl. | |
13922 | # The nsl library prevents programs from opening the X display | |
13923 | # on Irix 5.2, according to dickey@clark.net. | |
13924 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
17234b26 | 13925 | echo "configure:13926: checking for gethostbyname" >&5 |
21d1c967 GD |
13926 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
13927 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13928 | else | |
13929 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 13930 | #line 13931 "configure" |
21d1c967 GD |
13931 | #include "confdefs.h" |
13932 | /* System header to define __stub macros and hopefully few prototypes, | |
13933 | which can conflict with char gethostbyname(); below. */ | |
13934 | #include <assert.h> | |
13935 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13936 | /* We use char because int might match the return type of a gcc2 | |
13937 | builtin and then its argument prototype would still apply. */ | |
13938 | char gethostbyname(); | |
90dd450c | 13939 | |
21d1c967 | 13940 | int main() { |
90dd450c | 13941 | |
21d1c967 GD |
13942 | /* The GNU C library defines this for functions which it implements |
13943 | to always fail with ENOSYS. Some functions are actually named | |
13944 | something starting with __ and the normal name is an alias. */ | |
13945 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
13946 | choke me | |
13947 | #else | |
13948 | gethostbyname(); | |
13949 | #endif | |
90dd450c | 13950 | |
21d1c967 GD |
13951 | ; return 0; } |
13952 | EOF | |
17234b26 | 13953 | if { (eval echo configure:13954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21d1c967 GD |
13954 | rm -rf conftest* |
13955 | eval "ac_cv_func_gethostbyname=yes" | |
13956 | else | |
13957 | echo "configure: failed program was:" >&5 | |
13958 | cat conftest.$ac_ext >&5 | |
13959 | rm -rf conftest* | |
13960 | eval "ac_cv_func_gethostbyname=no" | |
13961 | fi | |
13962 | rm -f conftest* | |
90dd450c VZ |
13963 | fi |
13964 | ||
21d1c967 GD |
13965 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then |
13966 | echo "$ac_t""yes" 1>&6 | |
13967 | : | |
13968 | else | |
13969 | echo "$ac_t""no" 1>&6 | |
13970 | fi | |
90dd450c | 13971 | |
21d1c967 GD |
13972 | if test $ac_cv_func_gethostbyname = no; then |
13973 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 | |
17234b26 | 13974 | echo "configure:13975: checking for gethostbyname in -lnsl" >&5 |
21d1c967 GD |
13975 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
13976 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13977 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13978 | else | |
13979 | ac_save_LIBS="$LIBS" | |
13980 | LIBS="-lnsl $LIBS" | |
13981 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 13982 | #line 13983 "configure" |
21d1c967 GD |
13983 | #include "confdefs.h" |
13984 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13985 | /* We use char because int might match the return type of a gcc2 | |
13986 | builtin and then its argument prototype would still apply. */ | |
13987 | char gethostbyname(); | |
90dd450c | 13988 | |
21d1c967 GD |
13989 | int main() { |
13990 | gethostbyname() | |
13991 | ; return 0; } | |
13992 | EOF | |
17234b26 | 13993 | if { (eval echo configure:13994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21d1c967 GD |
13994 | rm -rf conftest* |
13995 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13996 | else | |
13997 | echo "configure: failed program was:" >&5 | |
13998 | cat conftest.$ac_ext >&5 | |
13999 | rm -rf conftest* | |
14000 | eval "ac_cv_lib_$ac_lib_var=no" | |
1f8ae82f | 14001 | fi |
21d1c967 GD |
14002 | rm -f conftest* |
14003 | LIBS="$ac_save_LIBS" | |
f0c87536 | 14004 | |
21d1c967 GD |
14005 | fi |
14006 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14007 | echo "$ac_t""yes" 1>&6 | |
14008 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
14009 | else | |
14010 | echo "$ac_t""no" 1>&6 | |
14011 | fi | |
90dd450c | 14012 | |
90dd450c VZ |
14013 | fi |
14014 | ||
21d1c967 GD |
14015 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
14016 | # socket/setsockopt and other routines are undefined under SCO ODT | |
14017 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
14018 | # on later versions), says simon@lia.di.epfl.ch: it contains | |
14019 | # gethostby* variants that don't use the nameserver (or something). | |
14020 | # -lsocket must be given before -lnsl if both are needed. | |
14021 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
14022 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
17234b26 | 14023 | echo "configure:14024: checking for connect" >&5 |
21d1c967 GD |
14024 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
14025 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14026 | else | |
14027 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 14028 | #line 14029 "configure" |
21d1c967 GD |
14029 | #include "confdefs.h" |
14030 | /* System header to define __stub macros and hopefully few prototypes, | |
14031 | which can conflict with char connect(); below. */ | |
14032 | #include <assert.h> | |
14033 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14034 | /* We use char because int might match the return type of a gcc2 | |
14035 | builtin and then its argument prototype would still apply. */ | |
14036 | char connect(); | |
90dd450c | 14037 | |
21d1c967 | 14038 | int main() { |
90dd450c | 14039 | |
21d1c967 GD |
14040 | /* The GNU C library defines this for functions which it implements |
14041 | to always fail with ENOSYS. Some functions are actually named | |
14042 | something starting with __ and the normal name is an alias. */ | |
14043 | #if defined (__stub_connect) || defined (__stub___connect) | |
14044 | choke me | |
14045 | #else | |
14046 | connect(); | |
14047 | #endif | |
90dd450c | 14048 | |
21d1c967 GD |
14049 | ; return 0; } |
14050 | EOF | |
17234b26 | 14051 | if { (eval echo configure:14052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21d1c967 GD |
14052 | rm -rf conftest* |
14053 | eval "ac_cv_func_connect=yes" | |
14054 | else | |
14055 | echo "configure: failed program was:" >&5 | |
14056 | cat conftest.$ac_ext >&5 | |
14057 | rm -rf conftest* | |
14058 | eval "ac_cv_func_connect=no" | |
14059 | fi | |
14060 | rm -f conftest* | |
14061 | fi | |
90dd450c | 14062 | |
21d1c967 GD |
14063 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then |
14064 | echo "$ac_t""yes" 1>&6 | |
14065 | : | |
14066 | else | |
14067 | echo "$ac_t""no" 1>&6 | |
14068 | fi | |
1f8ae82f | 14069 | |
21d1c967 GD |
14070 | if test $ac_cv_func_connect = no; then |
14071 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 | |
17234b26 | 14072 | echo "configure:14073: checking for connect in -lsocket" >&5 |
21d1c967 GD |
14073 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
14074 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
0fbb762e MB |
14075 | echo $ac_n "(cached) $ac_c" 1>&6 |
14076 | else | |
21d1c967 GD |
14077 | ac_save_LIBS="$LIBS" |
14078 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
14079 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 14080 | #line 14081 "configure" |
0fbb762e | 14081 | #include "confdefs.h" |
21d1c967 GD |
14082 | /* Override any gcc2 internal prototype to avoid an error. */ |
14083 | /* We use char because int might match the return type of a gcc2 | |
14084 | builtin and then its argument prototype would still apply. */ | |
14085 | char connect(); | |
90dd450c VZ |
14086 | |
14087 | int main() { | |
21d1c967 | 14088 | connect() |
90dd450c | 14089 | ; return 0; } |
0fbb762e | 14090 | EOF |
17234b26 | 14091 | if { (eval echo configure:14092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
0fbb762e | 14092 | rm -rf conftest* |
21d1c967 | 14093 | eval "ac_cv_lib_$ac_lib_var=yes" |
0fbb762e | 14094 | else |
0fbb762e MB |
14095 | echo "configure: failed program was:" >&5 |
14096 | cat conftest.$ac_ext >&5 | |
14097 | rm -rf conftest* | |
21d1c967 | 14098 | eval "ac_cv_lib_$ac_lib_var=no" |
0fbb762e MB |
14099 | fi |
14100 | rm -f conftest* | |
21d1c967 | 14101 | LIBS="$ac_save_LIBS" |
90dd450c | 14102 | |
21d1c967 GD |
14103 | fi |
14104 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14105 | echo "$ac_t""yes" 1>&6 | |
14106 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
14107 | else | |
14108 | echo "$ac_t""no" 1>&6 | |
14109 | fi | |
90dd450c | 14110 | |
21d1c967 | 14111 | fi |
90dd450c | 14112 | |
21d1c967 GD |
14113 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
14114 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
17234b26 | 14115 | echo "configure:14116: checking for remove" >&5 |
21d1c967 GD |
14116 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
14117 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14118 | else | |
14119 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 14120 | #line 14121 "configure" |
21d1c967 GD |
14121 | #include "confdefs.h" |
14122 | /* System header to define __stub macros and hopefully few prototypes, | |
14123 | which can conflict with char remove(); below. */ | |
14124 | #include <assert.h> | |
14125 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14126 | /* We use char because int might match the return type of a gcc2 | |
14127 | builtin and then its argument prototype would still apply. */ | |
14128 | char remove(); | |
90dd450c | 14129 | |
21d1c967 | 14130 | int main() { |
90dd450c | 14131 | |
21d1c967 GD |
14132 | /* The GNU C library defines this for functions which it implements |
14133 | to always fail with ENOSYS. Some functions are actually named | |
14134 | something starting with __ and the normal name is an alias. */ | |
14135 | #if defined (__stub_remove) || defined (__stub___remove) | |
14136 | choke me | |
14137 | #else | |
14138 | remove(); | |
14139 | #endif | |
90dd450c | 14140 | |
21d1c967 GD |
14141 | ; return 0; } |
14142 | EOF | |
17234b26 | 14143 | if { (eval echo configure:14144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21d1c967 GD |
14144 | rm -rf conftest* |
14145 | eval "ac_cv_func_remove=yes" | |
14146 | else | |
14147 | echo "configure: failed program was:" >&5 | |
14148 | cat conftest.$ac_ext >&5 | |
14149 | rm -rf conftest* | |
14150 | eval "ac_cv_func_remove=no" | |
14151 | fi | |
14152 | rm -f conftest* | |
14153 | fi | |
90dd450c | 14154 | |
21d1c967 GD |
14155 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then |
14156 | echo "$ac_t""yes" 1>&6 | |
14157 | : | |
14158 | else | |
14159 | echo "$ac_t""no" 1>&6 | |
14160 | fi | |
90dd450c | 14161 | |
21d1c967 GD |
14162 | if test $ac_cv_func_remove = no; then |
14163 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 | |
17234b26 | 14164 | echo "configure:14165: checking for remove in -lposix" >&5 |
21d1c967 GD |
14165 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
14166 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14167 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14168 | else | |
14169 | ac_save_LIBS="$LIBS" | |
14170 | LIBS="-lposix $LIBS" | |
14171 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 14172 | #line 14173 "configure" |
21d1c967 GD |
14173 | #include "confdefs.h" |
14174 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14175 | /* We use char because int might match the return type of a gcc2 | |
14176 | builtin and then its argument prototype would still apply. */ | |
14177 | char remove(); | |
90dd450c | 14178 | |
21d1c967 GD |
14179 | int main() { |
14180 | remove() | |
14181 | ; return 0; } | |
14182 | EOF | |
17234b26 | 14183 | if { (eval echo configure:14184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21d1c967 GD |
14184 | rm -rf conftest* |
14185 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14186 | else | |
14187 | echo "configure: failed program was:" >&5 | |
14188 | cat conftest.$ac_ext >&5 | |
14189 | rm -rf conftest* | |
14190 | eval "ac_cv_lib_$ac_lib_var=no" | |
0fbb762e | 14191 | fi |
21d1c967 GD |
14192 | rm -f conftest* |
14193 | LIBS="$ac_save_LIBS" | |
0fbb762e | 14194 | |
21d1c967 GD |
14195 | fi |
14196 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14197 | echo "$ac_t""yes" 1>&6 | |
14198 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
14199 | else | |
14200 | echo "$ac_t""no" 1>&6 | |
14201 | fi | |
19bc6aad | 14202 | |
90dd450c | 14203 | fi |
19bc6aad | 14204 | |
21d1c967 GD |
14205 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
14206 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 | |
17234b26 | 14207 | echo "configure:14208: checking for shmat" >&5 |
21d1c967 GD |
14208 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
14209 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14210 | else | |
14211 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 14212 | #line 14213 "configure" |
21d1c967 GD |
14213 | #include "confdefs.h" |
14214 | /* System header to define __stub macros and hopefully few prototypes, | |
14215 | which can conflict with char shmat(); below. */ | |
14216 | #include <assert.h> | |
14217 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14218 | /* We use char because int might match the return type of a gcc2 | |
14219 | builtin and then its argument prototype would still apply. */ | |
14220 | char shmat(); | |
19bc6aad | 14221 | |
21d1c967 | 14222 | int main() { |
90dd450c | 14223 | |
21d1c967 GD |
14224 | /* The GNU C library defines this for functions which it implements |
14225 | to always fail with ENOSYS. Some functions are actually named | |
14226 | something starting with __ and the normal name is an alias. */ | |
14227 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
14228 | choke me | |
14229 | #else | |
14230 | shmat(); | |
14231 | #endif | |
90dd450c | 14232 | |
21d1c967 GD |
14233 | ; return 0; } |
14234 | EOF | |
17234b26 | 14235 | if { (eval echo configure:14236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21d1c967 GD |
14236 | rm -rf conftest* |
14237 | eval "ac_cv_func_shmat=yes" | |
90dd450c | 14238 | else |
21d1c967 GD |
14239 | echo "configure: failed program was:" >&5 |
14240 | cat conftest.$ac_ext >&5 | |
14241 | rm -rf conftest* | |
14242 | eval "ac_cv_func_shmat=no" | |
19bc6aad | 14243 | fi |
21d1c967 | 14244 | rm -f conftest* |
19bc6aad | 14245 | fi |
21d1c967 GD |
14246 | |
14247 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
14248 | echo "$ac_t""yes" 1>&6 | |
14249 | : | |
19bc6aad VZ |
14250 | else |
14251 | echo "$ac_t""no" 1>&6 | |
14252 | fi | |
19bc6aad | 14253 | |
21d1c967 GD |
14254 | if test $ac_cv_func_shmat = no; then |
14255 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 | |
17234b26 | 14256 | echo "configure:14257: checking for shmat in -lipc" >&5 |
21d1c967 GD |
14257 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
14258 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9f8148b1 GD |
14259 | echo $ac_n "(cached) $ac_c" 1>&6 |
14260 | else | |
21d1c967 GD |
14261 | ac_save_LIBS="$LIBS" |
14262 | LIBS="-lipc $LIBS" | |
14263 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 14264 | #line 14265 "configure" |
21d1c967 GD |
14265 | #include "confdefs.h" |
14266 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14267 | /* We use char because int might match the return type of a gcc2 | |
14268 | builtin and then its argument prototype would still apply. */ | |
14269 | char shmat(); | |
14270 | ||
14271 | int main() { | |
14272 | shmat() | |
14273 | ; return 0; } | |
14274 | EOF | |
17234b26 | 14275 | if { (eval echo configure:14276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21d1c967 GD |
14276 | rm -rf conftest* |
14277 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9f8148b1 | 14278 | else |
21d1c967 GD |
14279 | echo "configure: failed program was:" >&5 |
14280 | cat conftest.$ac_ext >&5 | |
14281 | rm -rf conftest* | |
14282 | eval "ac_cv_lib_$ac_lib_var=no" | |
9f8148b1 | 14283 | fi |
21d1c967 GD |
14284 | rm -f conftest* |
14285 | LIBS="$ac_save_LIBS" | |
14286 | ||
9f8148b1 | 14287 | fi |
21d1c967 GD |
14288 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
14289 | echo "$ac_t""yes" 1>&6 | |
14290 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
9f8148b1 GD |
14291 | else |
14292 | echo "$ac_t""no" 1>&6 | |
14293 | fi | |
90dd450c | 14294 | |
90dd450c | 14295 | fi |
21d1c967 | 14296 | fi |
10f2d63a | 14297 | |
21d1c967 GD |
14298 | # Check for libraries that X11R6 Xt/Xaw programs need. |
14299 | ac_save_LDFLAGS="$LDFLAGS" | |
14300 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
14301 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
14302 | # check for ICE first), but we must link in the order -lSM -lICE or | |
14303 | # we get undefined symbols. So assume we have SM if we have ICE. | |
14304 | # These have to be linked with before -lX11, unlike the other | |
14305 | # libraries we check for below, so use a different variable. | |
14306 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. | |
14307 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
17234b26 | 14308 | echo "configure:14309: checking for IceConnectionNumber in -lICE" >&5 |
21d1c967 GD |
14309 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
14310 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
29fd3c0c VS |
14311 | echo $ac_n "(cached) $ac_c" 1>&6 |
14312 | else | |
21d1c967 GD |
14313 | ac_save_LIBS="$LIBS" |
14314 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
14315 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 14316 | #line 14317 "configure" |
29fd3c0c | 14317 | #include "confdefs.h" |
21d1c967 GD |
14318 | /* Override any gcc2 internal prototype to avoid an error. */ |
14319 | /* We use char because int might match the return type of a gcc2 | |
14320 | builtin and then its argument prototype would still apply. */ | |
14321 | char IceConnectionNumber(); | |
14322 | ||
14323 | int main() { | |
14324 | IceConnectionNumber() | |
14325 | ; return 0; } | |
29fd3c0c | 14326 | EOF |
17234b26 | 14327 | if { (eval echo configure:14328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
29fd3c0c | 14328 | rm -rf conftest* |
21d1c967 | 14329 | eval "ac_cv_lib_$ac_lib_var=yes" |
29fd3c0c | 14330 | else |
29fd3c0c VS |
14331 | echo "configure: failed program was:" >&5 |
14332 | cat conftest.$ac_ext >&5 | |
14333 | rm -rf conftest* | |
21d1c967 | 14334 | eval "ac_cv_lib_$ac_lib_var=no" |
29fd3c0c VS |
14335 | fi |
14336 | rm -f conftest* | |
21d1c967 GD |
14337 | LIBS="$ac_save_LIBS" |
14338 | ||
29fd3c0c | 14339 | fi |
21d1c967 | 14340 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
29fd3c0c | 14341 | echo "$ac_t""yes" 1>&6 |
21d1c967 | 14342 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
29fd3c0c VS |
14343 | else |
14344 | echo "$ac_t""no" 1>&6 | |
14345 | fi | |
21d1c967 GD |
14346 | |
14347 | LDFLAGS="$ac_save_LDFLAGS" | |
29fd3c0c | 14348 | |
10f2d63a VZ |
14349 | fi |
14350 | ||
21d1c967 GD |
14351 | |
14352 | if test "$no_x" = "yes"; then | |
14353 | { echo "configure: error: X11 not found" 1>&2; exit 1; } | |
14354 | fi | |
14355 | ||
14356 | GUI_TK_LIBRARY="$X_LIBS" | |
14357 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
14358 | AFMINSTALL=afminstall | |
14359 | COMPILED_X_PROGRAM=0 | |
14360 | ||
14361 | echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6 | |
17234b26 | 14362 | echo "configure:14363: checking for Motif/Lesstif headers" >&5 |
21d1c967 GD |
14363 | |
14364 | ac_find_includes= | |
14365 | for ac_dir in $SEARCH_INCLUDE; | |
14366 | do | |
14367 | if test -f "$ac_dir/Xm/Xm.h"; then | |
14368 | ac_find_includes=$ac_dir | |
14369 | break | |
14370 | fi | |
14371 | done | |
14372 | ||
14373 | if test "$ac_find_includes" != "" ; then | |
14374 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
14375 | else | |
14376 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 14377 | #line 14378 "configure" |
10f2d63a | 14378 | #include "confdefs.h" |
21d1c967 GD |
14379 | |
14380 | #include <Xm/Xm.h> | |
14381 | ||
14382 | int main() { | |
14383 | ||
14384 | int version; | |
14385 | version = xmUseVersion; | |
14386 | ||
14387 | ; return 0; } | |
698dcdb6 | 14388 | EOF |
17234b26 | 14389 | if { (eval echo configure:14390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 14390 | rm -rf conftest* |
21d1c967 GD |
14391 | |
14392 | echo "$ac_t""found in default search path" 1>&6 | |
14393 | COMPILED_X_PROGRAM=1 | |
14394 | ||
10f2d63a | 14395 | else |
90dd450c VZ |
14396 | echo "configure: failed program was:" >&5 |
14397 | cat conftest.$ac_ext >&5 | |
698dcdb6 | 14398 | rm -rf conftest* |
21d1c967 GD |
14399 | |
14400 | echo "$ac_t""no" 1>&6 | |
14401 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
14402 | ||
14403 | ||
10f2d63a VZ |
14404 | fi |
14405 | rm -f conftest* | |
21d1c967 | 14406 | fi |
10f2d63a | 14407 | |
21d1c967 GD |
14408 | if test "$COMPILED_X_PROGRAM" = 0; then |
14409 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 | |
17234b26 | 14410 | echo "configure:14411: checking for Motif/Lesstif library" >&5 |
21d1c967 GD |
14411 | |
14412 | ac_find_libraries= | |
14413 | for ac_dir in $SEARCH_LIB; | |
14414 | do | |
14415 | for ac_extension in a so sl dylib; do | |
14416 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
14417 | ac_find_libraries=$ac_dir | |
14418 | break 2 | |
14419 | fi | |
14420 | done | |
14421 | done | |
14422 | ||
14423 | if test "$ac_find_libraries" != "" ; then | |
14424 | ||
14425 | ac_path_to_include=$ac_find_includes | |
14426 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
14427 | result=$? | |
14428 | if test $result = 0; then | |
14429 | ac_path_to_include="" | |
14430 | else | |
14431 | ac_path_to_include=" -I$ac_find_includes" | |
14432 | fi | |
14433 | ||
14434 | ||
14435 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
14436 | result=$? | |
14437 | if test $result = 0; then | |
14438 | ac_path_to_link="" | |
14439 | else | |
14440 | ac_path_to_link=" -L$ac_find_libraries" | |
14441 | fi | |
14442 | ||
14443 | ||
14444 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
14445 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" | |
14446 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
14447 | else | |
14448 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 14449 | #line 14450 "configure" |
d836ee96 | 14450 | #include "confdefs.h" |
21d1c967 GD |
14451 | |
14452 | #include <Xm/Xm.h> | |
14453 | ||
14454 | int main() { | |
14455 | ||
14456 | int version; | |
14457 | version = xmUseVersion; | |
14458 | ||
14459 | ; return 0; } | |
d836ee96 | 14460 | EOF |
17234b26 | 14461 | if { (eval echo configure:14462: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d836ee96 | 14462 | rm -rf conftest* |
21d1c967 GD |
14463 | |
14464 | echo "$ac_t""found in default search path" 1>&6 | |
14465 | COMPILED_X_PROGRAM=1 | |
14466 | ||
d836ee96 VZ |
14467 | else |
14468 | echo "configure: failed program was:" >&5 | |
14469 | cat conftest.$ac_ext >&5 | |
14470 | rm -rf conftest* | |
21d1c967 GD |
14471 | |
14472 | echo "$ac_t""no" 1>&6 | |
14473 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
14474 | ||
14475 | ||
d836ee96 VZ |
14476 | fi |
14477 | rm -f conftest* | |
21d1c967 GD |
14478 | fi |
14479 | fi | |
14480 | ||
14481 | xpm_link= | |
14482 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
17234b26 | 14483 | echo "configure:14484: checking for Xpm library" >&5 |
21d1c967 GD |
14484 | |
14485 | ac_find_libraries= | |
14486 | for ac_dir in $SEARCH_LIB; | |
14487 | do | |
14488 | for ac_extension in a so sl dylib; do | |
14489 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
14490 | ac_find_libraries=$ac_dir | |
14491 | break 2 | |
14492 | fi | |
14493 | done | |
14494 | done | |
14495 | ||
14496 | if test "$ac_find_libraries" != "" ; then | |
14497 | ||
14498 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
14499 | result=$? | |
14500 | if test $result = 0; then | |
14501 | ac_path_to_link="" | |
14502 | else | |
14503 | ac_path_to_link=" -L$ac_find_libraries" | |
14504 | fi | |
14505 | ||
14506 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
14507 | xpm_link=" -lXpm" | |
14508 | cat >> confdefs.h <<\EOF | |
14509 | #define wxHAVE_LIB_XPM 1 | |
d836ee96 | 14510 | EOF |
90dd450c | 14511 | |
21d1c967 GD |
14512 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
14513 | else | |
14514 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 14515 | #line 14516 "configure" |
d836ee96 | 14516 | #include "confdefs.h" |
21d1c967 GD |
14517 | |
14518 | #include <X11/xpm.h> | |
14519 | ||
14520 | int main() { | |
14521 | ||
14522 | int version; | |
14523 | version = XpmLibraryVersion(); | |
14524 | ||
14525 | ; return 0; } | |
d836ee96 | 14526 | EOF |
17234b26 | 14527 | if { (eval echo configure:14528: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d836ee96 | 14528 | rm -rf conftest* |
21d1c967 GD |
14529 | |
14530 | xpm_link=" -lXpm" | |
14531 | cat >> confdefs.h <<\EOF | |
14532 | #define wxHAVE_LIB_XPM 1 | |
14533 | EOF | |
14534 | ||
14535 | echo "$ac_t""found in default search path" 1>&6 | |
14536 | COMPILED_X_PROGRAM=0 | |
14537 | ||
d836ee96 VZ |
14538 | else |
14539 | echo "configure: failed program was:" >&5 | |
14540 | cat conftest.$ac_ext >&5 | |
14541 | rm -rf conftest* | |
21d1c967 GD |
14542 | |
14543 | echo "$ac_t""no" 1>&6 | |
14544 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
14545 | ||
14546 | ||
d836ee96 VZ |
14547 | fi |
14548 | rm -f conftest* | |
21d1c967 GD |
14549 | fi |
14550 | ||
17234b26 MB |
14551 | xt_needs_sm_ice= |
14552 | case "${host}" in | |
14553 | *-*-cygwin* ) | |
14554 | xt_needs_sm_ice=" -lSM -lICE" | |
14555 | ;; | |
14556 | esac | |
14557 | ||
14558 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link -lXmu -lXext -lXt${xt_needs_sm_ice} -lX11" | |
21d1c967 GD |
14559 | TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo" |
14560 | TOOLKIT=MOTIF | |
14561 | GUIDIST=MOTIF_DIST | |
14562 | fi | |
14563 | ||
14564 | if test "$wxUSE_MAC" = 1; then | |
14565 | if test "$wxUSE_PRECOMP" = "yes"; then | |
14566 | CPPFLAGS="$CPPFLAGS -cpp-precomp" | |
14567 | else | |
14568 | CPPFLAGS="$CPPFLAGS -no-cpp-precomp" | |
14569 | fi | |
14570 | CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile" | |
14571 | CFLAGS="$CFLAGS -fpascal-strings" | |
14572 | CXXFLAGS="$CXXFLAGS -fpascal-strings" | |
14573 | ||
14574 | TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile" | |
14575 | TOOLKIT=MAC | |
14576 | GUIDIST=MACX_DIST | |
14577 | fi | |
14578 | ||
14579 | if test "$wxUSE_PM" = 1; then | |
14580 | TOOLKIT=PM | |
14581 | GUIDIST=GTK_DIST | |
14582 | fi | |
14583 | ||
14584 | if test "$TOOLKIT" = "PM" ; then | |
14585 | TOOLKIT_DIR="os2" | |
14586 | else | |
14587 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
14588 | fi | |
14589 | ||
14590 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" | |
14591 | ||
14592 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
14593 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
14594 | ||
14595 | ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}" | |
14596 | ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}" | |
14597 | ||
14598 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" | |
14599 | if test "$wxUSE_X11" = 1; then | |
14600 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes" | |
14601 | else | |
14602 | TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}" | |
14603 | fi | |
14604 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" | |
14605 | WIDGET_SET=univ | |
14606 | else | |
14607 | ALL_OBJECTS="\$(GUIOBJS)" | |
14608 | ALL_SOURCES="\$(ALL_SOURCES)" | |
14609 | ALL_HEADERS="\$(ALL_HEADERS)" | |
14610 | fi | |
14611 | ||
14612 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" | |
14613 | ||
14614 | if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then | |
14615 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" | |
14616 | fi | |
14617 | ||
14618 | if test "$wxUSE_HTML" = "yes"; then | |
14619 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
14620 | fi | |
14621 | ||
14622 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
14623 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" | |
14624 | fi | |
14625 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
14626 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
14627 | fi | |
14628 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
14629 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
14630 | fi | |
14631 | ||
14632 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
14633 | DISTDIR="wx\$(TOOLKIT)" | |
90dd450c | 14634 | else |
21d1c967 GD |
14635 | USE_GUI=0 |
14636 | ||
14637 | TOOLKIT_DIR="base" | |
14638 | ||
14639 | if test "$USE_WIN32" = 1 ; then | |
14640 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}" | |
14641 | TOOLKIT_VPATH="\${top_srcdir}/src/msw" | |
14642 | ||
14643 | TOOLKIT="MSW" | |
14644 | else | |
14645 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}" | |
14646 | TOOLKIT_VPATH="\${top_srcdir}/src/unix" | |
14647 | fi | |
14648 | ||
14649 | ALL_SOURCES="\$(ALL_SOURCES)" | |
14650 | ALL_HEADERS="\$(ALL_HEADERS)" | |
14651 | ||
14652 | PORT_FILES="\${top_srcdir}/src/files.lst" | |
14653 | ||
14654 | GUIDIST="BASE_DIST" | |
14655 | DISTDIR="wxBase" | |
d836ee96 VZ |
14656 | fi |
14657 | ||
21d1c967 GD |
14658 | |
14659 | if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then | |
14660 | ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)" | |
6232543b | 14661 | fi |
21d1c967 GD |
14662 | |
14663 | if test "$wxUSE_REGEX" = "builtin" ; then | |
14664 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" | |
1e487827 | 14665 | fi |
21d1c967 GD |
14666 | if test "$wxUSE_ZLIB" = "builtin" ; then |
14667 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
bd3277fe VZ |
14668 | fi |
14669 | ||
698dcdb6 | 14670 | |
21d1c967 GD |
14671 | if test "$wxUSE_OPENGL" = "yes"; then |
14672 | if test "$wxUSE_MAC" = 1; then | |
14673 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
14674 | elif test "$wxUSE_MSW" = 1; then | |
14675 | OPENGL_LIBS="-lopengl32 -lglu32" | |
14676 | else | |
14677 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` | |
14678 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 | |
17234b26 | 14679 | echo "configure:14680: checking for GL/gl.h" >&5 |
90dd450c | 14680 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
698dcdb6 | 14681 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 14682 | else |
698dcdb6 | 14683 | cat > conftest.$ac_ext <<EOF |
17234b26 | 14684 | #line 14685 "configure" |
10f2d63a | 14685 | #include "confdefs.h" |
21d1c967 | 14686 | #include <GL/gl.h> |
698dcdb6 | 14687 | EOF |
90dd450c | 14688 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
17234b26 | 14689 | { (eval echo configure:14690: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
90dd450c VZ |
14690 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14691 | if test -z "$ac_err"; then | |
4f14bcd8 | 14692 | rm -rf conftest* |
90dd450c | 14693 | eval "ac_cv_header_$ac_safe=yes" |
698dcdb6 | 14694 | else |
90dd450c | 14695 | echo "$ac_err" >&5 |
698dcdb6 VZ |
14696 | echo "configure: failed program was:" >&5 |
14697 | cat conftest.$ac_ext >&5 | |
4f14bcd8 | 14698 | rm -rf conftest* |
90dd450c | 14699 | eval "ac_cv_header_$ac_safe=no" |
703e0a69 | 14700 | fi |
4f14bcd8 | 14701 | rm -f conftest* |
698dcdb6 | 14702 | fi |
90dd450c VZ |
14703 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
14704 | echo "$ac_t""yes" 1>&6 | |
21d1c967 GD |
14705 | |
14706 | echo $ac_n "checking for -lGL""... $ac_c" 1>&6 | |
17234b26 | 14707 | echo "configure:14708: checking for -lGL" >&5 |
21d1c967 GD |
14708 | |
14709 | ac_find_libraries= | |
14710 | for ac_dir in $SEARCH_LIB; | |
14711 | do | |
14712 | for ac_extension in a so sl dylib; do | |
14713 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
14714 | ac_find_libraries=$ac_dir | |
14715 | break 2 | |
14716 | fi | |
14717 | done | |
14718 | done | |
14719 | ||
14720 | if test "$ac_find_libraries" != "" ; then | |
14721 | ||
14722 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
14723 | result=$? | |
14724 | if test $result = 0; then | |
14725 | ac_path_to_link="" | |
14726 | else | |
14727 | ac_path_to_link=" -L$ac_find_libraries" | |
14728 | fi | |
14729 | ||
14730 | if test "$ac_path_to_link" = " -L/usr/lib" ; then | |
14731 | LDFLAGS_GL="$LDFLAGS" | |
14732 | else | |
14733 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
14734 | fi | |
14735 | OPENGL_LIBS="-lGL -lGLU" | |
14736 | echo "$ac_t""yes" 1>&6 | |
14737 | else | |
14738 | echo "$ac_t""no" 1>&6 | |
14739 | echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6 | |
17234b26 | 14740 | echo "configure:14741: checking for -lMesaGL" >&5 |
21d1c967 GD |
14741 | |
14742 | ac_find_libraries= | |
14743 | for ac_dir in $SEARCH_LIB; | |
14744 | do | |
14745 | for ac_extension in a so sl dylib; do | |
14746 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
14747 | ac_find_libraries=$ac_dir | |
14748 | break 2 | |
14749 | fi | |
14750 | done | |
14751 | done | |
14752 | ||
14753 | if test "$ac_find_libraries" != "" ; then | |
14754 | ||
14755 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
14756 | result=$? | |
14757 | if test $result = 0; then | |
14758 | ac_path_to_link="" | |
14759 | else | |
14760 | ac_path_to_link=" -L$ac_find_libraries" | |
14761 | fi | |
14762 | ||
14763 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
14764 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
14765 | echo "$ac_t""yes" 1>&6 | |
14766 | else | |
14767 | echo "$ac_t""no" 1>&6 | |
14768 | fi | |
14769 | fi | |
14770 | ||
90dd450c VZ |
14771 | else |
14772 | echo "$ac_t""no" 1>&6 | |
14773 | fi | |
698dcdb6 VZ |
14774 | |
14775 | ||
21d1c967 GD |
14776 | if test "x$OPENGL_LIBS" = "x"; then |
14777 | { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; } | |
14778 | fi | |
14779 | fi | |
90dd450c | 14780 | |
21d1c967 GD |
14781 | if test "$wxUSE_OPENGL" = "yes"; then |
14782 | cat >> confdefs.h <<\EOF | |
14783 | #define wxUSE_OPENGL 1 | |
698dcdb6 | 14784 | EOF |
21d1c967 GD |
14785 | |
14786 | cat >> confdefs.h <<\EOF | |
14787 | #define wxUSE_GLCANVAS 1 | |
14788 | EOF | |
14789 | ||
14790 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl" | |
14791 | fi | |
10f2d63a | 14792 | fi |
21d1c967 GD |
14793 | |
14794 | if test -z "$TOOLKIT_VPATH" ; then | |
14795 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" | |
10f2d63a | 14796 | fi |
21d1c967 GD |
14797 | |
14798 | if test -n "$TOOLKIT" ; then | |
14799 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
14800 | fi | |
14801 | ||
14802 | lib_unicode_suffix= | |
14803 | if test "$wxUSE_UNICODE" = "yes"; then | |
14804 | lib_unicode_suffix=u | |
90dd450c | 14805 | fi |
698dcdb6 | 14806 | |
21d1c967 GD |
14807 | lib_debug_suffix= |
14808 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
14809 | lib_debug_suffix=d | |
14810 | fi | |
698dcdb6 | 14811 | |
21d1c967 GD |
14812 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}" |
14813 | TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}" | |
14814 | ||
14815 | if test "$cross_compiling" = "yes"; then | |
14816 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}" | |
14817 | TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}" | |
14818 | fi | |
14819 | ||
14820 | WX_LIBRARY="wx_${TOOLCHAIN_NAME}" | |
14821 | WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}" | |
14822 | ||
14823 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
14824 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
14825 | ||
14826 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}" | |
14827 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
14828 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}" | |
14829 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
14830 | ||
14831 | case "${host}" in | |
14832 | *-*-cygwin* | *-*-mingw32* ) | |
14833 | ||
14834 | ||
14835 | ||
17234b26 | 14836 | if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then |
21d1c967 GD |
14837 | WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" |
14838 | WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" | |
14839 | WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}" | |
14840 | WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
14841 | else | |
14842 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
14843 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
14844 | fi | |
14845 | ;; | |
14846 | ||
14847 | *-*-darwin* ) | |
14848 | if test "$wxUSE_MAC" = 1; then | |
14849 | WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.r" | |
14850 | WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.rsrc" | |
14851 | fi | |
14852 | ;; | |
14853 | esac | |
14854 | ||
14855 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
14856 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a" | |
14857 | ||
14858 | WXCONFIG_LIBS="-l${WX_LIBRARY}" | |
14859 | WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a" | |
14860 | ||
14861 | if test "$wxUSE_OPENGL" = "yes"; then | |
14862 | WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}" | |
14863 | WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}" | |
14864 | fi | |
14865 | ||
14866 | ||
14867 | ||
14868 | if test "$wxUSE_SHARED" = "yes"; then | |
14869 | case "${host}" in | |
14870 | *-pc-os2_emx | *-pc-os2-emx | \ | |
14871 | *-pc-msdosdjgpp ) | |
14872 | wxUSE_SHARED=no | |
14873 | echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2 | |
14874 | ;; | |
14875 | esac | |
14876 | fi | |
14877 | ||
14878 | if test "$wxUSE_SHARED" = "yes"; then | |
14879 | ||
14880 | if test "$wxUSE_OPENGL" = "yes"; then | |
14881 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
14882 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}" | |
14883 | else | |
14884 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
14885 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}" | |
14886 | fi | |
14887 | ||
14888 | if test "$GCC" = "yes"; then | |
14889 | PIC_FLAG="-fPIC" | |
14890 | fi | |
14891 | ||
14892 | SHARED_LD="${CXX} -shared -o" | |
14893 | ||
14894 | case "${host}" in | |
14895 | *-hp-hpux* ) | |
14896 | if test "$GCC" == "yes"; then | |
14897 | SHARED_LD="${SHARED_LD} ${PIC_FLAG}" | |
14898 | else | |
14899 | LDFLAGS="$LDFLAGS -L/usr/lib" | |
14900 | ||
14901 | SHARED_LD="${CXX} -b -o" | |
14902 | PIC_FLAG="+Z" | |
14903 | fi | |
14904 | ||
14905 | if test "$wxUSE_OPENGL" = "yes"; then | |
14906 | WX_ALL_INSTALLED="preinstall_gl" | |
14907 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" | |
14908 | else | |
14909 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" | |
14910 | fi | |
14911 | ;; | |
14912 | ||
14913 | *-*-linux* ) | |
14914 | if test "$GCC" != "yes"; then | |
14915 | echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6 | |
17234b26 | 14916 | echo "configure:14917: checking for Intel compiler" >&5 |
21d1c967 | 14917 | if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then |
698dcdb6 | 14918 | echo $ac_n "(cached) $ac_c" 1>&6 |
698dcdb6 | 14919 | else |
21d1c967 GD |
14920 | |
14921 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 14922 | #line 14923 "configure" |
698dcdb6 | 14923 | #include "confdefs.h" |
90dd450c VZ |
14924 | |
14925 | int main() { | |
14926 | ||
21d1c967 GD |
14927 | #ifndef __INTEL_COMPILER |
14928 | #error Not icc | |
14929 | #endif | |
14930 | ||
90dd450c | 14931 | ; return 0; } |
698dcdb6 | 14932 | EOF |
17234b26 | 14933 | if { (eval echo configure:14934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
90dd450c | 14934 | rm -rf conftest* |
21d1c967 | 14935 | wx_cv_prog_icc=yes |
6232543b | 14936 | else |
698dcdb6 VZ |
14937 | echo "configure: failed program was:" >&5 |
14938 | cat conftest.$ac_ext >&5 | |
90dd450c | 14939 | rm -rf conftest* |
21d1c967 GD |
14940 | wx_cv_prog_icc=no |
14941 | ||
6232543b | 14942 | fi |
90dd450c | 14943 | rm -f conftest* |
21d1c967 | 14944 | |
698dcdb6 VZ |
14945 | fi |
14946 | ||
21d1c967 GD |
14947 | echo "$ac_t""$wx_cv_prog_icc" 1>&6 |
14948 | if test "$wx_cv_prog_icc" = "yes"; then | |
14949 | PIC_FLAG="-KPIC" | |
14950 | fi | |
14951 | fi | |
14952 | ||
14953 | if test "$wxUSE_SONAME" = "yes" ; then | |
14954 | SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}" | |
14955 | SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}" | |
14956 | WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)" | |
14957 | fi | |
14958 | ;; | |
14959 | ||
14960 | *-*-solaris2* ) | |
14961 | if test "$GCC" = yes ; then | |
14962 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
14963 | else | |
14964 | SHARED_LD="${CXX} -G -o" | |
14965 | PIC_FLAG="-KPIC" | |
14966 | SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}" | |
14967 | SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}" | |
14968 | fi | |
14969 | ;; | |
14970 | ||
14971 | *-*-darwin* ) | |
14972 | CFLAGS="$CFLAGS -fno-common -DWXMAKINGDLL" | |
14973 | CXXFLAGS="$CXXFLAGS -fno-common -DWXMAKINGDLL" | |
14974 | SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o" | |
14975 | PIC_FLAG="-dynamic -fPIC" | |
14976 | SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION}" | |
14977 | SONAME_FLAGS_GL=${SONAME_FLAGS} | |
14978 | ;; | |
14979 | ||
14980 | *-*-aix* ) | |
321d2b14 VZ |
14981 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. |
14982 | set dummy makeC++SharedLib; ac_word=$2 | |
14983 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
17234b26 | 14984 | echo "configure:14985: checking for $ac_word" >&5 |
321d2b14 VZ |
14985 | if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then |
14986 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14987 | else | |
14988 | if test -n "$AIX_CXX_LD"; then | |
14989 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
14990 | else | |
14991 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
14992 | ac_dummy="$PATH" | |
14993 | for ac_dir in $ac_dummy; do | |
14994 | test -z "$ac_dir" && ac_dir=. | |
14995 | if test -f $ac_dir/$ac_word; then | |
14996 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
14997 | break | |
14998 | fi | |
14999 | done | |
15000 | IFS="$ac_save_ifs" | |
15001 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" | |
15002 | fi | |
15003 | fi | |
15004 | AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD" | |
15005 | if test -n "$AIX_CXX_LD"; then | |
15006 | echo "$ac_t""$AIX_CXX_LD" 1>&6 | |
15007 | else | |
15008 | echo "$ac_t""no" 1>&6 | |
15009 | fi | |
15010 | ||
15011 | ||
15012 | SHARED_LD="$(AIX_CXX_LD) -p 0 -o" | |
21d1c967 GD |
15013 | ;; |
15014 | ||
15015 | *-*-cygwin* | *-*-mingw32* ) | |
15016 | ||
15017 | WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a" | |
15018 | ||
15019 | SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o" | |
15020 | TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1" | |
15021 | ||
15022 | PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1" | |
15023 | ||
15024 | if test "$wxUSE_OPENGL" = "yes"; then | |
15025 | WX_ALL_INSTALLED="preinstall_gl" | |
15026 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" | |
15027 | else | |
15028 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" | |
15029 | fi | |
15030 | ;; | |
15031 | ||
15032 | *-*-beos* ) | |
15033 | SHARED_LD="${LD} -shared -o" | |
15034 | ;; | |
15035 | ||
15036 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ | |
15037 | *-*-sunos4* | \ | |
15038 | *-*-irix5* | *-*-irix6* | \ | |
15039 | *-*-osf* | \ | |
15040 | *-*-dgux5* | \ | |
15041 | *-*-sysv5* ) | |
15042 | ;; | |
15043 | ||
15044 | *) | |
15045 | { echo "configure: error: unknown system type $host." 1>&2; exit 1; } | |
15046 | esac | |
15047 | ||
15048 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
15049 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
15050 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" | |
15051 | fi | |
15052 | ||
15053 | WX_TARGET_LIBRARY_TYPE="so" | |
15054 | INSTALL_LIBRARY='$(INSTALL_PROGRAM)' | |
90dd450c | 15055 | fi |
10f2d63a | 15056 | |
21d1c967 GD |
15057 | if test "$wxUSE_SHARED" = "no"; then |
15058 | ||
15059 | if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then | |
15060 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
15061 | fi | |
15062 | ||
15063 | if test "$wxUSE_MAC" = 1; then | |
15064 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
15065 | fi | |
15066 | ||
15067 | if test "$wxUSE_OPENGL" = "yes"; then | |
15068 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl" | |
15069 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}" | |
15070 | else | |
15071 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}" | |
15072 | fi | |
15073 | ||
15074 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
15075 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" | |
15076 | ||
15077 | WX_TARGET_LIBRARY_TYPE="a" | |
15078 | INSTALL_LIBRARY='$(INSTALL_DATA)' | |
90dd450c | 15079 | fi |
1e487827 | 15080 | |
21d1c967 GD |
15081 | if test "$wxUSE_MAC" = 1; then |
15082 | LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}" | |
15083 | WX_ALL="${WX_ALL} ${LIBWXMACRES}" | |
15084 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res" | |
15085 | # Extract the first word of "Rez", so it can be a program name with args. | |
15086 | set dummy Rez; ac_word=$2 | |
15087 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
17234b26 | 15088 | echo "configure:15089: checking for $ac_word" >&5 |
21d1c967 | 15089 | if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then |
698dcdb6 | 15090 | echo $ac_n "(cached) $ac_c" 1>&6 |
b93d0d08 | 15091 | else |
21d1c967 GD |
15092 | if test -n "$RESCOMP"; then |
15093 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
b93d0d08 | 15094 | else |
21d1c967 GD |
15095 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
15096 | ac_dummy="$PATH" | |
15097 | for ac_dir in $ac_dummy; do | |
15098 | test -z "$ac_dir" && ac_dir=. | |
15099 | if test -f $ac_dir/$ac_word; then | |
15100 | ac_cv_prog_RESCOMP="Rez" | |
15101 | break | |
15102 | fi | |
15103 | done | |
15104 | IFS="$ac_save_ifs" | |
15105 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
b93d0d08 | 15106 | fi |
b93d0d08 | 15107 | fi |
21d1c967 GD |
15108 | RESCOMP="$ac_cv_prog_RESCOMP" |
15109 | if test -n "$RESCOMP"; then | |
15110 | echo "$ac_t""$RESCOMP" 1>&6 | |
90dd450c VZ |
15111 | else |
15112 | echo "$ac_t""no" 1>&6 | |
15113 | fi | |
b93d0d08 | 15114 | |
21d1c967 GD |
15115 | # Extract the first word of "DeRez", so it can be a program name with args. |
15116 | set dummy DeRez; ac_word=$2 | |
15117 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
17234b26 | 15118 | echo "configure:15119: checking for $ac_word" >&5 |
21d1c967 | 15119 | if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then |
698dcdb6 | 15120 | echo $ac_n "(cached) $ac_c" 1>&6 |
3a922bb4 | 15121 | else |
21d1c967 GD |
15122 | if test -n "$DEREZ"; then |
15123 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
4f14bcd8 | 15124 | else |
21d1c967 GD |
15125 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
15126 | ac_dummy="$PATH" | |
15127 | for ac_dir in $ac_dummy; do | |
15128 | test -z "$ac_dir" && ac_dir=. | |
15129 | if test -f $ac_dir/$ac_word; then | |
15130 | ac_cv_prog_DEREZ="DeRez" | |
15131 | break | |
15132 | fi | |
15133 | done | |
15134 | IFS="$ac_save_ifs" | |
15135 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" | |
3a922bb4 | 15136 | fi |
90dd450c | 15137 | fi |
21d1c967 GD |
15138 | DEREZ="$ac_cv_prog_DEREZ" |
15139 | if test -n "$DEREZ"; then | |
15140 | echo "$ac_t""$DEREZ" 1>&6 | |
90dd450c VZ |
15141 | else |
15142 | echo "$ac_t""no" 1>&6 | |
3a922bb4 | 15143 | fi |
698dcdb6 | 15144 | |
21d1c967 GD |
15145 | MACOSX_BUNDLE="bundle" |
15146 | if test "$wxUSE_SHARED" = "yes"; then | |
15147 | LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r -o \$(BIN_PROGRAM)" | |
15148 | LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r -o" | |
15149 | else | |
15150 | LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r ${LIBWXMACRES} -o \$(BIN_PROGRAM)" | |
15151 | LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r \${prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
15152 | fi | |
15153 | else | |
15154 | if test "$wxUSE_PM" = 1; then | |
15155 | LIBWXMACRESCOMP="emxbind -ep \$(BIN_PROGRAM)" | |
90dd450c | 15156 | fi |
4f14bcd8 | 15157 | fi |
10f2d63a | 15158 | |
703e0a69 | 15159 | |
90dd450c | 15160 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
17234b26 | 15161 | echo "configure:15162: checking for ANSI C header files" >&5 |
90dd450c | 15162 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
698dcdb6 VZ |
15163 | echo $ac_n "(cached) $ac_c" 1>&6 |
15164 | else | |
15165 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 15166 | #line 15167 "configure" |
10f2d63a | 15167 | #include "confdefs.h" |
90dd450c VZ |
15168 | #include <stdlib.h> |
15169 | #include <stdarg.h> | |
15170 | #include <string.h> | |
15171 | #include <float.h> | |
698dcdb6 | 15172 | EOF |
90dd450c | 15173 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
17234b26 | 15174 | { (eval echo configure:15175: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
90dd450c VZ |
15175 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15176 | if test -z "$ac_err"; then | |
15177 | rm -rf conftest* | |
15178 | ac_cv_header_stdc=yes | |
10f2d63a | 15179 | else |
90dd450c | 15180 | echo "$ac_err" >&5 |
698dcdb6 | 15181 | echo "configure: failed program was:" >&5 |
10f2d63a | 15182 | cat conftest.$ac_ext >&5 |
90dd450c VZ |
15183 | rm -rf conftest* |
15184 | ac_cv_header_stdc=no | |
10f2d63a | 15185 | fi |
90dd450c VZ |
15186 | rm -f conftest* |
15187 | ||
15188 | if test $ac_cv_header_stdc = yes; then | |
15189 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
15190 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 15191 | #line 15192 "configure" |
90dd450c VZ |
15192 | #include "confdefs.h" |
15193 | #include <string.h> | |
15194 | EOF | |
15195 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15196 | egrep "memchr" >/dev/null 2>&1; then | |
15197 | : | |
15198 | else | |
15199 | rm -rf conftest* | |
15200 | ac_cv_header_stdc=no | |
10f2d63a | 15201 | fi |
90dd450c | 15202 | rm -f conftest* |
10f2d63a | 15203 | |
4f14bcd8 | 15204 | fi |
90dd450c VZ |
15205 | |
15206 | if test $ac_cv_header_stdc = yes; then | |
15207 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
15208 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 15209 | #line 15210 "configure" |
90dd450c VZ |
15210 | #include "confdefs.h" |
15211 | #include <stdlib.h> | |
10f2d63a | 15212 | EOF |
90dd450c VZ |
15213 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
15214 | egrep "free" >/dev/null 2>&1; then | |
15215 | : | |
15216 | else | |
15217 | rm -rf conftest* | |
15218 | ac_cv_header_stdc=no | |
15219 | fi | |
15220 | rm -f conftest* | |
10f2d63a | 15221 | |
90dd450c | 15222 | fi |
698dcdb6 | 15223 | |
90dd450c VZ |
15224 | if test $ac_cv_header_stdc = yes; then |
15225 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
15226 | if test "$cross_compiling" = yes; then | |
15227 | : | |
4f14bcd8 GD |
15228 | else |
15229 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 15230 | #line 15231 "configure" |
10f2d63a | 15231 | #include "confdefs.h" |
90dd450c VZ |
15232 | #include <ctype.h> |
15233 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
15234 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
15235 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
15236 | int main () { int i; for (i = 0; i < 256; i++) | |
15237 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
15238 | exit (0); } | |
15239 | ||
698dcdb6 | 15240 | EOF |
17234b26 | 15241 | if { (eval echo configure:15242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 | 15242 | then |
90dd450c | 15243 | : |
10f2d63a | 15244 | else |
698dcdb6 VZ |
15245 | echo "configure: failed program was:" >&5 |
15246 | cat conftest.$ac_ext >&5 | |
4f14bcd8 | 15247 | rm -fr conftest* |
90dd450c | 15248 | ac_cv_header_stdc=no |
10f2d63a | 15249 | fi |
4f14bcd8 | 15250 | rm -fr conftest* |
10f2d63a | 15251 | fi |
698dcdb6 | 15252 | |
4f14bcd8 | 15253 | fi |
90dd450c | 15254 | fi |
10f2d63a | 15255 | |
90dd450c VZ |
15256 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
15257 | if test $ac_cv_header_stdc = yes; then | |
15258 | cat >> confdefs.h <<\EOF | |
15259 | #define STDC_HEADERS 1 | |
15260 | EOF | |
698dcdb6 | 15261 | |
90dd450c | 15262 | fi |
9d353d4a | 15263 | |
90dd450c | 15264 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
17234b26 | 15265 | echo "configure:15266: checking for mode_t" >&5 |
90dd450c | 15266 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
9d353d4a | 15267 | echo $ac_n "(cached) $ac_c" 1>&6 |
9d353d4a RR |
15268 | else |
15269 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 15270 | #line 15271 "configure" |
9d353d4a | 15271 | #include "confdefs.h" |
90dd450c VZ |
15272 | #include <sys/types.h> |
15273 | #if STDC_HEADERS | |
15274 | #include <stdlib.h> | |
15275 | #include <stddef.h> | |
15276 | #endif | |
9d353d4a | 15277 | EOF |
90dd450c VZ |
15278 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
15279 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
15280 | rm -rf conftest* | |
15281 | ac_cv_type_mode_t=yes | |
9d353d4a | 15282 | else |
90dd450c VZ |
15283 | rm -rf conftest* |
15284 | ac_cv_type_mode_t=no | |
9d353d4a | 15285 | fi |
90dd450c | 15286 | rm -f conftest* |
9d353d4a RR |
15287 | |
15288 | fi | |
90dd450c VZ |
15289 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 |
15290 | if test $ac_cv_type_mode_t = no; then | |
15291 | cat >> confdefs.h <<\EOF | |
15292 | #define mode_t int | |
9d353d4a RR |
15293 | EOF |
15294 | ||
90dd450c | 15295 | fi |
9d353d4a | 15296 | |
90dd450c | 15297 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
17234b26 | 15298 | echo "configure:15299: checking for off_t" >&5 |
90dd450c | 15299 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
698dcdb6 | 15300 | echo $ac_n "(cached) $ac_c" 1>&6 |
4f14bcd8 GD |
15301 | else |
15302 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 15303 | #line 15304 "configure" |
10f2d63a | 15304 | #include "confdefs.h" |
90dd450c VZ |
15305 | #include <sys/types.h> |
15306 | #if STDC_HEADERS | |
15307 | #include <stdlib.h> | |
15308 | #include <stddef.h> | |
15309 | #endif | |
698dcdb6 | 15310 | EOF |
90dd450c VZ |
15311 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
15312 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
15313 | rm -rf conftest* | |
15314 | ac_cv_type_off_t=yes | |
698dcdb6 | 15315 | else |
90dd450c VZ |
15316 | rm -rf conftest* |
15317 | ac_cv_type_off_t=no | |
698dcdb6 | 15318 | fi |
90dd450c | 15319 | rm -f conftest* |
698dcdb6 VZ |
15320 | |
15321 | fi | |
90dd450c VZ |
15322 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 |
15323 | if test $ac_cv_type_off_t = no; then | |
15324 | cat >> confdefs.h <<\EOF | |
15325 | #define off_t long | |
10f2d63a VZ |
15326 | EOF |
15327 | ||
90dd450c | 15328 | fi |
10f2d63a | 15329 | |
90dd450c | 15330 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
17234b26 | 15331 | echo "configure:15332: checking for pid_t" >&5 |
90dd450c | 15332 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
698dcdb6 | 15333 | echo $ac_n "(cached) $ac_c" 1>&6 |
4f14bcd8 GD |
15334 | else |
15335 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 15336 | #line 15337 "configure" |
10f2d63a | 15337 | #include "confdefs.h" |
90dd450c VZ |
15338 | #include <sys/types.h> |
15339 | #if STDC_HEADERS | |
15340 | #include <stdlib.h> | |
15341 | #include <stddef.h> | |
15342 | #endif | |
698dcdb6 | 15343 | EOF |
90dd450c VZ |
15344 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
15345 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
15346 | rm -rf conftest* | |
15347 | ac_cv_type_pid_t=yes | |
698dcdb6 | 15348 | else |
90dd450c VZ |
15349 | rm -rf conftest* |
15350 | ac_cv_type_pid_t=no | |
4f14bcd8 | 15351 | fi |
90dd450c | 15352 | rm -f conftest* |
698dcdb6 VZ |
15353 | |
15354 | fi | |
90dd450c VZ |
15355 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 |
15356 | if test $ac_cv_type_pid_t = no; then | |
15357 | cat >> confdefs.h <<\EOF | |
15358 | #define pid_t int | |
10f2d63a VZ |
15359 | EOF |
15360 | ||
90dd450c | 15361 | fi |
18dbb1f6 | 15362 | |
90dd450c | 15363 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
17234b26 | 15364 | echo "configure:15365: checking for size_t" >&5 |
90dd450c | 15365 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
18dbb1f6 | 15366 | echo $ac_n "(cached) $ac_c" 1>&6 |
90dd450c VZ |
15367 | else |
15368 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 15369 | #line 15370 "configure" |
4f14bcd8 GD |
15370 | #include "confdefs.h" |
15371 | #include <sys/types.h> | |
90dd450c VZ |
15372 | #if STDC_HEADERS |
15373 | #include <stdlib.h> | |
15374 | #include <stddef.h> | |
4f14bcd8 | 15375 | #endif |
18dbb1f6 | 15376 | EOF |
90dd450c VZ |
15377 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
15378 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
18dbb1f6 | 15379 | rm -rf conftest* |
90dd450c | 15380 | ac_cv_type_size_t=yes |
18dbb1f6 | 15381 | else |
18dbb1f6 | 15382 | rm -rf conftest* |
90dd450c | 15383 | ac_cv_type_size_t=no |
18dbb1f6 VZ |
15384 | fi |
15385 | rm -f conftest* | |
90dd450c | 15386 | |
1e487827 | 15387 | fi |
90dd450c VZ |
15388 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 |
15389 | if test $ac_cv_type_size_t = no; then | |
15390 | cat >> confdefs.h <<\EOF | |
15391 | #define size_t unsigned | |
15392 | EOF | |
15393 | ||
15394 | fi | |
15395 | ||
15396 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 | |
17234b26 | 15397 | echo "configure:15398: checking for uid_t in sys/types.h" >&5 |
90dd450c VZ |
15398 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
15399 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b3e8d00a VZ |
15400 | else |
15401 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 15402 | #line 15403 "configure" |
b3e8d00a | 15403 | #include "confdefs.h" |
90dd450c | 15404 | #include <sys/types.h> |
b3e8d00a | 15405 | EOF |
90dd450c VZ |
15406 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
15407 | egrep "uid_t" >/dev/null 2>&1; then | |
15408 | rm -rf conftest* | |
15409 | ac_cv_type_uid_t=yes | |
b3e8d00a | 15410 | else |
90dd450c VZ |
15411 | rm -rf conftest* |
15412 | ac_cv_type_uid_t=no | |
b3e8d00a | 15413 | fi |
90dd450c | 15414 | rm -f conftest* |
b3e8d00a | 15415 | |
4f14bcd8 GD |
15416 | fi |
15417 | ||
90dd450c VZ |
15418 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
15419 | if test $ac_cv_type_uid_t = no; then | |
4f14bcd8 | 15420 | cat >> confdefs.h <<\EOF |
90dd450c VZ |
15421 | #define uid_t int |
15422 | EOF | |
15423 | ||
15424 | cat >> confdefs.h <<\EOF | |
15425 | #define gid_t int | |
b3e8d00a | 15426 | EOF |
4f14bcd8 | 15427 | |
b3e8d00a | 15428 | fi |
b3e8d00a VZ |
15429 | |
15430 | ||
90dd450c VZ |
15431 | |
15432 | ac_ext=C | |
4f14bcd8 GD |
15433 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
15434 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15435 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15436 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15437 | cross_compiling=$ac_cv_prog_cxx_cross | |
90dd450c VZ |
15438 | |
15439 | echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6 | |
17234b26 | 15440 | echo "configure:15441: checking if size_t is unsigned int" >&5 |
90dd450c VZ |
15441 | if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then |
15442 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15443 | else | |
15444 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 15445 | #line 15446 "configure" |
10f2d63a | 15446 | #include "confdefs.h" |
90dd450c VZ |
15447 | #include <stddef.h> |
15448 | int main() { | |
15449 | ||
15450 | return 0; } | |
15451 | ||
15452 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
15453 | ||
15454 | int bar() { | |
15455 | ||
15456 | ; return 0; } | |
698dcdb6 | 15457 | EOF |
17234b26 | 15458 | if { (eval echo configure:15459: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
90dd450c VZ |
15459 | rm -rf conftest* |
15460 | wx_cv_size_t_is_uint=no | |
698dcdb6 VZ |
15461 | else |
15462 | echo "configure: failed program was:" >&5 | |
15463 | cat conftest.$ac_ext >&5 | |
15464 | rm -rf conftest* | |
90dd450c VZ |
15465 | wx_cv_size_t_is_uint=yes |
15466 | ||
698dcdb6 VZ |
15467 | fi |
15468 | rm -f conftest* | |
90dd450c | 15469 | |
698dcdb6 VZ |
15470 | fi |
15471 | ||
90dd450c | 15472 | echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6 |
4f14bcd8 | 15473 | |
90dd450c | 15474 | if test "$wx_cv_size_t_is_uint" = "yes"; then |
4f14bcd8 | 15475 | cat >> confdefs.h <<\EOF |
90dd450c | 15476 | #define wxSIZE_T_IS_UINT 1 |
698dcdb6 VZ |
15477 | EOF |
15478 | ||
90dd450c VZ |
15479 | else |
15480 | echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6 | |
17234b26 | 15481 | echo "configure:15482: checking if size_t is unsigned long" >&5 |
90dd450c | 15482 | if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then |
698dcdb6 VZ |
15483 | echo $ac_n "(cached) $ac_c" 1>&6 |
15484 | else | |
15485 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 15486 | #line 15487 "configure" |
10f2d63a | 15487 | #include "confdefs.h" |
90dd450c VZ |
15488 | #include <stddef.h> |
15489 | int main() { | |
15490 | ||
15491 | return 0; } | |
15492 | ||
15493 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
15494 | ||
15495 | int bar() { | |
15496 | ||
15497 | ; return 0; } | |
698dcdb6 | 15498 | EOF |
17234b26 | 15499 | if { (eval echo configure:15500: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 15500 | rm -rf conftest* |
90dd450c | 15501 | wx_cv_size_t_is_ulong=no |
698dcdb6 VZ |
15502 | else |
15503 | echo "configure: failed program was:" >&5 | |
15504 | cat conftest.$ac_ext >&5 | |
15505 | rm -rf conftest* | |
90dd450c VZ |
15506 | wx_cv_size_t_is_ulong=yes |
15507 | ||
698dcdb6 VZ |
15508 | fi |
15509 | rm -f conftest* | |
90dd450c | 15510 | |
698dcdb6 | 15511 | fi |
10f2d63a | 15512 | |
90dd450c | 15513 | echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6 |
10f2d63a | 15514 | |
90dd450c VZ |
15515 | if test "$wx_cv_size_t_is_ulong" = "yes"; then |
15516 | cat >> confdefs.h <<\EOF | |
15517 | #define wxSIZE_T_IS_ULONG 1 | |
4f14bcd8 GD |
15518 | EOF |
15519 | ||
15520 | fi | |
90dd450c | 15521 | fi |
1e487827 | 15522 | |
90dd450c | 15523 | ac_ext=c |
4f14bcd8 GD |
15524 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
15525 | ac_cpp='$CPP $CPPFLAGS' | |
15526 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15527 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15528 | cross_compiling=$ac_cv_prog_cc_cross | |
698dcdb6 | 15529 | |
698dcdb6 VZ |
15530 | |
15531 | ||
90dd450c | 15532 | echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6 |
17234b26 | 15533 | echo "configure:15534: checking for pw_gecos in struct passwd" >&5 |
90dd450c | 15534 | if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then |
698dcdb6 VZ |
15535 | echo $ac_n "(cached) $ac_c" 1>&6 |
15536 | else | |
15537 | ||
90dd450c | 15538 | cat > conftest.$ac_ext <<EOF |
17234b26 | 15539 | #line 15540 "configure" |
4f14bcd8 | 15540 | #include "confdefs.h" |
90dd450c | 15541 | #include <pwd.h> |
4f14bcd8 | 15542 | int main() { |
f6bcfd97 | 15543 | |
90dd450c VZ |
15544 | char *p; |
15545 | struct passwd *pw; | |
15546 | p = pw->pw_gecos; | |
15547 | ||
698dcdb6 VZ |
15548 | ; return 0; } |
15549 | EOF | |
17234b26 | 15550 | if { (eval echo configure:15551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
15551 | rm -rf conftest* |
15552 | ||
90dd450c VZ |
15553 | wx_cv_struct_pw_gecos=yes |
15554 | ||
10f2d63a | 15555 | else |
698dcdb6 VZ |
15556 | echo "configure: failed program was:" >&5 |
15557 | cat conftest.$ac_ext >&5 | |
15558 | rm -rf conftest* | |
15559 | ||
90dd450c VZ |
15560 | wx_cv_struct_pw_gecos=no |
15561 | ||
15562 | ||
4f14bcd8 GD |
15563 | fi |
15564 | rm -f conftest* | |
90dd450c | 15565 | |
c521c494 | 15566 | |
4f14bcd8 | 15567 | fi |
c521c494 | 15568 | |
90dd450c | 15569 | echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6 |
c521c494 | 15570 | |
90dd450c | 15571 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
4f14bcd8 | 15572 | cat >> confdefs.h <<\EOF |
90dd450c | 15573 | #define HAVE_PW_GECOS 1 |
4f14bcd8 | 15574 | EOF |
c521c494 | 15575 | |
90dd450c | 15576 | fi |
4f14bcd8 GD |
15577 | |
15578 | ||
d29b553b VZ |
15579 | WCHAR_OK=0 |
15580 | if test "$wx_cv_sizeof_wchar_t" != "0"; then | |
15581 | WCHAR_LINK= | |
7a30264c VZ |
15582 | for ac_func in wcslen |
15583 | do | |
15584 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
17234b26 | 15585 | echo "configure:15586: checking for $ac_func" >&5 |
7a30264c | 15586 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
4f14bcd8 GD |
15587 | echo $ac_n "(cached) $ac_c" 1>&6 |
15588 | else | |
7a30264c | 15589 | cat > conftest.$ac_ext <<EOF |
17234b26 | 15590 | #line 15591 "configure" |
4f14bcd8 | 15591 | #include "confdefs.h" |
7a30264c VZ |
15592 | /* System header to define __stub macros and hopefully few prototypes, |
15593 | which can conflict with char $ac_func(); below. */ | |
15594 | #include <assert.h> | |
4f14bcd8 GD |
15595 | /* Override any gcc2 internal prototype to avoid an error. */ |
15596 | /* We use char because int might match the return type of a gcc2 | |
15597 | builtin and then its argument prototype would still apply. */ | |
7a30264c | 15598 | char $ac_func(); |
4f14bcd8 GD |
15599 | |
15600 | int main() { | |
7a30264c VZ |
15601 | |
15602 | /* The GNU C library defines this for functions which it implements | |
15603 | to always fail with ENOSYS. Some functions are actually named | |
15604 | something starting with __ and the normal name is an alias. */ | |
15605 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15606 | choke me | |
15607 | #else | |
15608 | $ac_func(); | |
15609 | #endif | |
15610 | ||
698dcdb6 VZ |
15611 | ; return 0; } |
15612 | EOF | |
17234b26 | 15613 | if { (eval echo configure:15614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15614 | rm -rf conftest* |
7a30264c | 15615 | eval "ac_cv_func_$ac_func=yes" |
c521c494 | 15616 | else |
698dcdb6 VZ |
15617 | echo "configure: failed program was:" >&5 |
15618 | cat conftest.$ac_ext >&5 | |
15619 | rm -rf conftest* | |
7a30264c | 15620 | eval "ac_cv_func_$ac_func=no" |
6232543b | 15621 | fi |
698dcdb6 | 15622 | rm -f conftest* |
1e487827 | 15623 | fi |
7a30264c VZ |
15624 | |
15625 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
4f14bcd8 | 15626 | echo "$ac_t""yes" 1>&6 |
7a30264c VZ |
15627 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
15628 | cat >> confdefs.h <<EOF | |
15629 | #define $ac_tr_func 1 | |
15630 | EOF | |
15631 | ||
15632 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 15633 | #define HAVE_WCSLEN 1 |
9d8deca0 VZ |
15634 | EOF |
15635 | ||
7a30264c VZ |
15636 | WCHAR_OK=1 |
15637 | ||
9d8deca0 | 15638 | else |
4f14bcd8 | 15639 | echo "$ac_t""no" 1>&6 |
7a30264c VZ |
15640 | fi |
15641 | done | |
9d8deca0 | 15642 | |
7a30264c VZ |
15643 | |
15644 | if test "$WCHAR_OK" = 0; then | |
15645 | if test "$TOOLKIT" = "MSW"; then | |
15646 | echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6 | |
17234b26 | 15647 | echo "configure:15648: checking for wcslen in -lmsvcrt" >&5 |
7a30264c | 15648 | ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'` |
4f14bcd8 | 15649 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
698dcdb6 | 15650 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 15651 | else |
4f14bcd8 | 15652 | ac_save_LIBS="$LIBS" |
7a30264c | 15653 | LIBS="-lmsvcrt $LIBS" |
4f14bcd8 | 15654 | cat > conftest.$ac_ext <<EOF |
17234b26 | 15655 | #line 15656 "configure" |
10f2d63a | 15656 | #include "confdefs.h" |
4f14bcd8 GD |
15657 | /* Override any gcc2 internal prototype to avoid an error. */ |
15658 | /* We use char because int might match the return type of a gcc2 | |
15659 | builtin and then its argument prototype would still apply. */ | |
15660 | char wcslen(); | |
10f2d63a | 15661 | |
698dcdb6 | 15662 | int main() { |
4f14bcd8 | 15663 | wcslen() |
698dcdb6 VZ |
15664 | ; return 0; } |
15665 | EOF | |
17234b26 | 15666 | if { (eval echo configure:15667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15667 | rm -rf conftest* |
4f14bcd8 | 15668 | eval "ac_cv_lib_$ac_lib_var=yes" |
10f2d63a | 15669 | else |
698dcdb6 VZ |
15670 | echo "configure: failed program was:" >&5 |
15671 | cat conftest.$ac_ext >&5 | |
15672 | rm -rf conftest* | |
4f14bcd8 | 15673 | eval "ac_cv_lib_$ac_lib_var=no" |
6232543b | 15674 | fi |
698dcdb6 | 15675 | rm -f conftest* |
4f14bcd8 | 15676 | LIBS="$ac_save_LIBS" |
703e0a69 | 15677 | |
1e487827 | 15678 | fi |
4f14bcd8 GD |
15679 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
15680 | echo "$ac_t""yes" 1>&6 | |
15681 | ||
7a30264c | 15682 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 15683 | #define HAVE_WCSLEN 1 |
9d8deca0 VZ |
15684 | EOF |
15685 | ||
7a30264c VZ |
15686 | WCHAR_OK=1 |
15687 | ||
4f14bcd8 GD |
15688 | else |
15689 | echo "$ac_t""no" 1>&6 | |
d29b553b | 15690 | fi |
698dcdb6 | 15691 | |
7a30264c VZ |
15692 | else |
15693 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 | |
17234b26 | 15694 | echo "configure:15695: checking for wcslen in -lw" >&5 |
7a30264c | 15695 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` |
4f14bcd8 | 15696 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
698dcdb6 VZ |
15697 | echo $ac_n "(cached) $ac_c" 1>&6 |
15698 | else | |
4f14bcd8 | 15699 | ac_save_LIBS="$LIBS" |
7a30264c | 15700 | LIBS="-lw $LIBS" |
4f14bcd8 | 15701 | cat > conftest.$ac_ext <<EOF |
17234b26 | 15702 | #line 15703 "configure" |
95c8801c | 15703 | #include "confdefs.h" |
4f14bcd8 GD |
15704 | /* Override any gcc2 internal prototype to avoid an error. */ |
15705 | /* We use char because int might match the return type of a gcc2 | |
15706 | builtin and then its argument prototype would still apply. */ | |
15707 | char wcslen(); | |
95c8801c | 15708 | |
4f14bcd8 GD |
15709 | int main() { |
15710 | wcslen() | |
698dcdb6 VZ |
15711 | ; return 0; } |
15712 | EOF | |
17234b26 | 15713 | if { (eval echo configure:15714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15714 | rm -rf conftest* |
4f14bcd8 | 15715 | eval "ac_cv_lib_$ac_lib_var=yes" |
95c8801c | 15716 | else |
698dcdb6 VZ |
15717 | echo "configure: failed program was:" >&5 |
15718 | cat conftest.$ac_ext >&5 | |
15719 | rm -rf conftest* | |
4f14bcd8 | 15720 | eval "ac_cv_lib_$ac_lib_var=no" |
95c8801c | 15721 | fi |
698dcdb6 | 15722 | rm -f conftest* |
4f14bcd8 | 15723 | LIBS="$ac_save_LIBS" |
95c8801c VS |
15724 | |
15725 | fi | |
4f14bcd8 GD |
15726 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
15727 | echo "$ac_t""yes" 1>&6 | |
15728 | ||
7a30264c | 15729 | cat >> confdefs.h <<\EOF |
4f14bcd8 GD |
15730 | #define HAVE_WCSLEN 1 |
15731 | EOF | |
698dcdb6 | 15732 | |
7a30264c VZ |
15733 | WCHAR_LINK=" -lw" |
15734 | WCHAR_OK=1 | |
15735 | ||
4f14bcd8 GD |
15736 | else |
15737 | echo "$ac_t""no" 1>&6 | |
15738 | fi | |
10f2d63a | 15739 | |
7a30264c | 15740 | fi |
d29b553b | 15741 | fi |
4f14bcd8 | 15742 | fi |
95c8801c | 15743 | |
d29b553b VZ |
15744 | if test "$WCHAR_OK" = 1; then |
15745 | cat >> confdefs.h <<\EOF | |
15746 | #define wxUSE_WCHAR_T 1 | |
15747 | EOF | |
10f2d63a | 15748 | |
1e487827 | 15749 | |
d29b553b | 15750 | for ac_func in wcsrtombs |
eb4efbdc | 15751 | do |
698dcdb6 | 15752 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
17234b26 | 15753 | echo "configure:15754: checking for $ac_func" >&5 |
698dcdb6 VZ |
15754 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15755 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15756 | else | |
15757 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 15758 | #line 15759 "configure" |
eb4efbdc VZ |
15759 | #include "confdefs.h" |
15760 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 15761 | which can conflict with char $ac_func(); below. */ |
eb4efbdc VZ |
15762 | #include <assert.h> |
15763 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15764 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15765 | builtin and then its argument prototype would still apply. */ |
15766 | char $ac_func(); | |
15767 | ||
15768 | int main() { | |
eb4efbdc VZ |
15769 | |
15770 | /* The GNU C library defines this for functions which it implements | |
15771 | to always fail with ENOSYS. Some functions are actually named | |
15772 | something starting with __ and the normal name is an alias. */ | |
15773 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15774 | choke me | |
15775 | #else | |
698dcdb6 | 15776 | $ac_func(); |
eb4efbdc VZ |
15777 | #endif |
15778 | ||
698dcdb6 | 15779 | ; return 0; } |
eb4efbdc | 15780 | EOF |
17234b26 | 15781 | if { (eval echo configure:15782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15782 | rm -rf conftest* |
15783 | eval "ac_cv_func_$ac_func=yes" | |
15784 | else | |
15785 | echo "configure: failed program was:" >&5 | |
15786 | cat conftest.$ac_ext >&5 | |
15787 | rm -rf conftest* | |
15788 | eval "ac_cv_func_$ac_func=no" | |
15789 | fi | |
15790 | rm -f conftest* | |
15791 | fi | |
eb4efbdc | 15792 | |
698dcdb6 VZ |
15793 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
15794 | echo "$ac_t""yes" 1>&6 | |
15795 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15796 | cat >> confdefs.h <<EOF | |
15797 | #define $ac_tr_func 1 | |
15798 | EOF | |
15799 | ||
15800 | else | |
15801 | echo "$ac_t""no" 1>&6 | |
eb4efbdc VZ |
15802 | fi |
15803 | done | |
15804 | ||
d29b553b | 15805 | else |
a1ea5055 GD |
15806 | if test "$USE_DARWIN" = 1; then |
15807 | cat >> confdefs.h <<\EOF | |
15808 | #define wxUSE_WCHAR_T 1 | |
15809 | EOF | |
15810 | ||
15811 | else | |
15812 | echo "configure: warning: Wide character support is unavailable" 1>&2 | |
15813 | fi | |
d29b553b | 15814 | fi |
698dcdb6 | 15815 | |
4f14bcd8 | 15816 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
17234b26 | 15817 | echo "configure:15818: checking for vprintf" >&5 |
4f14bcd8 | 15818 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
698dcdb6 VZ |
15819 | echo $ac_n "(cached) $ac_c" 1>&6 |
15820 | else | |
4f14bcd8 | 15821 | cat > conftest.$ac_ext <<EOF |
17234b26 | 15822 | #line 15823 "configure" |
f6bcfd97 | 15823 | #include "confdefs.h" |
4f14bcd8 GD |
15824 | /* System header to define __stub macros and hopefully few prototypes, |
15825 | which can conflict with char vprintf(); below. */ | |
15826 | #include <assert.h> | |
15827 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15828 | /* We use char because int might match the return type of a gcc2 | |
15829 | builtin and then its argument prototype would still apply. */ | |
15830 | char vprintf(); | |
15831 | ||
698dcdb6 | 15832 | int main() { |
f6bcfd97 | 15833 | |
4f14bcd8 GD |
15834 | /* The GNU C library defines this for functions which it implements |
15835 | to always fail with ENOSYS. Some functions are actually named | |
15836 | something starting with __ and the normal name is an alias. */ | |
15837 | #if defined (__stub_vprintf) || defined (__stub___vprintf) | |
15838 | choke me | |
15839 | #else | |
15840 | vprintf(); | |
15841 | #endif | |
f6bcfd97 | 15842 | |
698dcdb6 VZ |
15843 | ; return 0; } |
15844 | EOF | |
17234b26 | 15845 | if { (eval echo configure:15846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15846 | rm -rf conftest* |
4f14bcd8 | 15847 | eval "ac_cv_func_vprintf=yes" |
f6bcfd97 | 15848 | else |
698dcdb6 VZ |
15849 | echo "configure: failed program was:" >&5 |
15850 | cat conftest.$ac_ext >&5 | |
15851 | rm -rf conftest* | |
4f14bcd8 | 15852 | eval "ac_cv_func_vprintf=no" |
6232543b | 15853 | fi |
698dcdb6 | 15854 | rm -f conftest* |
1e487827 | 15855 | fi |
698dcdb6 | 15856 | |
4f14bcd8 GD |
15857 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then |
15858 | echo "$ac_t""yes" 1>&6 | |
15859 | cat >> confdefs.h <<\EOF | |
15860 | #define HAVE_VPRINTF 1 | |
f6bcfd97 BP |
15861 | EOF |
15862 | ||
4f14bcd8 GD |
15863 | else |
15864 | echo "$ac_t""no" 1>&6 | |
eb4efbdc VZ |
15865 | fi |
15866 | ||
4f14bcd8 GD |
15867 | if test "$ac_cv_func_vprintf" != yes; then |
15868 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
17234b26 | 15869 | echo "configure:15870: checking for _doprnt" >&5 |
4f14bcd8 | 15870 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
698dcdb6 VZ |
15871 | echo $ac_n "(cached) $ac_c" 1>&6 |
15872 | else | |
15873 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 15874 | #line 15875 "configure" |
10f2d63a VZ |
15875 | #include "confdefs.h" |
15876 | /* System header to define __stub macros and hopefully few prototypes, | |
4f14bcd8 | 15877 | which can conflict with char _doprnt(); below. */ |
10f2d63a VZ |
15878 | #include <assert.h> |
15879 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15880 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 15881 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 15882 | char _doprnt(); |
698dcdb6 VZ |
15883 | |
15884 | int main() { | |
10f2d63a VZ |
15885 | |
15886 | /* The GNU C library defines this for functions which it implements | |
15887 | to always fail with ENOSYS. Some functions are actually named | |
15888 | something starting with __ and the normal name is an alias. */ | |
4f14bcd8 | 15889 | #if defined (__stub__doprnt) || defined (__stub____doprnt) |
10f2d63a VZ |
15890 | choke me |
15891 | #else | |
4f14bcd8 | 15892 | _doprnt(); |
10f2d63a VZ |
15893 | #endif |
15894 | ||
698dcdb6 | 15895 | ; return 0; } |
10f2d63a | 15896 | EOF |
17234b26 | 15897 | if { (eval echo configure:15898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15898 | rm -rf conftest* |
4f14bcd8 | 15899 | eval "ac_cv_func__doprnt=yes" |
698dcdb6 VZ |
15900 | else |
15901 | echo "configure: failed program was:" >&5 | |
15902 | cat conftest.$ac_ext >&5 | |
15903 | rm -rf conftest* | |
4f14bcd8 | 15904 | eval "ac_cv_func__doprnt=no" |
698dcdb6 VZ |
15905 | fi |
15906 | rm -f conftest* | |
15907 | fi | |
270a909e | 15908 | |
4f14bcd8 | 15909 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then |
698dcdb6 | 15910 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
15911 | cat >> confdefs.h <<\EOF |
15912 | #define HAVE_DOPRNT 1 | |
698dcdb6 | 15913 | EOF |
4f14bcd8 | 15914 | |
698dcdb6 VZ |
15915 | else |
15916 | echo "$ac_t""no" 1>&6 | |
270a909e | 15917 | fi |
270a909e | 15918 | |
4f14bcd8 | 15919 | fi |
1e487827 | 15920 | |
52e8b690 | 15921 | |
52e8b690 | 15922 | |
52e8b690 | 15923 | |
52e8b690 | 15924 | |
52e8b690 | 15925 | |
4f14bcd8 | 15926 | echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6 |
17234b26 | 15927 | echo "configure:15928: checking for vsnprintf" >&5 |
4f14bcd8 | 15928 | if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then |
698dcdb6 | 15929 | echo $ac_n "(cached) $ac_c" 1>&6 |
c63c7106 | 15930 | else |
4f14bcd8 | 15931 | |
af15babd | 15932 | cat > conftest.$ac_ext <<EOF |
17234b26 | 15933 | #line 15934 "configure" |
c63c7106 | 15934 | #include "confdefs.h" |
698dcdb6 | 15935 | |
4f14bcd8 GD |
15936 | #include <stdio.h> |
15937 | #include <stdarg.h> | |
15938 | ||
af15babd VZ |
15939 | int main() { |
15940 | ||
4f14bcd8 GD |
15941 | int wx_test_vsnprintf(const char *, ...); |
15942 | ||
15943 | wx_test_vsnprintf("%s"); | |
15944 | return 0; | |
15945 | } | |
15946 | ||
15947 | int wx_test_vsnprintf(const char *fmt, ...) | |
15948 | { | |
15949 | char *s; | |
15950 | ||
15951 | va_list argp; | |
15952 | va_start(argp, fmt); | |
15953 | vsnprintf(s, 42, fmt, argp); | |
15954 | va_end(argp); | |
15955 | ||
af15babd VZ |
15956 | ; return 0; } |
15957 | EOF | |
17234b26 | 15958 | if { (eval echo configure:15959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
15959 | rm -rf conftest* |
15960 | ||
4f14bcd8 GD |
15961 | wx_cv_func_vsnprintf=yes |
15962 | ||
af15babd VZ |
15963 | else |
15964 | echo "configure: failed program was:" >&5 | |
15965 | cat conftest.$ac_ext >&5 | |
15966 | rm -rf conftest* | |
15967 | ||
4f14bcd8 | 15968 | cat > conftest.$ac_ext <<EOF |
17234b26 | 15969 | #line 15970 "configure" |
af15babd | 15970 | #include "confdefs.h" |
af15babd | 15971 | |
4f14bcd8 GD |
15972 | #include <stdio.h> |
15973 | #include <stdarg.h> | |
15974 | ||
af15babd VZ |
15975 | int main() { |
15976 | ||
4f14bcd8 GD |
15977 | int wx_test_vsnprintf(const char *, ...); |
15978 | ||
15979 | wx_test_vsnprintf("%s"); | |
15980 | return 0; | |
15981 | } | |
15982 | ||
15983 | int wx_test_vsnprintf(const char *fmt, ...) | |
15984 | { | |
15985 | char *s; | |
af15babd | 15986 | |
4f14bcd8 GD |
15987 | va_list argp; |
15988 | va_start(argp, fmt); | |
15989 | _vsnprintf(s, 42, fmt, argp); | |
15990 | va_end(argp); | |
15991 | ||
af15babd VZ |
15992 | ; return 0; } |
15993 | EOF | |
17234b26 | 15994 | if { (eval echo configure:15995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd | 15995 | rm -rf conftest* |
4f14bcd8 GD |
15996 | |
15997 | wx_cv_func_vsnprintf=yes | |
15998 | ||
af15babd VZ |
15999 | else |
16000 | echo "configure: failed program was:" >&5 | |
16001 | cat conftest.$ac_ext >&5 | |
16002 | rm -rf conftest* | |
4f14bcd8 GD |
16003 | |
16004 | wx_cv_func_vsnprintf=no | |
16005 | ||
af15babd VZ |
16006 | fi |
16007 | rm -f conftest* | |
4f14bcd8 | 16008 | |
af15babd | 16009 | fi |
4f14bcd8 | 16010 | rm -f conftest* |
af15babd | 16011 | |
af15babd | 16012 | fi |
af15babd | 16013 | |
4f14bcd8 | 16014 | echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6 |
af15babd | 16015 | |
4f14bcd8 GD |
16016 | if test "$wx_cv_func_vsnprintf" = yes; then |
16017 | cat >> confdefs.h <<\EOF | |
16018 | #define HAVE_VSNPRINTF 1 | |
16019 | EOF | |
16020 | ||
16021 | else | |
f9bc1684 | 16022 | echo "configure: warning: unsafe function vsprintf will be used instead of vsnprintf" 1>&2 |
af15babd VZ |
16023 | fi |
16024 | ||
4f14bcd8 | 16025 | echo $ac_n "checking for vsscanf""... $ac_c" 1>&6 |
17234b26 | 16026 | echo "configure:16027: checking for vsscanf" >&5 |
4f14bcd8 | 16027 | if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then |
af15babd VZ |
16028 | echo $ac_n "(cached) $ac_c" 1>&6 |
16029 | else | |
4f14bcd8 | 16030 | |
af15babd | 16031 | cat > conftest.$ac_ext <<EOF |
17234b26 | 16032 | #line 16033 "configure" |
af15babd | 16033 | #include "confdefs.h" |
af15babd | 16034 | |
4f14bcd8 GD |
16035 | #include <stdio.h> |
16036 | #include <stdarg.h> | |
16037 | ||
af15babd VZ |
16038 | int main() { |
16039 | ||
4f14bcd8 GD |
16040 | int wx_test_vsscanf(const char *, ...); |
16041 | ||
16042 | wx_test_vsscanf("%d"); | |
16043 | return 0; | |
16044 | } | |
af15babd | 16045 | |
4f14bcd8 GD |
16046 | int wx_test_vsscanf(const char *fmt, ...) |
16047 | { | |
16048 | va_list argp; | |
16049 | va_start(argp, fmt); | |
16050 | vsscanf("42", fmt, argp); | |
16051 | va_end(argp); | |
16052 | ||
af15babd VZ |
16053 | ; return 0; } |
16054 | EOF | |
17234b26 | 16055 | if { (eval echo configure:16056: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 16056 | rm -rf conftest* |
4f14bcd8 GD |
16057 | |
16058 | wx_cv_func_vsscanf=yes | |
16059 | ||
af15babd VZ |
16060 | else |
16061 | echo "configure: failed program was:" >&5 | |
16062 | cat conftest.$ac_ext >&5 | |
16063 | rm -rf conftest* | |
4f14bcd8 GD |
16064 | |
16065 | wx_cv_func_vsscanf=no | |
16066 | ||
af15babd VZ |
16067 | fi |
16068 | rm -f conftest* | |
4f14bcd8 | 16069 | |
af15babd VZ |
16070 | fi |
16071 | ||
4f14bcd8 GD |
16072 | echo "$ac_t""$wx_cv_func_vsscanf" 1>&6 |
16073 | ||
16074 | if test "$wx_cv_func_vsscanf" = yes; then | |
16075 | cat >> confdefs.h <<\EOF | |
16076 | #define HAVE_VSSCANF 1 | |
af15babd | 16077 | EOF |
4f14bcd8 | 16078 | |
af15babd | 16079 | fi |
af15babd | 16080 | |
4f14bcd8 | 16081 | if test "$TOOLKIT" != "MSW"; then |
af15babd | 16082 | |
4f14bcd8 GD |
16083 | |
16084 | ||
16085 | ac_ext=C | |
16086 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
16087 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16088 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16089 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16090 | cross_compiling=$ac_cv_prog_cxx_cross | |
16091 | ||
b040e242 VS |
16092 | |
16093 | ||
16094 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
16095 | if test "${with_libiconv_prefix+set}" = set; then | |
16096 | withval="$with_libiconv_prefix" | |
16097 | ||
16098 | for dir in `echo "$withval" | tr : ' '`; do | |
16099 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
16100 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
16101 | done | |
16102 | ||
16103 | fi | |
16104 | ||
16105 | ||
16106 | echo $ac_n "checking for iconv""... $ac_c" 1>&6 | |
17234b26 | 16107 | echo "configure:16108: checking for iconv" >&5 |
b040e242 | 16108 | if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then |
af15babd VZ |
16109 | echo $ac_n "(cached) $ac_c" 1>&6 |
16110 | else | |
4f14bcd8 | 16111 | |
b040e242 VS |
16112 | am_cv_func_iconv="no, consider installing GNU libiconv" |
16113 | am_cv_lib_iconv=no | |
4f14bcd8 | 16114 | cat > conftest.$ac_ext <<EOF |
17234b26 | 16115 | #line 16116 "configure" |
af15babd | 16116 | #include "confdefs.h" |
b040e242 | 16117 | #include <stdlib.h> |
4f14bcd8 | 16118 | #include <iconv.h> |
af15babd | 16119 | int main() { |
b040e242 VS |
16120 | iconv_t cd = iconv_open("",""); |
16121 | iconv(cd,NULL,NULL,NULL,NULL); | |
16122 | iconv_close(cd); | |
af15babd VZ |
16123 | ; return 0; } |
16124 | EOF | |
17234b26 | 16125 | if { (eval echo configure:16126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd | 16126 | rm -rf conftest* |
b040e242 | 16127 | am_cv_func_iconv=yes |
af15babd VZ |
16128 | else |
16129 | echo "configure: failed program was:" >&5 | |
16130 | cat conftest.$ac_ext >&5 | |
b040e242 VS |
16131 | fi |
16132 | rm -f conftest* | |
16133 | if test "$am_cv_func_iconv" != yes; then | |
16134 | am_save_LIBS="$LIBS" | |
16135 | LIBS="$LIBS -liconv" | |
16136 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 16137 | #line 16138 "configure" |
b040e242 VS |
16138 | #include "confdefs.h" |
16139 | #include <stdlib.h> | |
16140 | #include <iconv.h> | |
16141 | int main() { | |
16142 | iconv_t cd = iconv_open("",""); | |
16143 | iconv(cd,NULL,NULL,NULL,NULL); | |
16144 | iconv_close(cd); | |
16145 | ; return 0; } | |
16146 | EOF | |
17234b26 | 16147 | if { (eval echo configure:16148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd | 16148 | rm -rf conftest* |
b040e242 VS |
16149 | am_cv_lib_iconv=yes |
16150 | am_cv_func_iconv=yes | |
16151 | else | |
16152 | echo "configure: failed program was:" >&5 | |
16153 | cat conftest.$ac_ext >&5 | |
af15babd VZ |
16154 | fi |
16155 | rm -f conftest* | |
b040e242 VS |
16156 | LIBS="$am_save_LIBS" |
16157 | fi | |
16158 | ||
16159 | fi | |
16160 | ||
16161 | echo "$ac_t""$am_cv_func_iconv" 1>&6 | |
16162 | if test "$am_cv_func_iconv" = yes; then | |
16163 | cat >> confdefs.h <<\EOF | |
16164 | #define HAVE_ICONV 1 | |
16165 | EOF | |
16166 | ||
b7043674 | 16167 | echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6 |
17234b26 | 16168 | echo "configure:16169: checking if iconv needs const" >&5 |
b7043674 | 16169 | if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then |
b040e242 VS |
16170 | echo $ac_n "(cached) $ac_c" 1>&6 |
16171 | else | |
b7043674 | 16172 | cat > conftest.$ac_ext <<EOF |
17234b26 | 16173 | #line 16174 "configure" |
b040e242 VS |
16174 | #include "confdefs.h" |
16175 | ||
16176 | #include <stdlib.h> | |
16177 | #include <iconv.h> | |
16178 | extern | |
16179 | #ifdef __cplusplus | |
16180 | "C" | |
16181 | #endif | |
16182 | #if defined(__STDC__) || defined(__cplusplus) | |
16183 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
16184 | #else | |
16185 | size_t iconv(); | |
16186 | #endif | |
b7043674 | 16187 | |
b040e242 | 16188 | int main() { |
af15babd | 16189 | |
b040e242 VS |
16190 | ; return 0; } |
16191 | EOF | |
17234b26 | 16192 | if { (eval echo configure:16193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
b040e242 | 16193 | rm -rf conftest* |
b7043674 | 16194 | wx_cv_func_iconv_const="no" |
b040e242 VS |
16195 | else |
16196 | echo "configure: failed program was:" >&5 | |
16197 | cat conftest.$ac_ext >&5 | |
16198 | rm -rf conftest* | |
b7043674 VZ |
16199 | wx_cv_func_iconv_const="yes" |
16200 | ||
b040e242 VS |
16201 | fi |
16202 | rm -f conftest* | |
b7043674 | 16203 | |
af15babd | 16204 | fi |
af15babd | 16205 | |
b7043674 VZ |
16206 | echo "$ac_t""$wx_cv_func_iconv_const" 1>&6 |
16207 | ||
16208 | iconv_const= | |
1c405bb5 | 16209 | if test "x$wx_cv_func_iconv_const" = "xyes"; then |
b7043674 VZ |
16210 | iconv_const="const" |
16211 | fi | |
16212 | ||
b040e242 | 16213 | cat >> confdefs.h <<EOF |
b7043674 | 16214 | #define ICONV_CONST $iconv_const |
b040e242 VS |
16215 | EOF |
16216 | ||
16217 | fi | |
16218 | LIBICONV= | |
16219 | if test "$am_cv_lib_iconv" = yes; then | |
16220 | LIBICONV="-liconv" | |
16221 | fi | |
16222 | ||
16223 | ||
16224 | LIBS="$LIBICONV $LIBS" | |
4f14bcd8 GD |
16225 | ac_ext=c |
16226 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
16227 | ac_cpp='$CPP $CPPFLAGS' | |
16228 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16229 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16230 | cross_compiling=$ac_cv_prog_cc_cross | |
af15babd | 16231 | |
af15babd | 16232 | |
4f14bcd8 GD |
16233 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
16234 | for ac_func in sigaction | |
af15babd VZ |
16235 | do |
16236 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
17234b26 | 16237 | echo "configure:16238: checking for $ac_func" >&5 |
af15babd VZ |
16238 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16239 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16240 | else | |
16241 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 16242 | #line 16243 "configure" |
af15babd VZ |
16243 | #include "confdefs.h" |
16244 | /* System header to define __stub macros and hopefully few prototypes, | |
16245 | which can conflict with char $ac_func(); below. */ | |
16246 | #include <assert.h> | |
16247 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16248 | /* We use char because int might match the return type of a gcc2 | |
16249 | builtin and then its argument prototype would still apply. */ | |
16250 | char $ac_func(); | |
16251 | ||
16252 | int main() { | |
16253 | ||
16254 | /* The GNU C library defines this for functions which it implements | |
16255 | to always fail with ENOSYS. Some functions are actually named | |
16256 | something starting with __ and the normal name is an alias. */ | |
16257 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16258 | choke me | |
16259 | #else | |
16260 | $ac_func(); | |
16261 | #endif | |
16262 | ||
16263 | ; return 0; } | |
16264 | EOF | |
17234b26 | 16265 | if { (eval echo configure:16266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
16266 | rm -rf conftest* |
16267 | eval "ac_cv_func_$ac_func=yes" | |
16268 | else | |
16269 | echo "configure: failed program was:" >&5 | |
16270 | cat conftest.$ac_ext >&5 | |
16271 | rm -rf conftest* | |
16272 | eval "ac_cv_func_$ac_func=no" | |
16273 | fi | |
16274 | rm -f conftest* | |
16275 | fi | |
16276 | ||
16277 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16278 | echo "$ac_t""yes" 1>&6 | |
16279 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16280 | cat >> confdefs.h <<EOF | |
16281 | #define $ac_tr_func 1 | |
16282 | EOF | |
4f14bcd8 | 16283 | |
af15babd VZ |
16284 | else |
16285 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 GD |
16286 | fi |
16287 | done | |
16288 | ||
16289 | ||
16290 | if test "$ac_cv_func_sigaction" = "no"; then | |
16291 | echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2 | |
16292 | wxUSE_ON_FATAL_EXCEPTION=no | |
16293 | fi | |
16294 | ||
16295 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
16296 | ||
16297 | ac_ext=C | |
16298 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
16299 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16300 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16301 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16302 | cross_compiling=$ac_cv_prog_cxx_cross | |
16303 | ||
16304 | ||
16305 | echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6 | |
17234b26 | 16306 | echo "configure:16307: checking for sa_handler type" >&5 |
4f14bcd8 | 16307 | if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then |
af15babd VZ |
16308 | echo $ac_n "(cached) $ac_c" 1>&6 |
16309 | else | |
4f14bcd8 GD |
16310 | |
16311 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 16312 | #line 16313 "configure" |
af15babd | 16313 | #include "confdefs.h" |
4f14bcd8 | 16314 | #include <signal.h> |
af15babd | 16315 | int main() { |
4f14bcd8 GD |
16316 | |
16317 | extern void testSigHandler(int); | |
16318 | ||
16319 | struct sigaction sa; | |
16320 | sa.sa_handler = testSigHandler; | |
16321 | ||
af15babd VZ |
16322 | ; return 0; } |
16323 | EOF | |
17234b26 | 16324 | if { (eval echo configure:16325: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 16325 | rm -rf conftest* |
4f14bcd8 GD |
16326 | |
16327 | wx_cv_type_sa_handler=int | |
16328 | ||
af15babd VZ |
16329 | else |
16330 | echo "configure: failed program was:" >&5 | |
16331 | cat conftest.$ac_ext >&5 | |
16332 | rm -rf conftest* | |
4f14bcd8 GD |
16333 | |
16334 | wx_cv_type_sa_handler=void | |
16335 | ||
af15babd VZ |
16336 | fi |
16337 | rm -f conftest* | |
4f14bcd8 GD |
16338 | |
16339 | fi | |
16340 | ||
16341 | echo "$ac_t""$wx_cv_type_sa_handler" 1>&6 | |
16342 | ||
16343 | ac_ext=c | |
16344 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
16345 | ac_cpp='$CPP $CPPFLAGS' | |
16346 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16347 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16348 | cross_compiling=$ac_cv_prog_cc_cross | |
af15babd | 16349 | |
4f14bcd8 GD |
16350 | |
16351 | cat >> confdefs.h <<EOF | |
16352 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
af15babd VZ |
16353 | EOF |
16354 | ||
4f14bcd8 GD |
16355 | fi |
16356 | fi | |
af15babd | 16357 | |
4f14bcd8 | 16358 | for ac_func in vfork |
af15babd VZ |
16359 | do |
16360 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
17234b26 | 16361 | echo "configure:16362: checking for $ac_func" >&5 |
af15babd VZ |
16362 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16363 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16364 | else | |
16365 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 16366 | #line 16367 "configure" |
af15babd VZ |
16367 | #include "confdefs.h" |
16368 | /* System header to define __stub macros and hopefully few prototypes, | |
16369 | which can conflict with char $ac_func(); below. */ | |
16370 | #include <assert.h> | |
16371 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16372 | /* We use char because int might match the return type of a gcc2 | |
16373 | builtin and then its argument prototype would still apply. */ | |
16374 | char $ac_func(); | |
16375 | ||
16376 | int main() { | |
16377 | ||
16378 | /* The GNU C library defines this for functions which it implements | |
16379 | to always fail with ENOSYS. Some functions are actually named | |
16380 | something starting with __ and the normal name is an alias. */ | |
16381 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16382 | choke me | |
16383 | #else | |
16384 | $ac_func(); | |
16385 | #endif | |
16386 | ||
16387 | ; return 0; } | |
16388 | EOF | |
17234b26 | 16389 | if { (eval echo configure:16390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
16390 | rm -rf conftest* |
16391 | eval "ac_cv_func_$ac_func=yes" | |
16392 | else | |
16393 | echo "configure: failed program was:" >&5 | |
16394 | cat conftest.$ac_ext >&5 | |
16395 | rm -rf conftest* | |
16396 | eval "ac_cv_func_$ac_func=no" | |
16397 | fi | |
16398 | rm -f conftest* | |
16399 | fi | |
16400 | ||
16401 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16402 | echo "$ac_t""yes" 1>&6 | |
16403 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16404 | cat >> confdefs.h <<EOF | |
16405 | #define $ac_tr_func 1 | |
16406 | EOF | |
4f14bcd8 | 16407 | |
af15babd VZ |
16408 | else |
16409 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
16410 | fi |
16411 | done | |
16412 | ||
af15babd | 16413 | |
ade35f11 VZ |
16414 | for ac_func in mkstemp mktemp |
16415 | do | |
16416 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
17234b26 | 16417 | echo "configure:16418: checking for $ac_func" >&5 |
ade35f11 VZ |
16418 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16419 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16420 | else | |
16421 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 16422 | #line 16423 "configure" |
ade35f11 VZ |
16423 | #include "confdefs.h" |
16424 | /* System header to define __stub macros and hopefully few prototypes, | |
16425 | which can conflict with char $ac_func(); below. */ | |
16426 | #include <assert.h> | |
16427 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16428 | /* We use char because int might match the return type of a gcc2 | |
16429 | builtin and then its argument prototype would still apply. */ | |
16430 | char $ac_func(); | |
16431 | ||
16432 | int main() { | |
16433 | ||
16434 | /* The GNU C library defines this for functions which it implements | |
16435 | to always fail with ENOSYS. Some functions are actually named | |
16436 | something starting with __ and the normal name is an alias. */ | |
16437 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16438 | choke me | |
16439 | #else | |
16440 | $ac_func(); | |
16441 | #endif | |
16442 | ||
16443 | ; return 0; } | |
16444 | EOF | |
17234b26 | 16445 | if { (eval echo configure:16446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ade35f11 VZ |
16446 | rm -rf conftest* |
16447 | eval "ac_cv_func_$ac_func=yes" | |
16448 | else | |
16449 | echo "configure: failed program was:" >&5 | |
16450 | cat conftest.$ac_ext >&5 | |
16451 | rm -rf conftest* | |
16452 | eval "ac_cv_func_$ac_func=no" | |
16453 | fi | |
16454 | rm -f conftest* | |
16455 | fi | |
16456 | ||
16457 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16458 | echo "$ac_t""yes" 1>&6 | |
16459 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16460 | cat >> confdefs.h <<EOF | |
16461 | #define $ac_tr_func 1 | |
16462 | EOF | |
16463 | break | |
16464 | else | |
16465 | echo "$ac_t""no" 1>&6 | |
16466 | fi | |
16467 | done | |
16468 | ||
16469 | ||
4f14bcd8 | 16470 | echo $ac_n "checking for statfs""... $ac_c" 1>&6 |
17234b26 | 16471 | echo "configure:16472: checking for statfs" >&5 |
4f14bcd8 GD |
16472 | if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then |
16473 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16474 | else | |
16475 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 16476 | #line 16477 "configure" |
4f14bcd8 GD |
16477 | #include "confdefs.h" |
16478 | ||
16479 | #if defined(__BSD__) | |
16480 | #include <sys/param.h> | |
16481 | #include <sys/mount.h> | |
16482 | #else | |
16483 | #include <sys/vfs.h> | |
16484 | #endif | |
16485 | ||
16486 | int main() { | |
16487 | ||
16488 | long l; | |
16489 | struct statfs fs; | |
16490 | statfs("/", &fs); | |
16491 | l = fs.f_bsize; | |
16492 | l += fs.f_blocks; | |
16493 | l += fs.f_bavail; | |
16494 | ||
16495 | ; return 0; } | |
16496 | EOF | |
17234b26 | 16497 | if { (eval echo configure:16498: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
16498 | rm -rf conftest* |
16499 | ||
16500 | wx_cv_func_statfs=yes | |
16501 | ||
16502 | else | |
16503 | echo "configure: failed program was:" >&5 | |
16504 | cat conftest.$ac_ext >&5 | |
16505 | rm -rf conftest* | |
16506 | ||
16507 | wx_cv_func_statfs=no | |
af15babd VZ |
16508 | |
16509 | ||
16510 | fi | |
4f14bcd8 | 16511 | rm -f conftest* |
af15babd VZ |
16512 | |
16513 | fi | |
16514 | ||
4f14bcd8 GD |
16515 | echo "$ac_t""$wx_cv_func_statfs" 1>&6 |
16516 | ||
16517 | if test "$wx_cv_func_statfs" = "yes"; then | |
16518 | cat >> confdefs.h <<\EOF | |
16519 | #define HAVE_STATFS 1 | |
16520 | EOF | |
16521 | ||
16522 | else | |
16523 | echo $ac_n "checking for statvfs""... $ac_c" 1>&6 | |
17234b26 | 16524 | echo "configure:16525: checking for statvfs" >&5 |
4f14bcd8 | 16525 | if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then |
af15babd VZ |
16526 | echo $ac_n "(cached) $ac_c" 1>&6 |
16527 | else | |
16528 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 16529 | #line 16530 "configure" |
af15babd | 16530 | #include "confdefs.h" |
af15babd | 16531 | |
4f14bcd8 GD |
16532 | #include <sys/statvfs.h> |
16533 | ||
af15babd VZ |
16534 | int main() { |
16535 | ||
4f14bcd8 GD |
16536 | long l; |
16537 | struct statvfs fs; | |
16538 | statvfs("/", &fs); | |
16539 | l = fs.f_bsize; | |
16540 | l += fs.f_blocks; | |
16541 | l += fs.f_bavail; | |
16542 | ||
af15babd VZ |
16543 | ; return 0; } |
16544 | EOF | |
17234b26 | 16545 | if { (eval echo configure:16546: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 16546 | rm -rf conftest* |
4f14bcd8 GD |
16547 | |
16548 | wx_cv_func_statvfs=yes | |
16549 | ||
af15babd VZ |
16550 | else |
16551 | echo "configure: failed program was:" >&5 | |
16552 | cat conftest.$ac_ext >&5 | |
16553 | rm -rf conftest* | |
4f14bcd8 GD |
16554 | |
16555 | wx_cv_func_statvfs=no | |
16556 | ||
16557 | ||
af15babd VZ |
16558 | fi |
16559 | rm -f conftest* | |
4f14bcd8 | 16560 | |
af15babd VZ |
16561 | fi |
16562 | ||
4f14bcd8 | 16563 | echo "$ac_t""$wx_cv_func_statvfs" 1>&6 |
af15babd | 16564 | |
4f14bcd8 GD |
16565 | if test "$wx_cv_func_statvfs" = "yes"; then |
16566 | cat >> confdefs.h <<\EOF | |
16567 | #define HAVE_STATVFS 1 | |
16568 | EOF | |
af15babd | 16569 | |
4f14bcd8 GD |
16570 | else |
16571 | echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2 | |
16572 | fi | |
16573 | fi | |
af15babd | 16574 | |
4f14bcd8 GD |
16575 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
16576 | for ac_func in fcntl flock | |
af15babd VZ |
16577 | do |
16578 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
17234b26 | 16579 | echo "configure:16580: checking for $ac_func" >&5 |
af15babd VZ |
16580 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16581 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16582 | else | |
16583 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 16584 | #line 16585 "configure" |
af15babd VZ |
16585 | #include "confdefs.h" |
16586 | /* System header to define __stub macros and hopefully few prototypes, | |
16587 | which can conflict with char $ac_func(); below. */ | |
16588 | #include <assert.h> | |
16589 | /* Override any gcc2 internal prototype to avoid an error. */ | |
af15babd VZ |
16590 | /* We use char because int might match the return type of a gcc2 |
16591 | builtin and then its argument prototype would still apply. */ | |
16592 | char $ac_func(); | |
16593 | ||
16594 | int main() { | |
16595 | ||
16596 | /* The GNU C library defines this for functions which it implements | |
16597 | to always fail with ENOSYS. Some functions are actually named | |
16598 | something starting with __ and the normal name is an alias. */ | |
16599 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16600 | choke me | |
16601 | #else | |
16602 | $ac_func(); | |
16603 | #endif | |
16604 | ||
16605 | ; return 0; } | |
16606 | EOF | |
17234b26 | 16607 | if { (eval echo configure:16608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
16608 | rm -rf conftest* |
16609 | eval "ac_cv_func_$ac_func=yes" | |
16610 | else | |
16611 | echo "configure: failed program was:" >&5 | |
16612 | cat conftest.$ac_ext >&5 | |
16613 | rm -rf conftest* | |
16614 | eval "ac_cv_func_$ac_func=no" | |
16615 | fi | |
16616 | rm -f conftest* | |
16617 | fi | |
16618 | ||
16619 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16620 | echo "$ac_t""yes" 1>&6 | |
16621 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16622 | cat >> confdefs.h <<EOF | |
16623 | #define $ac_tr_func 1 | |
16624 | EOF | |
4f14bcd8 | 16625 | break |
af15babd VZ |
16626 | else |
16627 | echo "$ac_t""no" 1>&6 | |
16628 | fi | |
16629 | done | |
16630 | ||
16631 | ||
4f14bcd8 GD |
16632 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then |
16633 | echo "configure: warning: wxSingleInstanceChecker not available" 1>&2 | |
16634 | wxUSE_SNGLINST_CHECKER=no | |
16635 | fi | |
16636 | fi | |
af15babd | 16637 | |
4f14bcd8 | 16638 | for ac_func in timegm |
af15babd VZ |
16639 | do |
16640 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
17234b26 | 16641 | echo "configure:16642: checking for $ac_func" >&5 |
af15babd VZ |
16642 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16643 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16644 | else | |
16645 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 16646 | #line 16647 "configure" |
af15babd VZ |
16647 | #include "confdefs.h" |
16648 | /* System header to define __stub macros and hopefully few prototypes, | |
16649 | which can conflict with char $ac_func(); below. */ | |
16650 | #include <assert.h> | |
16651 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16652 | /* We use char because int might match the return type of a gcc2 | |
16653 | builtin and then its argument prototype would still apply. */ | |
16654 | char $ac_func(); | |
16655 | ||
698dcdb6 | 16656 | int main() { |
698dcdb6 | 16657 | |
af15babd VZ |
16658 | /* The GNU C library defines this for functions which it implements |
16659 | to always fail with ENOSYS. Some functions are actually named | |
16660 | something starting with __ and the normal name is an alias. */ | |
16661 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16662 | choke me | |
16663 | #else | |
16664 | $ac_func(); | |
16665 | #endif | |
16666 | ||
698dcdb6 VZ |
16667 | ; return 0; } |
16668 | EOF | |
17234b26 | 16669 | if { (eval echo configure:16670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16670 | rm -rf conftest* |
af15babd | 16671 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
16672 | else |
16673 | echo "configure: failed program was:" >&5 | |
16674 | cat conftest.$ac_ext >&5 | |
16675 | rm -rf conftest* | |
af15babd | 16676 | eval "ac_cv_func_$ac_func=no" |
1e487827 | 16677 | fi |
9952adac | 16678 | rm -f conftest* |
af15babd | 16679 | fi |
703e0a69 | 16680 | |
af15babd VZ |
16681 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16682 | echo "$ac_t""yes" 1>&6 | |
16683 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
4f14bcd8 GD |
16684 | cat >> confdefs.h <<EOF |
16685 | #define $ac_tr_func 1 | |
16686 | EOF | |
16687 | ||
16688 | else | |
16689 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
16690 | fi |
16691 | done | |
16692 | ||
16693 | ||
4f14bcd8 | 16694 | for ac_func in putenv setenv |
10f2d63a | 16695 | do |
698dcdb6 | 16696 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
17234b26 | 16697 | echo "configure:16698: checking for $ac_func" >&5 |
698dcdb6 VZ |
16698 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16699 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16700 | else | |
16701 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 16702 | #line 16703 "configure" |
af15babd VZ |
16703 | #include "confdefs.h" |
16704 | /* System header to define __stub macros and hopefully few prototypes, | |
16705 | which can conflict with char $ac_func(); below. */ | |
16706 | #include <assert.h> | |
16707 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16708 | /* We use char because int might match the return type of a gcc2 | |
16709 | builtin and then its argument prototype would still apply. */ | |
16710 | char $ac_func(); | |
16711 | ||
16712 | int main() { | |
16713 | ||
16714 | /* The GNU C library defines this for functions which it implements | |
16715 | to always fail with ENOSYS. Some functions are actually named | |
16716 | something starting with __ and the normal name is an alias. */ | |
16717 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16718 | choke me | |
16719 | #else | |
16720 | $ac_func(); | |
16721 | #endif | |
16722 | ||
16723 | ; return 0; } | |
16724 | EOF | |
17234b26 | 16725 | if { (eval echo configure:16726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
16726 | rm -rf conftest* |
16727 | eval "ac_cv_func_$ac_func=yes" | |
16728 | else | |
16729 | echo "configure: failed program was:" >&5 | |
16730 | cat conftest.$ac_ext >&5 | |
16731 | rm -rf conftest* | |
16732 | eval "ac_cv_func_$ac_func=no" | |
16733 | fi | |
16734 | rm -f conftest* | |
16735 | fi | |
16736 | ||
16737 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16738 | echo "$ac_t""yes" 1>&6 | |
16739 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16740 | cat >> confdefs.h <<EOF | |
16741 | #define $ac_tr_func 1 | |
16742 | EOF | |
4f14bcd8 | 16743 | break |
af15babd VZ |
16744 | else |
16745 | echo "$ac_t""no" 1>&6 | |
16746 | fi | |
af15babd VZ |
16747 | done |
16748 | ||
16749 | ||
4f14bcd8 GD |
16750 | HAVE_SOME_SLEEP_FUNC=0 |
16751 | if test "$USE_BEOS" = 1; then | |
16752 | cat >> confdefs.h <<\EOF | |
16753 | #define HAVE_SLEEP 1 | |
af15babd VZ |
16754 | EOF |
16755 | ||
4f14bcd8 | 16756 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
16757 | fi |
16758 | ||
4f14bcd8 GD |
16759 | if test "$USE_DARWIN" = 1; then |
16760 | cat >> confdefs.h <<\EOF | |
16761 | #define HAVE_USLEEP 1 | |
af15babd | 16762 | EOF |
10f2d63a | 16763 | |
4f14bcd8 | 16764 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
16765 | fi |
16766 | ||
4f14bcd8 GD |
16767 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
16768 | POSIX4_LINK= | |
16769 | for ac_func in nanosleep | |
16770 | do | |
16771 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
17234b26 | 16772 | echo "configure:16773: checking for $ac_func" >&5 |
4f14bcd8 | 16773 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 | 16774 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 16775 | else |
4f14bcd8 | 16776 | cat > conftest.$ac_ext <<EOF |
17234b26 | 16777 | #line 16778 "configure" |
10f2d63a | 16778 | #include "confdefs.h" |
4f14bcd8 GD |
16779 | /* System header to define __stub macros and hopefully few prototypes, |
16780 | which can conflict with char $ac_func(); below. */ | |
16781 | #include <assert.h> | |
10f2d63a VZ |
16782 | /* Override any gcc2 internal prototype to avoid an error. */ |
16783 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16784 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16785 | char $ac_func(); |
698dcdb6 VZ |
16786 | |
16787 | int main() { | |
4f14bcd8 GD |
16788 | |
16789 | /* The GNU C library defines this for functions which it implements | |
16790 | to always fail with ENOSYS. Some functions are actually named | |
16791 | something starting with __ and the normal name is an alias. */ | |
16792 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16793 | choke me | |
16794 | #else | |
16795 | $ac_func(); | |
16796 | #endif | |
16797 | ||
698dcdb6 VZ |
16798 | ; return 0; } |
16799 | EOF | |
17234b26 | 16800 | if { (eval echo configure:16801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16801 | rm -rf conftest* |
4f14bcd8 | 16802 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
16803 | else |
16804 | echo "configure: failed program was:" >&5 | |
16805 | cat conftest.$ac_ext >&5 | |
16806 | rm -rf conftest* | |
4f14bcd8 | 16807 | eval "ac_cv_func_$ac_func=no" |
698dcdb6 VZ |
16808 | fi |
16809 | rm -f conftest* | |
698dcdb6 | 16810 | fi |
4f14bcd8 GD |
16811 | |
16812 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 16813 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
16814 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
16815 | cat >> confdefs.h <<EOF | |
16816 | #define $ac_tr_func 1 | |
16817 | EOF | |
16818 | cat >> confdefs.h <<\EOF | |
16819 | #define HAVE_NANOSLEEP 1 | |
16820 | EOF | |
16821 | ||
10f2d63a | 16822 | else |
698dcdb6 | 16823 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 16824 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 |
17234b26 | 16825 | echo "configure:16826: checking for nanosleep in -lposix4" >&5 |
4f14bcd8 | 16826 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
16827 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
16828 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 16829 | else |
698dcdb6 | 16830 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 16831 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 16832 | cat > conftest.$ac_ext <<EOF |
17234b26 | 16833 | #line 16834 "configure" |
10f2d63a VZ |
16834 | #include "confdefs.h" |
16835 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16836 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16837 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16838 | char nanosleep(); |
698dcdb6 VZ |
16839 | |
16840 | int main() { | |
4f14bcd8 | 16841 | nanosleep() |
698dcdb6 VZ |
16842 | ; return 0; } |
16843 | EOF | |
17234b26 | 16844 | if { (eval echo configure:16845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16845 | rm -rf conftest* |
16846 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16847 | else | |
16848 | echo "configure: failed program was:" >&5 | |
16849 | cat conftest.$ac_ext >&5 | |
16850 | rm -rf conftest* | |
16851 | eval "ac_cv_lib_$ac_lib_var=no" | |
16852 | fi | |
16853 | rm -f conftest* | |
16854 | LIBS="$ac_save_LIBS" | |
10f2d63a | 16855 | |
698dcdb6 VZ |
16856 | fi |
16857 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16858 | echo "$ac_t""yes" 1>&6 | |
16859 | ||
4f14bcd8 GD |
16860 | cat >> confdefs.h <<\EOF |
16861 | #define HAVE_NANOSLEEP 1 | |
16862 | EOF | |
16863 | ||
3d63bc3a | 16864 | POSIX4_LINK=" -lposix4" |
4f14bcd8 | 16865 | |
10f2d63a | 16866 | else |
698dcdb6 | 16867 | echo "$ac_t""no" 1>&6 |
10f2d63a | 16868 | |
4f14bcd8 GD |
16869 | for ac_func in usleep |
16870 | do | |
16871 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
17234b26 | 16872 | echo "configure:16873: checking for $ac_func" >&5 |
4f14bcd8 | 16873 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 | 16874 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 16875 | else |
698dcdb6 | 16876 | cat > conftest.$ac_ext <<EOF |
17234b26 | 16877 | #line 16878 "configure" |
10f2d63a | 16878 | #include "confdefs.h" |
4f14bcd8 GD |
16879 | /* System header to define __stub macros and hopefully few prototypes, |
16880 | which can conflict with char $ac_func(); below. */ | |
16881 | #include <assert.h> | |
16882 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16883 | /* We use char because int might match the return type of a gcc2 | |
16884 | builtin and then its argument prototype would still apply. */ | |
16885 | char $ac_func(); | |
16886 | ||
16887 | int main() { | |
16888 | ||
16889 | /* The GNU C library defines this for functions which it implements | |
16890 | to always fail with ENOSYS. Some functions are actually named | |
16891 | something starting with __ and the normal name is an alias. */ | |
16892 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16893 | choke me | |
16894 | #else | |
16895 | $ac_func(); | |
16896 | #endif | |
16897 | ||
16898 | ; return 0; } | |
698dcdb6 | 16899 | EOF |
17234b26 | 16900 | if { (eval echo configure:16901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16901 | rm -rf conftest* |
4f14bcd8 | 16902 | eval "ac_cv_func_$ac_func=yes" |
1e487827 | 16903 | else |
698dcdb6 | 16904 | echo "configure: failed program was:" >&5 |
10f2d63a | 16905 | cat conftest.$ac_ext >&5 |
698dcdb6 | 16906 | rm -rf conftest* |
4f14bcd8 | 16907 | eval "ac_cv_func_$ac_func=no" |
10f2d63a | 16908 | fi |
698dcdb6 | 16909 | rm -f conftest* |
10f2d63a | 16910 | fi |
4f14bcd8 GD |
16911 | |
16912 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 16913 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
16914 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
16915 | cat >> confdefs.h <<EOF | |
16916 | #define $ac_tr_func 1 | |
16917 | EOF | |
16918 | cat >> confdefs.h <<\EOF | |
16919 | #define HAVE_USLEEP 1 | |
16920 | EOF | |
16921 | ||
698dcdb6 VZ |
16922 | else |
16923 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 GD |
16924 | echo "configure: warning: wxSleep() function will not work" 1>&2 |
16925 | ||
10f2d63a | 16926 | fi |
4f14bcd8 | 16927 | done |
10f2d63a | 16928 | |
4f14bcd8 | 16929 | |
698dcdb6 | 16930 | |
6232543b | 16931 | fi |
10f2d63a | 16932 | |
698dcdb6 | 16933 | |
4f14bcd8 | 16934 | |
1e487827 | 16935 | fi |
4f14bcd8 | 16936 | done |
703e0a69 | 16937 | |
10f2d63a VZ |
16938 | fi |
16939 | ||
4f14bcd8 | 16940 | for ac_func in uname gethostname |
70846f0a | 16941 | do |
698dcdb6 | 16942 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
17234b26 | 16943 | echo "configure:16944: checking for $ac_func" >&5 |
698dcdb6 VZ |
16944 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16945 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16946 | else | |
16947 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 16948 | #line 16949 "configure" |
70846f0a VZ |
16949 | #include "confdefs.h" |
16950 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16951 | which can conflict with char $ac_func(); below. */ |
70846f0a VZ |
16952 | #include <assert.h> |
16953 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16954 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16955 | builtin and then its argument prototype would still apply. */ |
16956 | char $ac_func(); | |
16957 | ||
16958 | int main() { | |
70846f0a VZ |
16959 | |
16960 | /* The GNU C library defines this for functions which it implements | |
16961 | to always fail with ENOSYS. Some functions are actually named | |
16962 | something starting with __ and the normal name is an alias. */ | |
16963 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16964 | choke me | |
16965 | #else | |
698dcdb6 | 16966 | $ac_func(); |
70846f0a VZ |
16967 | #endif |
16968 | ||
698dcdb6 | 16969 | ; return 0; } |
70846f0a | 16970 | EOF |
17234b26 | 16971 | if { (eval echo configure:16972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16972 | rm -rf conftest* |
16973 | eval "ac_cv_func_$ac_func=yes" | |
16974 | else | |
16975 | echo "configure: failed program was:" >&5 | |
16976 | cat conftest.$ac_ext >&5 | |
16977 | rm -rf conftest* | |
16978 | eval "ac_cv_func_$ac_func=no" | |
16979 | fi | |
16980 | rm -f conftest* | |
16981 | fi | |
70846f0a | 16982 | |
698dcdb6 VZ |
16983 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16984 | echo "$ac_t""yes" 1>&6 | |
16985 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16986 | cat >> confdefs.h <<EOF | |
16987 | #define $ac_tr_func 1 | |
16988 | EOF | |
4f14bcd8 | 16989 | break |
698dcdb6 VZ |
16990 | else |
16991 | echo "$ac_t""no" 1>&6 | |
70846f0a VZ |
16992 | fi |
16993 | done | |
16994 | ||
698dcdb6 | 16995 | |
4f14bcd8 GD |
16996 | |
16997 | ac_ext=C | |
16998 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
16999 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17000 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
17001 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17002 | cross_compiling=$ac_cv_prog_cxx_cross | |
17003 | ||
17004 | ||
17005 | for ac_func in strtok_r | |
10f2d63a | 17006 | do |
4f14bcd8 | 17007 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
17234b26 | 17008 | echo "configure:17009: checking for $ac_func" >&5 |
4f14bcd8 | 17009 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 VZ |
17010 | echo $ac_n "(cached) $ac_c" 1>&6 |
17011 | else | |
17012 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 17013 | #line 17014 "configure" |
10f2d63a | 17014 | #include "confdefs.h" |
4f14bcd8 GD |
17015 | /* System header to define __stub macros and hopefully few prototypes, |
17016 | which can conflict with char $ac_func(); below. */ | |
17017 | #include <assert.h> | |
17018 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17019 | #ifdef __cplusplus | |
17020 | extern "C" | |
17021 | #endif | |
17022 | /* We use char because int might match the return type of a gcc2 | |
17023 | builtin and then its argument prototype would still apply. */ | |
17024 | char $ac_func(); | |
17025 | ||
17026 | int main() { | |
17027 | ||
17028 | /* The GNU C library defines this for functions which it implements | |
17029 | to always fail with ENOSYS. Some functions are actually named | |
17030 | something starting with __ and the normal name is an alias. */ | |
17031 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17032 | choke me | |
17033 | #else | |
17034 | $ac_func(); | |
17035 | #endif | |
17036 | ||
17037 | ; return 0; } | |
698dcdb6 | 17038 | EOF |
17234b26 | 17039 | if { (eval echo configure:17040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17040 | rm -rf conftest* |
4f14bcd8 | 17041 | eval "ac_cv_func_$ac_func=yes" |
1e487827 | 17042 | else |
698dcdb6 | 17043 | echo "configure: failed program was:" >&5 |
10f2d63a | 17044 | cat conftest.$ac_ext >&5 |
698dcdb6 | 17045 | rm -rf conftest* |
4f14bcd8 | 17046 | eval "ac_cv_func_$ac_func=no" |
10f2d63a | 17047 | fi |
698dcdb6 | 17048 | rm -f conftest* |
10f2d63a | 17049 | fi |
4f14bcd8 GD |
17050 | |
17051 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 17052 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 | 17053 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
698dcdb6 | 17054 | cat >> confdefs.h <<EOF |
4f14bcd8 | 17055 | #define $ac_tr_func 1 |
10f2d63a | 17056 | EOF |
698dcdb6 VZ |
17057 | |
17058 | else | |
17059 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
17060 | fi |
17061 | done | |
17062 | ||
698dcdb6 | 17063 | |
4f14bcd8 GD |
17064 | ac_ext=c |
17065 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
17066 | ac_cpp='$CPP $CPPFLAGS' | |
17067 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
17068 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17069 | cross_compiling=$ac_cv_prog_cc_cross | |
17070 | ||
17071 | ||
17072 | INET_LINK= | |
17073 | for ac_func in inet_addr | |
17074 | do | |
17075 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
17234b26 | 17076 | echo "configure:17077: checking for $ac_func" >&5 |
4f14bcd8 | 17077 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 | 17078 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 17079 | else |
4f14bcd8 | 17080 | cat > conftest.$ac_ext <<EOF |
17234b26 | 17081 | #line 17082 "configure" |
10f2d63a | 17082 | #include "confdefs.h" |
4f14bcd8 GD |
17083 | /* System header to define __stub macros and hopefully few prototypes, |
17084 | which can conflict with char $ac_func(); below. */ | |
17085 | #include <assert.h> | |
10f2d63a VZ |
17086 | /* Override any gcc2 internal prototype to avoid an error. */ |
17087 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 17088 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 17089 | char $ac_func(); |
698dcdb6 VZ |
17090 | |
17091 | int main() { | |
4f14bcd8 GD |
17092 | |
17093 | /* The GNU C library defines this for functions which it implements | |
17094 | to always fail with ENOSYS. Some functions are actually named | |
17095 | something starting with __ and the normal name is an alias. */ | |
17096 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17097 | choke me | |
17098 | #else | |
17099 | $ac_func(); | |
17100 | #endif | |
17101 | ||
698dcdb6 VZ |
17102 | ; return 0; } |
17103 | EOF | |
17234b26 | 17104 | if { (eval echo configure:17105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17105 | rm -rf conftest* |
4f14bcd8 | 17106 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
17107 | else |
17108 | echo "configure: failed program was:" >&5 | |
17109 | cat conftest.$ac_ext >&5 | |
17110 | rm -rf conftest* | |
4f14bcd8 | 17111 | eval "ac_cv_func_$ac_func=no" |
698dcdb6 VZ |
17112 | fi |
17113 | rm -f conftest* | |
698dcdb6 | 17114 | fi |
4f14bcd8 GD |
17115 | |
17116 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 17117 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
17118 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
17119 | cat >> confdefs.h <<EOF | |
17120 | #define $ac_tr_func 1 | |
17121 | EOF | |
17122 | cat >> confdefs.h <<\EOF | |
17123 | #define HAVE_INET_ADDR 1 | |
10f2d63a VZ |
17124 | EOF |
17125 | ||
17126 | else | |
698dcdb6 | 17127 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 17128 | echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6 |
17234b26 | 17129 | echo "configure:17130: checking for inet_addr in -lnsl" >&5 |
4f14bcd8 | 17130 | ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
17131 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
17132 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 17133 | else |
698dcdb6 | 17134 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17135 | LIBS="-lnsl $LIBS" |
698dcdb6 | 17136 | cat > conftest.$ac_ext <<EOF |
17234b26 | 17137 | #line 17138 "configure" |
10f2d63a VZ |
17138 | #include "confdefs.h" |
17139 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17140 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 17141 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 17142 | char inet_addr(); |
698dcdb6 VZ |
17143 | |
17144 | int main() { | |
4f14bcd8 | 17145 | inet_addr() |
698dcdb6 VZ |
17146 | ; return 0; } |
17147 | EOF | |
17234b26 | 17148 | if { (eval echo configure:17149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17149 | rm -rf conftest* |
17150 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17151 | else | |
17152 | echo "configure: failed program was:" >&5 | |
17153 | cat conftest.$ac_ext >&5 | |
17154 | rm -rf conftest* | |
17155 | eval "ac_cv_lib_$ac_lib_var=no" | |
17156 | fi | |
17157 | rm -f conftest* | |
17158 | LIBS="$ac_save_LIBS" | |
17159 | ||
17160 | fi | |
17161 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17162 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 17163 | INET_LINK="nsl" |
10f2d63a | 17164 | else |
698dcdb6 | 17165 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 17166 | echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6 |
17234b26 | 17167 | echo "configure:17168: checking for inet_addr in -lresolv" >&5 |
4f14bcd8 | 17168 | ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
17169 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
17170 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 17171 | else |
698dcdb6 | 17172 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17173 | LIBS="-lresolv $LIBS" |
698dcdb6 | 17174 | cat > conftest.$ac_ext <<EOF |
17234b26 | 17175 | #line 17176 "configure" |
10f2d63a VZ |
17176 | #include "confdefs.h" |
17177 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17178 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 17179 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 17180 | char inet_addr(); |
698dcdb6 VZ |
17181 | |
17182 | int main() { | |
4f14bcd8 | 17183 | inet_addr() |
698dcdb6 VZ |
17184 | ; return 0; } |
17185 | EOF | |
17234b26 | 17186 | if { (eval echo configure:17187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17187 | rm -rf conftest* |
17188 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17189 | else | |
17190 | echo "configure: failed program was:" >&5 | |
17191 | cat conftest.$ac_ext >&5 | |
17192 | rm -rf conftest* | |
17193 | eval "ac_cv_lib_$ac_lib_var=no" | |
17194 | fi | |
17195 | rm -f conftest* | |
17196 | LIBS="$ac_save_LIBS" | |
17197 | ||
17198 | fi | |
17199 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17200 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 17201 | INET_LINK="resolv" |
698dcdb6 | 17202 | else |
4f14bcd8 | 17203 | echo "$ac_t""no" 1>&6 |
3c011993 | 17204 | echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6 |
17234b26 | 17205 | echo "configure:17206: checking for inet_addr in -lsocket" >&5 |
3c011993 VZ |
17206 | ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'` |
17207 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17208 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17209 | else | |
17210 | ac_save_LIBS="$LIBS" | |
17211 | LIBS="-lsocket $LIBS" | |
17212 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 17213 | #line 17214 "configure" |
3c011993 VZ |
17214 | #include "confdefs.h" |
17215 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17216 | /* We use char because int might match the return type of a gcc2 | |
17217 | builtin and then its argument prototype would still apply. */ | |
17218 | char inet_addr(); | |
17219 | ||
17220 | int main() { | |
17221 | inet_addr() | |
17222 | ; return 0; } | |
17223 | EOF | |
17234b26 | 17224 | if { (eval echo configure:17225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3c011993 VZ |
17225 | rm -rf conftest* |
17226 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17227 | else | |
17228 | echo "configure: failed program was:" >&5 | |
17229 | cat conftest.$ac_ext >&5 | |
17230 | rm -rf conftest* | |
17231 | eval "ac_cv_lib_$ac_lib_var=no" | |
17232 | fi | |
17233 | rm -f conftest* | |
17234 | LIBS="$ac_save_LIBS" | |
17235 | ||
17236 | fi | |
17237 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17238 | echo "$ac_t""yes" 1>&6 | |
17239 | INET_LINK="socket" | |
17240 | ||
17241 | else | |
17242 | echo "$ac_t""no" 1>&6 | |
17243 | fi | |
17244 | ||
17245 | ||
4f14bcd8 | 17246 | fi |
698dcdb6 | 17247 | |
4f14bcd8 | 17248 | |
698dcdb6 | 17249 | fi |
4f14bcd8 GD |
17250 | |
17251 | ||
698dcdb6 VZ |
17252 | |
17253 | fi | |
4f14bcd8 GD |
17254 | done |
17255 | ||
17256 | ||
17257 | for ac_func in inet_aton | |
17258 | do | |
17259 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
17234b26 | 17260 | echo "configure:17261: checking for $ac_func" >&5 |
4f14bcd8 | 17261 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 VZ |
17262 | echo $ac_n "(cached) $ac_c" 1>&6 |
17263 | else | |
4f14bcd8 | 17264 | cat > conftest.$ac_ext <<EOF |
17234b26 | 17265 | #line 17266 "configure" |
f6bcfd97 | 17266 | #include "confdefs.h" |
4f14bcd8 GD |
17267 | /* System header to define __stub macros and hopefully few prototypes, |
17268 | which can conflict with char $ac_func(); below. */ | |
17269 | #include <assert.h> | |
f6bcfd97 BP |
17270 | /* Override any gcc2 internal prototype to avoid an error. */ |
17271 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 17272 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 17273 | char $ac_func(); |
698dcdb6 VZ |
17274 | |
17275 | int main() { | |
4f14bcd8 GD |
17276 | |
17277 | /* The GNU C library defines this for functions which it implements | |
17278 | to always fail with ENOSYS. Some functions are actually named | |
17279 | something starting with __ and the normal name is an alias. */ | |
17280 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17281 | choke me | |
17282 | #else | |
17283 | $ac_func(); | |
17284 | #endif | |
17285 | ||
698dcdb6 VZ |
17286 | ; return 0; } |
17287 | EOF | |
17234b26 | 17288 | if { (eval echo configure:17289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17289 | rm -rf conftest* |
4f14bcd8 | 17290 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
17291 | else |
17292 | echo "configure: failed program was:" >&5 | |
17293 | cat conftest.$ac_ext >&5 | |
17294 | rm -rf conftest* | |
4f14bcd8 | 17295 | eval "ac_cv_func_$ac_func=no" |
698dcdb6 VZ |
17296 | fi |
17297 | rm -f conftest* | |
698dcdb6 | 17298 | fi |
4f14bcd8 GD |
17299 | |
17300 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 17301 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
17302 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
17303 | cat >> confdefs.h <<EOF | |
17304 | #define $ac_tr_func 1 | |
17305 | EOF | |
17306 | cat >> confdefs.h <<\EOF | |
17307 | #define HAVE_INET_ATON 1 | |
17308 | EOF | |
17309 | ||
10f2d63a | 17310 | else |
698dcdb6 | 17311 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 17312 | echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6 |
17234b26 | 17313 | echo "configure:17314: checking for inet_aton in -l$INET_LINK" >&5 |
4f14bcd8 | 17314 | ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
17315 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
17316 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 17317 | else |
698dcdb6 | 17318 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17319 | LIBS="-l$INET_LINK $LIBS" |
698dcdb6 | 17320 | cat > conftest.$ac_ext <<EOF |
17234b26 | 17321 | #line 17322 "configure" |
10f2d63a | 17322 | #include "confdefs.h" |
6232543b | 17323 | /* Override any gcc2 internal prototype to avoid an error. */ |
6232543b | 17324 | /* We use char because int might match the return type of a gcc2 |
698dcdb6 | 17325 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 17326 | char inet_aton(); |
698dcdb6 VZ |
17327 | |
17328 | int main() { | |
4f14bcd8 | 17329 | inet_aton() |
698dcdb6 VZ |
17330 | ; return 0; } |
17331 | EOF | |
17234b26 | 17332 | if { (eval echo configure:17333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17333 | rm -rf conftest* |
17334 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17335 | else | |
17336 | echo "configure: failed program was:" >&5 | |
17337 | cat conftest.$ac_ext >&5 | |
17338 | rm -rf conftest* | |
17339 | eval "ac_cv_lib_$ac_lib_var=no" | |
17340 | fi | |
17341 | rm -f conftest* | |
17342 | LIBS="$ac_save_LIBS" | |
10f2d63a | 17343 | |
698dcdb6 VZ |
17344 | fi |
17345 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17346 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 GD |
17347 | cat >> confdefs.h <<\EOF |
17348 | #define HAVE_INET_ATON 1 | |
17349 | EOF | |
17350 | ||
698dcdb6 VZ |
17351 | else |
17352 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
17353 | fi |
17354 | ||
4f14bcd8 | 17355 | |
10f2d63a | 17356 | fi |
4f14bcd8 | 17357 | done |
10f2d63a | 17358 | |
4f14bcd8 GD |
17359 | |
17360 | if test "x$INET_LINK" != "x"; then | |
17361 | cat >> confdefs.h <<\EOF | |
17362 | #define HAVE_INET_ADDR 1 | |
17363 | EOF | |
17364 | ||
3d63bc3a | 17365 | INET_LINK=" -l$INET_LINK" |
6232543b | 17366 | fi |
10f2d63a | 17367 | |
1e487827 | 17368 | fi |
703e0a69 | 17369 | |
698dcdb6 | 17370 | |
4f14bcd8 GD |
17371 | cat > confcache <<\EOF |
17372 | # This file is a shell script that caches the results of configure | |
17373 | # tests run on this system so they can be shared between configure | |
17374 | # scripts and configure runs. It is not useful on other systems. | |
17375 | # If it contains results you don't want to keep, you may remove or edit it. | |
17376 | # | |
17377 | # By default, configure uses ./config.cache as the cache file, | |
17378 | # creating it if it does not exist already. You can give configure | |
17379 | # the --cache-file=FILE option to use a different cache file; that is | |
17380 | # what configure does when it calls configure scripts in | |
17381 | # subdirectories, so they share the cache. | |
17382 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
17383 | # config.status only pays attention to the cache file if you give it the | |
17384 | # --recheck option to rerun configure. | |
17385 | # | |
f6bcfd97 | 17386 | EOF |
4f14bcd8 GD |
17387 | # The following way of writing the cache mishandles newlines in values, |
17388 | # but we know of no workaround that is simple, portable, and efficient. | |
17389 | # So, don't put newlines in cache variables' values. | |
17390 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
17391 | # and sets the high bit in the cache file unless we assign to the vars. | |
17392 | (set) 2>&1 | | |
17393 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
17394 | *ac_space=\ *) | |
17395 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
17396 | # turns \\\\ into \\, and sed turns \\ into \). | |
17397 | sed -n \ | |
17398 | -e "s/'/'\\\\''/g" \ | |
17399 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
17400 | ;; | |
17401 | *) | |
17402 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
17403 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
17404 | ;; | |
17405 | esac >> confcache | |
17406 | if cmp -s $cache_file confcache; then | |
17407 | : | |
17408 | else | |
17409 | if test -w $cache_file; then | |
17410 | echo "updating cache $cache_file" | |
17411 | cat confcache > $cache_file | |
f6bcfd97 | 17412 | else |
4f14bcd8 | 17413 | echo "not updating unwritable cache $cache_file" |
f6bcfd97 | 17414 | fi |
4f14bcd8 GD |
17415 | fi |
17416 | rm -f confcache | |
f6bcfd97 | 17417 | |
4f14bcd8 GD |
17418 | |
17419 | ||
009fead0 | 17420 | CPP_MT_FLAG= |
4f14bcd8 GD |
17421 | if test "$TOOLKIT" != "MSW"; then |
17422 | ||
009fead0 | 17423 | |
7274f1c7 | 17424 | THREADS_LINK= |
009fead0 | 17425 | THREADS_CFLAGS= |
7274f1c7 RL |
17426 | |
17427 | if test "$wxUSE_THREADS" = "yes" ; then | |
17428 | if test "$wxUSE_WINE" = 1 ; then | |
156b2523 | 17429 | echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2 |
7274f1c7 RL |
17430 | wxUSE_THREADS="no" |
17431 | elif test "$USE_BEOS" = 1; then | |
156b2523 | 17432 | echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2 |
7274f1c7 RL |
17433 | wxUSE_THREADS="no" |
17434 | fi | |
4f14bcd8 | 17435 | fi |
4f14bcd8 | 17436 | |
7274f1c7 | 17437 | if test "$wxUSE_THREADS" = "yes" ; then |
009fead0 | 17438 | |
3010d50a | 17439 | |
009fead0 VZ |
17440 | THREAD_OPTS="-pthread" |
17441 | case "${host}" in | |
17442 | *-*-solaris2* | *-*-sunos4* ) | |
17443 | if test "x$GCC" = "xyes"; then | |
126be6b4 | 17444 | THREAD_OPTS="-pthreads $THREAD_OPTS" |
009fead0 VZ |
17445 | else |
17446 | THREAD_OPTS="-mt $THREAD_OPTS" | |
17447 | fi | |
17448 | ;; | |
17449 | *-*-freebsd*) | |
17450 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
17451 | ;; | |
17234b26 MB |
17452 | *-*-darwin* | *-*-cygwin* ) |
17453 | THREAD_OPTS="" | |
4101db81 | 17454 | ;; |
8f4a9a10 | 17455 | *-*-aix*) |
009fead0 VZ |
17456 | THREAD_OPTS="pthreads" |
17457 | ;; | |
009fead0 | 17458 | esac |
4f14bcd8 | 17459 | |
02a1dfba | 17460 | THREAD_OPTS="$THREAD_OPTS pthread none" |
595e0e44 | 17461 | |
009fead0 VZ |
17462 | THREADS_OK=no |
17463 | for flag in $THREAD_OPTS; do | |
17464 | case $flag in | |
17465 | none) | |
17466 | echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6 | |
17234b26 | 17467 | echo "configure:17468: checking whether pthreads work without any flags" >&5 |
009fead0 | 17468 | ;; |
698dcdb6 | 17469 | |
009fead0 VZ |
17470 | -*) |
17471 | echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6 | |
17234b26 | 17472 | echo "configure:17473: checking whether pthreads work with $flag" >&5 |
009fead0 VZ |
17473 | THREADS_CFLAGS="$flag" |
17474 | ;; | |
698dcdb6 | 17475 | |
009fead0 VZ |
17476 | *) |
17477 | echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6 | |
17234b26 | 17478 | echo "configure:17479: checking for the pthreads library -l$flag" >&5 |
009fead0 VZ |
17479 | THREADS_LINK="-l$flag" |
17480 | ;; | |
17481 | esac | |
10f2d63a | 17482 | |
009fead0 VZ |
17483 | save_LIBS="$LIBS" |
17484 | save_CFLAGS="$CFLAGS" | |
17485 | LIBS="$THREADS_LINK $LIBS" | |
04727afd | 17486 | CFLAGS="$THREADS_CFLAGS $CFLAGS" |
10f2d63a | 17487 | |
009fead0 | 17488 | cat > conftest.$ac_ext <<EOF |
17234b26 | 17489 | #line 17490 "configure" |
009fead0 VZ |
17490 | #include "confdefs.h" |
17491 | #include <pthread.h> | |
4f14bcd8 | 17492 | int main() { |
009fead0 | 17493 | pthread_create(0,0,0,0); |
698dcdb6 VZ |
17494 | ; return 0; } |
17495 | EOF | |
17234b26 | 17496 | if { (eval echo configure:17497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17497 | rm -rf conftest* |
009fead0 | 17498 | THREADS_OK=yes |
10f2d63a | 17499 | else |
698dcdb6 VZ |
17500 | echo "configure: failed program was:" >&5 |
17501 | cat conftest.$ac_ext >&5 | |
6232543b | 17502 | fi |
698dcdb6 | 17503 | rm -f conftest* |
698dcdb6 | 17504 | |
009fead0 VZ |
17505 | LIBS="$save_LIBS" |
17506 | CFLAGS="$save_CFLAGS" | |
d9b9876f | 17507 | |
009fead0 VZ |
17508 | echo "$ac_t""$THREADS_OK" 1>&6 |
17509 | if test "x$THREADS_OK" = "xyes"; then | |
17510 | break; | |
17511 | fi | |
d9b9876f | 17512 | |
009fead0 VZ |
17513 | THREADS_LINK="" |
17514 | THREADS_CFLAGS="" | |
17515 | done | |
4f14bcd8 | 17516 | |
009fead0 VZ |
17517 | if test "x$THREADS_OK" != "xyes"; then |
17518 | wxUSE_THREADS=no | |
17519 | echo "configure: warning: No thread support on this system... disabled" 1>&2 | |
17520 | else | |
fe5a9cab VZ |
17521 | LIBS="$THREADS_LINK $THREADS_CFLAGS $LIBS" |
17522 | ||
009fead0 | 17523 | echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6 |
17234b26 | 17524 | echo "configure:17525: checking if more special flags are required for pthreads" >&5 |
009fead0 VZ |
17525 | flag=no |
17526 | case "${host}" in | |
17527 | *-aix* | *-freebsd*) | |
17528 | flag="-D_THREAD_SAFE" | |
17529 | ;; | |
17530 | *solaris* | alpha*-osf*) | |
17531 | flag="-D_REENTRANT" | |
17532 | ;; | |
17533 | esac | |
17534 | echo "$ac_t""${flag}" 1>&6 | |
17535 | if test "x$flag" != xno; then | |
04727afd | 17536 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" |
009fead0 VZ |
17537 | fi |
17538 | ||
009fead0 | 17539 | if test "x$THREADS_CFLAGS" != "x"; then |
04727afd | 17540 | CFLAGS="$CFLAGS $THREADS_CFLAGS" |
009fead0 VZ |
17541 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" |
17542 | fi | |
17543 | fi | |
4f14bcd8 | 17544 | fi |
4f14bcd8 | 17545 | |
7274f1c7 RL |
17546 | if test "$wxUSE_THREADS" = "yes" ; then |
17547 | for ac_func in thr_setconcurrency | |
4f14bcd8 GD |
17548 | do |
17549 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
17234b26 | 17550 | echo "configure:17551: checking for $ac_func" >&5 |
4f14bcd8 | 17551 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 VZ |
17552 | echo $ac_n "(cached) $ac_c" 1>&6 |
17553 | else | |
4f14bcd8 | 17554 | cat > conftest.$ac_ext <<EOF |
17234b26 | 17555 | #line 17556 "configure" |
d9b9876f | 17556 | #include "confdefs.h" |
4f14bcd8 GD |
17557 | /* System header to define __stub macros and hopefully few prototypes, |
17558 | which can conflict with char $ac_func(); below. */ | |
17559 | #include <assert.h> | |
17560 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17561 | /* We use char because int might match the return type of a gcc2 | |
17562 | builtin and then its argument prototype would still apply. */ | |
17563 | char $ac_func(); | |
17564 | ||
698dcdb6 | 17565 | int main() { |
d9b9876f | 17566 | |
4f14bcd8 GD |
17567 | /* The GNU C library defines this for functions which it implements |
17568 | to always fail with ENOSYS. Some functions are actually named | |
17569 | something starting with __ and the normal name is an alias. */ | |
17570 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17571 | choke me | |
17572 | #else | |
17573 | $ac_func(); | |
17574 | #endif | |
17575 | ||
698dcdb6 VZ |
17576 | ; return 0; } |
17577 | EOF | |
17234b26 | 17578 | if { (eval echo configure:17579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17579 | rm -rf conftest* |
4f14bcd8 | 17580 | eval "ac_cv_func_$ac_func=yes" |
d9b9876f | 17581 | else |
698dcdb6 VZ |
17582 | echo "configure: failed program was:" >&5 |
17583 | cat conftest.$ac_ext >&5 | |
17584 | rm -rf conftest* | |
4f14bcd8 | 17585 | eval "ac_cv_func_$ac_func=no" |
6232543b | 17586 | fi |
698dcdb6 | 17587 | rm -f conftest* |
1e487827 | 17588 | fi |
698dcdb6 | 17589 | |
4f14bcd8 GD |
17590 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17591 | echo "$ac_t""yes" 1>&6 | |
17592 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17593 | cat >> confdefs.h <<EOF | |
17594 | #define $ac_tr_func 1 | |
d9b9876f | 17595 | EOF |
4f14bcd8 GD |
17596 | |
17597 | else | |
17598 | echo "$ac_t""no" 1>&6 | |
10f2d63a | 17599 | fi |
4f14bcd8 | 17600 | done |
10f2d63a | 17601 | |
10f2d63a | 17602 | |
7274f1c7 | 17603 | for ac_hdr in sched.h |
4f14bcd8 GD |
17604 | do |
17605 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
17606 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
17234b26 | 17607 | echo "configure:17608: checking for $ac_hdr" >&5 |
4f14bcd8 GD |
17608 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
17609 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 17610 | else |
4f14bcd8 | 17611 | cat > conftest.$ac_ext <<EOF |
17234b26 | 17612 | #line 17613 "configure" |
4f14bcd8 GD |
17613 | #include "confdefs.h" |
17614 | #include <$ac_hdr> | |
13111b2a | 17615 | EOF |
4f14bcd8 | 17616 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
17234b26 | 17617 | { (eval echo configure:17618: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
17618 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
17619 | if test -z "$ac_err"; then | |
17620 | rm -rf conftest* | |
17621 | eval "ac_cv_header_$ac_safe=yes" | |
17622 | else | |
17623 | echo "$ac_err" >&5 | |
17624 | echo "configure: failed program was:" >&5 | |
17625 | cat conftest.$ac_ext >&5 | |
17626 | rm -rf conftest* | |
17627 | eval "ac_cv_header_$ac_safe=no" | |
13111b2a | 17628 | fi |
4f14bcd8 | 17629 | rm -f conftest* |
10f2d63a | 17630 | fi |
4f14bcd8 GD |
17631 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
17632 | echo "$ac_t""yes" 1>&6 | |
17633 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
698dcdb6 | 17634 | cat >> confdefs.h <<EOF |
4f14bcd8 | 17635 | #define $ac_tr_hdr 1 |
f6bcfd97 | 17636 | EOF |
4f14bcd8 GD |
17637 | |
17638 | else | |
17639 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 | 17640 | fi |
4f14bcd8 | 17641 | done |
f6bcfd97 | 17642 | |
009fead0 VZ |
17643 | if test "$ac_cv_header_sched_h" = "yes"; then |
17644 | echo $ac_n "checking for sched_yield""... $ac_c" 1>&6 | |
17234b26 | 17645 | echo "configure:17646: checking for sched_yield" >&5 |
009fead0 | 17646 | if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then |
4f14bcd8 GD |
17647 | echo $ac_n "(cached) $ac_c" 1>&6 |
17648 | else | |
009fead0 | 17649 | cat > conftest.$ac_ext <<EOF |
17234b26 | 17650 | #line 17651 "configure" |
4f14bcd8 | 17651 | #include "confdefs.h" |
009fead0 VZ |
17652 | /* System header to define __stub macros and hopefully few prototypes, |
17653 | which can conflict with char sched_yield(); below. */ | |
17654 | #include <assert.h> | |
4f14bcd8 GD |
17655 | /* Override any gcc2 internal prototype to avoid an error. */ |
17656 | /* We use char because int might match the return type of a gcc2 | |
17657 | builtin and then its argument prototype would still apply. */ | |
17658 | char sched_yield(); | |
10f2d63a | 17659 | |
4f14bcd8 | 17660 | int main() { |
009fead0 VZ |
17661 | |
17662 | /* The GNU C library defines this for functions which it implements | |
17663 | to always fail with ENOSYS. Some functions are actually named | |
17664 | something starting with __ and the normal name is an alias. */ | |
17665 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
17666 | choke me | |
17667 | #else | |
17668 | sched_yield(); | |
17669 | #endif | |
17670 | ||
4f14bcd8 | 17671 | ; return 0; } |
10f2d63a | 17672 | EOF |
17234b26 | 17673 | if { (eval echo configure:17674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 | 17674 | rm -rf conftest* |
009fead0 | 17675 | eval "ac_cv_func_sched_yield=yes" |
10f2d63a | 17676 | else |
4f14bcd8 GD |
17677 | echo "configure: failed program was:" >&5 |
17678 | cat conftest.$ac_ext >&5 | |
17679 | rm -rf conftest* | |
009fead0 | 17680 | eval "ac_cv_func_sched_yield=no" |
10f2d63a | 17681 | fi |
4f14bcd8 | 17682 | rm -f conftest* |
4f14bcd8 | 17683 | fi |
009fead0 VZ |
17684 | |
17685 | if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then | |
4f14bcd8 GD |
17686 | echo "$ac_t""yes" 1>&6 |
17687 | cat >> confdefs.h <<\EOF | |
17688 | #define HAVE_SCHED_YIELD 1 | |
10f2d63a VZ |
17689 | EOF |
17690 | ||
4f14bcd8 GD |
17691 | else |
17692 | echo "$ac_t""no" 1>&6 | |
009fead0 VZ |
17693 | |
17694 | echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6 | |
17234b26 | 17695 | echo "configure:17696: checking for sched_yield in -lposix4" >&5 |
4f14bcd8 GD |
17696 | ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'` |
17697 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17698 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17699 | else | |
17700 | ac_save_LIBS="$LIBS" | |
17701 | LIBS="-lposix4 $LIBS" | |
17702 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 17703 | #line 17704 "configure" |
4f14bcd8 GD |
17704 | #include "confdefs.h" |
17705 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17706 | /* We use char because int might match the return type of a gcc2 | |
17707 | builtin and then its argument prototype would still apply. */ | |
17708 | char sched_yield(); | |
47c13eb7 | 17709 | |
4f14bcd8 GD |
17710 | int main() { |
17711 | sched_yield() | |
17712 | ; return 0; } | |
10f2d63a | 17713 | EOF |
17234b26 | 17714 | if { (eval echo configure:17715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
17715 | rm -rf conftest* |
17716 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 17717 | else |
4f14bcd8 GD |
17718 | echo "configure: failed program was:" >&5 |
17719 | cat conftest.$ac_ext >&5 | |
17720 | rm -rf conftest* | |
17721 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 17722 | fi |
4f14bcd8 GD |
17723 | rm -f conftest* |
17724 | LIBS="$ac_save_LIBS" | |
10f2d63a | 17725 | |
54276ccf | 17726 | fi |
4f14bcd8 GD |
17727 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
17728 | echo "$ac_t""yes" 1>&6 | |
17729 | cat >> confdefs.h <<\EOF | |
17730 | #define HAVE_SCHED_YIELD 1 | |
54276ccf | 17731 | EOF |
3d63bc3a | 17732 | POSIX4_LINK=" -lposix4" |
4f14bcd8 GD |
17733 | else |
17734 | echo "$ac_t""no" 1>&6 | |
17735 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
009fead0 | 17736 | |
54276ccf VZ |
17737 | fi |
17738 | ||
009fead0 VZ |
17739 | |
17740 | ||
4f14bcd8 | 17741 | fi |
698dcdb6 | 17742 | |
009fead0 | 17743 | fi |
10f2d63a | 17744 | |
7274f1c7 | 17745 | HAVE_PRIOR_FUNCS=0 |
009fead0 | 17746 | echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6 |
17234b26 | 17747 | echo "configure:17748: checking for pthread_attr_getschedpolicy" >&5 |
009fead0 | 17748 | if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then |
698dcdb6 VZ |
17749 | echo $ac_n "(cached) $ac_c" 1>&6 |
17750 | else | |
009fead0 | 17751 | cat > conftest.$ac_ext <<EOF |
17234b26 | 17752 | #line 17753 "configure" |
422107f9 | 17753 | #include "confdefs.h" |
009fead0 VZ |
17754 | /* System header to define __stub macros and hopefully few prototypes, |
17755 | which can conflict with char pthread_attr_getschedpolicy(); below. */ | |
17756 | #include <assert.h> | |
4f14bcd8 GD |
17757 | /* Override any gcc2 internal prototype to avoid an error. */ |
17758 | /* We use char because int might match the return type of a gcc2 | |
17759 | builtin and then its argument prototype would still apply. */ | |
17760 | char pthread_attr_getschedpolicy(); | |
17761 | ||
17762 | int main() { | |
009fead0 VZ |
17763 | |
17764 | /* The GNU C library defines this for functions which it implements | |
17765 | to always fail with ENOSYS. Some functions are actually named | |
17766 | something starting with __ and the normal name is an alias. */ | |
17767 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
17768 | choke me | |
17769 | #else | |
17770 | pthread_attr_getschedpolicy(); | |
17771 | #endif | |
17772 | ||
4f14bcd8 | 17773 | ; return 0; } |
698dcdb6 | 17774 | EOF |
17234b26 | 17775 | if { (eval echo configure:17776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17776 | rm -rf conftest* |
009fead0 | 17777 | eval "ac_cv_func_pthread_attr_getschedpolicy=yes" |
422107f9 | 17778 | else |
698dcdb6 | 17779 | echo "configure: failed program was:" >&5 |
422107f9 | 17780 | cat conftest.$ac_ext >&5 |
698dcdb6 | 17781 | rm -rf conftest* |
009fead0 | 17782 | eval "ac_cv_func_pthread_attr_getschedpolicy=no" |
422107f9 | 17783 | fi |
698dcdb6 | 17784 | rm -f conftest* |
422107f9 | 17785 | fi |
009fead0 VZ |
17786 | |
17787 | if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then | |
698dcdb6 | 17788 | echo "$ac_t""yes" 1>&6 |
009fead0 | 17789 | echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6 |
17234b26 | 17790 | echo "configure:17791: checking for pthread_attr_setschedparam" >&5 |
009fead0 | 17791 | if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then |
698dcdb6 | 17792 | echo $ac_n "(cached) $ac_c" 1>&6 |
422107f9 | 17793 | else |
009fead0 | 17794 | cat > conftest.$ac_ext <<EOF |
17234b26 | 17795 | #line 17796 "configure" |
422107f9 | 17796 | #include "confdefs.h" |
009fead0 VZ |
17797 | /* System header to define __stub macros and hopefully few prototypes, |
17798 | which can conflict with char pthread_attr_setschedparam(); below. */ | |
17799 | #include <assert.h> | |
422107f9 VZ |
17800 | /* Override any gcc2 internal prototype to avoid an error. */ |
17801 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 17802 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 17803 | char pthread_attr_setschedparam(); |
698dcdb6 VZ |
17804 | |
17805 | int main() { | |
009fead0 VZ |
17806 | |
17807 | /* The GNU C library defines this for functions which it implements | |
17808 | to always fail with ENOSYS. Some functions are actually named | |
17809 | something starting with __ and the normal name is an alias. */ | |
17810 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
17811 | choke me | |
17812 | #else | |
17813 | pthread_attr_setschedparam(); | |
17814 | #endif | |
17815 | ||
698dcdb6 VZ |
17816 | ; return 0; } |
17817 | EOF | |
17234b26 | 17818 | if { (eval echo configure:17819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17819 | rm -rf conftest* |
009fead0 | 17820 | eval "ac_cv_func_pthread_attr_setschedparam=yes" |
698dcdb6 VZ |
17821 | else |
17822 | echo "configure: failed program was:" >&5 | |
17823 | cat conftest.$ac_ext >&5 | |
17824 | rm -rf conftest* | |
009fead0 | 17825 | eval "ac_cv_func_pthread_attr_setschedparam=no" |
698dcdb6 VZ |
17826 | fi |
17827 | rm -f conftest* | |
698dcdb6 | 17828 | fi |
009fead0 VZ |
17829 | |
17830 | if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then | |
698dcdb6 | 17831 | echo "$ac_t""yes" 1>&6 |
009fead0 | 17832 | echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6 |
17234b26 | 17833 | echo "configure:17834: checking for sched_get_priority_max" >&5 |
009fead0 | 17834 | if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then |
698dcdb6 VZ |
17835 | echo $ac_n "(cached) $ac_c" 1>&6 |
17836 | else | |
009fead0 | 17837 | cat > conftest.$ac_ext <<EOF |
17234b26 | 17838 | #line 17839 "configure" |
422107f9 | 17839 | #include "confdefs.h" |
009fead0 VZ |
17840 | /* System header to define __stub macros and hopefully few prototypes |
17841 | else | |
17842 | echo "$ac_t""no" 1>&6 | |
17843 | which can conflict with char sched_get_priority_max(); below. */ | |
17844 | #include <assert.h> | |
4f14bcd8 GD |
17845 | /* Override any gcc2 internal prototype to avoid an error. */ |
17846 | /* We use char because int might match the return type of a gcc2 | |
17847 | builtin and then its argument prototype would still apply. */ | |
17848 | char sched_get_priority_max(); | |
17849 | ||
17850 | int main() { | |
009fead0 VZ |
17851 | |
17852 | /* The GNU C library defines this for functions which it implements | |
17853 | to always fail with ENOSYS. Some functions are actually named | |
17854 | something starting with __ and the normal name is an alias. */ | |
17855 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
17856 | choke me | |
17857 | #else | |
17858 | sched_get_priority_max(); | |
17859 | #endif | |
17860 | ||
4f14bcd8 | 17861 | ; return 0; } |
698dcdb6 | 17862 | EOF |
17234b26 | 17863 | if { (eval echo configure:17864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17864 | rm -rf conftest* |
009fead0 | 17865 | eval "ac_cv_func_sched_get_priority_max=yes" |
422107f9 | 17866 | else |
698dcdb6 | 17867 | echo "configure: failed program was:" >&5 |
422107f9 | 17868 | cat conftest.$ac_ext >&5 |
698dcdb6 | 17869 | rm -rf conftest* |
009fead0 | 17870 | eval "ac_cv_func_sched_get_priority_max=no" |
422107f9 | 17871 | fi |
698dcdb6 | 17872 | rm -f conftest* |
422107f9 | 17873 | fi |
009fead0 VZ |
17874 | |
17875 | if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then | |
698dcdb6 | 17876 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
17877 | HAVE_PRIOR_FUNCS=1 |
17878 | else | |
17879 | echo "$ac_t""no" 1>&6 | |
17880 | echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6 | |
17234b26 | 17881 | echo "configure:17882: checking for sched_get_priority_max in -lposix4" >&5 |
4f14bcd8 | 17882 | ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
17883 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
17884 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 17885 | else |
698dcdb6 | 17886 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17887 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 17888 | cat > conftest.$ac_ext <<EOF |
17234b26 | 17889 | #line 17890 "configure" |
422107f9 VZ |
17890 | #include "confdefs.h" |
17891 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17892 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 17893 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 17894 | char sched_get_priority_max(); |
698dcdb6 VZ |
17895 | |
17896 | int main() { | |
4f14bcd8 | 17897 | sched_get_priority_max() |
698dcdb6 VZ |
17898 | ; return 0; } |
17899 | EOF | |
17234b26 | 17900 | if { (eval echo configure:17901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17901 | rm -rf conftest* |
17902 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17903 | else | |
17904 | echo "configure: failed program was:" >&5 | |
17905 | cat conftest.$ac_ext >&5 | |
17906 | rm -rf conftest* | |
17907 | eval "ac_cv_lib_$ac_lib_var=no" | |
17908 | fi | |
17909 | rm -f conftest* | |
17910 | LIBS="$ac_save_LIBS" | |
17911 | ||
17912 | fi | |
17913 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17914 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 17915 | |
7274f1c7 RL |
17916 | HAVE_PRIOR_FUNCS=1 |
17917 | POSIX4_LINK=" -lposix4" | |
17918 | ||
698dcdb6 VZ |
17919 | else |
17920 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
17921 | fi |
17922 | ||
7274f1c7 | 17923 | |
422107f9 VZ |
17924 | fi |
17925 | ||
7274f1c7 | 17926 | |
4f14bcd8 GD |
17927 | else |
17928 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
17929 | fi |
17930 | ||
7274f1c7 | 17931 | |
4f14bcd8 | 17932 | fi |
463abc64 | 17933 | |
463abc64 | 17934 | |
7274f1c7 RL |
17935 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
17936 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 17937 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 |
698dcdb6 | 17938 | EOF |
463abc64 | 17939 | |
7274f1c7 RL |
17940 | else |
17941 | echo "configure: warning: Setting thread priority will not work" 1>&2 | |
17942 | fi | |
463abc64 | 17943 | |
009fead0 | 17944 | echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6 |
17234b26 | 17945 | echo "configure:17946: checking for pthread_cancel" >&5 |
009fead0 | 17946 | if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then |
698dcdb6 | 17947 | echo $ac_n "(cached) $ac_c" 1>&6 |
422107f9 | 17948 | else |
009fead0 | 17949 | cat > conftest.$ac_ext <<EOF |
17234b26 | 17950 | #line 17951 "configure" |
422107f9 | 17951 | #include "confdefs.h" |
009fead0 VZ |
17952 | /* System header to define __stub macros and hopefully few prototypes, |
17953 | which can conflict with char pthread_cancel(); below. */ | |
17954 | #include <assert.h> | |
422107f9 VZ |
17955 | /* Override any gcc2 internal prototype to avoid an error. */ |
17956 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 17957 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 17958 | char pthread_cancel(); |
698dcdb6 VZ |
17959 | |
17960 | int main() { | |
009fead0 VZ |
17961 | |
17962 | /* The GNU C library defines this for functions which it implements | |
17963 | to always fail with ENOSYS. Some functions are actually named | |
17964 | something starting with __ and the normal name is an alias. */ | |
17965 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
17966 | choke me | |
17967 | #else | |
17968 | pthread_cancel(); | |
17969 | #endif | |
17970 | ||
698dcdb6 VZ |
17971 | ; return 0; } |
17972 | EOF | |
17234b26 | 17973 | if { (eval echo configure:17974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17974 | rm -rf conftest* |
009fead0 | 17975 | eval "ac_cv_func_pthread_cancel=yes" |
698dcdb6 VZ |
17976 | else |
17977 | echo "configure: failed program was:" >&5 | |
17978 | cat conftest.$ac_ext >&5 | |
17979 | rm -rf conftest* | |
009fead0 | 17980 | eval "ac_cv_func_pthread_cancel=no" |
698dcdb6 VZ |
17981 | fi |
17982 | rm -f conftest* | |
698dcdb6 | 17983 | fi |
009fead0 VZ |
17984 | |
17985 | if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then | |
698dcdb6 | 17986 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
17987 | cat >> confdefs.h <<\EOF |
17988 | #define HAVE_PTHREAD_CANCEL 1 | |
17989 | EOF | |
17990 | ||
698dcdb6 VZ |
17991 | else |
17992 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 | 17993 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 |
422107f9 VZ |
17994 | fi |
17995 | ||
422107f9 | 17996 | |
7274f1c7 | 17997 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 |
17234b26 | 17998 | echo "configure:17999: checking for pthread_cleanup_push/pop" >&5 |
4f14bcd8 GD |
17999 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then |
18000 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18001 | else | |
18002 | ||
7274f1c7 | 18003 | cat > conftest.$ac_ext <<EOF |
17234b26 | 18004 | #line 18005 "configure" |
4f14bcd8 GD |
18005 | #include "confdefs.h" |
18006 | #include <pthread.h> | |
18007 | int main() { | |
18008 | ||
7274f1c7 RL |
18009 | pthread_cleanup_push(NULL, NULL); |
18010 | pthread_cleanup_pop(0); | |
18011 | ||
4f14bcd8 GD |
18012 | ; return 0; } |
18013 | EOF | |
17234b26 | 18014 | if { (eval echo configure:18015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
18015 | rm -rf conftest* |
18016 | ||
7274f1c7 RL |
18017 | wx_cv_func_pthread_cleanup_push=yes |
18018 | ||
4f14bcd8 GD |
18019 | else |
18020 | echo "configure: failed program was:" >&5 | |
18021 | cat conftest.$ac_ext >&5 | |
18022 | rm -rf conftest* | |
18023 | ||
7274f1c7 RL |
18024 | wx_cv_func_pthread_cleanup_push=no |
18025 | ||
4f14bcd8 GD |
18026 | fi |
18027 | rm -f conftest* | |
7274f1c7 | 18028 | |
10f2d63a VZ |
18029 | fi |
18030 | ||
4f14bcd8 GD |
18031 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 |
18032 | ||
7274f1c7 RL |
18033 | if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then |
18034 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18035 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 |
c7a2bf27 RR |
18036 | EOF |
18037 | ||
7274f1c7 | 18038 | fi |
4f14bcd8 | 18039 | |
7274f1c7 | 18040 | |
19bc6aad | 18041 | if test "x$wx_cv_lib_glibc21" = "xyes"; then |
7274f1c7 RL |
18042 | CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" |
18043 | fi | |
4f14bcd8 | 18044 | |
7274f1c7 | 18045 | echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6 |
17234b26 | 18046 | echo "configure:18047: checking for pthread_mutexattr_t" >&5 |
4f14bcd8 | 18047 | if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then |
698dcdb6 VZ |
18048 | echo $ac_n "(cached) $ac_c" 1>&6 |
18049 | else | |
4f14bcd8 | 18050 | |
7274f1c7 | 18051 | cat > conftest.$ac_ext <<EOF |
17234b26 | 18052 | #line 18053 "configure" |
0dcf9893 | 18053 | #include "confdefs.h" |
4f14bcd8 GD |
18054 | #include <pthread.h> |
18055 | int main() { | |
18056 | ||
7274f1c7 RL |
18057 | pthread_mutexattr_t attr; |
18058 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
18059 | ||
4f14bcd8 | 18060 | ; return 0; } |
698dcdb6 | 18061 | EOF |
17234b26 | 18062 | if { (eval echo configure:18063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 18063 | rm -rf conftest* |
4f14bcd8 | 18064 | |
7274f1c7 RL |
18065 | wx_cv_type_pthread_mutexattr_t=yes |
18066 | ||
3fed1840 | 18067 | else |
698dcdb6 | 18068 | echo "configure: failed program was:" >&5 |
3fed1840 | 18069 | cat conftest.$ac_ext >&5 |
698dcdb6 | 18070 | rm -rf conftest* |
4f14bcd8 | 18071 | |
7274f1c7 RL |
18072 | wx_cv_type_pthread_mutexattr_t=no |
18073 | ||
4f14bcd8 | 18074 | |
3fed1840 | 18075 | fi |
698dcdb6 | 18076 | rm -f conftest* |
7274f1c7 | 18077 | |
3fed1840 | 18078 | fi |
4f14bcd8 GD |
18079 | |
18080 | echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6 | |
18081 | ||
7274f1c7 RL |
18082 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then |
18083 | cat >> confdefs.h <<\EOF | |
4f14bcd8 GD |
18084 | #define HAVE_PTHREAD_MUTEXATTR_T 1 |
18085 | EOF | |
18086 | ||
7274f1c7 RL |
18087 | else |
18088 | echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6 | |
17234b26 | 18089 | echo "configure:18090: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 |
4f14bcd8 | 18090 | if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then |
698dcdb6 | 18091 | echo $ac_n "(cached) $ac_c" 1>&6 |
3fed1840 | 18092 | else |
4f14bcd8 | 18093 | |
7274f1c7 | 18094 | cat > conftest.$ac_ext <<EOF |
17234b26 | 18095 | #line 18096 "configure" |
3fed1840 | 18096 | #include "confdefs.h" |
4f14bcd8 | 18097 | #include <pthread.h> |
698dcdb6 | 18098 | int main() { |
4f14bcd8 | 18099 | |
7274f1c7 RL |
18100 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; |
18101 | ||
698dcdb6 VZ |
18102 | ; return 0; } |
18103 | EOF | |
17234b26 | 18104 | if { (eval echo configure:18105: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 18105 | rm -rf conftest* |
4f14bcd8 | 18106 | |
7274f1c7 RL |
18107 | wx_cv_type_pthread_rec_mutex_init=yes |
18108 | ||
698dcdb6 VZ |
18109 | else |
18110 | echo "configure: failed program was:" >&5 | |
18111 | cat conftest.$ac_ext >&5 | |
18112 | rm -rf conftest* | |
4f14bcd8 | 18113 | |
7274f1c7 RL |
18114 | wx_cv_type_pthread_rec_mutex_init=no |
18115 | ||
4f14bcd8 | 18116 | |
698dcdb6 VZ |
18117 | fi |
18118 | rm -f conftest* | |
7274f1c7 | 18119 | |
3fed1840 RR |
18120 | fi |
18121 | ||
4f14bcd8 | 18122 | echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6 |
7274f1c7 RL |
18123 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then |
18124 | cat >> confdefs.h <<\EOF | |
4f14bcd8 GD |
18125 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 |
18126 | EOF | |
3fed1840 | 18127 | |
7274f1c7 RL |
18128 | else |
18129 | echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2 | |
18130 | fi | |
18131 | fi | |
7274f1c7 | 18132 | fi |
3fed1840 | 18133 | |
4f14bcd8 GD |
18134 | fi |
18135 | ||
18136 | if test "$wxUSE_THREADS" = "yes"; then | |
3a922bb4 | 18137 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18138 | #define wxUSE_THREADS 1 |
7b6058cd GD |
18139 | EOF |
18140 | ||
4f14bcd8 | 18141 | |
4f14bcd8 | 18142 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" |
698dcdb6 | 18143 | else |
4f14bcd8 GD |
18144 | if test "$ac_cv_func_strtok_r" = "yes"; then |
18145 | echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6 | |
17234b26 | 18146 | echo "configure:18147: checking if -D_REENTRANT is needed" >&5 |
4f14bcd8 GD |
18147 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
18148 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
18149 | echo "$ac_t""yes" 1>&6 | |
18150 | else | |
18151 | echo "$ac_t""no" 1>&6 | |
18152 | fi | |
18153 | fi | |
18154 | fi | |
18155 | ||
18156 | if test "$WXGTK20" = 1 ; then | |
18157 | cat >> confdefs.h <<EOF | |
18158 | #define __WXGTK20__ $WXGTK20 | |
698dcdb6 | 18159 | EOF |
4f14bcd8 GD |
18160 | |
18161 | WXGTK12=1 | |
10f2d63a | 18162 | fi |
4f14bcd8 GD |
18163 | |
18164 | if test "$WXGTK12" = 1 ; then | |
18165 | cat >> confdefs.h <<EOF | |
18166 | #define __WXGTK12__ $WXGTK12 | |
18167 | EOF | |
18168 | ||
10f2d63a | 18169 | fi |
698dcdb6 | 18170 | |
4f14bcd8 GD |
18171 | if test "$WXGTK127" = 1 ; then |
18172 | cat >> confdefs.h <<EOF | |
18173 | #define __WXGTK127__ $WXGTK127 | |
698dcdb6 | 18174 | EOF |
4f14bcd8 | 18175 | |
698dcdb6 | 18176 | fi |
10f2d63a | 18177 | |
4f14bcd8 GD |
18178 | WXDEBUG= |
18179 | ||
18180 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
18181 | WXDEBUG="-g" | |
18182 | wxUSE_OPTIMISE=no | |
698dcdb6 | 18183 | fi |
4f14bcd8 GD |
18184 | |
18185 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
18186 | wxUSE_DEBUG_INFO=yes | |
18187 | WXDEBUG="-ggdb" | |
10f2d63a VZ |
18188 | fi |
18189 | ||
4f14bcd8 GD |
18190 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then |
18191 | cat >> confdefs.h <<\EOF | |
18192 | #define WXDEBUG 1 | |
18193 | EOF | |
18194 | ||
18195 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
10f2d63a | 18196 | else |
4f14bcd8 GD |
18197 | if test "$wxUSE_GTK" = 1 ; then |
18198 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
18199 | fi | |
18200 | fi | |
18201 | ||
18202 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
18203 | cat >> confdefs.h <<\EOF | |
18204 | #define wxUSE_MEMORY_TRACING 1 | |
18205 | EOF | |
18206 | ||
18207 | cat >> confdefs.h <<\EOF | |
18208 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
18209 | EOF | |
18210 | ||
18211 | cat >> confdefs.h <<\EOF | |
18212 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
18213 | EOF | |
18214 | ||
18215 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
18216 | fi | |
18217 | ||
18218 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
3d63bc3a | 18219 | DMALLOC_LIBS="-ldmalloc" |
4f14bcd8 GD |
18220 | fi |
18221 | ||
18222 | PROFILE= | |
18223 | if test "$wxUSE_PROFILE" = "yes" ; then | |
3d63bc3a | 18224 | PROFILE=" -pg" |
10f2d63a VZ |
18225 | fi |
18226 | ||
009fead0 VZ |
18227 | CODE_GEN_FLAGS= |
18228 | CODE_GEN_FLAGS_CXX= | |
88e30f2b | 18229 | if test "$GCC" = "yes" ; then |
4f14bcd8 GD |
18230 | if test "$wxUSE_NO_RTTI" = "yes" ; then |
18231 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
3a922bb4 | 18232 | fi |
4f14bcd8 GD |
18233 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
18234 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
18235 | fi | |
18236 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
18237 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
18238 | fi | |
4f14bcd8 GD |
18239 | if test "$USE_WIN32" = 1 ; then |
18240 | # I'm not even really sure what this was ever added to solve, | |
18241 | # but someone added it for mingw native builds, so I guess | |
18242 | # they had a reason, right?? | |
18243 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return" | |
18244 | fi | |
1d1b75ac VZ |
18245 | |
18246 | case "${host}" in | |
18247 | powerpc*-*-aix* ) | |
18248 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc" | |
18249 | ;; | |
18250 | esac | |
4f14bcd8 GD |
18251 | fi |
18252 | ||
4f14bcd8 GD |
18253 | if test "$wxUSE_OPTIMISE" = "no" ; then |
18254 | OPTIMISE= | |
18255 | else | |
18256 | if test "$GCC" = yes ; then | |
18257 | OPTIMISE="-O2" | |
18258 | case "${host}" in | |
18259 | i586-*-*|i686-*-* ) | |
18260 | OPTIMISE="${OPTIMISE} " | |
18261 | ;; | |
18262 | esac | |
18263 | else | |
18264 | OPTIMISE="-O" | |
18265 | fi | |
18266 | fi | |
18267 | ||
18268 | if test "$WXWIN_COMPATIBILITY_2" = "yes"; then | |
18269 | cat >> confdefs.h <<\EOF | |
18270 | #define WXWIN_COMPATIBILITY_2 1 | |
18271 | EOF | |
18272 | ||
18273 | ||
18274 | WXWIN_COMPATIBILITY_2_2="yes" | |
18275 | fi | |
18276 | ||
0c9a1c32 | 18277 | if test "x$WXWIN_COMPATIBILITY_2_2" != "xno"; then |
4f14bcd8 GD |
18278 | cat >> confdefs.h <<\EOF |
18279 | #define WXWIN_COMPATIBILITY_2_2 1 | |
18280 | EOF | |
18281 | ||
10f2d63a VZ |
18282 | fi |
18283 | ||
698dcdb6 | 18284 | |
10f2d63a | 18285 | if test "$wxUSE_GUI" = "yes"; then |
698dcdb6 | 18286 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18287 | #define wxUSE_GUI 1 |
18288 | EOF | |
18289 | ||
698dcdb6 | 18290 | |
10f2d63a | 18291 | else |
698dcdb6 | 18292 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18293 | #define wxUSE_NOGUI 1 |
18294 | EOF | |
18295 | ||
18296 | fi | |
18297 | ||
698dcdb6 | 18298 | |
10f2d63a | 18299 | if test "$wxUSE_UNIX" = "yes"; then |
698dcdb6 | 18300 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18301 | #define wxUSE_UNIX 1 |
18302 | EOF | |
18303 | ||
18304 | fi | |
18305 | ||
698dcdb6 | 18306 | |
10f2d63a | 18307 | if test "$wxUSE_APPLE_IEEE" = "yes"; then |
698dcdb6 | 18308 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18309 | #define wxUSE_APPLE_IEEE 1 |
18310 | EOF | |
18311 | ||
18312 | fi | |
18313 | ||
1e6feb95 VZ |
18314 | if test "$wxUSE_TIMER" = "yes"; then |
18315 | cat >> confdefs.h <<\EOF | |
18316 | #define wxUSE_TIMER 1 | |
18317 | EOF | |
18318 | ||
18319 | fi | |
18320 | ||
10f2d63a | 18321 | if test "$wxUSE_WAVE" = "yes"; then |
698dcdb6 | 18322 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18323 | #define wxUSE_WAVE 1 |
18324 | EOF | |
18325 | ||
18326 | fi | |
18327 | ||
1e6feb95 VZ |
18328 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
18329 | cat >> confdefs.h <<\EOF | |
18330 | #define wxUSE_CMDLINE_PARSER 1 | |
18331 | EOF | |
18332 | ||
18333 | fi | |
18334 | ||
18335 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
18336 | cat >> confdefs.h <<\EOF | |
18337 | #define wxUSE_STOPWATCH 1 | |
18338 | EOF | |
18339 | ||
18340 | fi | |
18341 | ||
18342 | if test "$wxUSE_DATETIME" = "yes"; then | |
18343 | cat >> confdefs.h <<\EOF | |
18344 | #define wxUSE_DATETIME 1 | |
18345 | EOF | |
18346 | ||
18347 | fi | |
18348 | ||
18349 | if test "$wxUSE_TIMEDATE" = "yes"; then | |
18350 | cat >> confdefs.h <<\EOF | |
18351 | #define wxUSE_TIMEDATE 1 | |
18352 | EOF | |
18353 | ||
18354 | fi | |
18355 | ||
10f2d63a | 18356 | if test "$wxUSE_FILE" = "yes"; then |
698dcdb6 | 18357 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18358 | #define wxUSE_FILE 1 |
18359 | EOF | |
18360 | ||
18361 | fi | |
18362 | ||
1e6feb95 VZ |
18363 | if test "$wxUSE_FFILE" = "yes"; then |
18364 | cat >> confdefs.h <<\EOF | |
18365 | #define wxUSE_FFILE 1 | |
18366 | EOF | |
18367 | ||
18368 | fi | |
18369 | ||
24528b0c | 18370 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
698dcdb6 | 18371 | cat >> confdefs.h <<\EOF |
24528b0c VS |
18372 | #define wxUSE_FILESYSTEM 1 |
18373 | EOF | |
18374 | ||
18375 | fi | |
18376 | ||
10f2d63a | 18377 | if test "$wxUSE_FS_INET" = "yes"; then |
698dcdb6 | 18378 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18379 | #define wxUSE_FS_INET 1 |
18380 | EOF | |
18381 | ||
18382 | fi | |
18383 | ||
18384 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
698dcdb6 | 18385 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18386 | #define wxUSE_FS_ZIP 1 |
18387 | EOF | |
18388 | ||
18389 | fi | |
18390 | ||
18391 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
698dcdb6 | 18392 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18393 | #define wxUSE_ZIPSTREAM 1 |
18394 | EOF | |
18395 | ||
18396 | fi | |
18397 | ||
eb4efbdc | 18398 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
698dcdb6 | 18399 | cat >> confdefs.h <<\EOF |
eb4efbdc VZ |
18400 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
18401 | EOF | |
18402 | ||
18403 | fi | |
18404 | ||
4f3c5f06 | 18405 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
698dcdb6 | 18406 | cat >> confdefs.h <<\EOF |
4f3c5f06 VZ |
18407 | #define wxUSE_SNGLINST_CHECKER 1 |
18408 | EOF | |
18409 | ||
18410 | fi | |
18411 | ||
10f2d63a | 18412 | if test "$wxUSE_BUSYINFO" = "yes"; then |
698dcdb6 | 18413 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18414 | #define wxUSE_BUSYINFO 1 |
18415 | EOF | |
18416 | ||
18417 | fi | |
18418 | ||
18419 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
698dcdb6 | 18420 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18421 | #define wxUSE_STD_IOSTREAM 1 |
18422 | EOF | |
18423 | ||
18424 | fi | |
18425 | ||
a3a584a7 VZ |
18426 | if test "$wxUSE_TEXTBUFFER" = "yes"; then |
18427 | cat >> confdefs.h <<\EOF | |
18428 | #define wxUSE_TEXTBUFFER 1 | |
18429 | EOF | |
18430 | ||
18431 | fi | |
18432 | ||
10f2d63a | 18433 | if test "$wxUSE_TEXTFILE" = "yes"; then |
a3a584a7 | 18434 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then |
156b2523 | 18435 | echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2 |
10f2d63a | 18436 | else |
698dcdb6 | 18437 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18438 | #define wxUSE_TEXTFILE 1 |
18439 | EOF | |
18440 | ||
18441 | fi | |
18442 | fi | |
18443 | ||
18444 | if test "$wxUSE_CONFIG" = "yes" ; then | |
18445 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
156b2523 | 18446 | echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2 |
10f2d63a | 18447 | else |
698dcdb6 | 18448 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18449 | #define wxUSE_CONFIG 1 |
18450 | EOF | |
18451 | ||
18452 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
18453 | fi | |
18454 | fi | |
18455 | ||
18456 | if test "$wxUSE_INTL" = "yes" ; then | |
18457 | if test "$wxUSE_FILE" != "yes"; then | |
156b2523 | 18458 | echo "configure: warning: I18n code requires wxFile... disabled" 1>&2 |
10f2d63a | 18459 | else |
698dcdb6 | 18460 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18461 | #define wxUSE_INTL 1 |
18462 | EOF | |
18463 | ||
18464 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
f6bcfd97 | 18465 | GUIDIST="$GUIDIST INTL_DIST" |
10f2d63a VZ |
18466 | fi |
18467 | fi | |
18468 | ||
18469 | if test "$wxUSE_LOG" = "yes"; then | |
698dcdb6 | 18470 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18471 | #define wxUSE_LOG 1 |
18472 | EOF | |
18473 | ||
d73be714 VZ |
18474 | |
18475 | if test "$wxUSE_LOGGUI" = "yes"; then | |
18476 | cat >> confdefs.h <<\EOF | |
18477 | #define wxUSE_LOGGUI 1 | |
18478 | EOF | |
18479 | ||
18480 | fi | |
18481 | ||
18482 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
18483 | cat >> confdefs.h <<\EOF | |
18484 | #define wxUSE_LOGWINDOW 1 | |
69d27ff7 MB |
18485 | EOF |
18486 | ||
18487 | fi | |
18488 | ||
18489 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
18490 | cat >> confdefs.h <<\EOF | |
18491 | #define wxUSE_LOG_DIALOG 1 | |
d73be714 VZ |
18492 | EOF |
18493 | ||
18494 | fi | |
10f2d63a VZ |
18495 | fi |
18496 | ||
18497 | if test "$wxUSE_LONGLONG" = "yes"; then | |
698dcdb6 | 18498 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18499 | #define wxUSE_LONGLONG 1 |
18500 | EOF | |
18501 | ||
18502 | fi | |
18503 | ||
e8f65ba6 | 18504 | if test "$wxUSE_GEOMETRY" = "yes"; then |
698dcdb6 | 18505 | cat >> confdefs.h <<\EOF |
e8f65ba6 RR |
18506 | #define wxUSE_GEOMETRY 1 |
18507 | EOF | |
18508 | ||
18509 | fi | |
18510 | ||
10f2d63a | 18511 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
698dcdb6 | 18512 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18513 | #define wxUSE_DIALUP_MANAGER 1 |
18514 | EOF | |
18515 | ||
70f7a477 | 18516 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
10f2d63a VZ |
18517 | fi |
18518 | ||
18519 | if test "$wxUSE_STREAMS" = "yes" ; then | |
698dcdb6 | 18520 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18521 | #define wxUSE_STREAMS 1 |
18522 | EOF | |
18523 | ||
18524 | fi | |
18525 | ||
1e487827 | 18526 | |
1e6feb95 | 18527 | if test "$wxUSE_DATETIME" = "yes"; then |
698dcdb6 | 18528 | for ac_func in strptime |
83307f33 | 18529 | do |
698dcdb6 | 18530 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
17234b26 | 18531 | echo "configure:18532: checking for $ac_func" >&5 |
698dcdb6 VZ |
18532 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18533 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18534 | else | |
18535 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 18536 | #line 18537 "configure" |
83307f33 VZ |
18537 | #include "confdefs.h" |
18538 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 18539 | which can conflict with char $ac_func(); below. */ |
83307f33 VZ |
18540 | #include <assert.h> |
18541 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18542 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18543 | builtin and then its argument prototype would still apply. */ |
18544 | char $ac_func(); | |
18545 | ||
18546 | int main() { | |
83307f33 VZ |
18547 | |
18548 | /* The GNU C library defines this for functions which it implements | |
18549 | to always fail with ENOSYS. Some functions are actually named | |
18550 | something starting with __ and the normal name is an alias. */ | |
18551 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18552 | choke me | |
18553 | #else | |
698dcdb6 | 18554 | $ac_func(); |
83307f33 VZ |
18555 | #endif |
18556 | ||
698dcdb6 | 18557 | ; return 0; } |
83307f33 | 18558 | EOF |
17234b26 | 18559 | if { (eval echo configure:18560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18560 | rm -rf conftest* |
18561 | eval "ac_cv_func_$ac_func=yes" | |
18562 | else | |
18563 | echo "configure: failed program was:" >&5 | |
18564 | cat conftest.$ac_ext >&5 | |
18565 | rm -rf conftest* | |
18566 | eval "ac_cv_func_$ac_func=no" | |
18567 | fi | |
18568 | rm -f conftest* | |
18569 | fi | |
83307f33 | 18570 | |
698dcdb6 VZ |
18571 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
18572 | echo "$ac_t""yes" 1>&6 | |
18573 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18574 | cat >> confdefs.h <<EOF | |
18575 | #define $ac_tr_func 1 | |
18576 | EOF | |
18577 | ||
18578 | else | |
18579 | echo "$ac_t""no" 1>&6 | |
83307f33 VZ |
18580 | fi |
18581 | done | |
18582 | ||
1e487827 | 18583 | |
62cc730f | 18584 | echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6 |
17234b26 | 18585 | echo "configure:18586: checking for timezone variable in <time.h>" >&5 |
698dcdb6 VZ |
18586 | if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then |
18587 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18588 | else | |
18589 | ||
18590 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 18591 | #line 18592 "configure" |
360d6699 VZ |
18592 | #include "confdefs.h" |
18593 | ||
b4085ce6 | 18594 | #include <time.h> |
698dcdb6 VZ |
18595 | |
18596 | int main() { | |
360d6699 VZ |
18597 | |
18598 | int tz; | |
4f11a343 | 18599 | tz = timezone; |
698dcdb6 VZ |
18600 | |
18601 | ; return 0; } | |
18602 | EOF | |
17234b26 | 18603 | if { (eval echo configure:18604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
18604 | rm -rf conftest* |
18605 | ||
4f11a343 | 18606 | wx_cv_var_timezone=timezone |
698dcdb6 | 18607 | |
360d6699 | 18608 | else |
698dcdb6 VZ |
18609 | echo "configure: failed program was:" >&5 |
18610 | cat conftest.$ac_ext >&5 | |
18611 | rm -rf conftest* | |
18612 | ||
18613 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 18614 | #line 18615 "configure" |
360d6699 VZ |
18615 | #include "confdefs.h" |
18616 | ||
b4085ce6 | 18617 | #include <time.h> |
698dcdb6 VZ |
18618 | |
18619 | int main() { | |
360d6699 VZ |
18620 | |
18621 | int tz; | |
18622 | tz = _timezone; | |
698dcdb6 VZ |
18623 | |
18624 | ; return 0; } | |
18625 | EOF | |
17234b26 | 18626 | if { (eval echo configure:18627: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
18627 | rm -rf conftest* |
18628 | ||
360d6699 | 18629 | wx_cv_var_timezone=_timezone |
698dcdb6 | 18630 | |
5357c8e8 | 18631 | else |
698dcdb6 VZ |
18632 | echo "configure: failed program was:" >&5 |
18633 | cat conftest.$ac_ext >&5 | |
18634 | rm -rf conftest* | |
18635 | ||
18636 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 18637 | #line 18638 "configure" |
5357c8e8 VZ |
18638 | #include "confdefs.h" |
18639 | ||
b4085ce6 | 18640 | #include <time.h> |
698dcdb6 VZ |
18641 | |
18642 | int main() { | |
5357c8e8 VZ |
18643 | |
18644 | int tz; | |
4f11a343 | 18645 | tz = __timezone; |
698dcdb6 VZ |
18646 | |
18647 | ; return 0; } | |
18648 | EOF | |
17234b26 | 18649 | if { (eval echo configure:18650: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
18650 | rm -rf conftest* |
18651 | ||
4f11a343 | 18652 | wx_cv_var_timezone=__timezone |
698dcdb6 | 18653 | |
360d6699 | 18654 | else |
698dcdb6 VZ |
18655 | echo "configure: failed program was:" >&5 |
18656 | cat conftest.$ac_ext >&5 | |
18657 | rm -rf conftest* | |
f9bc1684 VS |
18658 | |
18659 | if test "$USE_DOS" = 0 ; then | |
62cc730f | 18660 | echo "configure: warning: no timezone variable" 1>&2 |
f9bc1684 VS |
18661 | fi |
18662 | ||
698dcdb6 | 18663 | |
360d6699 | 18664 | fi |
698dcdb6 VZ |
18665 | rm -f conftest* |
18666 | ||
18667 | ||
360d6699 | 18668 | fi |
698dcdb6 VZ |
18669 | rm -f conftest* |
18670 | ||
18671 | ||
6232543b | 18672 | fi |
698dcdb6 VZ |
18673 | rm -f conftest* |
18674 | ||
18675 | ||
1e487827 | 18676 | fi |
703e0a69 | 18677 | |
698dcdb6 VZ |
18678 | echo "$ac_t""$wx_cv_var_timezone" 1>&6 |
18679 | ||
f9bc1684 | 18680 | if test "x$wx_cv_var_timezone" != x ; then |
698dcdb6 | 18681 | cat >> confdefs.h <<EOF |
360d6699 VZ |
18682 | #define WX_TIMEZONE $wx_cv_var_timezone |
18683 | EOF | |
18684 | ||
f9bc1684 | 18685 | fi |
698dcdb6 VZ |
18686 | |
18687 | for ac_func in localtime | |
afc31813 | 18688 | do |
698dcdb6 | 18689 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
17234b26 | 18690 | echo "configure:18691: checking for $ac_func" >&5 |
698dcdb6 VZ |
18691 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18692 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18693 | else | |
18694 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 18695 | #line 18696 "configure" |
10f2d63a | 18696 | #include "confdefs.h" |
afc31813 | 18697 | /* System header to define __stub macros and hopefully few prototypes, |
698dcdb6 | 18698 | which can conflict with char $ac_func(); below. */ |
afc31813 VZ |
18699 | #include <assert.h> |
18700 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18701 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18702 | builtin and then its argument prototype would still apply. */ |
18703 | char $ac_func(); | |
18704 | ||
18705 | int main() { | |
afc31813 VZ |
18706 | |
18707 | /* The GNU C library defines this for functions which it implements | |
18708 | to always fail with ENOSYS. Some functions are actually named | |
18709 | something starting with __ and the normal name is an alias. */ | |
18710 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18711 | choke me | |
18712 | #else | |
698dcdb6 | 18713 | $ac_func(); |
afc31813 VZ |
18714 | #endif |
18715 | ||
698dcdb6 | 18716 | ; return 0; } |
10f2d63a | 18717 | EOF |
17234b26 | 18718 | if { (eval echo configure:18719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18719 | rm -rf conftest* |
18720 | eval "ac_cv_func_$ac_func=yes" | |
18721 | else | |
18722 | echo "configure: failed program was:" >&5 | |
18723 | cat conftest.$ac_ext >&5 | |
18724 | rm -rf conftest* | |
18725 | eval "ac_cv_func_$ac_func=no" | |
18726 | fi | |
18727 | rm -f conftest* | |
18728 | fi | |
afc31813 | 18729 | |
698dcdb6 VZ |
18730 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
18731 | echo "$ac_t""yes" 1>&6 | |
18732 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18733 | cat >> confdefs.h <<EOF | |
18734 | #define $ac_tr_func 1 | |
18735 | EOF | |
18736 | ||
18737 | else | |
18738 | echo "$ac_t""no" 1>&6 | |
afc31813 VZ |
18739 | fi |
18740 | done | |
18741 | ||
1e487827 | 18742 | |
698dcdb6 VZ |
18743 | if test "$ac_cv_func_localtime" = "yes"; then |
18744 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 | |
17234b26 | 18745 | echo "configure:18746: checking for tm_gmtoff in struct tm" >&5 |
698dcdb6 VZ |
18746 | if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then |
18747 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18748 | else | |
18749 | ||
18750 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 18751 | #line 18752 "configure" |
0470b1e6 VZ |
18752 | #include "confdefs.h" |
18753 | ||
b4085ce6 | 18754 | #include <time.h> |
698dcdb6 VZ |
18755 | |
18756 | int main() { | |
0470b1e6 VZ |
18757 | |
18758 | struct tm tm; | |
18759 | tm.tm_gmtoff++; | |
698dcdb6 VZ |
18760 | |
18761 | ; return 0; } | |
18762 | EOF | |
17234b26 | 18763 | if { (eval echo configure:18764: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
18764 | rm -rf conftest* |
18765 | ||
f03a98d8 | 18766 | wx_cv_struct_tm_has_gmtoff=yes |
698dcdb6 | 18767 | |
0470b1e6 | 18768 | else |
698dcdb6 VZ |
18769 | echo "configure: failed program was:" >&5 |
18770 | cat conftest.$ac_ext >&5 | |
18771 | rm -rf conftest* | |
18772 | wx_cv_struct_tm_has_gmtoff=no | |
18773 | ||
0470b1e6 | 18774 | fi |
698dcdb6 VZ |
18775 | rm -f conftest* |
18776 | ||
1e487827 | 18777 | fi |
698dcdb6 VZ |
18778 | |
18779 | echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6 | |
6232543b VS |
18780 | fi |
18781 | ||
18782 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
698dcdb6 | 18783 | cat >> confdefs.h <<\EOF |
6232543b VS |
18784 | #define WX_GMTOFF_IN_TM 1 |
18785 | EOF | |
0470b1e6 | 18786 | |
3fcdd07b VZ |
18787 | fi |
18788 | ||
698dcdb6 | 18789 | for ac_func in gettimeofday ftime |
3fcdd07b | 18790 | do |
698dcdb6 | 18791 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
17234b26 | 18792 | echo "configure:18793: checking for $ac_func" >&5 |
698dcdb6 VZ |
18793 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18794 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18795 | else | |
18796 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 18797 | #line 18798 "configure" |
3fcdd07b VZ |
18798 | #include "confdefs.h" |
18799 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 18800 | which can conflict with char $ac_func(); below. */ |
3fcdd07b VZ |
18801 | #include <assert.h> |
18802 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18803 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18804 | builtin and then its argument prototype would still apply. */ |
18805 | char $ac_func(); | |
18806 | ||
18807 | int main() { | |
3fcdd07b VZ |
18808 | |
18809 | /* The GNU C library defines this for functions which it implements | |
18810 | to always fail with ENOSYS. Some functions are actually named | |
18811 | something starting with __ and the normal name is an alias. */ | |
18812 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18813 | choke me | |
18814 | #else | |
698dcdb6 | 18815 | $ac_func(); |
3fcdd07b VZ |
18816 | #endif |
18817 | ||
698dcdb6 VZ |
18818 | ; return 0; } |
18819 | EOF | |
17234b26 | 18820 | if { (eval echo configure:18821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18821 | rm -rf conftest* |
18822 | eval "ac_cv_func_$ac_func=yes" | |
18823 | else | |
18824 | echo "configure: failed program was:" >&5 | |
18825 | cat conftest.$ac_ext >&5 | |
18826 | rm -rf conftest* | |
18827 | eval "ac_cv_func_$ac_func=no" | |
18828 | fi | |
18829 | rm -f conftest* | |
18830 | fi | |
18831 | ||
18832 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18833 | echo "$ac_t""yes" 1>&6 | |
18834 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18835 | cat >> confdefs.h <<EOF | |
18836 | #define $ac_tr_func 1 | |
3fcdd07b VZ |
18837 | EOF |
18838 | break | |
698dcdb6 VZ |
18839 | else |
18840 | echo "$ac_t""no" 1>&6 | |
3fcdd07b VZ |
18841 | fi |
18842 | done | |
18843 | ||
afc31813 | 18844 | |
698dcdb6 VZ |
18845 | if test "$ac_cv_func_gettimeofday" = "yes"; then |
18846 | echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6 | |
17234b26 | 18847 | echo "configure:18848: checking whether gettimeofday takes two arguments" >&5 |
698dcdb6 VZ |
18848 | if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then |
18849 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18850 | else | |
18851 | ||
18852 | ||
18853 | ac_ext=C | |
18854 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 18855 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
18856 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
18857 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
18858 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 18859 | |
698dcdb6 VZ |
18860 | |
18861 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 18862 | #line 18863 "configure" |
10f2d63a | 18863 | #include "confdefs.h" |
afc31813 VZ |
18864 | |
18865 | #include <sys/time.h> | |
18866 | #include <unistd.h> | |
698dcdb6 VZ |
18867 | |
18868 | int main() { | |
afc31813 VZ |
18869 | |
18870 | struct timeval tv; | |
776862b4 | 18871 | gettimeofday(&tv, NULL); |
698dcdb6 VZ |
18872 | |
18873 | ; return 0; } | |
18874 | EOF | |
17234b26 | 18875 | if { (eval echo configure:18876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 18876 | rm -rf conftest* |
afc31813 | 18877 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a | 18878 | else |
698dcdb6 VZ |
18879 | echo "configure: failed program was:" >&5 |
18880 | cat conftest.$ac_ext >&5 | |
18881 | rm -rf conftest* | |
18882 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 18883 | #line 18884 "configure" |
10f2d63a | 18884 | #include "confdefs.h" |
afc31813 VZ |
18885 | |
18886 | #include <sys/time.h> | |
18887 | #include <unistd.h> | |
698dcdb6 VZ |
18888 | |
18889 | int main() { | |
afc31813 VZ |
18890 | |
18891 | struct timeval tv; | |
18892 | gettimeofday(&tv); | |
698dcdb6 VZ |
18893 | |
18894 | ; return 0; } | |
18895 | EOF | |
17234b26 | 18896 | if { (eval echo configure:18897: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 18897 | rm -rf conftest* |
afc31813 | 18898 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a | 18899 | else |
698dcdb6 VZ |
18900 | echo "configure: failed program was:" >&5 |
18901 | cat conftest.$ac_ext >&5 | |
18902 | rm -rf conftest* | |
776862b4 VZ |
18903 | |
18904 | echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2 | |
18905 | wx_cv_func_gettimeofday_has_2_args=unknown | |
18906 | ||
698dcdb6 | 18907 | |
10f2d63a | 18908 | fi |
698dcdb6 VZ |
18909 | rm -f conftest* |
18910 | ||
10f2d63a | 18911 | fi |
698dcdb6 | 18912 | rm -f conftest* |
afc31813 | 18913 | ac_ext=c |
698dcdb6 | 18914 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 18915 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
18916 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
18917 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
18918 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a | 18919 | |
698dcdb6 | 18920 | |
afc31813 | 18921 | fi |
698dcdb6 VZ |
18922 | |
18923 | echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6 | |
c63c7106 | 18924 | |
afc31813 | 18925 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
698dcdb6 | 18926 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
18927 | #define WX_GETTIMEOFDAY_NO_TZ 1 |
18928 | EOF | |
18929 | ||
18930 | fi | |
18931 | fi | |
18932 | ||
698dcdb6 | 18933 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
18934 | #define wxUSE_TIMEDATE 1 |
18935 | EOF | |
18936 | ||
18937 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
18938 | fi | |
18939 | ||
698dcdb6 | 18940 | |
0feee163 | 18941 | if test "$wxUSE_SOCKETS" = "yes"; then |
6c657b52 | 18942 | if test "$wxUSE_X11" = "1"; then |
0feee163 VZ |
18943 | echo "configure: warning: wxSocket not yet supported under X11... disabled" 1>&2 |
18944 | wxUSE_SOCKETS="no" | |
18945 | fi | |
6c657b52 VS |
18946 | |
18947 | if test "$wxUSE_MGL" = "1"; then | |
18948 | echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2 | |
18949 | wxUSE_SOCKETS="no" | |
18950 | fi | |
0feee163 | 18951 | fi |
b089607b | 18952 | |
0feee163 VZ |
18953 | if test "$wxUSE_SOCKETS" = "yes"; then |
18954 | if test "$TOOLKIT" != "MSW"; then | |
3a922bb4 | 18955 | echo $ac_n "checking for socket""... $ac_c" 1>&6 |
17234b26 | 18956 | echo "configure:18957: checking for socket" >&5 |
698dcdb6 VZ |
18957 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
18958 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 18959 | else |
698dcdb6 | 18960 | cat > conftest.$ac_ext <<EOF |
17234b26 | 18961 | #line 18962 "configure" |
c63c7106 VZ |
18962 | #include "confdefs.h" |
18963 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 18964 | which can conflict with char socket(); below. */ |
c63c7106 VZ |
18965 | #include <assert.h> |
18966 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18967 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18968 | builtin and then its argument prototype would still apply. */ |
18969 | char socket(); | |
18970 | ||
18971 | int main() { | |
c63c7106 VZ |
18972 | |
18973 | /* The GNU C library defines this for functions which it implements | |
18974 | to always fail with ENOSYS. Some functions are actually named | |
18975 | something starting with __ and the normal name is an alias. */ | |
18976 | #if defined (__stub_socket) || defined (__stub___socket) | |
18977 | choke me | |
18978 | #else | |
698dcdb6 | 18979 | socket(); |
c63c7106 VZ |
18980 | #endif |
18981 | ||
698dcdb6 VZ |
18982 | ; return 0; } |
18983 | EOF | |
17234b26 | 18984 | if { (eval echo configure:18985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18985 | rm -rf conftest* |
18986 | eval "ac_cv_func_socket=yes" | |
18987 | else | |
18988 | echo "configure: failed program was:" >&5 | |
18989 | cat conftest.$ac_ext >&5 | |
18990 | rm -rf conftest* | |
18991 | eval "ac_cv_func_socket=no" | |
18992 | fi | |
18993 | rm -f conftest* | |
18994 | fi | |
18995 | ||
18996 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
18997 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
18998 | : |
18999 | else | |
698dcdb6 VZ |
19000 | echo "$ac_t""no" 1>&6 |
19001 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
17234b26 | 19002 | echo "configure:19003: checking for socket in -lsocket" >&5 |
698dcdb6 VZ |
19003 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
19004 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19005 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 19006 | else |
698dcdb6 | 19007 | ac_save_LIBS="$LIBS" |
c63c7106 | 19008 | LIBS="-lsocket $LIBS" |
698dcdb6 | 19009 | cat > conftest.$ac_ext <<EOF |
17234b26 | 19010 | #line 19011 "configure" |
c63c7106 VZ |
19011 | #include "confdefs.h" |
19012 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19013 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
19014 | builtin and then its argument prototype would still apply. */ |
19015 | char socket(); | |
19016 | ||
19017 | int main() { | |
19018 | socket() | |
19019 | ; return 0; } | |
19020 | EOF | |
17234b26 | 19021 | if { (eval echo configure:19022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
19022 | rm -rf conftest* |
19023 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19024 | else | |
19025 | echo "configure: failed program was:" >&5 | |
19026 | cat conftest.$ac_ext >&5 | |
19027 | rm -rf conftest* | |
19028 | eval "ac_cv_lib_$ac_lib_var=no" | |
19029 | fi | |
19030 | rm -f conftest* | |
19031 | LIBS="$ac_save_LIBS" | |
19032 | ||
19033 | fi | |
19034 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19035 | echo "$ac_t""yes" 1>&6 | |
d558c907 VS |
19036 | if test "$INET_LINK" != " -lsocket"; then |
19037 | INET_LINK="$INET_LINK -lsocket" | |
19038 | fi | |
c63c7106 | 19039 | else |
698dcdb6 | 19040 | echo "$ac_t""no" 1>&6 |
afc31813 | 19041 | |
3a922bb4 RL |
19042 | echo "configure: warning: socket library not found - sockets will be disabled" 1>&2 |
19043 | wxUSE_SOCKETS=no | |
19044 | ||
698dcdb6 | 19045 | |
6232543b | 19046 | fi |
b089607b | 19047 | |
3a922bb4 | 19048 | |
1e487827 | 19049 | fi |
afc31813 | 19050 | |
3a922bb4 | 19051 | fi |
0feee163 | 19052 | fi |
51a9faba | 19053 | |
0feee163 VZ |
19054 | if test "$wxUSE_SOCKETS" = "yes" ; then |
19055 | if test "$TOOLKIT" != "MSW"; then | |
3a922bb4 | 19056 | echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6 |
17234b26 | 19057 | echo "configure:19058: checking what is the type of the third argument of getsockname" >&5 |
698dcdb6 VZ |
19058 | if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then |
19059 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19060 | else | |
19061 | ||
3a922bb4 RL |
19062 | |
19063 | ac_ext=C | |
698dcdb6 | 19064 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
1e487827 | 19065 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
19066 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
19067 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
19068 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 19069 | |
698dcdb6 | 19070 | |
3a922bb4 | 19071 | cat > conftest.$ac_ext <<EOF |
17234b26 | 19072 | #line 19073 "configure" |
afc31813 | 19073 | #include "confdefs.h" |
51a9faba | 19074 | |
3a922bb4 RL |
19075 | #include <sys/types.h> |
19076 | #include <sys/socket.h> | |
19077 | ||
698dcdb6 | 19078 | int main() { |
51a9faba | 19079 | |
3a922bb4 RL |
19080 | socklen_t len; |
19081 | getsockname(0, 0, &len); | |
19082 | ||
698dcdb6 VZ |
19083 | ; return 0; } |
19084 | EOF | |
17234b26 | 19085 | if { (eval echo configure:19086: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 19086 | rm -rf conftest* |
51a9faba | 19087 | wx_cv_type_getsockname3=socklen_t |
afc31813 | 19088 | else |
698dcdb6 VZ |
19089 | echo "configure: failed program was:" >&5 |
19090 | cat conftest.$ac_ext >&5 | |
19091 | rm -rf conftest* | |
19092 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 19093 | #line 19094 "configure" |
afc31813 | 19094 | #include "confdefs.h" |
51a9faba | 19095 | |
3a922bb4 RL |
19096 | #include <sys/types.h> |
19097 | #include <sys/socket.h> | |
19098 | ||
698dcdb6 | 19099 | int main() { |
51a9faba | 19100 | |
3a922bb4 RL |
19101 | size_t len; |
19102 | getsockname(0, 0, &len); | |
19103 | ||
698dcdb6 VZ |
19104 | ; return 0; } |
19105 | EOF | |
17234b26 | 19106 | if { (eval echo configure:19107: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 19107 | rm -rf conftest* |
51a9faba | 19108 | wx_cv_type_getsockname3=size_t |
afc31813 | 19109 | else |
698dcdb6 VZ |
19110 | echo "configure: failed program was:" >&5 |
19111 | cat conftest.$ac_ext >&5 | |
19112 | rm -rf conftest* | |
19113 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 19114 | #line 19115 "configure" |
afc31813 | 19115 | #include "confdefs.h" |
51a9faba | 19116 | |
3a922bb4 RL |
19117 | #include <sys/types.h> |
19118 | #include <sys/socket.h> | |
19119 | ||
698dcdb6 | 19120 | int main() { |
51a9faba | 19121 | |
3a922bb4 RL |
19122 | int len; |
19123 | getsockname(0, 0, &len); | |
19124 | ||
698dcdb6 VZ |
19125 | ; return 0; } |
19126 | EOF | |
17234b26 | 19127 | if { (eval echo configure:19128: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 19128 | rm -rf conftest* |
51a9faba | 19129 | wx_cv_type_getsockname3=int |
afc31813 | 19130 | else |
698dcdb6 VZ |
19131 | echo "configure: failed program was:" >&5 |
19132 | cat conftest.$ac_ext >&5 | |
19133 | rm -rf conftest* | |
19134 | wx_cv_type_getsockname3=unknown | |
3a922bb4 | 19135 | |
afc31813 | 19136 | fi |
698dcdb6 | 19137 | rm -f conftest* |
3a922bb4 | 19138 | |
afc31813 | 19139 | fi |
698dcdb6 | 19140 | rm -f conftest* |
3a922bb4 | 19141 | |
afc31813 | 19142 | fi |
698dcdb6 | 19143 | rm -f conftest* |
51a9faba | 19144 | |
3a922bb4 | 19145 | ac_ext=c |
698dcdb6 | 19146 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
afc31813 | 19147 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
19148 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
19149 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
19150 | cross_compiling=$ac_cv_prog_cc_cross | |
afc31813 | 19151 | |
3a922bb4 | 19152 | |
51a9faba | 19153 | fi |
698dcdb6 VZ |
19154 | |
19155 | echo "$ac_t""$wx_cv_type_getsockname3" 1>&6 | |
51a9faba | 19156 | |
3a922bb4 RL |
19157 | if test "$wx_cv_type_getsockname3" = "unknown"; then |
19158 | wxUSE_SOCKETS=no | |
19159 | echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2 | |
19160 | else | |
19161 | cat >> confdefs.h <<EOF | |
51a9faba VZ |
19162 | #define SOCKLEN_T $wx_cv_type_getsockname3 |
19163 | EOF | |
19164 | ||
3a922bb4 | 19165 | fi |
51a9faba VZ |
19166 | fi |
19167 | fi | |
afc31813 | 19168 | |
51a9faba | 19169 | if test "$wxUSE_SOCKETS" = "yes" ; then |
698dcdb6 | 19170 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
19171 | #define wxUSE_SOCKETS 1 |
19172 | EOF | |
19173 | ||
70f7a477 | 19174 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
afc31813 VZ |
19175 | fi |
19176 | ||
698dcdb6 | 19177 | |
dc3d889d VZ |
19178 | if test "$wxUSE_GUI" = "yes"; then |
19179 | ||
156b2523 GD |
19180 | if test "$TOOLKIT" = "MAC"; then |
19181 | echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2 | |
19182 | wxUSE_JOYSTICK=no | |
19183 | fi | |
19184 | if test "$TOOLKIT" = "MOTIF"; then | |
19185 | echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2 | |
19186 | wxUSE_JOYSTICK=no | |
f79bd02d JS |
19187 | fi |
19188 | if test "$TOOLKIT" = "X11"; then | |
19189 | echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2 | |
19190 | wxUSE_JOYSTICK=no | |
156b2523 GD |
19191 | fi |
19192 | ||
3a922bb4 RL |
19193 | if test "$TOOLKIT" != "MSW"; then |
19194 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
19195 | for ac_hdr in linux/joystick.h | |
10f2d63a | 19196 | do |
698dcdb6 VZ |
19197 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
19198 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
17234b26 | 19199 | echo "configure:19200: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
19200 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
19201 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19202 | else | |
19203 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 19204 | #line 19205 "configure" |
10f2d63a | 19205 | #include "confdefs.h" |
698dcdb6 VZ |
19206 | #include <$ac_hdr> |
19207 | EOF | |
19208 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
17234b26 | 19209 | { (eval echo configure:19210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
19210 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
19211 | if test -z "$ac_err"; then | |
19212 | rm -rf conftest* | |
19213 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 19214 | else |
698dcdb6 VZ |
19215 | echo "$ac_err" >&5 |
19216 | echo "configure: failed program was:" >&5 | |
10f2d63a | 19217 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
19218 | rm -rf conftest* |
19219 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 19220 | fi |
698dcdb6 | 19221 | rm -f conftest* |
10f2d63a | 19222 | fi |
698dcdb6 VZ |
19223 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
19224 | echo "$ac_t""yes" 1>&6 | |
19225 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
19226 | cat >> confdefs.h <<EOF | |
19227 | #define $ac_tr_hdr 1 | |
10f2d63a | 19228 | EOF |
698dcdb6 VZ |
19229 | |
19230 | else | |
19231 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
19232 | fi |
19233 | done | |
19234 | ||
3a922bb4 RL |
19235 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then |
19236 | wxUSE_JOYSTICK=no | |
156b2523 | 19237 | echo "configure: warning: Joystick not supported by this system... disabled" 1>&2 |
3a922bb4 RL |
19238 | fi |
19239 | fi | |
19240 | fi | |
b089607b | 19241 | |
3a922bb4 RL |
19242 | if test "$wxUSE_JOYSTICK" = "yes"; then |
19243 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
19244 | #define wxUSE_JOYSTICK 1 |
19245 | EOF | |
19246 | ||
3a922bb4 RL |
19247 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
19248 | fi | |
dc3d889d VZ |
19249 | fi |
19250 | ||
698dcdb6 | 19251 | |
b089607b VZ |
19252 | if test "$TOOLKIT" != "MSW"; then |
19253 | ||
3a922bb4 RL |
19254 | HAVE_DL_FUNCS=0 |
19255 | HAVE_SHL_FUNCS=0 | |
0b9ab0bd | 19256 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then |
3a922bb4 RL |
19257 | if test "$USE_DARWIN" = 1; then |
19258 | HAVE_DL_FUNCS=1 | |
19259 | else | |
19260 | for ac_func in dlopen | |
10f2d63a | 19261 | do |
698dcdb6 | 19262 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
17234b26 | 19263 | echo "configure:19264: checking for $ac_func" >&5 |
698dcdb6 VZ |
19264 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
19265 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19266 | else | |
19267 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 19268 | #line 19269 "configure" |
10f2d63a VZ |
19269 | #include "confdefs.h" |
19270 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 19271 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
19272 | #include <assert.h> |
19273 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19274 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
19275 | builtin and then its argument prototype would still apply. */ |
19276 | char $ac_func(); | |
19277 | ||
19278 | int main() { | |
10f2d63a VZ |
19279 | |
19280 | /* The GNU C library defines this for functions which it implements | |
19281 | to always fail with ENOSYS. Some functions are actually named | |
19282 | something starting with __ and the normal name is an alias. */ | |
19283 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19284 | choke me | |
19285 | #else | |
698dcdb6 | 19286 | $ac_func(); |
10f2d63a VZ |
19287 | #endif |
19288 | ||
698dcdb6 VZ |
19289 | ; return 0; } |
19290 | EOF | |
17234b26 | 19291 | if { (eval echo configure:19292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
19292 | rm -rf conftest* |
19293 | eval "ac_cv_func_$ac_func=yes" | |
19294 | else | |
19295 | echo "configure: failed program was:" >&5 | |
19296 | cat conftest.$ac_ext >&5 | |
19297 | rm -rf conftest* | |
19298 | eval "ac_cv_func_$ac_func=no" | |
19299 | fi | |
19300 | rm -f conftest* | |
19301 | fi | |
19302 | ||
19303 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
19304 | echo "$ac_t""yes" 1>&6 | |
19305 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19306 | cat >> confdefs.h <<EOF | |
19307 | #define $ac_tr_func 1 | |
19308 | EOF | |
19309 | ||
3a922bb4 | 19310 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19311 | #define HAVE_DLOPEN 1 |
19312 | EOF | |
19313 | ||
3a922bb4 RL |
19314 | HAVE_DL_FUNCS=1 |
19315 | ||
10f2d63a | 19316 | else |
698dcdb6 VZ |
19317 | echo "$ac_t""no" 1>&6 |
19318 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
17234b26 | 19319 | echo "configure:19320: checking for dlopen in -ldl" >&5 |
698dcdb6 VZ |
19320 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
19321 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19322 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 19323 | else |
698dcdb6 | 19324 | ac_save_LIBS="$LIBS" |
10f2d63a | 19325 | LIBS="-ldl $LIBS" |
698dcdb6 | 19326 | cat > conftest.$ac_ext <<EOF |
17234b26 | 19327 | #line 19328 "configure" |
10f2d63a VZ |
19328 | #include "confdefs.h" |
19329 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19330 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
19331 | builtin and then its argument prototype would still apply. */ |
19332 | char dlopen(); | |
19333 | ||
19334 | int main() { | |
19335 | dlopen() | |
19336 | ; return 0; } | |
19337 | EOF | |
17234b26 | 19338 | if { (eval echo configure:19339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
19339 | rm -rf conftest* |
19340 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19341 | else | |
19342 | echo "configure: failed program was:" >&5 | |
19343 | cat conftest.$ac_ext >&5 | |
19344 | rm -rf conftest* | |
19345 | eval "ac_cv_lib_$ac_lib_var=no" | |
19346 | fi | |
19347 | rm -f conftest* | |
19348 | LIBS="$ac_save_LIBS" | |
19349 | ||
19350 | fi | |
19351 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19352 | echo "$ac_t""yes" 1>&6 | |
19353 | ||
3a922bb4 | 19354 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19355 | #define HAVE_DLOPEN 1 |
19356 | EOF | |
19357 | ||
3a922bb4 | 19358 | HAVE_DL_FUNCS=1 |
3d63bc3a | 19359 | DL_LINK=" -ldl$DL_LINK" |
3a922bb4 | 19360 | |
10f2d63a | 19361 | else |
698dcdb6 | 19362 | echo "$ac_t""no" 1>&6 |
10f2d63a | 19363 | |
3a922bb4 | 19364 | for ac_func in shl_load |
10f2d63a | 19365 | do |
698dcdb6 | 19366 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
17234b26 | 19367 | echo "configure:19368: checking for $ac_func" >&5 |
698dcdb6 VZ |
19368 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
19369 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19370 | else | |
19371 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 19372 | #line 19373 "configure" |
10f2d63a VZ |
19373 | #include "confdefs.h" |
19374 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 19375 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
19376 | #include <assert.h> |
19377 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19378 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
19379 | builtin and then its argument prototype would still apply. */ |
19380 | char $ac_func(); | |
19381 | ||
19382 | int main() { | |
10f2d63a VZ |
19383 | |
19384 | /* The GNU C library defines this for functions which it implements | |
19385 | to always fail with ENOSYS. Some functions are actually named | |
19386 | something starting with __ and the normal name is an alias. */ | |
19387 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19388 | choke me | |
19389 | #else | |
698dcdb6 | 19390 | $ac_func(); |
10f2d63a VZ |
19391 | #endif |
19392 | ||
698dcdb6 VZ |
19393 | ; return 0; } |
19394 | EOF | |
17234b26 | 19395 | if { (eval echo configure:19396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
19396 | rm -rf conftest* |
19397 | eval "ac_cv_func_$ac_func=yes" | |
19398 | else | |
19399 | echo "configure: failed program was:" >&5 | |
19400 | cat conftest.$ac_ext >&5 | |
19401 | rm -rf conftest* | |
19402 | eval "ac_cv_func_$ac_func=no" | |
19403 | fi | |
19404 | rm -f conftest* | |
19405 | fi | |
19406 | ||
19407 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
19408 | echo "$ac_t""yes" 1>&6 | |
19409 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19410 | cat >> confdefs.h <<EOF | |
19411 | #define $ac_tr_func 1 | |
19412 | EOF | |
19413 | ||
3a922bb4 | 19414 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19415 | #define HAVE_SHL_LOAD 1 |
19416 | EOF | |
19417 | ||
3a922bb4 RL |
19418 | HAVE_SHL_FUNCS=1 |
19419 | ||
10f2d63a | 19420 | else |
698dcdb6 VZ |
19421 | echo "$ac_t""no" 1>&6 |
19422 | echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6 | |
17234b26 | 19423 | echo "configure:19424: checking for dld in -lshl_load" >&5 |
698dcdb6 VZ |
19424 | ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'` |
19425 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19426 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 19427 | else |
698dcdb6 | 19428 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 19429 | LIBS="-lshl_load $LIBS" |
698dcdb6 | 19430 | cat > conftest.$ac_ext <<EOF |
17234b26 | 19431 | #line 19432 "configure" |
f6bcfd97 BP |
19432 | #include "confdefs.h" |
19433 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19434 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
19435 | builtin and then its argument prototype would still apply. */ |
19436 | char dld(); | |
19437 | ||
19438 | int main() { | |
19439 | dld() | |
19440 | ; return 0; } | |
19441 | EOF | |
17234b26 | 19442 | if { (eval echo configure:19443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
19443 | rm -rf conftest* |
19444 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19445 | else | |
19446 | echo "configure: failed program was:" >&5 | |
19447 | cat conftest.$ac_ext >&5 | |
19448 | rm -rf conftest* | |
19449 | eval "ac_cv_lib_$ac_lib_var=no" | |
19450 | fi | |
19451 | rm -f conftest* | |
19452 | LIBS="$ac_save_LIBS" | |
f6bcfd97 | 19453 | |
698dcdb6 VZ |
19454 | fi |
19455 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19456 | echo "$ac_t""yes" 1>&6 | |
19457 | ||
3a922bb4 | 19458 | HAVE_SHL_FUNCS=1 |
3d63bc3a | 19459 | DL_LINK=" -ldld$DL_LINK" |
3a922bb4 | 19460 | |
698dcdb6 VZ |
19461 | else |
19462 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
19463 | fi |
19464 | ||
3a922bb4 | 19465 | |
10f2d63a VZ |
19466 | fi |
19467 | done | |
19468 | ||
3a922bb4 | 19469 | |
10f2d63a VZ |
19470 | fi |
19471 | ||
3a922bb4 | 19472 | |
10f2d63a VZ |
19473 | fi |
19474 | done | |
19475 | ||
1e487827 | 19476 | |
3a922bb4 RL |
19477 | if test "$HAVE_DL_FUNCS" = 1; then |
19478 | for ac_func in dlerror | |
f6bcfd97 | 19479 | do |
698dcdb6 | 19480 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
17234b26 | 19481 | echo "configure:19482: checking for $ac_func" >&5 |
698dcdb6 VZ |
19482 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
19483 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19484 | else | |
19485 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 19486 | #line 19487 "configure" |
f6bcfd97 BP |
19487 | #include "confdefs.h" |
19488 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 19489 | which can conflict with char $ac_func(); below. */ |
f6bcfd97 BP |
19490 | #include <assert.h> |
19491 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19492 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
19493 | builtin and then its argument prototype would still apply. */ |
19494 | char $ac_func(); | |
19495 | ||
19496 | int main() { | |
f6bcfd97 BP |
19497 | |
19498 | /* The GNU C library defines this for functions which it implements | |
19499 | to always fail with ENOSYS. Some functions are actually named | |
19500 | something starting with __ and the normal name is an alias. */ | |
19501 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19502 | choke me | |
19503 | #else | |
698dcdb6 | 19504 | $ac_func(); |
f6bcfd97 BP |
19505 | #endif |
19506 | ||
698dcdb6 VZ |
19507 | ; return 0; } |
19508 | EOF | |
17234b26 | 19509 | if { (eval echo configure:19510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
19510 | rm -rf conftest* |
19511 | eval "ac_cv_func_$ac_func=yes" | |
19512 | else | |
19513 | echo "configure: failed program was:" >&5 | |
19514 | cat conftest.$ac_ext >&5 | |
19515 | rm -rf conftest* | |
19516 | eval "ac_cv_func_$ac_func=no" | |
19517 | fi | |
19518 | rm -f conftest* | |
19519 | fi | |
19520 | ||
19521 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
19522 | echo "$ac_t""yes" 1>&6 | |
19523 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19524 | cat >> confdefs.h <<EOF | |
19525 | #define $ac_tr_func 1 | |
19526 | EOF | |
19527 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
19528 | #define HAVE_DLERROR 1 |
19529 | EOF | |
19530 | ||
19531 | else | |
698dcdb6 VZ |
19532 | echo "$ac_t""no" 1>&6 |
19533 | echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6 | |
17234b26 | 19534 | echo "configure:19535: checking for dlerror in -ldl" >&5 |
698dcdb6 VZ |
19535 | ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'` |
19536 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19537 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 19538 | else |
698dcdb6 | 19539 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 19540 | LIBS="-ldl $LIBS" |
698dcdb6 | 19541 | cat > conftest.$ac_ext <<EOF |
17234b26 | 19542 | #line 19543 "configure" |
f6bcfd97 BP |
19543 | #include "confdefs.h" |
19544 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19545 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
19546 | builtin and then its argument prototype would still apply. */ |
19547 | char dlerror(); | |
19548 | ||
19549 | int main() { | |
19550 | dlerror() | |
19551 | ; return 0; } | |
19552 | EOF | |
17234b26 | 19553 | if { (eval echo configure:19554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
19554 | rm -rf conftest* |
19555 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19556 | else | |
19557 | echo "configure: failed program was:" >&5 | |
19558 | cat conftest.$ac_ext >&5 | |
19559 | rm -rf conftest* | |
19560 | eval "ac_cv_lib_$ac_lib_var=no" | |
19561 | fi | |
19562 | rm -f conftest* | |
19563 | LIBS="$ac_save_LIBS" | |
19564 | ||
19565 | fi | |
19566 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19567 | echo "$ac_t""yes" 1>&6 | |
19568 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
19569 | #define HAVE_DLERROR 1 |
19570 | EOF | |
19571 | ||
698dcdb6 VZ |
19572 | else |
19573 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
19574 | fi |
19575 | ||
19576 | fi | |
19577 | done | |
19578 | ||
3a922bb4 RL |
19579 | fi |
19580 | fi | |
f6bcfd97 | 19581 | |
3a922bb4 RL |
19582 | if test "$HAVE_DL_FUNCS" = 0; then |
19583 | if test "$HAVE_SHL_FUNCS" = 0; then | |
19584 | if test "$USE_UNIX" = 1; then | |
19585 | echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2 | |
0b9ab0bd | 19586 | wxUSE_DYNAMIC_LOADER=no |
3a922bb4 RL |
19587 | wxUSE_DYNLIB_CLASS=no |
19588 | else | |
19589 | echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2 | |
19590 | fi | |
19591 | fi | |
10f2d63a VZ |
19592 | fi |
19593 | fi | |
19594 | fi | |
19595 | ||
0b9ab0bd RL |
19596 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then |
19597 | cat >> confdefs.h <<\EOF | |
19598 | #define wxUSE_DYNAMIC_LOADER 1 | |
19599 | EOF | |
19600 | ||
19601 | elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
698dcdb6 | 19602 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19603 | #define wxUSE_DYNLIB_CLASS 1 |
19604 | EOF | |
19605 | ||
19606 | fi | |
19607 | ||
698dcdb6 | 19608 | |
1e6feb95 VZ |
19609 | if test "$wxUSE_FONTMAP" = "yes" ; then |
19610 | cat >> confdefs.h <<\EOF | |
19611 | #define wxUSE_FONTMAP 1 | |
19612 | EOF | |
19613 | ||
19614 | fi | |
19615 | ||
10f2d63a | 19616 | if test "$wxUSE_UNICODE" = "yes" ; then |
698dcdb6 | 19617 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19618 | #define wxUSE_UNICODE 1 |
19619 | EOF | |
19620 | ||
bbc3925a VS |
19621 | |
19622 | if test "$wxUSE_MSW" != 1; then | |
19623 | wxUSE_UNICODE_MSLU=no | |
19624 | fi | |
a72a4bfa VS |
19625 | |
19626 | if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
19627 | echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6 | |
17234b26 | 19628 | echo "configure:19629: checking for main in -lunicows" >&5 |
a72a4bfa VS |
19629 | ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'` |
19630 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19631 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19632 | else | |
19633 | ac_save_LIBS="$LIBS" | |
19634 | LIBS="-lunicows $LIBS" | |
19635 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 19636 | #line 19637 "configure" |
a72a4bfa VS |
19637 | #include "confdefs.h" |
19638 | ||
19639 | int main() { | |
19640 | main() | |
19641 | ; return 0; } | |
19642 | EOF | |
17234b26 | 19643 | if { (eval echo configure:19644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a72a4bfa VS |
19644 | rm -rf conftest* |
19645 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19646 | else | |
19647 | echo "configure: failed program was:" >&5 | |
19648 | cat conftest.$ac_ext >&5 | |
19649 | rm -rf conftest* | |
19650 | eval "ac_cv_lib_$ac_lib_var=no" | |
19651 | fi | |
19652 | rm -f conftest* | |
19653 | LIBS="$ac_save_LIBS" | |
19654 | ||
19655 | fi | |
19656 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19657 | echo "$ac_t""yes" 1>&6 | |
19658 | ||
19659 | cat >> confdefs.h <<\EOF | |
19660 | #define wxUSE_UNICODE_MSLU 1 | |
19661 | EOF | |
19662 | ||
19663 | ||
19664 | else | |
19665 | echo "$ac_t""no" 1>&6 | |
19666 | ||
19667 | echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled. | |
19668 | Applications will only run on Windows NT/2000/XP!" 1>&2 | |
19669 | wxUSE_UNICODE_MSLU=no | |
19670 | ||
19671 | fi | |
19672 | ||
19673 | fi | |
10f2d63a VZ |
19674 | fi |
19675 | ||
10f2d63a | 19676 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then |
698dcdb6 | 19677 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19678 | #define wxUSE_EXPERIMENTAL_PRINTF 1 |
19679 | EOF | |
19680 | ||
19681 | fi | |
19682 | ||
698dcdb6 | 19683 | |
698dcdb6 | 19684 | |
10f2d63a VZ |
19685 | IODBC_C_SRC="" |
19686 | if test "$wxUSE_ODBC" = "yes" ; then | |
698dcdb6 | 19687 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19688 | #define wxUSE_ODBC 1 |
19689 | EOF | |
19690 | ||
19691 | WXODBCFLAG="-D_IODBC_" | |
19692 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
10f2d63a VZ |
19693 | fi |
19694 | ||
698dcdb6 | 19695 | |
10f2d63a | 19696 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then |
698dcdb6 | 19697 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19698 | #define wxUSE_POSTSCRIPT 1 |
19699 | EOF | |
19700 | ||
19701 | fi | |
19702 | ||
698dcdb6 | 19703 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19704 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 |
19705 | EOF | |
19706 | ||
698dcdb6 VZ |
19707 | |
19708 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
19709 | #define wxUSE_NORMALIZED_PS_FONTS 1 |
19710 | EOF | |
19711 | ||
698dcdb6 VZ |
19712 | |
19713 | ||
10f2d63a | 19714 | if test "$wxUSE_CONSTRAINTS" = "yes"; then |
698dcdb6 | 19715 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19716 | #define wxUSE_CONSTRAINTS 1 |
19717 | EOF | |
19718 | ||
19719 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
19720 | fi | |
19721 | ||
19722 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
fc26f4ab | 19723 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
0feee163 | 19724 | echo "configure: warning: MDI not yet supported for wxUniversal... disabled" 1>&2 |
fc26f4ab RL |
19725 | wxUSE_MDI_ARCHITECTURE=no |
19726 | fi | |
19727 | ||
19728 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
19729 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
19730 | #define wxUSE_MDI_ARCHITECTURE 1 |
19731 | EOF | |
19732 | ||
fc26f4ab RL |
19733 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
19734 | fi | |
10f2d63a VZ |
19735 | fi |
19736 | ||
19737 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
698dcdb6 | 19738 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19739 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 |
19740 | EOF | |
19741 | ||
19742 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
19743 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
19744 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
19745 | fi | |
19746 | fi | |
19747 | ||
19748 | if test "$wxUSE_HELP" = "yes"; then | |
698dcdb6 | 19749 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19750 | #define wxUSE_HELP 1 |
19751 | EOF | |
19752 | ||
19753 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
3379ed37 | 19754 | |
77e13408 | 19755 | if test "$wxUSE_MSW" = 1; then |
031d8228 | 19756 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then |
3b7bc64a | 19757 | cat >> confdefs.h <<\EOF |
29fd3c0c VS |
19758 | #define wxUSE_MS_HTML_HELP 1 |
19759 | EOF | |
19760 | ||
3e44f09d | 19761 | fi |
3379ed37 | 19762 | fi |
031d8228 VS |
19763 | |
19764 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
19765 | if test "$wxUSE_HTML" = "yes"; then | |
19766 | cat >> confdefs.h <<\EOF | |
19767 | #define wxUSE_WXHTML_HELP 1 | |
19768 | EOF | |
19769 | ||
19770 | else | |
19771 | echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2 | |
19772 | wxUSE_WXHTML_HELP=no | |
19773 | fi | |
19774 | fi | |
10f2d63a VZ |
19775 | fi |
19776 | ||
19777 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
19778 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
698dcdb6 | 19779 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 |
10f2d63a | 19780 | else |
698dcdb6 | 19781 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19782 | #define wxUSE_PRINTING_ARCHITECTURE 1 |
19783 | EOF | |
19784 | ||
19785 | fi | |
19786 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
19787 | fi | |
19788 | ||
19789 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
698dcdb6 | 19790 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19791 | #define wxUSE_PROLOGIO 1 |
19792 | EOF | |
19793 | ||
19794 | fi | |
19795 | ||
19796 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
e334d0ea JS |
19797 | if test "$wxUSE_NANOX" = "yes"; then |
19798 | echo "configure: warning: Cannot use resource database functions in NanoX" 1>&2 | |
19799 | else | |
19800 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
19801 | #define wxUSE_RESOURCES 1 |
19802 | EOF | |
19803 | ||
e334d0ea JS |
19804 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" |
19805 | fi | |
10f2d63a VZ |
19806 | fi |
19807 | ||
19808 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
698dcdb6 | 19809 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19810 | #define wxUSE_X_RESOURCES 1 |
19811 | EOF | |
19812 | ||
19813 | fi | |
19814 | ||
698dcdb6 | 19815 | |
77e13408 RL |
19816 | if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ |
19817 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
19818 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
2b9bdf71 | 19819 | for ac_hdr in ole2.h |
10f2d63a | 19820 | do |
698dcdb6 VZ |
19821 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
19822 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
17234b26 | 19823 | echo "configure:19824: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
19824 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
19825 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19826 | else | |
19827 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 19828 | #line 19829 "configure" |
10f2d63a | 19829 | #include "confdefs.h" |
698dcdb6 VZ |
19830 | #include <$ac_hdr> |
19831 | EOF | |
19832 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
17234b26 | 19833 | { (eval echo configure:19834: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
19834 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
19835 | if test -z "$ac_err"; then | |
19836 | rm -rf conftest* | |
19837 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 19838 | else |
698dcdb6 VZ |
19839 | echo "$ac_err" >&5 |
19840 | echo "configure: failed program was:" >&5 | |
10f2d63a | 19841 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
19842 | rm -rf conftest* |
19843 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 19844 | fi |
698dcdb6 | 19845 | rm -f conftest* |
10f2d63a | 19846 | fi |
698dcdb6 VZ |
19847 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
19848 | echo "$ac_t""yes" 1>&6 | |
19849 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
19850 | cat >> confdefs.h <<EOF | |
19851 | #define $ac_tr_hdr 1 | |
10f2d63a | 19852 | EOF |
698dcdb6 VZ |
19853 | |
19854 | else | |
19855 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
19856 | fi |
19857 | done | |
19858 | ||
698dcdb6 | 19859 | |
2b9bdf71 VZ |
19860 | if test "$ac_cv_header_ole2_h" = "yes" ; then |
19861 | if test "$GCC" = yes ; then | |
19862 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" | |
2b9bdf71 | 19863 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" |
3d63bc3a | 19864 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
2b9bdf71 | 19865 | cat >> confdefs.h <<\EOF |
4f11a343 VS |
19866 | #define wxUSE_OLE 1 |
19867 | EOF | |
19868 | ||
b64f0a5f | 19869 | |
2b9bdf71 VZ |
19870 | fi |
19871 | ||
19872 | cat >> confdefs.h <<\EOF | |
19873 | #define wxUSE_DATAOBJ 1 | |
19874 | EOF | |
19875 | ||
19876 | else | |
19877 | echo "configure: warning: Some features disabled because OLE headers not found" 1>&2 | |
19878 | ||
19879 | wxUSE_CLIPBOARD=no | |
19880 | wxUSE_DRAG_AND_DROP=no | |
19881 | wxUSE_DATAOBJ=no | |
19882 | fi | |
19883 | ||
77e13408 | 19884 | if test "$wxUSE_METAFILE" = "yes"; then |
2b9bdf71 | 19885 | cat >> confdefs.h <<\EOF |
b64f0a5f RL |
19886 | #define wxUSE_METAFILE 1 |
19887 | EOF | |
19888 | ||
2b9bdf71 VZ |
19889 | |
19890 | cat >> confdefs.h <<\EOF | |
b64f0a5f RL |
19891 | #define wxUSE_ENH_METAFILE 1 |
19892 | EOF | |
19893 | ||
2b9bdf71 VZ |
19894 | fi |
19895 | fi | |
19896 | ||
19897 | if test "$wxUSE_IPC" = "yes"; then | |
19898 | if test "$wxUSE_SOCKETS" != "yes"; then | |
156b2523 | 19899 | echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2 |
2b9bdf71 VZ |
19900 | fi |
19901 | ||
19902 | cat >> confdefs.h <<\EOF | |
19903 | #define wxUSE_IPC 1 | |
19904 | EOF | |
19905 | ||
19906 | fi | |
19907 | ||
19908 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
6c657b52 VS |
19909 | if test "$wxUSE_MGL" = 1; then |
19910 | echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2 | |
19911 | wxUSE_CLIPBOARD=no | |
19912 | fi | |
19913 | ||
19914 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
19915 | cat >> confdefs.h <<\EOF | |
2b9bdf71 VZ |
19916 | #define wxUSE_CLIPBOARD 1 |
19917 | EOF | |
19918 | ||
673f4220 | 19919 | |
6c657b52 | 19920 | cat >> confdefs.h <<\EOF |
673f4220 VZ |
19921 | #define wxUSE_DATAOBJ 1 |
19922 | EOF | |
19923 | ||
6c657b52 | 19924 | fi |
2b9bdf71 VZ |
19925 | fi |
19926 | ||
19927 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
19928 | if test "$wxUSE_GTK" = 1; then | |
19929 | if test "$WXGTK12" != 1; then | |
156b2523 | 19930 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2 |
10f2d63a VZ |
19931 | wxUSE_DRAG_AND_DROP=no |
19932 | fi | |
19933 | fi | |
19934 | ||
2b9bdf71 | 19935 | if test "$wxUSE_MOTIF" = 1; then |
156b2523 | 19936 | echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2 |
2b9bdf71 VZ |
19937 | wxUSE_DRAG_AND_DROP=no |
19938 | fi | |
19939 | ||
f79bd02d JS |
19940 | if test "$wxUSE_X11" = 1; then |
19941 | echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2 | |
19942 | wxUSE_DRAG_AND_DROP=no | |
19943 | fi | |
19944 | ||
6c657b52 VS |
19945 | if test "$wxUSE_MGL" = 1; then |
19946 | echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2 | |
19947 | wxUSE_DRAG_AND_DROP=no | |
19948 | fi | |
19949 | ||
10f2d63a | 19950 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then |
698dcdb6 | 19951 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19952 | #define wxUSE_DRAG_AND_DROP 1 |
19953 | EOF | |
19954 | ||
19955 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
19956 | fi | |
19957 | ||
19958 | fi | |
19959 | ||
19960 | if test "$wxUSE_SPLINES" = "yes" ; then | |
698dcdb6 | 19961 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19962 | #define wxUSE_SPLINES 1 |
19963 | EOF | |
19964 | ||
19965 | fi | |
19966 | ||
698dcdb6 | 19967 | |
1e6feb95 VZ |
19968 | USES_CONTROLS=0 |
19969 | if test "$wxUSE_CONTROLS" = "yes"; then | |
19970 | USES_CONTROLS=1 | |
19971 | fi | |
19972 | ||
10f2d63a | 19973 | if test "$wxUSE_ACCEL" = "yes"; then |
698dcdb6 | 19974 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19975 | #define wxUSE_ACCEL 1 |
19976 | EOF | |
19977 | ||
1e6feb95 VZ |
19978 | USES_CONTROLS=1 |
19979 | fi | |
19980 | ||
19981 | if test "$wxUSE_BUTTON" = "yes"; then | |
19982 | cat >> confdefs.h <<\EOF | |
19983 | #define wxUSE_BUTTON 1 | |
19984 | EOF | |
19985 | ||
19986 | USES_CONTROLS=1 | |
19987 | fi | |
19988 | ||
19989 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
19990 | cat >> confdefs.h <<\EOF | |
19991 | #define wxUSE_BMPBUTTON 1 | |
19992 | EOF | |
19993 | ||
19994 | USES_CONTROLS=1 | |
19995 | fi | |
19996 | ||
19997 | if test "$wxUSE_CALCTRL" = "yes"; then | |
19998 | cat >> confdefs.h <<\EOF | |
19999 | #define wxUSE_CALENDARCTRL 1 | |
20000 | EOF | |
20001 | ||
20002 | USES_CONTROLS=1 | |
20003 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
10f2d63a VZ |
20004 | fi |
20005 | ||
20006 | if test "$wxUSE_CARET" = "yes"; then | |
698dcdb6 | 20007 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20008 | #define wxUSE_CARET 1 |
20009 | EOF | |
20010 | ||
1e6feb95 | 20011 | USES_CONTROLS=1 |
10f2d63a VZ |
20012 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" |
20013 | fi | |
20014 | ||
20015 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
698dcdb6 | 20016 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20017 | #define wxUSE_COMBOBOX 1 |
20018 | EOF | |
20019 | ||
1e6feb95 | 20020 | USES_CONTROLS=1 |
10f2d63a VZ |
20021 | fi |
20022 | ||
20023 | if test "$wxUSE_CHOICE" = "yes"; then | |
698dcdb6 | 20024 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20025 | #define wxUSE_CHOICE 1 |
20026 | EOF | |
20027 | ||
1e6feb95 | 20028 | USES_CONTROLS=1 |
10f2d63a VZ |
20029 | fi |
20030 | ||
20031 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
698dcdb6 | 20032 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20033 | #define wxUSE_CHECKBOX 1 |
20034 | EOF | |
20035 | ||
1e6feb95 | 20036 | USES_CONTROLS=1 |
10f2d63a VZ |
20037 | fi |
20038 | ||
20039 | if test "$wxUSE_CHECKLST" = "yes"; then | |
698dcdb6 | 20040 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20041 | #define wxUSE_CHECKLISTBOX 1 |
20042 | EOF | |
20043 | ||
1e6feb95 | 20044 | USES_CONTROLS=1 |
10f2d63a VZ |
20045 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" |
20046 | fi | |
20047 | ||
20048 | if test "$wxUSE_GAUGE" = "yes"; then | |
698dcdb6 | 20049 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20050 | #define wxUSE_GAUGE 1 |
20051 | EOF | |
20052 | ||
1e6feb95 | 20053 | USES_CONTROLS=1 |
10f2d63a VZ |
20054 | fi |
20055 | ||
d6a55c4b VZ |
20056 | if test "$wxUSE_NEW_GRID" = "yes"; then |
20057 | wxUSE_GRID="yes" | |
698dcdb6 | 20058 | cat >> confdefs.h <<\EOF |
d6a55c4b | 20059 | #define wxUSE_NEW_GRID 1 |
10f2d63a VZ |
20060 | EOF |
20061 | ||
1e6feb95 | 20062 | USES_CONTROLS=1 |
d6a55c4b | 20063 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid" |
10f2d63a VZ |
20064 | fi |
20065 | ||
d6a55c4b | 20066 | if test "$wxUSE_GRID" = "yes"; then |
698dcdb6 | 20067 | cat >> confdefs.h <<\EOF |
d6a55c4b | 20068 | #define wxUSE_GRID 1 |
10f2d63a VZ |
20069 | EOF |
20070 | ||
1e6feb95 | 20071 | USES_CONTROLS=1 |
d6a55c4b | 20072 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
20073 | fi |
20074 | ||
20075 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 20076 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20077 | #define wxUSE_IMAGLIST 1 |
20078 | EOF | |
20079 | ||
20080 | fi | |
20081 | ||
20082 | if test "$wxUSE_LISTBOX" = "yes"; then | |
698dcdb6 | 20083 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20084 | #define wxUSE_LISTBOX 1 |
20085 | EOF | |
20086 | ||
1e6feb95 | 20087 | USES_CONTROLS=1 |
10f2d63a VZ |
20088 | fi |
20089 | ||
20090 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
20091 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 20092 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20093 | #define wxUSE_LISTCTRL 1 |
20094 | EOF | |
20095 | ||
1e6feb95 | 20096 | USES_CONTROLS=1 |
10f2d63a VZ |
20097 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" |
20098 | else | |
698dcdb6 | 20099 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
20100 | fi |
20101 | fi | |
20102 | ||
20103 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
698dcdb6 | 20104 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20105 | #define wxUSE_NOTEBOOK 1 |
20106 | EOF | |
20107 | ||
1e6feb95 | 20108 | USES_CONTROLS=1 |
10f2d63a VZ |
20109 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" |
20110 | fi | |
20111 | ||
24176f2c GD |
20112 | if test "$wxUSE_PROPSHEET" = "yes"; then |
20113 | cat >> confdefs.h <<\EOF | |
20114 | #define wxUSE_PROPSHEET 1 | |
20115 | EOF | |
20116 | ||
20117 | USES_CONTROLS=1 | |
20118 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist" | |
20119 | fi | |
20120 | ||
10f2d63a | 20121 | if test "$wxUSE_RADIOBOX" = "yes"; then |
698dcdb6 | 20122 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20123 | #define wxUSE_RADIOBOX 1 |
20124 | EOF | |
20125 | ||
1e6feb95 | 20126 | USES_CONTROLS=1 |
10f2d63a VZ |
20127 | fi |
20128 | ||
20129 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
698dcdb6 | 20130 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20131 | #define wxUSE_RADIOBTN 1 |
20132 | EOF | |
20133 | ||
1e6feb95 | 20134 | USES_CONTROLS=1 |
10f2d63a VZ |
20135 | fi |
20136 | ||
20137 | if test "$wxUSE_SASH" = "yes"; then | |
698dcdb6 | 20138 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20139 | #define wxUSE_SASH 1 |
20140 | EOF | |
20141 | ||
20142 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
20143 | fi | |
20144 | ||
20145 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
698dcdb6 | 20146 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20147 | #define wxUSE_SCROLLBAR 1 |
20148 | EOF | |
20149 | ||
1e6feb95 | 20150 | USES_CONTROLS=1 |
741a9306 | 20151 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
20152 | fi |
20153 | ||
20154 | if test "$wxUSE_SLIDER" = "yes"; then | |
698dcdb6 | 20155 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20156 | #define wxUSE_SLIDER 1 |
20157 | EOF | |
20158 | ||
1e6feb95 | 20159 | USES_CONTROLS=1 |
10f2d63a VZ |
20160 | fi |
20161 | ||
20162 | if test "$wxUSE_SPINBTN" = "yes"; then | |
698dcdb6 | 20163 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20164 | #define wxUSE_SPINBTN 1 |
20165 | EOF | |
20166 | ||
1e6feb95 | 20167 | USES_CONTROLS=1 |
10f2d63a VZ |
20168 | fi |
20169 | ||
56cfaa52 | 20170 | if test "$wxUSE_SPINCTRL" = "yes"; then |
698dcdb6 | 20171 | cat >> confdefs.h <<\EOF |
56cfaa52 RR |
20172 | #define wxUSE_SPINCTRL 1 |
20173 | EOF | |
20174 | ||
1e6feb95 | 20175 | USES_CONTROLS=1 |
56cfaa52 RR |
20176 | fi |
20177 | ||
10f2d63a | 20178 | if test "$wxUSE_SPLITTER" = "yes"; then |
698dcdb6 | 20179 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20180 | #define wxUSE_SPLITTER 1 |
20181 | EOF | |
20182 | ||
20183 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
20184 | fi | |
20185 | ||
20186 | if test "$wxUSE_STATBMP" = "yes"; then | |
698dcdb6 | 20187 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20188 | #define wxUSE_STATBMP 1 |
20189 | EOF | |
20190 | ||
1e6feb95 | 20191 | USES_CONTROLS=1 |
10f2d63a VZ |
20192 | fi |
20193 | ||
20194 | if test "$wxUSE_STATBOX" = "yes"; then | |
698dcdb6 | 20195 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20196 | #define wxUSE_STATBOX 1 |
20197 | EOF | |
20198 | ||
1e6feb95 VZ |
20199 | USES_CONTROLS=1 |
20200 | fi | |
20201 | ||
20202 | if test "$wxUSE_STATTEXT" = "yes"; then | |
20203 | cat >> confdefs.h <<\EOF | |
20204 | #define wxUSE_STATTEXT 1 | |
20205 | EOF | |
20206 | ||
20207 | USES_CONTROLS=1 | |
10f2d63a VZ |
20208 | fi |
20209 | ||
20210 | if test "$wxUSE_STATLINE" = "yes"; then | |
20211 | if test "$wxUSE_WINE" = 1 ; then | |
698dcdb6 | 20212 | echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2 |
10f2d63a | 20213 | else |
698dcdb6 | 20214 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20215 | #define wxUSE_STATLINE 1 |
20216 | EOF | |
20217 | ||
1e6feb95 | 20218 | USES_CONTROLS=1 |
10f2d63a VZ |
20219 | fi |
20220 | fi | |
20221 | ||
20222 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
698dcdb6 | 20223 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20224 | #define wxUSE_STATUSBAR 1 |
20225 | EOF | |
20226 | ||
1e6feb95 | 20227 | USES_CONTROLS=1 |
698dcdb6 | 20228 | |
2286341c | 20229 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" |
10f2d63a VZ |
20230 | fi |
20231 | ||
20232 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
698dcdb6 | 20233 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20234 | #define wxUSE_TAB_DIALOG 1 |
20235 | EOF | |
20236 | ||
20237 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
20238 | fi | |
20239 | ||
1e6feb95 VZ |
20240 | if test "$wxUSE_TEXTCTRL" = "yes"; then |
20241 | cat >> confdefs.h <<\EOF | |
20242 | #define wxUSE_TEXTCTRL 1 | |
20243 | EOF | |
20244 | ||
20245 | USES_CONTROLS=1 | |
20246 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
20247 | fi | |
20248 | ||
1db8dc4a | 20249 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
156b2523 GD |
20250 | if test "$wxUSE_MAC" = 1; then |
20251 | echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2 | |
20252 | wxUSE_TOGGLEBTN=no | |
20253 | fi | |
20254 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
0feee163 | 20255 | echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2 |
a45d7ab7 GD |
20256 | wxUSE_TOGGLEBTN=no |
20257 | fi | |
20258 | ||
20259 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
20260 | cat >> confdefs.h <<\EOF | |
1db8dc4a VZ |
20261 | #define wxUSE_TOGGLEBTN 1 |
20262 | EOF | |
20263 | ||
1e6feb95 | 20264 | USES_CONTROLS=1 |
a45d7ab7 | 20265 | fi |
1db8dc4a VZ |
20266 | fi |
20267 | ||
360d6699 | 20268 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
698dcdb6 | 20269 | cat >> confdefs.h <<\EOF |
360d6699 VZ |
20270 | #define wxUSE_TOOLBAR_SIMPLE 1 |
20271 | EOF | |
20272 | ||
20273 | wxUSE_TOOLBAR="yes" | |
1e6feb95 | 20274 | USES_CONTROLS=1 |
360d6699 VZ |
20275 | fi |
20276 | ||
10f2d63a | 20277 | if test "$wxUSE_TOOLBAR" = "yes"; then |
698dcdb6 | 20278 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20279 | #define wxUSE_TOOLBAR 1 |
20280 | EOF | |
20281 | ||
1e6feb95 | 20282 | USES_CONTROLS=1 |
698dcdb6 | 20283 | |
360d6699 VZ |
20284 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then |
20285 | wxUSE_TOOLBAR_NATIVE="yes" | |
20286 | fi | |
20287 | ||
1e6feb95 VZ |
20288 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
20289 | cat >> confdefs.h <<\EOF | |
360d6699 VZ |
20290 | #define wxUSE_TOOLBAR_NATIVE 1 |
20291 | EOF | |
20292 | ||
1e6feb95 VZ |
20293 | USES_CONTROLS=1 |
20294 | fi | |
20295 | ||
20296 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
360d6699 VZ |
20297 | fi |
20298 | ||
10f2d63a VZ |
20299 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
20300 | if test "$wxUSE_MOTIF" = 1; then | |
156b2523 | 20301 | echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2 |
10f2d63a VZ |
20302 | else |
20303 | if test "$wxUSE_WINE" = 1; then | |
156b2523 | 20304 | echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2 |
10f2d63a | 20305 | else |
69d27ff7 | 20306 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
0feee163 | 20307 | echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2 |
69d27ff7 | 20308 | else |
3c011993 | 20309 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20310 | #define wxUSE_TOOLTIPS 1 |
20311 | EOF | |
20312 | ||
69d27ff7 | 20313 | fi |
10f2d63a VZ |
20314 | fi |
20315 | fi | |
20316 | fi | |
20317 | ||
20318 | if test "$wxUSE_TREECTRL" = "yes"; then | |
20319 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 20320 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20321 | #define wxUSE_TREECTRL 1 |
20322 | EOF | |
20323 | ||
1e6feb95 | 20324 | USES_CONTROLS=1 |
10f2d63a VZ |
20325 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" |
20326 | else | |
698dcdb6 | 20327 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
20328 | fi |
20329 | fi | |
20330 | ||
9f41d601 | 20331 | if test "$wxUSE_POPUPWIN" = "yes"; then |
6abe4b65 | 20332 | if test "$wxUSE_MAC" = 1; then |
156b2523 | 20333 | echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2 |
6abe4b65 | 20334 | else |
485cf710 VZ |
20335 | if test "$wxUSE_MOTIF" = 1; then |
20336 | echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2 | |
20337 | else | |
3c011993 VZ |
20338 | if test "$wxUSE_PM" = 1; then |
20339 | echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2 | |
20340 | else | |
20341 | cat >> confdefs.h <<\EOF | |
9f41d601 RR |
20342 | #define wxUSE_POPUPWIN 1 |
20343 | EOF | |
20344 | ||
9926e4a4 | 20345 | |
3c011993 VZ |
20346 | USES_CONTROLS=1 |
20347 | fi | |
485cf710 | 20348 | fi |
6abe4b65 | 20349 | fi |
9f41d601 RR |
20350 | fi |
20351 | ||
dd964dcc | 20352 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
3c011993 VZ |
20353 | if test "$wxUSE_PM" = 1; then |
20354 | echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2 | |
20355 | else | |
20356 | cat >> confdefs.h <<\EOF | |
dd964dcc VZ |
20357 | #define wxUSE_TIPWINDOW 1 |
20358 | EOF | |
20359 | ||
3c011993 | 20360 | fi |
dd964dcc VZ |
20361 | fi |
20362 | ||
1e6feb95 VZ |
20363 | if test "$USES_CONTROLS" = 1; then |
20364 | cat >> confdefs.h <<\EOF | |
20365 | #define wxUSE_CONTROLS 1 | |
10f2d63a VZ |
20366 | EOF |
20367 | ||
10f2d63a VZ |
20368 | fi |
20369 | ||
1e6feb95 | 20370 | |
24176f2c GD |
20371 | if test "$wxUSE_TREELAYOUT" = "yes"; then |
20372 | cat >> confdefs.h <<\EOF | |
20373 | #define wxUSE_TREELAYOUT 1 | |
20374 | EOF | |
20375 | ||
20376 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay" | |
20377 | fi | |
1e6feb95 | 20378 | |
24fd6d87 VZ |
20379 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
20380 | cat >> confdefs.h <<\EOF | |
20381 | #define wxUSE_DRAGIMAGE 1 | |
20382 | EOF | |
20383 | ||
20384 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
20385 | fi | |
20386 | ||
1e6feb95 | 20387 | if test "$wxUSE_MENUS" = "yes"; then |
698dcdb6 | 20388 | cat >> confdefs.h <<\EOF |
1e6feb95 | 20389 | #define wxUSE_MENUS 1 |
10f2d63a VZ |
20390 | EOF |
20391 | ||
1e6feb95 | 20392 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" |
10f2d63a VZ |
20393 | fi |
20394 | ||
1e6feb95 VZ |
20395 | if test "$wxUSE_METAFILE" = "yes"; then |
20396 | cat >> confdefs.h <<\EOF | |
20397 | #define wxUSE_METAFILE 1 | |
10f2d63a VZ |
20398 | EOF |
20399 | ||
10f2d63a VZ |
20400 | fi |
20401 | ||
1e6feb95 VZ |
20402 | if test "$wxUSE_MIMETYPE" = "yes"; then |
20403 | cat >> confdefs.h <<\EOF | |
20404 | #define wxUSE_MIMETYPE 1 | |
10f2d63a VZ |
20405 | EOF |
20406 | ||
10f2d63a VZ |
20407 | fi |
20408 | ||
3e44f09d VZ |
20409 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then |
20410 | cat >> confdefs.h <<\EOF | |
20411 | #define wxUSE_SYSTEM_OPTIONS 1 | |
20412 | EOF | |
20413 | ||
321d2b14 VZ |
20414 | if test "$TOOLKIT" = "MSW"; then |
20415 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" | |
20416 | fi | |
20417 | ||
3e44f09d VZ |
20418 | fi |
20419 | ||
4cdb0ab0 | 20420 | if test "$wxUSE_PROTOCOL" = "yes"; then |
3954f9ca VS |
20421 | if test "$wxUSE_SOCKETS" != "yes"; then |
20422 | echo "configure: warning: Protocol classes require sockets... disabled" 1>&2 | |
20423 | wxUSE_PROTOCOL=no | |
20424 | fi | |
20425 | ||
20426 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
20427 | cat >> confdefs.h <<\EOF | |
4cdb0ab0 VS |
20428 | #define wxUSE_PROTOCOL 1 |
20429 | EOF | |
20430 | ||
20431 | ||
3954f9ca VS |
20432 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then |
20433 | cat >> confdefs.h <<\EOF | |
4cdb0ab0 VS |
20434 | #define wxUSE_PROTOCOL_HTTP 1 |
20435 | EOF | |
20436 | ||
3954f9ca VS |
20437 | fi |
20438 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
20439 | cat >> confdefs.h <<\EOF | |
4cdb0ab0 VS |
20440 | #define wxUSE_PROTOCOL_FTP 1 |
20441 | EOF | |
20442 | ||
3954f9ca VS |
20443 | fi |
20444 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
20445 | cat >> confdefs.h <<\EOF | |
20446 | #define wxUSE_PROTOCOL_FILE 1 | |
20447 | EOF | |
20448 | ||
20449 | fi | |
4cdb0ab0 | 20450 | fi |
3954f9ca VS |
20451 | fi |
20452 | ||
20453 | if test "$wxUSE_URL" = "yes"; then | |
20454 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
20455 | echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2 | |
20456 | wxUSE_URL=no | |
20457 | fi | |
20458 | if test "$wxUSE_URL" = "yes"; then | |
4cdb0ab0 | 20459 | cat >> confdefs.h <<\EOF |
3954f9ca | 20460 | #define wxUSE_URL 1 |
4cdb0ab0 VS |
20461 | EOF |
20462 | ||
20463 | fi | |
20464 | fi | |
20465 | ||
10f2d63a | 20466 | if test "$wxUSE_MINIFRAME" = "yes"; then |
698dcdb6 | 20467 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20468 | #define wxUSE_MINIFRAME 1 |
20469 | EOF | |
20470 | ||
20471 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
20472 | fi | |
20473 | ||
20474 | if test "$wxUSE_HTML" = "yes"; then | |
698dcdb6 | 20475 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20476 | #define wxUSE_HTML 1 |
20477 | EOF | |
20478 | ||
20479 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
10f2d63a VZ |
20480 | fi |
20481 | ||
20482 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
698dcdb6 | 20483 | cat >> confdefs.h <<\EOF |
1e487827 VS |
20484 | #define wxUSE_VALIDATORS 1 |
20485 | EOF | |
703e0a69 | 20486 | |
698dcdb6 VZ |
20487 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" |
20488 | fi | |
20489 | ||
edae8572 VZ |
20490 | if test "$wxUSE_PALETTE" = "yes" ; then |
20491 | cat >> confdefs.h <<\EOF | |
20492 | #define wxUSE_PALETTE 1 | |
20493 | EOF | |
20494 | ||
20495 | fi | |
20496 | ||
698dcdb6 VZ |
20497 | if test "$wxUSE_IMAGE" = "yes" ; then |
20498 | cat >> confdefs.h <<\EOF | |
20499 | #define wxUSE_IMAGE 1 | |
20500 | EOF | |
20501 | ||
20502 | fi | |
20503 | ||
20504 | if test "$wxUSE_GIF" = "yes" ; then | |
20505 | cat >> confdefs.h <<\EOF | |
20506 | #define wxUSE_GIF 1 | |
20507 | EOF | |
20508 | ||
20509 | fi | |
20510 | ||
20511 | if test "$wxUSE_PCX" = "yes" ; then | |
20512 | cat >> confdefs.h <<\EOF | |
20513 | #define wxUSE_PCX 1 | |
20514 | EOF | |
20515 | ||
20516 | fi | |
20517 | ||
4b6b4dfc RR |
20518 | if test "$wxUSE_IFF" = "yes" ; then |
20519 | cat >> confdefs.h <<\EOF | |
20520 | #define wxUSE_IFF 1 | |
20521 | EOF | |
20522 | ||
20523 | fi | |
20524 | ||
698dcdb6 VZ |
20525 | if test "$wxUSE_PNM" = "yes" ; then |
20526 | cat >> confdefs.h <<\EOF | |
20527 | #define wxUSE_PNM 1 | |
20528 | EOF | |
20529 | ||
20530 | fi | |
20531 | ||
20532 | if test "$wxUSE_XPM" = "yes" ; then | |
20533 | cat >> confdefs.h <<\EOF | |
20534 | #define wxUSE_XPM 1 | |
20535 | EOF | |
20536 | ||
20537 | fi | |
20538 | ||
658974ae VS |
20539 | if test "$wxUSE_ICO_CUR" = "yes" ; then |
20540 | cat >> confdefs.h <<\EOF | |
20541 | #define wxUSE_ICO_CUR 1 | |
20542 | EOF | |
20543 | ||
20544 | fi | |
20545 | ||
a72a4bfa VS |
20546 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then |
20547 | LIBS=" -lunicows $LIBS" | |
20548 | fi | |
20549 | ||
698dcdb6 | 20550 | |
1e6feb95 VZ |
20551 | if test "$wxUSE_CHOICEDLG" = "yes"; then |
20552 | cat >> confdefs.h <<\EOF | |
20553 | #define wxUSE_CHOICEDLG 1 | |
20554 | EOF | |
20555 | ||
20556 | fi | |
20557 | ||
20558 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
20559 | cat >> confdefs.h <<\EOF | |
20560 | #define wxUSE_COLOURDLG 1 | |
20561 | EOF | |
20562 | ||
20563 | fi | |
20564 | ||
20565 | if test "$wxUSE_FILEDLG" = "yes"; then | |
20566 | cat >> confdefs.h <<\EOF | |
20567 | #define wxUSE_FILEDLG 1 | |
20568 | EOF | |
20569 | ||
20570 | fi | |
20571 | ||
8db37e06 VZ |
20572 | if test "$wxUSE_FINDREPLDLG" = "yes"; then |
20573 | cat >> confdefs.h <<\EOF | |
20574 | #define wxUSE_FINDREPLDLG 1 | |
20575 | EOF | |
20576 | ||
20577 | fi | |
20578 | ||
1e6feb95 VZ |
20579 | if test "$wxUSE_FONTDLG" = "yes"; then |
20580 | cat >> confdefs.h <<\EOF | |
20581 | #define wxUSE_FONTDLG 1 | |
20582 | EOF | |
20583 | ||
20584 | fi | |
20585 | ||
20586 | if test "$wxUSE_DIRDLG" = "yes"; then | |
ae1daed0 JS |
20587 | if test "$wxUSE_TREECTRL" != "yes"; then |
20588 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 | |
1e6feb95 | 20589 | else |
ae1daed0 | 20590 | cat >> confdefs.h <<\EOF |
1e6feb95 VZ |
20591 | #define wxUSE_DIRDLG 1 |
20592 | EOF | |
20593 | ||
1e6feb95 VZ |
20594 | fi |
20595 | fi | |
20596 | ||
20597 | if test "$wxUSE_MSGDLG" = "yes"; then | |
20598 | cat >> confdefs.h <<\EOF | |
20599 | #define wxUSE_MSGDLG 1 | |
20600 | EOF | |
20601 | ||
20602 | fi | |
20603 | ||
20604 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
20605 | cat >> confdefs.h <<\EOF | |
20606 | #define wxUSE_NUMBERDLG 1 | |
20607 | EOF | |
20608 | ||
20609 | fi | |
20610 | ||
20611 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
20612 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
20613 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 | |
20614 | else | |
20615 | cat >> confdefs.h <<\EOF | |
20616 | #define wxUSE_PROGRESSDLG 1 | |
20617 | EOF | |
20618 | ||
20619 | fi | |
20620 | fi | |
20621 | ||
cbca9943 VZ |
20622 | if test "$wxUSE_SPLASH" = "yes"; then |
20623 | cat >> confdefs.h <<\EOF | |
20624 | #define wxUSE_SPLASH 1 | |
20625 | EOF | |
20626 | ||
20627 | fi | |
20628 | ||
1e6feb95 VZ |
20629 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then |
20630 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
20631 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 | |
20632 | else | |
20633 | cat >> confdefs.h <<\EOF | |
20634 | #define wxUSE_STARTUP_TIPS 1 | |
20635 | EOF | |
20636 | ||
20637 | fi | |
20638 | fi | |
20639 | ||
20640 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
20641 | cat >> confdefs.h <<\EOF | |
20642 | #define wxUSE_TEXTDLG 1 | |
20643 | EOF | |
20644 | ||
20645 | fi | |
20646 | ||
b1f5d087 VZ |
20647 | if test "$wxUSE_WIZARDDLG" = "yes"; then |
20648 | cat >> confdefs.h <<\EOF | |
20649 | #define wxUSE_WIZARDDLG 1 | |
20650 | EOF | |
20651 | ||
20652 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
20653 | fi | |
20654 | ||
1e6feb95 | 20655 | |
698dcdb6 VZ |
20656 | if test "$cross_compiling" = "yes"; then |
20657 | OSINFO="\"$host\"" | |
20658 | else | |
20659 | OSINFO=`uname -s -r -m` | |
20660 | OSINFO="\"$OSINFO\"" | |
20661 | fi | |
20662 | ||
20663 | cat >> confdefs.h <<EOF | |
20664 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
20665 | EOF | |
20666 | ||
20667 | ||
20668 | ||
06dda230 VZ |
20669 | if test "x$prefix" != "xNONE"; then |
20670 | wxPREFIX=$prefix | |
20671 | else | |
20672 | wxPREFIX=$ac_default_prefix | |
20673 | fi | |
20674 | ||
7e67ed0d | 20675 | cat >> confdefs.h <<EOF |
06dda230 | 20676 | #define wxINSTALL_PREFIX "$wxPREFIX" |
7e67ed0d VZ |
20677 | EOF |
20678 | ||
20679 | ||
20680 | ||
698dcdb6 | 20681 | |
3a922bb4 | 20682 | |
f11bdd03 | 20683 | if test "$wxUSE_MAC" = 1 ; then |
3d63bc3a | 20684 | LDFLAGS="$LDFLAGS -framework Carbon -framework System" |
698dcdb6 | 20685 | fi |
3a922bb4 | 20686 | |
3d63bc3a | 20687 | |
009fead0 | 20688 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK -lm $LIBS" |
3d63bc3a | 20689 | |
698dcdb6 | 20690 | if test "$wxUSE_GUI" = "yes"; then |
3d63bc3a | 20691 | |
cb61c62d | 20692 | LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS" |
3a922bb4 RL |
20693 | |
20694 | ||
867a54b6 | 20695 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \ |
3a922bb4 RL |
20696 | drawing dynamic erase event exec font image \ |
20697 | minimal richedit rotate widgets" | |
20698 | ||
3a922bb4 RL |
20699 | CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)" |
20700 | else | |
20701 | SAMPLES_SUBDIRS="console" | |
698dcdb6 VZ |
20702 | fi |
20703 | ||
698dcdb6 | 20704 | |
57973b9c VZ |
20705 | INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \ |
20706 | -I\${top_srcdir}/include \ | |
20707 | $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \ | |
20708 | $TOOLKIT_INCLUDE" | |
698dcdb6 | 20709 | |
63e7762e | 20710 | if test "$wxUSE_GTK" = 1; then |
3d63bc3a | 20711 | WXCONFIG_INCLUDE= |
698dcdb6 VZ |
20712 | else |
20713 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
20714 | fi | |
20715 | ||
20716 | if test "$GXX" = yes ; then | |
20717 | CXXWARNINGS="-Wall" | |
88e30f2b RL |
20718 | |
20719 | if test "$wxUSE_NO_DEPS" = "no" ; then | |
20720 | CFLAGS="-MMD $CFLAGS" | |
20721 | CXXFLAGS="-MMD $CXXFLAGS" | |
20722 | fi | |
20723 | fi | |
20724 | ||
1725144d | 20725 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES" |
698dcdb6 VZ |
20726 | |
20727 | CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` | |
20728 | CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
fe5a9cab | 20729 | LIBS=`echo $LIBS | sed 's/ \+/ /g'` |
698dcdb6 | 20730 | |
fe5a9cab | 20731 | LDFLAGS="$LDFLAGS $PROFILE" |
698dcdb6 | 20732 | |
698dcdb6 VZ |
20733 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" |
20734 | ||
20735 | ||
20736 | ||
20737 | ||
20738 | ||
20739 | ||
20740 | ||
20741 | ||
20742 | ||
20743 | ||
20744 | ||
20745 | ||
20746 | ||
20747 | ||
20748 | ||
20749 | ||
20750 | ||
20751 | ||
20752 | ||
20753 | ||
20754 | ||
20755 | ||
20756 | ||
20757 | ||
20758 | ||
20759 | ||
20760 | ||
20761 | ||
20762 | ||
20763 | ||
20764 | ||
20765 | ||
20766 | ||
20767 | ||
20768 | ||
20769 | ||
20770 | ||
20771 | ||
20772 | ||
20773 | ||
20774 | ||
20775 | ||
20776 | ||
20777 | ||
20778 | ||
20779 | ||
20780 | ||
20781 | ||
20782 | ||
20783 | ||
20784 | ||
20785 | ||
20786 | ||
20787 | ||
20788 | ||
20789 | ||
20790 | ||
20791 | ||
20792 | ||
20793 | ||
20794 | ||
20795 | ||
20796 | ||
20797 | ||
20798 | ||
20799 | ||
20800 | ||
32832908 | 20801 | |
2f51a9ec GD |
20802 | |
20803 | ||
20804 | ||
20805 | ||
f6bcfd97 | 20806 | |
dad6c0ea | 20807 | |
caa2c79b | 20808 | |
3711412e | 20809 | |
1e6feb95 VZ |
20810 | |
20811 | ||
885d4bf5 VS |
20812 | |
20813 | ||
20814 | ||
20815 | ||
9b695262 VZ |
20816 | |
20817 | ||
62d0491b | 20818 | |
ef7f2189 | 20819 | |
40f7145c | 20820 | |
10f2d63a VZ |
20821 | |
20822 | ||
698dcdb6 | 20823 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
17234b26 | 20824 | echo "configure:20825: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
698dcdb6 VZ |
20825 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
20826 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
20827 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 20828 | else |
698dcdb6 | 20829 | cat > conftestmake <<\EOF |
10f2d63a VZ |
20830 | all: |
20831 | @echo 'ac_maketemp="${MAKE}"' | |
20832 | EOF | |
20833 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
698dcdb6 | 20834 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
10f2d63a VZ |
20835 | if test -n "$ac_maketemp"; then |
20836 | eval ac_cv_prog_make_${ac_make}_set=yes | |
20837 | else | |
20838 | eval ac_cv_prog_make_${ac_make}_set=no | |
20839 | fi | |
698dcdb6 | 20840 | rm -f conftestmake |
10f2d63a VZ |
20841 | fi |
20842 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
698dcdb6 | 20843 | echo "$ac_t""yes" 1>&6 |
10f2d63a VZ |
20844 | SET_MAKE= |
20845 | else | |
698dcdb6 | 20846 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
20847 | SET_MAKE="MAKE=${MAKE-make}" |
20848 | fi | |
20849 | ||
698dcdb6 | 20850 | |
3a922bb4 RL |
20851 | if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then |
20852 | mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h | |
00cf1208 | 20853 | fi |
665bbe97 | 20854 | |
698dcdb6 | 20855 | |
10f2d63a | 20856 | |
57973b9c VZ |
20857 | wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS |
20858 | wx_cv_if_gnu_make=$IF_GNU_MAKE | |
20859 | wx_cv_path_ifs=$PATH_IFS | |
20860 | wx_cv_program_ext=$PROGRAM_EXT | |
20861 | wx_cv_target_library=$WX_TARGET_LIBRARY | |
20862 | wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL | |
20863 | wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE | |
20864 | export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \ | |
20865 | wx_cv_path_ifs wx_cv_program_ext \ | |
20866 | wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype | |
20867 | ||
20868 | subdirs="demos samples utils contrib" | |
2224580a | 20869 | |
10f2d63a | 20870 | |
698dcdb6 VZ |
20871 | trap '' 1 2 15 |
20872 | cat > confcache <<\EOF | |
10f2d63a VZ |
20873 | # This file is a shell script that caches the results of configure |
20874 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
20875 | # scripts and configure runs. It is not useful on other systems. |
20876 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 20877 | # |
698dcdb6 VZ |
20878 | # By default, configure uses ./config.cache as the cache file, |
20879 | # creating it if it does not exist already. You can give configure | |
20880 | # the --cache-file=FILE option to use a different cache file; that is | |
20881 | # what configure does when it calls configure scripts in | |
20882 | # subdirectories, so they share the cache. | |
20883 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
20884 | # config.status only pays attention to the cache file if you give it the | |
20885 | # --recheck option to rerun configure. | |
10f2d63a | 20886 | # |
698dcdb6 | 20887 | EOF |
10f2d63a VZ |
20888 | # The following way of writing the cache mishandles newlines in values, |
20889 | # but we know of no workaround that is simple, portable, and efficient. | |
20890 | # So, don't put newlines in cache variables' values. | |
20891 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
20892 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
20893 | (set) 2>&1 | |
20894 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
20895 | *ac_space=\ *) | |
20896 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
20897 | # turns \\\\ into \\, and sed turns \\ into \). | |
20898 | sed -n \ | |
20899 | -e "s/'/'\\\\''/g" \ | |
20900 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
20901 | ;; | |
20902 | *) | |
20903 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
20904 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
20905 | ;; | |
20906 | esac >> confcache | |
20907 | if cmp -s $cache_file confcache; then | |
20908 | : | |
20909 | else | |
10f2d63a | 20910 | if test -w $cache_file; then |
698dcdb6 VZ |
20911 | echo "updating cache $cache_file" |
20912 | cat confcache > $cache_file | |
10f2d63a VZ |
20913 | else |
20914 | echo "not updating unwritable cache $cache_file" | |
20915 | fi | |
20916 | fi | |
20917 | rm -f confcache | |
20918 | ||
698dcdb6 VZ |
20919 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
20920 | ||
10f2d63a VZ |
20921 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
20922 | # Let make expand exec_prefix. | |
20923 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
20924 | ||
698dcdb6 VZ |
20925 | # Any assignment to VPATH causes Sun make to only execute |
20926 | # the first set of double-colon rules, so remove it if not needed. | |
20927 | # If there is a colon in the path, we need to keep it. | |
10f2d63a | 20928 | if test "x$srcdir" = x.; then |
698dcdb6 | 20929 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
10f2d63a VZ |
20930 | fi |
20931 | ||
698dcdb6 VZ |
20932 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
20933 | ||
10f2d63a VZ |
20934 | DEFS=-DHAVE_CONFIG_H |
20935 | ||
698dcdb6 | 20936 | # Without the "./", some shells look in PATH for config.status. |
10f2d63a | 20937 | : ${CONFIG_STATUS=./config.status} |
698dcdb6 VZ |
20938 | |
20939 | echo creating $CONFIG_STATUS | |
20940 | rm -f $CONFIG_STATUS | |
20941 | cat > $CONFIG_STATUS <<EOF | |
20942 | #! /bin/sh | |
10f2d63a VZ |
20943 | # Generated automatically by configure. |
20944 | # Run this file to recreate the current configuration. | |
698dcdb6 VZ |
20945 | # This directory was configured as follows, |
20946 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
20947 | # | |
20948 | # $0 $ac_configure_args | |
20949 | # | |
10f2d63a | 20950 | # Compiler output produced by configure, useful for debugging |
698dcdb6 | 20951 | # configure, is in ./config.log if it exists. |
1e487827 | 20952 | |
698dcdb6 VZ |
20953 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
20954 | for ac_option | |
10f2d63a | 20955 | do |
698dcdb6 | 20956 | case "\$ac_option" in |
10f2d63a | 20957 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
698dcdb6 VZ |
20958 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
20959 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
20960 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
20961 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
20962 | exit 0 ;; | |
20963 | -help | --help | --hel | --he | --h) | |
20964 | echo "\$ac_cs_usage"; exit 0 ;; | |
20965 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
10f2d63a VZ |
20966 | esac |
20967 | done | |
20968 | ||
698dcdb6 VZ |
20969 | ac_given_srcdir=$srcdir |
20970 | ac_given_INSTALL="$INSTALL" | |
703e0a69 | 20971 | |
698dcdb6 VZ |
20972 | trap 'rm -fr `echo " |
20973 | wx-config | |
20974 | src/make.env | |
20975 | src/makeprog.env | |
20976 | src/makelib.env | |
20977 | Makefile | |
20978 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
1e487827 | 20979 | EOF |
698dcdb6 | 20980 | cat >> $CONFIG_STATUS <<EOF |
1e487827 | 20981 | |
698dcdb6 VZ |
20982 | # Protect against being on the right side of a sed subst in config.status. |
20983 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
20984 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
20985 | $ac_vpsub | |
20986 | $extrasub | |
20987 | s%@SHELL@%$SHELL%g | |
20988 | s%@CFLAGS@%$CFLAGS%g | |
20989 | s%@CPPFLAGS@%$CPPFLAGS%g | |
20990 | s%@CXXFLAGS@%$CXXFLAGS%g | |
20991 | s%@FFLAGS@%$FFLAGS%g | |
20992 | s%@DEFS@%$DEFS%g | |
20993 | s%@LDFLAGS@%$LDFLAGS%g | |
20994 | s%@LIBS@%$LIBS%g | |
20995 | s%@exec_prefix@%$exec_prefix%g | |
20996 | s%@prefix@%$prefix%g | |
20997 | s%@program_transform_name@%$program_transform_name%g | |
20998 | s%@bindir@%$bindir%g | |
20999 | s%@sbindir@%$sbindir%g | |
21000 | s%@libexecdir@%$libexecdir%g | |
21001 | s%@datadir@%$datadir%g | |
21002 | s%@sysconfdir@%$sysconfdir%g | |
21003 | s%@sharedstatedir@%$sharedstatedir%g | |
21004 | s%@localstatedir@%$localstatedir%g | |
21005 | s%@libdir@%$libdir%g | |
21006 | s%@includedir@%$includedir%g | |
21007 | s%@oldincludedir@%$oldincludedir%g | |
21008 | s%@infodir@%$infodir%g | |
21009 | s%@mandir@%$mandir%g | |
21010 | s%@host@%$host%g | |
21011 | s%@host_alias@%$host_alias%g | |
21012 | s%@host_cpu@%$host_cpu%g | |
21013 | s%@host_vendor@%$host_vendor%g | |
21014 | s%@host_os@%$host_os%g | |
21015 | s%@target@%$target%g | |
21016 | s%@target_alias@%$target_alias%g | |
21017 | s%@target_cpu@%$target_cpu%g | |
21018 | s%@target_vendor@%$target_vendor%g | |
21019 | s%@target_os@%$target_os%g | |
21020 | s%@build@%$build%g | |
21021 | s%@build_alias@%$build_alias%g | |
21022 | s%@build_cpu@%$build_cpu%g | |
21023 | s%@build_vendor@%$build_vendor%g | |
21024 | s%@build_os@%$build_os%g | |
21025 | s%@CC@%$CC%g | |
21026 | s%@CPP@%$CPP%g | |
21027 | s%@CXX@%$CXX%g | |
698dcdb6 VZ |
21028 | s%@RANLIB@%$RANLIB%g |
21029 | s%@AR@%$AR%g | |
21030 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
d6853540 | 21031 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
6054113a | 21032 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
698dcdb6 | 21033 | s%@STRIP@%$STRIP%g |
613d0995 | 21034 | s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g |
698dcdb6 VZ |
21035 | s%@YACC@%$YACC%g |
21036 | s%@LEX@%$LEX%g | |
21037 | s%@LEXLIB@%$LEXLIB%g | |
21038 | s%@LN_S@%$LN_S%g | |
90dd450c | 21039 | s%@CXXCPP@%$CXXCPP%g |
9e691f46 | 21040 | s%@PKG_CONFIG@%$PKG_CONFIG%g |
698dcdb6 VZ |
21041 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g |
21042 | s%@GTK_LIBS@%$GTK_LIBS%g | |
8168de4c | 21043 | s%@GTK_CONFIG@%$GTK_CONFIG%g |
698dcdb6 VZ |
21044 | s%@X_CFLAGS@%$X_CFLAGS%g |
21045 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
21046 | s%@X_LIBS@%$X_LIBS%g | |
21047 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
321d2b14 | 21048 | s%@AIX_CXX_LD@%$AIX_CXX_LD%g |
3a922bb4 | 21049 | s%@RESCOMP@%$RESCOMP%g |
698dcdb6 | 21050 | s%@DEREZ@%$DEREZ%g |
b040e242 | 21051 | s%@LIBICONV@%$LIBICONV%g |
698dcdb6 VZ |
21052 | s%@LEX_STEM@%$LEX_STEM%g |
21053 | s%@PATH_IFS@%$PATH_IFS%g | |
21054 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g | |
21055 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
21056 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
698dcdb6 VZ |
21057 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g |
21058 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
77e13408 | 21059 | s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g |
698dcdb6 VZ |
21060 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g |
21061 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
21062 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
698dcdb6 | 21063 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g |
698dcdb6 VZ |
21064 | s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g |
21065 | s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g | |
698dcdb6 VZ |
21066 | s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g |
21067 | s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g | |
21068 | s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g | |
698dcdb6 VZ |
21069 | s%@WX_ALL@%$WX_ALL%g |
21070 | s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g | |
21071 | s%@SHARED_LD@%$SHARED_LD%g | |
21072 | s%@PIC_FLAG@%$PIC_FLAG%g | |
698dcdb6 VZ |
21073 | s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g |
21074 | s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g | |
3a922bb4 RL |
21075 | s%@SONAME_FLAGS@%$SONAME_FLAGS%g |
21076 | s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g | |
698dcdb6 VZ |
21077 | s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g |
21078 | s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g | |
21079 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g | |
21080 | s%@USE_GUI@%$USE_GUI%g | |
21081 | s%@AFMINSTALL@%$AFMINSTALL%g | |
21082 | s%@TOOLKIT@%$TOOLKIT%g | |
698dcdb6 | 21083 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g |
1e6feb95 | 21084 | s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g |
3a922bb4 RL |
21085 | s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g |
21086 | s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g | |
00c81359 | 21087 | s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g |
3a922bb4 RL |
21088 | s%@cross_compiling@%$cross_compiling%g |
21089 | s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g | |
21090 | s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g | |
885d4bf5 VS |
21091 | s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g |
21092 | s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g | |
698dcdb6 VZ |
21093 | s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g |
21094 | s%@ALL_OBJECTS@%$ALL_OBJECTS%g | |
9b695262 VZ |
21095 | s%@ALL_HEADERS@%$ALL_HEADERS%g |
21096 | s%@ALL_SOURCES@%$ALL_SOURCES%g | |
698dcdb6 VZ |
21097 | s%@GUIDIST@%$GUIDIST%g |
21098 | s%@PORT_FILES@%$PORT_FILES%g | |
21099 | s%@DISTDIR@%$DISTDIR%g | |
698dcdb6 | 21100 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g |
62d0491b | 21101 | s%@LDFLAGS_GL@%$LDFLAGS_GL%g |
40f7145c | 21102 | s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g |
698dcdb6 | 21103 | s%@OPENGL_LIBS@%$OPENGL_LIBS%g |
3d63bc3a | 21104 | s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g |
698dcdb6 | 21105 | s%@EXTRADEFS@%$EXTRADEFS%g |
698dcdb6 | 21106 | s%@RESFLAGS@%$RESFLAGS%g |
3a922bb4 | 21107 | s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g |
e95edd8d GD |
21108 | s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g |
21109 | s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g | |
ef7f2189 | 21110 | s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g |
698dcdb6 VZ |
21111 | s%@LIBWXMACRES@%$LIBWXMACRES%g |
21112 | s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g | |
2baaf735 | 21113 | s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g |
698dcdb6 VZ |
21114 | s%@DLLTOOL@%$DLLTOOL%g |
21115 | s%@AS@%$AS%g | |
21116 | s%@NM@%$NM%g | |
21117 | s%@LD@%$LD%g | |
21118 | s%@MAKEINFO@%$MAKEINFO%g | |
885d4bf5 | 21119 | s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g |
698dcdb6 VZ |
21120 | s%@SET_MAKE@%$SET_MAKE%g |
21121 | s%@subdirs@%$subdirs%g | |
1e487827 | 21122 | |
1e487827 | 21123 | CEOF |
1e487827 VS |
21124 | EOF |
21125 | ||
698dcdb6 VZ |
21126 | cat >> $CONFIG_STATUS <<\EOF |
21127 | ||
21128 | # Split the substitutions into bite-sized pieces for seds with | |
21129 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
21130 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
21131 | ac_file=1 # Number of current file. | |
21132 | ac_beg=1 # First line for current file. | |
21133 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
21134 | ac_more_lines=: | |
21135 | ac_sed_cmds="" | |
21136 | while $ac_more_lines; do | |
21137 | if test $ac_beg -gt 1; then | |
21138 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
21139 | else | |
21140 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
21141 | fi | |
21142 | if test ! -s conftest.s$ac_file; then | |
21143 | ac_more_lines=false | |
21144 | rm -f conftest.s$ac_file | |
21145 | else | |
21146 | if test -z "$ac_sed_cmds"; then | |
21147 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
10f2d63a | 21148 | else |
698dcdb6 | 21149 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
10f2d63a | 21150 | fi |
698dcdb6 VZ |
21151 | ac_file=`expr $ac_file + 1` |
21152 | ac_beg=$ac_end | |
21153 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
10f2d63a | 21154 | fi |
698dcdb6 VZ |
21155 | done |
21156 | if test -z "$ac_sed_cmds"; then | |
21157 | ac_sed_cmds=cat | |
21158 | fi | |
21159 | EOF | |
10f2d63a | 21160 | |
698dcdb6 VZ |
21161 | cat >> $CONFIG_STATUS <<EOF |
21162 | ||
21163 | CONFIG_FILES=\${CONFIG_FILES-"wx-config | |
21164 | src/make.env | |
21165 | src/makeprog.env | |
21166 | src/makelib.env | |
21167 | Makefile | |
21168 | "} | |
10f2d63a | 21169 | EOF |
698dcdb6 VZ |
21170 | cat >> $CONFIG_STATUS <<\EOF |
21171 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
10f2d63a | 21172 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
698dcdb6 VZ |
21173 | case "$ac_file" in |
21174 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
21175 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
21176 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
21177 | esac |
21178 | ||
698dcdb6 | 21179 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
1e487827 | 21180 | |
698dcdb6 VZ |
21181 | # Remove last slash and all that follows it. Not all systems have dirname. |
21182 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
21183 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
21184 | # The file is in a subdirectory. | |
21185 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
21186 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
10f2d63a | 21187 | # A "../" for each directory in $ac_dir_suffix. |
698dcdb6 | 21188 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
10f2d63a VZ |
21189 | else |
21190 | ac_dir_suffix= ac_dots= | |
21191 | fi | |
21192 | ||
698dcdb6 VZ |
21193 | case "$ac_given_srcdir" in |
21194 | .) srcdir=. | |
21195 | if test -z "$ac_dots"; then top_srcdir=. | |
21196 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
21197 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
10f2d63a | 21198 | *) # Relative path. |
698dcdb6 VZ |
21199 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
21200 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
10f2d63a VZ |
21201 | esac |
21202 | ||
698dcdb6 VZ |
21203 | case "$ac_given_INSTALL" in |
21204 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
21205 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
10f2d63a VZ |
21206 | esac |
21207 | ||
698dcdb6 VZ |
21208 | echo creating "$ac_file" |
21209 | rm -f "$ac_file" | |
21210 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
21211 | case "$ac_file" in | |
21212 | *Makefile*) ac_comsub="1i\\ | |
21213 | # $configure_input" ;; | |
21214 | *) ac_comsub= ;; | |
21215 | esac | |
10f2d63a | 21216 | |
698dcdb6 VZ |
21217 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
21218 | sed -e "$ac_comsub | |
21219 | s%@configure_input@%$configure_input%g | |
21220 | s%@srcdir@%$srcdir%g | |
21221 | s%@top_srcdir@%$top_srcdir%g | |
21222 | s%@INSTALL@%$INSTALL%g | |
21223 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
21224 | fi; done | |
21225 | rm -f conftest.s* | |
10f2d63a VZ |
21226 | |
21227 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
21228 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
21229 | # | |
21230 | # ac_d sets the value in "#define NAME VALUE" lines. | |
698dcdb6 VZ |
21231 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
21232 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
21233 | ac_dC='\3' | |
21234 | ac_dD='%g' | |
21235 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
21236 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
21237 | ac_uB='\([ ]\)%\1#\2define\3' | |
10f2d63a | 21238 | ac_uC=' ' |
698dcdb6 VZ |
21239 | ac_uD='\4%g' |
21240 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
21241 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
21242 | ac_eB='$%\1#\2define\3' | |
21243 | ac_eC=' ' | |
21244 | ac_eD='%g' | |
10f2d63a | 21245 | |
698dcdb6 VZ |
21246 | if test "${CONFIG_HEADERS+set}" != set; then |
21247 | EOF | |
21248 | cat >> $CONFIG_STATUS <<EOF | |
21249 | CONFIG_HEADERS="setup.h:setup.h.in" | |
21250 | EOF | |
21251 | cat >> $CONFIG_STATUS <<\EOF | |
21252 | fi | |
21253 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
10f2d63a | 21254 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
698dcdb6 VZ |
21255 | case "$ac_file" in |
21256 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
21257 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
21258 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
21259 | esac |
21260 | ||
698dcdb6 VZ |
21261 | echo creating $ac_file |
21262 | ||
21263 | rm -f conftest.frag conftest.in conftest.out | |
21264 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
21265 | cat $ac_file_inputs > conftest.in | |
21266 | ||
21267 | EOF | |
21268 | ||
21269 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
21270 | # the proper values into config.h.in to produce config.h. And first: | |
21271 | # Protect against being on the right side of a sed subst in config.status. | |
21272 | # Protect against being in an unquoted here document in config.status. | |
21273 | rm -f conftest.vals | |
21274 | cat > conftest.hdr <<\EOF | |
21275 | s/[\\&%]/\\&/g | |
21276 | s%[\\$`]%\\&%g | |
21277 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
21278 | s%ac_d%ac_u%gp | |
21279 | s%ac_u%ac_e%gp | |
21280 | EOF | |
21281 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
21282 | rm -f conftest.hdr | |
10f2d63a VZ |
21283 | |
21284 | # This sed command replaces #undef with comments. This is necessary, for | |
21285 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
21286 | # on some systems where configure will not decide to define it. | |
698dcdb6 VZ |
21287 | cat >> conftest.vals <<\EOF |
21288 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
10f2d63a VZ |
21289 | EOF |
21290 | ||
698dcdb6 VZ |
21291 | # Break up conftest.vals because some shells have a limit on |
21292 | # the size of here documents, and old seds have small limits too. | |
10f2d63a VZ |
21293 | |
21294 | rm -f conftest.tail | |
698dcdb6 | 21295 | while : |
10f2d63a | 21296 | do |
698dcdb6 VZ |
21297 | ac_lines=`grep -c . conftest.vals` |
21298 | # grep -c gives empty output for an empty file on some AIX systems. | |
21299 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
21300 | # Write a limited-size here document to conftest.frag. | |
21301 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
21302 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
10f2d63a | 21303 | echo 'CEOF |
698dcdb6 VZ |
21304 | sed -f conftest.frag conftest.in > conftest.out |
21305 | rm -f conftest.in | |
21306 | mv conftest.out conftest.in | |
21307 | ' >> $CONFIG_STATUS | |
21308 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
21309 | rm -f conftest.vals | |
21310 | mv conftest.tail conftest.vals | |
10f2d63a | 21311 | done |
698dcdb6 VZ |
21312 | rm -f conftest.vals |
21313 | ||
21314 | cat >> $CONFIG_STATUS <<\EOF | |
21315 | rm -f conftest.frag conftest.h | |
21316 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
21317 | cat conftest.in >> conftest.h | |
21318 | rm -f conftest.in | |
21319 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
21320 | echo "$ac_file is unchanged" | |
21321 | rm -f conftest.h | |
10f2d63a | 21322 | else |
698dcdb6 VZ |
21323 | # Remove last slash and all that follows it. Not all systems have dirname. |
21324 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
10f2d63a | 21325 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
698dcdb6 VZ |
21326 | # The file is in a subdirectory. |
21327 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
10f2d63a | 21328 | fi |
698dcdb6 VZ |
21329 | rm -f $ac_file |
21330 | mv conftest.h $ac_file | |
10f2d63a | 21331 | fi |
698dcdb6 VZ |
21332 | fi; done |
21333 | ||
10f2d63a | 21334 | EOF |
698dcdb6 | 21335 | cat >> $CONFIG_STATUS <<EOF |
10f2d63a | 21336 | |
3a922bb4 | 21337 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}" |
698dcdb6 VZ |
21338 | LN_S="${LN_S}" |
21339 | ||
21340 | ||
21341 | EOF | |
21342 | cat >> $CONFIG_STATUS <<\EOF | |
10f2d63a | 21343 | |
652d930d | 21344 | if test ! -h wx-config; then |
991a5759 | 21345 | chmod +x wx-config |
3a922bb4 RL |
21346 | mv wx-config wx${TOOLCHAIN_NAME}-config |
21347 | ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config | |
991a5759 | 21348 | fi |
665bbe97 | 21349 | |
00cf1208 RR |
21350 | if test ! -d lib; then |
21351 | mkdir lib | |
21352 | fi | |
21353 | if test ! -d lib/wx; then | |
21354 | mkdir lib/wx | |
21355 | fi | |
21356 | if test ! -d lib/wx/include; then | |
21357 | mkdir lib/wx/include | |
21358 | fi | |
3a922bb4 RL |
21359 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then |
21360 | mkdir lib/wx/include/${TOOLCHAIN_NAME} | |
00cf1208 | 21361 | fi |
3a922bb4 RL |
21362 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then |
21363 | mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx | |
00cf1208 RR |
21364 | fi |
21365 | if test -f setup.h; then | |
3a922bb4 | 21366 | mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h |
00cf1208 | 21367 | fi |
698dcdb6 VZ |
21368 | |
21369 | exit 0 | |
10f2d63a VZ |
21370 | EOF |
21371 | chmod +x $CONFIG_STATUS | |
698dcdb6 VZ |
21372 | rm -fr confdefs* $ac_clean_files |
21373 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
10f2d63a | 21374 | |
2224580a VZ |
21375 | if test "$no_recursion" != yes; then |
21376 | ||
21377 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
21378 | ac_sub_configure_args= | |
21379 | ac_prev= | |
21380 | for ac_arg in $ac_configure_args; do | |
21381 | if test -n "$ac_prev"; then | |
21382 | ac_prev= | |
21383 | continue | |
21384 | fi | |
698dcdb6 | 21385 | case "$ac_arg" in |
2224580a VZ |
21386 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
21387 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
21388 | ac_prev=cache_file ;; | |
21389 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
698dcdb6 | 21390 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
2224580a VZ |
21391 | ;; |
21392 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
21393 | ac_prev=srcdir ;; | |
21394 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
21395 | ;; | |
21396 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
21397 | esac | |
21398 | done | |
21399 | ||
8f4a9a10 | 21400 | for ac_config_dir in demos samples utils contrib; do |
2224580a VZ |
21401 | |
21402 | # Do not complain, so a configure script can configure whichever | |
21403 | # parts of a large source tree are present. | |
698dcdb6 VZ |
21404 | if test ! -d $srcdir/$ac_config_dir; then |
21405 | continue | |
21406 | fi | |
21407 | ||
21408 | echo configuring in $ac_config_dir | |
2224580a | 21409 | |
698dcdb6 | 21410 | case "$srcdir" in |
2224580a VZ |
21411 | .) ;; |
21412 | *) | |
698dcdb6 VZ |
21413 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; |
21414 | else | |
21415 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
21416 | fi | |
21417 | ;; | |
2224580a VZ |
21418 | esac |
21419 | ||
21420 | ac_popdir=`pwd` | |
698dcdb6 | 21421 | cd $ac_config_dir |
2224580a | 21422 | |
698dcdb6 VZ |
21423 | # A "../" for each directory in /$ac_config_dir. |
21424 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
2224580a | 21425 | |
698dcdb6 | 21426 | case "$srcdir" in |
2224580a VZ |
21427 | .) # No --srcdir option. We are building in place. |
21428 | ac_sub_srcdir=$srcdir ;; | |
698dcdb6 VZ |
21429 | /*) # Absolute path. |
21430 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
2224580a | 21431 | *) # Relative path. |
698dcdb6 | 21432 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; |
2224580a VZ |
21433 | esac |
21434 | ||
21435 | # Check for guested configure; otherwise get Cygnus style configure. | |
698dcdb6 VZ |
21436 | if test -f $ac_sub_srcdir/configure; then |
21437 | ac_sub_configure=$ac_sub_srcdir/configure | |
2224580a VZ |
21438 | elif test -f $ac_sub_srcdir/configure.in; then |
21439 | ac_sub_configure=$ac_configure | |
21440 | else | |
698dcdb6 | 21441 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 |
2224580a VZ |
21442 | ac_sub_configure= |
21443 | fi | |
21444 | ||
21445 | # The recursion is here. | |
21446 | if test -n "$ac_sub_configure"; then | |
698dcdb6 | 21447 | |
2224580a | 21448 | # Make the cache file name correct relative to the subdirectory. |
698dcdb6 VZ |
21449 | case "$cache_file" in |
21450 | /*) ac_sub_cache_file=$cache_file ;; | |
2224580a | 21451 | *) # Relative path. |
698dcdb6 | 21452 | ac_sub_cache_file="$ac_dots$cache_file" ;; |
2224580a | 21453 | esac |
698dcdb6 VZ |
21454 | case "$ac_given_INSTALL" in |
21455 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
21456 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
21457 | esac | |
2224580a | 21458 | |
698dcdb6 | 21459 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" |
2224580a | 21460 | # The eval makes quoting arguments work. |
698dcdb6 VZ |
21461 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir |
21462 | then : | |
21463 | else | |
21464 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
21465 | fi | |
2224580a VZ |
21466 | fi |
21467 | ||
21468 | cd $ac_popdir | |
21469 | done | |
21470 | fi | |
21471 | ||
698dcdb6 | 21472 |