]>
Commit | Line | Data |
---|---|---|
10f2d63a VZ |
1 | #! /bin/sh |
2 | ||
698dcdb6 | 3 | # From configure.in Id: configure.in |
703e0a69 VZ |
4 | |
5 | ||
6 | ||
7 | ||
8 | ||
703e0a69 VZ |
9 | |
10 | ||
1e487827 | 11 | |
1e487827 | 12 | |
698dcdb6 VZ |
13 | |
14 | ||
15 | ||
16 | ||
17 | ||
18 | ||
19 | ||
20 | ||
21 | ||
22 | ||
23 | ||
24 | ||
25 | ||
26 | ||
27 | ||
28 | ||
29 | ||
30 | ||
31 | ||
32 | ||
33 | ||
34 | ||
35 | ||
36 | ||
37 | ||
38 | ||
39 | ||
40 | ||
b040e242 VS |
41 | |
42 | ||
43 | ||
b040e242 VS |
44 | |
45 | ||
46 | ||
47 | ||
48 | ||
49 | ||
50 | ||
51 | ||
52 | # Configure paths for GTK+ | |
53 | # Owen Taylor 97-11-3 | |
698dcdb6 | 54 | |
698dcdb6 VZ |
55 | |
56 | ||
57 | # Guess values for system-dependent variables and create Makefiles. | |
58 | # Generated automatically using autoconf version 2.13 | |
59 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. | |
60 | # | |
61 | # This configure script is free software; the Free Software Foundation | |
62 | # gives unlimited permission to copy, distribute and modify it. | |
63 | ||
64 | # Defaults: | |
65 | ac_help= | |
66 | ac_default_prefix=/usr/local | |
67 | # Any additions from configure.in: | |
68 | ac_help="$ac_help | |
8168de4c | 69 | --enable-gui use GUI classes" |
1e6feb95 | 70 | ac_help="$ac_help |
8168de4c | 71 | --enable-universal use wxWindows GUI controls instead of native ones" |
698dcdb6 VZ |
72 | ac_help="$ac_help |
73 | --with-gtk use GTK+" | |
74 | ac_help="$ac_help | |
75 | --with-motif use Motif/Lesstif" | |
76 | ac_help="$ac_help | |
77 | --with-mac use Mac OS X" | |
78 | ac_help="$ac_help | |
79 | --with-wine use WINE" | |
80 | ac_help="$ac_help | |
77e13408 | 81 | --with-msw use MS-Windows" |
698dcdb6 VZ |
82 | ac_help="$ac_help |
83 | --with-pm use OS/2 Presentation Manager" | |
1e6feb95 | 84 | ac_help="$ac_help |
b3e8d00a | 85 | --with-mgl use SciTech MGL" |
1725144d RR |
86 | ac_help="$ac_help |
87 | --with-microwin use MicroWindows" | |
f79bd02d JS |
88 | ac_help="$ac_help |
89 | --with-x11 use X11" | |
698dcdb6 | 90 | ac_help="$ac_help |
8168de4c | 91 | --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)" |
698dcdb6 | 92 | ac_help="$ac_help |
8168de4c | 93 | --with-libpng use libpng (PNG image format)" |
698dcdb6 | 94 | ac_help="$ac_help |
8168de4c | 95 | --with-libjpeg use libjpeg (JPEG file format)" |
698dcdb6 | 96 | ac_help="$ac_help |
8168de4c | 97 | --with-libtiff use libtiff (TIFF file format)" |
698dcdb6 | 98 | ac_help="$ac_help |
8168de4c | 99 | --with-opengl use OpenGL (or Mesa)" |
698dcdb6 | 100 | ac_help="$ac_help |
d0e9b150 | 101 | --with-dmalloc use dmalloc library (http://dmalloc.com/)" |
3e44f09d VZ |
102 | ac_help="$ac_help |
103 | --with-regex enable support for wxRegEx class" | |
698dcdb6 | 104 | ac_help="$ac_help |
8168de4c | 105 | --with-zlib use zlib for LZW compression" |
698dcdb6 | 106 | ac_help="$ac_help |
8168de4c | 107 | --with-odbc use the IODBC and wxODBC classes" |
698dcdb6 | 108 | ac_help="$ac_help |
8168de4c | 109 | --enable-shared create shared library code" |
698dcdb6 | 110 | ac_help="$ac_help |
3a922bb4 | 111 | --enable-soname set the DT_SONAME field in ELF shared libraries" |
698dcdb6 | 112 | ac_help="$ac_help |
8168de4c | 113 | --enable-optimise create optimised code" |
698dcdb6 | 114 | ac_help="$ac_help |
8168de4c | 115 | --enable-debug same as debug_flag and debug_info" |
683dccda GD |
116 | ac_help="$ac_help |
117 | --enable-precomp enable use of precompiled headers (Mac OS X)" | |
698dcdb6 | 118 | ac_help="$ac_help |
8168de4c | 119 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)" |
698dcdb6 | 120 | ac_help="$ac_help |
8168de4c | 121 | --enable-debug_info create code with debugging information" |
698dcdb6 | 122 | ac_help="$ac_help |
8168de4c | 123 | --enable-debug_gdb create code with extra GDB debugging information" |
698dcdb6 | 124 | ac_help="$ac_help |
8168de4c | 125 | --enable-debug_cntxt use wxDebugContext" |
698dcdb6 | 126 | ac_help="$ac_help |
8168de4c | 127 | --enable-mem_tracing create code with memory tracing" |
698dcdb6 | 128 | ac_help="$ac_help |
8168de4c | 129 | --enable-profile create code with profiling information" |
698dcdb6 | 130 | ac_help="$ac_help |
8168de4c | 131 | --enable-no_rtti create code without RTTI information" |
698dcdb6 | 132 | ac_help="$ac_help |
b3e8d00a | 133 | --enable-no_exceptions create code without C++ exceptions handling" |
698dcdb6 | 134 | ac_help="$ac_help |
8168de4c | 135 | --enable-permissive compile code disregarding strict ANSI" |
698dcdb6 | 136 | ac_help="$ac_help |
8168de4c | 137 | --enable-no_deps create code without dependency information" |
54276ccf | 138 | ac_help="$ac_help |
b3e8d00a | 139 | --enable-compat20 enable wxWindows 2.0 compatibility" |
54276ccf | 140 | ac_help="$ac_help |
b3e8d00a | 141 | --enable-compat22 enable wxWindows 2.2 compatibility" |
698dcdb6 | 142 | ac_help="$ac_help |
8168de4c | 143 | --enable-intl use internationalization system" |
698dcdb6 | 144 | ac_help="$ac_help |
8168de4c | 145 | --enable-config use wxConfig (and derived) classes" |
a1622950 VZ |
146 | ac_help="$ac_help |
147 | --enable-protocols use wxProtocol and derived classes" | |
148 | ac_help="$ac_help | |
149 | --enable-ftp use wxFTP (requires wxProtocol" | |
150 | ac_help="$ac_help | |
151 | --enable-http use wxHTTP (requires wxProtocol" | |
152 | ac_help="$ac_help | |
153 | --enable-fileproto use wxFileProto class (requires wxProtocol" | |
698dcdb6 | 154 | ac_help="$ac_help |
8168de4c | 155 | --enable-sockets use socket/network classes" |
698dcdb6 | 156 | ac_help="$ac_help |
8168de4c | 157 | --enable-ipc use interprocess communication (wxSocket etc.)" |
698dcdb6 | 158 | ac_help="$ac_help |
8168de4c | 159 | --enable-cmdline use wxCmdLineParser class" |
1e6feb95 | 160 | ac_help="$ac_help |
8168de4c | 161 | --enable-datetime use wxDateTime class" |
1e6feb95 | 162 | ac_help="$ac_help |
8168de4c | 163 | --enable-timedate use obsolete wxDate/wxTime classes" |
1e6feb95 | 164 | ac_help="$ac_help |
8168de4c | 165 | --enable-stopwatch use wxStopWatch class" |
1e6feb95 | 166 | ac_help="$ac_help |
8168de4c | 167 | --enable-dialupman use dialup network classes" |
698dcdb6 | 168 | ac_help="$ac_help |
8168de4c | 169 | --enable-apple_ieee use the Apple IEEE codec" |
698dcdb6 | 170 | ac_help="$ac_help |
8168de4c | 171 | --enable-timer use wxTimer class" |
698dcdb6 | 172 | ac_help="$ac_help |
8168de4c | 173 | --enable-wave use wxWave class" |
698dcdb6 | 174 | ac_help="$ac_help |
8168de4c | 175 | --enable-fraction use wxFraction class" |
698dcdb6 | 176 | ac_help="$ac_help |
8168de4c | 177 | --enable-dynlib use wxLibrary class for DLL loading" |
0b9ab0bd RL |
178 | ac_help="$ac_help |
179 | --enable-dynamicloader use (new) wxDynamicLibrary class" | |
698dcdb6 | 180 | ac_help="$ac_help |
8168de4c | 181 | --enable-longlong use wxLongLong class" |
698dcdb6 | 182 | ac_help="$ac_help |
8168de4c | 183 | --enable-geometry use geometry class" |
698dcdb6 | 184 | ac_help="$ac_help |
8168de4c | 185 | --enable-log use logging system" |
698dcdb6 | 186 | ac_help="$ac_help |
8168de4c | 187 | --enable-streams use wxStream etc classes" |
698dcdb6 | 188 | ac_help="$ac_help |
8168de4c | 189 | --enable-file use wxFile classes" |
698dcdb6 | 190 | ac_help="$ac_help |
8168de4c | 191 | --enable-ffile use wxFFile classes" |
1e6feb95 | 192 | ac_help="$ac_help |
a3a584a7 VZ |
193 | --enable-textbuf use wxTextBuffer class" |
194 | ac_help="$ac_help | |
195 | --enable-textfile use wxTextFile class" | |
698dcdb6 | 196 | ac_help="$ac_help |
8168de4c | 197 | --enable-fontmap use font encodings conversion classes" |
1e6feb95 | 198 | ac_help="$ac_help |
8168de4c | 199 | --enable-unicode compile wxString with Unicode support" |
a72a4bfa VS |
200 | ac_help="$ac_help |
201 | --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)" | |
698dcdb6 | 202 | ac_help="$ac_help |
8168de4c | 203 | --enable-wxprintfv use wxWindows implementation of vprintf()" |
698dcdb6 | 204 | ac_help="$ac_help |
8168de4c | 205 | --enable-std_iostreams use standard C++ stream classes" |
698dcdb6 | 206 | ac_help="$ac_help |
8168de4c | 207 | --enable-filesystem use virtual file systems classes" |
698dcdb6 | 208 | ac_help="$ac_help |
8168de4c | 209 | --enable-fs_inet use virtual HTTP/FTP filesystems" |
698dcdb6 | 210 | ac_help="$ac_help |
8168de4c | 211 | --enable-fs_zip use virtual ZIP filesystems" |
698dcdb6 | 212 | ac_help="$ac_help |
8168de4c | 213 | --enable-zipstream use wxZipInputStream" |
698dcdb6 | 214 | ac_help="$ac_help |
8168de4c | 215 | --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException" |
698dcdb6 | 216 | ac_help="$ac_help |
8168de4c | 217 | --enable-snglinst use wxSingleInstanceChecker class" |
698dcdb6 | 218 | ac_help="$ac_help |
69d27ff7 | 219 | --enable-mimetype use wxMimeTypesManager" |
3e44f09d | 220 | ac_help="$ac_help |
b3e8d00a | 221 | --enable-sysoptions use wxSystemOptions" |
4cdb0ab0 VS |
222 | ac_help="$ac_help |
223 | --enable-url use wxURL class" | |
224 | ac_help="$ac_help | |
225 | --enable-protocol use wxProtocol class" | |
226 | ac_help="$ac_help | |
227 | --enable-protocol-http HTTP support in wxProtocol" | |
228 | ac_help="$ac_help | |
229 | --enable-protocol-ftp FTP support in wxProtocol" | |
230 | ac_help="$ac_help | |
231 | --enable-protocol-file FILE support in wxProtocol" | |
1e6feb95 | 232 | ac_help="$ac_help |
8168de4c | 233 | --enable-threads use threads" |
698dcdb6 | 234 | ac_help="$ac_help |
8168de4c | 235 | --enable-docview use document view architecture" |
698dcdb6 | 236 | ac_help="$ac_help |
3379ed37 | 237 | --enable-help use help subsystem" |
29fd3c0c VS |
238 | ac_help="$ac_help |
239 | --enable-mshtmlhelp use MS HTML Help (win32)" | |
3379ed37 VZ |
240 | ac_help="$ac_help |
241 | --enable-html use wxHTML sub-library" | |
242 | ac_help="$ac_help | |
243 | --enable-htmlhelp use wxHTML-based help" | |
698dcdb6 | 244 | ac_help="$ac_help |
8168de4c | 245 | --enable-constraints use layout-constraints system" |
698dcdb6 | 246 | ac_help="$ac_help |
8168de4c | 247 | --enable-printarch use printing architecture" |
698dcdb6 | 248 | ac_help="$ac_help |
8168de4c | 249 | --enable-mdi use multiple document interface architecture" |
698dcdb6 | 250 | ac_help="$ac_help |
8168de4c | 251 | --enable-loggui use standard GUI logger" |
1e6feb95 | 252 | ac_help="$ac_help |
8168de4c | 253 | --enable-logwin use wxLogWindow" |
69d27ff7 MB |
254 | ac_help="$ac_help |
255 | --enable-logdialog use wxLogDialog" | |
1e6feb95 | 256 | ac_help="$ac_help |
8168de4c | 257 | --enable-postscript use wxPostscriptDC device context (default for gtk+)" |
698dcdb6 | 258 | ac_help="$ac_help |
8168de4c | 259 | --enable-prologio use Prolog IO library" |
698dcdb6 | 260 | ac_help="$ac_help |
8168de4c | 261 | --enable-resources use wxWindows resources" |
698dcdb6 | 262 | ac_help="$ac_help |
8168de4c | 263 | --enable-xresources use X resources for save (default for gtk+)" |
698dcdb6 | 264 | ac_help="$ac_help |
8168de4c | 265 | --enable-clipboard use wxClipboard classes" |
698dcdb6 | 266 | ac_help="$ac_help |
8168de4c | 267 | --enable-dnd use Drag'n'Drop classes" |
698dcdb6 | 268 | ac_help="$ac_help |
8168de4c | 269 | --enable-metafile use win32 metafiles" |
698dcdb6 | 270 | ac_help="$ac_help |
24176f2c | 271 | --enable-treelayout use wxTreeLayout classes" |
698dcdb6 | 272 | ac_help="$ac_help |
8168de4c | 273 | --enable-controls use all usual controls" |
698dcdb6 | 274 | ac_help="$ac_help |
8168de4c | 275 | --enable-accel use accelerators" |
698dcdb6 | 276 | ac_help="$ac_help |
8168de4c | 277 | --enable-button use wxButton class" |
698dcdb6 | 278 | ac_help="$ac_help |
8168de4c | 279 | --enable-bmpbutton use wxBitmapButton class" |
698dcdb6 | 280 | ac_help="$ac_help |
8168de4c | 281 | --enable-calendar use wxCalendarCtrl class" |
1e6feb95 | 282 | ac_help="$ac_help |
8168de4c | 283 | --enable-caret use wxCaret class" |
1e6feb95 | 284 | ac_help="$ac_help |
8168de4c | 285 | --enable-checkbox use wxCheckBox class" |
698dcdb6 | 286 | ac_help="$ac_help |
8168de4c | 287 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class" |
698dcdb6 | 288 | ac_help="$ac_help |
8168de4c | 289 | --enable-choice use wxChoice class" |
698dcdb6 | 290 | ac_help="$ac_help |
8168de4c | 291 | --enable-combobox use wxComboBox classes" |
698dcdb6 | 292 | ac_help="$ac_help |
8168de4c | 293 | --enable-gauge use wxGauge class" |
698dcdb6 | 294 | ac_help="$ac_help |
8168de4c | 295 | --enable-grid use wxGrid class" |
698dcdb6 | 296 | ac_help="$ac_help |
8168de4c | 297 | --enable-newgrid use new wxGrid class" |
698dcdb6 | 298 | ac_help="$ac_help |
8168de4c | 299 | --enable-imaglist use wxImageList class" |
698dcdb6 | 300 | ac_help="$ac_help |
8168de4c | 301 | --enable-listbox use wxListBox class" |
698dcdb6 | 302 | ac_help="$ac_help |
8168de4c | 303 | --enable-listctrl use wxListCtrl class" |
698dcdb6 | 304 | ac_help="$ac_help |
8168de4c | 305 | --enable-notebook use wxNotebook class" |
24176f2c GD |
306 | ac_help="$ac_help |
307 | --enable-propsheet use wxPropertySheet class" | |
698dcdb6 | 308 | ac_help="$ac_help |
8168de4c | 309 | --enable-radiobox use wxRadioBox class" |
698dcdb6 | 310 | ac_help="$ac_help |
8168de4c | 311 | --enable-radiobtn use wxRadioButton class" |
698dcdb6 | 312 | ac_help="$ac_help |
8168de4c | 313 | --enable-sash use wxSashWindow class" |
698dcdb6 | 314 | ac_help="$ac_help |
8168de4c | 315 | --enable-scrollbar use wxScrollBar class and scrollable windows" |
698dcdb6 | 316 | ac_help="$ac_help |
8168de4c | 317 | --enable-slider use wxSlider class" |
698dcdb6 | 318 | ac_help="$ac_help |
8168de4c | 319 | --enable-spinbtn use wxSpinButton class" |
698dcdb6 | 320 | ac_help="$ac_help |
8168de4c | 321 | --enable-spinctrl use wxSpinCtrl class" |
698dcdb6 | 322 | ac_help="$ac_help |
8168de4c | 323 | --enable-splitter use wxSplitterWindow class" |
698dcdb6 | 324 | ac_help="$ac_help |
8168de4c | 325 | --enable-statbmp use wxStaticBitmap class" |
698dcdb6 | 326 | ac_help="$ac_help |
8168de4c | 327 | --enable-statbox use wxStaticBox class" |
698dcdb6 | 328 | ac_help="$ac_help |
8168de4c | 329 | --enable-statline use wxStaticLine class" |
698dcdb6 | 330 | ac_help="$ac_help |
8168de4c | 331 | --enable-stattext use wxStaticText class" |
1e6feb95 | 332 | ac_help="$ac_help |
8168de4c | 333 | --enable-statusbar use wxStatusBar class" |
698dcdb6 | 334 | ac_help="$ac_help |
8168de4c | 335 | --enable-tabdialog use wxTabControl class" |
698dcdb6 | 336 | ac_help="$ac_help |
8168de4c | 337 | --enable-textctrl use wxTextCtrl class" |
1e6feb95 | 338 | ac_help="$ac_help |
8168de4c | 339 | --enable-togglebtn use wxToggleButton class" |
698dcdb6 | 340 | ac_help="$ac_help |
8168de4c | 341 | --enable-toolbar use wxToolBar class" |
698dcdb6 | 342 | ac_help="$ac_help |
8168de4c | 343 | --enable-tbarnative use native wxToolBar class" |
698dcdb6 | 344 | ac_help="$ac_help |
8168de4c | 345 | --enable-tbarsmpl use wxToolBarSimple class" |
698dcdb6 | 346 | ac_help="$ac_help |
8168de4c | 347 | --enable-treectrl use wxTreeCtrl class" |
9926e4a4 VZ |
348 | ac_help="$ac_help |
349 | --enable-tipwindow use wxTipWindow class" | |
9f41d601 RR |
350 | ac_help="$ac_help |
351 | --enable-popupwin use wxPopUpWindow class" | |
698dcdb6 | 352 | ac_help="$ac_help |
b3e8d00a | 353 | --enable-commondlg use all common dialogs" |
698dcdb6 | 354 | ac_help="$ac_help |
8168de4c | 355 | --enable-choicedlg use wxChoiceDialog" |
1e6feb95 | 356 | ac_help="$ac_help |
8168de4c | 357 | --enable-coldlg use wxColourDialog" |
1e6feb95 | 358 | ac_help="$ac_help |
8168de4c | 359 | --enable-filedlg use wxFileDialog" |
8db37e06 VZ |
360 | ac_help="$ac_help |
361 | --enable-finddlg use wxFindReplaceDialog" | |
1e6feb95 | 362 | ac_help="$ac_help |
8168de4c | 363 | --enable-fontdlg use wxFontDialog" |
1e6feb95 | 364 | ac_help="$ac_help |
8168de4c | 365 | --enable-dirdlg use wxDirDialog" |
698dcdb6 | 366 | ac_help="$ac_help |
8168de4c | 367 | --enable-msgdlg use wxMessageDialog" |
1e6feb95 | 368 | ac_help="$ac_help |
8168de4c | 369 | --enable-numberdlg use wxNumberEntryDialog" |
cbca9943 VZ |
370 | ac_help="$ac_help |
371 | --enable-splash use wxSplashScreen" | |
1e6feb95 | 372 | ac_help="$ac_help |
8168de4c | 373 | --enable-textdlg use wxTextDialog" |
698dcdb6 | 374 | ac_help="$ac_help |
8168de4c | 375 | --enable-tipdlg use startup tips" |
698dcdb6 | 376 | ac_help="$ac_help |
8168de4c | 377 | --enable-progressdlg use wxProgressDialog" |
b1f5d087 VZ |
378 | ac_help="$ac_help |
379 | --enable-wizarddlg use wxWizard" | |
698dcdb6 | 380 | ac_help="$ac_help |
8168de4c | 381 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes" |
1e6feb95 | 382 | ac_help="$ac_help |
8168de4c | 383 | --enable-miniframe use wxMiniFrame class" |
698dcdb6 | 384 | ac_help="$ac_help |
8168de4c | 385 | --enable-tooltips use wxToolTip class" |
698dcdb6 | 386 | ac_help="$ac_help |
8168de4c | 387 | --enable-splines use spline drawing code" |
698dcdb6 | 388 | ac_help="$ac_help |
8168de4c | 389 | --enable-validators use wxValidator and derived classes" |
698dcdb6 | 390 | ac_help="$ac_help |
8168de4c | 391 | --enable-busyinfo use wxBusyInfo" |
698dcdb6 | 392 | ac_help="$ac_help |
b3e8d00a | 393 | --enable-joystick use wxJoystick (Linux only)" |
698dcdb6 | 394 | ac_help="$ac_help |
8168de4c | 395 | --enable-metafiles use wxMetaFile (Windows only)" |
24fd6d87 VZ |
396 | ac_help="$ac_help |
397 | --enable-dragimage use wxDragImage" | |
edae8572 VZ |
398 | ac_help="$ac_help |
399 | --enable-palette use wxPalette class" | |
1e6feb95 | 400 | ac_help="$ac_help |
8168de4c | 401 | --enable-image use wxImage class" |
698dcdb6 | 402 | ac_help="$ac_help |
8168de4c | 403 | --enable-gif use gif images (GIF file format)" |
698dcdb6 | 404 | ac_help="$ac_help |
8168de4c | 405 | --enable-pcx use pcx images (PCX file format)" |
4b6b4dfc RR |
406 | ac_help="$ac_help |
407 | --enable-iff use iff images (IFF file format)" | |
698dcdb6 | 408 | ac_help="$ac_help |
8168de4c | 409 | --enable-pnm use pnm images (PNM file format)" |
698dcdb6 | 410 | ac_help="$ac_help |
8168de4c | 411 | --enable-xpm use xpm images (XPM file format)" |
658974ae VS |
412 | ac_help="$ac_help |
413 | --enable-icocur use Windows ICO and CUR formats" | |
698dcdb6 VZ |
414 | ac_help="$ac_help |
415 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
416 | ac_help="$ac_help | |
417 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
418 | ac_help="$ac_help | |
419 | --disable-gtktest Do not try to compile and run a test GTK program" | |
3f345b47 VZ |
420 | ac_help="$ac_help |
421 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
422 | ac_help="$ac_help | |
423 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
424 | ac_help="$ac_help | |
425 | --disable-gtktest Do not try to compile and run a test GTK program" | |
426 | ac_help="$ac_help | |
427 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
428 | ac_help="$ac_help | |
429 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
430 | ac_help="$ac_help | |
431 | --disable-gtktest Do not try to compile and run a test GTK program" | |
698dcdb6 VZ |
432 | ac_help="$ac_help |
433 | --with-x use the X Window System" | |
b040e242 VS |
434 | ac_help="$ac_help |
435 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib" | |
10f2d63a VZ |
436 | |
437 | # Initialize some variables set by options. | |
438 | # The variables have the same names as the options, with | |
439 | # dashes changed to underlines. | |
698dcdb6 VZ |
440 | build=NONE |
441 | cache_file=./config.cache | |
10f2d63a | 442 | exec_prefix=NONE |
698dcdb6 | 443 | host=NONE |
10f2d63a | 444 | no_create= |
698dcdb6 | 445 | nonopt=NONE |
10f2d63a VZ |
446 | no_recursion= |
447 | prefix=NONE | |
448 | program_prefix=NONE | |
449 | program_suffix=NONE | |
450 | program_transform_name=s,x,x, | |
451 | silent= | |
452 | site= | |
453 | srcdir= | |
698dcdb6 | 454 | target=NONE |
10f2d63a VZ |
455 | verbose= |
456 | x_includes=NONE | |
457 | x_libraries=NONE | |
458 | bindir='${exec_prefix}/bin' | |
459 | sbindir='${exec_prefix}/sbin' | |
460 | libexecdir='${exec_prefix}/libexec' | |
461 | datadir='${prefix}/share' | |
462 | sysconfdir='${prefix}/etc' | |
463 | sharedstatedir='${prefix}/com' | |
464 | localstatedir='${prefix}/var' | |
465 | libdir='${exec_prefix}/lib' | |
466 | includedir='${prefix}/include' | |
467 | oldincludedir='/usr/include' | |
468 | infodir='${prefix}/info' | |
469 | mandir='${prefix}/man' | |
470 | ||
698dcdb6 VZ |
471 | # Initialize some other variables. |
472 | subdirs= | |
473 | MFLAGS= MAKEFLAGS= | |
474 | SHELL=${CONFIG_SHELL-/bin/sh} | |
475 | # Maximum number of lines to put in a shell here document. | |
476 | ac_max_here_lines=12 | |
10f2d63a VZ |
477 | |
478 | ac_prev= | |
479 | for ac_option | |
480 | do | |
698dcdb6 | 481 | |
10f2d63a VZ |
482 | # If the previous option needs an argument, assign it. |
483 | if test -n "$ac_prev"; then | |
484 | eval "$ac_prev=\$ac_option" | |
485 | ac_prev= | |
486 | continue | |
487 | fi | |
488 | ||
698dcdb6 VZ |
489 | case "$ac_option" in |
490 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
491 | *) ac_optarg= ;; | |
492 | esac | |
10f2d63a VZ |
493 | |
494 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
495 | ||
698dcdb6 | 496 | case "$ac_option" in |
10f2d63a VZ |
497 | |
498 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
499 | ac_prev=bindir ;; | |
500 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
698dcdb6 | 501 | bindir="$ac_optarg" ;; |
10f2d63a VZ |
502 | |
503 | -build | --build | --buil | --bui | --bu) | |
698dcdb6 | 504 | ac_prev=build ;; |
10f2d63a | 505 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
698dcdb6 | 506 | build="$ac_optarg" ;; |
10f2d63a VZ |
507 | |
508 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
509 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
510 | ac_prev=cache_file ;; | |
511 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
512 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
698dcdb6 | 513 | cache_file="$ac_optarg" ;; |
10f2d63a VZ |
514 | |
515 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
516 | ac_prev=datadir ;; | |
517 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
518 | | --da=*) | |
698dcdb6 | 519 | datadir="$ac_optarg" ;; |
10f2d63a VZ |
520 | |
521 | -disable-* | --disable-*) | |
698dcdb6 | 522 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
10f2d63a | 523 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
524 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
525 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
526 | fi | |
527 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
528 | eval "enable_${ac_feature}=no" ;; | |
10f2d63a VZ |
529 | |
530 | -enable-* | --enable-*) | |
698dcdb6 | 531 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
10f2d63a | 532 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
533 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
534 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
535 | fi | |
536 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
537 | case "$ac_option" in | |
538 | *=*) ;; | |
10f2d63a VZ |
539 | *) ac_optarg=yes ;; |
540 | esac | |
698dcdb6 | 541 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
10f2d63a VZ |
542 | |
543 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
544 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
545 | | --exec | --exe | --ex) | |
546 | ac_prev=exec_prefix ;; | |
547 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
548 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
549 | | --exec=* | --exe=* | --ex=*) | |
698dcdb6 | 550 | exec_prefix="$ac_optarg" ;; |
10f2d63a VZ |
551 | |
552 | -gas | --gas | --ga | --g) | |
553 | # Obsolete; use --with-gas. | |
554 | with_gas=yes ;; | |
555 | ||
698dcdb6 VZ |
556 | -help | --help | --hel | --he) |
557 | # Omit some internal or obsolete options to make the list less imposing. | |
558 | # This message is too long to be a string in the A/UX 3.1 sh. | |
559 | cat << EOF | |
560 | Usage: configure [options] [host] | |
561 | Options: [defaults in brackets after descriptions] | |
562 | Configuration: | |
563 | --cache-file=FILE cache test results in FILE | |
564 | --help print this message | |
565 | --no-create do not create output files | |
566 | --quiet, --silent do not print \`checking...' messages | |
567 | --version print the version of autoconf that created configure | |
568 | Directory and file names: | |
569 | --prefix=PREFIX install architecture-independent files in PREFIX | |
570 | [$ac_default_prefix] | |
571 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
572 | [same as prefix] | |
573 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
574 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
575 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
576 | --datadir=DIR read-only architecture-independent data in DIR | |
577 | [PREFIX/share] | |
578 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
579 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
580 | [PREFIX/com] | |
581 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
582 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
583 | --includedir=DIR C header files in DIR [PREFIX/include] | |
584 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
585 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
586 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
587 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
588 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
589 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
590 | --program-transform-name=PROGRAM | |
591 | run sed PROGRAM on installed program names | |
592 | EOF | |
593 | cat << EOF | |
594 | Host type: | |
595 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
596 | --host=HOST configure for HOST [guessed] | |
597 | --target=TARGET configure for TARGET [TARGET=HOST] | |
598 | Features and packages: | |
599 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
600 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
601 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
602 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
603 | --x-includes=DIR X include files are in DIR | |
604 | --x-libraries=DIR X library files are in DIR | |
605 | EOF | |
606 | if test -n "$ac_help"; then | |
607 | echo "--enable and --with options recognized:$ac_help" | |
608 | fi | |
609 | exit 0 ;; | |
10f2d63a VZ |
610 | |
611 | -host | --host | --hos | --ho) | |
698dcdb6 | 612 | ac_prev=host ;; |
10f2d63a | 613 | -host=* | --host=* | --hos=* | --ho=*) |
698dcdb6 | 614 | host="$ac_optarg" ;; |
10f2d63a VZ |
615 | |
616 | -includedir | --includedir | --includedi | --included | --include \ | |
617 | | --includ | --inclu | --incl | --inc) | |
618 | ac_prev=includedir ;; | |
619 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
620 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
698dcdb6 | 621 | includedir="$ac_optarg" ;; |
10f2d63a VZ |
622 | |
623 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
624 | ac_prev=infodir ;; | |
625 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
698dcdb6 | 626 | infodir="$ac_optarg" ;; |
10f2d63a VZ |
627 | |
628 | -libdir | --libdir | --libdi | --libd) | |
629 | ac_prev=libdir ;; | |
630 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
698dcdb6 | 631 | libdir="$ac_optarg" ;; |
10f2d63a VZ |
632 | |
633 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
634 | | --libexe | --libex | --libe) | |
635 | ac_prev=libexecdir ;; | |
636 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
637 | | --libexe=* | --libex=* | --libe=*) | |
698dcdb6 | 638 | libexecdir="$ac_optarg" ;; |
10f2d63a VZ |
639 | |
640 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
641 | | --localstate | --localstat | --localsta | --localst \ | |
642 | | --locals | --local | --loca | --loc | --lo) | |
643 | ac_prev=localstatedir ;; | |
644 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
645 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
646 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
698dcdb6 | 647 | localstatedir="$ac_optarg" ;; |
10f2d63a VZ |
648 | |
649 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
650 | ac_prev=mandir ;; | |
651 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
698dcdb6 | 652 | mandir="$ac_optarg" ;; |
10f2d63a VZ |
653 | |
654 | -nfp | --nfp | --nf) | |
655 | # Obsolete; use --without-fp. | |
656 | with_fp=no ;; | |
657 | ||
658 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
659 | | --no-cr | --no-c) | |
660 | no_create=yes ;; | |
661 | ||
662 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
663 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
664 | no_recursion=yes ;; | |
665 | ||
666 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
667 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
668 | | --oldin | --oldi | --old | --ol | --o) | |
669 | ac_prev=oldincludedir ;; | |
670 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
671 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
672 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
698dcdb6 | 673 | oldincludedir="$ac_optarg" ;; |
10f2d63a VZ |
674 | |
675 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
676 | ac_prev=prefix ;; | |
677 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
698dcdb6 | 678 | prefix="$ac_optarg" ;; |
10f2d63a VZ |
679 | |
680 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
681 | | --program-pre | --program-pr | --program-p) | |
682 | ac_prev=program_prefix ;; | |
683 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
684 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
698dcdb6 | 685 | program_prefix="$ac_optarg" ;; |
10f2d63a VZ |
686 | |
687 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
688 | | --program-suf | --program-su | --program-s) | |
689 | ac_prev=program_suffix ;; | |
690 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
691 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
698dcdb6 | 692 | program_suffix="$ac_optarg" ;; |
10f2d63a VZ |
693 | |
694 | -program-transform-name | --program-transform-name \ | |
695 | | --program-transform-nam | --program-transform-na \ | |
696 | | --program-transform-n | --program-transform- \ | |
697 | | --program-transform | --program-transfor \ | |
698 | | --program-transfo | --program-transf \ | |
699 | | --program-trans | --program-tran \ | |
700 | | --progr-tra | --program-tr | --program-t) | |
701 | ac_prev=program_transform_name ;; | |
702 | -program-transform-name=* | --program-transform-name=* \ | |
703 | | --program-transform-nam=* | --program-transform-na=* \ | |
704 | | --program-transform-n=* | --program-transform-=* \ | |
705 | | --program-transform=* | --program-transfor=* \ | |
706 | | --program-transfo=* | --program-transf=* \ | |
707 | | --program-trans=* | --program-tran=* \ | |
708 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
698dcdb6 | 709 | program_transform_name="$ac_optarg" ;; |
10f2d63a VZ |
710 | |
711 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
712 | | -silent | --silent | --silen | --sile | --sil) | |
713 | silent=yes ;; | |
714 | ||
715 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
716 | ac_prev=sbindir ;; | |
717 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
718 | | --sbi=* | --sb=*) | |
698dcdb6 | 719 | sbindir="$ac_optarg" ;; |
10f2d63a VZ |
720 | |
721 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
722 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
723 | | --sharedst | --shareds | --shared | --share | --shar \ | |
724 | | --sha | --sh) | |
725 | ac_prev=sharedstatedir ;; | |
726 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
727 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
728 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
729 | | --sha=* | --sh=*) | |
698dcdb6 | 730 | sharedstatedir="$ac_optarg" ;; |
10f2d63a VZ |
731 | |
732 | -site | --site | --sit) | |
733 | ac_prev=site ;; | |
734 | -site=* | --site=* | --sit=*) | |
698dcdb6 | 735 | site="$ac_optarg" ;; |
10f2d63a VZ |
736 | |
737 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
738 | ac_prev=srcdir ;; | |
739 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
698dcdb6 | 740 | srcdir="$ac_optarg" ;; |
10f2d63a VZ |
741 | |
742 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
743 | | --syscon | --sysco | --sysc | --sys | --sy) | |
744 | ac_prev=sysconfdir ;; | |
745 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
746 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
698dcdb6 | 747 | sysconfdir="$ac_optarg" ;; |
10f2d63a VZ |
748 | |
749 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
698dcdb6 | 750 | ac_prev=target ;; |
10f2d63a | 751 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
698dcdb6 | 752 | target="$ac_optarg" ;; |
10f2d63a VZ |
753 | |
754 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
755 | verbose=yes ;; | |
756 | ||
698dcdb6 VZ |
757 | -version | --version | --versio | --versi | --vers) |
758 | echo "configure generated by autoconf version 2.13" | |
759 | exit 0 ;; | |
10f2d63a VZ |
760 | |
761 | -with-* | --with-*) | |
698dcdb6 | 762 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
10f2d63a | 763 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
764 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
765 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
766 | fi | |
10f2d63a | 767 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
698dcdb6 VZ |
768 | case "$ac_option" in |
769 | *=*) ;; | |
10f2d63a VZ |
770 | *) ac_optarg=yes ;; |
771 | esac | |
698dcdb6 | 772 | eval "with_${ac_package}='$ac_optarg'" ;; |
10f2d63a VZ |
773 | |
774 | -without-* | --without-*) | |
698dcdb6 | 775 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
10f2d63a | 776 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
777 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
778 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
779 | fi | |
780 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
781 | eval "with_${ac_package}=no" ;; | |
10f2d63a VZ |
782 | |
783 | --x) | |
784 | # Obsolete; use --with-x. | |
785 | with_x=yes ;; | |
786 | ||
787 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
788 | | --x-incl | --x-inc | --x-in | --x-i) | |
789 | ac_prev=x_includes ;; | |
790 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
791 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
698dcdb6 | 792 | x_includes="$ac_optarg" ;; |
10f2d63a VZ |
793 | |
794 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
795 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
796 | ac_prev=x_libraries ;; | |
797 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
798 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
698dcdb6 | 799 | x_libraries="$ac_optarg" ;; |
10f2d63a | 800 | |
698dcdb6 | 801 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
10f2d63a VZ |
802 | ;; |
803 | ||
804 | *) | |
698dcdb6 VZ |
805 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
806 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
807 | fi | |
808 | if test "x$nonopt" != xNONE; then | |
809 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
810 | fi | |
811 | nonopt="$ac_option" | |
10f2d63a VZ |
812 | ;; |
813 | ||
814 | esac | |
815 | done | |
816 | ||
817 | if test -n "$ac_prev"; then | |
698dcdb6 VZ |
818 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
819 | fi | |
820 | ||
821 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
822 | ||
823 | # File descriptor usage: | |
824 | # 0 standard input | |
825 | # 1 file creation | |
826 | # 2 errors and warnings | |
827 | # 3 some systems may open it to /dev/tty | |
828 | # 4 used on the Kubota Titan | |
829 | # 6 checking for... messages and results | |
830 | # 5 compiler messages saved in config.log | |
831 | if test "$silent" = yes; then | |
832 | exec 6>/dev/null | |
833 | else | |
834 | exec 6>&1 | |
10f2d63a | 835 | fi |
698dcdb6 VZ |
836 | exec 5>./config.log |
837 | ||
838 | echo "\ | |
839 | This file contains any messages produced by compilers while | |
840 | running configure, to aid debugging if configure makes a mistake. | |
841 | " 1>&5 | |
10f2d63a | 842 | |
698dcdb6 VZ |
843 | # Strip out --no-create and --no-recursion so they do not pile up. |
844 | # Also quote any args containing shell metacharacters. | |
845 | ac_configure_args= | |
846 | for ac_arg | |
10f2d63a | 847 | do |
698dcdb6 VZ |
848 | case "$ac_arg" in |
849 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
850 | | --no-cr | --no-c) ;; | |
851 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
852 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
853 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
854 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
855 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
10f2d63a VZ |
856 | esac |
857 | done | |
858 | ||
698dcdb6 VZ |
859 | # NLS nuisances. |
860 | # Only set these to C if already set. These must not be set unconditionally | |
861 | # because not all systems understand e.g. LANG=C (notably SCO). | |
862 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
863 | # Non-C LC_CTYPE values break the ctype check. | |
864 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
865 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
866 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
867 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
10f2d63a | 868 | |
698dcdb6 VZ |
869 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
870 | rm -rf conftest* confdefs.h | |
871 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
872 | echo > confdefs.h | |
10f2d63a | 873 | |
698dcdb6 VZ |
874 | # A filename unique to this package, relative to the directory that |
875 | # configure is in, which we can look for to find out if srcdir is correct. | |
876 | ac_unique_file=wx-config.in | |
10f2d63a VZ |
877 | |
878 | # Find the source files, if location was not specified. | |
879 | if test -z "$srcdir"; then | |
880 | ac_srcdir_defaulted=yes | |
881 | # Try the directory containing this script, then its parent. | |
882 | ac_prog=$0 | |
698dcdb6 | 883 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
10f2d63a VZ |
884 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
885 | srcdir=$ac_confdir | |
886 | if test ! -r $srcdir/$ac_unique_file; then | |
887 | srcdir=.. | |
888 | fi | |
889 | else | |
890 | ac_srcdir_defaulted=no | |
891 | fi | |
892 | if test ! -r $srcdir/$ac_unique_file; then | |
893 | if test "$ac_srcdir_defaulted" = yes; then | |
698dcdb6 | 894 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
10f2d63a | 895 | else |
698dcdb6 | 896 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
10f2d63a VZ |
897 | fi |
898 | fi | |
698dcdb6 | 899 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
10f2d63a VZ |
900 | |
901 | # Prefer explicitly selected file to automatically selected ones. | |
902 | if test -z "$CONFIG_SITE"; then | |
903 | if test "x$prefix" != xNONE; then | |
904 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
905 | else | |
906 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
907 | fi | |
908 | fi | |
909 | for ac_site_file in $CONFIG_SITE; do | |
910 | if test -r "$ac_site_file"; then | |
698dcdb6 | 911 | echo "loading site script $ac_site_file" |
10f2d63a VZ |
912 | . "$ac_site_file" |
913 | fi | |
914 | done | |
915 | ||
916 | if test -r "$cache_file"; then | |
698dcdb6 VZ |
917 | echo "loading cache $cache_file" |
918 | . $cache_file | |
10f2d63a | 919 | else |
698dcdb6 VZ |
920 | echo "creating cache $cache_file" |
921 | > $cache_file | |
10f2d63a VZ |
922 | fi |
923 | ||
924 | ac_ext=c | |
698dcdb6 | 925 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 926 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
927 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
928 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
929 | cross_compiling=$ac_cv_prog_cc_cross | |
930 | ||
931 | ac_exeext= | |
932 | ac_objext=o | |
933 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
934 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
935 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
936 | ac_n= ac_c=' | |
937 | ' ac_t=' ' | |
938 | else | |
939 | ac_n=-n ac_c= ac_t= | |
940 | fi | |
10f2d63a | 941 | else |
698dcdb6 | 942 | ac_n= ac_c='\c' ac_t= |
10f2d63a | 943 | fi |
698dcdb6 VZ |
944 | |
945 | ||
10f2d63a | 946 | |
7c66a493 VZ |
947 | ac_aux_dir= |
948 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
949 | if test -f $ac_dir/install-sh; then | |
950 | ac_aux_dir=$ac_dir | |
951 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
952 | break | |
953 | elif test -f $ac_dir/install.sh; then | |
954 | ac_aux_dir=$ac_dir | |
955 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
956 | break | |
957 | fi | |
958 | done | |
959 | if test -z "$ac_aux_dir"; then | |
698dcdb6 | 960 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
7c66a493 | 961 | fi |
698dcdb6 VZ |
962 | ac_config_guess=$ac_aux_dir/config.guess |
963 | ac_config_sub=$ac_aux_dir/config.sub | |
964 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
703e0a69 | 965 | |
698dcdb6 VZ |
966 | |
967 | # Do some error checking and defaulting for the host and target type. | |
968 | # The inputs are: | |
969 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
970 | # | |
971 | # The rules are: | |
972 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
973 | # same time. | |
974 | # 2. Host defaults to nonopt. | |
975 | # 3. If nonopt is not specified, then host defaults to the current host, | |
976 | # as determined by config.guess. | |
977 | # 4. Target and build default to nonopt. | |
978 | # 5. If nonopt is not specified, then target and build default to host. | |
7c66a493 VZ |
979 | |
980 | # The aliases save the names the user supplied, while $host etc. | |
981 | # will get canonicalized. | |
698dcdb6 VZ |
982 | case $host---$target---$nonopt in |
983 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
984 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
985 | esac | |
986 | ||
987 | ||
988 | # Make sure we can run config.sub. | |
989 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
990 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
991 | fi | |
992 | ||
993 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
cb61c62d | 994 | echo "configure:995: checking host system type" >&5 |
698dcdb6 VZ |
995 | |
996 | host_alias=$host | |
997 | case "$host_alias" in | |
998 | NONE) | |
999 | case $nonopt in | |
1000 | NONE) | |
1001 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
1002 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
1003 | fi ;; | |
1004 | *) host_alias=$nonopt ;; | |
1005 | esac ;; | |
1006 | esac | |
1007 | ||
1008 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
1009 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1010 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1011 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1012 | echo "$ac_t""$host" 1>&6 | |
1013 | ||
1014 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
cb61c62d | 1015 | echo "configure:1016: checking target system type" >&5 |
698dcdb6 VZ |
1016 | |
1017 | target_alias=$target | |
1018 | case "$target_alias" in | |
1019 | NONE) | |
1020 | case $nonopt in | |
1021 | NONE) target_alias=$host_alias ;; | |
1022 | *) target_alias=$nonopt ;; | |
1023 | esac ;; | |
1024 | esac | |
1025 | ||
1026 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
1027 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1028 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1029 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1030 | echo "$ac_t""$target" 1>&6 | |
1031 | ||
1032 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
cb61c62d | 1033 | echo "configure:1034: checking build system type" >&5 |
698dcdb6 VZ |
1034 | |
1035 | build_alias=$build | |
1036 | case "$build_alias" in | |
1037 | NONE) | |
1038 | case $nonopt in | |
1039 | NONE) build_alias=$host_alias ;; | |
1040 | *) build_alias=$nonopt ;; | |
1041 | esac ;; | |
1042 | esac | |
1043 | ||
1044 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
1045 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1046 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1047 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1048 | echo "$ac_t""$build" 1>&6 | |
1049 | ||
1050 | test "$host_alias" != "$target_alias" && | |
7c66a493 VZ |
1051 | test "$program_prefix$program_suffix$program_transform_name" = \ |
1052 | NONENONEs,x,x, && | |
1053 | program_prefix=${target_alias}- | |
1054 | ||
698dcdb6 VZ |
1055 | |
1056 | ||
10f2d63a | 1057 | WX_MAJOR_VERSION_NUMBER=2 |
37d403aa | 1058 | WX_MINOR_VERSION_NUMBER=3 |
a0d927d1 | 1059 | WX_RELEASE_NUMBER=3 |
10f2d63a | 1060 | |
10f2d63a | 1061 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER |
10f2d63a | 1062 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER |
6426998c | 1063 | |
978f1259 RL |
1064 | WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER |
1065 | ||
a0d927d1 | 1066 | WX_CURRENT=2 |
6426998c RL |
1067 | WX_REVISION=0 |
1068 | WX_AGE=0 | |
1069 | ||
698dcdb6 VZ |
1070 | |
1071 | ||
10f2d63a VZ |
1072 | USE_UNIX=1 |
1073 | USE_WIN32=0 | |
f9bc1684 | 1074 | USE_DOS=0 |
b12915c1 | 1075 | USE_BEOS=0 |
1216f52d | 1076 | USE_MAC=0 |
b12915c1 | 1077 | |
10f2d63a VZ |
1078 | USE_LINUX= |
1079 | USE_SGI= | |
1080 | USE_HPUX= | |
1081 | USE_SYSV= | |
1082 | USE_SVR4= | |
1083 | USE_AIX= | |
1084 | USE_SUN= | |
1085 | USE_SOLARIS= | |
1086 | USE_SUNOS= | |
1087 | USE_ALPHA= | |
1088 | USE_OSF= | |
1089 | USE_BSD= | |
f11bdd03 | 1090 | USE_DARWIN= |
10f2d63a | 1091 | USE_FREEBSD= |
95c8801c | 1092 | USE_OPENBSD= |
f6bcfd97 | 1093 | USE_NETBSD= |
10f2d63a VZ |
1094 | USE_VMS= |
1095 | USE_ULTRIX= | |
10f2d63a VZ |
1096 | USE_DATA_GENERAL= |
1097 | ||
ab9b9eab VZ |
1098 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
1099 | ||
3f345b47 VZ |
1100 | CPP_MT_FLAG=-D_REENTRANT |
1101 | ||
f79bd02d | 1102 | ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE X11" |
10f2d63a VZ |
1103 | |
1104 | DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1105 | DEFAULT_wxUSE_MAC=0 |
1106 | DEFAULT_wxUSE_MGL=0 | |
1725144d | 1107 | DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1108 | DEFAULT_wxUSE_MOTIF=0 |
1109 | DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1110 | DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1111 | DEFAULT_wxUSE_WINE=0 |
f79bd02d | 1112 | DEFAULT_wxUSE_X11=0 |
10f2d63a VZ |
1113 | |
1114 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1115 | DEFAULT_DEFAULT_wxUSE_MAC=0 |
1116 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1725144d | 1117 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1118 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 |
1119 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1120 | DEFAULT_DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1121 | DEFAULT_DEFAULT_wxUSE_WINE=0 |
f79bd02d | 1122 | DEFAULT_DEFAULT_wxUSE_X11=0 |
10f2d63a | 1123 | |
d6a55c4b | 1124 | PROGRAM_EXT= |
3a922bb4 | 1125 | SO_SUFFIX=so |
d6a55c4b | 1126 | |
10f2d63a VZ |
1127 | case "${host}" in |
1128 | *-hp-hpux* ) | |
1129 | USE_HPUX=1 | |
1130 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1131 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
3a922bb4 | 1132 | SO_SUFFIX=sl |
698dcdb6 | 1133 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1134 | #define __HPUX__ 1 |
1135 | EOF | |
1136 | ||
1137 | ;; | |
1138 | *-*-linux* ) | |
1139 | USE_LINUX=1 | |
698dcdb6 | 1140 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1141 | #define __LINUX__ 1 |
1142 | EOF | |
1143 | ||
1144 | TMP=`uname -m` | |
1145 | if test "x$TMP" = "xalpha"; then | |
1146 | USE_ALPHA=1 | |
698dcdb6 | 1147 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1148 | #define __ALPHA__ 1 |
1149 | EOF | |
1150 | ||
1151 | fi | |
1152 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1153 | ;; | |
1154 | *-*-irix5* | *-*-irix6* ) | |
1155 | USE_SGI=1 | |
1156 | USE_SVR4=1 | |
698dcdb6 | 1157 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1158 | #define __SGI__ 1 |
1159 | EOF | |
1160 | ||
698dcdb6 | 1161 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1162 | #define __SVR4__ 1 |
1163 | EOF | |
1164 | ||
1165 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1166 | ;; | |
1167 | *-*-solaris2* ) | |
1168 | USE_SUN=1 | |
1169 | USE_SOLARIS=1 | |
1170 | USE_SVR4=1 | |
698dcdb6 | 1171 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1172 | #define __SUN__ 1 |
1173 | EOF | |
1174 | ||
698dcdb6 | 1175 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1176 | #define __SOLARIS__ 1 |
1177 | EOF | |
1178 | ||
698dcdb6 | 1179 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1180 | #define __SVR4__ 1 |
1181 | EOF | |
1182 | ||
1183 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1184 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1185 | ;; |
1186 | *-*-sunos4* ) | |
1187 | USE_SUN=1 | |
1188 | USE_SUNOS=1 | |
1189 | USE_BSD=1 | |
698dcdb6 | 1190 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1191 | #define __SUN__ 1 |
1192 | EOF | |
1193 | ||
698dcdb6 | 1194 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1195 | #define __SUNOS__ 1 |
1196 | EOF | |
1197 | ||
698dcdb6 | 1198 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1199 | #define __BSD__ 1 |
1200 | EOF | |
1201 | ||
1202 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1203 | ;; | |
f6bcfd97 | 1204 | *-*-freebsd*) |
10f2d63a VZ |
1205 | USE_BSD=1 |
1206 | USE_FREEBSD=1 | |
3f345b47 | 1207 | CPP_MT_FLAG=-D_THREAD_SAFE |
698dcdb6 | 1208 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1209 | #define __FREEBSD__ 1 |
1210 | EOF | |
1211 | ||
698dcdb6 | 1212 | cat >> confdefs.h <<\EOF |
10f2d63a | 1213 | #define __BSD__ 1 |
95c8801c VS |
1214 | EOF |
1215 | ||
1216 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1217 | ;; | |
1218 | *-*-openbsd*) | |
1219 | USE_BSD=1 | |
1220 | USE_OPENBSD=1 | |
698dcdb6 | 1221 | cat >> confdefs.h <<\EOF |
95c8801c VS |
1222 | #define __FREEBSD__ 1 |
1223 | EOF | |
1224 | ||
698dcdb6 | 1225 | cat >> confdefs.h <<\EOF |
95c8801c | 1226 | #define __OPENBSD__ 1 |
f6bcfd97 BP |
1227 | EOF |
1228 | ||
1229 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1230 | ;; | |
1231 | *-*-netbsd*) | |
1232 | USE_BSD=1 | |
1233 | USE_NETBSD=1 | |
698dcdb6 | 1234 | cat >> confdefs.h <<\EOF |
f6bcfd97 BP |
1235 | #define __FREEBSD__ 1 |
1236 | EOF | |
1237 | ||
698dcdb6 | 1238 | cat >> confdefs.h <<\EOF |
f6bcfd97 | 1239 | #define __NETBSD__ 1 |
10f2d63a VZ |
1240 | EOF |
1241 | ||
1242 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1243 | ;; | |
1244 | *-*-osf* ) | |
1245 | USE_ALPHA=1 | |
1246 | USE_OSF=1 | |
698dcdb6 | 1247 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1248 | #define __ALPHA__ 1 |
1249 | EOF | |
1250 | ||
698dcdb6 | 1251 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1252 | #define __OSF__ 1 |
1253 | EOF | |
1254 | ||
1255 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1256 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1257 | ;; |
1258 | *-*-dgux5* ) | |
1259 | USE_ALPHA=1 | |
1260 | USE_SVR4=1 | |
698dcdb6 | 1261 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1262 | #define __ALPHA__ 1 |
1263 | EOF | |
1264 | ||
698dcdb6 | 1265 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1266 | #define __SVR4__ 1 |
1267 | EOF | |
1268 | ||
1269 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1270 | ;; | |
1271 | *-*-sysv5* ) | |
1272 | USE_SYSV=1 | |
1273 | USE_SVR4=1 | |
698dcdb6 | 1274 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1275 | #define __SYSV__ 1 |
1276 | EOF | |
1277 | ||
698dcdb6 | 1278 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1279 | #define __SVR4__ 1 |
1280 | EOF | |
1281 | ||
1282 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1283 | ;; | |
1284 | *-*-aix* ) | |
1285 | USE_AIX=1 | |
1286 | USE_SYSV=1 | |
1287 | USE_SVR4=1 | |
698dcdb6 | 1288 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1289 | #define __AIX__ 1 |
1290 | EOF | |
1291 | ||
698dcdb6 | 1292 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1293 | #define __SYSV__ 1 |
1294 | EOF | |
1295 | ||
698dcdb6 | 1296 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1297 | #define __SVR4__ 1 |
1298 | EOF | |
1299 | ||
1300 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1301 | ;; | |
1302 | ||
1c8183e2 | 1303 | *-*-cygwin* | *-*-mingw32* ) |
10f2d63a VZ |
1304 | USE_UNIX=0 |
1305 | USE_WIN32=1 | |
3a922bb4 | 1306 | SO_SUFFIX=dll |
698dcdb6 | 1307 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1308 | #define __WIN32__ 1 |
1309 | EOF | |
1310 | ||
698dcdb6 | 1311 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1312 | #define __WIN95__ 1 |
1313 | EOF | |
1314 | ||
698dcdb6 | 1315 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1316 | #define __WINDOWS__ 1 |
1317 | EOF | |
1318 | ||
698dcdb6 | 1319 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1320 | #define __GNUWIN32__ 1 |
1321 | EOF | |
1322 | ||
698dcdb6 | 1323 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1324 | #define STRICT 1 |
1325 | EOF | |
1326 | ||
698dcdb6 | 1327 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1328 | #define WINVER 0x0400 |
1329 | EOF | |
1330 | ||
cf27ef00 | 1331 | PROGRAM_EXT=".exe" |
7b7a7637 | 1332 | RESCOMP=windres |
10f2d63a VZ |
1333 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1334 | ;; | |
1335 | ||
f9bc1684 VS |
1336 | *-pc-msdosdjgpp ) |
1337 | USE_UNIX=0 | |
1338 | USE_DOS=1 | |
1339 | cat >> confdefs.h <<\EOF | |
1340 | #define __DOS__ 1 | |
1341 | EOF | |
1342 | ||
1343 | PROGRAM_EXT=".exe" | |
1344 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
1345 | DEFAULT_DEFAULT_wxUSE_SHARED=0 | |
1346 | ;; | |
1347 | ||
6fa882bd | 1348 | *-pc-os2_emx | *-pc-os2-emx ) |
698dcdb6 | 1349 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1350 | #define __EMX__ 1 |
1351 | EOF | |
1352 | ||
cf27ef00 | 1353 | PROGRAM_EXT=".exe" |
e07802fc | 1354 | DEFAULT_DEFAULT_wxUSE_PM=1 |
10f2d63a VZ |
1355 | ;; |
1356 | ||
d08b457b GD |
1357 | powerpc-*-darwin* ) |
1358 | USE_BSD=1 | |
f11bdd03 | 1359 | USE_DARWIN=1 |
3f345b47 | 1360 | CPP_MT_FLAG= |
3a922bb4 | 1361 | SO_SUFFIX=dylib |
698dcdb6 | 1362 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1363 | #define __BSD__ 1 |
b4085ce6 GD |
1364 | EOF |
1365 | ||
698dcdb6 | 1366 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1367 | #define __DARWIN__ 1 |
d08b457b GD |
1368 | EOF |
1369 | ||
1370 | cat >> confdefs.h <<\EOF | |
1371 | #define __POWERPC__ 1 | |
b4085ce6 GD |
1372 | EOF |
1373 | ||
1374 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1375 | ;; | |
1376 | ||
b12915c1 VZ |
1377 | *-*-beos* ) |
1378 | USE_BEOS=1 | |
698dcdb6 | 1379 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
1380 | #define __BEOS__ 1 |
1381 | EOF | |
1382 | ||
1383 | ;; | |
1384 | ||
10f2d63a | 1385 | *) |
698dcdb6 | 1386 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } |
10f2d63a VZ |
1387 | esac |
1388 | ||
1389 | if test "$USE_UNIX" = 1 ; then | |
b12915c1 | 1390 | wxUSE_UNIX=yes |
698dcdb6 | 1391 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1392 | #define __UNIX__ 1 |
1393 | EOF | |
1394 | ||
10f2d63a VZ |
1395 | fi |
1396 | ||
2389f33b VZ |
1397 | if test "$USE_LINUX" = 1; then |
1398 | echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6 | |
cb61c62d | 1399 | echo "configure:1400: checking for glibc 2.1 or later" >&5 |
2389f33b VZ |
1400 | if eval "test \"`echo '$''{'wx_lib_glibc21'+set}'`\" = set"; then |
1401 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1402 | else | |
a72a4bfa VS |
1403 | |
1404 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 1405 | #line 1406 "configure" |
2389f33b VZ |
1406 | #include "confdefs.h" |
1407 | #include <features.h> | |
1408 | int main() { | |
1409 | ||
1410 | #if !__GLIBC_PREREQ(2, 1) | |
1411 | #error not glibc2.1 | |
1412 | #endif | |
1413 | ||
1414 | ; return 0; } | |
1415 | EOF | |
cb61c62d | 1416 | if { (eval echo configure:1417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2389f33b VZ |
1417 | rm -rf conftest* |
1418 | ||
1419 | wx_lib_glibc21=yes | |
1420 | ||
1421 | else | |
1422 | echo "configure: failed program was:" >&5 | |
1423 | cat conftest.$ac_ext >&5 | |
1424 | rm -rf conftest* | |
1425 | ||
1426 | wx_lib_glibc21=no | |
1427 | ||
1428 | ||
1429 | fi | |
1430 | rm -f conftest* | |
1431 | ||
1432 | fi | |
1433 | ||
1434 | echo "$ac_t""$wx_lib_glibc21" 1>&6 | |
2389f33b VZ |
1435 | if test "$wx_lib_glibc21" = "yes"; then |
1436 | cat >> confdefs.h <<\EOF | |
1437 | #define wxHAVE_GLIBC2 1 | |
1438 | EOF | |
1439 | ||
1440 | fi | |
1441 | fi | |
10f2d63a | 1442 | |
1e487827 | 1443 | |
1e487827 | 1444 | |
6232543b | 1445 | |
10f2d63a VZ |
1446 | wx_arg_cache_file="configarg.cache" |
1447 | echo "loading argument cache $wx_arg_cache_file" | |
1448 | rm -f ${wx_arg_cache_file}.tmp | |
1449 | touch ${wx_arg_cache_file}.tmp | |
1450 | touch ${wx_arg_cache_file} | |
698dcdb6 | 1451 | |
10f2d63a VZ |
1452 | |
1453 | DEBUG_CONFIGURE=0 | |
1454 | if test $DEBUG_CONFIGURE = 1; then | |
1e6feb95 VZ |
1455 | DEFAULT_wxUSE_UNIVERSAL=no |
1456 | ||
10f2d63a VZ |
1457 | DEFAULT_wxUSE_THREADS=yes |
1458 | ||
1459 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1460 | DEFAULT_wxUSE_SONAME=no |
1e6feb95 | 1461 | DEFAULT_wxUSE_OPTIMISE=no |
10f2d63a VZ |
1462 | DEFAULT_wxUSE_PROFILE=no |
1463 | DEFAULT_wxUSE_NO_DEPS=no | |
f676c7ff MB |
1464 | DEFAULT_wxUSE_NO_RTTI=yes |
1465 | DEFAULT_wxUSE_NO_EXCEPTIONS=yes | |
10f2d63a VZ |
1466 | DEFAULT_wxUSE_PERMISSIVE=no |
1467 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1468 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1469 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1470 | DEFAULT_wxUSE_MEM_TRACING=no | |
1471 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1472 | DEFAULT_wxUSE_DMALLOC=no | |
a7ae7112 | 1473 | DEFAULT_wxUSE_PRECOMP=no |
10f2d63a VZ |
1474 | DEFAULT_wxUSE_APPLE_IEEE=no |
1475 | ||
1476 | DEFAULT_wxUSE_LOG=yes | |
1e6feb95 VZ |
1477 | DEFAULT_wxUSE_LOGWINDOW=no |
1478 | DEFAULT_wxUSE_LOGGUI=no | |
69d27ff7 | 1479 | DEFAULT_wxUSE_LOGDIALOG=no |
10f2d63a VZ |
1480 | |
1481 | DEFAULT_wxUSE_GUI=yes | |
1e6feb95 | 1482 | DEFAULT_wxUSE_CONTROLS=no |
10f2d63a | 1483 | |
3e44f09d | 1484 | DEFAULT_wxUSE_REGEX=no |
10f2d63a VZ |
1485 | DEFAULT_wxUSE_ZLIB=no |
1486 | DEFAULT_wxUSE_LIBPNG=no | |
1487 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 1488 | DEFAULT_wxUSE_LIBTIFF=no |
10f2d63a | 1489 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 1490 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1491 | |
eb4efbdc | 1492 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
4f3c5f06 | 1493 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
10f2d63a | 1494 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1495 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
1496 | DEFAULT_wxUSE_DATETIME=no | |
1497 | DEFAULT_wxUSE_TIMEDATE=no | |
1498 | DEFAULT_wxUSE_TIMER=no | |
1499 | DEFAULT_wxUSE_STOPWATCH=no | |
10f2d63a | 1500 | DEFAULT_wxUSE_FILE=no |
1e6feb95 | 1501 | DEFAULT_wxUSE_FFILE=no |
a3a584a7 | 1502 | DEFAULT_wxUSE_TEXTBUFFER=no |
10f2d63a | 1503 | DEFAULT_wxUSE_TEXTFILE=no |
10f2d63a VZ |
1504 | DEFAULT_wxUSE_WAVE=no |
1505 | DEFAULT_wxUSE_INTL=no | |
1506 | DEFAULT_wxUSE_CONFIG=no | |
1e6feb95 | 1507 | DEFAULT_wxUSE_FONTMAP=no |
10f2d63a VZ |
1508 | DEFAULT_wxUSE_STREAMS=no |
1509 | DEFAULT_wxUSE_SOCKETS=no | |
1510 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
10f2d63a | 1511 | DEFAULT_wxUSE_JOYSTICK=no |
6bff71f8 | 1512 | DEFAULT_wxUSE_DYNLIB_CLASS=no |
0b9ab0bd | 1513 | DEFAULT_wxUSE_DYNAMIC_LOADER=no |
10f2d63a | 1514 | DEFAULT_wxUSE_LONGLONG=no |
e8f65ba6 | 1515 | DEFAULT_wxUSE_GEOMETRY=no |
10f2d63a VZ |
1516 | |
1517 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1518 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1519 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1520 | ||
1521 | DEFAULT_wxUSE_X_RESOURCES=no | |
1522 | DEFAULT_wxUSE_CLIPBOARD=no | |
1523 | DEFAULT_wxUSE_TOOLTIPS=no | |
1524 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
24fd6d87 | 1525 | DEFAULT_wxUSE_DRAGIMAGE=no |
10f2d63a VZ |
1526 | DEFAULT_wxUSE_SPLINES=no |
1527 | ||
1528 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1529 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1530 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1531 | ||
1532 | DEFAULT_wxUSE_PROLOGIO=no | |
1533 | DEFAULT_wxUSE_RESOURCES=no | |
1534 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1535 | DEFAULT_wxUSE_IPC=no | |
1536 | DEFAULT_wxUSE_HELP=no | |
29fd3c0c | 1537 | DEFAULT_wxUSE_MS_HTML_HELP=no |
3379ed37 | 1538 | DEFAULT_wxUSE_WXHTML_HELP=no |
24176f2c | 1539 | DEFAULT_wxUSE_TREELAYOUT=no |
10f2d63a | 1540 | DEFAULT_wxUSE_METAFILE=no |
1e6feb95 | 1541 | DEFAULT_wxUSE_MIMETYPE=no |
4cdb0ab0 VS |
1542 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no |
1543 | DEFAULT_wxUSE_PROTOCOL=no | |
1544 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
1545 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
1546 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
1547 | DEFAULT_wxUSE_URL=no | |
1548 | ||
10f2d63a | 1549 | DEFAULT_wxUSE_COMMONDLGS=no |
1e6feb95 VZ |
1550 | DEFAULT_wxUSE_CHOICEDLG=no |
1551 | DEFAULT_wxUSE_COLOURDLG=no | |
10f2d63a | 1552 | DEFAULT_wxUSE_DIRDLG=no |
1e6feb95 | 1553 | DEFAULT_wxUSE_FILEDLG=no |
8db37e06 | 1554 | DEFAULT_wxUSE_FINDREPLDLG=no |
1e6feb95 VZ |
1555 | DEFAULT_wxUSE_FONTDLG=no |
1556 | DEFAULT_wxUSE_MSGDLG=no | |
1557 | DEFAULT_wxUSE_NUMBERDLG=no | |
10f2d63a | 1558 | DEFAULT_wxUSE_TEXTDLG=no |
cbca9943 | 1559 | DEFAULT_wxUSE_SPLASH=no |
10f2d63a VZ |
1560 | DEFAULT_wxUSE_STARTUP_TIPS=no |
1561 | DEFAULT_wxUSE_PROGRESSDLG=no | |
b1f5d087 VZ |
1562 | DEFAULT_wxUSE_WIZARDDLG=no |
1563 | ||
1e6feb95 | 1564 | DEFAULT_wxUSE_MENUS=no |
10f2d63a VZ |
1565 | DEFAULT_wxUSE_MINIFRAME=no |
1566 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 1567 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
1568 | DEFAULT_wxUSE_FS_INET=no |
1569 | DEFAULT_wxUSE_FS_ZIP=no | |
1570 | DEFAULT_wxUSE_BUSYINFO=no | |
1571 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1e6feb95 | 1572 | DEFAULT_wxUSE_VALIDATORS=no |
10f2d63a VZ |
1573 | |
1574 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 | 1575 | DEFAULT_wxUSE_BUTTON=no |
10f2d63a | 1576 | DEFAULT_wxUSE_BMPBUTTON=no |
1e6feb95 VZ |
1577 | DEFAULT_wxUSE_CALCTRL=no |
1578 | DEFAULT_wxUSE_CARET=no | |
10f2d63a VZ |
1579 | DEFAULT_wxUSE_CHECKBOX=no |
1580 | DEFAULT_wxUSE_CHECKLST=no | |
1e6feb95 | 1581 | DEFAULT_wxUSE_CHOICE=no |
10f2d63a VZ |
1582 | DEFAULT_wxUSE_COMBOBOX=no |
1583 | DEFAULT_wxUSE_GAUGE=no | |
1584 | DEFAULT_wxUSE_GRID=no | |
1585 | DEFAULT_wxUSE_NEW_GRID=no | |
1586 | DEFAULT_wxUSE_IMAGLIST=no | |
1587 | DEFAULT_wxUSE_LISTBOX=no | |
1588 | DEFAULT_wxUSE_LISTCTRL=no | |
1589 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 1590 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
1591 | DEFAULT_wxUSE_RADIOBOX=no |
1592 | DEFAULT_wxUSE_RADIOBTN=no | |
1593 | DEFAULT_wxUSE_SASH=no | |
1594 | DEFAULT_wxUSE_SCROLLBAR=no | |
1595 | DEFAULT_wxUSE_SLIDER=no | |
1596 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 1597 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
1598 | DEFAULT_wxUSE_SPLITTER=no |
1599 | DEFAULT_wxUSE_STATBMP=no | |
1600 | DEFAULT_wxUSE_STATBOX=no | |
1601 | DEFAULT_wxUSE_STATLINE=no | |
1e6feb95 | 1602 | DEFAULT_wxUSE_STATTEXT=no |
10f2d63a VZ |
1603 | DEFAULT_wxUSE_STATUSBAR=yes |
1604 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1605 | DEFAULT_wxUSE_TEXTCTRL=no |
1db8dc4a | 1606 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 1607 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
1608 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
1609 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a | 1610 | DEFAULT_wxUSE_TREECTRL=no |
9f41d601 | 1611 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 1612 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
1613 | |
1614 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 1615 | DEFAULT_wxUSE_UNICODE_MSLU=no |
10f2d63a VZ |
1616 | DEFAULT_wxUSE_WCSRTOMBS=no |
1617 | ||
edae8572 | 1618 | DEFAULT_wxUSE_PALETTE=no |
0046ff7c | 1619 | DEFAULT_wxUSE_IMAGE=no |
10f2d63a VZ |
1620 | DEFAULT_wxUSE_GIF=no |
1621 | DEFAULT_wxUSE_PCX=no | |
1622 | DEFAULT_wxUSE_PNM=no | |
4b6b4dfc | 1623 | DEFAULT_wxUSE_IFF=no |
0046ff7c | 1624 | DEFAULT_wxUSE_XPM=no |
658974ae | 1625 | DEFAULT_wxUSE_ICO_CUR=no |
10f2d63a | 1626 | else |
1e6feb95 VZ |
1627 | DEFAULT_wxUSE_UNIVERSAL=no |
1628 | ||
10f2d63a VZ |
1629 | DEFAULT_wxUSE_THREADS=yes |
1630 | ||
1631 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1632 | DEFAULT_wxUSE_SONAME=no |
10f2d63a VZ |
1633 | DEFAULT_wxUSE_OPTIMISE=yes |
1634 | DEFAULT_wxUSE_PROFILE=no | |
1635 | DEFAULT_wxUSE_NO_DEPS=no | |
f676c7ff MB |
1636 | DEFAULT_wxUSE_NO_RTTI=yes |
1637 | DEFAULT_wxUSE_NO_EXCEPTIONS=yes | |
10f2d63a VZ |
1638 | DEFAULT_wxUSE_PERMISSIVE=no |
1639 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1640 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1641 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1642 | DEFAULT_wxUSE_MEM_TRACING=no | |
1643 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1644 | DEFAULT_wxUSE_DMALLOC=no | |
a7ae7112 | 1645 | DEFAULT_wxUSE_PRECOMP=no |
10f2d63a VZ |
1646 | DEFAULT_wxUSE_APPLE_IEEE=yes |
1647 | ||
1648 | DEFAULT_wxUSE_LOG=yes | |
d73be714 VZ |
1649 | DEFAULT_wxUSE_LOGWINDOW=yes |
1650 | DEFAULT_wxUSE_LOGGUI=yes | |
69d27ff7 | 1651 | DEFAULT_wxUSE_LOGDIALOG=yes |
10f2d63a VZ |
1652 | |
1653 | DEFAULT_wxUSE_GUI=yes | |
1654 | ||
831b3152 | 1655 | DEFAULT_wxUSE_REGEX=yes |
10f2d63a VZ |
1656 | DEFAULT_wxUSE_ZLIB=yes |
1657 | DEFAULT_wxUSE_LIBPNG=yes | |
1658 | DEFAULT_wxUSE_LIBJPEG=yes | |
b47c832e | 1659 | DEFAULT_wxUSE_LIBTIFF=yes |
16b52fa1 | 1660 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 1661 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1662 | |
eb4efbdc | 1663 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
4f3c5f06 | 1664 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
10f2d63a | 1665 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1666 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
1667 | DEFAULT_wxUSE_DATETIME=yes | |
1668 | DEFAULT_wxUSE_TIMEDATE=no | |
1669 | DEFAULT_wxUSE_TIMER=yes | |
1670 | DEFAULT_wxUSE_STOPWATCH=yes | |
10f2d63a | 1671 | DEFAULT_wxUSE_FILE=yes |
1e6feb95 | 1672 | DEFAULT_wxUSE_FFILE=yes |
a3a584a7 | 1673 | DEFAULT_wxUSE_TEXTBUFFER=yes |
10f2d63a | 1674 | DEFAULT_wxUSE_TEXTFILE=yes |
10f2d63a VZ |
1675 | DEFAULT_wxUSE_WAVE=no |
1676 | DEFAULT_wxUSE_INTL=yes | |
1677 | DEFAULT_wxUSE_CONFIG=yes | |
1e6feb95 | 1678 | DEFAULT_wxUSE_FONTMAP=yes |
10f2d63a VZ |
1679 | DEFAULT_wxUSE_STREAMS=yes |
1680 | DEFAULT_wxUSE_SOCKETS=yes | |
1681 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
10f2d63a | 1682 | DEFAULT_wxUSE_JOYSTICK=yes |
6bff71f8 | 1683 | DEFAULT_wxUSE_DYNLIB_CLASS=yes |
466367be | 1684 | DEFAULT_wxUSE_DYNAMIC_LOADER=no |
b685cd9b | 1685 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 1686 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
1687 | |
1688 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1689 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1690 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1691 | ||
1692 | DEFAULT_wxUSE_X_RESOURCES=no | |
1693 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1694 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1695 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
24fd6d87 | 1696 | DEFAULT_wxUSE_DRAGIMAGE=yes |
10f2d63a VZ |
1697 | DEFAULT_wxUSE_SPLINES=yes |
1698 | ||
1699 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1700 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1701 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1702 | ||
1703 | DEFAULT_wxUSE_PROLOGIO=yes | |
1704 | DEFAULT_wxUSE_RESOURCES=yes | |
1705 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
1706 | DEFAULT_wxUSE_IPC=yes | |
1707 | DEFAULT_wxUSE_HELP=yes | |
29fd3c0c | 1708 | DEFAULT_wxUSE_MS_HTML_HELP=yes |
3379ed37 | 1709 | DEFAULT_wxUSE_WXHTML_HELP=yes |
24176f2c | 1710 | DEFAULT_wxUSE_TREELAYOUT=yes |
10f2d63a | 1711 | DEFAULT_wxUSE_METAFILE=yes |
1e6feb95 | 1712 | DEFAULT_wxUSE_MIMETYPE=yes |
3e44f09d | 1713 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
4cdb0ab0 VS |
1714 | DEFAULT_wxUSE_PROTOCOL=yes |
1715 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
1716 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
1717 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
1718 | DEFAULT_wxUSE_URL=yes | |
10f2d63a VZ |
1719 | |
1720 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1e6feb95 VZ |
1721 | DEFAULT_wxUSE_CHOICEDLG=yes |
1722 | DEFAULT_wxUSE_COLOURDLG=yes | |
10f2d63a | 1723 | DEFAULT_wxUSE_DIRDLG=yes |
1e6feb95 | 1724 | DEFAULT_wxUSE_FILEDLG=yes |
8db37e06 | 1725 | DEFAULT_wxUSE_FINDREPLDLG=yes |
1e6feb95 VZ |
1726 | DEFAULT_wxUSE_FONTDLG=yes |
1727 | DEFAULT_wxUSE_MSGDLG=yes | |
1728 | DEFAULT_wxUSE_NUMBERDLG=yes | |
10f2d63a | 1729 | DEFAULT_wxUSE_TEXTDLG=yes |
cbca9943 | 1730 | DEFAULT_wxUSE_SPLASH=yes |
10f2d63a VZ |
1731 | DEFAULT_wxUSE_STARTUP_TIPS=yes |
1732 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
f33f19dd VZ |
1733 | DEFAULT_wxUSE_WIZARDDLG=yes |
1734 | ||
1e6feb95 | 1735 | DEFAULT_wxUSE_MENUS=yes |
10f2d63a VZ |
1736 | DEFAULT_wxUSE_MINIFRAME=yes |
1737 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 1738 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
1739 | DEFAULT_wxUSE_FS_INET=yes |
1740 | DEFAULT_wxUSE_FS_ZIP=yes | |
1741 | DEFAULT_wxUSE_BUSYINFO=yes | |
1742 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1743 | DEFAULT_wxUSE_VALIDATORS=yes | |
1744 | ||
1745 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 | 1746 | DEFAULT_wxUSE_BUTTON=yes |
10f2d63a | 1747 | DEFAULT_wxUSE_BMPBUTTON=yes |
1e6feb95 VZ |
1748 | DEFAULT_wxUSE_CALCTRL=yes |
1749 | DEFAULT_wxUSE_CARET=yes | |
10f2d63a VZ |
1750 | DEFAULT_wxUSE_CHECKBOX=yes |
1751 | DEFAULT_wxUSE_CHECKLST=yes | |
1752 | DEFAULT_wxUSE_CHOICE=yes | |
1753 | DEFAULT_wxUSE_COMBOBOX=yes | |
1754 | DEFAULT_wxUSE_GAUGE=yes | |
1755 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 1756 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
1757 | DEFAULT_wxUSE_IMAGLIST=yes |
1758 | DEFAULT_wxUSE_LISTBOX=yes | |
1759 | DEFAULT_wxUSE_LISTCTRL=yes | |
1760 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 1761 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
1762 | DEFAULT_wxUSE_RADIOBOX=yes |
1763 | DEFAULT_wxUSE_RADIOBTN=yes | |
1764 | DEFAULT_wxUSE_SASH=yes | |
1765 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1766 | DEFAULT_wxUSE_SLIDER=yes | |
1767 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 1768 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
1769 | DEFAULT_wxUSE_SPLITTER=yes |
1770 | DEFAULT_wxUSE_STATBMP=yes | |
1771 | DEFAULT_wxUSE_STATBOX=yes | |
1772 | DEFAULT_wxUSE_STATLINE=yes | |
1e6feb95 | 1773 | DEFAULT_wxUSE_STATTEXT=yes |
10f2d63a VZ |
1774 | DEFAULT_wxUSE_STATUSBAR=yes |
1775 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1776 | DEFAULT_wxUSE_TEXTCTRL=yes |
1db8dc4a | 1777 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 1778 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
1779 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
1780 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a | 1781 | DEFAULT_wxUSE_TREECTRL=yes |
9f41d601 | 1782 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 1783 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
1784 | |
1785 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 1786 | DEFAULT_wxUSE_UNICODE_MSLU=yes |
10f2d63a VZ |
1787 | DEFAULT_wxUSE_WCSRTOMBS=no |
1788 | ||
edae8572 | 1789 | DEFAULT_wxUSE_PALETTE=yes |
0046ff7c | 1790 | DEFAULT_wxUSE_IMAGE=yes |
10f2d63a VZ |
1791 | DEFAULT_wxUSE_GIF=yes |
1792 | DEFAULT_wxUSE_PCX=yes | |
cc0e8480 | 1793 | DEFAULT_wxUSE_IFF=no |
10f2d63a | 1794 | DEFAULT_wxUSE_PNM=yes |
0046ff7c | 1795 | DEFAULT_wxUSE_XPM=yes |
658974ae | 1796 | DEFAULT_wxUSE_ICO_CUR=yes |
10f2d63a VZ |
1797 | fi |
1798 | ||
698dcdb6 VZ |
1799 | |
1800 | ||
10f2d63a VZ |
1801 | for toolkit in `echo $ALL_TOOLKITS`; do |
1802 | LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}` | |
1803 | if test "x$LINE" != x ; then | |
1804 | has_toolkit_in_cache=1 | |
1805 | eval "DEFAULT_$LINE" | |
1806 | eval "CACHE_$toolkit=1" | |
1807 | fi | |
1808 | done | |
1809 | ||
698dcdb6 VZ |
1810 | |
1811 | ||
1812 | echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6 | |
cb61c62d | 1813 | echo "configure:1814: checking for --enable-gui" >&5 |
10f2d63a VZ |
1814 | no_cache=0 |
1815 | # Check whether --enable-gui or --disable-gui was given. | |
1816 | if test "${enable_gui+set}" = set; then | |
1817 | enableval="$enable_gui" | |
698dcdb6 | 1818 | |
10f2d63a VZ |
1819 | if test "$enableval" = yes; then |
1820 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1821 | else | |
1822 | ac_cv_use_gui='wxUSE_GUI=no' | |
1823 | fi | |
698dcdb6 | 1824 | |
10f2d63a | 1825 | else |
698dcdb6 | 1826 | |
10f2d63a VZ |
1827 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` |
1828 | if test "x$LINE" != x ; then | |
1829 | eval "DEFAULT_$LINE" | |
1830 | else | |
1831 | no_cache=1 | |
1832 | fi | |
1833 | ||
1834 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
698dcdb6 VZ |
1835 | |
1836 | fi | |
10f2d63a VZ |
1837 | |
1838 | ||
1839 | eval "$ac_cv_use_gui" | |
1840 | if test "$no_cache" != 1; then | |
1841 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1842 | fi | |
1843 | ||
1844 | if test "$wxUSE_GUI" = yes; then | |
698dcdb6 | 1845 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 1846 | else |
698dcdb6 | 1847 | echo "$ac_t""no" 1>&6 |
10f2d63a | 1848 | fi |
698dcdb6 | 1849 | |
10f2d63a | 1850 | |
b12915c1 | 1851 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a | 1852 | |
1e6feb95 VZ |
1853 | |
1854 | echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6 | |
cb61c62d | 1855 | echo "configure:1856: checking for --enable-universal" >&5 |
1e6feb95 VZ |
1856 | no_cache=0 |
1857 | # Check whether --enable-universal or --disable-universal was given. | |
1858 | if test "${enable_universal+set}" = set; then | |
1859 | enableval="$enable_universal" | |
1860 | ||
1861 | if test "$enableval" = yes; then | |
1862 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
1863 | else | |
1864 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
1865 | fi | |
1866 | ||
1867 | else | |
1868 | ||
1869 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
1870 | if test "x$LINE" != x ; then | |
1871 | eval "DEFAULT_$LINE" | |
1872 | else | |
1873 | no_cache=1 | |
1874 | fi | |
1875 | ||
1876 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
1877 | ||
1878 | fi | |
1879 | ||
1880 | ||
1881 | eval "$ac_cv_use_universal" | |
1882 | if test "$no_cache" != 1; then | |
1883 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
1884 | fi | |
1885 | ||
1886 | if test "$wxUSE_UNIVERSAL" = yes; then | |
1887 | echo "$ac_t""yes" 1>&6 | |
1888 | else | |
1889 | echo "$ac_t""no" 1>&6 | |
1890 | fi | |
1891 | ||
10f2d63a VZ |
1892 | # Check whether --with-gtk or --without-gtk was given. |
1893 | if test "${with_gtk+set}" = set; then | |
1894 | withval="$with_gtk" | |
1895 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1896 | fi |
10f2d63a VZ |
1897 | |
1898 | # Check whether --with-motif or --without-motif was given. | |
1899 | if test "${with_motif+set}" = set; then | |
1900 | withval="$with_motif" | |
1901 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1902 | fi |
10f2d63a | 1903 | |
b4085ce6 GD |
1904 | # Check whether --with-mac or --without-mac was given. |
1905 | if test "${with_mac+set}" = set; then | |
1906 | withval="$with_mac" | |
1907 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
698dcdb6 | 1908 | fi |
b4085ce6 | 1909 | |
10f2d63a VZ |
1910 | # Check whether --with-wine or --without-wine was given. |
1911 | if test "${with_wine+set}" = set; then | |
1912 | withval="$with_wine" | |
1913 | wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1914 | fi |
10f2d63a | 1915 | |
77e13408 RL |
1916 | # Check whether --with-msw or --without-msw was given. |
1917 | if test "${with_msw+set}" = set; then | |
1918 | withval="$with_msw" | |
1919 | wxUSE_MSW="$withval" CACHE_MSW TOOLKIT_GIVEN=1 | |
698dcdb6 | 1920 | fi |
10f2d63a | 1921 | |
e07802fc VZ |
1922 | # Check whether --with-pm or --without-pm was given. |
1923 | if test "${with_pm+set}" = set; then | |
1924 | withval="$with_pm" | |
1925 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
698dcdb6 VZ |
1926 | fi |
1927 | ||
1e6feb95 VZ |
1928 | # Check whether --with-mgl or --without-mgl was given. |
1929 | if test "${with_mgl+set}" = set; then | |
1930 | withval="$with_mgl" | |
1931 | wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
1932 | fi | |
1933 | ||
1725144d RR |
1934 | # Check whether --with-microwin or --without-microwin was given. |
1935 | if test "${with_microwin+set}" = set; then | |
1936 | withval="$with_microwin" | |
1937 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
1938 | fi | |
1939 | ||
f79bd02d JS |
1940 | # Check whether --with-x11 or --without-x11 was given. |
1941 | if test "${with_x11+set}" = set; then | |
1942 | withval="$with_x11" | |
1943 | wxUSE_X11="$withval" CACHE_X11=1 TOOLKIT_GIVEN=1 | |
1944 | fi | |
1945 | ||
10f2d63a | 1946 | |
8168de4c VZ |
1947 | # Check whether --enable-gtk2 or --disable-gtk2 was given. |
1948 | if test "${enable_gtk2+set}" = set; then | |
1949 | enableval="$enable_gtk2" | |
1950 | wxUSE_GTK2=1 | |
10f2d63a | 1951 | else |
8168de4c | 1952 | wxUSE_GTK2=0 |
698dcdb6 VZ |
1953 | fi |
1954 | ||
703e0a69 | 1955 | |
1e487827 | 1956 | |
698dcdb6 | 1957 | echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6 |
cb61c62d | 1958 | echo "configure:1959: checking for --with-libpng" >&5 |
698dcdb6 VZ |
1959 | no_cache=0 |
1960 | # Check whether --with-libpng or --without-libpng was given. | |
b12915c1 VZ |
1961 | if test "${with_libpng+set}" = set; then |
1962 | withval="$with_libpng" | |
698dcdb6 | 1963 | |
10f2d63a | 1964 | if test "$withval" = yes; then |
b12915c1 | 1965 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 1966 | elif test "$withval" = no; then |
b12915c1 | 1967 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
1968 | elif test "$withval" = sys; then |
1969 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
4f14bcd8 GD |
1970 | elif test "$withval" = builtin; then |
1971 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
422107f9 | 1972 | else |
4f14bcd8 | 1973 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 1974 | fi |
698dcdb6 | 1975 | |
10f2d63a | 1976 | else |
698dcdb6 | 1977 | |
b12915c1 | 1978 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1979 | if test "x$LINE" != x ; then |
1980 | eval "DEFAULT_$LINE" | |
1981 | else | |
1982 | no_cache=1 | |
1983 | fi | |
1984 | ||
b12915c1 | 1985 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
698dcdb6 VZ |
1986 | |
1987 | fi | |
10f2d63a VZ |
1988 | |
1989 | ||
b12915c1 | 1990 | eval "$ac_cv_use_libpng" |
10f2d63a | 1991 | if test "$no_cache" != 1; then |
b12915c1 | 1992 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1993 | fi |
1994 | ||
b12915c1 | 1995 | if test "$wxUSE_LIBPNG" = yes; then |
698dcdb6 | 1996 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1997 | elif test "$wxUSE_LIBPNG" = no; then |
698dcdb6 | 1998 | echo "$ac_t""no" 1>&6 |
422107f9 | 1999 | elif test "$wxUSE_LIBPNG" = sys; then |
698dcdb6 | 2000 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2001 | elif test "$wxUSE_LIBPNG" = builtin; then |
2002 | echo "$ac_t""builtin version" 1>&6 | |
422107f9 | 2003 | else |
4f14bcd8 | 2004 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2005 | fi |
698dcdb6 | 2006 | |
10f2d63a | 2007 | |
698dcdb6 | 2008 | echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6 |
cb61c62d | 2009 | echo "configure:2010: checking for --with-libjpeg" >&5 |
10f2d63a | 2010 | no_cache=0 |
698dcdb6 | 2011 | # Check whether --with-libjpeg or --without-libjpeg was given. |
b12915c1 VZ |
2012 | if test "${with_libjpeg+set}" = set; then |
2013 | withval="$with_libjpeg" | |
698dcdb6 | 2014 | |
10f2d63a | 2015 | if test "$withval" = yes; then |
b12915c1 | 2016 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 2017 | elif test "$withval" = no; then |
b12915c1 | 2018 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
2019 | elif test "$withval" = sys; then |
2020 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
4f14bcd8 GD |
2021 | elif test "$withval" = builtin; then |
2022 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
422107f9 | 2023 | else |
4f14bcd8 | 2024 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2025 | fi |
698dcdb6 | 2026 | |
10f2d63a | 2027 | else |
698dcdb6 | 2028 | |
b12915c1 | 2029 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2030 | if test "x$LINE" != x ; then |
2031 | eval "DEFAULT_$LINE" | |
2032 | else | |
2033 | no_cache=1 | |
2034 | fi | |
2035 | ||
b12915c1 | 2036 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
698dcdb6 VZ |
2037 | |
2038 | fi | |
10f2d63a VZ |
2039 | |
2040 | ||
b12915c1 | 2041 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 2042 | if test "$no_cache" != 1; then |
b12915c1 | 2043 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2044 | fi |
2045 | ||
b12915c1 | 2046 | if test "$wxUSE_LIBJPEG" = yes; then |
698dcdb6 | 2047 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2048 | elif test "$wxUSE_LIBJPEG" = no; then |
698dcdb6 | 2049 | echo "$ac_t""no" 1>&6 |
422107f9 | 2050 | elif test "$wxUSE_LIBJPEG" = sys; then |
698dcdb6 | 2051 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2052 | elif test "$wxUSE_LIBJPEG" = builtin; then |
2053 | echo "$ac_t""builtin version" 1>&6 | |
422107f9 | 2054 | else |
4f14bcd8 | 2055 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2056 | fi |
698dcdb6 | 2057 | |
10f2d63a | 2058 | |
698dcdb6 | 2059 | echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6 |
cb61c62d | 2060 | echo "configure:2061: checking for --with-libtiff" >&5 |
10f2d63a | 2061 | no_cache=0 |
698dcdb6 | 2062 | # Check whether --with-libtiff or --without-libtiff was given. |
b12915c1 VZ |
2063 | if test "${with_libtiff+set}" = set; then |
2064 | withval="$with_libtiff" | |
698dcdb6 | 2065 | |
10f2d63a | 2066 | if test "$withval" = yes; then |
b12915c1 | 2067 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 2068 | elif test "$withval" = no; then |
b12915c1 | 2069 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
2070 | elif test "$withval" = sys; then |
2071 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
4f14bcd8 GD |
2072 | elif test "$withval" = builtin; then |
2073 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
0dcf9893 | 2074 | else |
4f14bcd8 | 2075 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2076 | fi |
698dcdb6 | 2077 | |
10f2d63a | 2078 | else |
698dcdb6 | 2079 | |
b12915c1 | 2080 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
2081 | if test "x$LINE" != x ; then |
2082 | eval "DEFAULT_$LINE" | |
2083 | else | |
2084 | no_cache=1 | |
2085 | fi | |
2086 | ||
b12915c1 | 2087 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
698dcdb6 VZ |
2088 | |
2089 | fi | |
10f2d63a VZ |
2090 | |
2091 | ||
b12915c1 | 2092 | eval "$ac_cv_use_libtiff" |
10f2d63a | 2093 | if test "$no_cache" != 1; then |
b12915c1 | 2094 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2095 | fi |
2096 | ||
b12915c1 | 2097 | if test "$wxUSE_LIBTIFF" = yes; then |
698dcdb6 | 2098 | echo "$ac_t""yes" 1>&6 |
0dcf9893 | 2099 | elif test "$wxUSE_LIBTIFF" = no; then |
698dcdb6 | 2100 | echo "$ac_t""no" 1>&6 |
0dcf9893 | 2101 | elif test "$wxUSE_LIBTIFF" = sys; then |
698dcdb6 | 2102 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2103 | elif test "$wxUSE_LIBTIFF" = builtin; then |
2104 | echo "$ac_t""builtin version" 1>&6 | |
0dcf9893 | 2105 | else |
4f14bcd8 | 2106 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2107 | fi |
698dcdb6 | 2108 | |
10f2d63a | 2109 | |
698dcdb6 | 2110 | echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6 |
cb61c62d | 2111 | echo "configure:2112: checking for --with-opengl" >&5 |
10f2d63a | 2112 | no_cache=0 |
698dcdb6 | 2113 | # Check whether --with-opengl or --without-opengl was given. |
b12915c1 VZ |
2114 | if test "${with_opengl+set}" = set; then |
2115 | withval="$with_opengl" | |
698dcdb6 | 2116 | |
10f2d63a | 2117 | if test "$withval" = yes; then |
b12915c1 | 2118 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 2119 | else |
b12915c1 | 2120 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a | 2121 | fi |
698dcdb6 | 2122 | |
10f2d63a | 2123 | else |
698dcdb6 | 2124 | |
b12915c1 | 2125 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
2126 | if test "x$LINE" != x ; then |
2127 | eval "DEFAULT_$LINE" | |
2128 | else | |
2129 | no_cache=1 | |
2130 | fi | |
2131 | ||
b12915c1 | 2132 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
698dcdb6 VZ |
2133 | |
2134 | fi | |
10f2d63a VZ |
2135 | |
2136 | ||
b12915c1 | 2137 | eval "$ac_cv_use_opengl" |
10f2d63a | 2138 | if test "$no_cache" != 1; then |
b12915c1 | 2139 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2140 | fi |
2141 | ||
b12915c1 | 2142 | if test "$wxUSE_OPENGL" = yes; then |
698dcdb6 | 2143 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2144 | else |
698dcdb6 | 2145 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2146 | fi |
698dcdb6 | 2147 | |
10f2d63a | 2148 | |
b12915c1 VZ |
2149 | fi |
2150 | ||
1e487827 | 2151 | |
698dcdb6 | 2152 | echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6 |
cb61c62d | 2153 | echo "configure:2154: checking for --with-dmalloc" >&5 |
698dcdb6 VZ |
2154 | no_cache=0 |
2155 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
b12915c1 VZ |
2156 | if test "${with_dmalloc+set}" = set; then |
2157 | withval="$with_dmalloc" | |
698dcdb6 | 2158 | |
c7a2bf27 | 2159 | if test "$withval" = yes; then |
b12915c1 | 2160 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 2161 | else |
b12915c1 | 2162 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 | 2163 | fi |
698dcdb6 | 2164 | |
c7a2bf27 | 2165 | else |
698dcdb6 | 2166 | |
b12915c1 | 2167 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
2168 | if test "x$LINE" != x ; then |
2169 | eval "DEFAULT_$LINE" | |
2170 | else | |
2171 | no_cache=1 | |
2172 | fi | |
2173 | ||
b12915c1 | 2174 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
698dcdb6 VZ |
2175 | |
2176 | fi | |
c7a2bf27 RR |
2177 | |
2178 | ||
b12915c1 | 2179 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 2180 | if test "$no_cache" != 1; then |
b12915c1 | 2181 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
2182 | fi |
2183 | ||
b12915c1 | 2184 | if test "$wxUSE_DMALLOC" = yes; then |
698dcdb6 | 2185 | echo "$ac_t""yes" 1>&6 |
c7a2bf27 | 2186 | else |
698dcdb6 | 2187 | echo "$ac_t""no" 1>&6 |
c7a2bf27 | 2188 | fi |
698dcdb6 | 2189 | |
c7a2bf27 | 2190 | |
3e44f09d | 2191 | echo $ac_n "checking for --with-regex""... $ac_c" 1>&6 |
cb61c62d | 2192 | echo "configure:2193: checking for --with-regex" >&5 |
3e44f09d VZ |
2193 | no_cache=0 |
2194 | # Check whether --with-regex or --without-regex was given. | |
2195 | if test "${with_regex+set}" = set; then | |
2196 | withval="$with_regex" | |
2197 | ||
2198 | if test "$withval" = yes; then | |
2199 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
2200 | elif test "$withval" = no; then | |
2201 | ac_cv_use_regex='wxUSE_REGEX=no' | |
2202 | elif test "$withval" = sys; then | |
2203 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
4f14bcd8 GD |
2204 | elif test "$withval" = builtin; then |
2205 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3e44f09d | 2206 | else |
4f14bcd8 | 2207 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d VZ |
2208 | fi |
2209 | ||
2210 | else | |
2211 | ||
2212 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` | |
2213 | if test "x$LINE" != x ; then | |
2214 | eval "DEFAULT_$LINE" | |
2215 | else | |
2216 | no_cache=1 | |
2217 | fi | |
2218 | ||
2219 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
2220 | ||
2221 | fi | |
2222 | ||
2223 | ||
2224 | eval "$ac_cv_use_regex" | |
2225 | if test "$no_cache" != 1; then | |
2226 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
2227 | fi | |
2228 | ||
2229 | if test "$wxUSE_REGEX" = yes; then | |
2230 | echo "$ac_t""yes" 1>&6 | |
2231 | elif test "$wxUSE_REGEX" = no; then | |
2232 | echo "$ac_t""no" 1>&6 | |
2233 | elif test "$wxUSE_REGEX" = sys; then | |
2234 | echo "$ac_t""system version" 1>&6 | |
4f14bcd8 GD |
2235 | elif test "$wxUSE_REGEX" = builtin; then |
2236 | echo "$ac_t""builtin version" 1>&6 | |
3e44f09d | 2237 | else |
4f14bcd8 | 2238 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d VZ |
2239 | fi |
2240 | ||
2241 | ||
698dcdb6 | 2242 | echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6 |
cb61c62d | 2243 | echo "configure:2244: checking for --with-zlib" >&5 |
10f2d63a | 2244 | no_cache=0 |
698dcdb6 | 2245 | # Check whether --with-zlib or --without-zlib was given. |
b12915c1 VZ |
2246 | if test "${with_zlib+set}" = set; then |
2247 | withval="$with_zlib" | |
698dcdb6 | 2248 | |
10f2d63a | 2249 | if test "$withval" = yes; then |
b12915c1 | 2250 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 2251 | elif test "$withval" = no; then |
b12915c1 | 2252 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
2253 | elif test "$withval" = sys; then |
2254 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
4f14bcd8 GD |
2255 | elif test "$withval" = builtin; then |
2256 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
422107f9 | 2257 | else |
4f14bcd8 | 2258 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2259 | fi |
698dcdb6 | 2260 | |
10f2d63a | 2261 | else |
698dcdb6 | 2262 | |
b12915c1 | 2263 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
2264 | if test "x$LINE" != x ; then |
2265 | eval "DEFAULT_$LINE" | |
2266 | else | |
2267 | no_cache=1 | |
2268 | fi | |
2269 | ||
b12915c1 | 2270 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
698dcdb6 VZ |
2271 | |
2272 | fi | |
10f2d63a VZ |
2273 | |
2274 | ||
b12915c1 | 2275 | eval "$ac_cv_use_zlib" |
10f2d63a | 2276 | if test "$no_cache" != 1; then |
b12915c1 | 2277 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2278 | fi |
2279 | ||
b12915c1 | 2280 | if test "$wxUSE_ZLIB" = yes; then |
698dcdb6 | 2281 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2282 | elif test "$wxUSE_ZLIB" = no; then |
698dcdb6 | 2283 | echo "$ac_t""no" 1>&6 |
422107f9 | 2284 | elif test "$wxUSE_ZLIB" = sys; then |
698dcdb6 | 2285 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2286 | elif test "$wxUSE_ZLIB" = builtin; then |
2287 | echo "$ac_t""builtin version" 1>&6 | |
422107f9 | 2288 | else |
4f14bcd8 | 2289 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2290 | fi |
698dcdb6 | 2291 | |
10f2d63a | 2292 | |
698dcdb6 | 2293 | echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6 |
cb61c62d | 2294 | echo "configure:2295: checking for --with-odbc" >&5 |
10f2d63a | 2295 | no_cache=0 |
698dcdb6 | 2296 | # Check whether --with-odbc or --without-odbc was given. |
10f2d63a VZ |
2297 | if test "${with_odbc+set}" = set; then |
2298 | withval="$with_odbc" | |
698dcdb6 | 2299 | |
10f2d63a VZ |
2300 | if test "$withval" = yes; then |
2301 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
2302 | else | |
2303 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
2304 | fi | |
698dcdb6 | 2305 | |
10f2d63a | 2306 | else |
698dcdb6 | 2307 | |
10f2d63a VZ |
2308 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` |
2309 | if test "x$LINE" != x ; then | |
2310 | eval "DEFAULT_$LINE" | |
2311 | else | |
2312 | no_cache=1 | |
2313 | fi | |
2314 | ||
2315 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
698dcdb6 VZ |
2316 | |
2317 | fi | |
10f2d63a VZ |
2318 | |
2319 | ||
2320 | eval "$ac_cv_use_odbc" | |
2321 | if test "$no_cache" != 1; then | |
2322 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
2323 | fi | |
2324 | ||
2325 | if test "$wxUSE_ODBC" = yes; then | |
698dcdb6 | 2326 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2327 | else |
698dcdb6 | 2328 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2329 | fi |
698dcdb6 VZ |
2330 | |
2331 | ||
10f2d63a | 2332 | |
698dcdb6 | 2333 | |
698dcdb6 | 2334 | echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6 |
cb61c62d | 2335 | echo "configure:2336: checking for --enable-shared" >&5 |
10f2d63a VZ |
2336 | no_cache=0 |
2337 | # Check whether --enable-shared or --disable-shared was given. | |
2338 | if test "${enable_shared+set}" = set; then | |
2339 | enableval="$enable_shared" | |
698dcdb6 | 2340 | |
10f2d63a VZ |
2341 | if test "$enableval" = yes; then |
2342 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
2343 | else | |
2344 | ac_cv_use_shared='wxUSE_SHARED=no' | |
2345 | fi | |
698dcdb6 | 2346 | |
10f2d63a | 2347 | else |
698dcdb6 | 2348 | |
10f2d63a VZ |
2349 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` |
2350 | if test "x$LINE" != x ; then | |
2351 | eval "DEFAULT_$LINE" | |
2352 | else | |
2353 | no_cache=1 | |
2354 | fi | |
2355 | ||
2356 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
698dcdb6 VZ |
2357 | |
2358 | fi | |
10f2d63a VZ |
2359 | |
2360 | ||
2361 | eval "$ac_cv_use_shared" | |
2362 | if test "$no_cache" != 1; then | |
2363 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
2364 | fi | |
2365 | ||
2366 | if test "$wxUSE_SHARED" = yes; then | |
698dcdb6 | 2367 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2368 | else |
698dcdb6 | 2369 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2370 | fi |
698dcdb6 | 2371 | |
10f2d63a | 2372 | |
3a922bb4 | 2373 | echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6 |
cb61c62d | 2374 | echo "configure:2375: checking for --enable-soname" >&5 |
00cf1208 | 2375 | no_cache=0 |
3a922bb4 RL |
2376 | # Check whether --enable-soname or --disable-soname was given. |
2377 | if test "${enable_soname+set}" = set; then | |
2378 | enableval="$enable_soname" | |
698dcdb6 | 2379 | |
00cf1208 | 2380 | if test "$enableval" = yes; then |
3a922bb4 | 2381 | ac_cv_use_soname='wxUSE_SONAME=yes' |
00cf1208 | 2382 | else |
3a922bb4 | 2383 | ac_cv_use_soname='wxUSE_SONAME=no' |
00cf1208 | 2384 | fi |
698dcdb6 | 2385 | |
00cf1208 | 2386 | else |
698dcdb6 | 2387 | |
3a922bb4 | 2388 | LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}` |
00cf1208 RR |
2389 | if test "x$LINE" != x ; then |
2390 | eval "DEFAULT_$LINE" | |
2391 | else | |
2392 | no_cache=1 | |
2393 | fi | |
2394 | ||
3a922bb4 | 2395 | ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME |
698dcdb6 VZ |
2396 | |
2397 | fi | |
00cf1208 RR |
2398 | |
2399 | ||
3a922bb4 | 2400 | eval "$ac_cv_use_soname" |
00cf1208 | 2401 | if test "$no_cache" != 1; then |
3a922bb4 | 2402 | echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp |
00cf1208 RR |
2403 | fi |
2404 | ||
3a922bb4 | 2405 | if test "$wxUSE_SONAME" = yes; then |
698dcdb6 | 2406 | echo "$ac_t""yes" 1>&6 |
00cf1208 | 2407 | else |
698dcdb6 | 2408 | echo "$ac_t""no" 1>&6 |
00cf1208 | 2409 | fi |
698dcdb6 | 2410 | |
00cf1208 | 2411 | |
698dcdb6 | 2412 | echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6 |
cb61c62d | 2413 | echo "configure:2414: checking for --enable-optimise" >&5 |
10f2d63a VZ |
2414 | no_cache=0 |
2415 | # Check whether --enable-optimise or --disable-optimise was given. | |
2416 | if test "${enable_optimise+set}" = set; then | |
2417 | enableval="$enable_optimise" | |
698dcdb6 | 2418 | |
10f2d63a VZ |
2419 | if test "$enableval" = yes; then |
2420 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
2421 | else | |
2422 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
2423 | fi | |
698dcdb6 | 2424 | |
10f2d63a | 2425 | else |
698dcdb6 | 2426 | |
10f2d63a VZ |
2427 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` |
2428 | if test "x$LINE" != x ; then | |
2429 | eval "DEFAULT_$LINE" | |
2430 | else | |
2431 | no_cache=1 | |
2432 | fi | |
2433 | ||
2434 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
698dcdb6 VZ |
2435 | |
2436 | fi | |
10f2d63a VZ |
2437 | |
2438 | ||
2439 | eval "$ac_cv_use_optimise" | |
2440 | if test "$no_cache" != 1; then | |
2441 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
2442 | fi | |
2443 | ||
2444 | if test "$wxUSE_OPTIMISE" = yes; then | |
698dcdb6 | 2445 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2446 | else |
698dcdb6 | 2447 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2448 | fi |
698dcdb6 | 2449 | |
10f2d63a | 2450 | |
698dcdb6 | 2451 | echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6 |
cb61c62d | 2452 | echo "configure:2453: checking for --enable-debug" >&5 |
10f2d63a VZ |
2453 | no_cache=0 |
2454 | # Check whether --enable-debug or --disable-debug was given. | |
2455 | if test "${enable_debug+set}" = set; then | |
2456 | enableval="$enable_debug" | |
698dcdb6 | 2457 | |
10f2d63a VZ |
2458 | if test "$enableval" = yes; then |
2459 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
2460 | else | |
2461 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
2462 | fi | |
698dcdb6 | 2463 | |
10f2d63a | 2464 | else |
698dcdb6 | 2465 | |
10f2d63a VZ |
2466 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` |
2467 | if test "x$LINE" != x ; then | |
2468 | eval "DEFAULT_$LINE" | |
2469 | else | |
2470 | no_cache=1 | |
2471 | fi | |
2472 | ||
2473 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
698dcdb6 VZ |
2474 | |
2475 | fi | |
10f2d63a VZ |
2476 | |
2477 | ||
2478 | eval "$ac_cv_use_debug" | |
2479 | if test "$no_cache" != 1; then | |
2480 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
2481 | fi | |
2482 | ||
2483 | if test "$wxUSE_DEBUG" = yes; then | |
698dcdb6 | 2484 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2485 | else |
698dcdb6 | 2486 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2487 | fi |
698dcdb6 | 2488 | |
10f2d63a | 2489 | |
683dccda GD |
2490 | |
2491 | echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6 | |
cb61c62d | 2492 | echo "configure:2493: checking for --enable-precomp" >&5 |
683dccda GD |
2493 | no_cache=0 |
2494 | # Check whether --enable-precomp or --disable-precomp was given. | |
2495 | if test "${enable_precomp+set}" = set; then | |
2496 | enableval="$enable_precomp" | |
2497 | ||
2498 | if test "$enableval" = yes; then | |
2499 | ac_cv_use_precomp='wxUSE_PRECOMP=yes' | |
2500 | else | |
2501 | ac_cv_use_precomp='wxUSE_PRECOMP=no' | |
2502 | fi | |
2503 | ||
2504 | else | |
2505 | ||
2506 | LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}` | |
2507 | if test "x$LINE" != x ; then | |
2508 | eval "DEFAULT_$LINE" | |
2509 | else | |
2510 | no_cache=1 | |
2511 | fi | |
2512 | ||
2513 | ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP | |
2514 | ||
2515 | fi | |
2516 | ||
2517 | ||
2518 | eval "$ac_cv_use_precomp" | |
2519 | if test "$no_cache" != 1; then | |
2520 | echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp | |
2521 | fi | |
2522 | ||
2523 | if test "$wxUSE_PRECOMP" = yes; then | |
2524 | echo "$ac_t""yes" 1>&6 | |
2525 | else | |
2526 | echo "$ac_t""no" 1>&6 | |
2527 | fi | |
2528 | ||
2529 | ||
10f2d63a VZ |
2530 | if test "$wxUSE_DEBUG" = "yes"; then |
2531 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2532 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2533 | elif test "$wxUSE_DEBUG" = "no"; then | |
2534 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2535 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2536 | fi | |
2537 | ||
698dcdb6 VZ |
2538 | |
2539 | echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6 | |
cb61c62d | 2540 | echo "configure:2541: checking for --enable-debug_flag" >&5 |
10f2d63a VZ |
2541 | no_cache=0 |
2542 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
2543 | if test "${enable_debug_flag+set}" = set; then | |
2544 | enableval="$enable_debug_flag" | |
698dcdb6 | 2545 | |
10f2d63a VZ |
2546 | if test "$enableval" = yes; then |
2547 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
2548 | else | |
2549 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
2550 | fi | |
698dcdb6 | 2551 | |
10f2d63a | 2552 | else |
698dcdb6 | 2553 | |
10f2d63a VZ |
2554 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` |
2555 | if test "x$LINE" != x ; then | |
2556 | eval "DEFAULT_$LINE" | |
2557 | else | |
2558 | no_cache=1 | |
2559 | fi | |
2560 | ||
2561 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
698dcdb6 VZ |
2562 | |
2563 | fi | |
10f2d63a VZ |
2564 | |
2565 | ||
2566 | eval "$ac_cv_use_debug_flag" | |
2567 | if test "$no_cache" != 1; then | |
2568 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
2569 | fi | |
2570 | ||
2571 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
698dcdb6 | 2572 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2573 | else |
698dcdb6 | 2574 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2575 | fi |
698dcdb6 | 2576 | |
10f2d63a | 2577 | |
698dcdb6 | 2578 | echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6 |
cb61c62d | 2579 | echo "configure:2580: checking for --enable-debug_info" >&5 |
10f2d63a VZ |
2580 | no_cache=0 |
2581 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2582 | if test "${enable_debug_info+set}" = set; then | |
2583 | enableval="$enable_debug_info" | |
698dcdb6 | 2584 | |
10f2d63a VZ |
2585 | if test "$enableval" = yes; then |
2586 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2587 | else | |
2588 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2589 | fi | |
698dcdb6 | 2590 | |
10f2d63a | 2591 | else |
698dcdb6 | 2592 | |
10f2d63a VZ |
2593 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` |
2594 | if test "x$LINE" != x ; then | |
2595 | eval "DEFAULT_$LINE" | |
2596 | else | |
2597 | no_cache=1 | |
2598 | fi | |
2599 | ||
2600 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
698dcdb6 VZ |
2601 | |
2602 | fi | |
10f2d63a VZ |
2603 | |
2604 | ||
2605 | eval "$ac_cv_use_debug_info" | |
2606 | if test "$no_cache" != 1; then | |
2607 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2608 | fi | |
2609 | ||
2610 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
698dcdb6 | 2611 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2612 | else |
698dcdb6 | 2613 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2614 | fi |
698dcdb6 | 2615 | |
10f2d63a | 2616 | |
698dcdb6 | 2617 | echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6 |
cb61c62d | 2618 | echo "configure:2619: checking for --enable-debug_gdb" >&5 |
10f2d63a VZ |
2619 | no_cache=0 |
2620 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2621 | if test "${enable_debug_gdb+set}" = set; then | |
2622 | enableval="$enable_debug_gdb" | |
698dcdb6 | 2623 | |
10f2d63a VZ |
2624 | if test "$enableval" = yes; then |
2625 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2626 | else | |
2627 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2628 | fi | |
698dcdb6 | 2629 | |
10f2d63a | 2630 | else |
698dcdb6 | 2631 | |
10f2d63a VZ |
2632 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` |
2633 | if test "x$LINE" != x ; then | |
2634 | eval "DEFAULT_$LINE" | |
2635 | else | |
2636 | no_cache=1 | |
2637 | fi | |
2638 | ||
2639 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
698dcdb6 VZ |
2640 | |
2641 | fi | |
10f2d63a VZ |
2642 | |
2643 | ||
2644 | eval "$ac_cv_use_debug_gdb" | |
2645 | if test "$no_cache" != 1; then | |
2646 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2647 | fi | |
2648 | ||
2649 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
698dcdb6 | 2650 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2651 | else |
698dcdb6 | 2652 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2653 | fi |
698dcdb6 | 2654 | |
10f2d63a | 2655 | |
698dcdb6 | 2656 | echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6 |
cb61c62d | 2657 | echo "configure:2658: checking for --enable-debug_cntxt" >&5 |
10f2d63a VZ |
2658 | no_cache=0 |
2659 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2660 | if test "${enable_debug_cntxt+set}" = set; then | |
2661 | enableval="$enable_debug_cntxt" | |
698dcdb6 | 2662 | |
10f2d63a VZ |
2663 | if test "$enableval" = yes; then |
2664 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2665 | else | |
2666 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2667 | fi | |
698dcdb6 | 2668 | |
10f2d63a | 2669 | else |
698dcdb6 | 2670 | |
10f2d63a VZ |
2671 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` |
2672 | if test "x$LINE" != x ; then | |
2673 | eval "DEFAULT_$LINE" | |
2674 | else | |
2675 | no_cache=1 | |
2676 | fi | |
2677 | ||
2678 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
698dcdb6 VZ |
2679 | |
2680 | fi | |
10f2d63a VZ |
2681 | |
2682 | ||
2683 | eval "$ac_cv_use_debug_cntxt" | |
2684 | if test "$no_cache" != 1; then | |
2685 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2686 | fi | |
2687 | ||
2688 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
698dcdb6 | 2689 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2690 | else |
698dcdb6 | 2691 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2692 | fi |
698dcdb6 | 2693 | |
10f2d63a | 2694 | |
698dcdb6 | 2695 | echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6 |
cb61c62d | 2696 | echo "configure:2697: checking for --enable-mem_tracing" >&5 |
10f2d63a VZ |
2697 | no_cache=0 |
2698 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2699 | if test "${enable_mem_tracing+set}" = set; then | |
2700 | enableval="$enable_mem_tracing" | |
698dcdb6 | 2701 | |
10f2d63a VZ |
2702 | if test "$enableval" = yes; then |
2703 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2704 | else | |
2705 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2706 | fi | |
698dcdb6 | 2707 | |
10f2d63a | 2708 | else |
698dcdb6 | 2709 | |
10f2d63a VZ |
2710 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` |
2711 | if test "x$LINE" != x ; then | |
2712 | eval "DEFAULT_$LINE" | |
2713 | else | |
2714 | no_cache=1 | |
2715 | fi | |
2716 | ||
2717 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
698dcdb6 VZ |
2718 | |
2719 | fi | |
10f2d63a VZ |
2720 | |
2721 | ||
2722 | eval "$ac_cv_use_mem_tracing" | |
2723 | if test "$no_cache" != 1; then | |
2724 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2725 | fi | |
2726 | ||
2727 | if test "$wxUSE_MEM_TRACING" = yes; then | |
698dcdb6 | 2728 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2729 | else |
698dcdb6 | 2730 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2731 | fi |
698dcdb6 | 2732 | |
10f2d63a | 2733 | |
698dcdb6 | 2734 | echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6 |
cb61c62d | 2735 | echo "configure:2736: checking for --enable-profile" >&5 |
10f2d63a VZ |
2736 | no_cache=0 |
2737 | # Check whether --enable-profile or --disable-profile was given. | |
2738 | if test "${enable_profile+set}" = set; then | |
2739 | enableval="$enable_profile" | |
698dcdb6 | 2740 | |
10f2d63a VZ |
2741 | if test "$enableval" = yes; then |
2742 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2743 | else | |
2744 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2745 | fi | |
698dcdb6 | 2746 | |
10f2d63a | 2747 | else |
698dcdb6 | 2748 | |
10f2d63a VZ |
2749 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` |
2750 | if test "x$LINE" != x ; then | |
2751 | eval "DEFAULT_$LINE" | |
2752 | else | |
2753 | no_cache=1 | |
2754 | fi | |
2755 | ||
2756 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
698dcdb6 VZ |
2757 | |
2758 | fi | |
10f2d63a VZ |
2759 | |
2760 | ||
2761 | eval "$ac_cv_use_profile" | |
2762 | if test "$no_cache" != 1; then | |
2763 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2764 | fi | |
2765 | ||
2766 | if test "$wxUSE_PROFILE" = yes; then | |
698dcdb6 | 2767 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2768 | else |
698dcdb6 | 2769 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2770 | fi |
698dcdb6 | 2771 | |
10f2d63a | 2772 | |
698dcdb6 | 2773 | echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6 |
cb61c62d | 2774 | echo "configure:2775: checking for --enable-no_rtti" >&5 |
10f2d63a VZ |
2775 | no_cache=0 |
2776 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2777 | if test "${enable_no_rtti+set}" = set; then | |
2778 | enableval="$enable_no_rtti" | |
698dcdb6 | 2779 | |
10f2d63a VZ |
2780 | if test "$enableval" = yes; then |
2781 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2782 | else | |
2783 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2784 | fi | |
698dcdb6 | 2785 | |
10f2d63a | 2786 | else |
698dcdb6 | 2787 | |
10f2d63a VZ |
2788 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` |
2789 | if test "x$LINE" != x ; then | |
2790 | eval "DEFAULT_$LINE" | |
2791 | else | |
2792 | no_cache=1 | |
2793 | fi | |
2794 | ||
2795 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
698dcdb6 VZ |
2796 | |
2797 | fi | |
10f2d63a VZ |
2798 | |
2799 | ||
2800 | eval "$ac_cv_use_no_rtti" | |
2801 | if test "$no_cache" != 1; then | |
2802 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2803 | fi | |
2804 | ||
2805 | if test "$wxUSE_NO_RTTI" = yes; then | |
698dcdb6 | 2806 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2807 | else |
698dcdb6 | 2808 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2809 | fi |
698dcdb6 | 2810 | |
10f2d63a | 2811 | |
698dcdb6 | 2812 | echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6 |
cb61c62d | 2813 | echo "configure:2814: checking for --enable-no_exceptions" >&5 |
10f2d63a VZ |
2814 | no_cache=0 |
2815 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2816 | if test "${enable_no_exceptions+set}" = set; then | |
2817 | enableval="$enable_no_exceptions" | |
698dcdb6 | 2818 | |
10f2d63a VZ |
2819 | if test "$enableval" = yes; then |
2820 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2821 | else | |
2822 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2823 | fi | |
698dcdb6 | 2824 | |
10f2d63a | 2825 | else |
698dcdb6 | 2826 | |
10f2d63a VZ |
2827 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` |
2828 | if test "x$LINE" != x ; then | |
2829 | eval "DEFAULT_$LINE" | |
2830 | else | |
2831 | no_cache=1 | |
2832 | fi | |
2833 | ||
2834 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
698dcdb6 VZ |
2835 | |
2836 | fi | |
10f2d63a VZ |
2837 | |
2838 | ||
2839 | eval "$ac_cv_use_no_exceptions" | |
2840 | if test "$no_cache" != 1; then | |
2841 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2842 | fi | |
2843 | ||
2844 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
698dcdb6 | 2845 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2846 | else |
698dcdb6 | 2847 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2848 | fi |
698dcdb6 | 2849 | |
10f2d63a | 2850 | |
698dcdb6 | 2851 | echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6 |
cb61c62d | 2852 | echo "configure:2853: checking for --enable-permissive" >&5 |
10f2d63a VZ |
2853 | no_cache=0 |
2854 | # Check whether --enable-permissive or --disable-permissive was given. | |
2855 | if test "${enable_permissive+set}" = set; then | |
2856 | enableval="$enable_permissive" | |
698dcdb6 | 2857 | |
10f2d63a VZ |
2858 | if test "$enableval" = yes; then |
2859 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2860 | else | |
2861 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2862 | fi | |
698dcdb6 | 2863 | |
10f2d63a | 2864 | else |
698dcdb6 | 2865 | |
10f2d63a VZ |
2866 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` |
2867 | if test "x$LINE" != x ; then | |
2868 | eval "DEFAULT_$LINE" | |
2869 | else | |
2870 | no_cache=1 | |
2871 | fi | |
2872 | ||
2873 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
698dcdb6 VZ |
2874 | |
2875 | fi | |
10f2d63a VZ |
2876 | |
2877 | ||
2878 | eval "$ac_cv_use_permissive" | |
2879 | if test "$no_cache" != 1; then | |
2880 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2881 | fi | |
2882 | ||
2883 | if test "$wxUSE_PERMISSIVE" = yes; then | |
698dcdb6 | 2884 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2885 | else |
698dcdb6 | 2886 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2887 | fi |
698dcdb6 | 2888 | |
10f2d63a | 2889 | |
698dcdb6 | 2890 | echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6 |
cb61c62d | 2891 | echo "configure:2892: checking for --enable-no_deps" >&5 |
10f2d63a VZ |
2892 | no_cache=0 |
2893 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2894 | if test "${enable_no_deps+set}" = set; then | |
2895 | enableval="$enable_no_deps" | |
698dcdb6 | 2896 | |
10f2d63a VZ |
2897 | if test "$enableval" = yes; then |
2898 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2899 | else | |
2900 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2901 | fi | |
698dcdb6 | 2902 | |
10f2d63a | 2903 | else |
698dcdb6 | 2904 | |
10f2d63a VZ |
2905 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` |
2906 | if test "x$LINE" != x ; then | |
2907 | eval "DEFAULT_$LINE" | |
2908 | else | |
2909 | no_cache=1 | |
2910 | fi | |
2911 | ||
2912 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
698dcdb6 VZ |
2913 | |
2914 | fi | |
10f2d63a VZ |
2915 | |
2916 | ||
2917 | eval "$ac_cv_use_no_deps" | |
2918 | if test "$no_cache" != 1; then | |
2919 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2920 | fi | |
2921 | ||
2922 | if test "$wxUSE_NO_DEPS" = yes; then | |
698dcdb6 | 2923 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2924 | else |
698dcdb6 | 2925 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2926 | fi |
698dcdb6 VZ |
2927 | |
2928 | ||
10f2d63a | 2929 | |
54276ccf | 2930 | echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6 |
cb61c62d | 2931 | echo "configure:2932: checking for --enable-compat20" >&5 |
54276ccf VZ |
2932 | no_cache=0 |
2933 | # Check whether --enable-compat20 or --disable-compat20 was given. | |
2934 | if test "${enable_compat20+set}" = set; then | |
2935 | enableval="$enable_compat20" | |
2936 | ||
2937 | if test "$enableval" = yes; then | |
2938 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes' | |
2939 | else | |
2940 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no' | |
2941 | fi | |
2942 | ||
2943 | else | |
2944 | ||
2945 | LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}` | |
2946 | if test "x$LINE" != x ; then | |
2947 | eval "DEFAULT_$LINE" | |
2948 | else | |
2949 | no_cache=1 | |
2950 | fi | |
2951 | ||
2952 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2 | |
2953 | ||
2954 | fi | |
2955 | ||
2956 | ||
2957 | eval "$ac_cv_use_compat20" | |
2958 | if test "$no_cache" != 1; then | |
2959 | echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp | |
2960 | fi | |
2961 | ||
2962 | if test "$WXWIN_COMPATIBILITY_2" = yes; then | |
2963 | echo "$ac_t""yes" 1>&6 | |
2964 | else | |
2965 | echo "$ac_t""no" 1>&6 | |
2966 | fi | |
2967 | ||
2968 | ||
2969 | echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6 | |
cb61c62d | 2970 | echo "configure:2971: checking for --enable-compat22" >&5 |
54276ccf VZ |
2971 | no_cache=0 |
2972 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
2973 | if test "${enable_compat22+set}" = set; then | |
2974 | enableval="$enable_compat22" | |
2975 | ||
2976 | if test "$enableval" = yes; then | |
2977 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
2978 | else | |
2979 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
2980 | fi | |
2981 | ||
2982 | else | |
2983 | ||
2984 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` | |
2985 | if test "x$LINE" != x ; then | |
2986 | eval "DEFAULT_$LINE" | |
2987 | else | |
2988 | no_cache=1 | |
2989 | fi | |
2990 | ||
2991 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
2992 | ||
2993 | fi | |
2994 | ||
2995 | ||
2996 | eval "$ac_cv_use_compat22" | |
2997 | if test "$no_cache" != 1; then | |
2998 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
2999 | fi | |
3000 | ||
3001 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
3002 | echo "$ac_t""yes" 1>&6 | |
3003 | else | |
3004 | echo "$ac_t""no" 1>&6 | |
3005 | fi | |
3006 | ||
3007 | ||
3008 | ||
698dcdb6 VZ |
3009 | |
3010 | echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6 | |
cb61c62d | 3011 | echo "configure:3012: checking for --enable-intl" >&5 |
10f2d63a VZ |
3012 | no_cache=0 |
3013 | # Check whether --enable-intl or --disable-intl was given. | |
3014 | if test "${enable_intl+set}" = set; then | |
3015 | enableval="$enable_intl" | |
698dcdb6 | 3016 | |
10f2d63a VZ |
3017 | if test "$enableval" = yes; then |
3018 | ac_cv_use_intl='wxUSE_INTL=yes' | |
3019 | else | |
3020 | ac_cv_use_intl='wxUSE_INTL=no' | |
3021 | fi | |
698dcdb6 | 3022 | |
10f2d63a | 3023 | else |
698dcdb6 | 3024 | |
10f2d63a VZ |
3025 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` |
3026 | if test "x$LINE" != x ; then | |
3027 | eval "DEFAULT_$LINE" | |
3028 | else | |
3029 | no_cache=1 | |
3030 | fi | |
3031 | ||
3032 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
698dcdb6 VZ |
3033 | |
3034 | fi | |
10f2d63a VZ |
3035 | |
3036 | ||
3037 | eval "$ac_cv_use_intl" | |
3038 | if test "$no_cache" != 1; then | |
3039 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
3040 | fi | |
3041 | ||
3042 | if test "$wxUSE_INTL" = yes; then | |
698dcdb6 | 3043 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3044 | else |
698dcdb6 | 3045 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3046 | fi |
698dcdb6 | 3047 | |
10f2d63a | 3048 | |
698dcdb6 | 3049 | echo $ac_n "checking for --enable-config""... $ac_c" 1>&6 |
cb61c62d | 3050 | echo "configure:3051: checking for --enable-config" >&5 |
10f2d63a VZ |
3051 | no_cache=0 |
3052 | # Check whether --enable-config or --disable-config was given. | |
3053 | if test "${enable_config+set}" = set; then | |
3054 | enableval="$enable_config" | |
698dcdb6 | 3055 | |
10f2d63a VZ |
3056 | if test "$enableval" = yes; then |
3057 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
3058 | else | |
3059 | ac_cv_use_config='wxUSE_CONFIG=no' | |
3060 | fi | |
698dcdb6 | 3061 | |
10f2d63a | 3062 | else |
698dcdb6 | 3063 | |
10f2d63a VZ |
3064 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` |
3065 | if test "x$LINE" != x ; then | |
3066 | eval "DEFAULT_$LINE" | |
3067 | else | |
3068 | no_cache=1 | |
3069 | fi | |
3070 | ||
3071 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
698dcdb6 VZ |
3072 | |
3073 | fi | |
10f2d63a VZ |
3074 | |
3075 | ||
3076 | eval "$ac_cv_use_config" | |
3077 | if test "$no_cache" != 1; then | |
3078 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
3079 | fi | |
3080 | ||
3081 | if test "$wxUSE_CONFIG" = yes; then | |
698dcdb6 | 3082 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3083 | else |
698dcdb6 | 3084 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3085 | fi |
698dcdb6 VZ |
3086 | |
3087 | ||
b12915c1 | 3088 | |
a1622950 | 3089 | echo $ac_n "checking for --enable-protocols""... $ac_c" 1>&6 |
cb61c62d | 3090 | echo "configure:3091: checking for --enable-protocols" >&5 |
a1622950 VZ |
3091 | no_cache=0 |
3092 | # Check whether --enable-protocols or --disable-protocols was given. | |
3093 | if test "${enable_protocols+set}" = set; then | |
3094 | enableval="$enable_protocols" | |
3095 | ||
3096 | if test "$enableval" = yes; then | |
3097 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
3098 | else | |
3099 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
3100 | fi | |
3101 | ||
3102 | else | |
3103 | ||
3104 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
3105 | if test "x$LINE" != x ; then | |
3106 | eval "DEFAULT_$LINE" | |
3107 | else | |
3108 | no_cache=1 | |
3109 | fi | |
3110 | ||
3111 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
3112 | ||
3113 | fi | |
3114 | ||
3115 | ||
3116 | eval "$ac_cv_use_protocols" | |
3117 | if test "$no_cache" != 1; then | |
3118 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
3119 | fi | |
3120 | ||
3121 | if test "$wxUSE_PROTOCOL" = yes; then | |
3122 | echo "$ac_t""yes" 1>&6 | |
3123 | else | |
3124 | echo "$ac_t""no" 1>&6 | |
3125 | fi | |
3126 | ||
3127 | ||
3128 | echo $ac_n "checking for --enable-ftp""... $ac_c" 1>&6 | |
cb61c62d | 3129 | echo "configure:3130: checking for --enable-ftp" >&5 |
a1622950 VZ |
3130 | no_cache=0 |
3131 | # Check whether --enable-ftp or --disable-ftp was given. | |
3132 | if test "${enable_ftp+set}" = set; then | |
3133 | enableval="$enable_ftp" | |
3134 | ||
3135 | if test "$enableval" = yes; then | |
3136 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
3137 | else | |
3138 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
3139 | fi | |
3140 | ||
3141 | else | |
3142 | ||
3143 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
3144 | if test "x$LINE" != x ; then | |
3145 | eval "DEFAULT_$LINE" | |
3146 | else | |
3147 | no_cache=1 | |
3148 | fi | |
3149 | ||
3150 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
3151 | ||
3152 | fi | |
3153 | ||
3154 | ||
3155 | eval "$ac_cv_use_ftp" | |
3156 | if test "$no_cache" != 1; then | |
3157 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
3158 | fi | |
3159 | ||
3160 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
3161 | echo "$ac_t""yes" 1>&6 | |
3162 | else | |
3163 | echo "$ac_t""no" 1>&6 | |
3164 | fi | |
3165 | ||
3166 | ||
3167 | echo $ac_n "checking for --enable-http""... $ac_c" 1>&6 | |
cb61c62d | 3168 | echo "configure:3169: checking for --enable-http" >&5 |
a1622950 VZ |
3169 | no_cache=0 |
3170 | # Check whether --enable-http or --disable-http was given. | |
3171 | if test "${enable_http+set}" = set; then | |
3172 | enableval="$enable_http" | |
3173 | ||
3174 | if test "$enableval" = yes; then | |
3175 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
3176 | else | |
3177 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
3178 | fi | |
3179 | ||
3180 | else | |
3181 | ||
3182 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
3183 | if test "x$LINE" != x ; then | |
3184 | eval "DEFAULT_$LINE" | |
3185 | else | |
3186 | no_cache=1 | |
3187 | fi | |
3188 | ||
3189 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
3190 | ||
3191 | fi | |
3192 | ||
3193 | ||
3194 | eval "$ac_cv_use_http" | |
3195 | if test "$no_cache" != 1; then | |
3196 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
3197 | fi | |
3198 | ||
3199 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
3200 | echo "$ac_t""yes" 1>&6 | |
3201 | else | |
3202 | echo "$ac_t""no" 1>&6 | |
3203 | fi | |
3204 | ||
3205 | ||
3206 | echo $ac_n "checking for --enable-fileproto""... $ac_c" 1>&6 | |
cb61c62d | 3207 | echo "configure:3208: checking for --enable-fileproto" >&5 |
a1622950 VZ |
3208 | no_cache=0 |
3209 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
3210 | if test "${enable_fileproto+set}" = set; then | |
3211 | enableval="$enable_fileproto" | |
3212 | ||
3213 | if test "$enableval" = yes; then | |
3214 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
3215 | else | |
3216 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
3217 | fi | |
3218 | ||
3219 | else | |
3220 | ||
3221 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
3222 | if test "x$LINE" != x ; then | |
3223 | eval "DEFAULT_$LINE" | |
3224 | else | |
3225 | no_cache=1 | |
3226 | fi | |
3227 | ||
3228 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
3229 | ||
3230 | fi | |
3231 | ||
3232 | ||
3233 | eval "$ac_cv_use_fileproto" | |
3234 | if test "$no_cache" != 1; then | |
3235 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
3236 | fi | |
3237 | ||
3238 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
3239 | echo "$ac_t""yes" 1>&6 | |
3240 | else | |
3241 | echo "$ac_t""no" 1>&6 | |
3242 | fi | |
3243 | ||
3244 | ||
698dcdb6 | 3245 | echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6 |
cb61c62d | 3246 | echo "configure:3247: checking for --enable-sockets" >&5 |
10f2d63a VZ |
3247 | no_cache=0 |
3248 | # Check whether --enable-sockets or --disable-sockets was given. | |
3249 | if test "${enable_sockets+set}" = set; then | |
3250 | enableval="$enable_sockets" | |
698dcdb6 | 3251 | |
10f2d63a VZ |
3252 | if test "$enableval" = yes; then |
3253 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
3254 | else | |
3255 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
3256 | fi | |
698dcdb6 | 3257 | |
10f2d63a | 3258 | else |
698dcdb6 | 3259 | |
10f2d63a VZ |
3260 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` |
3261 | if test "x$LINE" != x ; then | |
3262 | eval "DEFAULT_$LINE" | |
3263 | else | |
3264 | no_cache=1 | |
3265 | fi | |
3266 | ||
3267 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
698dcdb6 VZ |
3268 | |
3269 | fi | |
10f2d63a VZ |
3270 | |
3271 | ||
3272 | eval "$ac_cv_use_sockets" | |
3273 | if test "$no_cache" != 1; then | |
3274 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
3275 | fi | |
3276 | ||
3277 | if test "$wxUSE_SOCKETS" = yes; then | |
698dcdb6 | 3278 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3279 | else |
698dcdb6 | 3280 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3281 | fi |
698dcdb6 | 3282 | |
b12915c1 | 3283 | |
698dcdb6 VZ |
3284 | |
3285 | echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6 | |
cb61c62d | 3286 | echo "configure:3287: checking for --enable-ipc" >&5 |
10f2d63a | 3287 | no_cache=0 |
eb4efbdc VZ |
3288 | # Check whether --enable-ipc or --disable-ipc was given. |
3289 | if test "${enable_ipc+set}" = set; then | |
3290 | enableval="$enable_ipc" | |
698dcdb6 | 3291 | |
10f2d63a | 3292 | if test "$enableval" = yes; then |
eb4efbdc | 3293 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 3294 | else |
eb4efbdc | 3295 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a | 3296 | fi |
698dcdb6 | 3297 | |
10f2d63a | 3298 | else |
698dcdb6 | 3299 | |
eb4efbdc | 3300 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
3301 | if test "x$LINE" != x ; then |
3302 | eval "DEFAULT_$LINE" | |
3303 | else | |
3304 | no_cache=1 | |
3305 | fi | |
3306 | ||
eb4efbdc | 3307 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
698dcdb6 VZ |
3308 | |
3309 | fi | |
10f2d63a VZ |
3310 | |
3311 | ||
eb4efbdc | 3312 | eval "$ac_cv_use_ipc" |
10f2d63a | 3313 | if test "$no_cache" != 1; then |
eb4efbdc | 3314 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3315 | fi |
3316 | ||
eb4efbdc | 3317 | if test "$wxUSE_IPC" = yes; then |
698dcdb6 | 3318 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3319 | else |
698dcdb6 | 3320 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3321 | fi |
698dcdb6 VZ |
3322 | |
3323 | ||
eb4efbdc | 3324 | |
1e6feb95 | 3325 | echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6 |
cb61c62d | 3326 | echo "configure:3327: checking for --enable-cmdline" >&5 |
1e6feb95 VZ |
3327 | no_cache=0 |
3328 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
3329 | if test "${enable_cmdline+set}" = set; then | |
3330 | enableval="$enable_cmdline" | |
3331 | ||
3332 | if test "$enableval" = yes; then | |
3333 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
3334 | else | |
3335 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
3336 | fi | |
3337 | ||
3338 | else | |
3339 | ||
3340 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
3341 | if test "x$LINE" != x ; then | |
3342 | eval "DEFAULT_$LINE" | |
3343 | else | |
3344 | no_cache=1 | |
3345 | fi | |
3346 | ||
3347 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
3348 | ||
3349 | fi | |
3350 | ||
3351 | ||
3352 | eval "$ac_cv_use_cmdline" | |
3353 | if test "$no_cache" != 1; then | |
3354 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
3355 | fi | |
3356 | ||
3357 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
3358 | echo "$ac_t""yes" 1>&6 | |
3359 | else | |
3360 | echo "$ac_t""no" 1>&6 | |
3361 | fi | |
3362 | ||
3363 | ||
3364 | echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6 | |
cb61c62d | 3365 | echo "configure:3366: checking for --enable-datetime" >&5 |
1e6feb95 VZ |
3366 | no_cache=0 |
3367 | # Check whether --enable-datetime or --disable-datetime was given. | |
3368 | if test "${enable_datetime+set}" = set; then | |
3369 | enableval="$enable_datetime" | |
3370 | ||
3371 | if test "$enableval" = yes; then | |
3372 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
3373 | else | |
3374 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
3375 | fi | |
3376 | ||
3377 | else | |
3378 | ||
3379 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
3380 | if test "x$LINE" != x ; then | |
3381 | eval "DEFAULT_$LINE" | |
3382 | else | |
3383 | no_cache=1 | |
3384 | fi | |
3385 | ||
3386 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
3387 | ||
3388 | fi | |
3389 | ||
3390 | ||
3391 | eval "$ac_cv_use_datetime" | |
3392 | if test "$no_cache" != 1; then | |
3393 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
3394 | fi | |
3395 | ||
3396 | if test "$wxUSE_DATETIME" = yes; then | |
3397 | echo "$ac_t""yes" 1>&6 | |
3398 | else | |
3399 | echo "$ac_t""no" 1>&6 | |
3400 | fi | |
3401 | ||
3402 | ||
3403 | echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6 | |
cb61c62d | 3404 | echo "configure:3405: checking for --enable-timedate" >&5 |
1e6feb95 VZ |
3405 | no_cache=0 |
3406 | # Check whether --enable-timedate or --disable-timedate was given. | |
3407 | if test "${enable_timedate+set}" = set; then | |
3408 | enableval="$enable_timedate" | |
3409 | ||
3410 | if test "$enableval" = yes; then | |
3411 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
3412 | else | |
3413 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
3414 | fi | |
3415 | ||
3416 | else | |
3417 | ||
3418 | LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}` | |
3419 | if test "x$LINE" != x ; then | |
3420 | eval "DEFAULT_$LINE" | |
3421 | else | |
3422 | no_cache=1 | |
3423 | fi | |
3424 | ||
3425 | ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
3426 | ||
3427 | fi | |
3428 | ||
3429 | ||
3430 | eval "$ac_cv_use_timedate" | |
3431 | if test "$no_cache" != 1; then | |
3432 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
3433 | fi | |
3434 | ||
3435 | if test "$wxUSE_TIMEDATE" = yes; then | |
3436 | echo "$ac_t""yes" 1>&6 | |
3437 | else | |
3438 | echo "$ac_t""no" 1>&6 | |
3439 | fi | |
3440 | ||
3441 | ||
3442 | echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6 | |
cb61c62d | 3443 | echo "configure:3444: checking for --enable-stopwatch" >&5 |
1e6feb95 VZ |
3444 | no_cache=0 |
3445 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
3446 | if test "${enable_stopwatch+set}" = set; then | |
3447 | enableval="$enable_stopwatch" | |
3448 | ||
3449 | if test "$enableval" = yes; then | |
3450 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
3451 | else | |
3452 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
3453 | fi | |
3454 | ||
3455 | else | |
3456 | ||
3457 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
3458 | if test "x$LINE" != x ; then | |
3459 | eval "DEFAULT_$LINE" | |
3460 | else | |
3461 | no_cache=1 | |
3462 | fi | |
3463 | ||
3464 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
3465 | ||
3466 | fi | |
3467 | ||
3468 | ||
3469 | eval "$ac_cv_use_stopwatch" | |
3470 | if test "$no_cache" != 1; then | |
3471 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
3472 | fi | |
3473 | ||
3474 | if test "$wxUSE_STOPWATCH" = yes; then | |
3475 | echo "$ac_t""yes" 1>&6 | |
3476 | else | |
3477 | echo "$ac_t""no" 1>&6 | |
3478 | fi | |
3479 | ||
3480 | ||
698dcdb6 | 3481 | echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6 |
cb61c62d | 3482 | echo "configure:3483: checking for --enable-dialupman" >&5 |
10f2d63a | 3483 | no_cache=0 |
eb4efbdc VZ |
3484 | # Check whether --enable-dialupman or --disable-dialupman was given. |
3485 | if test "${enable_dialupman+set}" = set; then | |
3486 | enableval="$enable_dialupman" | |
698dcdb6 | 3487 | |
10f2d63a | 3488 | if test "$enableval" = yes; then |
eb4efbdc | 3489 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 3490 | else |
eb4efbdc | 3491 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a | 3492 | fi |
698dcdb6 | 3493 | |
10f2d63a | 3494 | else |
698dcdb6 | 3495 | |
eb4efbdc | 3496 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3497 | if test "x$LINE" != x ; then |
3498 | eval "DEFAULT_$LINE" | |
3499 | else | |
3500 | no_cache=1 | |
3501 | fi | |
3502 | ||
eb4efbdc | 3503 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
698dcdb6 VZ |
3504 | |
3505 | fi | |
10f2d63a VZ |
3506 | |
3507 | ||
eb4efbdc | 3508 | eval "$ac_cv_use_dialupman" |
10f2d63a | 3509 | if test "$no_cache" != 1; then |
eb4efbdc | 3510 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3511 | fi |
3512 | ||
eb4efbdc | 3513 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
698dcdb6 | 3514 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3515 | else |
698dcdb6 | 3516 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3517 | fi |
698dcdb6 | 3518 | |
10f2d63a | 3519 | |
698dcdb6 | 3520 | echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6 |
cb61c62d | 3521 | echo "configure:3522: checking for --enable-apple_ieee" >&5 |
10f2d63a VZ |
3522 | no_cache=0 |
3523 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
3524 | if test "${enable_apple_ieee+set}" = set; then | |
3525 | enableval="$enable_apple_ieee" | |
698dcdb6 | 3526 | |
10f2d63a VZ |
3527 | if test "$enableval" = yes; then |
3528 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
3529 | else | |
3530 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
3531 | fi | |
698dcdb6 | 3532 | |
10f2d63a | 3533 | else |
698dcdb6 | 3534 | |
10f2d63a VZ |
3535 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` |
3536 | if test "x$LINE" != x ; then | |
3537 | eval "DEFAULT_$LINE" | |
3538 | else | |
3539 | no_cache=1 | |
3540 | fi | |
3541 | ||
3542 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
698dcdb6 VZ |
3543 | |
3544 | fi | |
10f2d63a VZ |
3545 | |
3546 | ||
3547 | eval "$ac_cv_use_apple_ieee" | |
3548 | if test "$no_cache" != 1; then | |
3549 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
3550 | fi | |
3551 | ||
3552 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
698dcdb6 | 3553 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3554 | else |
698dcdb6 | 3555 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3556 | fi |
698dcdb6 | 3557 | |
10f2d63a | 3558 | |
1e6feb95 | 3559 | echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6 |
cb61c62d | 3560 | echo "configure:3561: checking for --enable-timer" >&5 |
10f2d63a | 3561 | no_cache=0 |
1e6feb95 VZ |
3562 | # Check whether --enable-timer or --disable-timer was given. |
3563 | if test "${enable_timer+set}" = set; then | |
3564 | enableval="$enable_timer" | |
698dcdb6 | 3565 | |
10f2d63a | 3566 | if test "$enableval" = yes; then |
1e6feb95 | 3567 | ac_cv_use_timer='wxUSE_TIMER=yes' |
10f2d63a | 3568 | else |
1e6feb95 | 3569 | ac_cv_use_timer='wxUSE_TIMER=no' |
10f2d63a | 3570 | fi |
698dcdb6 | 3571 | |
10f2d63a | 3572 | else |
698dcdb6 | 3573 | |
1e6feb95 | 3574 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3575 | if test "x$LINE" != x ; then |
3576 | eval "DEFAULT_$LINE" | |
3577 | else | |
3578 | no_cache=1 | |
3579 | fi | |
3580 | ||
1e6feb95 | 3581 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER |
698dcdb6 VZ |
3582 | |
3583 | fi | |
10f2d63a VZ |
3584 | |
3585 | ||
1e6feb95 | 3586 | eval "$ac_cv_use_timer" |
10f2d63a | 3587 | if test "$no_cache" != 1; then |
1e6feb95 | 3588 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3589 | fi |
3590 | ||
1e6feb95 | 3591 | if test "$wxUSE_TIMER" = yes; then |
698dcdb6 | 3592 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3593 | else |
698dcdb6 | 3594 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3595 | fi |
698dcdb6 | 3596 | |
10f2d63a | 3597 | |
698dcdb6 | 3598 | echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6 |
cb61c62d | 3599 | echo "configure:3600: checking for --enable-wave" >&5 |
10f2d63a VZ |
3600 | no_cache=0 |
3601 | # Check whether --enable-wave or --disable-wave was given. | |
3602 | if test "${enable_wave+set}" = set; then | |
3603 | enableval="$enable_wave" | |
698dcdb6 | 3604 | |
10f2d63a VZ |
3605 | if test "$enableval" = yes; then |
3606 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
3607 | else | |
3608 | ac_cv_use_wave='wxUSE_WAVE=no' | |
3609 | fi | |
698dcdb6 | 3610 | |
10f2d63a | 3611 | else |
698dcdb6 | 3612 | |
10f2d63a VZ |
3613 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` |
3614 | if test "x$LINE" != x ; then | |
3615 | eval "DEFAULT_$LINE" | |
3616 | else | |
3617 | no_cache=1 | |
3618 | fi | |
3619 | ||
3620 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
698dcdb6 VZ |
3621 | |
3622 | fi | |
10f2d63a VZ |
3623 | |
3624 | ||
3625 | eval "$ac_cv_use_wave" | |
3626 | if test "$no_cache" != 1; then | |
3627 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
3628 | fi | |
3629 | ||
3630 | if test "$wxUSE_WAVE" = yes; then | |
698dcdb6 | 3631 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3632 | else |
698dcdb6 | 3633 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3634 | fi |
698dcdb6 | 3635 | |
10f2d63a | 3636 | |
698dcdb6 | 3637 | echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6 |
cb61c62d | 3638 | echo "configure:3639: checking for --enable-fraction" >&5 |
10f2d63a VZ |
3639 | no_cache=0 |
3640 | # Check whether --enable-fraction or --disable-fraction was given. | |
3641 | if test "${enable_fraction+set}" = set; then | |
3642 | enableval="$enable_fraction" | |
698dcdb6 | 3643 | |
10f2d63a VZ |
3644 | if test "$enableval" = yes; then |
3645 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
3646 | else | |
3647 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
3648 | fi | |
698dcdb6 | 3649 | |
10f2d63a | 3650 | else |
698dcdb6 | 3651 | |
10f2d63a VZ |
3652 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` |
3653 | if test "x$LINE" != x ; then | |
3654 | eval "DEFAULT_$LINE" | |
3655 | else | |
3656 | no_cache=1 | |
3657 | fi | |
3658 | ||
3659 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
698dcdb6 VZ |
3660 | |
3661 | fi | |
10f2d63a VZ |
3662 | |
3663 | ||
3664 | eval "$ac_cv_use_fraction" | |
3665 | if test "$no_cache" != 1; then | |
3666 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
3667 | fi | |
3668 | ||
3669 | if test "$wxUSE_FRACTION" = yes; then | |
698dcdb6 | 3670 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3671 | else |
698dcdb6 | 3672 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3673 | fi |
698dcdb6 | 3674 | |
10f2d63a | 3675 | |
698dcdb6 | 3676 | echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6 |
cb61c62d | 3677 | echo "configure:3678: checking for --enable-dynlib" >&5 |
10f2d63a VZ |
3678 | no_cache=0 |
3679 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
3680 | if test "${enable_dynlib+set}" = set; then | |
3681 | enableval="$enable_dynlib" | |
698dcdb6 | 3682 | |
10f2d63a VZ |
3683 | if test "$enableval" = yes; then |
3684 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
3685 | else | |
3686 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
3687 | fi | |
698dcdb6 | 3688 | |
10f2d63a | 3689 | else |
698dcdb6 | 3690 | |
10f2d63a VZ |
3691 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` |
3692 | if test "x$LINE" != x ; then | |
3693 | eval "DEFAULT_$LINE" | |
3694 | else | |
3695 | no_cache=1 | |
3696 | fi | |
3697 | ||
3698 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
698dcdb6 VZ |
3699 | |
3700 | fi | |
10f2d63a VZ |
3701 | |
3702 | ||
3703 | eval "$ac_cv_use_dynlib" | |
3704 | if test "$no_cache" != 1; then | |
3705 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
3706 | fi | |
3707 | ||
3708 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
698dcdb6 | 3709 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3710 | else |
698dcdb6 | 3711 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3712 | fi |
698dcdb6 | 3713 | |
10f2d63a | 3714 | |
0b9ab0bd | 3715 | echo $ac_n "checking for --enable-dynamicloader""... $ac_c" 1>&6 |
cb61c62d | 3716 | echo "configure:3717: checking for --enable-dynamicloader" >&5 |
0b9ab0bd RL |
3717 | no_cache=0 |
3718 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
3719 | if test "${enable_dynamicloader+set}" = set; then | |
3720 | enableval="$enable_dynamicloader" | |
3721 | ||
3722 | if test "$enableval" = yes; then | |
3723 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
3724 | else | |
3725 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
3726 | fi | |
3727 | ||
3728 | else | |
3729 | ||
3730 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` | |
3731 | if test "x$LINE" != x ; then | |
3732 | eval "DEFAULT_$LINE" | |
3733 | else | |
3734 | no_cache=1 | |
3735 | fi | |
3736 | ||
3737 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
3738 | ||
3739 | fi | |
3740 | ||
3741 | ||
3742 | eval "$ac_cv_use_dynamicloader" | |
3743 | if test "$no_cache" != 1; then | |
3744 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
3745 | fi | |
3746 | ||
3747 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
3748 | echo "$ac_t""yes" 1>&6 | |
3749 | else | |
3750 | echo "$ac_t""no" 1>&6 | |
3751 | fi | |
3752 | ||
3753 | ||
698dcdb6 | 3754 | echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6 |
cb61c62d | 3755 | echo "configure:3756: checking for --enable-longlong" >&5 |
10f2d63a VZ |
3756 | no_cache=0 |
3757 | # Check whether --enable-longlong or --disable-longlong was given. | |
3758 | if test "${enable_longlong+set}" = set; then | |
3759 | enableval="$enable_longlong" | |
698dcdb6 | 3760 | |
10f2d63a VZ |
3761 | if test "$enableval" = yes; then |
3762 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
3763 | else | |
3764 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
3765 | fi | |
698dcdb6 | 3766 | |
10f2d63a | 3767 | else |
698dcdb6 | 3768 | |
10f2d63a VZ |
3769 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` |
3770 | if test "x$LINE" != x ; then | |
3771 | eval "DEFAULT_$LINE" | |
3772 | else | |
3773 | no_cache=1 | |
3774 | fi | |
3775 | ||
3776 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
698dcdb6 VZ |
3777 | |
3778 | fi | |
10f2d63a VZ |
3779 | |
3780 | ||
3781 | eval "$ac_cv_use_longlong" | |
3782 | if test "$no_cache" != 1; then | |
3783 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
3784 | fi | |
3785 | ||
3786 | if test "$wxUSE_LONGLONG" = yes; then | |
698dcdb6 | 3787 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3788 | else |
698dcdb6 | 3789 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3790 | fi |
698dcdb6 | 3791 | |
10f2d63a | 3792 | |
698dcdb6 | 3793 | echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6 |
cb61c62d | 3794 | echo "configure:3795: checking for --enable-geometry" >&5 |
e8f65ba6 RR |
3795 | no_cache=0 |
3796 | # Check whether --enable-geometry or --disable-geometry was given. | |
3797 | if test "${enable_geometry+set}" = set; then | |
3798 | enableval="$enable_geometry" | |
698dcdb6 | 3799 | |
e8f65ba6 RR |
3800 | if test "$enableval" = yes; then |
3801 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
3802 | else | |
3803 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
3804 | fi | |
698dcdb6 | 3805 | |
e8f65ba6 | 3806 | else |
698dcdb6 | 3807 | |
e8f65ba6 RR |
3808 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` |
3809 | if test "x$LINE" != x ; then | |
3810 | eval "DEFAULT_$LINE" | |
3811 | else | |
3812 | no_cache=1 | |
3813 | fi | |
3814 | ||
3815 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
698dcdb6 VZ |
3816 | |
3817 | fi | |
e8f65ba6 RR |
3818 | |
3819 | ||
3820 | eval "$ac_cv_use_geometry" | |
3821 | if test "$no_cache" != 1; then | |
3822 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
3823 | fi | |
3824 | ||
3825 | if test "$wxUSE_GEOMETRY" = yes; then | |
698dcdb6 | 3826 | echo "$ac_t""yes" 1>&6 |
e8f65ba6 | 3827 | else |
698dcdb6 | 3828 | echo "$ac_t""no" 1>&6 |
e8f65ba6 | 3829 | fi |
698dcdb6 | 3830 | |
e8f65ba6 | 3831 | |
698dcdb6 | 3832 | echo $ac_n "checking for --enable-log""... $ac_c" 1>&6 |
cb61c62d | 3833 | echo "configure:3834: checking for --enable-log" >&5 |
10f2d63a VZ |
3834 | no_cache=0 |
3835 | # Check whether --enable-log or --disable-log was given. | |
3836 | if test "${enable_log+set}" = set; then | |
3837 | enableval="$enable_log" | |
698dcdb6 | 3838 | |
10f2d63a VZ |
3839 | if test "$enableval" = yes; then |
3840 | ac_cv_use_log='wxUSE_LOG=yes' | |
3841 | else | |
3842 | ac_cv_use_log='wxUSE_LOG=no' | |
3843 | fi | |
698dcdb6 | 3844 | |
10f2d63a | 3845 | else |
698dcdb6 | 3846 | |
10f2d63a VZ |
3847 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` |
3848 | if test "x$LINE" != x ; then | |
3849 | eval "DEFAULT_$LINE" | |
3850 | else | |
3851 | no_cache=1 | |
3852 | fi | |
3853 | ||
3854 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
698dcdb6 VZ |
3855 | |
3856 | fi | |
10f2d63a VZ |
3857 | |
3858 | ||
3859 | eval "$ac_cv_use_log" | |
3860 | if test "$no_cache" != 1; then | |
3861 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
3862 | fi | |
3863 | ||
3864 | if test "$wxUSE_LOG" = yes; then | |
698dcdb6 | 3865 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3866 | else |
698dcdb6 | 3867 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3868 | fi |
698dcdb6 | 3869 | |
10f2d63a | 3870 | |
698dcdb6 | 3871 | echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6 |
cb61c62d | 3872 | echo "configure:3873: checking for --enable-streams" >&5 |
10f2d63a VZ |
3873 | no_cache=0 |
3874 | # Check whether --enable-streams or --disable-streams was given. | |
3875 | if test "${enable_streams+set}" = set; then | |
3876 | enableval="$enable_streams" | |
698dcdb6 | 3877 | |
10f2d63a VZ |
3878 | if test "$enableval" = yes; then |
3879 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
3880 | else | |
3881 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
3882 | fi | |
698dcdb6 | 3883 | |
10f2d63a | 3884 | else |
698dcdb6 | 3885 | |
10f2d63a VZ |
3886 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` |
3887 | if test "x$LINE" != x ; then | |
3888 | eval "DEFAULT_$LINE" | |
3889 | else | |
3890 | no_cache=1 | |
3891 | fi | |
3892 | ||
3893 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
698dcdb6 VZ |
3894 | |
3895 | fi | |
10f2d63a VZ |
3896 | |
3897 | ||
3898 | eval "$ac_cv_use_streams" | |
3899 | if test "$no_cache" != 1; then | |
3900 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
3901 | fi | |
3902 | ||
3903 | if test "$wxUSE_STREAMS" = yes; then | |
698dcdb6 | 3904 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3905 | else |
698dcdb6 | 3906 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3907 | fi |
698dcdb6 | 3908 | |
10f2d63a | 3909 | |
698dcdb6 | 3910 | echo $ac_n "checking for --enable-file""... $ac_c" 1>&6 |
cb61c62d | 3911 | echo "configure:3912: checking for --enable-file" >&5 |
10f2d63a VZ |
3912 | no_cache=0 |
3913 | # Check whether --enable-file or --disable-file was given. | |
3914 | if test "${enable_file+set}" = set; then | |
3915 | enableval="$enable_file" | |
698dcdb6 | 3916 | |
10f2d63a VZ |
3917 | if test "$enableval" = yes; then |
3918 | ac_cv_use_file='wxUSE_FILE=yes' | |
3919 | else | |
3920 | ac_cv_use_file='wxUSE_FILE=no' | |
3921 | fi | |
698dcdb6 | 3922 | |
10f2d63a | 3923 | else |
698dcdb6 | 3924 | |
10f2d63a VZ |
3925 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` |
3926 | if test "x$LINE" != x ; then | |
3927 | eval "DEFAULT_$LINE" | |
3928 | else | |
3929 | no_cache=1 | |
3930 | fi | |
3931 | ||
3932 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
698dcdb6 VZ |
3933 | |
3934 | fi | |
10f2d63a VZ |
3935 | |
3936 | ||
3937 | eval "$ac_cv_use_file" | |
3938 | if test "$no_cache" != 1; then | |
3939 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
3940 | fi | |
3941 | ||
3942 | if test "$wxUSE_FILE" = yes; then | |
698dcdb6 | 3943 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3944 | else |
698dcdb6 | 3945 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3946 | fi |
698dcdb6 | 3947 | |
10f2d63a | 3948 | |
1e6feb95 | 3949 | echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6 |
cb61c62d | 3950 | echo "configure:3951: checking for --enable-ffile" >&5 |
10f2d63a | 3951 | no_cache=0 |
1e6feb95 VZ |
3952 | # Check whether --enable-ffile or --disable-ffile was given. |
3953 | if test "${enable_ffile+set}" = set; then | |
3954 | enableval="$enable_ffile" | |
698dcdb6 | 3955 | |
10f2d63a | 3956 | if test "$enableval" = yes; then |
1e6feb95 | 3957 | ac_cv_use_ffile='wxUSE_FFILE=yes' |
10f2d63a | 3958 | else |
1e6feb95 | 3959 | ac_cv_use_ffile='wxUSE_FFILE=no' |
10f2d63a | 3960 | fi |
698dcdb6 | 3961 | |
10f2d63a | 3962 | else |
698dcdb6 | 3963 | |
1e6feb95 | 3964 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
3965 | if test "x$LINE" != x ; then |
3966 | eval "DEFAULT_$LINE" | |
3967 | else | |
3968 | no_cache=1 | |
3969 | fi | |
3970 | ||
1e6feb95 | 3971 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE |
698dcdb6 VZ |
3972 | |
3973 | fi | |
10f2d63a VZ |
3974 | |
3975 | ||
1e6feb95 | 3976 | eval "$ac_cv_use_ffile" |
10f2d63a | 3977 | if test "$no_cache" != 1; then |
1e6feb95 | 3978 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3979 | fi |
3980 | ||
1e6feb95 | 3981 | if test "$wxUSE_FFILE" = yes; then |
698dcdb6 | 3982 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3983 | else |
698dcdb6 | 3984 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3985 | fi |
698dcdb6 | 3986 | |
10f2d63a | 3987 | |
a3a584a7 | 3988 | echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6 |
cb61c62d | 3989 | echo "configure:3990: checking for --enable-textbuf" >&5 |
a3a584a7 VZ |
3990 | no_cache=0 |
3991 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
3992 | if test "${enable_textbuf+set}" = set; then | |
3993 | enableval="$enable_textbuf" | |
3994 | ||
3995 | if test "$enableval" = yes; then | |
3996 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
3997 | else | |
3998 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
3999 | fi | |
4000 | ||
4001 | else | |
4002 | ||
4003 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` | |
4004 | if test "x$LINE" != x ; then | |
4005 | eval "DEFAULT_$LINE" | |
4006 | else | |
4007 | no_cache=1 | |
4008 | fi | |
4009 | ||
4010 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
4011 | ||
4012 | fi | |
4013 | ||
4014 | ||
4015 | eval "$ac_cv_use_textbuf" | |
4016 | if test "$no_cache" != 1; then | |
4017 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
4018 | fi | |
4019 | ||
4020 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
4021 | echo "$ac_t""yes" 1>&6 | |
4022 | else | |
4023 | echo "$ac_t""no" 1>&6 | |
4024 | fi | |
4025 | ||
4026 | ||
1e6feb95 | 4027 | echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6 |
cb61c62d | 4028 | echo "configure:4029: checking for --enable-textfile" >&5 |
10f2d63a | 4029 | no_cache=0 |
1e6feb95 VZ |
4030 | # Check whether --enable-textfile or --disable-textfile was given. |
4031 | if test "${enable_textfile+set}" = set; then | |
4032 | enableval="$enable_textfile" | |
698dcdb6 | 4033 | |
10f2d63a | 4034 | if test "$enableval" = yes; then |
1e6feb95 | 4035 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' |
10f2d63a | 4036 | else |
1e6feb95 | 4037 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' |
10f2d63a | 4038 | fi |
698dcdb6 | 4039 | |
10f2d63a | 4040 | else |
698dcdb6 | 4041 | |
1e6feb95 | 4042 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4043 | if test "x$LINE" != x ; then |
4044 | eval "DEFAULT_$LINE" | |
4045 | else | |
4046 | no_cache=1 | |
4047 | fi | |
4048 | ||
1e6feb95 | 4049 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE |
698dcdb6 VZ |
4050 | |
4051 | fi | |
10f2d63a VZ |
4052 | |
4053 | ||
1e6feb95 | 4054 | eval "$ac_cv_use_textfile" |
10f2d63a | 4055 | if test "$no_cache" != 1; then |
1e6feb95 | 4056 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4057 | fi |
4058 | ||
1e6feb95 | 4059 | if test "$wxUSE_TEXTFILE" = yes; then |
698dcdb6 | 4060 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4061 | else |
698dcdb6 | 4062 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4063 | fi |
698dcdb6 | 4064 | |
10f2d63a | 4065 | |
1e6feb95 | 4066 | echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6 |
cb61c62d | 4067 | echo "configure:4068: checking for --enable-fontmap" >&5 |
10f2d63a | 4068 | no_cache=0 |
1e6feb95 VZ |
4069 | # Check whether --enable-fontmap or --disable-fontmap was given. |
4070 | if test "${enable_fontmap+set}" = set; then | |
4071 | enableval="$enable_fontmap" | |
698dcdb6 | 4072 | |
10f2d63a | 4073 | if test "$enableval" = yes; then |
1e6feb95 | 4074 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' |
10f2d63a | 4075 | else |
1e6feb95 | 4076 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' |
10f2d63a | 4077 | fi |
698dcdb6 | 4078 | |
10f2d63a | 4079 | else |
698dcdb6 | 4080 | |
1e6feb95 | 4081 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` |
10f2d63a VZ |
4082 | if test "x$LINE" != x ; then |
4083 | eval "DEFAULT_$LINE" | |
4084 | else | |
4085 | no_cache=1 | |
4086 | fi | |
4087 | ||
1e6feb95 | 4088 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP |
698dcdb6 VZ |
4089 | |
4090 | fi | |
10f2d63a VZ |
4091 | |
4092 | ||
1e6feb95 | 4093 | eval "$ac_cv_use_fontmap" |
10f2d63a | 4094 | if test "$no_cache" != 1; then |
1e6feb95 | 4095 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4096 | fi |
4097 | ||
1e6feb95 | 4098 | if test "$wxUSE_FONTMAP" = yes; then |
698dcdb6 | 4099 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4100 | else |
698dcdb6 | 4101 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4102 | fi |
698dcdb6 | 4103 | |
10f2d63a | 4104 | |
1e6feb95 | 4105 | echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6 |
cb61c62d | 4106 | echo "configure:4107: checking for --enable-unicode" >&5 |
10f2d63a | 4107 | no_cache=0 |
1e6feb95 VZ |
4108 | # Check whether --enable-unicode or --disable-unicode was given. |
4109 | if test "${enable_unicode+set}" = set; then | |
4110 | enableval="$enable_unicode" | |
4111 | ||
4112 | if test "$enableval" = yes; then | |
4113 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
4114 | else | |
4115 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
4116 | fi | |
4117 | ||
4118 | else | |
4119 | ||
4120 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
4121 | if test "x$LINE" != x ; then | |
4122 | eval "DEFAULT_$LINE" | |
4123 | else | |
4124 | no_cache=1 | |
4125 | fi | |
4126 | ||
4127 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
4128 | ||
4129 | fi | |
4130 | ||
4131 | ||
4132 | eval "$ac_cv_use_unicode" | |
4133 | if test "$no_cache" != 1; then | |
4134 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
4135 | fi | |
4136 | ||
4137 | if test "$wxUSE_UNICODE" = yes; then | |
4138 | echo "$ac_t""yes" 1>&6 | |
4139 | else | |
4140 | echo "$ac_t""no" 1>&6 | |
4141 | fi | |
4142 | ||
4143 | ||
a72a4bfa | 4144 | echo $ac_n "checking for --enable-mslu""... $ac_c" 1>&6 |
cb61c62d | 4145 | echo "configure:4146: checking for --enable-mslu" >&5 |
a72a4bfa VS |
4146 | no_cache=0 |
4147 | # Check whether --enable-mslu or --disable-mslu was given. | |
4148 | if test "${enable_mslu+set}" = set; then | |
4149 | enableval="$enable_mslu" | |
4150 | ||
4151 | if test "$enableval" = yes; then | |
4152 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
4153 | else | |
4154 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
4155 | fi | |
4156 | ||
4157 | else | |
4158 | ||
4159 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` | |
4160 | if test "x$LINE" != x ; then | |
4161 | eval "DEFAULT_$LINE" | |
4162 | else | |
4163 | no_cache=1 | |
4164 | fi | |
4165 | ||
4166 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
4167 | ||
4168 | fi | |
4169 | ||
4170 | ||
4171 | eval "$ac_cv_use_mslu" | |
4172 | if test "$no_cache" != 1; then | |
4173 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
4174 | fi | |
4175 | ||
4176 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
4177 | echo "$ac_t""yes" 1>&6 | |
4178 | else | |
4179 | echo "$ac_t""no" 1>&6 | |
4180 | fi | |
4181 | ||
4182 | ||
1e6feb95 | 4183 | echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6 |
cb61c62d | 4184 | echo "configure:4185: checking for --enable-wxprintfv" >&5 |
1e6feb95 VZ |
4185 | no_cache=0 |
4186 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
4187 | if test "${enable_wxprintfv+set}" = set; then | |
4188 | enableval="$enable_wxprintfv" | |
4189 | ||
4190 | if test "$enableval" = yes; then | |
10f2d63a VZ |
4191 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' |
4192 | else | |
4193 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
4194 | fi | |
698dcdb6 | 4195 | |
10f2d63a | 4196 | else |
698dcdb6 | 4197 | |
10f2d63a VZ |
4198 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` |
4199 | if test "x$LINE" != x ; then | |
4200 | eval "DEFAULT_$LINE" | |
4201 | else | |
4202 | no_cache=1 | |
4203 | fi | |
4204 | ||
4205 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
698dcdb6 VZ |
4206 | |
4207 | fi | |
10f2d63a VZ |
4208 | |
4209 | ||
4210 | eval "$ac_cv_use_wxprintfv" | |
4211 | if test "$no_cache" != 1; then | |
4212 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
4213 | fi | |
4214 | ||
4215 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
698dcdb6 | 4216 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4217 | else |
698dcdb6 | 4218 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4219 | fi |
698dcdb6 | 4220 | |
10f2d63a | 4221 | |
698dcdb6 | 4222 | echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6 |
cb61c62d | 4223 | echo "configure:4224: checking for --enable-std_iostreams" >&5 |
10f2d63a VZ |
4224 | no_cache=0 |
4225 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
4226 | if test "${enable_std_iostreams+set}" = set; then | |
4227 | enableval="$enable_std_iostreams" | |
698dcdb6 | 4228 | |
10f2d63a VZ |
4229 | if test "$enableval" = yes; then |
4230 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
4231 | else | |
4232 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
4233 | fi | |
698dcdb6 | 4234 | |
10f2d63a | 4235 | else |
698dcdb6 | 4236 | |
10f2d63a VZ |
4237 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
4238 | if test "x$LINE" != x ; then | |
4239 | eval "DEFAULT_$LINE" | |
4240 | else | |
4241 | no_cache=1 | |
4242 | fi | |
4243 | ||
4244 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
698dcdb6 VZ |
4245 | |
4246 | fi | |
10f2d63a VZ |
4247 | |
4248 | ||
4249 | eval "$ac_cv_use_std_iostreams" | |
4250 | if test "$no_cache" != 1; then | |
4251 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
4252 | fi | |
4253 | ||
4254 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
698dcdb6 | 4255 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4256 | else |
698dcdb6 | 4257 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4258 | fi |
698dcdb6 | 4259 | |
10f2d63a | 4260 | |
698dcdb6 | 4261 | echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6 |
cb61c62d | 4262 | echo "configure:4263: checking for --enable-filesystem" >&5 |
24528b0c VS |
4263 | no_cache=0 |
4264 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
4265 | if test "${enable_filesystem+set}" = set; then | |
4266 | enableval="$enable_filesystem" | |
698dcdb6 | 4267 | |
24528b0c VS |
4268 | if test "$enableval" = yes; then |
4269 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
4270 | else | |
4271 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
4272 | fi | |
698dcdb6 | 4273 | |
24528b0c | 4274 | else |
698dcdb6 | 4275 | |
24528b0c VS |
4276 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` |
4277 | if test "x$LINE" != x ; then | |
4278 | eval "DEFAULT_$LINE" | |
4279 | else | |
4280 | no_cache=1 | |
4281 | fi | |
4282 | ||
4283 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
698dcdb6 VZ |
4284 | |
4285 | fi | |
24528b0c VS |
4286 | |
4287 | ||
4288 | eval "$ac_cv_use_filesystem" | |
4289 | if test "$no_cache" != 1; then | |
4290 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
4291 | fi | |
4292 | ||
4293 | if test "$wxUSE_FILESYSTEM" = yes; then | |
698dcdb6 | 4294 | echo "$ac_t""yes" 1>&6 |
24528b0c | 4295 | else |
698dcdb6 | 4296 | echo "$ac_t""no" 1>&6 |
24528b0c | 4297 | fi |
698dcdb6 | 4298 | |
24528b0c | 4299 | |
698dcdb6 | 4300 | echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6 |
cb61c62d | 4301 | echo "configure:4302: checking for --enable-fs_inet" >&5 |
10f2d63a VZ |
4302 | no_cache=0 |
4303 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
4304 | if test "${enable_fs_inet+set}" = set; then | |
4305 | enableval="$enable_fs_inet" | |
698dcdb6 | 4306 | |
10f2d63a VZ |
4307 | if test "$enableval" = yes; then |
4308 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
4309 | else | |
4310 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
4311 | fi | |
698dcdb6 | 4312 | |
10f2d63a | 4313 | else |
698dcdb6 | 4314 | |
10f2d63a VZ |
4315 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` |
4316 | if test "x$LINE" != x ; then | |
4317 | eval "DEFAULT_$LINE" | |
4318 | else | |
4319 | no_cache=1 | |
4320 | fi | |
4321 | ||
4322 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
698dcdb6 VZ |
4323 | |
4324 | fi | |
10f2d63a VZ |
4325 | |
4326 | ||
4327 | eval "$ac_cv_use_fs_inet" | |
4328 | if test "$no_cache" != 1; then | |
4329 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
4330 | fi | |
4331 | ||
4332 | if test "$wxUSE_FS_INET" = yes; then | |
698dcdb6 | 4333 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4334 | else |
698dcdb6 | 4335 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4336 | fi |
698dcdb6 | 4337 | |
10f2d63a | 4338 | |
698dcdb6 | 4339 | echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6 |
cb61c62d | 4340 | echo "configure:4341: checking for --enable-fs_zip" >&5 |
10f2d63a VZ |
4341 | no_cache=0 |
4342 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
4343 | if test "${enable_fs_zip+set}" = set; then | |
4344 | enableval="$enable_fs_zip" | |
698dcdb6 | 4345 | |
10f2d63a VZ |
4346 | if test "$enableval" = yes; then |
4347 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
4348 | else | |
4349 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
4350 | fi | |
698dcdb6 | 4351 | |
10f2d63a | 4352 | else |
698dcdb6 | 4353 | |
10f2d63a VZ |
4354 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` |
4355 | if test "x$LINE" != x ; then | |
4356 | eval "DEFAULT_$LINE" | |
4357 | else | |
4358 | no_cache=1 | |
4359 | fi | |
4360 | ||
4361 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
698dcdb6 VZ |
4362 | |
4363 | fi | |
10f2d63a VZ |
4364 | |
4365 | ||
4366 | eval "$ac_cv_use_fs_zip" | |
4367 | if test "$no_cache" != 1; then | |
4368 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
4369 | fi | |
4370 | ||
4371 | if test "$wxUSE_FS_ZIP" = yes; then | |
698dcdb6 | 4372 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4373 | else |
698dcdb6 | 4374 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4375 | fi |
698dcdb6 | 4376 | |
10f2d63a | 4377 | |
698dcdb6 | 4378 | echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6 |
cb61c62d | 4379 | echo "configure:4380: checking for --enable-zipstream" >&5 |
10f2d63a VZ |
4380 | no_cache=0 |
4381 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
4382 | if test "${enable_zipstream+set}" = set; then | |
4383 | enableval="$enable_zipstream" | |
698dcdb6 | 4384 | |
10f2d63a VZ |
4385 | if test "$enableval" = yes; then |
4386 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
4387 | else | |
4388 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
4389 | fi | |
698dcdb6 | 4390 | |
10f2d63a | 4391 | else |
698dcdb6 | 4392 | |
10f2d63a VZ |
4393 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` |
4394 | if test "x$LINE" != x ; then | |
4395 | eval "DEFAULT_$LINE" | |
4396 | else | |
4397 | no_cache=1 | |
4398 | fi | |
4399 | ||
4400 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
698dcdb6 VZ |
4401 | |
4402 | fi | |
10f2d63a VZ |
4403 | |
4404 | ||
4405 | eval "$ac_cv_use_zipstream" | |
4406 | if test "$no_cache" != 1; then | |
4407 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
4408 | fi | |
4409 | ||
4410 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
698dcdb6 | 4411 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4412 | else |
698dcdb6 | 4413 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4414 | fi |
698dcdb6 | 4415 | |
10f2d63a | 4416 | |
698dcdb6 VZ |
4417 | |
4418 | echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6 | |
cb61c62d | 4419 | echo "configure:4420: checking for --enable-catch_segvs" >&5 |
eb4efbdc VZ |
4420 | no_cache=0 |
4421 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
4422 | if test "${enable_catch_segvs+set}" = set; then | |
4423 | enableval="$enable_catch_segvs" | |
698dcdb6 | 4424 | |
eb4efbdc VZ |
4425 | if test "$enableval" = yes; then |
4426 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
4427 | else | |
4428 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
4429 | fi | |
698dcdb6 | 4430 | |
eb4efbdc | 4431 | else |
698dcdb6 | 4432 | |
eb4efbdc VZ |
4433 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
4434 | if test "x$LINE" != x ; then | |
4435 | eval "DEFAULT_$LINE" | |
4436 | else | |
4437 | no_cache=1 | |
4438 | fi | |
4439 | ||
4440 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
698dcdb6 VZ |
4441 | |
4442 | fi | |
eb4efbdc VZ |
4443 | |
4444 | ||
4445 | eval "$ac_cv_use_catch_segvs" | |
4446 | if test "$no_cache" != 1; then | |
4447 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4448 | fi | |
4449 | ||
4450 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
698dcdb6 | 4451 | echo "$ac_t""yes" 1>&6 |
eb4efbdc | 4452 | else |
698dcdb6 | 4453 | echo "$ac_t""no" 1>&6 |
eb4efbdc | 4454 | fi |
698dcdb6 | 4455 | |
eb4efbdc | 4456 | |
698dcdb6 | 4457 | echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6 |
cb61c62d | 4458 | echo "configure:4459: checking for --enable-snglinst" >&5 |
4f3c5f06 VZ |
4459 | no_cache=0 |
4460 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
4461 | if test "${enable_snglinst+set}" = set; then | |
4462 | enableval="$enable_snglinst" | |
698dcdb6 | 4463 | |
4f3c5f06 VZ |
4464 | if test "$enableval" = yes; then |
4465 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
4466 | else | |
4467 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
4468 | fi | |
698dcdb6 | 4469 | |
4f3c5f06 | 4470 | else |
698dcdb6 | 4471 | |
4f3c5f06 VZ |
4472 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` |
4473 | if test "x$LINE" != x ; then | |
4474 | eval "DEFAULT_$LINE" | |
4475 | else | |
4476 | no_cache=1 | |
4477 | fi | |
4478 | ||
4479 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
698dcdb6 VZ |
4480 | |
4481 | fi | |
4f3c5f06 VZ |
4482 | |
4483 | ||
4484 | eval "$ac_cv_use_snglinst" | |
4485 | if test "$no_cache" != 1; then | |
4486 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
4487 | fi | |
4488 | ||
4489 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
698dcdb6 | 4490 | echo "$ac_t""yes" 1>&6 |
4f3c5f06 | 4491 | else |
698dcdb6 | 4492 | echo "$ac_t""no" 1>&6 |
4f3c5f06 | 4493 | fi |
698dcdb6 VZ |
4494 | |
4495 | ||
eb4efbdc | 4496 | |
1e6feb95 | 4497 | echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6 |
cb61c62d | 4498 | echo "configure:4499: checking for --enable-mimetype" >&5 |
1e6feb95 VZ |
4499 | no_cache=0 |
4500 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
4501 | if test "${enable_mimetype+set}" = set; then | |
4502 | enableval="$enable_mimetype" | |
4503 | ||
4504 | if test "$enableval" = yes; then | |
4505 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
4506 | else | |
4507 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
4508 | fi | |
4509 | ||
4510 | else | |
4511 | ||
4512 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
4513 | if test "x$LINE" != x ; then | |
4514 | eval "DEFAULT_$LINE" | |
4515 | else | |
4516 | no_cache=1 | |
4517 | fi | |
4518 | ||
4519 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
4520 | ||
4521 | fi | |
4522 | ||
4523 | ||
4524 | eval "$ac_cv_use_mimetype" | |
4525 | if test "$no_cache" != 1; then | |
4526 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
4527 | fi | |
4528 | ||
4529 | if test "$wxUSE_MIMETYPE" = yes; then | |
4530 | echo "$ac_t""yes" 1>&6 | |
4531 | else | |
4532 | echo "$ac_t""no" 1>&6 | |
4533 | fi | |
4534 | ||
4535 | ||
3e44f09d | 4536 | echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6 |
cb61c62d | 4537 | echo "configure:4538: checking for --enable-system_options" >&5 |
3e44f09d VZ |
4538 | no_cache=0 |
4539 | # Check whether --enable-system_options or --disable-system_options was given. | |
4540 | if test "${enable_system_options+set}" = set; then | |
4541 | enableval="$enable_system_options" | |
4542 | ||
4543 | if test "$enableval" = yes; then | |
4544 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
4545 | else | |
4546 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
4547 | fi | |
4548 | ||
4549 | else | |
4550 | ||
4551 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` | |
4552 | if test "x$LINE" != x ; then | |
4553 | eval "DEFAULT_$LINE" | |
4554 | else | |
4555 | no_cache=1 | |
4556 | fi | |
4557 | ||
4558 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
4559 | ||
4560 | fi | |
4561 | ||
4562 | ||
4563 | eval "$ac_cv_use_system_options" | |
4564 | if test "$no_cache" != 1; then | |
4565 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
4566 | fi | |
4567 | ||
4568 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
4569 | echo "$ac_t""yes" 1>&6 | |
4570 | else | |
4571 | echo "$ac_t""no" 1>&6 | |
4572 | fi | |
4573 | ||
4574 | ||
1e6feb95 | 4575 | |
4cdb0ab0 | 4576 | echo $ac_n "checking for --enable-url""... $ac_c" 1>&6 |
cb61c62d | 4577 | echo "configure:4578: checking for --enable-url" >&5 |
4cdb0ab0 VS |
4578 | no_cache=0 |
4579 | # Check whether --enable-url or --disable-url was given. | |
4580 | if test "${enable_url+set}" = set; then | |
4581 | enableval="$enable_url" | |
4582 | ||
4583 | if test "$enableval" = yes; then | |
4584 | ac_cv_use_url='wxUSE_URL=yes' | |
4585 | else | |
4586 | ac_cv_use_url='wxUSE_URL=no' | |
4587 | fi | |
4588 | ||
4589 | else | |
4590 | ||
4591 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` | |
4592 | if test "x$LINE" != x ; then | |
4593 | eval "DEFAULT_$LINE" | |
4594 | else | |
4595 | no_cache=1 | |
4596 | fi | |
4597 | ||
4598 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
4599 | ||
4600 | fi | |
4601 | ||
4602 | ||
4603 | eval "$ac_cv_use_url" | |
4604 | if test "$no_cache" != 1; then | |
4605 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
4606 | fi | |
4607 | ||
4608 | if test "$wxUSE_URL" = yes; then | |
4609 | echo "$ac_t""yes" 1>&6 | |
4610 | else | |
4611 | echo "$ac_t""no" 1>&6 | |
4612 | fi | |
4613 | ||
4614 | ||
4615 | echo $ac_n "checking for --enable-protocol""... $ac_c" 1>&6 | |
cb61c62d | 4616 | echo "configure:4617: checking for --enable-protocol" >&5 |
4cdb0ab0 VS |
4617 | no_cache=0 |
4618 | # Check whether --enable-protocol or --disable-protocol was given. | |
4619 | if test "${enable_protocol+set}" = set; then | |
4620 | enableval="$enable_protocol" | |
4621 | ||
4622 | if test "$enableval" = yes; then | |
4623 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
4624 | else | |
4625 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
4626 | fi | |
4627 | ||
4628 | else | |
4629 | ||
4630 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
4631 | if test "x$LINE" != x ; then | |
4632 | eval "DEFAULT_$LINE" | |
4633 | else | |
4634 | no_cache=1 | |
4635 | fi | |
4636 | ||
4637 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
4638 | ||
4639 | fi | |
4640 | ||
4641 | ||
4642 | eval "$ac_cv_use_protocol" | |
4643 | if test "$no_cache" != 1; then | |
4644 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
4645 | fi | |
4646 | ||
4647 | if test "$wxUSE_PROTOCOL" = yes; then | |
4648 | echo "$ac_t""yes" 1>&6 | |
4649 | else | |
4650 | echo "$ac_t""no" 1>&6 | |
4651 | fi | |
4652 | ||
4653 | ||
4654 | echo $ac_n "checking for --enable-protocol_http""... $ac_c" 1>&6 | |
cb61c62d | 4655 | echo "configure:4656: checking for --enable-protocol_http" >&5 |
4cdb0ab0 VS |
4656 | no_cache=0 |
4657 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
4658 | if test "${enable_protocol_http+set}" = set; then | |
4659 | enableval="$enable_protocol_http" | |
4660 | ||
4661 | if test "$enableval" = yes; then | |
4662 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
4663 | else | |
4664 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
4665 | fi | |
4666 | ||
4667 | else | |
4668 | ||
4669 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
4670 | if test "x$LINE" != x ; then | |
4671 | eval "DEFAULT_$LINE" | |
4672 | else | |
4673 | no_cache=1 | |
4674 | fi | |
4675 | ||
4676 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
4677 | ||
4678 | fi | |
4679 | ||
4680 | ||
4681 | eval "$ac_cv_use_protocol_http" | |
4682 | if test "$no_cache" != 1; then | |
4683 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
4684 | fi | |
4685 | ||
4686 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
4687 | echo "$ac_t""yes" 1>&6 | |
4688 | else | |
4689 | echo "$ac_t""no" 1>&6 | |
4690 | fi | |
4691 | ||
4692 | ||
4693 | echo $ac_n "checking for --enable-protocol_ftp""... $ac_c" 1>&6 | |
cb61c62d | 4694 | echo "configure:4695: checking for --enable-protocol_ftp" >&5 |
4cdb0ab0 VS |
4695 | no_cache=0 |
4696 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
4697 | if test "${enable_protocol_ftp+set}" = set; then | |
4698 | enableval="$enable_protocol_ftp" | |
4699 | ||
4700 | if test "$enableval" = yes; then | |
4701 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4702 | else | |
4703 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
4704 | fi | |
4705 | ||
4706 | else | |
4707 | ||
4708 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
4709 | if test "x$LINE" != x ; then | |
4710 | eval "DEFAULT_$LINE" | |
4711 | else | |
4712 | no_cache=1 | |
4713 | fi | |
4714 | ||
4715 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
4716 | ||
4717 | fi | |
4718 | ||
4719 | ||
4720 | eval "$ac_cv_use_protocol_ftp" | |
4721 | if test "$no_cache" != 1; then | |
4722 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
4723 | fi | |
4724 | ||
4725 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
4726 | echo "$ac_t""yes" 1>&6 | |
4727 | else | |
4728 | echo "$ac_t""no" 1>&6 | |
4729 | fi | |
4730 | ||
4731 | ||
4732 | echo $ac_n "checking for --enable-protocol_file""... $ac_c" 1>&6 | |
cb61c62d | 4733 | echo "configure:4734: checking for --enable-protocol_file" >&5 |
4cdb0ab0 VS |
4734 | no_cache=0 |
4735 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
4736 | if test "${enable_protocol_file+set}" = set; then | |
4737 | enableval="$enable_protocol_file" | |
4738 | ||
4739 | if test "$enableval" = yes; then | |
4740 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
4741 | else | |
4742 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
4743 | fi | |
4744 | ||
4745 | else | |
4746 | ||
4747 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
4748 | if test "x$LINE" != x ; then | |
4749 | eval "DEFAULT_$LINE" | |
4750 | else | |
4751 | no_cache=1 | |
4752 | fi | |
4753 | ||
4754 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
4755 | ||
4756 | fi | |
4757 | ||
4758 | ||
4759 | eval "$ac_cv_use_protocol_file" | |
4760 | if test "$no_cache" != 1; then | |
4761 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
4762 | fi | |
4763 | ||
4764 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
4765 | echo "$ac_t""yes" 1>&6 | |
4766 | else | |
4767 | echo "$ac_t""no" 1>&6 | |
4768 | fi | |
4769 | ||
4770 | ||
4771 | ||
4772 | ||
698dcdb6 VZ |
4773 | |
4774 | echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6 | |
cb61c62d | 4775 | echo "configure:4776: checking for --enable-threads" >&5 |
10f2d63a VZ |
4776 | no_cache=0 |
4777 | # Check whether --enable-threads or --disable-threads was given. | |
4778 | if test "${enable_threads+set}" = set; then | |
4779 | enableval="$enable_threads" | |
698dcdb6 | 4780 | |
10f2d63a VZ |
4781 | if test "$enableval" = yes; then |
4782 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
4783 | else | |
4784 | ac_cv_use_threads='wxUSE_THREADS=no' | |
4785 | fi | |
698dcdb6 | 4786 | |
10f2d63a | 4787 | else |
698dcdb6 | 4788 | |
10f2d63a VZ |
4789 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` |
4790 | if test "x$LINE" != x ; then | |
4791 | eval "DEFAULT_$LINE" | |
4792 | else | |
4793 | no_cache=1 | |
4794 | fi | |
4795 | ||
4796 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
698dcdb6 VZ |
4797 | |
4798 | fi | |
10f2d63a VZ |
4799 | |
4800 | ||
4801 | eval "$ac_cv_use_threads" | |
4802 | if test "$no_cache" != 1; then | |
4803 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
4804 | fi | |
4805 | ||
4806 | if test "$wxUSE_THREADS" = yes; then | |
698dcdb6 | 4807 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4808 | else |
698dcdb6 | 4809 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4810 | fi |
698dcdb6 | 4811 | |
10f2d63a | 4812 | |
b12915c1 VZ |
4813 | if test "$wxUSE_GUI" = "yes"; then |
4814 | ||
698dcdb6 VZ |
4815 | |
4816 | ||
4817 | echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6 | |
cb61c62d | 4818 | echo "configure:4819: checking for --enable-docview" >&5 |
10f2d63a VZ |
4819 | no_cache=0 |
4820 | # Check whether --enable-docview or --disable-docview was given. | |
4821 | if test "${enable_docview+set}" = set; then | |
4822 | enableval="$enable_docview" | |
698dcdb6 | 4823 | |
10f2d63a VZ |
4824 | if test "$enableval" = yes; then |
4825 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
4826 | else | |
4827 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
4828 | fi | |
698dcdb6 | 4829 | |
10f2d63a | 4830 | else |
698dcdb6 | 4831 | |
10f2d63a VZ |
4832 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` |
4833 | if test "x$LINE" != x ; then | |
4834 | eval "DEFAULT_$LINE" | |
4835 | else | |
4836 | no_cache=1 | |
4837 | fi | |
4838 | ||
4839 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
698dcdb6 VZ |
4840 | |
4841 | fi | |
10f2d63a VZ |
4842 | |
4843 | ||
4844 | eval "$ac_cv_use_docview" | |
4845 | if test "$no_cache" != 1; then | |
4846 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
4847 | fi | |
4848 | ||
4849 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
698dcdb6 | 4850 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4851 | else |
698dcdb6 | 4852 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4853 | fi |
698dcdb6 | 4854 | |
10f2d63a | 4855 | |
698dcdb6 | 4856 | echo $ac_n "checking for --enable-help""... $ac_c" 1>&6 |
cb61c62d | 4857 | echo "configure:4858: checking for --enable-help" >&5 |
10f2d63a VZ |
4858 | no_cache=0 |
4859 | # Check whether --enable-help or --disable-help was given. | |
4860 | if test "${enable_help+set}" = set; then | |
4861 | enableval="$enable_help" | |
698dcdb6 | 4862 | |
10f2d63a VZ |
4863 | if test "$enableval" = yes; then |
4864 | ac_cv_use_help='wxUSE_HELP=yes' | |
4865 | else | |
4866 | ac_cv_use_help='wxUSE_HELP=no' | |
4867 | fi | |
698dcdb6 | 4868 | |
10f2d63a | 4869 | else |
698dcdb6 | 4870 | |
10f2d63a VZ |
4871 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` |
4872 | if test "x$LINE" != x ; then | |
4873 | eval "DEFAULT_$LINE" | |
4874 | else | |
4875 | no_cache=1 | |
4876 | fi | |
4877 | ||
4878 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
698dcdb6 VZ |
4879 | |
4880 | fi | |
10f2d63a VZ |
4881 | |
4882 | ||
4883 | eval "$ac_cv_use_help" | |
4884 | if test "$no_cache" != 1; then | |
4885 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
4886 | fi | |
4887 | ||
4888 | if test "$wxUSE_HELP" = yes; then | |
698dcdb6 | 4889 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4890 | else |
698dcdb6 | 4891 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4892 | fi |
698dcdb6 | 4893 | |
10f2d63a | 4894 | |
29fd3c0c | 4895 | echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6 |
cb61c62d | 4896 | echo "configure:4897: checking for --enable-mshtmlhelp" >&5 |
29fd3c0c VS |
4897 | no_cache=0 |
4898 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
4899 | if test "${enable_mshtmlhelp+set}" = set; then | |
4900 | enableval="$enable_mshtmlhelp" | |
4901 | ||
4902 | if test "$enableval" = yes; then | |
4903 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
4904 | else | |
4905 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
4906 | fi | |
4907 | ||
4908 | else | |
4909 | ||
4910 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` | |
4911 | if test "x$LINE" != x ; then | |
4912 | eval "DEFAULT_$LINE" | |
4913 | else | |
4914 | no_cache=1 | |
4915 | fi | |
4916 | ||
4917 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
4918 | ||
4919 | fi | |
4920 | ||
4921 | ||
4922 | eval "$ac_cv_use_mshtmlhelp" | |
4923 | if test "$no_cache" != 1; then | |
4924 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
4925 | fi | |
4926 | ||
4927 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
4928 | echo "$ac_t""yes" 1>&6 | |
4929 | else | |
4930 | echo "$ac_t""no" 1>&6 | |
4931 | fi | |
4932 | ||
4933 | ||
3379ed37 | 4934 | echo $ac_n "checking for --enable-html""... $ac_c" 1>&6 |
cb61c62d | 4935 | echo "configure:4936: checking for --enable-html" >&5 |
3379ed37 VZ |
4936 | no_cache=0 |
4937 | # Check whether --enable-html or --disable-html was given. | |
4938 | if test "${enable_html+set}" = set; then | |
4939 | enableval="$enable_html" | |
4940 | ||
4941 | if test "$enableval" = yes; then | |
4942 | ac_cv_use_html='wxUSE_HTML=yes' | |
4943 | else | |
4944 | ac_cv_use_html='wxUSE_HTML=no' | |
4945 | fi | |
4946 | ||
4947 | else | |
4948 | ||
4949 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
4950 | if test "x$LINE" != x ; then | |
4951 | eval "DEFAULT_$LINE" | |
4952 | else | |
4953 | no_cache=1 | |
4954 | fi | |
4955 | ||
4956 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
4957 | ||
4958 | fi | |
4959 | ||
4960 | ||
4961 | eval "$ac_cv_use_html" | |
4962 | if test "$no_cache" != 1; then | |
4963 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
4964 | fi | |
4965 | ||
4966 | if test "$wxUSE_HTML" = yes; then | |
4967 | echo "$ac_t""yes" 1>&6 | |
4968 | else | |
4969 | echo "$ac_t""no" 1>&6 | |
4970 | fi | |
4971 | ||
4972 | ||
4973 | echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6 | |
cb61c62d | 4974 | echo "configure:4975: checking for --enable-htmlhelp" >&5 |
3379ed37 VZ |
4975 | no_cache=0 |
4976 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
4977 | if test "${enable_htmlhelp+set}" = set; then | |
4978 | enableval="$enable_htmlhelp" | |
4979 | ||
4980 | if test "$enableval" = yes; then | |
4981 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
4982 | else | |
4983 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
4984 | fi | |
4985 | ||
4986 | else | |
4987 | ||
4988 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` | |
4989 | if test "x$LINE" != x ; then | |
4990 | eval "DEFAULT_$LINE" | |
4991 | else | |
4992 | no_cache=1 | |
4993 | fi | |
4994 | ||
4995 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
4996 | ||
4997 | fi | |
4998 | ||
4999 | ||
5000 | eval "$ac_cv_use_htmlhelp" | |
5001 | if test "$no_cache" != 1; then | |
5002 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
5003 | fi | |
5004 | ||
5005 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
5006 | echo "$ac_t""yes" 1>&6 | |
5007 | else | |
5008 | echo "$ac_t""no" 1>&6 | |
5009 | fi | |
5010 | ||
5011 | ||
698dcdb6 | 5012 | echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6 |
cb61c62d | 5013 | echo "configure:5014: checking for --enable-constraints" >&5 |
10f2d63a VZ |
5014 | no_cache=0 |
5015 | # Check whether --enable-constraints or --disable-constraints was given. | |
5016 | if test "${enable_constraints+set}" = set; then | |
5017 | enableval="$enable_constraints" | |
698dcdb6 | 5018 | |
10f2d63a VZ |
5019 | if test "$enableval" = yes; then |
5020 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
5021 | else | |
5022 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
5023 | fi | |
698dcdb6 | 5024 | |
10f2d63a | 5025 | else |
698dcdb6 | 5026 | |
10f2d63a VZ |
5027 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` |
5028 | if test "x$LINE" != x ; then | |
5029 | eval "DEFAULT_$LINE" | |
5030 | else | |
5031 | no_cache=1 | |
5032 | fi | |
5033 | ||
5034 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
698dcdb6 VZ |
5035 | |
5036 | fi | |
10f2d63a VZ |
5037 | |
5038 | ||
5039 | eval "$ac_cv_use_constraints" | |
5040 | if test "$no_cache" != 1; then | |
5041 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
5042 | fi | |
5043 | ||
5044 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
698dcdb6 | 5045 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5046 | else |
698dcdb6 | 5047 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5048 | fi |
698dcdb6 | 5049 | |
10f2d63a | 5050 | |
698dcdb6 | 5051 | echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6 |
cb61c62d | 5052 | echo "configure:5053: checking for --enable-printarch" >&5 |
10f2d63a VZ |
5053 | no_cache=0 |
5054 | # Check whether --enable-printarch or --disable-printarch was given. | |
5055 | if test "${enable_printarch+set}" = set; then | |
5056 | enableval="$enable_printarch" | |
698dcdb6 | 5057 | |
10f2d63a VZ |
5058 | if test "$enableval" = yes; then |
5059 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
5060 | else | |
5061 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
5062 | fi | |
698dcdb6 | 5063 | |
10f2d63a | 5064 | else |
698dcdb6 | 5065 | |
10f2d63a VZ |
5066 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` |
5067 | if test "x$LINE" != x ; then | |
5068 | eval "DEFAULT_$LINE" | |
5069 | else | |
5070 | no_cache=1 | |
5071 | fi | |
5072 | ||
5073 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
698dcdb6 VZ |
5074 | |
5075 | fi | |
10f2d63a VZ |
5076 | |
5077 | ||
5078 | eval "$ac_cv_use_printarch" | |
5079 | if test "$no_cache" != 1; then | |
5080 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
5081 | fi | |
5082 | ||
5083 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
698dcdb6 | 5084 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5085 | else |
698dcdb6 | 5086 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5087 | fi |
698dcdb6 | 5088 | |
10f2d63a | 5089 | |
698dcdb6 | 5090 | echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6 |
cb61c62d | 5091 | echo "configure:5092: checking for --enable-mdi" >&5 |
10f2d63a VZ |
5092 | no_cache=0 |
5093 | # Check whether --enable-mdi or --disable-mdi was given. | |
5094 | if test "${enable_mdi+set}" = set; then | |
5095 | enableval="$enable_mdi" | |
698dcdb6 | 5096 | |
10f2d63a VZ |
5097 | if test "$enableval" = yes; then |
5098 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
5099 | else | |
5100 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
5101 | fi | |
698dcdb6 | 5102 | |
10f2d63a | 5103 | else |
698dcdb6 | 5104 | |
10f2d63a VZ |
5105 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` |
5106 | if test "x$LINE" != x ; then | |
5107 | eval "DEFAULT_$LINE" | |
5108 | else | |
5109 | no_cache=1 | |
5110 | fi | |
5111 | ||
5112 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
698dcdb6 VZ |
5113 | |
5114 | fi | |
10f2d63a VZ |
5115 | |
5116 | ||
5117 | eval "$ac_cv_use_mdi" | |
5118 | if test "$no_cache" != 1; then | |
5119 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
5120 | fi | |
5121 | ||
5122 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
698dcdb6 | 5123 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5124 | else |
698dcdb6 | 5125 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5126 | fi |
698dcdb6 VZ |
5127 | |
5128 | ||
1e6feb95 | 5129 | echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6 |
cb61c62d | 5130 | echo "configure:5131: checking for --enable-loggui" >&5 |
1e6feb95 VZ |
5131 | no_cache=0 |
5132 | # Check whether --enable-loggui or --disable-loggui was given. | |
5133 | if test "${enable_loggui+set}" = set; then | |
5134 | enableval="$enable_loggui" | |
5135 | ||
5136 | if test "$enableval" = yes; then | |
5137 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
5138 | else | |
5139 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
5140 | fi | |
5141 | ||
5142 | else | |
5143 | ||
5144 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
5145 | if test "x$LINE" != x ; then | |
5146 | eval "DEFAULT_$LINE" | |
5147 | else | |
5148 | no_cache=1 | |
5149 | fi | |
5150 | ||
5151 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
5152 | ||
5153 | fi | |
5154 | ||
5155 | ||
5156 | eval "$ac_cv_use_loggui" | |
5157 | if test "$no_cache" != 1; then | |
5158 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
5159 | fi | |
5160 | ||
5161 | if test "$wxUSE_LOGGUI" = yes; then | |
5162 | echo "$ac_t""yes" 1>&6 | |
5163 | else | |
5164 | echo "$ac_t""no" 1>&6 | |
5165 | fi | |
5166 | ||
5167 | ||
5168 | echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6 | |
cb61c62d | 5169 | echo "configure:5170: checking for --enable-logwin" >&5 |
1e6feb95 VZ |
5170 | no_cache=0 |
5171 | # Check whether --enable-logwin or --disable-logwin was given. | |
5172 | if test "${enable_logwin+set}" = set; then | |
5173 | enableval="$enable_logwin" | |
5174 | ||
5175 | if test "$enableval" = yes; then | |
5176 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
5177 | else | |
5178 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
5179 | fi | |
5180 | ||
5181 | else | |
5182 | ||
5183 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
5184 | if test "x$LINE" != x ; then | |
5185 | eval "DEFAULT_$LINE" | |
5186 | else | |
5187 | no_cache=1 | |
5188 | fi | |
5189 | ||
5190 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
5191 | ||
5192 | fi | |
5193 | ||
5194 | ||
5195 | eval "$ac_cv_use_logwin" | |
5196 | if test "$no_cache" != 1; then | |
5197 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
5198 | fi | |
5199 | ||
5200 | if test "$wxUSE_LOGWINDOW" = yes; then | |
5201 | echo "$ac_t""yes" 1>&6 | |
5202 | else | |
5203 | echo "$ac_t""no" 1>&6 | |
5204 | fi | |
5205 | ||
5206 | ||
69d27ff7 | 5207 | echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6 |
cb61c62d | 5208 | echo "configure:5209: checking for --enable-logdialog" >&5 |
69d27ff7 MB |
5209 | no_cache=0 |
5210 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
5211 | if test "${enable_logdialog+set}" = set; then | |
5212 | enableval="$enable_logdialog" | |
5213 | ||
5214 | if test "$enableval" = yes; then | |
5215 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
5216 | else | |
5217 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
5218 | fi | |
5219 | ||
5220 | else | |
5221 | ||
5222 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` | |
5223 | if test "x$LINE" != x ; then | |
5224 | eval "DEFAULT_$LINE" | |
5225 | else | |
5226 | no_cache=1 | |
5227 | fi | |
5228 | ||
5229 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
5230 | ||
5231 | fi | |
5232 | ||
5233 | ||
5234 | eval "$ac_cv_use_logdialog" | |
5235 | if test "$no_cache" != 1; then | |
5236 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
5237 | fi | |
5238 | ||
5239 | if test "$wxUSE_LOGDIALOG" = yes; then | |
5240 | echo "$ac_t""yes" 1>&6 | |
5241 | else | |
5242 | echo "$ac_t""no" 1>&6 | |
5243 | fi | |
5244 | ||
5245 | ||
10f2d63a | 5246 | |
698dcdb6 | 5247 | echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6 |
cb61c62d | 5248 | echo "configure:5249: checking for --enable-postscript" >&5 |
10f2d63a VZ |
5249 | no_cache=0 |
5250 | # Check whether --enable-postscript or --disable-postscript was given. | |
5251 | if test "${enable_postscript+set}" = set; then | |
5252 | enableval="$enable_postscript" | |
698dcdb6 | 5253 | |
10f2d63a VZ |
5254 | if test "$enableval" = yes; then |
5255 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
5256 | else | |
5257 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
5258 | fi | |
698dcdb6 | 5259 | |
10f2d63a | 5260 | else |
698dcdb6 | 5261 | |
10f2d63a VZ |
5262 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` |
5263 | if test "x$LINE" != x ; then | |
5264 | eval "DEFAULT_$LINE" | |
5265 | else | |
5266 | no_cache=1 | |
5267 | fi | |
5268 | ||
5269 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
698dcdb6 VZ |
5270 | |
5271 | fi | |
10f2d63a VZ |
5272 | |
5273 | ||
5274 | eval "$ac_cv_use_postscript" | |
5275 | if test "$no_cache" != 1; then | |
5276 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
5277 | fi | |
5278 | ||
5279 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
698dcdb6 | 5280 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5281 | else |
698dcdb6 | 5282 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5283 | fi |
698dcdb6 VZ |
5284 | |
5285 | ||
5286 | ||
10f2d63a | 5287 | |
1e6feb95 | 5288 | |
698dcdb6 | 5289 | echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6 |
cb61c62d | 5290 | echo "configure:5291: checking for --enable-prologio" >&5 |
10f2d63a VZ |
5291 | no_cache=0 |
5292 | # Check whether --enable-prologio or --disable-prologio was given. | |
5293 | if test "${enable_prologio+set}" = set; then | |
5294 | enableval="$enable_prologio" | |
698dcdb6 | 5295 | |
10f2d63a VZ |
5296 | if test "$enableval" = yes; then |
5297 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
5298 | else | |
5299 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
5300 | fi | |
698dcdb6 | 5301 | |
10f2d63a | 5302 | else |
698dcdb6 | 5303 | |
10f2d63a VZ |
5304 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` |
5305 | if test "x$LINE" != x ; then | |
5306 | eval "DEFAULT_$LINE" | |
5307 | else | |
5308 | no_cache=1 | |
5309 | fi | |
5310 | ||
5311 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
698dcdb6 VZ |
5312 | |
5313 | fi | |
10f2d63a VZ |
5314 | |
5315 | ||
5316 | eval "$ac_cv_use_prologio" | |
5317 | if test "$no_cache" != 1; then | |
5318 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
5319 | fi | |
5320 | ||
5321 | if test "$wxUSE_PROLOGIO" = yes; then | |
698dcdb6 | 5322 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5323 | else |
698dcdb6 | 5324 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5325 | fi |
698dcdb6 | 5326 | |
10f2d63a | 5327 | |
698dcdb6 | 5328 | echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6 |
cb61c62d | 5329 | echo "configure:5330: checking for --enable-resources" >&5 |
10f2d63a VZ |
5330 | no_cache=0 |
5331 | # Check whether --enable-resources or --disable-resources was given. | |
5332 | if test "${enable_resources+set}" = set; then | |
5333 | enableval="$enable_resources" | |
698dcdb6 | 5334 | |
10f2d63a VZ |
5335 | if test "$enableval" = yes; then |
5336 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
5337 | else | |
5338 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
5339 | fi | |
698dcdb6 | 5340 | |
10f2d63a | 5341 | else |
698dcdb6 | 5342 | |
10f2d63a VZ |
5343 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` |
5344 | if test "x$LINE" != x ; then | |
5345 | eval "DEFAULT_$LINE" | |
5346 | else | |
5347 | no_cache=1 | |
5348 | fi | |
5349 | ||
5350 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
698dcdb6 VZ |
5351 | |
5352 | fi | |
10f2d63a VZ |
5353 | |
5354 | ||
5355 | eval "$ac_cv_use_resources" | |
5356 | if test "$no_cache" != 1; then | |
5357 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
5358 | fi | |
5359 | ||
5360 | if test "$wxUSE_RESOURCES" = yes; then | |
698dcdb6 | 5361 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5362 | else |
698dcdb6 | 5363 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5364 | fi |
698dcdb6 | 5365 | |
10f2d63a | 5366 | |
698dcdb6 VZ |
5367 | |
5368 | echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6 | |
cb61c62d | 5369 | echo "configure:5370: checking for --enable-xresources" >&5 |
10f2d63a VZ |
5370 | no_cache=0 |
5371 | # Check whether --enable-xresources or --disable-xresources was given. | |
5372 | if test "${enable_xresources+set}" = set; then | |
5373 | enableval="$enable_xresources" | |
698dcdb6 | 5374 | |
10f2d63a VZ |
5375 | if test "$enableval" = yes; then |
5376 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
5377 | else | |
5378 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
5379 | fi | |
698dcdb6 | 5380 | |
10f2d63a | 5381 | else |
698dcdb6 | 5382 | |
10f2d63a VZ |
5383 | LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}` |
5384 | if test "x$LINE" != x ; then | |
5385 | eval "DEFAULT_$LINE" | |
5386 | else | |
5387 | no_cache=1 | |
5388 | fi | |
5389 | ||
5390 | ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
698dcdb6 VZ |
5391 | |
5392 | fi | |
10f2d63a VZ |
5393 | |
5394 | ||
5395 | eval "$ac_cv_use_xresources" | |
5396 | if test "$no_cache" != 1; then | |
5397 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
5398 | fi | |
5399 | ||
5400 | if test "$wxUSE_X_RESOURCES" = yes; then | |
698dcdb6 | 5401 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5402 | else |
698dcdb6 | 5403 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5404 | fi |
698dcdb6 VZ |
5405 | |
5406 | ||
10f2d63a | 5407 | |
698dcdb6 VZ |
5408 | |
5409 | echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6 | |
cb61c62d | 5410 | echo "configure:5411: checking for --enable-clipboard" >&5 |
10f2d63a VZ |
5411 | no_cache=0 |
5412 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
5413 | if test "${enable_clipboard+set}" = set; then | |
5414 | enableval="$enable_clipboard" | |
698dcdb6 | 5415 | |
10f2d63a VZ |
5416 | if test "$enableval" = yes; then |
5417 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
5418 | else | |
5419 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
5420 | fi | |
698dcdb6 | 5421 | |
10f2d63a | 5422 | else |
698dcdb6 | 5423 | |
10f2d63a VZ |
5424 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` |
5425 | if test "x$LINE" != x ; then | |
5426 | eval "DEFAULT_$LINE" | |
5427 | else | |
5428 | no_cache=1 | |
5429 | fi | |
5430 | ||
5431 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
698dcdb6 VZ |
5432 | |
5433 | fi | |
10f2d63a VZ |
5434 | |
5435 | ||
5436 | eval "$ac_cv_use_clipboard" | |
5437 | if test "$no_cache" != 1; then | |
5438 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
5439 | fi | |
5440 | ||
5441 | if test "$wxUSE_CLIPBOARD" = yes; then | |
698dcdb6 | 5442 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5443 | else |
698dcdb6 | 5444 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5445 | fi |
698dcdb6 | 5446 | |
10f2d63a | 5447 | |
698dcdb6 | 5448 | echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6 |
cb61c62d | 5449 | echo "configure:5450: checking for --enable-dnd" >&5 |
10f2d63a VZ |
5450 | no_cache=0 |
5451 | # Check whether --enable-dnd or --disable-dnd was given. | |
5452 | if test "${enable_dnd+set}" = set; then | |
5453 | enableval="$enable_dnd" | |
698dcdb6 | 5454 | |
10f2d63a VZ |
5455 | if test "$enableval" = yes; then |
5456 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
5457 | else | |
5458 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
5459 | fi | |
698dcdb6 | 5460 | |
10f2d63a | 5461 | else |
698dcdb6 | 5462 | |
10f2d63a VZ |
5463 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` |
5464 | if test "x$LINE" != x ; then | |
5465 | eval "DEFAULT_$LINE" | |
5466 | else | |
5467 | no_cache=1 | |
5468 | fi | |
5469 | ||
5470 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
698dcdb6 VZ |
5471 | |
5472 | fi | |
10f2d63a VZ |
5473 | |
5474 | ||
5475 | eval "$ac_cv_use_dnd" | |
5476 | if test "$no_cache" != 1; then | |
5477 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
5478 | fi | |
5479 | ||
5480 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
698dcdb6 | 5481 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5482 | else |
698dcdb6 | 5483 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5484 | fi |
698dcdb6 | 5485 | |
10f2d63a | 5486 | |
698dcdb6 | 5487 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
cb61c62d | 5488 | echo "configure:5489: checking for --enable-metafile" >&5 |
b64f0a5f RL |
5489 | no_cache=0 |
5490 | # Check whether --enable-metafile or --disable-metafile was given. | |
5491 | if test "${enable_metafile+set}" = set; then | |
5492 | enableval="$enable_metafile" | |
698dcdb6 | 5493 | |
b64f0a5f RL |
5494 | if test "$enableval" = yes; then |
5495 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
5496 | else | |
5497 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
5498 | fi | |
698dcdb6 | 5499 | |
b64f0a5f | 5500 | else |
698dcdb6 | 5501 | |
b64f0a5f RL |
5502 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
5503 | if test "x$LINE" != x ; then | |
5504 | eval "DEFAULT_$LINE" | |
5505 | else | |
5506 | no_cache=1 | |
5507 | fi | |
5508 | ||
5509 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
698dcdb6 VZ |
5510 | |
5511 | fi | |
b64f0a5f RL |
5512 | |
5513 | ||
5514 | eval "$ac_cv_use_metafile" | |
5515 | if test "$no_cache" != 1; then | |
5516 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
5517 | fi | |
5518 | ||
5519 | if test "$wxUSE_METAFILE" = yes; then | |
698dcdb6 | 5520 | echo "$ac_t""yes" 1>&6 |
b64f0a5f | 5521 | else |
698dcdb6 | 5522 | echo "$ac_t""no" 1>&6 |
b64f0a5f | 5523 | fi |
698dcdb6 VZ |
5524 | |
5525 | ||
10f2d63a | 5526 | |
24176f2c | 5527 | echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6 |
cb61c62d | 5528 | echo "configure:5529: checking for --enable-treelayout" >&5 |
10f2d63a | 5529 | no_cache=0 |
24176f2c GD |
5530 | # Check whether --enable-treelayout or --disable-treelayout was given. |
5531 | if test "${enable_treelayout+set}" = set; then | |
5532 | enableval="$enable_treelayout" | |
698dcdb6 | 5533 | |
10f2d63a | 5534 | if test "$enableval" = yes; then |
24176f2c | 5535 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes' |
10f2d63a | 5536 | else |
24176f2c | 5537 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=no' |
10f2d63a | 5538 | fi |
698dcdb6 | 5539 | |
10f2d63a | 5540 | else |
698dcdb6 | 5541 | |
24176f2c | 5542 | LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}` |
10f2d63a VZ |
5543 | if test "x$LINE" != x ; then |
5544 | eval "DEFAULT_$LINE" | |
5545 | else | |
5546 | no_cache=1 | |
5547 | fi | |
5548 | ||
24176f2c | 5549 | ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT |
698dcdb6 VZ |
5550 | |
5551 | fi | |
10f2d63a VZ |
5552 | |
5553 | ||
24176f2c | 5554 | eval "$ac_cv_use_treelayout" |
10f2d63a | 5555 | if test "$no_cache" != 1; then |
24176f2c | 5556 | echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5557 | fi |
5558 | ||
24176f2c | 5559 | if test "$wxUSE_TREELAYOUT" = yes; then |
698dcdb6 | 5560 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5561 | else |
698dcdb6 | 5562 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5563 | fi |
698dcdb6 | 5564 | |
10f2d63a | 5565 | |
698dcdb6 VZ |
5566 | |
5567 | ||
5568 | echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6 | |
cb61c62d | 5569 | echo "configure:5570: checking for --enable-controls" >&5 |
10f2d63a VZ |
5570 | no_cache=0 |
5571 | # Check whether --enable-controls or --disable-controls was given. | |
5572 | if test "${enable_controls+set}" = set; then | |
5573 | enableval="$enable_controls" | |
698dcdb6 | 5574 | |
10f2d63a VZ |
5575 | if test "$enableval" = yes; then |
5576 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
5577 | else | |
5578 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
5579 | fi | |
698dcdb6 | 5580 | |
10f2d63a | 5581 | else |
698dcdb6 | 5582 | |
10f2d63a VZ |
5583 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` |
5584 | if test "x$LINE" != x ; then | |
5585 | eval "DEFAULT_$LINE" | |
5586 | else | |
5587 | no_cache=1 | |
5588 | fi | |
5589 | ||
5590 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
698dcdb6 VZ |
5591 | |
5592 | fi | |
10f2d63a VZ |
5593 | |
5594 | ||
5595 | eval "$ac_cv_use_controls" | |
5596 | if test "$no_cache" != 1; then | |
5597 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
5598 | fi | |
5599 | ||
5600 | if test "$wxUSE_CONTROLS" = yes; then | |
698dcdb6 | 5601 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5602 | else |
698dcdb6 | 5603 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5604 | fi |
698dcdb6 | 5605 | |
10f2d63a VZ |
5606 | |
5607 | if test "$wxUSE_CONTROLS" = "yes"; then | |
5608 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 VZ |
5609 | DEFAULT_wxUSE_BMPBUTTON=yes |
5610 | DEFAULT_wxUSE_BUTTON=yes | |
5611 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5612 | DEFAULT_wxUSE_CARET=yes |
5613 | DEFAULT_wxUSE_COMBOBOX=yes | |
10f2d63a VZ |
5614 | DEFAULT_wxUSE_CHECKBOX=yes |
5615 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
5616 | DEFAULT_wxUSE_CHOICE=yes | |
5617 | DEFAULT_wxUSE_GAUGE=yes | |
5618 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 5619 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
5620 | DEFAULT_wxUSE_IMAGLIST=yes |
5621 | DEFAULT_wxUSE_LISTBOX=yes | |
5622 | DEFAULT_wxUSE_LISTCTRL=yes | |
5623 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 5624 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
5625 | DEFAULT_wxUSE_RADIOBOX=yes |
5626 | DEFAULT_wxUSE_RADIOBTN=yes | |
5627 | DEFAULT_wxUSE_SASH=yes | |
5628 | DEFAULT_wxUSE_SCROLLBAR=yes | |
5629 | DEFAULT_wxUSE_SLIDER=yes | |
5630 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 5631 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
5632 | DEFAULT_wxUSE_SPLITTER=yes |
5633 | DEFAULT_wxUSE_STATBMP=yes | |
5634 | DEFAULT_wxUSE_STATBOX=yes | |
5635 | DEFAULT_wxUSE_STATLINE=yes | |
5636 | DEFAULT_wxUSE_STATUSBAR=yes | |
5637 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 5638 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 5639 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
5640 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
5641 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
5642 | DEFAULT_wxUSE_TOOLTIPS=yes |
5643 | DEFAULT_wxUSE_TREECTRL=yes | |
9f41d601 | 5644 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 5645 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
5646 | elif test "$wxUSE_CONTROLS" = "no"; then |
5647 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 VZ |
5648 | DEFAULT_wxUSE_BMPBUTTON=no |
5649 | DEFAULT_wxUSE_BUTTON=no | |
5650 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5651 | DEFAULT_wxUSE_CARET=no |
5652 | DEFAULT_wxUSE_COMBOBOX=no | |
10f2d63a VZ |
5653 | DEFAULT_wxUSE_CHECKBOX=no |
5654 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
5655 | DEFAULT_wxUSE_CHOICE=no | |
5656 | DEFAULT_wxUSE_GAUGE=no | |
5657 | DEFAULT_wxUSE_GRID=no | |
5658 | DEFAULT_wxUSE_NEW_GRID=no | |
5659 | DEFAULT_wxUSE_IMAGLIST=no | |
5660 | DEFAULT_wxUSE_LISTBOX=no | |
5661 | DEFAULT_wxUSE_LISTCTRL=no | |
5662 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 5663 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
5664 | DEFAULT_wxUSE_RADIOBOX=no |
5665 | DEFAULT_wxUSE_RADIOBTN=no | |
5666 | DEFAULT_wxUSE_SASH=no | |
5667 | DEFAULT_wxUSE_SCROLLBAR=no | |
5668 | DEFAULT_wxUSE_SLIDER=no | |
5669 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 5670 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
5671 | DEFAULT_wxUSE_SPLITTER=no |
5672 | DEFAULT_wxUSE_STATBMP=no | |
5673 | DEFAULT_wxUSE_STATBOX=no | |
5674 | DEFAULT_wxUSE_STATLINE=no | |
5675 | DEFAULT_wxUSE_STATUSBAR=no | |
5676 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 5677 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 5678 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
5679 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
5680 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
5681 | DEFAULT_wxUSE_TOOLTIPS=no |
5682 | DEFAULT_wxUSE_TREECTRL=no | |
9f41d601 | 5683 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 5684 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
5685 | fi |
5686 | ||
698dcdb6 VZ |
5687 | |
5688 | echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6 | |
cb61c62d | 5689 | echo "configure:5690: checking for --enable-accel" >&5 |
10f2d63a VZ |
5690 | no_cache=0 |
5691 | # Check whether --enable-accel or --disable-accel was given. | |
5692 | if test "${enable_accel+set}" = set; then | |
5693 | enableval="$enable_accel" | |
698dcdb6 | 5694 | |
10f2d63a VZ |
5695 | if test "$enableval" = yes; then |
5696 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
5697 | else | |
5698 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
5699 | fi | |
698dcdb6 | 5700 | |
10f2d63a | 5701 | else |
698dcdb6 | 5702 | |
10f2d63a VZ |
5703 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` |
5704 | if test "x$LINE" != x ; then | |
5705 | eval "DEFAULT_$LINE" | |
5706 | else | |
5707 | no_cache=1 | |
5708 | fi | |
5709 | ||
5710 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
698dcdb6 VZ |
5711 | |
5712 | fi | |
10f2d63a VZ |
5713 | |
5714 | ||
5715 | eval "$ac_cv_use_accel" | |
5716 | if test "$no_cache" != 1; then | |
5717 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
5718 | fi | |
5719 | ||
5720 | if test "$wxUSE_ACCEL" = yes; then | |
698dcdb6 | 5721 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5722 | else |
698dcdb6 | 5723 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5724 | fi |
698dcdb6 | 5725 | |
10f2d63a | 5726 | |
1e6feb95 | 5727 | echo $ac_n "checking for --enable-button""... $ac_c" 1>&6 |
cb61c62d | 5728 | echo "configure:5729: checking for --enable-button" >&5 |
10f2d63a | 5729 | no_cache=0 |
1e6feb95 VZ |
5730 | # Check whether --enable-button or --disable-button was given. |
5731 | if test "${enable_button+set}" = set; then | |
5732 | enableval="$enable_button" | |
698dcdb6 | 5733 | |
10f2d63a | 5734 | if test "$enableval" = yes; then |
1e6feb95 | 5735 | ac_cv_use_button='wxUSE_BUTTON=yes' |
10f2d63a | 5736 | else |
1e6feb95 | 5737 | ac_cv_use_button='wxUSE_BUTTON=no' |
10f2d63a | 5738 | fi |
698dcdb6 | 5739 | |
10f2d63a | 5740 | else |
698dcdb6 | 5741 | |
1e6feb95 | 5742 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` |
10f2d63a VZ |
5743 | if test "x$LINE" != x ; then |
5744 | eval "DEFAULT_$LINE" | |
5745 | else | |
5746 | no_cache=1 | |
5747 | fi | |
5748 | ||
1e6feb95 | 5749 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON |
698dcdb6 VZ |
5750 | |
5751 | fi | |
10f2d63a VZ |
5752 | |
5753 | ||
1e6feb95 | 5754 | eval "$ac_cv_use_button" |
10f2d63a | 5755 | if test "$no_cache" != 1; then |
1e6feb95 | 5756 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5757 | fi |
5758 | ||
1e6feb95 | 5759 | if test "$wxUSE_BUTTON" = yes; then |
698dcdb6 | 5760 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5761 | else |
698dcdb6 | 5762 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5763 | fi |
698dcdb6 | 5764 | |
10f2d63a | 5765 | |
698dcdb6 | 5766 | echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6 |
cb61c62d | 5767 | echo "configure:5768: checking for --enable-bmpbutton" >&5 |
10f2d63a VZ |
5768 | no_cache=0 |
5769 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
5770 | if test "${enable_bmpbutton+set}" = set; then | |
5771 | enableval="$enable_bmpbutton" | |
698dcdb6 | 5772 | |
10f2d63a VZ |
5773 | if test "$enableval" = yes; then |
5774 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
5775 | else | |
5776 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
5777 | fi | |
698dcdb6 | 5778 | |
10f2d63a | 5779 | else |
698dcdb6 | 5780 | |
10f2d63a VZ |
5781 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` |
5782 | if test "x$LINE" != x ; then | |
5783 | eval "DEFAULT_$LINE" | |
5784 | else | |
5785 | no_cache=1 | |
5786 | fi | |
5787 | ||
5788 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
698dcdb6 VZ |
5789 | |
5790 | fi | |
10f2d63a VZ |
5791 | |
5792 | ||
5793 | eval "$ac_cv_use_bmpbutton" | |
5794 | if test "$no_cache" != 1; then | |
5795 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
5796 | fi | |
5797 | ||
5798 | if test "$wxUSE_BMPBUTTON" = yes; then | |
698dcdb6 | 5799 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5800 | else |
698dcdb6 | 5801 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5802 | fi |
698dcdb6 | 5803 | |
10f2d63a | 5804 | |
1e6feb95 | 5805 | echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6 |
cb61c62d | 5806 | echo "configure:5807: checking for --enable-calendar" >&5 |
1e6feb95 VZ |
5807 | no_cache=0 |
5808 | # Check whether --enable-calendar or --disable-calendar was given. | |
5809 | if test "${enable_calendar+set}" = set; then | |
5810 | enableval="$enable_calendar" | |
5811 | ||
5812 | if test "$enableval" = yes; then | |
5813 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
5814 | else | |
5815 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
5816 | fi | |
5817 | ||
5818 | else | |
5819 | ||
5820 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
5821 | if test "x$LINE" != x ; then | |
5822 | eval "DEFAULT_$LINE" | |
5823 | else | |
5824 | no_cache=1 | |
5825 | fi | |
5826 | ||
5827 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
5828 | ||
5829 | fi | |
5830 | ||
5831 | ||
5832 | eval "$ac_cv_use_calendar" | |
5833 | if test "$no_cache" != 1; then | |
5834 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
5835 | fi | |
5836 | ||
5837 | if test "$wxUSE_CALCTRL" = yes; then | |
5838 | echo "$ac_t""yes" 1>&6 | |
5839 | else | |
5840 | echo "$ac_t""no" 1>&6 | |
5841 | fi | |
5842 | ||
5843 | ||
5844 | echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6 | |
cb61c62d | 5845 | echo "configure:5846: checking for --enable-caret" >&5 |
1e6feb95 VZ |
5846 | no_cache=0 |
5847 | # Check whether --enable-caret or --disable-caret was given. | |
5848 | if test "${enable_caret+set}" = set; then | |
5849 | enableval="$enable_caret" | |
5850 | ||
5851 | if test "$enableval" = yes; then | |
5852 | ac_cv_use_caret='wxUSE_CARET=yes' | |
5853 | else | |
5854 | ac_cv_use_caret='wxUSE_CARET=no' | |
5855 | fi | |
5856 | ||
5857 | else | |
5858 | ||
5859 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
5860 | if test "x$LINE" != x ; then | |
5861 | eval "DEFAULT_$LINE" | |
5862 | else | |
5863 | no_cache=1 | |
5864 | fi | |
5865 | ||
5866 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
5867 | ||
5868 | fi | |
5869 | ||
5870 | ||
5871 | eval "$ac_cv_use_caret" | |
5872 | if test "$no_cache" != 1; then | |
5873 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
5874 | fi | |
5875 | ||
5876 | if test "$wxUSE_CARET" = yes; then | |
5877 | echo "$ac_t""yes" 1>&6 | |
5878 | else | |
5879 | echo "$ac_t""no" 1>&6 | |
5880 | fi | |
5881 | ||
5882 | ||
698dcdb6 | 5883 | echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6 |
cb61c62d | 5884 | echo "configure:5885: checking for --enable-checkbox" >&5 |
10f2d63a VZ |
5885 | no_cache=0 |
5886 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
5887 | if test "${enable_checkbox+set}" = set; then | |
5888 | enableval="$enable_checkbox" | |
698dcdb6 | 5889 | |
10f2d63a VZ |
5890 | if test "$enableval" = yes; then |
5891 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
5892 | else | |
5893 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
5894 | fi | |
698dcdb6 | 5895 | |
10f2d63a | 5896 | else |
698dcdb6 | 5897 | |
10f2d63a VZ |
5898 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` |
5899 | if test "x$LINE" != x ; then | |
5900 | eval "DEFAULT_$LINE" | |
5901 | else | |
5902 | no_cache=1 | |
5903 | fi | |
5904 | ||
5905 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
698dcdb6 VZ |
5906 | |
5907 | fi | |
10f2d63a VZ |
5908 | |
5909 | ||
5910 | eval "$ac_cv_use_checkbox" | |
5911 | if test "$no_cache" != 1; then | |
5912 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
5913 | fi | |
5914 | ||
5915 | if test "$wxUSE_CHECKBOX" = yes; then | |
698dcdb6 | 5916 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5917 | else |
698dcdb6 | 5918 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5919 | fi |
698dcdb6 | 5920 | |
10f2d63a | 5921 | |
698dcdb6 | 5922 | echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6 |
cb61c62d | 5923 | echo "configure:5924: checking for --enable-checklst" >&5 |
10f2d63a VZ |
5924 | no_cache=0 |
5925 | # Check whether --enable-checklst or --disable-checklst was given. | |
5926 | if test "${enable_checklst+set}" = set; then | |
5927 | enableval="$enable_checklst" | |
698dcdb6 | 5928 | |
10f2d63a VZ |
5929 | if test "$enableval" = yes; then |
5930 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
5931 | else | |
5932 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
5933 | fi | |
698dcdb6 | 5934 | |
10f2d63a | 5935 | else |
698dcdb6 | 5936 | |
10f2d63a VZ |
5937 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` |
5938 | if test "x$LINE" != x ; then | |
5939 | eval "DEFAULT_$LINE" | |
5940 | else | |
5941 | no_cache=1 | |
5942 | fi | |
5943 | ||
5944 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
698dcdb6 VZ |
5945 | |
5946 | fi | |
10f2d63a VZ |
5947 | |
5948 | ||
5949 | eval "$ac_cv_use_checklst" | |
5950 | if test "$no_cache" != 1; then | |
5951 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
5952 | fi | |
5953 | ||
5954 | if test "$wxUSE_CHECKLST" = yes; then | |
698dcdb6 | 5955 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5956 | else |
698dcdb6 | 5957 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5958 | fi |
698dcdb6 | 5959 | |
10f2d63a | 5960 | |
698dcdb6 | 5961 | echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6 |
cb61c62d | 5962 | echo "configure:5963: checking for --enable-choice" >&5 |
10f2d63a VZ |
5963 | no_cache=0 |
5964 | # Check whether --enable-choice or --disable-choice was given. | |
5965 | if test "${enable_choice+set}" = set; then | |
5966 | enableval="$enable_choice" | |
698dcdb6 | 5967 | |
10f2d63a VZ |
5968 | if test "$enableval" = yes; then |
5969 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
5970 | else | |
5971 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
5972 | fi | |
698dcdb6 | 5973 | |
10f2d63a | 5974 | else |
698dcdb6 | 5975 | |
10f2d63a VZ |
5976 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` |
5977 | if test "x$LINE" != x ; then | |
5978 | eval "DEFAULT_$LINE" | |
5979 | else | |
5980 | no_cache=1 | |
5981 | fi | |
5982 | ||
5983 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
698dcdb6 VZ |
5984 | |
5985 | fi | |
10f2d63a VZ |
5986 | |
5987 | ||
5988 | eval "$ac_cv_use_choice" | |
5989 | if test "$no_cache" != 1; then | |
5990 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
5991 | fi | |
5992 | ||
5993 | if test "$wxUSE_CHOICE" = yes; then | |
698dcdb6 | 5994 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5995 | else |
698dcdb6 | 5996 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5997 | fi |
698dcdb6 | 5998 | |
10f2d63a | 5999 | |
698dcdb6 | 6000 | echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6 |
cb61c62d | 6001 | echo "configure:6002: checking for --enable-combobox" >&5 |
10f2d63a VZ |
6002 | no_cache=0 |
6003 | # Check whether --enable-combobox or --disable-combobox was given. | |
6004 | if test "${enable_combobox+set}" = set; then | |
6005 | enableval="$enable_combobox" | |
698dcdb6 | 6006 | |
10f2d63a VZ |
6007 | if test "$enableval" = yes; then |
6008 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
6009 | else | |
6010 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
6011 | fi | |
698dcdb6 | 6012 | |
10f2d63a | 6013 | else |
698dcdb6 | 6014 | |
10f2d63a VZ |
6015 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` |
6016 | if test "x$LINE" != x ; then | |
6017 | eval "DEFAULT_$LINE" | |
6018 | else | |
6019 | no_cache=1 | |
6020 | fi | |
6021 | ||
6022 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
698dcdb6 VZ |
6023 | |
6024 | fi | |
10f2d63a VZ |
6025 | |
6026 | ||
6027 | eval "$ac_cv_use_combobox" | |
6028 | if test "$no_cache" != 1; then | |
6029 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
6030 | fi | |
6031 | ||
6032 | if test "$wxUSE_COMBOBOX" = yes; then | |
698dcdb6 | 6033 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6034 | else |
698dcdb6 | 6035 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6036 | fi |
698dcdb6 | 6037 | |
10f2d63a | 6038 | |
698dcdb6 | 6039 | echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6 |
cb61c62d | 6040 | echo "configure:6041: checking for --enable-gauge" >&5 |
10f2d63a VZ |
6041 | no_cache=0 |
6042 | # Check whether --enable-gauge or --disable-gauge was given. | |
6043 | if test "${enable_gauge+set}" = set; then | |
6044 | enableval="$enable_gauge" | |
698dcdb6 | 6045 | |
10f2d63a VZ |
6046 | if test "$enableval" = yes; then |
6047 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
6048 | else | |
6049 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
6050 | fi | |
698dcdb6 | 6051 | |
10f2d63a | 6052 | else |
698dcdb6 | 6053 | |
10f2d63a VZ |
6054 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` |
6055 | if test "x$LINE" != x ; then | |
6056 | eval "DEFAULT_$LINE" | |
6057 | else | |
6058 | no_cache=1 | |
6059 | fi | |
6060 | ||
6061 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
698dcdb6 VZ |
6062 | |
6063 | fi | |
10f2d63a VZ |
6064 | |
6065 | ||
6066 | eval "$ac_cv_use_gauge" | |
6067 | if test "$no_cache" != 1; then | |
6068 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
6069 | fi | |
6070 | ||
6071 | if test "$wxUSE_GAUGE" = yes; then | |
698dcdb6 | 6072 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6073 | else |
698dcdb6 | 6074 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6075 | fi |
698dcdb6 | 6076 | |
10f2d63a | 6077 | |
698dcdb6 | 6078 | echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6 |
cb61c62d | 6079 | echo "configure:6080: checking for --enable-grid" >&5 |
10f2d63a VZ |
6080 | no_cache=0 |
6081 | # Check whether --enable-grid or --disable-grid was given. | |
6082 | if test "${enable_grid+set}" = set; then | |
6083 | enableval="$enable_grid" | |
698dcdb6 | 6084 | |
10f2d63a VZ |
6085 | if test "$enableval" = yes; then |
6086 | ac_cv_use_grid='wxUSE_GRID=yes' | |
6087 | else | |
6088 | ac_cv_use_grid='wxUSE_GRID=no' | |
6089 | fi | |
698dcdb6 | 6090 | |
10f2d63a | 6091 | else |
698dcdb6 | 6092 | |
10f2d63a VZ |
6093 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` |
6094 | if test "x$LINE" != x ; then | |
6095 | eval "DEFAULT_$LINE" | |
6096 | else | |
6097 | no_cache=1 | |
6098 | fi | |
6099 | ||
6100 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
698dcdb6 VZ |
6101 | |
6102 | fi | |
10f2d63a VZ |
6103 | |
6104 | ||
6105 | eval "$ac_cv_use_grid" | |
6106 | if test "$no_cache" != 1; then | |
6107 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
6108 | fi | |
6109 | ||
6110 | if test "$wxUSE_GRID" = yes; then | |
698dcdb6 | 6111 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6112 | else |
698dcdb6 | 6113 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6114 | fi |
698dcdb6 | 6115 | |
10f2d63a | 6116 | |
698dcdb6 | 6117 | echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6 |
cb61c62d | 6118 | echo "configure:6119: checking for --enable-newgrid" >&5 |
10f2d63a VZ |
6119 | no_cache=0 |
6120 | # Check whether --enable-newgrid or --disable-newgrid was given. | |
6121 | if test "${enable_newgrid+set}" = set; then | |
6122 | enableval="$enable_newgrid" | |
698dcdb6 | 6123 | |
10f2d63a VZ |
6124 | if test "$enableval" = yes; then |
6125 | ac_cv_use_newgrid='wxUSE_NEW_GRID=yes' | |
6126 | else | |
6127 | ac_cv_use_newgrid='wxUSE_NEW_GRID=no' | |
6128 | fi | |
698dcdb6 | 6129 | |
10f2d63a | 6130 | else |
698dcdb6 | 6131 | |
10f2d63a VZ |
6132 | LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}` |
6133 | if test "x$LINE" != x ; then | |
6134 | eval "DEFAULT_$LINE" | |
6135 | else | |
6136 | no_cache=1 | |
6137 | fi | |
6138 | ||
6139 | ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID | |
698dcdb6 VZ |
6140 | |
6141 | fi | |
10f2d63a VZ |
6142 | |
6143 | ||
6144 | eval "$ac_cv_use_newgrid" | |
6145 | if test "$no_cache" != 1; then | |
6146 | echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp | |
6147 | fi | |
6148 | ||
6149 | if test "$wxUSE_NEW_GRID" = yes; then | |
698dcdb6 | 6150 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6151 | else |
698dcdb6 | 6152 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6153 | fi |
698dcdb6 | 6154 | |
10f2d63a | 6155 | |
698dcdb6 | 6156 | echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6 |
cb61c62d | 6157 | echo "configure:6158: checking for --enable-imaglist" >&5 |
10f2d63a VZ |
6158 | no_cache=0 |
6159 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
6160 | if test "${enable_imaglist+set}" = set; then | |
6161 | enableval="$enable_imaglist" | |
698dcdb6 | 6162 | |
10f2d63a VZ |
6163 | if test "$enableval" = yes; then |
6164 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
6165 | else | |
6166 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
6167 | fi | |
698dcdb6 | 6168 | |
10f2d63a | 6169 | else |
698dcdb6 | 6170 | |
10f2d63a VZ |
6171 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` |
6172 | if test "x$LINE" != x ; then | |
6173 | eval "DEFAULT_$LINE" | |
6174 | else | |
6175 | no_cache=1 | |
6176 | fi | |
6177 | ||
6178 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
698dcdb6 VZ |
6179 | |
6180 | fi | |
10f2d63a VZ |
6181 | |
6182 | ||
6183 | eval "$ac_cv_use_imaglist" | |
6184 | if test "$no_cache" != 1; then | |
6185 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
6186 | fi | |
6187 | ||
6188 | if test "$wxUSE_IMAGLIST" = yes; then | |
698dcdb6 | 6189 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6190 | else |
698dcdb6 | 6191 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6192 | fi |
698dcdb6 | 6193 | |
10f2d63a | 6194 | |
698dcdb6 | 6195 | echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6 |
cb61c62d | 6196 | echo "configure:6197: checking for --enable-listbox" >&5 |
10f2d63a VZ |
6197 | no_cache=0 |
6198 | # Check whether --enable-listbox or --disable-listbox was given. | |
6199 | if test "${enable_listbox+set}" = set; then | |
6200 | enableval="$enable_listbox" | |
698dcdb6 | 6201 | |
10f2d63a VZ |
6202 | if test "$enableval" = yes; then |
6203 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
6204 | else | |
6205 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
6206 | fi | |
698dcdb6 | 6207 | |
10f2d63a | 6208 | else |
698dcdb6 | 6209 | |
10f2d63a VZ |
6210 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` |
6211 | if test "x$LINE" != x ; then | |
6212 | eval "DEFAULT_$LINE" | |
6213 | else | |
6214 | no_cache=1 | |
6215 | fi | |
6216 | ||
6217 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
698dcdb6 VZ |
6218 | |
6219 | fi | |
10f2d63a VZ |
6220 | |
6221 | ||
6222 | eval "$ac_cv_use_listbox" | |
6223 | if test "$no_cache" != 1; then | |
6224 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
6225 | fi | |
6226 | ||
6227 | if test "$wxUSE_LISTBOX" = yes; then | |
698dcdb6 | 6228 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6229 | else |
698dcdb6 | 6230 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6231 | fi |
698dcdb6 | 6232 | |
10f2d63a | 6233 | |
698dcdb6 | 6234 | echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6 |
cb61c62d | 6235 | echo "configure:6236: checking for --enable-listctrl" >&5 |
10f2d63a VZ |
6236 | no_cache=0 |
6237 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
6238 | if test "${enable_listctrl+set}" = set; then | |
6239 | enableval="$enable_listctrl" | |
698dcdb6 | 6240 | |
10f2d63a VZ |
6241 | if test "$enableval" = yes; then |
6242 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
6243 | else | |
6244 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
6245 | fi | |
698dcdb6 | 6246 | |
10f2d63a | 6247 | else |
698dcdb6 | 6248 | |
10f2d63a VZ |
6249 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` |
6250 | if test "x$LINE" != x ; then | |
6251 | eval "DEFAULT_$LINE" | |
6252 | else | |
6253 | no_cache=1 | |
6254 | fi | |
6255 | ||
6256 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
698dcdb6 VZ |
6257 | |
6258 | fi | |
10f2d63a VZ |
6259 | |
6260 | ||
6261 | eval "$ac_cv_use_listctrl" | |
6262 | if test "$no_cache" != 1; then | |
6263 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
6264 | fi | |
6265 | ||
6266 | if test "$wxUSE_LISTCTRL" = yes; then | |
698dcdb6 | 6267 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6268 | else |
698dcdb6 | 6269 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6270 | fi |
698dcdb6 | 6271 | |
10f2d63a | 6272 | |
698dcdb6 | 6273 | echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6 |
cb61c62d | 6274 | echo "configure:6275: checking for --enable-notebook" >&5 |
10f2d63a VZ |
6275 | no_cache=0 |
6276 | # Check whether --enable-notebook or --disable-notebook was given. | |
6277 | if test "${enable_notebook+set}" = set; then | |
6278 | enableval="$enable_notebook" | |
698dcdb6 | 6279 | |
10f2d63a VZ |
6280 | if test "$enableval" = yes; then |
6281 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
6282 | else | |
6283 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
6284 | fi | |
698dcdb6 | 6285 | |
10f2d63a | 6286 | else |
698dcdb6 | 6287 | |
10f2d63a VZ |
6288 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` |
6289 | if test "x$LINE" != x ; then | |
6290 | eval "DEFAULT_$LINE" | |
6291 | else | |
6292 | no_cache=1 | |
6293 | fi | |
6294 | ||
6295 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
698dcdb6 VZ |
6296 | |
6297 | fi | |
10f2d63a VZ |
6298 | |
6299 | ||
6300 | eval "$ac_cv_use_notebook" | |
6301 | if test "$no_cache" != 1; then | |
6302 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
6303 | fi | |
6304 | ||
6305 | if test "$wxUSE_NOTEBOOK" = yes; then | |
698dcdb6 | 6306 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6307 | else |
698dcdb6 | 6308 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6309 | fi |
698dcdb6 | 6310 | |
10f2d63a | 6311 | |
24176f2c | 6312 | echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6 |
cb61c62d | 6313 | echo "configure:6314: checking for --enable-propsheet" >&5 |
24176f2c GD |
6314 | no_cache=0 |
6315 | # Check whether --enable-propsheet or --disable-propsheet was given. | |
6316 | if test "${enable_propsheet+set}" = set; then | |
6317 | enableval="$enable_propsheet" | |
6318 | ||
6319 | if test "$enableval" = yes; then | |
6320 | ac_cv_use_propsheet='wxUSE_PROPSHEET=yes' | |
6321 | else | |
6322 | ac_cv_use_propsheet='wxUSE_PROPSHEET=no' | |
6323 | fi | |
6324 | ||
6325 | else | |
6326 | ||
6327 | LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}` | |
6328 | if test "x$LINE" != x ; then | |
6329 | eval "DEFAULT_$LINE" | |
6330 | else | |
6331 | no_cache=1 | |
6332 | fi | |
6333 | ||
6334 | ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET | |
6335 | ||
6336 | fi | |
6337 | ||
6338 | ||
6339 | eval "$ac_cv_use_propsheet" | |
6340 | if test "$no_cache" != 1; then | |
6341 | echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp | |
6342 | fi | |
6343 | ||
6344 | if test "$wxUSE_PROPSHEET" = yes; then | |
6345 | echo "$ac_t""yes" 1>&6 | |
6346 | else | |
6347 | echo "$ac_t""no" 1>&6 | |
6348 | fi | |
6349 | ||
6350 | ||
698dcdb6 | 6351 | echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6 |
cb61c62d | 6352 | echo "configure:6353: checking for --enable-radiobox" >&5 |
10f2d63a VZ |
6353 | no_cache=0 |
6354 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
6355 | if test "${enable_radiobox+set}" = set; then | |
6356 | enableval="$enable_radiobox" | |
698dcdb6 | 6357 | |
10f2d63a VZ |
6358 | if test "$enableval" = yes; then |
6359 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
6360 | else | |
6361 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
6362 | fi | |
698dcdb6 | 6363 | |
10f2d63a | 6364 | else |
698dcdb6 | 6365 | |
10f2d63a VZ |
6366 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` |
6367 | if test "x$LINE" != x ; then | |
6368 | eval "DEFAULT_$LINE" | |
6369 | else | |
6370 | no_cache=1 | |
6371 | fi | |
6372 | ||
6373 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
698dcdb6 VZ |
6374 | |
6375 | fi | |
10f2d63a VZ |
6376 | |
6377 | ||
6378 | eval "$ac_cv_use_radiobox" | |
6379 | if test "$no_cache" != 1; then | |
6380 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
6381 | fi | |
6382 | ||
6383 | if test "$wxUSE_RADIOBOX" = yes; then | |
698dcdb6 | 6384 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6385 | else |
698dcdb6 | 6386 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6387 | fi |
698dcdb6 | 6388 | |
10f2d63a | 6389 | |
698dcdb6 | 6390 | echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6 |
cb61c62d | 6391 | echo "configure:6392: checking for --enable-radiobtn" >&5 |
10f2d63a VZ |
6392 | no_cache=0 |
6393 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
6394 | if test "${enable_radiobtn+set}" = set; then | |
6395 | enableval="$enable_radiobtn" | |
698dcdb6 | 6396 | |
10f2d63a VZ |
6397 | if test "$enableval" = yes; then |
6398 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
6399 | else | |
6400 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
6401 | fi | |
698dcdb6 | 6402 | |
10f2d63a | 6403 | else |
698dcdb6 | 6404 | |
10f2d63a VZ |
6405 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` |
6406 | if test "x$LINE" != x ; then | |
6407 | eval "DEFAULT_$LINE" | |
6408 | else | |
6409 | no_cache=1 | |
6410 | fi | |
6411 | ||
6412 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
698dcdb6 VZ |
6413 | |
6414 | fi | |
10f2d63a VZ |
6415 | |
6416 | ||
6417 | eval "$ac_cv_use_radiobtn" | |
6418 | if test "$no_cache" != 1; then | |
6419 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
6420 | fi | |
6421 | ||
6422 | if test "$wxUSE_RADIOBTN" = yes; then | |
698dcdb6 | 6423 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6424 | else |
698dcdb6 | 6425 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6426 | fi |
698dcdb6 | 6427 | |
10f2d63a | 6428 | |
698dcdb6 | 6429 | echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6 |
cb61c62d | 6430 | echo "configure:6431: checking for --enable-sash" >&5 |
10f2d63a VZ |
6431 | no_cache=0 |
6432 | # Check whether --enable-sash or --disable-sash was given. | |
6433 | if test "${enable_sash+set}" = set; then | |
6434 | enableval="$enable_sash" | |
698dcdb6 | 6435 | |
10f2d63a VZ |
6436 | if test "$enableval" = yes; then |
6437 | ac_cv_use_sash='wxUSE_SASH=yes' | |
6438 | else | |
6439 | ac_cv_use_sash='wxUSE_SASH=no' | |
6440 | fi | |
698dcdb6 | 6441 | |
10f2d63a | 6442 | else |
698dcdb6 | 6443 | |
10f2d63a VZ |
6444 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` |
6445 | if test "x$LINE" != x ; then | |
6446 | eval "DEFAULT_$LINE" | |
6447 | else | |
6448 | no_cache=1 | |
6449 | fi | |
6450 | ||
6451 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
698dcdb6 VZ |
6452 | |
6453 | fi | |
10f2d63a VZ |
6454 | |
6455 | ||
6456 | eval "$ac_cv_use_sash" | |
6457 | if test "$no_cache" != 1; then | |
6458 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
6459 | fi | |
6460 | ||
6461 | if test "$wxUSE_SASH" = yes; then | |
698dcdb6 | 6462 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6463 | else |
698dcdb6 | 6464 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6465 | fi |
698dcdb6 | 6466 | |
10f2d63a | 6467 | |
698dcdb6 | 6468 | echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6 |
cb61c62d | 6469 | echo "configure:6470: checking for --enable-scrollbar" >&5 |
10f2d63a VZ |
6470 | no_cache=0 |
6471 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
6472 | if test "${enable_scrollbar+set}" = set; then | |
6473 | enableval="$enable_scrollbar" | |
698dcdb6 | 6474 | |
10f2d63a VZ |
6475 | if test "$enableval" = yes; then |
6476 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
6477 | else | |
6478 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
6479 | fi | |
698dcdb6 | 6480 | |
10f2d63a | 6481 | else |
698dcdb6 | 6482 | |
10f2d63a VZ |
6483 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` |
6484 | if test "x$LINE" != x ; then | |
6485 | eval "DEFAULT_$LINE" | |
6486 | else | |
6487 | no_cache=1 | |
6488 | fi | |
6489 | ||
6490 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
698dcdb6 VZ |
6491 | |
6492 | fi | |
10f2d63a VZ |
6493 | |
6494 | ||
6495 | eval "$ac_cv_use_scrollbar" | |
6496 | if test "$no_cache" != 1; then | |
6497 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
6498 | fi | |
6499 | ||
6500 | if test "$wxUSE_SCROLLBAR" = yes; then | |
698dcdb6 | 6501 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6502 | else |
698dcdb6 | 6503 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6504 | fi |
698dcdb6 | 6505 | |
10f2d63a | 6506 | |
698dcdb6 | 6507 | echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6 |
cb61c62d | 6508 | echo "configure:6509: checking for --enable-slider" >&5 |
10f2d63a VZ |
6509 | no_cache=0 |
6510 | # Check whether --enable-slider or --disable-slider was given. | |
6511 | if test "${enable_slider+set}" = set; then | |
6512 | enableval="$enable_slider" | |
698dcdb6 | 6513 | |
10f2d63a VZ |
6514 | if test "$enableval" = yes; then |
6515 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
6516 | else | |
6517 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
6518 | fi | |
698dcdb6 | 6519 | |
10f2d63a | 6520 | else |
698dcdb6 | 6521 | |
10f2d63a VZ |
6522 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` |
6523 | if test "x$LINE" != x ; then | |
6524 | eval "DEFAULT_$LINE" | |
6525 | else | |
6526 | no_cache=1 | |
6527 | fi | |
6528 | ||
6529 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
698dcdb6 VZ |
6530 | |
6531 | fi | |
10f2d63a VZ |
6532 | |
6533 | ||
6534 | eval "$ac_cv_use_slider" | |
6535 | if test "$no_cache" != 1; then | |
6536 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
6537 | fi | |
6538 | ||
6539 | if test "$wxUSE_SLIDER" = yes; then | |
698dcdb6 | 6540 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6541 | else |
698dcdb6 | 6542 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6543 | fi |
698dcdb6 | 6544 | |
10f2d63a | 6545 | |
698dcdb6 | 6546 | echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6 |
cb61c62d | 6547 | echo "configure:6548: checking for --enable-spinbtn" >&5 |
10f2d63a VZ |
6548 | no_cache=0 |
6549 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
6550 | if test "${enable_spinbtn+set}" = set; then | |
6551 | enableval="$enable_spinbtn" | |
698dcdb6 | 6552 | |
10f2d63a VZ |
6553 | if test "$enableval" = yes; then |
6554 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
6555 | else | |
6556 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
6557 | fi | |
698dcdb6 | 6558 | |
10f2d63a | 6559 | else |
698dcdb6 | 6560 | |
10f2d63a VZ |
6561 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` |
6562 | if test "x$LINE" != x ; then | |
6563 | eval "DEFAULT_$LINE" | |
6564 | else | |
6565 | no_cache=1 | |
6566 | fi | |
6567 | ||
6568 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
698dcdb6 VZ |
6569 | |
6570 | fi | |
10f2d63a VZ |
6571 | |
6572 | ||
6573 | eval "$ac_cv_use_spinbtn" | |
6574 | if test "$no_cache" != 1; then | |
6575 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
6576 | fi | |
6577 | ||
6578 | if test "$wxUSE_SPINBTN" = yes; then | |
698dcdb6 | 6579 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6580 | else |
698dcdb6 | 6581 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6582 | fi |
698dcdb6 | 6583 | |
10f2d63a | 6584 | |
698dcdb6 | 6585 | echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6 |
cb61c62d | 6586 | echo "configure:6587: checking for --enable-spinctrl" >&5 |
56cfaa52 RR |
6587 | no_cache=0 |
6588 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
6589 | if test "${enable_spinctrl+set}" = set; then | |
6590 | enableval="$enable_spinctrl" | |
698dcdb6 | 6591 | |
56cfaa52 RR |
6592 | if test "$enableval" = yes; then |
6593 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
6594 | else | |
6595 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
6596 | fi | |
698dcdb6 | 6597 | |
56cfaa52 | 6598 | else |
698dcdb6 | 6599 | |
56cfaa52 RR |
6600 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` |
6601 | if test "x$LINE" != x ; then | |
6602 | eval "DEFAULT_$LINE" | |
6603 | else | |
6604 | no_cache=1 | |
6605 | fi | |
6606 | ||
6607 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
698dcdb6 VZ |
6608 | |
6609 | fi | |
56cfaa52 RR |
6610 | |
6611 | ||
6612 | eval "$ac_cv_use_spinctrl" | |
6613 | if test "$no_cache" != 1; then | |
6614 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
6615 | fi | |
6616 | ||
6617 | if test "$wxUSE_SPINCTRL" = yes; then | |
698dcdb6 | 6618 | echo "$ac_t""yes" 1>&6 |
56cfaa52 | 6619 | else |
698dcdb6 | 6620 | echo "$ac_t""no" 1>&6 |
56cfaa52 | 6621 | fi |
698dcdb6 | 6622 | |
56cfaa52 | 6623 | |
698dcdb6 | 6624 | echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6 |
cb61c62d | 6625 | echo "configure:6626: checking for --enable-splitter" >&5 |
10f2d63a VZ |
6626 | no_cache=0 |
6627 | # Check whether --enable-splitter or --disable-splitter was given. | |
6628 | if test "${enable_splitter+set}" = set; then | |
6629 | enableval="$enable_splitter" | |
698dcdb6 | 6630 | |
10f2d63a VZ |
6631 | if test "$enableval" = yes; then |
6632 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
6633 | else | |
6634 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
6635 | fi | |
698dcdb6 | 6636 | |
10f2d63a | 6637 | else |
698dcdb6 | 6638 | |
10f2d63a VZ |
6639 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` |
6640 | if test "x$LINE" != x ; then | |
6641 | eval "DEFAULT_$LINE" | |
6642 | else | |
6643 | no_cache=1 | |
6644 | fi | |
6645 | ||
6646 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
698dcdb6 VZ |
6647 | |
6648 | fi | |
10f2d63a VZ |
6649 | |
6650 | ||
6651 | eval "$ac_cv_use_splitter" | |
6652 | if test "$no_cache" != 1; then | |
6653 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
6654 | fi | |
6655 | ||
6656 | if test "$wxUSE_SPLITTER" = yes; then | |
698dcdb6 | 6657 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6658 | else |
698dcdb6 | 6659 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6660 | fi |
698dcdb6 | 6661 | |
10f2d63a | 6662 | |
698dcdb6 | 6663 | echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6 |
cb61c62d | 6664 | echo "configure:6665: checking for --enable-statbmp" >&5 |
10f2d63a VZ |
6665 | no_cache=0 |
6666 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
6667 | if test "${enable_statbmp+set}" = set; then | |
6668 | enableval="$enable_statbmp" | |
698dcdb6 | 6669 | |
10f2d63a VZ |
6670 | if test "$enableval" = yes; then |
6671 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
6672 | else | |
6673 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
6674 | fi | |
698dcdb6 | 6675 | |
10f2d63a | 6676 | else |
698dcdb6 | 6677 | |
10f2d63a VZ |
6678 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` |
6679 | if test "x$LINE" != x ; then | |
6680 | eval "DEFAULT_$LINE" | |
6681 | else | |
6682 | no_cache=1 | |
6683 | fi | |
6684 | ||
6685 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
698dcdb6 VZ |
6686 | |
6687 | fi | |
10f2d63a VZ |
6688 | |
6689 | ||
6690 | eval "$ac_cv_use_statbmp" | |
6691 | if test "$no_cache" != 1; then | |
6692 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
6693 | fi | |
6694 | ||
6695 | if test "$wxUSE_STATBMP" = yes; then | |
698dcdb6 | 6696 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6697 | else |
698dcdb6 | 6698 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6699 | fi |
698dcdb6 | 6700 | |
10f2d63a | 6701 | |
698dcdb6 | 6702 | echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6 |
cb61c62d | 6703 | echo "configure:6704: checking for --enable-statbox" >&5 |
10f2d63a VZ |
6704 | no_cache=0 |
6705 | # Check whether --enable-statbox or --disable-statbox was given. | |
6706 | if test "${enable_statbox+set}" = set; then | |
6707 | enableval="$enable_statbox" | |
698dcdb6 | 6708 | |
10f2d63a VZ |
6709 | if test "$enableval" = yes; then |
6710 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
6711 | else | |
6712 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
6713 | fi | |
698dcdb6 | 6714 | |
10f2d63a | 6715 | else |
698dcdb6 | 6716 | |
10f2d63a VZ |
6717 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` |
6718 | if test "x$LINE" != x ; then | |
6719 | eval "DEFAULT_$LINE" | |
6720 | else | |
6721 | no_cache=1 | |
6722 | fi | |
6723 | ||
6724 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
698dcdb6 VZ |
6725 | |
6726 | fi | |
10f2d63a VZ |
6727 | |
6728 | ||
6729 | eval "$ac_cv_use_statbox" | |
6730 | if test "$no_cache" != 1; then | |
6731 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
6732 | fi | |
6733 | ||
6734 | if test "$wxUSE_STATBOX" = yes; then | |
698dcdb6 | 6735 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6736 | else |
698dcdb6 | 6737 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6738 | fi |
698dcdb6 | 6739 | |
10f2d63a | 6740 | |
698dcdb6 | 6741 | echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6 |
cb61c62d | 6742 | echo "configure:6743: checking for --enable-statline" >&5 |
10f2d63a VZ |
6743 | no_cache=0 |
6744 | # Check whether --enable-statline or --disable-statline was given. | |
6745 | if test "${enable_statline+set}" = set; then | |
6746 | enableval="$enable_statline" | |
698dcdb6 | 6747 | |
10f2d63a VZ |
6748 | if test "$enableval" = yes; then |
6749 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
6750 | else | |
6751 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
6752 | fi | |
698dcdb6 | 6753 | |
10f2d63a | 6754 | else |
698dcdb6 | 6755 | |
10f2d63a VZ |
6756 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` |
6757 | if test "x$LINE" != x ; then | |
6758 | eval "DEFAULT_$LINE" | |
6759 | else | |
6760 | no_cache=1 | |
6761 | fi | |
6762 | ||
6763 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
698dcdb6 VZ |
6764 | |
6765 | fi | |
10f2d63a VZ |
6766 | |
6767 | ||
6768 | eval "$ac_cv_use_statline" | |
6769 | if test "$no_cache" != 1; then | |
6770 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
6771 | fi | |
6772 | ||
6773 | if test "$wxUSE_STATLINE" = yes; then | |
698dcdb6 | 6774 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6775 | else |
698dcdb6 | 6776 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6777 | fi |
698dcdb6 | 6778 | |
10f2d63a | 6779 | |
1e6feb95 | 6780 | echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6 |
cb61c62d | 6781 | echo "configure:6782: checking for --enable-stattext" >&5 |
1e6feb95 VZ |
6782 | no_cache=0 |
6783 | # Check whether --enable-stattext or --disable-stattext was given. | |
6784 | if test "${enable_stattext+set}" = set; then | |
6785 | enableval="$enable_stattext" | |
6786 | ||
6787 | if test "$enableval" = yes; then | |
6788 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
6789 | else | |
6790 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
6791 | fi | |
6792 | ||
6793 | else | |
6794 | ||
6795 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
6796 | if test "x$LINE" != x ; then | |
6797 | eval "DEFAULT_$LINE" | |
6798 | else | |
6799 | no_cache=1 | |
6800 | fi | |
6801 | ||
6802 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
6803 | ||
6804 | fi | |
6805 | ||
6806 | ||
6807 | eval "$ac_cv_use_stattext" | |
6808 | if test "$no_cache" != 1; then | |
6809 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
6810 | fi | |
6811 | ||
6812 | if test "$wxUSE_STATTEXT" = yes; then | |
6813 | echo "$ac_t""yes" 1>&6 | |
6814 | else | |
6815 | echo "$ac_t""no" 1>&6 | |
6816 | fi | |
6817 | ||
6818 | ||
698dcdb6 | 6819 | echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6 |
cb61c62d | 6820 | echo "configure:6821: checking for --enable-statusbar" >&5 |
10f2d63a VZ |
6821 | no_cache=0 |
6822 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
6823 | if test "${enable_statusbar+set}" = set; then | |
6824 | enableval="$enable_statusbar" | |
698dcdb6 | 6825 | |
10f2d63a VZ |
6826 | if test "$enableval" = yes; then |
6827 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
6828 | else | |
6829 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
6830 | fi | |
698dcdb6 | 6831 | |
10f2d63a | 6832 | else |
698dcdb6 | 6833 | |
10f2d63a VZ |
6834 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` |
6835 | if test "x$LINE" != x ; then | |
6836 | eval "DEFAULT_$LINE" | |
6837 | else | |
6838 | no_cache=1 | |
6839 | fi | |
6840 | ||
6841 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
698dcdb6 VZ |
6842 | |
6843 | fi | |
10f2d63a VZ |
6844 | |
6845 | ||
6846 | eval "$ac_cv_use_statusbar" | |
6847 | if test "$no_cache" != 1; then | |
6848 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
6849 | fi | |
6850 | ||
6851 | if test "$wxUSE_STATUSBAR" = yes; then | |
698dcdb6 | 6852 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6853 | else |
698dcdb6 | 6854 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6855 | fi |
698dcdb6 | 6856 | |
10f2d63a | 6857 | |
698dcdb6 | 6858 | echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6 |
cb61c62d | 6859 | echo "configure:6860: checking for --enable-tabdialog" >&5 |
10f2d63a VZ |
6860 | no_cache=0 |
6861 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
6862 | if test "${enable_tabdialog+set}" = set; then | |
6863 | enableval="$enable_tabdialog" | |
698dcdb6 | 6864 | |
10f2d63a VZ |
6865 | if test "$enableval" = yes; then |
6866 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
6867 | else | |
6868 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
6869 | fi | |
698dcdb6 | 6870 | |
10f2d63a | 6871 | else |
698dcdb6 | 6872 | |
10f2d63a VZ |
6873 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` |
6874 | if test "x$LINE" != x ; then | |
6875 | eval "DEFAULT_$LINE" | |
6876 | else | |
6877 | no_cache=1 | |
6878 | fi | |
6879 | ||
6880 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
698dcdb6 VZ |
6881 | |
6882 | fi | |
10f2d63a VZ |
6883 | |
6884 | ||
6885 | eval "$ac_cv_use_tabdialog" | |
6886 | if test "$no_cache" != 1; then | |
6887 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
6888 | fi | |
6889 | ||
6890 | if test "$wxUSE_TABDIALOG" = yes; then | |
698dcdb6 | 6891 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6892 | else |
698dcdb6 | 6893 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6894 | fi |
698dcdb6 | 6895 | |
10f2d63a | 6896 | |
1e6feb95 | 6897 | echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6 |
cb61c62d | 6898 | echo "configure:6899: checking for --enable-textctrl" >&5 |
1e6feb95 VZ |
6899 | no_cache=0 |
6900 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
6901 | if test "${enable_textctrl+set}" = set; then | |
6902 | enableval="$enable_textctrl" | |
6903 | ||
6904 | if test "$enableval" = yes; then | |
6905 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
6906 | else | |
6907 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
6908 | fi | |
6909 | ||
6910 | else | |
6911 | ||
6912 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
6913 | if test "x$LINE" != x ; then | |
6914 | eval "DEFAULT_$LINE" | |
6915 | else | |
6916 | no_cache=1 | |
6917 | fi | |
6918 | ||
6919 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
6920 | ||
6921 | fi | |
6922 | ||
6923 | ||
6924 | eval "$ac_cv_use_textctrl" | |
6925 | if test "$no_cache" != 1; then | |
6926 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
6927 | fi | |
6928 | ||
6929 | if test "$wxUSE_TEXTCTRL" = yes; then | |
6930 | echo "$ac_t""yes" 1>&6 | |
6931 | else | |
6932 | echo "$ac_t""no" 1>&6 | |
6933 | fi | |
6934 | ||
6935 | ||
698dcdb6 | 6936 | echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6 |
cb61c62d | 6937 | echo "configure:6938: checking for --enable-togglebtn" >&5 |
1db8dc4a VZ |
6938 | no_cache=0 |
6939 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
6940 | if test "${enable_togglebtn+set}" = set; then | |
6941 | enableval="$enable_togglebtn" | |
698dcdb6 | 6942 | |
1db8dc4a VZ |
6943 | if test "$enableval" = yes; then |
6944 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
6945 | else | |
6946 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
6947 | fi | |
698dcdb6 | 6948 | |
1db8dc4a | 6949 | else |
698dcdb6 | 6950 | |
1db8dc4a VZ |
6951 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` |
6952 | if test "x$LINE" != x ; then | |
6953 | eval "DEFAULT_$LINE" | |
6954 | else | |
6955 | no_cache=1 | |
6956 | fi | |
6957 | ||
6958 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
698dcdb6 VZ |
6959 | |
6960 | fi | |
1db8dc4a VZ |
6961 | |
6962 | ||
6963 | eval "$ac_cv_use_togglebtn" | |
6964 | if test "$no_cache" != 1; then | |
6965 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
6966 | fi | |
6967 | ||
6968 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
698dcdb6 | 6969 | echo "$ac_t""yes" 1>&6 |
1db8dc4a | 6970 | else |
698dcdb6 | 6971 | echo "$ac_t""no" 1>&6 |
1db8dc4a | 6972 | fi |
698dcdb6 | 6973 | |
1db8dc4a | 6974 | |
698dcdb6 | 6975 | echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6 |
cb61c62d | 6976 | echo "configure:6977: checking for --enable-toolbar" >&5 |
10f2d63a VZ |
6977 | no_cache=0 |
6978 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
6979 | if test "${enable_toolbar+set}" = set; then | |
6980 | enableval="$enable_toolbar" | |
698dcdb6 | 6981 | |
10f2d63a VZ |
6982 | if test "$enableval" = yes; then |
6983 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
6984 | else | |
6985 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
6986 | fi | |
698dcdb6 | 6987 | |
10f2d63a | 6988 | else |
698dcdb6 | 6989 | |
10f2d63a VZ |
6990 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` |
6991 | if test "x$LINE" != x ; then | |
6992 | eval "DEFAULT_$LINE" | |
6993 | else | |
6994 | no_cache=1 | |
6995 | fi | |
6996 | ||
6997 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
698dcdb6 VZ |
6998 | |
6999 | fi | |
10f2d63a VZ |
7000 | |
7001 | ||
7002 | eval "$ac_cv_use_toolbar" | |
7003 | if test "$no_cache" != 1; then | |
7004 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
7005 | fi | |
7006 | ||
7007 | if test "$wxUSE_TOOLBAR" = yes; then | |
698dcdb6 | 7008 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7009 | else |
698dcdb6 | 7010 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7011 | fi |
698dcdb6 | 7012 | |
10f2d63a | 7013 | |
698dcdb6 | 7014 | echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6 |
cb61c62d | 7015 | echo "configure:7016: checking for --enable-tbarnative" >&5 |
360d6699 VZ |
7016 | no_cache=0 |
7017 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
7018 | if test "${enable_tbarnative+set}" = set; then | |
7019 | enableval="$enable_tbarnative" | |
698dcdb6 | 7020 | |
360d6699 VZ |
7021 | if test "$enableval" = yes; then |
7022 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
7023 | else | |
7024 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
7025 | fi | |
698dcdb6 | 7026 | |
360d6699 | 7027 | else |
698dcdb6 | 7028 | |
360d6699 VZ |
7029 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` |
7030 | if test "x$LINE" != x ; then | |
7031 | eval "DEFAULT_$LINE" | |
7032 | else | |
7033 | no_cache=1 | |
7034 | fi | |
7035 | ||
7036 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
698dcdb6 VZ |
7037 | |
7038 | fi | |
360d6699 VZ |
7039 | |
7040 | ||
7041 | eval "$ac_cv_use_tbarnative" | |
7042 | if test "$no_cache" != 1; then | |
7043 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
7044 | fi | |
7045 | ||
7046 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
698dcdb6 | 7047 | echo "$ac_t""yes" 1>&6 |
360d6699 | 7048 | else |
698dcdb6 | 7049 | echo "$ac_t""no" 1>&6 |
360d6699 | 7050 | fi |
698dcdb6 | 7051 | |
360d6699 | 7052 | |
698dcdb6 | 7053 | echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6 |
cb61c62d | 7054 | echo "configure:7055: checking for --enable-tbarsmpl" >&5 |
360d6699 VZ |
7055 | no_cache=0 |
7056 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
7057 | if test "${enable_tbarsmpl+set}" = set; then | |
7058 | enableval="$enable_tbarsmpl" | |
698dcdb6 | 7059 | |
360d6699 VZ |
7060 | if test "$enableval" = yes; then |
7061 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
7062 | else | |
7063 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
7064 | fi | |
698dcdb6 | 7065 | |
360d6699 | 7066 | else |
698dcdb6 | 7067 | |
360d6699 VZ |
7068 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` |
7069 | if test "x$LINE" != x ; then | |
7070 | eval "DEFAULT_$LINE" | |
7071 | else | |
7072 | no_cache=1 | |
7073 | fi | |
7074 | ||
7075 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
698dcdb6 VZ |
7076 | |
7077 | fi | |
360d6699 VZ |
7078 | |
7079 | ||
7080 | eval "$ac_cv_use_tbarsmpl" | |
7081 | if test "$no_cache" != 1; then | |
7082 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
7083 | fi | |
7084 | ||
7085 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
698dcdb6 | 7086 | echo "$ac_t""yes" 1>&6 |
360d6699 | 7087 | else |
698dcdb6 | 7088 | echo "$ac_t""no" 1>&6 |
360d6699 | 7089 | fi |
698dcdb6 | 7090 | |
360d6699 | 7091 | |
698dcdb6 | 7092 | echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6 |
cb61c62d | 7093 | echo "configure:7094: checking for --enable-treectrl" >&5 |
10f2d63a VZ |
7094 | no_cache=0 |
7095 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
7096 | if test "${enable_treectrl+set}" = set; then | |
7097 | enableval="$enable_treectrl" | |
698dcdb6 | 7098 | |
10f2d63a VZ |
7099 | if test "$enableval" = yes; then |
7100 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
7101 | else | |
7102 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
7103 | fi | |
698dcdb6 | 7104 | |
10f2d63a | 7105 | else |
698dcdb6 | 7106 | |
10f2d63a VZ |
7107 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` |
7108 | if test "x$LINE" != x ; then | |
7109 | eval "DEFAULT_$LINE" | |
7110 | else | |
7111 | no_cache=1 | |
7112 | fi | |
7113 | ||
7114 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
698dcdb6 VZ |
7115 | |
7116 | fi | |
10f2d63a VZ |
7117 | |
7118 | ||
1e6feb95 VZ |
7119 | eval "$ac_cv_use_treectrl" |
7120 | if test "$no_cache" != 1; then | |
7121 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
7122 | fi | |
7123 | ||
7124 | if test "$wxUSE_TREECTRL" = yes; then | |
7125 | echo "$ac_t""yes" 1>&6 | |
7126 | else | |
7127 | echo "$ac_t""no" 1>&6 | |
7128 | fi | |
7129 | ||
7130 | ||
9926e4a4 | 7131 | echo $ac_n "checking for --enable-tipwindow""... $ac_c" 1>&6 |
cb61c62d | 7132 | echo "configure:7133: checking for --enable-tipwindow" >&5 |
9926e4a4 VZ |
7133 | no_cache=0 |
7134 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
7135 | if test "${enable_tipwindow+set}" = set; then | |
7136 | enableval="$enable_tipwindow" | |
7137 | ||
7138 | if test "$enableval" = yes; then | |
7139 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
7140 | else | |
7141 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
7142 | fi | |
7143 | ||
7144 | else | |
7145 | ||
7146 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` | |
7147 | if test "x$LINE" != x ; then | |
7148 | eval "DEFAULT_$LINE" | |
7149 | else | |
7150 | no_cache=1 | |
7151 | fi | |
7152 | ||
7153 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
7154 | ||
7155 | fi | |
7156 | ||
7157 | ||
7158 | eval "$ac_cv_use_tipwindow" | |
7159 | if test "$no_cache" != 1; then | |
7160 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
7161 | fi | |
7162 | ||
7163 | if test "$wxUSE_TIPWINDOW" = yes; then | |
7164 | echo "$ac_t""yes" 1>&6 | |
7165 | else | |
7166 | echo "$ac_t""no" 1>&6 | |
7167 | fi | |
7168 | ||
7169 | ||
9f41d601 | 7170 | echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6 |
cb61c62d | 7171 | echo "configure:7172: checking for --enable-popupwin" >&5 |
9f41d601 RR |
7172 | no_cache=0 |
7173 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
7174 | if test "${enable_popupwin+set}" = set; then | |
7175 | enableval="$enable_popupwin" | |
7176 | ||
7177 | if test "$enableval" = yes; then | |
7178 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
7179 | else | |
7180 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
7181 | fi | |
7182 | ||
7183 | else | |
7184 | ||
7185 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` | |
7186 | if test "x$LINE" != x ; then | |
7187 | eval "DEFAULT_$LINE" | |
7188 | else | |
7189 | no_cache=1 | |
7190 | fi | |
7191 | ||
7192 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
7193 | ||
7194 | fi | |
7195 | ||
7196 | ||
7197 | eval "$ac_cv_use_popupwin" | |
7198 | if test "$no_cache" != 1; then | |
7199 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
7200 | fi | |
7201 | ||
7202 | if test "$wxUSE_POPUPWIN" = yes; then | |
7203 | echo "$ac_t""yes" 1>&6 | |
7204 | else | |
7205 | echo "$ac_t""no" 1>&6 | |
7206 | fi | |
7207 | ||
7208 | ||
1e6feb95 VZ |
7209 | |
7210 | ||
7211 | echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6 | |
cb61c62d | 7212 | echo "configure:7213: checking for --enable-commondlg" >&5 |
1e6feb95 VZ |
7213 | no_cache=0 |
7214 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
7215 | if test "${enable_commondlg+set}" = set; then | |
7216 | enableval="$enable_commondlg" | |
7217 | ||
7218 | if test "$enableval" = yes; then | |
7219 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
7220 | else | |
7221 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
7222 | fi | |
7223 | ||
7224 | else | |
7225 | ||
7226 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
7227 | if test "x$LINE" != x ; then | |
7228 | eval "DEFAULT_$LINE" | |
7229 | else | |
7230 | no_cache=1 | |
7231 | fi | |
7232 | ||
7233 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
7234 | ||
7235 | fi | |
7236 | ||
7237 | ||
7238 | eval "$ac_cv_use_commondlg" | |
7239 | if test "$no_cache" != 1; then | |
7240 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
7241 | fi | |
7242 | ||
7243 | if test "$wxUSE_COMMONDLGS" = yes; then | |
7244 | echo "$ac_t""yes" 1>&6 | |
7245 | else | |
7246 | echo "$ac_t""no" 1>&6 | |
7247 | fi | |
7248 | ||
7249 | ||
7250 | echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6 | |
cb61c62d | 7251 | echo "configure:7252: checking for --enable-choicedlg" >&5 |
1e6feb95 VZ |
7252 | no_cache=0 |
7253 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
7254 | if test "${enable_choicedlg+set}" = set; then | |
7255 | enableval="$enable_choicedlg" | |
7256 | ||
7257 | if test "$enableval" = yes; then | |
7258 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
7259 | else | |
7260 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
7261 | fi | |
7262 | ||
7263 | else | |
7264 | ||
7265 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
7266 | if test "x$LINE" != x ; then | |
7267 | eval "DEFAULT_$LINE" | |
7268 | else | |
7269 | no_cache=1 | |
7270 | fi | |
7271 | ||
7272 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
7273 | ||
7274 | fi | |
7275 | ||
7276 | ||
7277 | eval "$ac_cv_use_choicedlg" | |
7278 | if test "$no_cache" != 1; then | |
7279 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
7280 | fi | |
7281 | ||
7282 | if test "$wxUSE_CHOICEDLG" = yes; then | |
7283 | echo "$ac_t""yes" 1>&6 | |
7284 | else | |
7285 | echo "$ac_t""no" 1>&6 | |
7286 | fi | |
7287 | ||
7288 | ||
7289 | echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6 | |
cb61c62d | 7290 | echo "configure:7291: checking for --enable-coldlg" >&5 |
1e6feb95 VZ |
7291 | no_cache=0 |
7292 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
7293 | if test "${enable_coldlg+set}" = set; then | |
7294 | enableval="$enable_coldlg" | |
7295 | ||
7296 | if test "$enableval" = yes; then | |
7297 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
7298 | else | |
7299 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
7300 | fi | |
7301 | ||
7302 | else | |
7303 | ||
7304 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
7305 | if test "x$LINE" != x ; then | |
7306 | eval "DEFAULT_$LINE" | |
7307 | else | |
7308 | no_cache=1 | |
7309 | fi | |
7310 | ||
7311 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
7312 | ||
7313 | fi | |
7314 | ||
7315 | ||
7316 | eval "$ac_cv_use_coldlg" | |
7317 | if test "$no_cache" != 1; then | |
7318 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
7319 | fi | |
7320 | ||
7321 | if test "$wxUSE_COLOURDLG" = yes; then | |
7322 | echo "$ac_t""yes" 1>&6 | |
7323 | else | |
7324 | echo "$ac_t""no" 1>&6 | |
7325 | fi | |
7326 | ||
7327 | ||
7328 | echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6 | |
cb61c62d | 7329 | echo "configure:7330: checking for --enable-filedlg" >&5 |
1e6feb95 VZ |
7330 | no_cache=0 |
7331 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
7332 | if test "${enable_filedlg+set}" = set; then | |
7333 | enableval="$enable_filedlg" | |
7334 | ||
7335 | if test "$enableval" = yes; then | |
7336 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
7337 | else | |
7338 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
7339 | fi | |
7340 | ||
7341 | else | |
7342 | ||
7343 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
7344 | if test "x$LINE" != x ; then | |
7345 | eval "DEFAULT_$LINE" | |
7346 | else | |
7347 | no_cache=1 | |
7348 | fi | |
7349 | ||
7350 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
7351 | ||
7352 | fi | |
7353 | ||
7354 | ||
7355 | eval "$ac_cv_use_filedlg" | |
7356 | if test "$no_cache" != 1; then | |
7357 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
7358 | fi | |
7359 | ||
7360 | if test "$wxUSE_FILEDLG" = yes; then | |
7361 | echo "$ac_t""yes" 1>&6 | |
7362 | else | |
7363 | echo "$ac_t""no" 1>&6 | |
7364 | fi | |
7365 | ||
7366 | ||
69d27ff7 | 7367 | echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6 |
cb61c62d | 7368 | echo "configure:7369: checking for --enable-finddlg" >&5 |
8db37e06 | 7369 | no_cache=0 |
69d27ff7 MB |
7370 | # Check whether --enable-finddlg or --disable-finddlg was given. |
7371 | if test "${enable_finddlg+set}" = set; then | |
7372 | enableval="$enable_finddlg" | |
8db37e06 VZ |
7373 | |
7374 | if test "$enableval" = yes; then | |
69d27ff7 | 7375 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' |
8db37e06 | 7376 | else |
69d27ff7 | 7377 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' |
8db37e06 VZ |
7378 | fi |
7379 | ||
7380 | else | |
7381 | ||
7382 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` | |
7383 | if test "x$LINE" != x ; then | |
7384 | eval "DEFAULT_$LINE" | |
7385 | else | |
7386 | no_cache=1 | |
7387 | fi | |
7388 | ||
69d27ff7 | 7389 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG |
8db37e06 VZ |
7390 | |
7391 | fi | |
7392 | ||
7393 | ||
69d27ff7 | 7394 | eval "$ac_cv_use_finddlg" |
8db37e06 | 7395 | if test "$no_cache" != 1; then |
69d27ff7 | 7396 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp |
8db37e06 VZ |
7397 | fi |
7398 | ||
7399 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
7400 | echo "$ac_t""yes" 1>&6 | |
7401 | else | |
7402 | echo "$ac_t""no" 1>&6 | |
7403 | fi | |
7404 | ||
7405 | ||
1e6feb95 | 7406 | echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6 |
cb61c62d | 7407 | echo "configure:7408: checking for --enable-fontdlg" >&5 |
1e6feb95 VZ |
7408 | no_cache=0 |
7409 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
7410 | if test "${enable_fontdlg+set}" = set; then | |
7411 | enableval="$enable_fontdlg" | |
7412 | ||
7413 | if test "$enableval" = yes; then | |
7414 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
7415 | else | |
7416 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
7417 | fi | |
7418 | ||
7419 | else | |
7420 | ||
7421 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
7422 | if test "x$LINE" != x ; then | |
7423 | eval "DEFAULT_$LINE" | |
7424 | else | |
7425 | no_cache=1 | |
7426 | fi | |
7427 | ||
7428 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
7429 | ||
7430 | fi | |
7431 | ||
7432 | ||
7433 | eval "$ac_cv_use_fontdlg" | |
7434 | if test "$no_cache" != 1; then | |
7435 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
7436 | fi | |
7437 | ||
7438 | if test "$wxUSE_FONTDLG" = yes; then | |
7439 | echo "$ac_t""yes" 1>&6 | |
7440 | else | |
7441 | echo "$ac_t""no" 1>&6 | |
7442 | fi | |
7443 | ||
7444 | ||
7445 | echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6 | |
cb61c62d | 7446 | echo "configure:7447: checking for --enable-dirdlg" >&5 |
1e6feb95 VZ |
7447 | no_cache=0 |
7448 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
7449 | if test "${enable_dirdlg+set}" = set; then | |
7450 | enableval="$enable_dirdlg" | |
7451 | ||
7452 | if test "$enableval" = yes; then | |
7453 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
7454 | else | |
7455 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
7456 | fi | |
7457 | ||
7458 | else | |
7459 | ||
7460 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
7461 | if test "x$LINE" != x ; then | |
7462 | eval "DEFAULT_$LINE" | |
7463 | else | |
7464 | no_cache=1 | |
7465 | fi | |
7466 | ||
7467 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
7468 | ||
7469 | fi | |
7470 | ||
7471 | ||
7472 | eval "$ac_cv_use_dirdlg" | |
10f2d63a | 7473 | if test "$no_cache" != 1; then |
1e6feb95 | 7474 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7475 | fi |
7476 | ||
1e6feb95 | 7477 | if test "$wxUSE_DIRDLG" = yes; then |
698dcdb6 | 7478 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7479 | else |
698dcdb6 | 7480 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7481 | fi |
698dcdb6 VZ |
7482 | |
7483 | ||
1e6feb95 | 7484 | echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6 |
cb61c62d | 7485 | echo "configure:7486: checking for --enable-msgdlg" >&5 |
10f2d63a | 7486 | no_cache=0 |
1e6feb95 VZ |
7487 | # Check whether --enable-msgdlg or --disable-msgdlg was given. |
7488 | if test "${enable_msgdlg+set}" = set; then | |
7489 | enableval="$enable_msgdlg" | |
698dcdb6 | 7490 | |
10f2d63a | 7491 | if test "$enableval" = yes; then |
1e6feb95 | 7492 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' |
10f2d63a | 7493 | else |
1e6feb95 | 7494 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' |
10f2d63a | 7495 | fi |
698dcdb6 | 7496 | |
10f2d63a | 7497 | else |
698dcdb6 | 7498 | |
1e6feb95 | 7499 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
7500 | if test "x$LINE" != x ; then |
7501 | eval "DEFAULT_$LINE" | |
7502 | else | |
7503 | no_cache=1 | |
7504 | fi | |
7505 | ||
1e6feb95 | 7506 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG |
698dcdb6 VZ |
7507 | |
7508 | fi | |
10f2d63a VZ |
7509 | |
7510 | ||
1e6feb95 | 7511 | eval "$ac_cv_use_msgdlg" |
10f2d63a | 7512 | if test "$no_cache" != 1; then |
1e6feb95 | 7513 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7514 | fi |
7515 | ||
1e6feb95 | 7516 | if test "$wxUSE_MSGDLG" = yes; then |
698dcdb6 | 7517 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7518 | else |
698dcdb6 | 7519 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7520 | fi |
698dcdb6 | 7521 | |
10f2d63a | 7522 | |
1e6feb95 | 7523 | echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6 |
cb61c62d | 7524 | echo "configure:7525: checking for --enable-numberdlg" >&5 |
10f2d63a | 7525 | no_cache=0 |
1e6feb95 VZ |
7526 | # Check whether --enable-numberdlg or --disable-numberdlg was given. |
7527 | if test "${enable_numberdlg+set}" = set; then | |
7528 | enableval="$enable_numberdlg" | |
698dcdb6 | 7529 | |
10f2d63a | 7530 | if test "$enableval" = yes; then |
1e6feb95 | 7531 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' |
10f2d63a | 7532 | else |
1e6feb95 | 7533 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' |
10f2d63a | 7534 | fi |
698dcdb6 | 7535 | |
10f2d63a | 7536 | else |
698dcdb6 | 7537 | |
1e6feb95 | 7538 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
7539 | if test "x$LINE" != x ; then |
7540 | eval "DEFAULT_$LINE" | |
7541 | else | |
7542 | no_cache=1 | |
7543 | fi | |
7544 | ||
1e6feb95 | 7545 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG |
698dcdb6 VZ |
7546 | |
7547 | fi | |
10f2d63a VZ |
7548 | |
7549 | ||
1e6feb95 | 7550 | eval "$ac_cv_use_numberdlg" |
10f2d63a | 7551 | if test "$no_cache" != 1; then |
1e6feb95 | 7552 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7553 | fi |
7554 | ||
1e6feb95 | 7555 | if test "$wxUSE_NUMBERDLG" = yes; then |
698dcdb6 | 7556 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7557 | else |
698dcdb6 | 7558 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7559 | fi |
698dcdb6 | 7560 | |
10f2d63a | 7561 | |
cbca9943 | 7562 | echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6 |
cb61c62d | 7563 | echo "configure:7564: checking for --enable-splash" >&5 |
cbca9943 VZ |
7564 | no_cache=0 |
7565 | # Check whether --enable-splash or --disable-splash was given. | |
7566 | if test "${enable_splash+set}" = set; then | |
7567 | enableval="$enable_splash" | |
7568 | ||
7569 | if test "$enableval" = yes; then | |
7570 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
7571 | else | |
7572 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
7573 | fi | |
7574 | ||
7575 | else | |
7576 | ||
7577 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` | |
7578 | if test "x$LINE" != x ; then | |
7579 | eval "DEFAULT_$LINE" | |
7580 | else | |
7581 | no_cache=1 | |
7582 | fi | |
7583 | ||
7584 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
7585 | ||
7586 | fi | |
7587 | ||
7588 | ||
7589 | eval "$ac_cv_use_splash" | |
7590 | if test "$no_cache" != 1; then | |
7591 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
7592 | fi | |
7593 | ||
7594 | if test "$wxUSE_SPLASH" = yes; then | |
7595 | echo "$ac_t""yes" 1>&6 | |
7596 | else | |
7597 | echo "$ac_t""no" 1>&6 | |
7598 | fi | |
7599 | ||
7600 | ||
698dcdb6 | 7601 | echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6 |
cb61c62d | 7602 | echo "configure:7603: checking for --enable-textdlg" >&5 |
10f2d63a VZ |
7603 | no_cache=0 |
7604 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
7605 | if test "${enable_textdlg+set}" = set; then | |
7606 | enableval="$enable_textdlg" | |
698dcdb6 | 7607 | |
10f2d63a VZ |
7608 | if test "$enableval" = yes; then |
7609 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
7610 | else | |
7611 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
7612 | fi | |
698dcdb6 | 7613 | |
10f2d63a | 7614 | else |
698dcdb6 | 7615 | |
10f2d63a VZ |
7616 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` |
7617 | if test "x$LINE" != x ; then | |
7618 | eval "DEFAULT_$LINE" | |
7619 | else | |
7620 | no_cache=1 | |
7621 | fi | |
7622 | ||
7623 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
698dcdb6 VZ |
7624 | |
7625 | fi | |
10f2d63a VZ |
7626 | |
7627 | ||
7628 | eval "$ac_cv_use_textdlg" | |
7629 | if test "$no_cache" != 1; then | |
7630 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
7631 | fi | |
7632 | ||
7633 | if test "$wxUSE_TEXTDLG" = yes; then | |
698dcdb6 | 7634 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7635 | else |
698dcdb6 | 7636 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7637 | fi |
698dcdb6 | 7638 | |
10f2d63a | 7639 | |
698dcdb6 | 7640 | echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6 |
cb61c62d | 7641 | echo "configure:7642: checking for --enable-tipdlg" >&5 |
10f2d63a VZ |
7642 | no_cache=0 |
7643 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
7644 | if test "${enable_tipdlg+set}" = set; then | |
7645 | enableval="$enable_tipdlg" | |
698dcdb6 | 7646 | |
10f2d63a VZ |
7647 | if test "$enableval" = yes; then |
7648 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
7649 | else | |
7650 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
7651 | fi | |
698dcdb6 | 7652 | |
10f2d63a | 7653 | else |
698dcdb6 | 7654 | |
10f2d63a VZ |
7655 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` |
7656 | if test "x$LINE" != x ; then | |
7657 | eval "DEFAULT_$LINE" | |
7658 | else | |
7659 | no_cache=1 | |
7660 | fi | |
7661 | ||
7662 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
698dcdb6 VZ |
7663 | |
7664 | fi | |
10f2d63a VZ |
7665 | |
7666 | ||
7667 | eval "$ac_cv_use_tipdlg" | |
7668 | if test "$no_cache" != 1; then | |
7669 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
7670 | fi | |
7671 | ||
7672 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
698dcdb6 | 7673 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7674 | else |
698dcdb6 | 7675 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7676 | fi |
698dcdb6 | 7677 | |
10f2d63a | 7678 | |
698dcdb6 | 7679 | echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6 |
cb61c62d | 7680 | echo "configure:7681: checking for --enable-progressdlg" >&5 |
10f2d63a VZ |
7681 | no_cache=0 |
7682 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
7683 | if test "${enable_progressdlg+set}" = set; then | |
7684 | enableval="$enable_progressdlg" | |
698dcdb6 | 7685 | |
10f2d63a VZ |
7686 | if test "$enableval" = yes; then |
7687 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
7688 | else | |
7689 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
7690 | fi | |
698dcdb6 | 7691 | |
10f2d63a | 7692 | else |
698dcdb6 | 7693 | |
10f2d63a VZ |
7694 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` |
7695 | if test "x$LINE" != x ; then | |
7696 | eval "DEFAULT_$LINE" | |
7697 | else | |
7698 | no_cache=1 | |
7699 | fi | |
7700 | ||
7701 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
698dcdb6 VZ |
7702 | |
7703 | fi | |
10f2d63a VZ |
7704 | |
7705 | ||
7706 | eval "$ac_cv_use_progressdlg" | |
7707 | if test "$no_cache" != 1; then | |
7708 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
7709 | fi | |
7710 | ||
7711 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
698dcdb6 | 7712 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7713 | else |
698dcdb6 | 7714 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7715 | fi |
698dcdb6 | 7716 | |
10f2d63a | 7717 | |
b1f5d087 | 7718 | echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6 |
cb61c62d | 7719 | echo "configure:7720: checking for --enable-wizarddlg" >&5 |
b1f5d087 VZ |
7720 | no_cache=0 |
7721 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
7722 | if test "${enable_wizarddlg+set}" = set; then | |
7723 | enableval="$enable_wizarddlg" | |
7724 | ||
7725 | if test "$enableval" = yes; then | |
7726 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
7727 | else | |
7728 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
7729 | fi | |
7730 | ||
7731 | else | |
7732 | ||
7733 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
7734 | if test "x$LINE" != x ; then | |
7735 | eval "DEFAULT_$LINE" | |
7736 | else | |
7737 | no_cache=1 | |
7738 | fi | |
7739 | ||
7740 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
7741 | ||
7742 | fi | |
7743 | ||
7744 | ||
7745 | eval "$ac_cv_use_wizarddlg" | |
7746 | if test "$no_cache" != 1; then | |
7747 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
7748 | fi | |
7749 | ||
7750 | if test "$wxUSE_WIZARDDLG" = yes; then | |
7751 | echo "$ac_t""yes" 1>&6 | |
7752 | else | |
7753 | echo "$ac_t""no" 1>&6 | |
7754 | fi | |
7755 | ||
7756 | ||
7757 | ||
7758 | ||
1e6feb95 | 7759 | echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6 |
cb61c62d | 7760 | echo "configure:7761: checking for --enable-menus" >&5 |
1e6feb95 VZ |
7761 | no_cache=0 |
7762 | # Check whether --enable-menus or --disable-menus was given. | |
7763 | if test "${enable_menus+set}" = set; then | |
7764 | enableval="$enable_menus" | |
7765 | ||
7766 | if test "$enableval" = yes; then | |
7767 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
7768 | else | |
7769 | ac_cv_use_menus='wxUSE_MENUS=no' | |
7770 | fi | |
7771 | ||
7772 | else | |
7773 | ||
7774 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
7775 | if test "x$LINE" != x ; then | |
7776 | eval "DEFAULT_$LINE" | |
7777 | else | |
7778 | no_cache=1 | |
7779 | fi | |
7780 | ||
7781 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
7782 | ||
7783 | fi | |
7784 | ||
7785 | ||
7786 | eval "$ac_cv_use_menus" | |
7787 | if test "$no_cache" != 1; then | |
7788 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
7789 | fi | |
7790 | ||
7791 | if test "$wxUSE_MENUS" = yes; then | |
7792 | echo "$ac_t""yes" 1>&6 | |
7793 | else | |
7794 | echo "$ac_t""no" 1>&6 | |
7795 | fi | |
7796 | ||
7797 | ||
698dcdb6 | 7798 | echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6 |
cb61c62d | 7799 | echo "configure:7800: checking for --enable-miniframe" >&5 |
10f2d63a VZ |
7800 | no_cache=0 |
7801 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
7802 | if test "${enable_miniframe+set}" = set; then | |
7803 | enableval="$enable_miniframe" | |
698dcdb6 | 7804 | |
10f2d63a VZ |
7805 | if test "$enableval" = yes; then |
7806 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
7807 | else | |
7808 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
7809 | fi | |
698dcdb6 | 7810 | |
10f2d63a | 7811 | else |
698dcdb6 | 7812 | |
10f2d63a VZ |
7813 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` |
7814 | if test "x$LINE" != x ; then | |
7815 | eval "DEFAULT_$LINE" | |
7816 | else | |
7817 | no_cache=1 | |
7818 | fi | |
7819 | ||
7820 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
698dcdb6 VZ |
7821 | |
7822 | fi | |
10f2d63a VZ |
7823 | |
7824 | ||
7825 | eval "$ac_cv_use_miniframe" | |
7826 | if test "$no_cache" != 1; then | |
7827 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
7828 | fi | |
7829 | ||
7830 | if test "$wxUSE_MINIFRAME" = yes; then | |
698dcdb6 | 7831 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7832 | else |
698dcdb6 | 7833 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7834 | fi |
698dcdb6 | 7835 | |
10f2d63a | 7836 | |
698dcdb6 | 7837 | echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6 |
cb61c62d | 7838 | echo "configure:7839: checking for --enable-tooltips" >&5 |
10f2d63a VZ |
7839 | no_cache=0 |
7840 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
7841 | if test "${enable_tooltips+set}" = set; then | |
7842 | enableval="$enable_tooltips" | |
698dcdb6 | 7843 | |
10f2d63a VZ |
7844 | if test "$enableval" = yes; then |
7845 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
7846 | else | |
7847 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
7848 | fi | |
698dcdb6 | 7849 | |
10f2d63a | 7850 | else |
698dcdb6 | 7851 | |
10f2d63a VZ |
7852 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` |
7853 | if test "x$LINE" != x ; then | |
7854 | eval "DEFAULT_$LINE" | |
7855 | else | |
7856 | no_cache=1 | |
7857 | fi | |
7858 | ||
7859 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
698dcdb6 VZ |
7860 | |
7861 | fi | |
10f2d63a VZ |
7862 | |
7863 | ||
7864 | eval "$ac_cv_use_tooltips" | |
7865 | if test "$no_cache" != 1; then | |
7866 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
7867 | fi | |
7868 | ||
7869 | if test "$wxUSE_TOOLTIPS" = yes; then | |
698dcdb6 | 7870 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7871 | else |
698dcdb6 | 7872 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7873 | fi |
698dcdb6 | 7874 | |
10f2d63a | 7875 | |
698dcdb6 | 7876 | echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6 |
cb61c62d | 7877 | echo "configure:7878: checking for --enable-splines" >&5 |
10f2d63a VZ |
7878 | no_cache=0 |
7879 | # Check whether --enable-splines or --disable-splines was given. | |
7880 | if test "${enable_splines+set}" = set; then | |
7881 | enableval="$enable_splines" | |
698dcdb6 | 7882 | |
10f2d63a VZ |
7883 | if test "$enableval" = yes; then |
7884 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
7885 | else | |
7886 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
7887 | fi | |
698dcdb6 | 7888 | |
10f2d63a | 7889 | else |
698dcdb6 | 7890 | |
10f2d63a VZ |
7891 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` |
7892 | if test "x$LINE" != x ; then | |
7893 | eval "DEFAULT_$LINE" | |
7894 | else | |
7895 | no_cache=1 | |
7896 | fi | |
7897 | ||
7898 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
698dcdb6 VZ |
7899 | |
7900 | fi | |
10f2d63a VZ |
7901 | |
7902 | ||
7903 | eval "$ac_cv_use_splines" | |
7904 | if test "$no_cache" != 1; then | |
7905 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
7906 | fi | |
7907 | ||
7908 | if test "$wxUSE_SPLINES" = yes; then | |
698dcdb6 | 7909 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7910 | else |
698dcdb6 | 7911 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7912 | fi |
698dcdb6 | 7913 | |
10f2d63a | 7914 | |
698dcdb6 | 7915 | echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6 |
cb61c62d | 7916 | echo "configure:7917: checking for --enable-validators" >&5 |
10f2d63a VZ |
7917 | no_cache=0 |
7918 | # Check whether --enable-validators or --disable-validators was given. | |
7919 | if test "${enable_validators+set}" = set; then | |
7920 | enableval="$enable_validators" | |
698dcdb6 | 7921 | |
10f2d63a VZ |
7922 | if test "$enableval" = yes; then |
7923 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
7924 | else | |
7925 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
7926 | fi | |
698dcdb6 | 7927 | |
10f2d63a | 7928 | else |
698dcdb6 | 7929 | |
10f2d63a VZ |
7930 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` |
7931 | if test "x$LINE" != x ; then | |
7932 | eval "DEFAULT_$LINE" | |
7933 | else | |
7934 | no_cache=1 | |
7935 | fi | |
7936 | ||
7937 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
698dcdb6 VZ |
7938 | |
7939 | fi | |
10f2d63a VZ |
7940 | |
7941 | ||
7942 | eval "$ac_cv_use_validators" | |
7943 | if test "$no_cache" != 1; then | |
7944 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
7945 | fi | |
7946 | ||
7947 | if test "$wxUSE_VALIDATORS" = yes; then | |
698dcdb6 | 7948 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7949 | else |
698dcdb6 | 7950 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7951 | fi |
698dcdb6 | 7952 | |
10f2d63a | 7953 | |
698dcdb6 | 7954 | echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6 |
cb61c62d | 7955 | echo "configure:7956: checking for --enable-busyinfo" >&5 |
10f2d63a VZ |
7956 | no_cache=0 |
7957 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
7958 | if test "${enable_busyinfo+set}" = set; then | |
7959 | enableval="$enable_busyinfo" | |
698dcdb6 | 7960 | |
10f2d63a VZ |
7961 | if test "$enableval" = yes; then |
7962 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
7963 | else | |
7964 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
7965 | fi | |
698dcdb6 | 7966 | |
10f2d63a | 7967 | else |
698dcdb6 | 7968 | |
10f2d63a VZ |
7969 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` |
7970 | if test "x$LINE" != x ; then | |
7971 | eval "DEFAULT_$LINE" | |
7972 | else | |
7973 | no_cache=1 | |
7974 | fi | |
7975 | ||
7976 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
698dcdb6 VZ |
7977 | |
7978 | fi | |
10f2d63a VZ |
7979 | |
7980 | ||
7981 | eval "$ac_cv_use_busyinfo" | |
7982 | if test "$no_cache" != 1; then | |
7983 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
7984 | fi | |
7985 | ||
7986 | if test "$wxUSE_BUSYINFO" = yes; then | |
698dcdb6 | 7987 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7988 | else |
698dcdb6 | 7989 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7990 | fi |
698dcdb6 | 7991 | |
10f2d63a | 7992 | |
698dcdb6 | 7993 | echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6 |
cb61c62d | 7994 | echo "configure:7995: checking for --enable-joystick" >&5 |
f6bcfd97 BP |
7995 | no_cache=0 |
7996 | # Check whether --enable-joystick or --disable-joystick was given. | |
7997 | if test "${enable_joystick+set}" = set; then | |
7998 | enableval="$enable_joystick" | |
698dcdb6 | 7999 | |
f6bcfd97 BP |
8000 | if test "$enableval" = yes; then |
8001 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
8002 | else | |
8003 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
8004 | fi | |
698dcdb6 | 8005 | |
f6bcfd97 | 8006 | else |
698dcdb6 | 8007 | |
f6bcfd97 BP |
8008 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` |
8009 | if test "x$LINE" != x ; then | |
8010 | eval "DEFAULT_$LINE" | |
8011 | else | |
8012 | no_cache=1 | |
8013 | fi | |
8014 | ||
8015 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
698dcdb6 VZ |
8016 | |
8017 | fi | |
f6bcfd97 BP |
8018 | |
8019 | ||
8020 | eval "$ac_cv_use_joystick" | |
8021 | if test "$no_cache" != 1; then | |
8022 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
8023 | fi | |
8024 | ||
8025 | if test "$wxUSE_JOYSTICK" = yes; then | |
698dcdb6 | 8026 | echo "$ac_t""yes" 1>&6 |
f6bcfd97 | 8027 | else |
698dcdb6 | 8028 | echo "$ac_t""no" 1>&6 |
f6bcfd97 | 8029 | fi |
698dcdb6 VZ |
8030 | |
8031 | ||
1e6feb95 | 8032 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
cb61c62d | 8033 | echo "configure:8034: checking for --enable-metafile" >&5 |
1e6feb95 VZ |
8034 | no_cache=0 |
8035 | # Check whether --enable-metafile or --disable-metafile was given. | |
8036 | if test "${enable_metafile+set}" = set; then | |
8037 | enableval="$enable_metafile" | |
8038 | ||
8039 | if test "$enableval" = yes; then | |
8040 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
8041 | else | |
8042 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
8043 | fi | |
8044 | ||
8045 | else | |
8046 | ||
8047 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
8048 | if test "x$LINE" != x ; then | |
8049 | eval "DEFAULT_$LINE" | |
8050 | else | |
8051 | no_cache=1 | |
8052 | fi | |
8053 | ||
8054 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
8055 | ||
8056 | fi | |
8057 | ||
8058 | ||
8059 | eval "$ac_cv_use_metafile" | |
8060 | if test "$no_cache" != 1; then | |
8061 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
8062 | fi | |
8063 | ||
8064 | if test "$wxUSE_METAFILE" = yes; then | |
8065 | echo "$ac_t""yes" 1>&6 | |
8066 | else | |
8067 | echo "$ac_t""no" 1>&6 | |
8068 | fi | |
8069 | ||
8070 | ||
24fd6d87 | 8071 | echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6 |
cb61c62d | 8072 | echo "configure:8073: checking for --enable-dragimage" >&5 |
24fd6d87 VZ |
8073 | no_cache=0 |
8074 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
8075 | if test "${enable_dragimage+set}" = set; then | |
8076 | enableval="$enable_dragimage" | |
8077 | ||
8078 | if test "$enableval" = yes; then | |
8079 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
8080 | else | |
8081 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
8082 | fi | |
8083 | ||
8084 | else | |
8085 | ||
8086 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
8087 | if test "x$LINE" != x ; then | |
8088 | eval "DEFAULT_$LINE" | |
8089 | else | |
8090 | no_cache=1 | |
8091 | fi | |
8092 | ||
8093 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
8094 | ||
8095 | fi | |
8096 | ||
8097 | ||
8098 | eval "$ac_cv_use_dragimage" | |
8099 | if test "$no_cache" != 1; then | |
8100 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
8101 | fi | |
8102 | ||
8103 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
8104 | echo "$ac_t""yes" 1>&6 | |
8105 | else | |
8106 | echo "$ac_t""no" 1>&6 | |
8107 | fi | |
8108 | ||
8109 | ||
10f2d63a | 8110 | |
698dcdb6 | 8111 | |
edae8572 | 8112 | echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6 |
cb61c62d | 8113 | echo "configure:8114: checking for --enable-palette" >&5 |
edae8572 VZ |
8114 | no_cache=0 |
8115 | # Check whether --enable-palette or --disable-palette was given. | |
8116 | if test "${enable_palette+set}" = set; then | |
8117 | enableval="$enable_palette" | |
8118 | ||
8119 | if test "$enableval" = yes; then | |
8120 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
8121 | else | |
8122 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
8123 | fi | |
8124 | ||
8125 | else | |
8126 | ||
8127 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` | |
8128 | if test "x$LINE" != x ; then | |
8129 | eval "DEFAULT_$LINE" | |
8130 | else | |
8131 | no_cache=1 | |
8132 | fi | |
8133 | ||
8134 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
8135 | ||
8136 | fi | |
8137 | ||
8138 | ||
8139 | eval "$ac_cv_use_palette" | |
8140 | if test "$no_cache" != 1; then | |
8141 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
8142 | fi | |
8143 | ||
8144 | if test "$wxUSE_PALETTE" = yes; then | |
8145 | echo "$ac_t""yes" 1>&6 | |
8146 | else | |
8147 | echo "$ac_t""no" 1>&6 | |
8148 | fi | |
8149 | ||
8150 | ||
698dcdb6 | 8151 | echo $ac_n "checking for --enable-image""... $ac_c" 1>&6 |
cb61c62d | 8152 | echo "configure:8153: checking for --enable-image" >&5 |
0046ff7c VS |
8153 | no_cache=0 |
8154 | # Check whether --enable-image or --disable-image was given. | |
8155 | if test "${enable_image+set}" = set; then | |
8156 | enableval="$enable_image" | |
698dcdb6 | 8157 | |
0046ff7c VS |
8158 | if test "$enableval" = yes; then |
8159 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
8160 | else | |
8161 | ac_cv_use_image='wxUSE_IMAGE=no' | |
8162 | fi | |
698dcdb6 | 8163 | |
0046ff7c | 8164 | else |
698dcdb6 | 8165 | |
0046ff7c VS |
8166 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` |
8167 | if test "x$LINE" != x ; then | |
8168 | eval "DEFAULT_$LINE" | |
8169 | else | |
8170 | no_cache=1 | |
8171 | fi | |
8172 | ||
8173 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
698dcdb6 VZ |
8174 | |
8175 | fi | |
0046ff7c VS |
8176 | |
8177 | ||
8178 | eval "$ac_cv_use_image" | |
8179 | if test "$no_cache" != 1; then | |
8180 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
8181 | fi | |
8182 | ||
8183 | if test "$wxUSE_IMAGE" = yes; then | |
698dcdb6 | 8184 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 8185 | else |
698dcdb6 | 8186 | echo "$ac_t""no" 1>&6 |
0046ff7c | 8187 | fi |
698dcdb6 | 8188 | |
0046ff7c | 8189 | |
698dcdb6 | 8190 | echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6 |
cb61c62d | 8191 | echo "configure:8192: checking for --enable-gif" >&5 |
10f2d63a VZ |
8192 | no_cache=0 |
8193 | # Check whether --enable-gif or --disable-gif was given. | |
8194 | if test "${enable_gif+set}" = set; then | |
8195 | enableval="$enable_gif" | |
698dcdb6 | 8196 | |
10f2d63a VZ |
8197 | if test "$enableval" = yes; then |
8198 | ac_cv_use_gif='wxUSE_GIF=yes' | |
8199 | else | |
8200 | ac_cv_use_gif='wxUSE_GIF=no' | |
8201 | fi | |
698dcdb6 | 8202 | |
10f2d63a | 8203 | else |
698dcdb6 | 8204 | |
10f2d63a VZ |
8205 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` |
8206 | if test "x$LINE" != x ; then | |
8207 | eval "DEFAULT_$LINE" | |
8208 | else | |
8209 | no_cache=1 | |
8210 | fi | |
8211 | ||
8212 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
698dcdb6 VZ |
8213 | |
8214 | fi | |
10f2d63a VZ |
8215 | |
8216 | ||
8217 | eval "$ac_cv_use_gif" | |
8218 | if test "$no_cache" != 1; then | |
8219 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
8220 | fi | |
8221 | ||
8222 | if test "$wxUSE_GIF" = yes; then | |
698dcdb6 | 8223 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8224 | else |
698dcdb6 | 8225 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8226 | fi |
698dcdb6 | 8227 | |
10f2d63a | 8228 | |
698dcdb6 | 8229 | echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6 |
cb61c62d | 8230 | echo "configure:8231: checking for --enable-pcx" >&5 |
10f2d63a VZ |
8231 | no_cache=0 |
8232 | # Check whether --enable-pcx or --disable-pcx was given. | |
8233 | if test "${enable_pcx+set}" = set; then | |
8234 | enableval="$enable_pcx" | |
698dcdb6 | 8235 | |
10f2d63a VZ |
8236 | if test "$enableval" = yes; then |
8237 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
8238 | else | |
8239 | ac_cv_use_pcx='wxUSE_PCX=no' | |
8240 | fi | |
698dcdb6 | 8241 | |
10f2d63a | 8242 | else |
698dcdb6 | 8243 | |
10f2d63a VZ |
8244 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` |
8245 | if test "x$LINE" != x ; then | |
8246 | eval "DEFAULT_$LINE" | |
8247 | else | |
8248 | no_cache=1 | |
8249 | fi | |
8250 | ||
8251 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
698dcdb6 VZ |
8252 | |
8253 | fi | |
10f2d63a VZ |
8254 | |
8255 | ||
8256 | eval "$ac_cv_use_pcx" | |
8257 | if test "$no_cache" != 1; then | |
8258 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
8259 | fi | |
8260 | ||
8261 | if test "$wxUSE_PCX" = yes; then | |
698dcdb6 | 8262 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8263 | else |
698dcdb6 | 8264 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8265 | fi |
698dcdb6 | 8266 | |
10f2d63a | 8267 | |
4b6b4dfc | 8268 | echo $ac_n "checking for --enable-iff""... $ac_c" 1>&6 |
cb61c62d | 8269 | echo "configure:8270: checking for --enable-iff" >&5 |
4b6b4dfc RR |
8270 | no_cache=0 |
8271 | # Check whether --enable-iff or --disable-iff was given. | |
8272 | if test "${enable_iff+set}" = set; then | |
8273 | enableval="$enable_iff" | |
8274 | ||
8275 | if test "$enableval" = yes; then | |
8276 | ac_cv_use_iff='wxUSE_IFF=yes' | |
8277 | else | |
8278 | ac_cv_use_iff='wxUSE_IFF=no' | |
8279 | fi | |
8280 | ||
8281 | else | |
8282 | ||
8283 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` | |
8284 | if test "x$LINE" != x ; then | |
8285 | eval "DEFAULT_$LINE" | |
8286 | else | |
8287 | no_cache=1 | |
8288 | fi | |
8289 | ||
8290 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
8291 | ||
8292 | fi | |
8293 | ||
8294 | ||
8295 | eval "$ac_cv_use_iff" | |
8296 | if test "$no_cache" != 1; then | |
8297 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
8298 | fi | |
8299 | ||
8300 | if test "$wxUSE_IFF" = yes; then | |
8301 | echo "$ac_t""yes" 1>&6 | |
8302 | else | |
8303 | echo "$ac_t""no" 1>&6 | |
8304 | fi | |
8305 | ||
8306 | ||
698dcdb6 | 8307 | echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6 |
cb61c62d | 8308 | echo "configure:8309: checking for --enable-pnm" >&5 |
10f2d63a VZ |
8309 | no_cache=0 |
8310 | # Check whether --enable-pnm or --disable-pnm was given. | |
8311 | if test "${enable_pnm+set}" = set; then | |
8312 | enableval="$enable_pnm" | |
698dcdb6 | 8313 | |
10f2d63a VZ |
8314 | if test "$enableval" = yes; then |
8315 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
8316 | else | |
8317 | ac_cv_use_pnm='wxUSE_PNM=no' | |
8318 | fi | |
698dcdb6 | 8319 | |
10f2d63a | 8320 | else |
698dcdb6 | 8321 | |
10f2d63a VZ |
8322 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` |
8323 | if test "x$LINE" != x ; then | |
8324 | eval "DEFAULT_$LINE" | |
8325 | else | |
8326 | no_cache=1 | |
8327 | fi | |
8328 | ||
8329 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
698dcdb6 VZ |
8330 | |
8331 | fi | |
10f2d63a VZ |
8332 | |
8333 | ||
8334 | eval "$ac_cv_use_pnm" | |
8335 | if test "$no_cache" != 1; then | |
8336 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
8337 | fi | |
8338 | ||
8339 | if test "$wxUSE_PNM" = yes; then | |
698dcdb6 | 8340 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8341 | else |
698dcdb6 | 8342 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8343 | fi |
698dcdb6 | 8344 | |
10f2d63a | 8345 | |
69d27ff7 | 8346 | echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6 |
cb61c62d | 8347 | echo "configure:8348: checking for --enable-xpm" >&5 |
0046ff7c | 8348 | no_cache=0 |
69d27ff7 MB |
8349 | # Check whether --enable-xpm or --disable-xpm was given. |
8350 | if test "${enable_xpm+set}" = set; then | |
8351 | enableval="$enable_xpm" | |
698dcdb6 | 8352 | |
0046ff7c | 8353 | if test "$enableval" = yes; then |
69d27ff7 | 8354 | ac_cv_use_xpm='wxUSE_XPM=yes' |
0046ff7c | 8355 | else |
69d27ff7 | 8356 | ac_cv_use_xpm='wxUSE_XPM=no' |
0046ff7c | 8357 | fi |
698dcdb6 | 8358 | |
0046ff7c | 8359 | else |
698dcdb6 | 8360 | |
0046ff7c VS |
8361 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` |
8362 | if test "x$LINE" != x ; then | |
8363 | eval "DEFAULT_$LINE" | |
8364 | else | |
8365 | no_cache=1 | |
8366 | fi | |
8367 | ||
69d27ff7 | 8368 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM |
698dcdb6 VZ |
8369 | |
8370 | fi | |
0046ff7c VS |
8371 | |
8372 | ||
69d27ff7 | 8373 | eval "$ac_cv_use_xpm" |
0046ff7c | 8374 | if test "$no_cache" != 1; then |
69d27ff7 | 8375 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp |
0046ff7c VS |
8376 | fi |
8377 | ||
8378 | if test "$wxUSE_XPM" = yes; then | |
698dcdb6 | 8379 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 8380 | else |
698dcdb6 | 8381 | echo "$ac_t""no" 1>&6 |
0046ff7c | 8382 | fi |
698dcdb6 | 8383 | |
0046ff7c | 8384 | |
c7206e64 | 8385 | echo $ac_n "checking for --enable-ico_cur""... $ac_c" 1>&6 |
cb61c62d | 8386 | echo "configure:8387: checking for --enable-ico_cur" >&5 |
658974ae | 8387 | no_cache=0 |
c7206e64 VS |
8388 | # Check whether --enable-ico_cur or --disable-ico_cur was given. |
8389 | if test "${enable_ico_cur+set}" = set; then | |
8390 | enableval="$enable_ico_cur" | |
658974ae VS |
8391 | |
8392 | if test "$enableval" = yes; then | |
c7206e64 | 8393 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' |
658974ae | 8394 | else |
c7206e64 | 8395 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' |
658974ae VS |
8396 | fi |
8397 | ||
8398 | else | |
8399 | ||
8400 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` | |
8401 | if test "x$LINE" != x ; then | |
8402 | eval "DEFAULT_$LINE" | |
8403 | else | |
8404 | no_cache=1 | |
8405 | fi | |
8406 | ||
c7206e64 | 8407 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR |
658974ae VS |
8408 | |
8409 | fi | |
8410 | ||
8411 | ||
c7206e64 | 8412 | eval "$ac_cv_use_ico_cur" |
658974ae | 8413 | if test "$no_cache" != 1; then |
c7206e64 | 8414 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp |
658974ae VS |
8415 | fi |
8416 | ||
8417 | if test "$wxUSE_ICO_CUR" = yes; then | |
8418 | echo "$ac_t""yes" 1>&6 | |
8419 | else | |
8420 | echo "$ac_t""no" 1>&6 | |
8421 | fi | |
8422 | ||
8423 | ||
b12915c1 VZ |
8424 | fi |
8425 | ||
698dcdb6 | 8426 | |
10f2d63a VZ |
8427 | echo "saving argument cache $wx_arg_cache_file" |
8428 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
698dcdb6 | 8429 | |
10f2d63a | 8430 | |
698dcdb6 VZ |
8431 | |
8432 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 | |
cb61c62d | 8433 | echo "configure:8434: checking for toolkit" >&5 |
10f2d63a VZ |
8434 | |
8435 | if test "$wxUSE_GUI" = "yes"; then | |
8436 | ||
3a922bb4 RL |
8437 | if test "$USE_BEOS" = 1; then |
8438 | { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; } | |
8439 | fi | |
b12915c1 | 8440 | |
3a922bb4 RL |
8441 | if test "$TOOLKIT_GIVEN" = 1; then |
8442 | for toolkit in `echo $ALL_TOOLKITS`; do | |
8443 | var=wxUSE_$toolkit | |
8444 | eval "value=\$${var}" | |
8445 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
8446 | done | |
10f2d63a | 8447 | else |
3a922bb4 RL |
8448 | for toolkit in `echo $ALL_TOOLKITS`; do |
8449 | if test "$has_toolkit_in_cache" != 1; then | |
8450 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
8451 | else | |
8452 | var=DEFAULT_wxUSE_$toolkit | |
8453 | fi | |
8454 | eval "wxUSE_$toolkit=\$${var}" | |
8455 | done | |
10f2d63a | 8456 | fi |
10f2d63a | 8457 | |
3a922bb4 | 8458 | NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \ |
f79bd02d | 8459 | + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}` |
10f2d63a | 8460 | |
3a922bb4 | 8461 | case "${host}" in |
6fa882bd | 8462 | *-pc-os2_emx | *-pc-os2-emx ) |
3a922bb4 RL |
8463 | # PATH_IFS is autodetected by OS/2's configure (usually ';') |
8464 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
8465 | LEX_STEM="lexyy" | |
8466 | ;; | |
8467 | *) | |
8468 | PATH_IFS=':' | |
8469 | LEX_STEM="lex.yy" | |
8470 | ;; | |
8471 | esac | |
10f2d63a | 8472 | |
3a922bb4 RL |
8473 | case "$NUM_TOOLKITS" in |
8474 | 1) | |
8475 | ;; | |
8476 | 0) | |
8477 | { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; } | |
8478 | ;; | |
8479 | *) | |
8480 | { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; } | |
8481 | esac | |
10f2d63a | 8482 | |
3a922bb4 RL |
8483 | for toolkit in `echo $ALL_TOOLKITS`; do |
8484 | var=wxUSE_$toolkit | |
8485 | eval "value=\$${var}" | |
8486 | if test "x$value" != x; then | |
8487 | cache_var=CACHE_$toolkit | |
8488 | eval "cache=\$${cache_var}" | |
8489 | if test "$cache" = 1; then | |
8490 | echo "$var=$value" >> ${wx_arg_cache_file} | |
8491 | fi | |
8492 | if test "$value" = 1; then | |
8493 | toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]` | |
8494 | echo "$ac_t""$toolkit_echo" 1>&6 | |
8495 | fi | |
8496 | fi | |
8497 | done | |
10f2d63a | 8498 | else |
cf27ef00 | 8499 | PATH_IFS=':' |
3a922bb4 | 8500 | echo "$ac_t""base ($host_alias hosted) only" 1>&6 |
10f2d63a VZ |
8501 | fi |
8502 | ||
698dcdb6 VZ |
8503 | |
8504 | cat > confcache <<\EOF | |
10f2d63a VZ |
8505 | # This file is a shell script that caches the results of configure |
8506 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
8507 | # scripts and configure runs. It is not useful on other systems. |
8508 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 8509 | # |
698dcdb6 VZ |
8510 | # By default, configure uses ./config.cache as the cache file, |
8511 | # creating it if it does not exist already. You can give configure | |
8512 | # the --cache-file=FILE option to use a different cache file; that is | |
8513 | # what configure does when it calls configure scripts in | |
8514 | # subdirectories, so they share the cache. | |
8515 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
8516 | # config.status only pays attention to the cache file if you give it the | |
8517 | # --recheck option to rerun configure. | |
10f2d63a | 8518 | # |
698dcdb6 | 8519 | EOF |
10f2d63a VZ |
8520 | # The following way of writing the cache mishandles newlines in values, |
8521 | # but we know of no workaround that is simple, portable, and efficient. | |
8522 | # So, don't put newlines in cache variables' values. | |
8523 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
8524 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
8525 | (set) 2>&1 | |
8526 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
8527 | *ac_space=\ *) | |
8528 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
8529 | # turns \\\\ into \\, and sed turns \\ into \). | |
8530 | sed -n \ | |
8531 | -e "s/'/'\\\\''/g" \ | |
8532 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
8533 | ;; | |
8534 | *) | |
8535 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
8536 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
8537 | ;; | |
8538 | esac >> confcache | |
8539 | if cmp -s $cache_file confcache; then | |
8540 | : | |
8541 | else | |
10f2d63a | 8542 | if test -w $cache_file; then |
698dcdb6 VZ |
8543 | echo "updating cache $cache_file" |
8544 | cat confcache > $cache_file | |
10f2d63a VZ |
8545 | else |
8546 | echo "not updating unwritable cache $cache_file" | |
8547 | fi | |
8548 | fi | |
8549 | rm -f confcache | |
8550 | ||
698dcdb6 | 8551 | |
e59890c3 | 8552 | if test "$build" != "$host" ; then |
f9bc1684 | 8553 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 ; then |
3a922bb4 RL |
8554 | CC=$host_alias-gcc |
8555 | CXX=$host_alias-c++ | |
8556 | AR=$host_alias-ar | |
8557 | RANLIB=$host_alias-ranlib | |
8558 | DLLTOOL=$host_alias-dlltool | |
8559 | RESCOMP=$host_alias-windres | |
8560 | LD=$host_alias-ld | |
8561 | NM=$host_alias-nm | |
8562 | STRIP=$host_alias-strip | |
8563 | else | |
8564 | { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; } | |
8565 | fi | |
10f2d63a VZ |
8566 | fi |
8567 | ||
698dcdb6 | 8568 | # Extract the first word of "gcc", so it can be a program name with args. |
1e487827 | 8569 | set dummy gcc; ac_word=$2 |
698dcdb6 | 8570 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
cb61c62d | 8571 | echo "configure:8572: checking for $ac_word" >&5 |
698dcdb6 VZ |
8572 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8573 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6232543b VS |
8574 | else |
8575 | if test -n "$CC"; then | |
8576 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10f2d63a | 8577 | else |
698dcdb6 VZ |
8578 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8579 | ac_dummy="$PATH" | |
8580 | for ac_dir in $ac_dummy; do | |
8581 | test -z "$ac_dir" && ac_dir=. | |
8582 | if test -f $ac_dir/$ac_word; then | |
8583 | ac_cv_prog_CC="gcc" | |
8584 | break | |
8585 | fi | |
8586 | done | |
8587 | IFS="$ac_save_ifs" | |
10f2d63a | 8588 | fi |
6232543b | 8589 | fi |
698dcdb6 | 8590 | CC="$ac_cv_prog_CC" |
6232543b | 8591 | if test -n "$CC"; then |
698dcdb6 | 8592 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 8593 | else |
698dcdb6 | 8594 | echo "$ac_t""no" 1>&6 |
1e487827 | 8595 | fi |
6232543b | 8596 | |
1e487827 VS |
8597 | if test -z "$CC"; then |
8598 | # Extract the first word of "cc", so it can be a program name with args. | |
8599 | set dummy cc; ac_word=$2 | |
698dcdb6 | 8600 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
cb61c62d | 8601 | echo "configure:8602: checking for $ac_word" >&5 |
698dcdb6 VZ |
8602 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8603 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 VS |
8604 | else |
8605 | if test -n "$CC"; then | |
8606 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
8607 | else | |
698dcdb6 | 8608 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1e487827 | 8609 | ac_prog_rejected=no |
698dcdb6 VZ |
8610 | ac_dummy="$PATH" |
8611 | for ac_dir in $ac_dummy; do | |
8612 | test -z "$ac_dir" && ac_dir=. | |
8613 | if test -f $ac_dir/$ac_word; then | |
8614 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
8615 | ac_prog_rejected=yes | |
8616 | continue | |
8617 | fi | |
8618 | ac_cv_prog_CC="cc" | |
8619 | break | |
8620 | fi | |
8621 | done | |
8622 | IFS="$ac_save_ifs" | |
1e487827 VS |
8623 | if test $ac_prog_rejected = yes; then |
8624 | # We found a bogon in the path, so make sure we never use it. | |
8625 | set dummy $ac_cv_prog_CC | |
8626 | shift | |
698dcdb6 | 8627 | if test $# -gt 0; then |
1e487827 VS |
8628 | # We chose a different compiler from the bogus one. |
8629 | # However, it has the same basename, so the bogon will be chosen | |
8630 | # first if we set CC to just the basename; use the full file name. | |
8631 | shift | |
698dcdb6 | 8632 | set dummy "$ac_dir/$ac_word" "$@" |
1e487827 VS |
8633 | shift |
8634 | ac_cv_prog_CC="$@" | |
703e0a69 | 8635 | fi |
1e487827 VS |
8636 | fi |
8637 | fi | |
8638 | fi | |
698dcdb6 | 8639 | CC="$ac_cv_prog_CC" |
1e487827 | 8640 | if test -n "$CC"; then |
698dcdb6 | 8641 | echo "$ac_t""$CC" 1>&6 |
703e0a69 | 8642 | else |
698dcdb6 | 8643 | echo "$ac_t""no" 1>&6 |
703e0a69 | 8644 | fi |
1e487827 | 8645 | |
698dcdb6 VZ |
8646 | if test -z "$CC"; then |
8647 | case "`uname -s`" in | |
8648 | *win32* | *WIN32*) | |
8649 | # Extract the first word of "cl", so it can be a program name with args. | |
8650 | set dummy cl; ac_word=$2 | |
8651 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
cb61c62d | 8652 | echo "configure:8653: checking for $ac_word" >&5 |
698dcdb6 VZ |
8653 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8654 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 VS |
8655 | else |
8656 | if test -n "$CC"; then | |
8657 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
703e0a69 | 8658 | else |
698dcdb6 VZ |
8659 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8660 | ac_dummy="$PATH" | |
8661 | for ac_dir in $ac_dummy; do | |
8662 | test -z "$ac_dir" && ac_dir=. | |
8663 | if test -f $ac_dir/$ac_word; then | |
8664 | ac_cv_prog_CC="cl" | |
8665 | break | |
8666 | fi | |
8667 | done | |
8668 | IFS="$ac_save_ifs" | |
703e0a69 | 8669 | fi |
1e487827 | 8670 | fi |
698dcdb6 | 8671 | CC="$ac_cv_prog_CC" |
1e487827 | 8672 | if test -n "$CC"; then |
698dcdb6 | 8673 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 8674 | else |
698dcdb6 | 8675 | echo "$ac_t""no" 1>&6 |
1e487827 | 8676 | fi |
698dcdb6 VZ |
8677 | ;; |
8678 | esac | |
8679 | fi | |
8680 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
1e487827 VS |
8681 | fi |
8682 | ||
698dcdb6 | 8683 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
cb61c62d | 8684 | echo "configure:8685: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
1e487827 | 8685 | |
698dcdb6 VZ |
8686 | ac_ext=c |
8687 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8688 | ac_cpp='$CPP $CPPFLAGS' | |
8689 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8690 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8691 | cross_compiling=$ac_cv_prog_cc_cross | |
6232543b | 8692 | |
698dcdb6 | 8693 | cat > conftest.$ac_ext << EOF |
1e487827 | 8694 | |
cb61c62d | 8695 | #line 8696 "configure" |
1e487827 VS |
8696 | #include "confdefs.h" |
8697 | ||
698dcdb6 VZ |
8698 | main(){return(0);} |
8699 | EOF | |
cb61c62d | 8700 | if { (eval echo configure:8701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
8701 | ac_cv_prog_cc_works=yes |
8702 | # If we can't run a trivial program, we are probably using a cross compiler. | |
8703 | if (./conftest; exit) 2>/dev/null; then | |
8704 | ac_cv_prog_cc_cross=no | |
8705 | else | |
8706 | ac_cv_prog_cc_cross=yes | |
8707 | fi | |
8708 | else | |
8709 | echo "configure: failed program was:" >&5 | |
8710 | cat conftest.$ac_ext >&5 | |
8711 | ac_cv_prog_cc_works=no | |
8712 | fi | |
8713 | rm -fr conftest* | |
8714 | ac_ext=c | |
8715 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8716 | ac_cpp='$CPP $CPPFLAGS' | |
8717 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8718 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8719 | cross_compiling=$ac_cv_prog_cc_cross | |
8720 | ||
8721 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
8722 | if test $ac_cv_prog_cc_works = no; then | |
8723 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
8724 | fi | |
8725 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
cb61c62d | 8726 | echo "configure:8727: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
698dcdb6 VZ |
8727 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
8728 | cross_compiling=$ac_cv_prog_cc_cross | |
8729 | ||
8730 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
cb61c62d | 8731 | echo "configure:8732: checking whether we are using GNU C" >&5 |
698dcdb6 VZ |
8732 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
8733 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8734 | else | |
8735 | cat > conftest.c <<EOF | |
8736 | #ifdef __GNUC__ | |
8737 | yes; | |
1e487827 | 8738 | #endif |
698dcdb6 | 8739 | EOF |
cb61c62d | 8740 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8741: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
698dcdb6 VZ |
8741 | ac_cv_prog_gcc=yes |
8742 | else | |
8743 | ac_cv_prog_gcc=no | |
8744 | fi | |
8745 | fi | |
1e487827 | 8746 | |
698dcdb6 | 8747 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
1e487827 | 8748 | |
698dcdb6 VZ |
8749 | if test $ac_cv_prog_gcc = yes; then |
8750 | GCC=yes | |
8751 | else | |
8752 | GCC= | |
8753 | fi | |
1e487827 | 8754 | |
698dcdb6 VZ |
8755 | ac_test_CFLAGS="${CFLAGS+set}" |
8756 | ac_save_CFLAGS="$CFLAGS" | |
8757 | CFLAGS= | |
8758 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
cb61c62d | 8759 | echo "configure:8760: checking whether ${CC-cc} accepts -g" >&5 |
698dcdb6 VZ |
8760 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
8761 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8762 | else | |
8763 | echo 'void f(){}' > conftest.c | |
8764 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
10f2d63a VZ |
8765 | ac_cv_prog_cc_g=yes |
8766 | else | |
698dcdb6 | 8767 | ac_cv_prog_cc_g=no |
10f2d63a | 8768 | fi |
698dcdb6 VZ |
8769 | rm -f conftest* |
8770 | ||
10f2d63a | 8771 | fi |
698dcdb6 VZ |
8772 | |
8773 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
10f2d63a | 8774 | if test "$ac_test_CFLAGS" = set; then |
698dcdb6 | 8775 | CFLAGS="$ac_save_CFLAGS" |
10f2d63a VZ |
8776 | elif test $ac_cv_prog_cc_g = yes; then |
8777 | if test "$GCC" = yes; then | |
8778 | CFLAGS="-g -O2" | |
8779 | else | |
8780 | CFLAGS="-g" | |
8781 | fi | |
8782 | else | |
8783 | if test "$GCC" = yes; then | |
8784 | CFLAGS="-O2" | |
8785 | else | |
8786 | CFLAGS= | |
8787 | fi | |
8788 | fi | |
8789 | ||
8790 | ||
8791 | CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'` | |
8792 | ||
698dcdb6 | 8793 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
cb61c62d | 8794 | echo "configure:8795: checking how to run the C preprocessor" >&5 |
10f2d63a VZ |
8795 | # On Suns, sometimes $CPP names a directory. |
8796 | if test -n "$CPP" && test -d "$CPP"; then | |
8797 | CPP= | |
8798 | fi | |
8799 | if test -z "$CPP"; then | |
698dcdb6 VZ |
8800 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
8801 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8802 | else | |
8803 | # This must be in double quotes, not single quotes, because CPP may get | |
8804 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
8805 | CPP="${CC-cc} -E" | |
10f2d63a | 8806 | # On the NeXT, cc -E runs the code through the compiler's parser, |
698dcdb6 VZ |
8807 | # not just through cpp. |
8808 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 8809 | #line 8810 "configure" |
10f2d63a VZ |
8810 | #include "confdefs.h" |
8811 | #include <assert.h> | |
698dcdb6 VZ |
8812 | Syntax Error |
8813 | EOF | |
8814 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
cb61c62d | 8815 | { (eval echo configure:8816: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8816 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8817 | if test -z "$ac_err"; then | |
10f2d63a VZ |
8818 | : |
8819 | else | |
698dcdb6 VZ |
8820 | echo "$ac_err" >&5 |
8821 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8822 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8823 | rm -rf conftest* |
8824 | CPP="${CC-cc} -E -traditional-cpp" | |
8825 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 8826 | #line 8827 "configure" |
10f2d63a | 8827 | #include "confdefs.h" |
698dcdb6 VZ |
8828 | #include <assert.h> |
8829 | Syntax Error | |
8830 | EOF | |
8831 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
cb61c62d | 8832 | { (eval echo configure:8833: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8833 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8834 | if test -z "$ac_err"; then | |
8835 | : | |
10f2d63a | 8836 | else |
698dcdb6 VZ |
8837 | echo "$ac_err" >&5 |
8838 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8839 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8840 | rm -rf conftest* |
8841 | CPP="${CC-cc} -nologo -E" | |
8842 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 8843 | #line 8844 "configure" |
10f2d63a VZ |
8844 | #include "confdefs.h" |
8845 | #include <assert.h> | |
698dcdb6 VZ |
8846 | Syntax Error |
8847 | EOF | |
8848 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
cb61c62d | 8849 | { (eval echo configure:8850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8850 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8851 | if test -z "$ac_err"; then | |
10f2d63a VZ |
8852 | : |
8853 | else | |
698dcdb6 VZ |
8854 | echo "$ac_err" >&5 |
8855 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8856 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8857 | rm -rf conftest* |
8858 | CPP=/lib/cpp | |
10f2d63a | 8859 | fi |
698dcdb6 | 8860 | rm -f conftest* |
10f2d63a | 8861 | fi |
698dcdb6 | 8862 | rm -f conftest* |
703e0a69 | 8863 | fi |
698dcdb6 VZ |
8864 | rm -f conftest* |
8865 | ac_cv_prog_CPP="$CPP" | |
8866 | fi | |
8867 | CPP="$ac_cv_prog_CPP" | |
10f2d63a | 8868 | else |
698dcdb6 | 8869 | ac_cv_prog_CPP="$CPP" |
10f2d63a | 8870 | fi |
698dcdb6 | 8871 | echo "$ac_t""$CPP" 1>&6 |
10f2d63a | 8872 | |
698dcdb6 VZ |
8873 | if test $ac_cv_prog_gcc = yes; then |
8874 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
cb61c62d | 8875 | echo "configure:8876: checking whether ${CC-cc} needs -traditional" >&5 |
698dcdb6 VZ |
8876 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
8877 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8878 | else |
8879 | ac_pattern="Autoconf.*'x'" | |
698dcdb6 | 8880 | cat > conftest.$ac_ext <<EOF |
cb61c62d | 8881 | #line 8882 "configure" |
10f2d63a VZ |
8882 | #include "confdefs.h" |
8883 | #include <sgtty.h> | |
8884 | Autoconf TIOCGETP | |
698dcdb6 | 8885 | EOF |
10f2d63a VZ |
8886 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8887 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
698dcdb6 | 8888 | rm -rf conftest* |
10f2d63a VZ |
8889 | ac_cv_prog_gcc_traditional=yes |
8890 | else | |
698dcdb6 | 8891 | rm -rf conftest* |
10f2d63a VZ |
8892 | ac_cv_prog_gcc_traditional=no |
8893 | fi | |
8894 | rm -f conftest* | |
8895 | ||
698dcdb6 | 8896 | |
10f2d63a | 8897 | if test $ac_cv_prog_gcc_traditional = no; then |
698dcdb6 | 8898 | cat > conftest.$ac_ext <<EOF |
cb61c62d | 8899 | #line 8900 "configure" |
10f2d63a VZ |
8900 | #include "confdefs.h" |
8901 | #include <termio.h> | |
8902 | Autoconf TCGETA | |
698dcdb6 | 8903 | EOF |
10f2d63a VZ |
8904 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8905 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
698dcdb6 | 8906 | rm -rf conftest* |
10f2d63a VZ |
8907 | ac_cv_prog_gcc_traditional=yes |
8908 | fi | |
8909 | rm -f conftest* | |
8910 | ||
8911 | fi | |
8912 | fi | |
698dcdb6 VZ |
8913 | |
8914 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
10f2d63a VZ |
8915 | if test $ac_cv_prog_gcc_traditional = yes; then |
8916 | CC="$CC -traditional" | |
8917 | fi | |
8918 | fi | |
8919 | ||
703e0a69 | 8920 | |
698dcdb6 VZ |
8921 | |
8922 | ac_ext=C | |
8923 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 8924 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
8925 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
8926 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8927 | cross_compiling=$ac_cv_prog_cxx_cross | |
8928 | ||
8929 | ||
8930 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | |
8931 | do | |
8932 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
8933 | set dummy $ac_prog; ac_word=$2 | |
8934 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
cb61c62d | 8935 | echo "configure:8936: checking for $ac_word" >&5 |
698dcdb6 VZ |
8936 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
8937 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8938 | else |
8939 | if test -n "$CXX"; then | |
8940 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
8941 | else | |
698dcdb6 VZ |
8942 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8943 | ac_dummy="$PATH" | |
8944 | for ac_dir in $ac_dummy; do | |
8945 | test -z "$ac_dir" && ac_dir=. | |
8946 | if test -f $ac_dir/$ac_word; then | |
8947 | ac_cv_prog_CXX="$ac_prog" | |
8948 | break | |
8949 | fi | |
8950 | done | |
8951 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8952 | fi |
8953 | fi | |
698dcdb6 | 8954 | CXX="$ac_cv_prog_CXX" |
10f2d63a | 8955 | if test -n "$CXX"; then |
698dcdb6 | 8956 | echo "$ac_t""$CXX" 1>&6 |
10f2d63a | 8957 | else |
698dcdb6 | 8958 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8959 | fi |
8960 | ||
698dcdb6 | 8961 | test -n "$CXX" && break |
10f2d63a | 8962 | done |
698dcdb6 | 8963 | test -n "$CXX" || CXX="gcc" |
10f2d63a VZ |
8964 | |
8965 | ||
698dcdb6 | 8966 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
cb61c62d | 8967 | echo "configure:8968: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
10f2d63a | 8968 | |
698dcdb6 VZ |
8969 | ac_ext=C |
8970 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8971 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8972 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8973 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8974 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 8975 | |
698dcdb6 VZ |
8976 | cat > conftest.$ac_ext << EOF |
8977 | ||
cb61c62d | 8978 | #line 8979 "configure" |
10f2d63a VZ |
8979 | #include "confdefs.h" |
8980 | ||
698dcdb6 VZ |
8981 | int main(){return(0);} |
8982 | EOF | |
cb61c62d | 8983 | if { (eval echo configure:8984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
8984 | ac_cv_prog_cxx_works=yes |
8985 | # If we can't run a trivial program, we are probably using a cross compiler. | |
8986 | if (./conftest; exit) 2>/dev/null; then | |
8987 | ac_cv_prog_cxx_cross=no | |
8988 | else | |
8989 | ac_cv_prog_cxx_cross=yes | |
8990 | fi | |
8991 | else | |
8992 | echo "configure: failed program was:" >&5 | |
8993 | cat conftest.$ac_ext >&5 | |
8994 | ac_cv_prog_cxx_works=no | |
8995 | fi | |
8996 | rm -fr conftest* | |
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 | |
9003 | ||
9004 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 | |
9005 | if test $ac_cv_prog_cxx_works = no; then | |
9006 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
9007 | fi | |
9008 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
cb61c62d | 9009 | echo "configure:9010: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
698dcdb6 VZ |
9010 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
9011 | cross_compiling=$ac_cv_prog_cxx_cross | |
9012 | ||
9013 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | |
cb61c62d | 9014 | echo "configure:9015: checking whether we are using GNU C++" >&5 |
698dcdb6 VZ |
9015 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
9016 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9017 | else | |
9018 | cat > conftest.C <<EOF | |
9019 | #ifdef __GNUC__ | |
9020 | yes; | |
10f2d63a | 9021 | #endif |
698dcdb6 | 9022 | EOF |
cb61c62d | 9023 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9024: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
698dcdb6 VZ |
9024 | ac_cv_prog_gxx=yes |
9025 | else | |
9026 | ac_cv_prog_gxx=no | |
9027 | fi | |
9028 | fi | |
10f2d63a | 9029 | |
698dcdb6 | 9030 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
10f2d63a | 9031 | |
698dcdb6 VZ |
9032 | if test $ac_cv_prog_gxx = yes; then |
9033 | GXX=yes | |
9034 | else | |
9035 | GXX= | |
9036 | fi | |
10f2d63a | 9037 | |
698dcdb6 VZ |
9038 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
9039 | ac_save_CXXFLAGS="$CXXFLAGS" | |
9040 | CXXFLAGS= | |
9041 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
cb61c62d | 9042 | echo "configure:9043: checking whether ${CXX-g++} accepts -g" >&5 |
698dcdb6 VZ |
9043 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
9044 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9045 | else | |
9046 | echo 'void f(){}' > conftest.cc | |
9047 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
10f2d63a VZ |
9048 | ac_cv_prog_cxx_g=yes |
9049 | else | |
698dcdb6 | 9050 | ac_cv_prog_cxx_g=no |
10f2d63a | 9051 | fi |
698dcdb6 VZ |
9052 | rm -f conftest* |
9053 | ||
10f2d63a | 9054 | fi |
698dcdb6 VZ |
9055 | |
9056 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
10f2d63a | 9057 | if test "$ac_test_CXXFLAGS" = set; then |
698dcdb6 | 9058 | CXXFLAGS="$ac_save_CXXFLAGS" |
10f2d63a VZ |
9059 | elif test $ac_cv_prog_cxx_g = yes; then |
9060 | if test "$GXX" = yes; then | |
9061 | CXXFLAGS="-g -O2" | |
9062 | else | |
9063 | CXXFLAGS="-g" | |
9064 | fi | |
9065 | else | |
9066 | if test "$GXX" = yes; then | |
9067 | CXXFLAGS="-O2" | |
9068 | else | |
9069 | CXXFLAGS= | |
9070 | fi | |
9071 | fi | |
9072 | ||
9073 | ||
10f2d63a VZ |
9074 | CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'` |
9075 | ||
9076 | ac_ext=c | |
698dcdb6 | 9077 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 9078 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
9079 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
9080 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9081 | cross_compiling=$ac_cv_prog_cc_cross | |
9082 | ||
9083 | ||
9084 | # Extract the first word of "ranlib", so it can be a program name with args. | |
9085 | set dummy ranlib; ac_word=$2 | |
9086 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
cb61c62d | 9087 | echo "configure:9088: checking for $ac_word" >&5 |
698dcdb6 VZ |
9088 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
9089 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9090 | else |
9091 | if test -n "$RANLIB"; then | |
9092 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
9093 | else | |
698dcdb6 VZ |
9094 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9095 | ac_dummy="$PATH" | |
9096 | for ac_dir in $ac_dummy; do | |
9097 | test -z "$ac_dir" && ac_dir=. | |
9098 | if test -f $ac_dir/$ac_word; then | |
9099 | ac_cv_prog_RANLIB="ranlib" | |
9100 | break | |
9101 | fi | |
9102 | done | |
9103 | IFS="$ac_save_ifs" | |
9104 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
10f2d63a VZ |
9105 | fi |
9106 | fi | |
698dcdb6 | 9107 | RANLIB="$ac_cv_prog_RANLIB" |
10f2d63a | 9108 | if test -n "$RANLIB"; then |
698dcdb6 | 9109 | echo "$ac_t""$RANLIB" 1>&6 |
10f2d63a | 9110 | else |
698dcdb6 | 9111 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9112 | fi |
9113 | ||
9114 | ||
9115 | # Extract the first word of "ar", so it can be a program name with args. | |
9116 | set dummy ar; ac_word=$2 | |
698dcdb6 | 9117 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
cb61c62d | 9118 | echo "configure:9119: checking for $ac_word" >&5 |
698dcdb6 VZ |
9119 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
9120 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9121 | else |
9122 | if test -n "$AR"; then | |
9123 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
9124 | else | |
698dcdb6 VZ |
9125 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9126 | ac_dummy="$PATH" | |
9127 | for ac_dir in $ac_dummy; do | |
9128 | test -z "$ac_dir" && ac_dir=. | |
9129 | if test -f $ac_dir/$ac_word; then | |
9130 | ac_cv_prog_AR="ar" | |
9131 | break | |
9132 | fi | |
9133 | done | |
9134 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9135 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
9136 | fi | |
9137 | fi | |
698dcdb6 | 9138 | AR="$ac_cv_prog_AR" |
10f2d63a | 9139 | if test -n "$AR"; then |
698dcdb6 | 9140 | echo "$ac_t""$AR" 1>&6 |
10f2d63a | 9141 | else |
698dcdb6 | 9142 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9143 | fi |
9144 | ||
698dcdb6 | 9145 | |
6054113a | 9146 | # Find a good install program. We prefer a C program (faster), |
10f2d63a VZ |
9147 | # so one script is as good as another. But avoid the broken or |
9148 | # incompatible versions: | |
9149 | # SysV /etc/install, /usr/sbin/install | |
9150 | # SunOS /usr/etc/install | |
9151 | # IRIX /sbin/install | |
9152 | # AIX /bin/install | |
9153 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
9154 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
9155 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
9156 | # ./install, which can be erroneously created by make from ./install.sh. | |
698dcdb6 | 9157 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
cb61c62d | 9158 | echo "configure:9159: checking for a BSD compatible install" >&5 |
10f2d63a | 9159 | if test -z "$INSTALL"; then |
698dcdb6 VZ |
9160 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
9161 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 9162 | else |
698dcdb6 | 9163 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
10f2d63a VZ |
9164 | for ac_dir in $PATH; do |
9165 | # Account for people who put trailing slashes in PATH elements. | |
698dcdb6 VZ |
9166 | case "$ac_dir/" in |
9167 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
10f2d63a VZ |
9168 | *) |
9169 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
9170 | # Don't use installbsd from OSF since it installs stuff as root | |
9171 | # by default. | |
9172 | for ac_prog in ginstall scoinst install; do | |
698dcdb6 | 9173 | if test -f $ac_dir/$ac_prog; then |
10f2d63a | 9174 | if test $ac_prog = install && |
698dcdb6 | 9175 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
10f2d63a VZ |
9176 | # AIX install. It has an incompatible calling convention. |
9177 | : | |
9178 | else | |
9179 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
9180 | break 2 | |
9181 | fi | |
9182 | fi | |
9183 | done | |
9184 | ;; | |
9185 | esac | |
9186 | done | |
698dcdb6 | 9187 | IFS="$ac_save_IFS" |
10f2d63a VZ |
9188 | |
9189 | fi | |
9190 | if test "${ac_cv_path_install+set}" = set; then | |
698dcdb6 | 9191 | INSTALL="$ac_cv_path_install" |
10f2d63a VZ |
9192 | else |
9193 | # As a last resort, use the slow shell script. We don't cache a | |
9194 | # path for INSTALL within a source directory, because that will | |
9195 | # break other packages using the cache if that directory is | |
9196 | # removed, or if the path is relative. | |
698dcdb6 | 9197 | INSTALL="$ac_install_sh" |
10f2d63a VZ |
9198 | fi |
9199 | fi | |
698dcdb6 | 9200 | echo "$ac_t""$INSTALL" 1>&6 |
10f2d63a VZ |
9201 | |
9202 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
9203 | # It thinks the first close brace ends the variable substitution. | |
9204 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
9205 | ||
698dcdb6 | 9206 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
10f2d63a VZ |
9207 | |
9208 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
9209 | ||
6054113a GD |
9210 | case "${host}" in |
9211 | ||
b5853384 | 9212 | powerpc-*-darwin* ) |
eb99ae0b GD |
9213 | INSTALL_PROGRAM="cp -fp" |
9214 | INSTALL_DATA="cp -fp" | |
6054113a GD |
9215 | ;; |
9216 | *) | |
9217 | ;; | |
d6853540 | 9218 | esac |
698dcdb6 | 9219 | |
10f2d63a VZ |
9220 | # Extract the first word of "strip", so it can be a program name with args. |
9221 | set dummy strip; ac_word=$2 | |
698dcdb6 | 9222 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
cb61c62d | 9223 | echo "configure:9224: checking for $ac_word" >&5 |
698dcdb6 VZ |
9224 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
9225 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9226 | else |
9227 | if test -n "$STRIP"; then | |
9228 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9229 | else | |
698dcdb6 VZ |
9230 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9231 | ac_dummy="$PATH" | |
9232 | for ac_dir in $ac_dummy; do | |
9233 | test -z "$ac_dir" && ac_dir=. | |
9234 | if test -f $ac_dir/$ac_word; then | |
9235 | ac_cv_prog_STRIP="strip" | |
9236 | break | |
9237 | fi | |
9238 | done | |
9239 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9240 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
9241 | fi | |
9242 | fi | |
698dcdb6 | 9243 | STRIP="$ac_cv_prog_STRIP" |
10f2d63a | 9244 | if test -n "$STRIP"; then |
698dcdb6 | 9245 | echo "$ac_t""$STRIP" 1>&6 |
10f2d63a | 9246 | else |
698dcdb6 | 9247 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9248 | fi |
9249 | ||
698dcdb6 | 9250 | |
414eab6d | 9251 | echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6 |
cb61c62d | 9252 | echo "configure:9253: checking if make is GNU make" >&5 |
414eab6d VZ |
9253 | if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then |
9254 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9255 | else | |
9256 | ||
9257 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
9258 | egrep -s GNU); then | |
9259 | wx_cv_prog_makeisgnu="yes" | |
9260 | else | |
9261 | wx_cv_prog_makeisgnu="no" | |
9262 | fi | |
9263 | ||
9264 | fi | |
9265 | ||
9266 | echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6 | |
9267 | ||
9268 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
9269 | IF_GNU_MAKE="" | |
9270 | else | |
9271 | IF_GNU_MAKE="#" | |
9272 | fi | |
9273 | ||
9274 | ||
9275 | ||
9276 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then | |
04e7a216 | 9277 | echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6 |
cb61c62d | 9278 | echo "configure:9279: checking if make supports VPATH" >&5 |
04e7a216 VZ |
9279 | if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then |
9280 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9281 | else | |
9282 | ||
10f2d63a VZ |
9283 | cat - << EOF > confMake |
9284 | check : file | |
9285 | cp \$? \$@ | |
9286 | cp \$? final_file | |
9287 | EOF | |
9288 | ||
9289 | if test ! -d sub ; then | |
9290 | mkdir sub | |
9291 | fi | |
9292 | echo dummy > sub/file | |
f6bcfd97 | 9293 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
9294 | RESULT=$? |
9295 | rm -f sub/file check final_file confMake | |
9296 | rmdir sub | |
9297 | if test "$RESULT" = 0; then | |
04e7a216 | 9298 | wx_cv_prog_makevpath="yes" |
10f2d63a | 9299 | else |
04e7a216 VZ |
9300 | wx_cv_prog_makevpath="no" |
9301 | fi | |
9302 | ||
9303 | fi | |
9304 | ||
9305 | echo "$ac_t""$wx_cv_prog_makevpath" 1>&6 | |
9306 | ||
9307 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
9308 | { echo "configure: error: | |
1e487827 VS |
9309 | You need a make-utility that is able to use the variable |
9310 | VPATH correctly. | |
9311 | If your version of make does not support VPATH correctly, | |
9312 | please install GNU-make (possibly as gmake), and start | |
9313 | configure with the following command: | |
9314 | export MAKE=gmake; ./configure for sh-type shells | |
9315 | setenv MAKE gmake; ./configure for csh-type shells | |
9316 | Also please do remember to use gmake in this case every time | |
9317 | you are trying to compile. | |
698dcdb6 | 9318 | " 1>&2; exit 1; } |
414eab6d | 9319 | fi fi |
10f2d63a VZ |
9320 | for ac_prog in 'bison -y' byacc |
9321 | do | |
698dcdb6 | 9322 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
10f2d63a | 9323 | set dummy $ac_prog; ac_word=$2 |
698dcdb6 | 9324 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
cb61c62d | 9325 | echo "configure:9326: checking for $ac_word" >&5 |
698dcdb6 VZ |
9326 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
9327 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9328 | else |
9329 | if test -n "$YACC"; then | |
9330 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
9331 | else | |
698dcdb6 VZ |
9332 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9333 | ac_dummy="$PATH" | |
9334 | for ac_dir in $ac_dummy; do | |
9335 | test -z "$ac_dir" && ac_dir=. | |
9336 | if test -f $ac_dir/$ac_word; then | |
9337 | ac_cv_prog_YACC="$ac_prog" | |
9338 | break | |
9339 | fi | |
9340 | done | |
9341 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9342 | fi |
9343 | fi | |
698dcdb6 | 9344 | YACC="$ac_cv_prog_YACC" |
10f2d63a | 9345 | if test -n "$YACC"; then |
698dcdb6 | 9346 | echo "$ac_t""$YACC" 1>&6 |
10f2d63a | 9347 | else |
698dcdb6 | 9348 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9349 | fi |
9350 | ||
698dcdb6 | 9351 | test -n "$YACC" && break |
10f2d63a VZ |
9352 | done |
9353 | test -n "$YACC" || YACC="yacc" | |
9354 | ||
698dcdb6 VZ |
9355 | |
9356 | # Extract the first word of "flex", so it can be a program name with args. | |
9357 | set dummy flex; ac_word=$2 | |
9358 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
cb61c62d | 9359 | echo "configure:9360: checking for $ac_word" >&5 |
698dcdb6 VZ |
9360 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
9361 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9362 | else |
9363 | if test -n "$LEX"; then | |
9364 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
9365 | else | |
698dcdb6 VZ |
9366 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9367 | ac_dummy="$PATH" | |
9368 | for ac_dir in $ac_dummy; do | |
9369 | test -z "$ac_dir" && ac_dir=. | |
9370 | if test -f $ac_dir/$ac_word; then | |
9371 | ac_cv_prog_LEX="flex" | |
9372 | break | |
9373 | fi | |
9374 | done | |
9375 | IFS="$ac_save_ifs" | |
9376 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
10f2d63a VZ |
9377 | fi |
9378 | fi | |
698dcdb6 | 9379 | LEX="$ac_cv_prog_LEX" |
10f2d63a | 9380 | if test -n "$LEX"; then |
698dcdb6 | 9381 | echo "$ac_t""$LEX" 1>&6 |
10f2d63a | 9382 | else |
698dcdb6 | 9383 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9384 | fi |
9385 | ||
9386 | if test -z "$LEXLIB" | |
9387 | then | |
698dcdb6 VZ |
9388 | case "$LEX" in |
9389 | flex*) ac_lib=fl ;; | |
9390 | *) ac_lib=l ;; | |
9391 | esac | |
9392 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
cb61c62d | 9393 | echo "configure:9394: checking for yywrap in -l$ac_lib" >&5 |
698dcdb6 VZ |
9394 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
9395 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9396 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9397 | else | |
9398 | ac_save_LIBS="$LIBS" | |
9399 | LIBS="-l$ac_lib $LIBS" | |
9400 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 9401 | #line 9402 "configure" |
10f2d63a VZ |
9402 | #include "confdefs.h" |
9403 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9404 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9405 | builtin and then its argument prototype would still apply. */ |
9406 | char yywrap(); | |
10f2d63a | 9407 | |
698dcdb6 VZ |
9408 | int main() { |
9409 | yywrap() | |
9410 | ; return 0; } | |
9411 | EOF | |
cb61c62d | 9412 | if { (eval echo configure:9413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9413 | rm -rf conftest* |
9414 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 9415 | else |
698dcdb6 VZ |
9416 | echo "configure: failed program was:" >&5 |
9417 | cat conftest.$ac_ext >&5 | |
9418 | rm -rf conftest* | |
9419 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 9420 | fi |
698dcdb6 VZ |
9421 | rm -f conftest* |
9422 | LIBS="$ac_save_LIBS" | |
9423 | ||
10f2d63a | 9424 | fi |
698dcdb6 VZ |
9425 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
9426 | echo "$ac_t""yes" 1>&6 | |
9427 | LEXLIB="-l$ac_lib" | |
9428 | else | |
9429 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
9430 | fi |
9431 | ||
9432 | fi | |
9433 | ||
9434 | ||
698dcdb6 | 9435 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
cb61c62d | 9436 | echo "configure:9437: checking whether ln -s works" >&5 |
698dcdb6 VZ |
9437 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
9438 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 9439 | else |
698dcdb6 VZ |
9440 | rm -f conftestdata |
9441 | if ln -s X conftestdata 2>/dev/null | |
9442 | then | |
9443 | rm -f conftestdata | |
9444 | ac_cv_prog_LN_S="ln -s" | |
10f2d63a | 9445 | else |
698dcdb6 | 9446 | ac_cv_prog_LN_S=ln |
10f2d63a VZ |
9447 | fi |
9448 | fi | |
698dcdb6 VZ |
9449 | LN_S="$ac_cv_prog_LN_S" |
9450 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
9451 | echo "$ac_t""yes" 1>&6 | |
10f2d63a | 9452 | else |
698dcdb6 | 9453 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9454 | fi |
9455 | ||
9456 | ||
9457 | ||
9458 | SEARCH_INCLUDE="\ | |
9459 | /usr/local/include \ | |
9460 | \ | |
9461 | /usr/Motif-1.2/include \ | |
9462 | /usr/Motif-2.1/include \ | |
9463 | \ | |
9464 | /usr/include/Motif1.2 \ | |
9465 | /opt/xpm/include/X11 \ | |
9466 | /opt/GBxpm/include/ \ | |
9467 | /opt/GBxpm/X11/include/ \ | |
9468 | \ | |
9469 | /usr/Motif1.2/include \ | |
9470 | /usr/dt/include \ | |
afc31813 VZ |
9471 | /usr/openwin/include \ |
9472 | \ | |
10f2d63a VZ |
9473 | /usr/include/Xm \ |
9474 | \ | |
9475 | /usr/X11R6/include \ | |
afc31813 | 9476 | /usr/X11R6.4/include \ |
10f2d63a VZ |
9477 | /usr/X11R5/include \ |
9478 | /usr/X11R4/include \ | |
9479 | \ | |
10f2d63a VZ |
9480 | /usr/include/X11R6 \ |
9481 | /usr/include/X11R5 \ | |
9482 | /usr/include/X11R4 \ | |
9483 | \ | |
9484 | /usr/local/X11R6/include \ | |
9485 | /usr/local/X11R5/include \ | |
9486 | /usr/local/X11R4/include \ | |
9487 | \ | |
9488 | /usr/local/include/X11R6 \ | |
9489 | /usr/local/include/X11R5 \ | |
9490 | /usr/local/include/X11R4 \ | |
9491 | \ | |
9492 | /usr/X11/include \ | |
9493 | /usr/include/X11 \ | |
9494 | /usr/local/X11/include \ | |
9495 | /usr/local/include/X11 \ | |
9496 | \ | |
9497 | /usr/X386/include \ | |
9498 | /usr/x386/include \ | |
9499 | /usr/XFree86/include/X11 \ | |
9500 | \ | |
cf27ef00 | 9501 | X:/XFree86/include \ |
ec14dd32 VZ |
9502 | X:/XFree86/include/X11 \ |
9503 | \ | |
10f2d63a VZ |
9504 | /usr/include/gtk \ |
9505 | /usr/local/include/gtk \ | |
9506 | /usr/include/glib \ | |
9507 | /usr/local/include/glib \ | |
9508 | \ | |
9509 | /usr/include/qt \ | |
9510 | /usr/local/include/qt \ | |
9511 | \ | |
9512 | /usr/include/windows \ | |
9513 | /usr/include/wine \ | |
9514 | /usr/local/include/wine \ | |
9515 | \ | |
9516 | /usr/unsupported/include \ | |
9517 | /usr/athena/include \ | |
9518 | /usr/local/x11r5/include \ | |
9519 | /usr/lpp/Xamples/include \ | |
9520 | \ | |
10f2d63a | 9521 | /usr/openwin/share/include \ |
928b5c08 VZ |
9522 | \ |
9523 | /usr/include" | |
10f2d63a VZ |
9524 | |
9525 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
9526 | ||
698dcdb6 VZ |
9527 | |
9528 | cat > confcache <<\EOF | |
10f2d63a VZ |
9529 | # This file is a shell script that caches the results of configure |
9530 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
9531 | # scripts and configure runs. It is not useful on other systems. |
9532 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 9533 | # |
698dcdb6 VZ |
9534 | # By default, configure uses ./config.cache as the cache file, |
9535 | # creating it if it does not exist already. You can give configure | |
9536 | # the --cache-file=FILE option to use a different cache file; that is | |
9537 | # what configure does when it calls configure scripts in | |
9538 | # subdirectories, so they share the cache. | |
9539 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
9540 | # config.status only pays attention to the cache file if you give it the | |
9541 | # --recheck option to rerun configure. | |
10f2d63a | 9542 | # |
698dcdb6 | 9543 | EOF |
10f2d63a VZ |
9544 | # The following way of writing the cache mishandles newlines in values, |
9545 | # but we know of no workaround that is simple, portable, and efficient. | |
9546 | # So, don't put newlines in cache variables' values. | |
9547 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
9548 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
9549 | (set) 2>&1 | |
9550 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
9551 | *ac_space=\ *) | |
9552 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
9553 | # turns \\\\ into \\, and sed turns \\ into \). | |
9554 | sed -n \ | |
9555 | -e "s/'/'\\\\''/g" \ | |
9556 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
9557 | ;; | |
9558 | *) | |
9559 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
9560 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
9561 | ;; | |
9562 | esac >> confcache | |
9563 | if cmp -s $cache_file confcache; then | |
9564 | : | |
9565 | else | |
10f2d63a | 9566 | if test -w $cache_file; then |
698dcdb6 VZ |
9567 | echo "updating cache $cache_file" |
9568 | cat confcache > $cache_file | |
10f2d63a VZ |
9569 | else |
9570 | echo "not updating unwritable cache $cache_file" | |
9571 | fi | |
9572 | fi | |
9573 | rm -f confcache | |
9574 | ||
698dcdb6 VZ |
9575 | |
9576 | ||
4f14bcd8 | 9577 | |
18dbb1f6 VZ |
9578 | REGEX_INCLUDE= |
9579 | if test "$wxUSE_REGEX" != "no"; then | |
4f14bcd8 GD |
9580 | cat >> confdefs.h <<\EOF |
9581 | #define wxUSE_REGEX 1 | |
9582 | EOF | |
9583 | ||
9584 | ||
9585 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then | |
9586 | ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'` | |
18dbb1f6 | 9587 | echo $ac_n "checking for regex.h""... $ac_c" 1>&6 |
cb61c62d | 9588 | echo "configure:9589: checking for regex.h" >&5 |
18dbb1f6 VZ |
9589 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9590 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9591 | else | |
9592 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 9593 | #line 9594 "configure" |
18dbb1f6 VZ |
9594 | #include "confdefs.h" |
9595 | #include <regex.h> | |
9596 | EOF | |
9597 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
cb61c62d | 9598 | { (eval echo configure:9599: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
18dbb1f6 VZ |
9599 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9600 | if test -z "$ac_err"; then | |
9601 | rm -rf conftest* | |
9602 | eval "ac_cv_header_$ac_safe=yes" | |
9603 | else | |
9604 | echo "$ac_err" >&5 | |
9605 | echo "configure: failed program was:" >&5 | |
9606 | cat conftest.$ac_ext >&5 | |
9607 | rm -rf conftest* | |
9608 | eval "ac_cv_header_$ac_safe=no" | |
9609 | fi | |
9610 | rm -f conftest* | |
9611 | fi | |
9612 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9613 | echo "$ac_t""yes" 1>&6 | |
9614 | for ac_func in regcomp | |
9615 | do | |
9616 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
cb61c62d | 9617 | echo "configure:9618: checking for $ac_func" >&5 |
18dbb1f6 VZ |
9618 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9619 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9620 | else | |
9621 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 9622 | #line 9623 "configure" |
18dbb1f6 VZ |
9623 | #include "confdefs.h" |
9624 | /* System header to define __stub macros and hopefully few prototypes, | |
9625 | which can conflict with char $ac_func(); below. */ | |
9626 | #include <assert.h> | |
9627 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9628 | /* We use char because int might match the return type of a gcc2 | |
9629 | builtin and then its argument prototype would still apply. */ | |
9630 | char $ac_func(); | |
9631 | ||
9632 | int main() { | |
9633 | ||
9634 | /* The GNU C library defines this for functions which it implements | |
9635 | to always fail with ENOSYS. Some functions are actually named | |
9636 | something starting with __ and the normal name is an alias. */ | |
9637 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9638 | choke me | |
9639 | #else | |
9640 | $ac_func(); | |
9641 | #endif | |
9642 | ||
9643 | ; return 0; } | |
9644 | EOF | |
cb61c62d | 9645 | if { (eval echo configure:9646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
18dbb1f6 VZ |
9646 | rm -rf conftest* |
9647 | eval "ac_cv_func_$ac_func=yes" | |
9648 | else | |
9649 | echo "configure: failed program was:" >&5 | |
9650 | cat conftest.$ac_ext >&5 | |
9651 | rm -rf conftest* | |
9652 | eval "ac_cv_func_$ac_func=no" | |
9653 | fi | |
9654 | rm -f conftest* | |
9655 | fi | |
9656 | ||
9657 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9658 | echo "$ac_t""yes" 1>&6 | |
9659 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9660 | cat >> confdefs.h <<EOF | |
9661 | #define $ac_tr_func 1 | |
9662 | EOF | |
9663 | ||
9664 | else | |
9665 | echo "$ac_t""no" 1>&6 | |
9666 | fi | |
9667 | done | |
9668 | ||
9669 | else | |
9670 | echo "$ac_t""no" 1>&6 | |
9671 | fi | |
9672 | ||
9673 | ||
4f14bcd8 GD |
9674 | if test "x$ac_cv_func_regcomp" != "xyes"; then |
9675 | if test "$wxUSE_REGEX" = "sys" ; then | |
9676 | { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; } | |
9677 | else | |
a3df447d | 9678 | echo "configure: warning: system regex library not found, will use built-in instead" 1>&2 |
4f14bcd8 GD |
9679 | wxUSE_REGEX=builtin |
9680 | fi | |
9681 | else | |
9682 | wxUSE_REGEX=sys | |
18dbb1f6 | 9683 | fi |
18dbb1f6 VZ |
9684 | fi |
9685 | ||
4f14bcd8 GD |
9686 | if test "$wxUSE_REGEX" = "builtin" ; then |
9687 | REGEX_INCLUDE="-I\${top_srcdir}/src/regex" | |
9688 | fi | |
18dbb1f6 VZ |
9689 | fi |
9690 | ||
9691 | ||
4f14bcd8 GD |
9692 | ZLIB_INCLUDE= |
9693 | ZLIB_LINK= | |
9694 | if test "$wxUSE_ZLIB" != "no" ; then | |
9695 | cat >> confdefs.h <<\EOF | |
9696 | #define wxUSE_ZLIB 1 | |
9697 | EOF | |
dad6c0ea | 9698 | |
10f2d63a | 9699 | |
4f14bcd8 GD |
9700 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then |
9701 | ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'` | |
9702 | echo $ac_n "checking for zlib.h""... $ac_c" 1>&6 | |
cb61c62d | 9703 | echo "configure:9704: checking for zlib.h" >&5 |
3a922bb4 RL |
9704 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9705 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9706 | else | |
9707 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 9708 | #line 9709 "configure" |
3a922bb4 | 9709 | #include "confdefs.h" |
4f14bcd8 | 9710 | #include <zlib.h> |
3a922bb4 RL |
9711 | EOF |
9712 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
cb61c62d | 9713 | { (eval echo configure:9714: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3a922bb4 RL |
9714 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9715 | if test -z "$ac_err"; then | |
9716 | rm -rf conftest* | |
9717 | eval "ac_cv_header_$ac_safe=yes" | |
9718 | else | |
9719 | echo "$ac_err" >&5 | |
9720 | echo "configure: failed program was:" >&5 | |
9721 | cat conftest.$ac_ext >&5 | |
9722 | rm -rf conftest* | |
9723 | eval "ac_cv_header_$ac_safe=no" | |
9724 | fi | |
9725 | rm -f conftest* | |
9726 | fi | |
9727 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9728 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 9729 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6 |
cb61c62d | 9730 | echo "configure:9731: checking for deflate in -lz" >&5 |
4f14bcd8 GD |
9731 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'` |
9732 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9733 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9734 | else | |
9735 | ac_save_LIBS="$LIBS" | |
9736 | LIBS="-lz $LIBS" | |
9737 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 9738 | #line 9739 "configure" |
4f14bcd8 GD |
9739 | #include "confdefs.h" |
9740 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9741 | /* We use char because int might match the return type of a gcc2 | |
9742 | builtin and then its argument prototype would still apply. */ | |
9743 | char deflate(); | |
9744 | ||
9745 | int main() { | |
9746 | deflate() | |
9747 | ; return 0; } | |
3a922bb4 | 9748 | EOF |
cb61c62d | 9749 | if { (eval echo configure:9750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
9750 | rm -rf conftest* |
9751 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9752 | else | |
9753 | echo "configure: failed program was:" >&5 | |
9754 | cat conftest.$ac_ext >&5 | |
9755 | rm -rf conftest* | |
9756 | eval "ac_cv_lib_$ac_lib_var=no" | |
9757 | fi | |
9758 | rm -f conftest* | |
9759 | LIBS="$ac_save_LIBS" | |
9760 | ||
9761 | fi | |
9762 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9763 | echo "$ac_t""yes" 1>&6 | |
3d63bc3a | 9764 | ZLIB_LINK=" -lz" |
3a922bb4 RL |
9765 | else |
9766 | echo "$ac_t""no" 1>&6 | |
9767 | fi | |
10f2d63a | 9768 | |
4f14bcd8 GD |
9769 | else |
9770 | echo "$ac_t""no" 1>&6 | |
9771 | fi | |
9772 | ||
9773 | ||
9774 | if test "x$ZLIB_LINK" = "x" ; then | |
9775 | if test "$wxUSE_ZLIB" = "sys" ; then | |
9776 | { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; } | |
9777 | else | |
a3df447d | 9778 | echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2 |
4f14bcd8 GD |
9779 | wxUSE_ZLIB=builtin |
9780 | fi | |
9781 | else | |
9782 | wxUSE_ZLIB=sys | |
9783 | fi | |
9784 | fi | |
9785 | ||
9786 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
9787 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
9788 | fi | |
9789 | fi | |
9790 | ||
9791 | ||
9792 | PNG_INCLUDE= | |
9793 | PNG_LINK= | |
9794 | if test "$wxUSE_LIBPNG" != "no" ; then | |
9795 | cat >> confdefs.h <<\EOF | |
9796 | #define wxUSE_LIBPNG 1 | |
9797 | EOF | |
9798 | ||
81809c07 VS |
9799 | |
9800 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then | |
9801 | echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2 | |
9802 | wxUSE_LIBPNG=sys | |
9803 | fi | |
4f14bcd8 | 9804 | |
81809c07 | 9805 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then |
a3df447d | 9806 | echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2 |
4f14bcd8 GD |
9807 | wxUSE_LIBPNG=builtin |
9808 | fi | |
9809 | ||
81809c07 VS |
9810 | if test "$wxUSE_MGL" != 1 ; then |
9811 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
9812 | ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` | |
4f14bcd8 | 9813 | echo $ac_n "checking for png.h""... $ac_c" 1>&6 |
cb61c62d | 9814 | echo "configure:9815: checking for png.h" >&5 |
d4158b5d VS |
9815 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9816 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9817 | else | |
9818 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 9819 | #line 9820 "configure" |
d4158b5d | 9820 | #include "confdefs.h" |
4f14bcd8 | 9821 | #include <png.h> |
d4158b5d VS |
9822 | EOF |
9823 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
cb61c62d | 9824 | { (eval echo configure:9825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
d4158b5d VS |
9825 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9826 | if test -z "$ac_err"; then | |
9827 | rm -rf conftest* | |
9828 | eval "ac_cv_header_$ac_safe=yes" | |
9829 | else | |
9830 | echo "$ac_err" >&5 | |
9831 | echo "configure: failed program was:" >&5 | |
9832 | cat conftest.$ac_ext >&5 | |
9833 | rm -rf conftest* | |
9834 | eval "ac_cv_header_$ac_safe=no" | |
9835 | fi | |
9836 | rm -f conftest* | |
9837 | fi | |
9838 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9839 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 9840 | echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6 |
cb61c62d | 9841 | echo "configure:9842: checking for png_check_sig in -lpng" >&5 |
4f14bcd8 GD |
9842 | ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'` |
9843 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
3a922bb4 RL |
9844 | echo $ac_n "(cached) $ac_c" 1>&6 |
9845 | else | |
4f14bcd8 GD |
9846 | ac_save_LIBS="$LIBS" |
9847 | LIBS="-lpng -lz -lm $LIBS" | |
9848 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 9849 | #line 9850 "configure" |
3a922bb4 | 9850 | #include "confdefs.h" |
4f14bcd8 GD |
9851 | /* Override any gcc2 internal prototype to avoid an error. */ |
9852 | /* We use char because int might match the return type of a gcc2 | |
9853 | builtin and then its argument prototype would still apply. */ | |
9854 | char png_check_sig(); | |
f6bcfd97 | 9855 | |
4f14bcd8 GD |
9856 | int main() { |
9857 | png_check_sig() | |
3a922bb4 RL |
9858 | ; return 0; } |
9859 | EOF | |
cb61c62d | 9860 | if { (eval echo configure:9861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3a922bb4 | 9861 | rm -rf conftest* |
4f14bcd8 | 9862 | eval "ac_cv_lib_$ac_lib_var=yes" |
3a922bb4 RL |
9863 | else |
9864 | echo "configure: failed program was:" >&5 | |
9865 | cat conftest.$ac_ext >&5 | |
9866 | rm -rf conftest* | |
4f14bcd8 | 9867 | eval "ac_cv_lib_$ac_lib_var=no" |
3a922bb4 RL |
9868 | fi |
9869 | rm -f conftest* | |
4f14bcd8 | 9870 | LIBS="$ac_save_LIBS" |
10f2d63a | 9871 | |
4f14bcd8 GD |
9872 | fi |
9873 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9874 | echo "$ac_t""yes" 1>&6 | |
3d63bc3a | 9875 | PNG_LINK=" -lpng" |
4f14bcd8 GD |
9876 | else |
9877 | echo "$ac_t""no" 1>&6 | |
9878 | fi | |
32832908 | 9879 | |
81809c07 | 9880 | |
4f14bcd8 GD |
9881 | else |
9882 | echo "$ac_t""no" 1>&6 | |
9883 | fi | |
3a922bb4 | 9884 | |
7b7a7637 | 9885 | |
81809c07 VS |
9886 | if test "x$PNG_LINK" = "x" ; then |
9887 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
9888 | { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; } | |
9889 | else | |
9890 | echo "configure: warning: system png library not found, will use built-in instead" 1>&2 | |
9891 | wxUSE_LIBPNG=builtin | |
9892 | fi | |
4f14bcd8 | 9893 | else |
81809c07 | 9894 | wxUSE_LIBPNG=yes |
4f14bcd8 | 9895 | fi |
4f14bcd8 | 9896 | fi |
3a922bb4 RL |
9897 | fi |
9898 | ||
4f14bcd8 GD |
9899 | if test "$wxUSE_LIBPNG" = "builtin" ; then |
9900 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
3a922bb4 RL |
9901 | fi |
9902 | ||
4f14bcd8 | 9903 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
3a922bb4 RL |
9904 | fi |
9905 | ||
32832908 | 9906 | |
4f14bcd8 GD |
9907 | JPEG_INCLUDE= |
9908 | JPEG_LINK= | |
9909 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
9910 | cat >> confdefs.h <<\EOF | |
9911 | #define wxUSE_LIBJPEG 1 | |
9912 | EOF | |
10f2d63a | 9913 | |
8168de4c | 9914 | |
81809c07 VS |
9915 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then |
9916 | echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2 | |
9917 | wxUSE_LIBJPEG=sys | |
9918 | fi | |
9919 | ||
9920 | if test "$wxUSE_MGL" != 1 ; then | |
9921 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
9922 | echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 | |
cb61c62d | 9923 | echo "configure:9924: checking for jpeglib.h" >&5 |
81809c07 | 9924 | if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then |
8168de4c VZ |
9925 | echo $ac_n "(cached) $ac_c" 1>&6 |
9926 | else | |
4f14bcd8 | 9927 | cat > conftest.$ac_ext <<EOF |
cb61c62d | 9928 | #line 9929 "configure" |
4f14bcd8 | 9929 | #include "confdefs.h" |
8168de4c | 9930 | |
81809c07 VS |
9931 | #undef HAVE_STDLIB_H |
9932 | #include <stdio.h> | |
9933 | #include <jpeglib.h> | |
9934 | ||
4f14bcd8 GD |
9935 | int main() { |
9936 | ||
81809c07 | 9937 | |
4f14bcd8 GD |
9938 | ; return 0; } |
9939 | EOF | |
cb61c62d | 9940 | if { (eval echo configure:9941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
9941 | rm -rf conftest* |
9942 | ac_cv_header_jpeglib_h=yes | |
6f72b082 | 9943 | else |
4f14bcd8 GD |
9944 | echo "configure: failed program was:" >&5 |
9945 | cat conftest.$ac_ext >&5 | |
9946 | rm -rf conftest* | |
9947 | ac_cv_header_jpeglib_h=no | |
81809c07 | 9948 | |
4f14bcd8 GD |
9949 | fi |
9950 | rm -f conftest* | |
81809c07 | 9951 | |
698dcdb6 | 9952 | fi |
6f72b082 | 9953 | |
81809c07 | 9954 | echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6 |
4f14bcd8 | 9955 | |
81809c07 VS |
9956 | if test "$ac_cv_header_jpeglib_h" = "yes"; then |
9957 | echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6 | |
cb61c62d | 9958 | echo "configure:9959: checking for jpeg_read_header in -ljpeg" >&5 |
4f14bcd8 GD |
9959 | ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'` |
9960 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9961 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6f72b082 | 9962 | else |
4f14bcd8 GD |
9963 | ac_save_LIBS="$LIBS" |
9964 | LIBS="-ljpeg $LIBS" | |
9965 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 9966 | #line 9967 "configure" |
4f14bcd8 GD |
9967 | #include "confdefs.h" |
9968 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9969 | /* We use char because int might match the return type of a gcc2 | |
9970 | builtin and then its argument prototype would still apply. */ | |
9971 | char jpeg_read_header(); | |
698dcdb6 | 9972 | |
4f14bcd8 GD |
9973 | int main() { |
9974 | jpeg_read_header() | |
9975 | ; return 0; } | |
9976 | EOF | |
cb61c62d | 9977 | if { (eval echo configure:9978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
9978 | rm -rf conftest* |
9979 | eval "ac_cv_lib_$ac_lib_var=yes" | |
6f72b082 | 9980 | else |
4f14bcd8 GD |
9981 | echo "configure: failed program was:" >&5 |
9982 | cat conftest.$ac_ext >&5 | |
9983 | rm -rf conftest* | |
9984 | eval "ac_cv_lib_$ac_lib_var=no" | |
698dcdb6 | 9985 | fi |
4f14bcd8 GD |
9986 | rm -f conftest* |
9987 | LIBS="$ac_save_LIBS" | |
698dcdb6 | 9988 | |
4f14bcd8 GD |
9989 | fi |
9990 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9991 | echo "$ac_t""yes" 1>&6 | |
3d63bc3a | 9992 | JPEG_LINK=" -ljpeg" |
4f14bcd8 GD |
9993 | else |
9994 | echo "$ac_t""no" 1>&6 | |
9995 | fi | |
9996 | ||
81809c07 | 9997 | fi |
4f14bcd8 | 9998 | |
81809c07 VS |
9999 | if test "x$JPEG_LINK" = "x" ; then |
10000 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
10001 | { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; } | |
10002 | else | |
10003 | echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2 | |
10004 | wxUSE_LIBJPEG=builtin | |
10005 | fi | |
4f14bcd8 | 10006 | else |
81809c07 | 10007 | wxUSE_LIBJPEG=sys |
4f14bcd8 | 10008 | fi |
4f14bcd8 GD |
10009 | fi |
10010 | fi | |
10011 | ||
10012 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
10013 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
10014 | fi | |
10015 | fi | |
10016 | ||
10017 | ||
10018 | TIFF_INCLUDE= | |
10019 | TIFF_LINK= | |
10020 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
10021 | cat >> confdefs.h <<\EOF | |
10022 | #define wxUSE_LIBTIFF 1 | |
10023 | EOF | |
10024 | ||
10025 | ||
10026 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then | |
10027 | ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` | |
10028 | echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | |
cb61c62d | 10029 | echo "configure:10030: checking for tiffio.h" >&5 |
4f14bcd8 GD |
10030 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10031 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10032 | else | |
10033 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 10034 | #line 10035 "configure" |
4f14bcd8 GD |
10035 | #include "confdefs.h" |
10036 | #include <tiffio.h> | |
10037 | EOF | |
10038 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
cb61c62d | 10039 | { (eval echo configure:10040: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
10040 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10041 | if test -z "$ac_err"; then | |
10042 | rm -rf conftest* | |
10043 | eval "ac_cv_header_$ac_safe=yes" | |
10044 | else | |
10045 | echo "$ac_err" >&5 | |
10046 | echo "configure: failed program was:" >&5 | |
10047 | cat conftest.$ac_ext >&5 | |
10048 | rm -rf conftest* | |
10049 | eval "ac_cv_header_$ac_safe=no" | |
10050 | fi | |
10051 | rm -f conftest* | |
10052 | fi | |
10053 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10054 | echo "$ac_t""yes" 1>&6 | |
10055 | echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6 | |
cb61c62d | 10056 | echo "configure:10057: checking for TIFFError in -ltiff" >&5 |
4f14bcd8 GD |
10057 | ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'` |
10058 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10059 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10060 | else | |
10061 | ac_save_LIBS="$LIBS" | |
10062 | LIBS="-ltiff -lm $LIBS" | |
10063 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 10064 | #line 10065 "configure" |
4f14bcd8 GD |
10065 | #include "confdefs.h" |
10066 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10067 | /* We use char because int might match the return type of a gcc2 | |
10068 | builtin and then its argument prototype would still apply. */ | |
10069 | char TIFFError(); | |
10070 | ||
10071 | int main() { | |
10072 | TIFFError() | |
10073 | ; return 0; } | |
10074 | EOF | |
cb61c62d | 10075 | if { (eval echo configure:10076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
10076 | rm -rf conftest* |
10077 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10078 | else | |
10079 | echo "configure: failed program was:" >&5 | |
10080 | cat conftest.$ac_ext >&5 | |
10081 | rm -rf conftest* | |
10082 | eval "ac_cv_lib_$ac_lib_var=no" | |
10083 | fi | |
10084 | rm -f conftest* | |
10085 | LIBS="$ac_save_LIBS" | |
10086 | ||
10087 | fi | |
10088 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10089 | echo "$ac_t""yes" 1>&6 | |
3d63bc3a | 10090 | TIFF_LINK=" -ltiff" |
4f14bcd8 GD |
10091 | else |
10092 | echo "$ac_t""no" 1>&6 | |
10093 | fi | |
10094 | ||
10095 | ||
10096 | else | |
10097 | echo "$ac_t""no" 1>&6 | |
10098 | fi | |
10099 | ||
10100 | ||
10101 | if test "x$TIFF_LINK" = "x" ; then | |
10102 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
10103 | { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; } | |
10104 | else | |
a3df447d | 10105 | echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2 |
4f14bcd8 GD |
10106 | wxUSE_LIBTIFF=builtin |
10107 | fi | |
10108 | else | |
10109 | wxUSE_LIBTIFF=sys | |
10110 | fi | |
10111 | fi | |
10112 | ||
10113 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
10114 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" | |
10115 | fi | |
10116 | fi | |
10117 | ||
10118 | ||
4f14bcd8 GD |
10119 | AFMINSTALL= |
10120 | ||
10121 | TOOLKIT= | |
10122 | TOOLKIT_INCLUDE= | |
10123 | WIDGET_SET= | |
10124 | ||
10125 | if test "$USE_WIN32" = 1 ; then | |
10126 | for ac_hdr in w32api.h | |
10127 | do | |
10128 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
10129 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
cb61c62d | 10130 | echo "configure:10131: checking for $ac_hdr" >&5 |
4f14bcd8 GD |
10131 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10132 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10133 | else | |
10134 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 10135 | #line 10136 "configure" |
4f14bcd8 GD |
10136 | #include "confdefs.h" |
10137 | #include <$ac_hdr> | |
10138 | EOF | |
10139 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
cb61c62d | 10140 | { (eval echo configure:10141: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
10141 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10142 | if test -z "$ac_err"; then | |
10143 | rm -rf conftest* | |
10144 | eval "ac_cv_header_$ac_safe=yes" | |
10145 | else | |
10146 | echo "$ac_err" >&5 | |
10147 | echo "configure: failed program was:" >&5 | |
10148 | cat conftest.$ac_ext >&5 | |
10149 | rm -rf conftest* | |
10150 | eval "ac_cv_header_$ac_safe=no" | |
10151 | fi | |
10152 | rm -f conftest* | |
10153 | fi | |
10154 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10155 | echo "$ac_t""yes" 1>&6 | |
10156 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10157 | cat >> confdefs.h <<EOF | |
10158 | #define $ac_tr_hdr 1 | |
10159 | EOF | |
10160 | ||
10161 | else | |
10162 | echo "$ac_t""no" 1>&6 | |
10163 | fi | |
10164 | done | |
10165 | ||
10166 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` | |
10167 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
cb61c62d | 10168 | echo "configure:10169: checking for windows.h" >&5 |
4f14bcd8 GD |
10169 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10170 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10171 | else | |
10172 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 10173 | #line 10174 "configure" |
4f14bcd8 GD |
10174 | #include "confdefs.h" |
10175 | #include <windows.h> | |
10176 | EOF | |
10177 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
cb61c62d | 10178 | { (eval echo configure:10179: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
10179 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10180 | if test -z "$ac_err"; then | |
10181 | rm -rf conftest* | |
10182 | eval "ac_cv_header_$ac_safe=yes" | |
10183 | else | |
10184 | echo "$ac_err" >&5 | |
10185 | echo "configure: failed program was:" >&5 | |
10186 | cat conftest.$ac_ext >&5 | |
10187 | rm -rf conftest* | |
10188 | eval "ac_cv_header_$ac_safe=no" | |
10189 | fi | |
10190 | rm -f conftest* | |
10191 | fi | |
10192 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10193 | echo "$ac_t""yes" 1>&6 | |
10194 | : | |
10195 | else | |
10196 | echo "$ac_t""no" 1>&6 | |
10197 | ||
10198 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
10199 | ||
10200 | fi | |
10201 | ||
10202 | ||
10203 | echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6 | |
cb61c62d | 10204 | echo "configure:10205: checking if w32api has good enough MSIE support" >&5 |
ea7682f0 | 10205 | if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then |
4f14bcd8 GD |
10206 | echo $ac_n "(cached) $ac_c" 1>&6 |
10207 | else | |
10208 | ||
10209 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 10210 | #line 10211 "configure" |
4f14bcd8 GD |
10211 | #include "confdefs.h" |
10212 | #include <w32api.h> | |
10213 | int main() { | |
10214 | ||
10215 | #define wxCHECK_W32API_VERSION( major, minor ) \ | |
10216 | ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \ | |
10217 | && ( ( __W32API_MAJOR_VERSION > (major) ) \ | |
10218 | || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor)))) | |
10219 | ||
10220 | #if !wxCHECK_W32API_VERSION(1,1) | |
10221 | #error You need w32api 1.1 or newer | |
10222 | #endif | |
10223 | ||
10224 | ; return 0; } | |
10225 | EOF | |
cb61c62d | 10226 | if { (eval echo configure:10227: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
10227 | rm -rf conftest* |
10228 | ||
ea7682f0 | 10229 | wx_cv_w32api_win32_ie=yes |
4f14bcd8 GD |
10230 | |
10231 | else | |
10232 | echo "configure: failed program was:" >&5 | |
10233 | cat conftest.$ac_ext >&5 | |
10234 | rm -rf conftest* | |
10235 | ||
ea7682f0 | 10236 | wx_cv_w32api_win32_ie=no |
4f14bcd8 GD |
10237 | |
10238 | fi | |
10239 | rm -f conftest* | |
10240 | ||
10241 | fi | |
10242 | ||
ea7682f0 VS |
10243 | echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6 |
10244 | if test "$wx_cv_w32api_win32_ie" = "yes" ; then | |
10245 | CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400" | |
10246 | fi | |
4f14bcd8 GD |
10247 | |
10248 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32" | |
10249 | ||
77e13408 RL |
10250 | case "${host}" in |
10251 | *-*-cygwin* ) | |
10252 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32" | |
10253 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
10254 | esac | |
4f14bcd8 GD |
10255 | |
10256 | if test "$wxUSE_ODBC" = "yes" ; then | |
a72a4bfa | 10257 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" |
4f14bcd8 GD |
10258 | fi |
10259 | ||
4f14bcd8 GD |
10260 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
10261 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
10262 | fi | |
10263 | ||
10264 | if test "$wxUSE_GUI" = "yes"; then | |
10265 | USE_GUI=1 | |
10266 | ||
10267 | GUI_TK_LIBRARY= | |
10268 | ||
10269 | WXGTK12= | |
10270 | WXGTK127= | |
10271 | WXGTK20= | |
10272 | ||
77e13408 | 10273 | if test "$wxUSE_MSW" = 1 ; then |
4f14bcd8 GD |
10274 | TOOLKIT=MSW |
10275 | GUIDIST=MSW_DIST | |
77e13408 RL |
10276 | |
10277 | case "${host}" in | |
10278 | *-*-mingw32* ) | |
3d63bc3a | 10279 | LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows" |
77e13408 | 10280 | esac |
4f14bcd8 GD |
10281 | fi |
10282 | ||
10283 | if test "$wxUSE_GTK" = 1; then | |
10284 | echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6 | |
cb61c62d | 10285 | echo "configure:10286: checking for GTK+ version" >&5 |
4f14bcd8 GD |
10286 | |
10287 | gtk_version_cached=1 | |
10288 | if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then | |
10289 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10290 | else | |
10291 | ||
10292 | gtk_version_cached=0 | |
d48ad9bd | 10293 | echo "$ac_t""" 1>&6 |
4f14bcd8 | 10294 | |
3f345b47 VZ |
10295 | GTK_MODULES= |
10296 | if test "$wxUSE_THREADS" = "yes"; then | |
10297 | GTK_MODULES=gthread | |
10298 | fi | |
10299 | ||
4f14bcd8 GD |
10300 | wx_cv_lib_gtk= |
10301 | if test "x$wxUSE_GTK2" = "xyes"; then | |
10302 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
10303 | if test "${with_gtk_prefix+set}" = set; then | |
10304 | withval="$with_gtk_prefix" | |
10305 | gtk_config_prefix="$withval" | |
10306 | else | |
10307 | gtk_config_prefix="" | |
10308 | fi | |
10309 | ||
10310 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
10311 | if test "${with_gtk_exec_prefix+set}" = set; then | |
10312 | withval="$with_gtk_exec_prefix" | |
10313 | gtk_config_exec_prefix="$withval" | |
10314 | else | |
10315 | gtk_config_exec_prefix="" | |
10316 | fi | |
10317 | ||
10318 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
10319 | if test "${enable_gtktest+set}" = set; then | |
10320 | enableval="$enable_gtktest" | |
10321 | : | |
10322 | else | |
10323 | enable_gtktest=yes | |
10324 | fi | |
10325 | ||
10326 | ||
3f345b47 | 10327 | for module in . $GTK_MODULES |
4f14bcd8 | 10328 | do |
6f72b082 | 10329 | case "$module" in |
8168de4c | 10330 | gthread) |
6f72b082 OK |
10331 | gtk_config_args="$gtk_config_args gthread" |
10332 | ;; | |
10333 | esac | |
10334 | done | |
10335 | ||
10336 | if test x$gtk_config_exec_prefix != x ; then | |
10337 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
10338 | if test x${GTK_CONFIG_2_0+set} != xset ; then | |
10339 | GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0 | |
10340 | fi | |
10341 | fi | |
10342 | if test x$gtk_config_prefix != x ; then | |
10343 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
10344 | if test x${GTK_CONFIG_2_0+set} != xset ; then | |
10345 | GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0 | |
10346 | fi | |
10347 | fi | |
10348 | ||
10349 | # Extract the first word of "gtk-config-2.0", so it can be a program name with args. | |
10350 | set dummy gtk-config-2.0; ac_word=$2 | |
698dcdb6 | 10351 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
cb61c62d | 10352 | echo "configure:10353: checking for $ac_word" >&5 |
698dcdb6 VZ |
10353 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then |
10354 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6f72b082 | 10355 | else |
698dcdb6 VZ |
10356 | case "$GTK_CONFIG_2_0" in |
10357 | /*) | |
6f72b082 OK |
10358 | ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path. |
10359 | ;; | |
698dcdb6 VZ |
10360 | ?:/*) |
10361 | ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path. | |
10362 | ;; | |
6f72b082 | 10363 | *) |
698dcdb6 VZ |
10364 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
10365 | ac_dummy="$PATH" | |
10366 | for ac_dir in $ac_dummy; do | |
10367 | test -z "$ac_dir" && ac_dir=. | |
10368 | if test -f $ac_dir/$ac_word; then | |
10369 | ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word" | |
10370 | break | |
10371 | fi | |
10372 | done | |
10373 | IFS="$ac_save_ifs" | |
6f72b082 OK |
10374 | test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no" |
10375 | ;; | |
10376 | esac | |
10377 | fi | |
698dcdb6 | 10378 | GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0" |
6f72b082 | 10379 | if test -n "$GTK_CONFIG_2_0"; then |
698dcdb6 | 10380 | echo "$ac_t""$GTK_CONFIG_2_0" 1>&6 |
6f72b082 | 10381 | else |
698dcdb6 | 10382 | echo "$ac_t""no" 1>&6 |
6f72b082 OK |
10383 | fi |
10384 | ||
10385 | min_gtk_version=1.3.1 | |
698dcdb6 | 10386 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
cb61c62d | 10387 | echo "configure:10388: checking for GTK - version >= $min_gtk_version" >&5 |
6f72b082 OK |
10388 | no_gtk="" |
10389 | if test "$GTK_CONFIG_2_0" = "no" ; then | |
10390 | no_gtk=yes | |
10391 | else | |
10392 | GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags` | |
10393 | GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs` | |
10394 | gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
10395 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
10396 | gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
10397 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
10398 | gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
10399 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
10400 | if test "x$enable_gtktest" = "xyes" ; then | |
10401 | ac_save_CFLAGS="$CFLAGS" | |
10402 | ac_save_LIBS="$LIBS" | |
10403 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
10404 | LIBS="$GTK_LIBS $LIBS" | |
10405 | rm -f conf.gtktest | |
10406 | if test "$cross_compiling" = yes; then | |
10407 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
10408 | else | |
698dcdb6 | 10409 | cat > conftest.$ac_ext <<EOF |
cb61c62d | 10410 | #line 10411 "configure" |
6f72b082 OK |
10411 | #include "confdefs.h" |
10412 | ||
10413 | #include <gtk/gtk.h> | |
10414 | #include <stdio.h> | |
10415 | #include <stdlib.h> | |
10416 | ||
8168de4c | 10417 | int |
6f72b082 OK |
10418 | main () |
10419 | { | |
10420 | int major, minor, micro; | |
10421 | char *tmp_version; | |
10422 | ||
10423 | system ("touch conf.gtktest"); | |
10424 | ||
10425 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
10426 | tmp_version = g_strdup("$min_gtk_version"); | |
10427 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
10428 | printf("%s, bad version string\n", "$min_gtk_version"); | |
10429 | exit(1); | |
10430 | } | |
10431 | ||
10432 | if ((gtk_major_version != $gtk_config_major_version) || | |
10433 | (gtk_minor_version != $gtk_config_minor_version) || | |
10434 | (gtk_micro_version != $gtk_config_micro_version)) | |
10435 | { | |
8168de4c | 10436 | printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
6f72b082 OK |
10437 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
10438 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
10439 | printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n"); | |
10440 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
10441 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
10442 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
10443 | printf("*** required on your system.\n"); | |
10444 | printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n"); | |
10445 | printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n"); | |
10446 | printf("*** before re-running configure\n"); | |
8168de4c | 10447 | } |
6f72b082 OK |
10448 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
10449 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
8168de4c | 10450 | (gtk_minor_version != GTK_MINOR_VERSION) || |
6f72b082 OK |
10451 | (gtk_micro_version != GTK_MICRO_VERSION)) |
10452 | { | |
10453 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
8168de4c | 10454 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); |
6f72b082 | 10455 | printf("*** library (version %d.%d.%d)\n", |
8168de4c | 10456 | gtk_major_version, gtk_minor_version, gtk_micro_version); |
6f72b082 OK |
10457 | } |
10458 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
10459 | else | |
10460 | { | |
10461 | if ((gtk_major_version > major) || | |
10462 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
10463 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
10464 | { | |
10465 | return 0; | |
10466 | } | |
10467 | else | |
10468 | { | |
10469 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
10470 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
10471 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
8168de4c | 10472 | major, minor, micro); |
6f72b082 OK |
10473 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); |
10474 | printf("***\n"); | |
10475 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
10476 | printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n"); | |
10477 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
10478 | printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n"); | |
10479 | printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n"); | |
10480 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
10481 | printf("*** so that the correct libraries are found at run-time))\n"); | |
10482 | } | |
10483 | } | |
10484 | return 1; | |
10485 | } | |
10486 | ||
698dcdb6 | 10487 | EOF |
cb61c62d | 10488 | if { (eval echo configure:10489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 10489 | then |
6f72b082 OK |
10490 | : |
10491 | else | |
698dcdb6 VZ |
10492 | echo "configure: failed program was:" >&5 |
10493 | cat conftest.$ac_ext >&5 | |
10494 | rm -fr conftest* | |
10495 | no_gtk=yes | |
6f72b082 | 10496 | fi |
698dcdb6 | 10497 | rm -fr conftest* |
6f72b082 | 10498 | fi |
698dcdb6 | 10499 | |
6f72b082 OK |
10500 | CFLAGS="$ac_save_CFLAGS" |
10501 | LIBS="$ac_save_LIBS" | |
10502 | fi | |
10503 | fi | |
10504 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 10505 | echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6 |
8168de4c | 10506 | wx_cv_lib_gtk=2.0 |
6f72b082 | 10507 | else |
698dcdb6 | 10508 | echo "$ac_t""no" 1>&6 |
6f72b082 OK |
10509 | if test "$GTK_CONFIG_2_0" = "no" ; then |
10510 | echo "*** The gtk-config-2.0 script installed by GTK could not be found" | |
10511 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
10512 | echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the" | |
10513 | echo "*** full path to gtk-config-2.0." | |
10514 | else | |
10515 | if test -f conf.gtktest ; then | |
10516 | : | |
10517 | else | |
10518 | echo "*** Could not run GTK test program, checking why..." | |
10519 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
10520 | LIBS="$LIBS $GTK_LIBS" | |
698dcdb6 | 10521 | cat > conftest.$ac_ext <<EOF |
cb61c62d | 10522 | #line 10523 "configure" |
6f72b082 OK |
10523 | #include "confdefs.h" |
10524 | ||
10525 | #include <gtk/gtk.h> | |
10526 | #include <stdio.h> | |
10527 | ||
698dcdb6 VZ |
10528 | int main() { |
10529 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
10530 | ; return 0; } | |
10531 | EOF | |
cb61c62d | 10532 | if { (eval echo configure:10533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 10533 | rm -rf conftest* |
6f72b082 OK |
10534 | echo "*** The test program compiled, but did not run. This usually means" |
10535 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
10536 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
10537 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
10538 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
10539 | echo "*** is required on your system" | |
8168de4c | 10540 | echo "***" |
6f72b082 OK |
10541 | echo "*** If you have an old version installed, it is best to remove it, although" |
10542 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
10543 | echo "***" | |
10544 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
10545 | echo "*** came with the system with the command" | |
10546 | echo "***" | |
698dcdb6 | 10547 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
6f72b082 | 10548 | else |
698dcdb6 VZ |
10549 | echo "configure: failed program was:" >&5 |
10550 | cat conftest.$ac_ext >&5 | |
10551 | rm -rf conftest* | |
10552 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
6f72b082 OK |
10553 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
10554 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
698dcdb6 | 10555 | echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0" |
6f72b082 | 10556 | fi |
698dcdb6 | 10557 | rm -f conftest* |
6f72b082 OK |
10558 | CFLAGS="$ac_save_CFLAGS" |
10559 | LIBS="$ac_save_LIBS" | |
10560 | fi | |
10561 | fi | |
10562 | GTK_CFLAGS="" | |
10563 | GTK_LIBS="" | |
3f345b47 | 10564 | : |
8168de4c VZ |
10565 | fi |
10566 | ||
10567 | ||
10568 | rm -f conf.gtktest | |
10569 | ||
10570 | fi | |
10571 | ||
10572 | if test -z "$wx_cv_lib_gtk"; then | |
3f345b47 VZ |
10573 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. |
10574 | if test "${with_gtk_prefix+set}" = set; then | |
10575 | withval="$with_gtk_prefix" | |
10576 | gtk_config_prefix="$withval" | |
10577 | else | |
10578 | gtk_config_prefix="" | |
10579 | fi | |
10580 | ||
10581 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
10582 | if test "${with_gtk_exec_prefix+set}" = set; then | |
10583 | withval="$with_gtk_exec_prefix" | |
10584 | gtk_config_exec_prefix="$withval" | |
10585 | else | |
10586 | gtk_config_exec_prefix="" | |
10587 | fi | |
10588 | ||
10589 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
10590 | if test "${enable_gtktest+set}" = set; then | |
10591 | enableval="$enable_gtktest" | |
10592 | : | |
10593 | else | |
10594 | enable_gtktest=yes | |
10595 | fi | |
10596 | ||
10597 | ||
10598 | for module in . $GTK_MODULES | |
10599 | do | |
10600 | case "$module" in | |
10601 | gthread) | |
10602 | gtk_config_args="$gtk_config_args gthread" | |
10603 | ;; | |
10604 | esac | |
10605 | done | |
10606 | ||
10f2d63a VZ |
10607 | if test x$gtk_config_exec_prefix != x ; then |
10608 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
10609 | if test x${GTK_CONFIG+set} != xset ; then | |
10610 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
10611 | fi | |
10612 | fi | |
10613 | if test x$gtk_config_prefix != x ; then | |
10614 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
10615 | if test x${GTK_CONFIG+set} != xset ; then | |
10616 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
10617 | fi | |
10618 | fi | |
10619 | ||
10620 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
10621 | set dummy gtk-config; ac_word=$2 | |
698dcdb6 | 10622 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
cb61c62d | 10623 | echo "configure:10624: checking for $ac_word" >&5 |
698dcdb6 VZ |
10624 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
10625 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 10626 | else |
698dcdb6 VZ |
10627 | case "$GTK_CONFIG" in |
10628 | /*) | |
f6bcfd97 BP |
10629 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
10630 | ;; | |
698dcdb6 VZ |
10631 | ?:/*) |
10632 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
10633 | ;; | |
f6bcfd97 | 10634 | *) |
698dcdb6 VZ |
10635 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
10636 | ac_dummy="$PATH" | |
10637 | for ac_dir in $ac_dummy; do | |
10638 | test -z "$ac_dir" && ac_dir=. | |
10639 | if test -f $ac_dir/$ac_word; then | |
10640 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
10641 | break | |
10642 | fi | |
10643 | done | |
10644 | IFS="$ac_save_ifs" | |
f6bcfd97 BP |
10645 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
10646 | ;; | |
10647 | esac | |
10648 | fi | |
698dcdb6 | 10649 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
f6bcfd97 | 10650 | if test -n "$GTK_CONFIG"; then |
698dcdb6 | 10651 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
f6bcfd97 | 10652 | else |
698dcdb6 | 10653 | echo "$ac_t""no" 1>&6 |
f6bcfd97 BP |
10654 | fi |
10655 | ||
10656 | min_gtk_version=1.2.7 | |
698dcdb6 | 10657 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
cb61c62d | 10658 | echo "configure:10659: checking for GTK - version >= $min_gtk_version" >&5 |
f6bcfd97 | 10659 | no_gtk="" |
3f345b47 VZ |
10660 | if test "$GTK_CONFIG" = "no" ; then |
10661 | no_gtk=yes | |
10662 | else | |
10663 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
10664 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
10665 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
10666 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
10667 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
10668 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
10669 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
10670 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
10671 | if test "x$enable_gtktest" = "xyes" ; then | |
10672 | ac_save_CFLAGS="$CFLAGS" | |
10673 | ac_save_LIBS="$LIBS" | |
10674 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
10675 | LIBS="$GTK_LIBS $LIBS" | |
10676 | rm -f conf.gtktest | |
10677 | if test "$cross_compiling" = yes; then | |
f6bcfd97 BP |
10678 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
10679 | else | |
698dcdb6 | 10680 | cat > conftest.$ac_ext <<EOF |
cb61c62d | 10681 | #line 10682 "configure" |
f6bcfd97 BP |
10682 | #include "confdefs.h" |
10683 | ||
10684 | #include <gtk/gtk.h> | |
f6bcfd97 BP |
10685 | #include <stdio.h> |
10686 | #include <stdlib.h> | |
10687 | ||
3f345b47 | 10688 | int |
f6bcfd97 BP |
10689 | main () |
10690 | { | |
10691 | int major, minor, micro; | |
3f345b47 | 10692 | char *tmp_version; |
f6bcfd97 | 10693 | |
3f345b47 | 10694 | system ("touch conf.gtktest"); |
f6bcfd97 | 10695 | |
3f345b47 VZ |
10696 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
10697 | tmp_version = g_strdup("$min_gtk_version"); | |
10698 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
10699 | printf("%s, bad version string\n", "$min_gtk_version"); | |
f6bcfd97 BP |
10700 | exit(1); |
10701 | } | |
10702 | ||
3f345b47 VZ |
10703 | if ((gtk_major_version != $gtk_config_major_version) || |
10704 | (gtk_minor_version != $gtk_config_minor_version) || | |
10705 | (gtk_micro_version != $gtk_config_micro_version)) | |
10706 | { | |
10707 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
10708 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
10709 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
10710 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
10711 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
10712 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
10713 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
10714 | printf("*** required on your system.\n"); | |
10715 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
10716 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
10717 | printf("*** before re-running configure\n"); | |
10718 | } | |
10719 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
10720 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
10721 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
10722 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
10723 | { | |
10724 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
10725 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
10726 | printf("*** library (version %d.%d.%d)\n", | |
10727 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
10728 | } | |
10729 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
10730 | else | |
10731 | { | |
10732 | if ((gtk_major_version > major) || | |
10733 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
10734 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
10735 | { | |
10736 | return 0; | |
10737 | } | |
10738 | else | |
10739 | { | |
10740 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
10741 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
10742 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
10743 | major, minor, micro); | |
10744 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
10745 | printf("***\n"); | |
10746 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
10747 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
10748 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
10749 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
10750 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
10751 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
10752 | printf("*** so that the correct libraries are found at run-time))\n"); | |
10753 | } | |
10754 | } | |
10755 | return 1; | |
f6bcfd97 BP |
10756 | } |
10757 | ||
698dcdb6 | 10758 | EOF |
cb61c62d | 10759 | if { (eval echo configure:10760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 10760 | then |
f6bcfd97 BP |
10761 | : |
10762 | else | |
698dcdb6 VZ |
10763 | echo "configure: failed program was:" >&5 |
10764 | cat conftest.$ac_ext >&5 | |
10765 | rm -fr conftest* | |
10766 | no_gtk=yes | |
f6bcfd97 | 10767 | fi |
698dcdb6 | 10768 | rm -fr conftest* |
f6bcfd97 | 10769 | fi |
698dcdb6 | 10770 | |
3f345b47 VZ |
10771 | CFLAGS="$ac_save_CFLAGS" |
10772 | LIBS="$ac_save_LIBS" | |
10773 | fi | |
f6bcfd97 BP |
10774 | fi |
10775 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 10776 | echo "$ac_t""yes" 1>&6 |
3f345b47 | 10777 | wx_cv_lib_gtk=1.2.7 |
f6bcfd97 | 10778 | else |
698dcdb6 | 10779 | echo "$ac_t""no" 1>&6 |
3f345b47 VZ |
10780 | if test "$GTK_CONFIG" = "no" ; then |
10781 | echo "*** The gtk-config script installed by GTK could not be found" | |
10782 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
10783 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
10784 | echo "*** full path to gtk-config." | |
10785 | else | |
10786 | if test -f conf.gtktest ; then | |
10787 | : | |
10788 | else | |
10789 | echo "*** Could not run GTK test program, checking why..." | |
10790 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
10791 | LIBS="$LIBS $GTK_LIBS" | |
10792 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 10793 | #line 10794 "configure" |
3f345b47 VZ |
10794 | #include "confdefs.h" |
10795 | ||
10796 | #include <gtk/gtk.h> | |
10797 | #include <stdio.h> | |
10798 | ||
10799 | int main() { | |
10800 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
10801 | ; return 0; } | |
10802 | EOF | |
cb61c62d | 10803 | if { (eval echo configure:10804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3f345b47 VZ |
10804 | rm -rf conftest* |
10805 | echo "*** The test program compiled, but did not run. This usually means" | |
10806 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
10807 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
10808 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
10809 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
10810 | echo "*** is required on your system" | |
10811 | echo "***" | |
10812 | echo "*** If you have an old version installed, it is best to remove it, although" | |
10813 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
10814 | echo "***" | |
10815 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
10816 | echo "*** came with the system with the command" | |
10817 | echo "***" | |
10818 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
10819 | else | |
10820 | echo "configure: failed program was:" >&5 | |
10821 | cat conftest.$ac_ext >&5 | |
10822 | rm -rf conftest* | |
10823 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
10824 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
10825 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
10826 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
10827 | fi | |
10828 | rm -f conftest* | |
10829 | CFLAGS="$ac_save_CFLAGS" | |
10830 | LIBS="$ac_save_LIBS" | |
10831 | fi | |
10832 | fi | |
f6bcfd97 BP |
10833 | GTK_CFLAGS="" |
10834 | GTK_LIBS="" | |
10835 | : | |
10836 | fi | |
698dcdb6 VZ |
10837 | |
10838 | ||
3f345b47 | 10839 | rm -f conf.gtktest |
f6bcfd97 | 10840 | |
8168de4c VZ |
10841 | fi |
10842 | ||
10843 | if test -z "$wx_cv_lib_gtk"; then | |
3f345b47 VZ |
10844 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. |
10845 | if test "${with_gtk_prefix+set}" = set; then | |
10846 | withval="$with_gtk_prefix" | |
10847 | gtk_config_prefix="$withval" | |
10848 | else | |
10849 | gtk_config_prefix="" | |
10850 | fi | |
10851 | ||
10852 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
10853 | if test "${with_gtk_exec_prefix+set}" = set; then | |
10854 | withval="$with_gtk_exec_prefix" | |
10855 | gtk_config_exec_prefix="$withval" | |
10856 | else | |
10857 | gtk_config_exec_prefix="" | |
10858 | fi | |
10859 | ||
10860 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
10861 | if test "${enable_gtktest+set}" = set; then | |
10862 | enableval="$enable_gtktest" | |
10863 | : | |
10864 | else | |
10865 | enable_gtktest=yes | |
10866 | fi | |
10867 | ||
10868 | ||
10869 | for module in . $GTK_MODULES | |
10870 | do | |
10871 | case "$module" in | |
10872 | gthread) | |
10873 | gtk_config_args="$gtk_config_args gthread" | |
10874 | ;; | |
10875 | esac | |
10876 | done | |
10877 | ||
f6bcfd97 BP |
10878 | if test x$gtk_config_exec_prefix != x ; then |
10879 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
10880 | if test x${GTK_CONFIG+set} != xset ; then | |
10881 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
10882 | fi | |
10883 | fi | |
10884 | if test x$gtk_config_prefix != x ; then | |
10885 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
10886 | if test x${GTK_CONFIG+set} != xset ; then | |
10887 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
10888 | fi | |
10889 | fi | |
10890 | ||
10891 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
10892 | set dummy gtk-config; ac_word=$2 | |
698dcdb6 | 10893 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
cb61c62d | 10894 | echo "configure:10895: checking for $ac_word" >&5 |
698dcdb6 VZ |
10895 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
10896 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 10897 | else |
698dcdb6 VZ |
10898 | case "$GTK_CONFIG" in |
10899 | /*) | |
10f2d63a VZ |
10900 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
10901 | ;; | |
698dcdb6 VZ |
10902 | ?:/*) |
10903 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
10904 | ;; | |
10f2d63a | 10905 | *) |
698dcdb6 VZ |
10906 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
10907 | ac_dummy="$PATH" | |
10908 | for ac_dir in $ac_dummy; do | |
10909 | test -z "$ac_dir" && ac_dir=. | |
10910 | if test -f $ac_dir/$ac_word; then | |
10911 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
10912 | break | |
10913 | fi | |
10914 | done | |
10915 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
10916 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
10917 | ;; | |
10918 | esac | |
10919 | fi | |
698dcdb6 | 10920 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
10f2d63a | 10921 | if test -n "$GTK_CONFIG"; then |
698dcdb6 | 10922 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
10f2d63a | 10923 | else |
698dcdb6 | 10924 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
10925 | fi |
10926 | ||
04165bec | 10927 | min_gtk_version=1.2.3 |
698dcdb6 | 10928 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
cb61c62d | 10929 | echo "configure:10930: checking for GTK - version >= $min_gtk_version" >&5 |
10f2d63a | 10930 | no_gtk="" |
3f345b47 VZ |
10931 | if test "$GTK_CONFIG" = "no" ; then |
10932 | no_gtk=yes | |
10933 | else | |
10934 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
10935 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
10936 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
10937 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
10938 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
10939 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
10940 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
10941 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
10942 | if test "x$enable_gtktest" = "xyes" ; then | |
10943 | ac_save_CFLAGS="$CFLAGS" | |
10944 | ac_save_LIBS="$LIBS" | |
10945 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
10946 | LIBS="$GTK_LIBS $LIBS" | |
10947 | rm -f conf.gtktest | |
10948 | if test "$cross_compiling" = yes; then | |
10f2d63a VZ |
10949 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
10950 | else | |
698dcdb6 | 10951 | cat > conftest.$ac_ext <<EOF |
cb61c62d | 10952 | #line 10953 "configure" |
10f2d63a VZ |
10953 | #include "confdefs.h" |
10954 | ||
10955 | #include <gtk/gtk.h> | |
10956 | #include <stdio.h> | |
32832908 | 10957 | #include <stdlib.h> |
10f2d63a | 10958 | |
3f345b47 | 10959 | int |
10f2d63a VZ |
10960 | main () |
10961 | { | |
10962 | int major, minor, micro; | |
3f345b47 | 10963 | char *tmp_version; |
10f2d63a | 10964 | |
3f345b47 | 10965 | system ("touch conf.gtktest"); |
10f2d63a | 10966 | |
3f345b47 VZ |
10967 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
10968 | tmp_version = g_strdup("$min_gtk_version"); | |
10969 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
10970 | printf("%s, bad version string\n", "$min_gtk_version"); | |
f49f2b0c RR |
10971 | exit(1); |
10972 | } | |
10973 | ||
3f345b47 VZ |
10974 | if ((gtk_major_version != $gtk_config_major_version) || |
10975 | (gtk_minor_version != $gtk_config_minor_version) || | |
10976 | (gtk_micro_version != $gtk_config_micro_version)) | |
10977 | { | |
10978 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
10979 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
10980 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
10981 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
10982 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
10983 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
10984 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
10985 | printf("*** required on your system.\n"); | |
10986 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
10987 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
10988 | printf("*** before re-running configure\n"); | |
10989 | } | |
10990 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
10991 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
10992 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
10993 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
10994 | { | |
10995 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
10996 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
10997 | printf("*** library (version %d.%d.%d)\n", | |
10998 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
10999 | } | |
11000 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
11001 | else | |
11002 | { | |
11003 | if ((gtk_major_version > major) || | |
11004 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
11005 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
11006 | { | |
11007 | return 0; | |
11008 | } | |
11009 | else | |
11010 | { | |
11011 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
11012 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
11013 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
11014 | major, minor, micro); | |
11015 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
11016 | printf("***\n"); | |
11017 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
11018 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
11019 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
11020 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
11021 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
11022 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
11023 | printf("*** so that the correct libraries are found at run-time))\n"); | |
11024 | } | |
11025 | } | |
11026 | return 1; | |
10f2d63a VZ |
11027 | } |
11028 | ||
698dcdb6 | 11029 | EOF |
cb61c62d | 11030 | if { (eval echo configure:11031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 11031 | then |
10f2d63a VZ |
11032 | : |
11033 | else | |
698dcdb6 VZ |
11034 | echo "configure: failed program was:" >&5 |
11035 | cat conftest.$ac_ext >&5 | |
11036 | rm -fr conftest* | |
11037 | no_gtk=yes | |
10f2d63a | 11038 | fi |
698dcdb6 | 11039 | rm -fr conftest* |
10f2d63a | 11040 | fi |
698dcdb6 | 11041 | |
3f345b47 VZ |
11042 | CFLAGS="$ac_save_CFLAGS" |
11043 | LIBS="$ac_save_LIBS" | |
11044 | fi | |
10f2d63a VZ |
11045 | fi |
11046 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 11047 | echo "$ac_t""yes" 1>&6 |
3f345b47 | 11048 | wx_cv_lib_gtk=1.2.3 |
10f2d63a | 11049 | else |
698dcdb6 | 11050 | echo "$ac_t""no" 1>&6 |
3f345b47 VZ |
11051 | if test "$GTK_CONFIG" = "no" ; then |
11052 | echo "*** The gtk-config script installed by GTK could not be found" | |
11053 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
11054 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
11055 | echo "*** full path to gtk-config." | |
11056 | else | |
11057 | if test -f conf.gtktest ; then | |
11058 | : | |
11059 | else | |
11060 | echo "*** Could not run GTK test program, checking why..." | |
11061 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
11062 | LIBS="$LIBS $GTK_LIBS" | |
11063 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 11064 | #line 11065 "configure" |
3f345b47 VZ |
11065 | #include "confdefs.h" |
11066 | ||
11067 | #include <gtk/gtk.h> | |
11068 | #include <stdio.h> | |
11069 | ||
11070 | int main() { | |
11071 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
11072 | ; return 0; } | |
11073 | EOF | |
cb61c62d | 11074 | if { (eval echo configure:11075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3f345b47 VZ |
11075 | rm -rf conftest* |
11076 | echo "*** The test program compiled, but did not run. This usually means" | |
11077 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
11078 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
11079 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
11080 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
11081 | echo "*** is required on your system" | |
11082 | echo "***" | |
11083 | echo "*** If you have an old version installed, it is best to remove it, although" | |
11084 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
11085 | echo "***" | |
11086 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
11087 | echo "*** came with the system with the command" | |
11088 | echo "***" | |
11089 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
11090 | else | |
11091 | echo "configure: failed program was:" >&5 | |
11092 | cat conftest.$ac_ext >&5 | |
11093 | rm -rf conftest* | |
11094 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
11095 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
11096 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
11097 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
11098 | fi | |
11099 | rm -f conftest* | |
11100 | CFLAGS="$ac_save_CFLAGS" | |
11101 | LIBS="$ac_save_LIBS" | |
11102 | fi | |
11103 | fi | |
10f2d63a VZ |
11104 | GTK_CFLAGS="" |
11105 | GTK_LIBS="" | |
7e99ad86 | 11106 | : |
10f2d63a | 11107 | fi |
698dcdb6 VZ |
11108 | |
11109 | ||
3f345b47 | 11110 | rm -f conf.gtktest |
10f2d63a | 11111 | |
8168de4c VZ |
11112 | fi |
11113 | ||
11114 | if test -z "$wx_cv_lib_gtk"; then | |
11115 | wx_cv_lib_gtk=none | |
138be253 VZ |
11116 | else |
11117 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
11118 | wx_cv_libs_gtk=$GTK_LIBS | |
8168de4c VZ |
11119 | fi |
11120 | ||
1e6feb95 | 11121 | |
8168de4c | 11122 | fi |
703e0a69 | 11123 | |
698dcdb6 | 11124 | |
8168de4c VZ |
11125 | if test "$gtk_version_cached" = 1; then |
11126 | echo "$ac_t""$wx_cv_lib_gtk" 1>&6 | |
1e6feb95 | 11127 | fi |
698dcdb6 | 11128 | |
8168de4c VZ |
11129 | case "$wx_cv_lib_gtk" in |
11130 | 2.0) WXGTK20=1 | |
11131 | ;; | |
11132 | 1.2.7) WXGTK127=1 | |
d1a8d972 | 11133 | WXGTK12=1 |
8168de4c VZ |
11134 | ;; |
11135 | 1.2.3) WXGTK12=1 | |
11136 | ;; | |
11137 | *) { echo "configure: error: | |
11138 | Please check that gtk-config is in path, the directory | |
11139 | where GTK+ libraries are installed (returned by | |
11140 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
11141 | equivalent variable and GTK+ is version 1.2.3 or above. | |
11142 | " 1>&2; exit 1; } | |
11143 | ;; | |
11144 | esac | |
2224580a | 11145 | |
138be253 | 11146 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" |
11dfaa5f | 11147 | GUI_TK_LIBRARY="$wx_cv_libs_gtk" |
698dcdb6 | 11148 | |
1e6feb95 VZ |
11149 | AFMINSTALL=afminstall |
11150 | TOOLKIT=GTK | |
11151 | GUIDIST=GTK_DIST | |
7ec2881a | 11152 | |
1e6feb95 | 11153 | echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6 |
cb61c62d | 11154 | echo "configure:11155: checking for gdk_im_open in -lgdk" >&5 |
698dcdb6 VZ |
11155 | ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'` |
11156 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11157 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7ec2881a | 11158 | else |
698dcdb6 | 11159 | ac_save_LIBS="$LIBS" |
7ec2881a | 11160 | LIBS="-lgdk $LIBS" |
698dcdb6 | 11161 | cat > conftest.$ac_ext <<EOF |
cb61c62d | 11162 | #line 11163 "configure" |
7ec2881a RR |
11163 | #include "confdefs.h" |
11164 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11165 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11166 | builtin and then its argument prototype would still apply. */ |
11167 | char gdk_im_open(); | |
11168 | ||
11169 | int main() { | |
11170 | gdk_im_open() | |
11171 | ; return 0; } | |
11172 | EOF | |
cb61c62d | 11173 | if { (eval echo configure:11174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11174 | rm -rf conftest* |
11175 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11176 | else | |
11177 | echo "configure: failed program was:" >&5 | |
11178 | cat conftest.$ac_ext >&5 | |
11179 | rm -rf conftest* | |
11180 | eval "ac_cv_lib_$ac_lib_var=no" | |
11181 | fi | |
11182 | rm -f conftest* | |
11183 | LIBS="$ac_save_LIBS" | |
11184 | ||
11185 | fi | |
11186 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11187 | echo "$ac_t""yes" 1>&6 | |
11188 | cat >> confdefs.h <<\EOF | |
7ec2881a RR |
11189 | #define HAVE_XIM 1 |
11190 | EOF | |
11191 | ||
698dcdb6 VZ |
11192 | else |
11193 | echo "$ac_t""no" 1>&6 | |
7ec2881a RR |
11194 | fi |
11195 | ||
1e6feb95 | 11196 | fi |
10f2d63a | 11197 | |
1e6feb95 | 11198 | if test "$wxUSE_MGL" = 1; then |
1e6feb95 | 11199 | echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6 |
cb61c62d | 11200 | echo "configure:11201: checking for SciTech MGL library" >&5 |
1e6feb95 VZ |
11201 | if test "x$MGL_ROOT" = x ; then |
11202 | echo "$ac_t""not found" 1>&6 | |
11203 | { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; } | |
11204 | else | |
11205 | echo "$ac_t""$MGL_ROOT" 1>&6 | |
11206 | fi | |
11207 | ||
f9bc1684 VS |
11208 | case "${host}" in |
11209 | *-*-linux* ) | |
11210 | mgl_os=linux/gcc/glibc | |
11211 | ;; | |
11212 | *-pc-msdosdjgpp ) | |
11213 | mgl_os=dos32/dj2 | |
11214 | ;; | |
11215 | *) | |
11216 | { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; } | |
11217 | esac | |
11218 | ||
3a922bb4 | 11219 | mgl_lib_type="" |
1e6feb95 VZ |
11220 | |
11221 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
223e7fbf VS |
11222 | if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \ |
11223 | -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then | |
3a922bb4 | 11224 | mgl_lib_type=debug |
1e6feb95 VZ |
11225 | fi |
11226 | fi | |
3a922bb4 | 11227 | if test "x$mgl_lib_type" = x ; then |
223e7fbf VS |
11228 | if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \ |
11229 | -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then | |
3a922bb4 | 11230 | mgl_lib_type=release |
1e6feb95 VZ |
11231 | else |
11232 | { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; } | |
11233 | fi | |
11234 | fi | |
11235 | ||
11236 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
3a922bb4 | 11237 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" |
1e6feb95 VZ |
11238 | |
11239 | AFMINSTALL=afminstall | |
11240 | TOOLKIT=MGL | |
11241 | GUIDIST=MGL_DIST | |
11242 | fi | |
11243 | ||
1725144d RR |
11244 | if test "$wxUSE_MICROWIN" = 1; then |
11245 | echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6 | |
cb61c62d | 11246 | echo "configure:11247: checking for MicroWindows" >&5 |
1725144d RR |
11247 | if test "x$MICROWINDOWS" = x ; then |
11248 | echo "$ac_t""not found" 1>&6 | |
11249 | { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; } | |
11250 | else | |
11251 | echo "$ac_t""$MICROWINDOWS" 1>&6 | |
11252 | fi | |
11253 | ||
11254 | if test -f $MICROWINDOWS/lib/libmwin.a; then | |
11255 | echo "$ac_t""MicroWindows' libraries found." 1>&6 | |
11256 | else | |
11257 | { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; } | |
11258 | fi | |
11259 | ||
11260 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" | |
11261 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
11262 | ||
11263 | AFMINSTALL=afminstall | |
11264 | TOOLKIT=MICROWIN | |
11265 | GUIDIST=MICROWIN_DIST | |
11266 | ||
11267 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__ -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
11268 | fi | |
11269 | ||
f79bd02d | 11270 | if test "$wxUSE_X11" = 1; then |
d714471b | 11271 | # If we find X, set shell vars x_includes and x_libraries to the |
698dcdb6 VZ |
11272 | # paths, otherwise set no_x=yes. |
11273 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
11274 | # --without-x overrides everything else, but does not touch the cache. | |
11275 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
cb61c62d | 11276 | echo "configure:11277: checking for X" >&5 |
ab9b9eab VZ |
11277 | |
11278 | # Check whether --with-x or --without-x was given. | |
11279 | if test "${with_x+set}" = set; then | |
11280 | withval="$with_x" | |
698dcdb6 VZ |
11281 | : |
11282 | fi | |
ba337fe7 | 11283 | |
ab9b9eab VZ |
11284 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
11285 | if test "x$with_x" = xno; then | |
11286 | # The user explicitly disabled X. | |
11287 | have_x=disabled | |
11288 | else | |
11289 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
11290 | # Both variables are already set. | |
11291 | have_x=yes | |
11292 | else | |
698dcdb6 VZ |
11293 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then |
11294 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab VZ |
11295 | else |
11296 | # One or both of the vars are not set, and there is no cached value. | |
698dcdb6 VZ |
11297 | ac_x_includes=NO ac_x_libraries=NO |
11298 | rm -fr conftestdir | |
11299 | if mkdir conftestdir; then | |
11300 | cd conftestdir | |
ab9b9eab | 11301 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
698dcdb6 | 11302 | cat > Imakefile <<'EOF' |
ab9b9eab VZ |
11303 | acfindx: |
11304 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
11305 | EOF | |
11306 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
11307 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
11308 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
11309 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
10f2d63a | 11310 | for ac_extension in a so sl; do |
ab9b9eab | 11311 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
698dcdb6 | 11312 | test -f $ac_im_libdir/libX11.$ac_extension; then |
ab9b9eab | 11313 | ac_im_usrlibdir=$ac_im_libdir; break |
10f2d63a VZ |
11314 | fi |
11315 | done | |
ab9b9eab VZ |
11316 | # Screen out bogus values from the imake configuration. They are |
11317 | # bogus both because they are the default anyway, and because | |
11318 | # using them would break gcc on systems where it needs fixed includes. | |
698dcdb6 | 11319 | case "$ac_im_incroot" in |
ab9b9eab | 11320 | /usr/include) ;; |
698dcdb6 | 11321 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; |
ab9b9eab | 11322 | esac |
698dcdb6 | 11323 | case "$ac_im_usrlibdir" in |
ab9b9eab | 11324 | /usr/lib | /lib) ;; |
698dcdb6 | 11325 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; |
ab9b9eab | 11326 | esac |
ba337fe7 | 11327 | fi |
ab9b9eab | 11328 | cd .. |
698dcdb6 | 11329 | rm -fr conftestdir |
ab9b9eab | 11330 | fi |
10f2d63a | 11331 | |
698dcdb6 VZ |
11332 | if test "$ac_x_includes" = NO; then |
11333 | # Guess where to find include files, by looking for this one X11 .h file. | |
11334 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
11335 | ||
ab9b9eab | 11336 | # First, try using that file with no special directory specified. |
698dcdb6 | 11337 | cat > conftest.$ac_ext <<EOF |
cb61c62d | 11338 | #line 11339 "configure" |
ab9b9eab | 11339 | #include "confdefs.h" |
698dcdb6 VZ |
11340 | #include <$x_direct_test_include> |
11341 | EOF | |
11342 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
cb61c62d | 11343 | { (eval echo configure:11344: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11344 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11345 | if test -z "$ac_err"; then | |
11346 | rm -rf conftest* | |
ab9b9eab VZ |
11347 | # We can compile using X headers with no special include directory. |
11348 | ac_x_includes= | |
11349 | else | |
698dcdb6 VZ |
11350 | echo "$ac_err" >&5 |
11351 | echo "configure: failed program was:" >&5 | |
ab9b9eab | 11352 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11353 | rm -rf conftest* |
11354 | # Look for the header file in a standard set of common directories. | |
11355 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
11356 | for ac_dir in \ | |
11357 | /usr/X11/include \ | |
11358 | /usr/X11R6/include \ | |
11359 | /usr/X11R5/include \ | |
11360 | /usr/X11R4/include \ | |
11361 | \ | |
11362 | /usr/include/X11 \ | |
11363 | /usr/include/X11R6 \ | |
11364 | /usr/include/X11R5 \ | |
11365 | /usr/include/X11R4 \ | |
11366 | \ | |
11367 | /usr/local/X11/include \ | |
11368 | /usr/local/X11R6/include \ | |
11369 | /usr/local/X11R5/include \ | |
11370 | /usr/local/X11R4/include \ | |
11371 | \ | |
11372 | /usr/local/include/X11 \ | |
11373 | /usr/local/include/X11R6 \ | |
11374 | /usr/local/include/X11R5 \ | |
11375 | /usr/local/include/X11R4 \ | |
11376 | \ | |
11377 | /usr/X386/include \ | |
11378 | /usr/x386/include \ | |
11379 | /usr/XFree86/include/X11 \ | |
11380 | \ | |
11381 | /usr/include \ | |
11382 | /usr/local/include \ | |
11383 | /usr/unsupported/include \ | |
11384 | /usr/athena/include \ | |
11385 | /usr/local/x11r5/include \ | |
11386 | /usr/lpp/Xamples/include \ | |
11387 | \ | |
11388 | /usr/openwin/include \ | |
11389 | /usr/openwin/share/include \ | |
11390 | ; \ | |
11391 | do | |
11392 | if test -r "$ac_dir/$x_direct_test_include"; then | |
11393 | ac_x_includes=$ac_dir | |
11394 | break | |
11395 | fi | |
11396 | done | |
ab9b9eab | 11397 | fi |
698dcdb6 VZ |
11398 | rm -f conftest* |
11399 | fi # $ac_x_includes = NO | |
10f2d63a | 11400 | |
698dcdb6 | 11401 | if test "$ac_x_libraries" = NO; then |
ab9b9eab | 11402 | # Check for the libraries. |
698dcdb6 VZ |
11403 | |
11404 | test -z "$x_direct_test_library" && x_direct_test_library=Xt | |
11405 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
11406 | ||
ab9b9eab VZ |
11407 | # See if we find them without any special options. |
11408 | # Don't add to $LIBS permanently. | |
698dcdb6 VZ |
11409 | ac_save_LIBS="$LIBS" |
11410 | LIBS="-l$x_direct_test_library $LIBS" | |
11411 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 11412 | #line 11413 "configure" |
ab9b9eab | 11413 | #include "confdefs.h" |
698dcdb6 VZ |
11414 | |
11415 | int main() { | |
11416 | ${x_direct_test_function}() | |
11417 | ; return 0; } | |
11418 | EOF | |
cb61c62d | 11419 | if { (eval echo configure:11420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11420 | rm -rf conftest* |
11421 | LIBS="$ac_save_LIBS" | |
ab9b9eab VZ |
11422 | # We can link X programs with no special library path. |
11423 | ac_x_libraries= | |
11424 | else | |
698dcdb6 VZ |
11425 | echo "configure: failed program was:" >&5 |
11426 | cat conftest.$ac_ext >&5 | |
11427 | rm -rf conftest* | |
11428 | LIBS="$ac_save_LIBS" | |
11429 | # First see if replacing the include by lib works. | |
11430 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
11431 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
11432 | /usr/X11/lib \ | |
11433 | /usr/X11R6/lib \ | |
11434 | /usr/X11R5/lib \ | |
11435 | /usr/X11R4/lib \ | |
11436 | \ | |
11437 | /usr/lib/X11 \ | |
11438 | /usr/lib/X11R6 \ | |
11439 | /usr/lib/X11R5 \ | |
11440 | /usr/lib/X11R4 \ | |
11441 | \ | |
11442 | /usr/local/X11/lib \ | |
11443 | /usr/local/X11R6/lib \ | |
11444 | /usr/local/X11R5/lib \ | |
11445 | /usr/local/X11R4/lib \ | |
11446 | \ | |
11447 | /usr/local/lib/X11 \ | |
11448 | /usr/local/lib/X11R6 \ | |
11449 | /usr/local/lib/X11R5 \ | |
11450 | /usr/local/lib/X11R4 \ | |
11451 | \ | |
11452 | /usr/X386/lib \ | |
11453 | /usr/x386/lib \ | |
11454 | /usr/XFree86/lib/X11 \ | |
11455 | \ | |
11456 | /usr/lib \ | |
11457 | /usr/local/lib \ | |
11458 | /usr/unsupported/lib \ | |
11459 | /usr/athena/lib \ | |
11460 | /usr/local/x11r5/lib \ | |
11461 | /usr/lpp/Xamples/lib \ | |
11462 | /lib/usr/lib/X11 \ | |
11463 | \ | |
11464 | /usr/openwin/lib \ | |
11465 | /usr/openwin/share/lib \ | |
11466 | ; \ | |
ab9b9eab VZ |
11467 | do |
11468 | for ac_extension in a so sl; do | |
698dcdb6 | 11469 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then |
ab9b9eab VZ |
11470 | ac_x_libraries=$ac_dir |
11471 | break 2 | |
10f2d63a | 11472 | fi |
10f2d63a | 11473 | done |
ab9b9eab VZ |
11474 | done |
11475 | fi | |
698dcdb6 VZ |
11476 | rm -f conftest* |
11477 | fi # $ac_x_libraries = NO | |
10f2d63a | 11478 | |
698dcdb6 | 11479 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
ab9b9eab VZ |
11480 | # Didn't find X anywhere. Cache the known absence of X. |
11481 | ac_cv_have_x="have_x=no" | |
11482 | else | |
11483 | # Record where we found X for the cache. | |
11484 | ac_cv_have_x="have_x=yes \ | |
11485 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
11486 | fi | |
11487 | fi | |
10f2d63a | 11488 | fi |
ab9b9eab VZ |
11489 | eval "$ac_cv_have_x" |
11490 | fi # $with_x != no | |
10f2d63a | 11491 | |
ab9b9eab | 11492 | if test "$have_x" != yes; then |
698dcdb6 | 11493 | echo "$ac_t""$have_x" 1>&6 |
ab9b9eab VZ |
11494 | no_x=yes |
11495 | else | |
11496 | # If each of the values was on the command line, it overrides each guess. | |
11497 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
11498 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
11499 | # Update the cache value to reflect the command line values. | |
11500 | ac_cv_have_x="have_x=yes \ | |
11501 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
698dcdb6 | 11502 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 |
ab9b9eab | 11503 | fi |
10f2d63a | 11504 | |
ab9b9eab VZ |
11505 | if test "$no_x" = yes; then |
11506 | # Not all programs may use this symbol, but it does not hurt to define it. | |
698dcdb6 | 11507 | cat >> confdefs.h <<\EOF |
ab9b9eab VZ |
11508 | #define X_DISPLAY_MISSING 1 |
11509 | EOF | |
10f2d63a | 11510 | |
ab9b9eab VZ |
11511 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
11512 | else | |
11513 | if test -n "$x_includes"; then | |
11514 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
10f2d63a VZ |
11515 | fi |
11516 | ||
ab9b9eab VZ |
11517 | # It would also be nice to do this for all -L options, not just this one. |
11518 | if test -n "$x_libraries"; then | |
11519 | X_LIBS="$X_LIBS -L$x_libraries" | |
11520 | # For Solaris; some versions of Sun CC require a space after -R and | |
11521 | # others require no space. Words are not sufficient . . . . | |
698dcdb6 | 11522 | case "`(uname -sr) 2>/dev/null`" in |
ab9b9eab | 11523 | "SunOS 5"*) |
698dcdb6 | 11524 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
cb61c62d | 11525 | echo "configure:11526: checking whether -R must be followed by a space" >&5 |
698dcdb6 VZ |
11526 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
11527 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 11528 | #line 11529 "configure" |
ab9b9eab | 11529 | #include "confdefs.h" |
10f2d63a | 11530 | |
698dcdb6 | 11531 | int main() { |
788deba1 | 11532 | |
698dcdb6 VZ |
11533 | ; return 0; } |
11534 | EOF | |
cb61c62d | 11535 | if { (eval echo configure:11536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 11536 | rm -rf conftest* |
ab9b9eab VZ |
11537 | ac_R_nospace=yes |
11538 | else | |
698dcdb6 VZ |
11539 | echo "configure: failed program was:" >&5 |
11540 | cat conftest.$ac_ext >&5 | |
11541 | rm -rf conftest* | |
11542 | ac_R_nospace=no | |
ab9b9eab | 11543 | fi |
698dcdb6 | 11544 | rm -f conftest* |
ab9b9eab | 11545 | if test $ac_R_nospace = yes; then |
698dcdb6 | 11546 | echo "$ac_t""no" 1>&6 |
ab9b9eab VZ |
11547 | X_LIBS="$X_LIBS -R$x_libraries" |
11548 | else | |
11549 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
698dcdb6 | 11550 | cat > conftest.$ac_ext <<EOF |
cb61c62d | 11551 | #line 11552 "configure" |
ab9b9eab | 11552 | #include "confdefs.h" |
788deba1 | 11553 | |
698dcdb6 | 11554 | int main() { |
ab9b9eab | 11555 | |
698dcdb6 VZ |
11556 | ; return 0; } |
11557 | EOF | |
cb61c62d | 11558 | if { (eval echo configure:11559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 11559 | rm -rf conftest* |
ab9b9eab VZ |
11560 | ac_R_space=yes |
11561 | else | |
698dcdb6 VZ |
11562 | echo "configure: failed program was:" >&5 |
11563 | cat conftest.$ac_ext >&5 | |
11564 | rm -rf conftest* | |
11565 | ac_R_space=no | |
ab9b9eab | 11566 | fi |
698dcdb6 | 11567 | rm -f conftest* |
ab9b9eab | 11568 | if test $ac_R_space = yes; then |
698dcdb6 | 11569 | echo "$ac_t""yes" 1>&6 |
ab9b9eab VZ |
11570 | X_LIBS="$X_LIBS -R $x_libraries" |
11571 | else | |
698dcdb6 | 11572 | echo "$ac_t""neither works" 1>&6 |
ab9b9eab VZ |
11573 | fi |
11574 | fi | |
698dcdb6 | 11575 | LIBS="$ac_xsave_LIBS" |
ab9b9eab VZ |
11576 | esac |
11577 | fi | |
11578 | ||
11579 | # Check for system-dependent libraries X programs must link with. | |
11580 | # Do this before checking for the system-independent R6 libraries | |
11581 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
11582 | ||
11583 | if test "$ISC" = yes; then | |
11584 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
11585 | else | |
698dcdb6 VZ |
11586 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
11587 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
ab9b9eab | 11588 | # the Alpha needs dnet_stub (dnet does not exist). |
698dcdb6 | 11589 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
cb61c62d | 11590 | echo "configure:11591: checking for dnet_ntoa in -ldnet" >&5 |
698dcdb6 VZ |
11591 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
11592 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11593 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11594 | else |
698dcdb6 | 11595 | ac_save_LIBS="$LIBS" |
ab9b9eab | 11596 | LIBS="-ldnet $LIBS" |
698dcdb6 | 11597 | cat > conftest.$ac_ext <<EOF |
cb61c62d | 11598 | #line 11599 "configure" |
ab9b9eab VZ |
11599 | #include "confdefs.h" |
11600 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11601 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11602 | builtin and then its argument prototype would still apply. */ |
11603 | char dnet_ntoa(); | |
11604 | ||
11605 | int main() { | |
11606 | dnet_ntoa() | |
11607 | ; return 0; } | |
11608 | EOF | |
cb61c62d | 11609 | if { (eval echo configure:11610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11610 | rm -rf conftest* |
11611 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11612 | else | |
11613 | echo "configure: failed program was:" >&5 | |
11614 | cat conftest.$ac_ext >&5 | |
11615 | rm -rf conftest* | |
11616 | eval "ac_cv_lib_$ac_lib_var=no" | |
11617 | fi | |
11618 | rm -f conftest* | |
11619 | LIBS="$ac_save_LIBS" | |
11620 | ||
11621 | fi | |
11622 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11623 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 11624 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
698dcdb6 VZ |
11625 | else |
11626 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11627 | fi |
11628 | ||
11629 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
698dcdb6 | 11630 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
cb61c62d | 11631 | echo "configure:11632: checking for dnet_ntoa in -ldnet_stub" >&5 |
698dcdb6 VZ |
11632 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
11633 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11634 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11635 | else |
698dcdb6 | 11636 | ac_save_LIBS="$LIBS" |
ab9b9eab | 11637 | LIBS="-ldnet_stub $LIBS" |
698dcdb6 | 11638 | cat > conftest.$ac_ext <<EOF |
cb61c62d | 11639 | #line 11640 "configure" |
ab9b9eab VZ |
11640 | #include "confdefs.h" |
11641 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11642 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11643 | builtin and then its argument prototype would still apply. */ |
11644 | char dnet_ntoa(); | |
11645 | ||
11646 | int main() { | |
11647 | dnet_ntoa() | |
11648 | ; return 0; } | |
11649 | EOF | |
cb61c62d | 11650 | if { (eval echo configure:11651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11651 | rm -rf conftest* |
11652 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11653 | else | |
11654 | echo "configure: failed program was:" >&5 | |
11655 | cat conftest.$ac_ext >&5 | |
11656 | rm -rf conftest* | |
11657 | eval "ac_cv_lib_$ac_lib_var=no" | |
11658 | fi | |
11659 | rm -f conftest* | |
11660 | LIBS="$ac_save_LIBS" | |
11661 | ||
11662 | fi | |
11663 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11664 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 11665 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
698dcdb6 VZ |
11666 | else |
11667 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11668 | fi |
11669 | ||
11670 | fi | |
11671 | ||
11672 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
11673 | # to get the SysV transport functions. | |
698dcdb6 | 11674 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
ab9b9eab VZ |
11675 | # needs -lnsl. |
11676 | # The nsl library prevents programs from opening the X display | |
698dcdb6 VZ |
11677 | # on Irix 5.2, according to dickey@clark.net. |
11678 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
cb61c62d | 11679 | echo "configure:11680: checking for gethostbyname" >&5 |
698dcdb6 VZ |
11680 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
11681 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11682 | else | |
11683 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 11684 | #line 11685 "configure" |
ab9b9eab VZ |
11685 | #include "confdefs.h" |
11686 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 11687 | which can conflict with char gethostbyname(); below. */ |
ab9b9eab VZ |
11688 | #include <assert.h> |
11689 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11690 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11691 | builtin and then its argument prototype would still apply. */ |
11692 | char gethostbyname(); | |
11693 | ||
11694 | int main() { | |
ab9b9eab VZ |
11695 | |
11696 | /* The GNU C library defines this for functions which it implements | |
11697 | to always fail with ENOSYS. Some functions are actually named | |
11698 | something starting with __ and the normal name is an alias. */ | |
11699 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
11700 | choke me | |
11701 | #else | |
698dcdb6 | 11702 | gethostbyname(); |
ab9b9eab VZ |
11703 | #endif |
11704 | ||
698dcdb6 VZ |
11705 | ; return 0; } |
11706 | EOF | |
cb61c62d | 11707 | if { (eval echo configure:11708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11708 | rm -rf conftest* |
11709 | eval "ac_cv_func_gethostbyname=yes" | |
11710 | else | |
11711 | echo "configure: failed program was:" >&5 | |
11712 | cat conftest.$ac_ext >&5 | |
11713 | rm -rf conftest* | |
11714 | eval "ac_cv_func_gethostbyname=no" | |
11715 | fi | |
11716 | rm -f conftest* | |
11717 | fi | |
11718 | ||
11719 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
11720 | echo "$ac_t""yes" 1>&6 | |
11721 | : | |
11722 | else | |
11723 | echo "$ac_t""no" 1>&6 | |
11724 | fi | |
ab9b9eab VZ |
11725 | |
11726 | if test $ac_cv_func_gethostbyname = no; then | |
698dcdb6 | 11727 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
cb61c62d | 11728 | echo "configure:11729: checking for gethostbyname in -lnsl" >&5 |
698dcdb6 VZ |
11729 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
11730 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11731 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11732 | else |
698dcdb6 | 11733 | ac_save_LIBS="$LIBS" |
ab9b9eab | 11734 | LIBS="-lnsl $LIBS" |
698dcdb6 | 11735 | cat > conftest.$ac_ext <<EOF |
cb61c62d | 11736 | #line 11737 "configure" |
ab9b9eab VZ |
11737 | #include "confdefs.h" |
11738 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11739 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11740 | builtin and then its argument prototype would still apply. */ |
11741 | char gethostbyname(); | |
6232543b | 11742 | |
698dcdb6 VZ |
11743 | int main() { |
11744 | gethostbyname() | |
11745 | ; return 0; } | |
11746 | EOF | |
cb61c62d | 11747 | if { (eval echo configure:11748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11748 | rm -rf conftest* |
11749 | eval "ac_cv_lib_$ac_lib_var=yes" | |
703e0a69 | 11750 | else |
698dcdb6 VZ |
11751 | echo "configure: failed program was:" >&5 |
11752 | cat conftest.$ac_ext >&5 | |
11753 | rm -rf conftest* | |
11754 | eval "ac_cv_lib_$ac_lib_var=no" | |
11755 | fi | |
11756 | rm -f conftest* | |
11757 | LIBS="$ac_save_LIBS" | |
1e487827 | 11758 | |
698dcdb6 VZ |
11759 | fi |
11760 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11761 | echo "$ac_t""yes" 1>&6 | |
11762 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
11763 | else | |
11764 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11765 | fi |
11766 | ||
11767 | fi | |
11768 | ||
11769 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
11770 | # socket/setsockopt and other routines are undefined under SCO ODT | |
11771 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
698dcdb6 VZ |
11772 | # on later versions), says simon@lia.di.epfl.ch: it contains |
11773 | # gethostby* variants that don't use the nameserver (or something). | |
11774 | # -lsocket must be given before -lnsl if both are needed. | |
11775 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
11776 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
cb61c62d | 11777 | echo "configure:11778: checking for connect" >&5 |
698dcdb6 VZ |
11778 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
11779 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11780 | else | |
11781 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 11782 | #line 11783 "configure" |
ab9b9eab VZ |
11783 | #include "confdefs.h" |
11784 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 11785 | which can conflict with char connect(); below. */ |
ab9b9eab VZ |
11786 | #include <assert.h> |
11787 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11788 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11789 | builtin and then its argument prototype would still apply. */ |
11790 | char connect(); | |
11791 | ||
11792 | int main() { | |
ab9b9eab VZ |
11793 | |
11794 | /* The GNU C library defines this for functions which it implements | |
11795 | to always fail with ENOSYS. Some functions are actually named | |
11796 | something starting with __ and the normal name is an alias. */ | |
11797 | #if defined (__stub_connect) || defined (__stub___connect) | |
11798 | choke me | |
11799 | #else | |
698dcdb6 | 11800 | connect(); |
ab9b9eab VZ |
11801 | #endif |
11802 | ||
698dcdb6 VZ |
11803 | ; return 0; } |
11804 | EOF | |
cb61c62d | 11805 | if { (eval echo configure:11806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11806 | rm -rf conftest* |
11807 | eval "ac_cv_func_connect=yes" | |
11808 | else | |
11809 | echo "configure: failed program was:" >&5 | |
11810 | cat conftest.$ac_ext >&5 | |
11811 | rm -rf conftest* | |
11812 | eval "ac_cv_func_connect=no" | |
11813 | fi | |
11814 | rm -f conftest* | |
11815 | fi | |
11816 | ||
11817 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
11818 | echo "$ac_t""yes" 1>&6 | |
11819 | : | |
11820 | else | |
11821 | echo "$ac_t""no" 1>&6 | |
11822 | fi | |
ab9b9eab VZ |
11823 | |
11824 | if test $ac_cv_func_connect = no; then | |
698dcdb6 | 11825 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
cb61c62d | 11826 | echo "configure:11827: checking for connect in -lsocket" >&5 |
698dcdb6 VZ |
11827 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
11828 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11829 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11830 | else |
698dcdb6 | 11831 | ac_save_LIBS="$LIBS" |
ab9b9eab | 11832 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
698dcdb6 | 11833 | cat > conftest.$ac_ext <<EOF |
cb61c62d | 11834 | #line 11835 "configure" |
ab9b9eab VZ |
11835 | #include "confdefs.h" |
11836 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11837 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11838 | builtin and then its argument prototype would still apply. */ |
11839 | char connect(); | |
11840 | ||
11841 | int main() { | |
11842 | connect() | |
11843 | ; return 0; } | |
11844 | EOF | |
cb61c62d | 11845 | if { (eval echo configure:11846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11846 | rm -rf conftest* |
11847 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11848 | else | |
11849 | echo "configure: failed program was:" >&5 | |
11850 | cat conftest.$ac_ext >&5 | |
11851 | rm -rf conftest* | |
11852 | eval "ac_cv_lib_$ac_lib_var=no" | |
11853 | fi | |
11854 | rm -f conftest* | |
11855 | LIBS="$ac_save_LIBS" | |
11856 | ||
11857 | fi | |
11858 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11859 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 11860 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
698dcdb6 VZ |
11861 | else |
11862 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11863 | fi |
11864 | ||
11865 | fi | |
11866 | ||
698dcdb6 VZ |
11867 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
11868 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
cb61c62d | 11869 | echo "configure:11870: checking for remove" >&5 |
698dcdb6 VZ |
11870 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
11871 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11872 | else |
698dcdb6 | 11873 | cat > conftest.$ac_ext <<EOF |
cb61c62d | 11874 | #line 11875 "configure" |
ab9b9eab VZ |
11875 | #include "confdefs.h" |
11876 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 11877 | which can conflict with char remove(); below. */ |
ab9b9eab VZ |
11878 | #include <assert.h> |
11879 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11880 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11881 | builtin and then its argument prototype would still apply. */ |
11882 | char remove(); | |
11883 | ||
11884 | int main() { | |
ab9b9eab VZ |
11885 | |
11886 | /* The GNU C library defines this for functions which it implements | |
11887 | to always fail with ENOSYS. Some functions are actually named | |
11888 | something starting with __ and the normal name is an alias. */ | |
11889 | #if defined (__stub_remove) || defined (__stub___remove) | |
11890 | choke me | |
11891 | #else | |
698dcdb6 | 11892 | remove(); |
ab9b9eab VZ |
11893 | #endif |
11894 | ||
698dcdb6 VZ |
11895 | ; return 0; } |
11896 | EOF | |
cb61c62d | 11897 | if { (eval echo configure:11898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11898 | rm -rf conftest* |
11899 | eval "ac_cv_func_remove=yes" | |
11900 | else | |
11901 | echo "configure: failed program was:" >&5 | |
11902 | cat conftest.$ac_ext >&5 | |
11903 | rm -rf conftest* | |
11904 | eval "ac_cv_func_remove=no" | |
11905 | fi | |
11906 | rm -f conftest* | |
11907 | fi | |
11908 | ||
11909 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
11910 | echo "$ac_t""yes" 1>&6 | |
11911 | : | |
11912 | else | |
11913 | echo "$ac_t""no" 1>&6 | |
11914 | fi | |
ab9b9eab VZ |
11915 | |
11916 | if test $ac_cv_func_remove = no; then | |
698dcdb6 | 11917 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
cb61c62d | 11918 | echo "configure:11919: checking for remove in -lposix" >&5 |
698dcdb6 VZ |
11919 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
11920 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11921 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11922 | else |
698dcdb6 | 11923 | ac_save_LIBS="$LIBS" |
ab9b9eab | 11924 | LIBS="-lposix $LIBS" |
698dcdb6 | 11925 | cat > conftest.$ac_ext <<EOF |
cb61c62d | 11926 | #line 11927 "configure" |
ab9b9eab VZ |
11927 | #include "confdefs.h" |
11928 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11929 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11930 | builtin and then its argument prototype would still apply. */ |
11931 | char remove(); | |
11932 | ||
11933 | int main() { | |
11934 | remove() | |
11935 | ; return 0; } | |
11936 | EOF | |
cb61c62d | 11937 | if { (eval echo configure:11938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11938 | rm -rf conftest* |
11939 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11940 | else | |
11941 | echo "configure: failed program was:" >&5 | |
11942 | cat conftest.$ac_ext >&5 | |
11943 | rm -rf conftest* | |
11944 | eval "ac_cv_lib_$ac_lib_var=no" | |
11945 | fi | |
11946 | rm -f conftest* | |
11947 | LIBS="$ac_save_LIBS" | |
11948 | ||
11949 | fi | |
11950 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11951 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 11952 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
698dcdb6 VZ |
11953 | else |
11954 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11955 | fi |
11956 | ||
11957 | fi | |
11958 | ||
11959 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
698dcdb6 | 11960 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
cb61c62d | 11961 | echo "configure:11962: checking for shmat" >&5 |
698dcdb6 VZ |
11962 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
11963 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11964 | else |
698dcdb6 | 11965 | cat > conftest.$ac_ext <<EOF |
cb61c62d | 11966 | #line 11967 "configure" |
ab9b9eab VZ |
11967 | #include "confdefs.h" |
11968 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 11969 | which can conflict with char shmat(); below. */ |
ab9b9eab VZ |
11970 | #include <assert.h> |
11971 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11972 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11973 | builtin and then its argument prototype would still apply. */ |
11974 | char shmat(); | |
11975 | ||
11976 | int main() { | |
ab9b9eab VZ |
11977 | |
11978 | /* The GNU C library defines this for functions which it implements | |
11979 | to always fail with ENOSYS. Some functions are actually named | |
11980 | something starting with __ and the normal name is an alias. */ | |
11981 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
11982 | choke me | |
11983 | #else | |
698dcdb6 | 11984 | shmat(); |
ab9b9eab VZ |
11985 | #endif |
11986 | ||
698dcdb6 VZ |
11987 | ; return 0; } |
11988 | EOF | |
cb61c62d | 11989 | if { (eval echo configure:11990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11990 | rm -rf conftest* |
11991 | eval "ac_cv_func_shmat=yes" | |
11992 | else | |
11993 | echo "configure: failed program was:" >&5 | |
11994 | cat conftest.$ac_ext >&5 | |
11995 | rm -rf conftest* | |
11996 | eval "ac_cv_func_shmat=no" | |
11997 | fi | |
11998 | rm -f conftest* | |
11999 | fi | |
12000 | ||
12001 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
12002 | echo "$ac_t""yes" 1>&6 | |
12003 | : | |
12004 | else | |
12005 | echo "$ac_t""no" 1>&6 | |
12006 | fi | |
ab9b9eab VZ |
12007 | |
12008 | if test $ac_cv_func_shmat = no; then | |
698dcdb6 | 12009 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
cb61c62d | 12010 | echo "configure:12011: checking for shmat in -lipc" >&5 |
698dcdb6 VZ |
12011 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
12012 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12013 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 12014 | else |
698dcdb6 | 12015 | ac_save_LIBS="$LIBS" |
ab9b9eab | 12016 | LIBS="-lipc $LIBS" |
698dcdb6 | 12017 | cat > conftest.$ac_ext <<EOF |
cb61c62d | 12018 | #line 12019 "configure" |
ab9b9eab VZ |
12019 | #include "confdefs.h" |
12020 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12021 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12022 | builtin and then its argument prototype would still apply. */ |
12023 | char shmat(); | |
12024 | ||
12025 | int main() { | |
12026 | shmat() | |
12027 | ; return 0; } | |
12028 | EOF | |
cb61c62d | 12029 | if { (eval echo configure:12030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12030 | rm -rf conftest* |
12031 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12032 | else | |
12033 | echo "configure: failed program was:" >&5 | |
12034 | cat conftest.$ac_ext >&5 | |
12035 | rm -rf conftest* | |
12036 | eval "ac_cv_lib_$ac_lib_var=no" | |
12037 | fi | |
12038 | rm -f conftest* | |
12039 | LIBS="$ac_save_LIBS" | |
12040 | ||
12041 | fi | |
12042 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12043 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 12044 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
698dcdb6 VZ |
12045 | else |
12046 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
12047 | fi |
12048 | ||
12049 | fi | |
12050 | fi | |
12051 | ||
12052 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
698dcdb6 | 12053 | ac_save_LDFLAGS="$LDFLAGS" |
ab9b9eab VZ |
12054 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
12055 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
12056 | # check for ICE first), but we must link in the order -lSM -lICE or | |
12057 | # we get undefined symbols. So assume we have SM if we have ICE. | |
12058 | # These have to be linked with before -lX11, unlike the other | |
12059 | # libraries we check for below, so use a different variable. | |
698dcdb6 VZ |
12060 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
12061 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
cb61c62d | 12062 | echo "configure:12063: checking for IceConnectionNumber in -lICE" >&5 |
698dcdb6 VZ |
12063 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
12064 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12065 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12066 | else | |
12067 | ac_save_LIBS="$LIBS" | |
ab9b9eab | 12068 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
698dcdb6 | 12069 | cat > conftest.$ac_ext <<EOF |
cb61c62d | 12070 | #line 12071 "configure" |
ab9b9eab VZ |
12071 | #include "confdefs.h" |
12072 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12073 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12074 | builtin and then its argument prototype would still apply. */ |
12075 | char IceConnectionNumber(); | |
12076 | ||
12077 | int main() { | |
12078 | IceConnectionNumber() | |
12079 | ; return 0; } | |
12080 | EOF | |
cb61c62d | 12081 | if { (eval echo configure:12082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12082 | rm -rf conftest* |
12083 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12084 | else | |
12085 | echo "configure: failed program was:" >&5 | |
12086 | cat conftest.$ac_ext >&5 | |
12087 | rm -rf conftest* | |
12088 | eval "ac_cv_lib_$ac_lib_var=no" | |
12089 | fi | |
12090 | rm -f conftest* | |
12091 | LIBS="$ac_save_LIBS" | |
12092 | ||
12093 | fi | |
12094 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12095 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 12096 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
698dcdb6 VZ |
12097 | else |
12098 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
12099 | fi |
12100 | ||
698dcdb6 | 12101 | LDFLAGS="$ac_save_LDFLAGS" |
ab9b9eab VZ |
12102 | |
12103 | fi | |
12104 | ||
12105 | ||
1e6feb95 VZ |
12106 | if test "$no_x" = "yes"; then |
12107 | { echo "configure: error: X11 not found" 1>&2; exit 1; } | |
12108 | fi | |
ab9b9eab | 12109 | |
1e6feb95 VZ |
12110 | GUI_TK_LIBRARY="$X_LIBS" |
12111 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
1e6feb95 | 12112 | AFMINSTALL=afminstall |
1e6feb95 | 12113 | COMPILED_X_PROGRAM=0 |
cd6d6d5b | 12114 | |
3d63bc3a | 12115 | xpm_link= |
1e6feb95 | 12116 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 |
cb61c62d | 12117 | echo "configure:12118: checking for Xpm library" >&5 |
1e6feb95 | 12118 | |
ab9b9eab VZ |
12119 | ac_find_libraries= |
12120 | for ac_dir in $SEARCH_LIB; | |
12121 | do | |
f11bdd03 | 12122 | for ac_extension in a so sl dylib; do |
ab9b9eab VZ |
12123 | if test -f "$ac_dir/libXpm.$ac_extension"; then |
12124 | ac_find_libraries=$ac_dir | |
12125 | break 2 | |
12126 | fi | |
12127 | done | |
12128 | done | |
12129 | ||
1e6feb95 VZ |
12130 | if test "$ac_find_libraries" != "" ; then |
12131 | ||
ab9b9eab VZ |
12132 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
12133 | result=$? | |
12134 | if test $result = 0; then | |
12135 | ac_path_to_link="" | |
12136 | else | |
62d0491b | 12137 | ac_path_to_link=" -L$ac_find_libraries" |
ab9b9eab VZ |
12138 | fi |
12139 | ||
62d0491b | 12140 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
3d63bc3a | 12141 | xpm_link=" -lXpm" |
1e6feb95 | 12142 | cat >> confdefs.h <<\EOF |
ab9b9eab VZ |
12143 | #define wxHAVE_LIB_XPM 1 |
12144 | EOF | |
12145 | ||
1e6feb95 VZ |
12146 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
12147 | else | |
12148 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 12149 | #line 12150 "configure" |
cd6d6d5b VZ |
12150 | #include "confdefs.h" |
12151 | ||
1e6feb95 VZ |
12152 | #include <X11/xpm.h> |
12153 | ||
698dcdb6 | 12154 | int main() { |
cd6d6d5b | 12155 | |
1e6feb95 | 12156 | int version; |
1e6feb95 VZ |
12157 | version = XpmLibraryVersion(); |
12158 | ||
698dcdb6 VZ |
12159 | ; return 0; } |
12160 | EOF | |
cb61c62d | 12161 | if { (eval echo configure:12162: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12162 | rm -rf conftest* |
12163 | ||
3d63bc3a | 12164 | xpm_link=" -lXpm" |
3a922bb4 | 12165 | cat >> confdefs.h <<\EOF |
3ace2e6d SN |
12166 | #define wxHAVE_LIB_XPM 1 |
12167 | EOF | |
12168 | ||
1e6feb95 VZ |
12169 | echo "$ac_t""found in default search path" 1>&6 |
12170 | COMPILED_X_PROGRAM=0 | |
12171 | ||
cd6d6d5b | 12172 | else |
698dcdb6 VZ |
12173 | echo "configure: failed program was:" >&5 |
12174 | cat conftest.$ac_ext >&5 | |
12175 | rm -rf conftest* | |
12176 | ||
1e6feb95 VZ |
12177 | echo "$ac_t""no" 1>&6 |
12178 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
12179 | ||
698dcdb6 | 12180 | |
cd6d6d5b | 12181 | fi |
698dcdb6 | 12182 | rm -f conftest* |
1e6feb95 VZ |
12183 | fi |
12184 | ||
f79bd02d | 12185 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext -lXt -lX11" |
4d7289e6 | 12186 | TOOLKIT_VPATH="\${top_srcdir}/src/x11 \${top_srcdir}/src/univ \${top_srcdir}/src/univ/themes" |
f79bd02d JS |
12187 | TOOLKIT=X11 |
12188 | GUIDIST=X11_DIST | |
68e42278 | 12189 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" |
1e6feb95 | 12190 | fi |
10f2d63a | 12191 | |
f79bd02d JS |
12192 | if test "$wxUSE_WINE" = 1; then |
12193 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` | |
12194 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
cb61c62d | 12195 | echo "configure:12196: checking for windows.h" >&5 |
f79bd02d JS |
12196 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12197 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12198 | else | |
12199 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 12200 | #line 12201 "configure" |
f79bd02d JS |
12201 | #include "confdefs.h" |
12202 | #include <windows.h> | |
12203 | EOF | |
12204 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
cb61c62d | 12205 | { (eval echo configure:12206: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
f79bd02d JS |
12206 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12207 | if test -z "$ac_err"; then | |
12208 | rm -rf conftest* | |
12209 | eval "ac_cv_header_$ac_safe=yes" | |
12210 | else | |
12211 | echo "$ac_err" >&5 | |
12212 | echo "configure: failed program was:" >&5 | |
12213 | cat conftest.$ac_ext >&5 | |
12214 | rm -rf conftest* | |
12215 | eval "ac_cv_header_$ac_safe=no" | |
12216 | fi | |
12217 | rm -f conftest* | |
12218 | fi | |
12219 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12220 | echo "$ac_t""yes" 1>&6 | |
12221 | : | |
12222 | else | |
12223 | echo "$ac_t""no" 1>&6 | |
12224 | ||
12225 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
12226 | ||
12227 | fi | |
12228 | ||
12229 | ||
12230 | xpm_link= | |
12231 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
cb61c62d | 12232 | echo "configure:12233: checking for Xpm library" >&5 |
f79bd02d JS |
12233 | |
12234 | ac_find_libraries= | |
12235 | for ac_dir in $SEARCH_LIB; | |
12236 | do | |
12237 | for ac_extension in a so sl dylib; do | |
12238 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
12239 | ac_find_libraries=$ac_dir | |
12240 | break 2 | |
12241 | fi | |
12242 | done | |
12243 | done | |
12244 | ||
12245 | if test "$ac_find_libraries" != "" ; then | |
12246 | GUI_TK_LIBRARY="-L$ac_find_libraries" | |
12247 | xpm_link=" -lXpm" | |
12248 | cat >> confdefs.h <<\EOF | |
12249 | #define wxHAVE_LIB_XPM 1 | |
12250 | EOF | |
12251 | ||
12252 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
12253 | else | |
12254 | echo "$ac_t""no" 1>&6 | |
12255 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
12256 | fi | |
12257 | ||
12258 | mesa_link= | |
12259 | echo $ac_n "checking for Mesa library""... $ac_c" 1>&6 | |
cb61c62d | 12260 | echo "configure:12261: checking for Mesa library" >&5 |
f79bd02d JS |
12261 | |
12262 | ac_find_libraries= | |
12263 | for ac_dir in $SEARCH_LIB; | |
12264 | do | |
12265 | for ac_extension in a so sl dylib; do | |
12266 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
12267 | ac_find_libraries=$ac_dir | |
12268 | break 2 | |
12269 | fi | |
12270 | done | |
12271 | done | |
12272 | ||
12273 | if test "$ac_find_libraries" != "" ; then | |
12274 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries" | |
12275 | mesa_link=" -lMesaGL" | |
12276 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
12277 | else | |
12278 | { echo "configure: error: no" 1>&2; exit 1; } | |
12279 | fi | |
12280 | ||
12281 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses" | |
12282 | TOOLKIT=MSW | |
12283 | GUIDIST=MSW_DIST | |
12284 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__" | |
12285 | fi | |
12286 | ||
12287 | if test "$wxUSE_MOTIF" = 1; then | |
12288 | if test "$no_x" = yes; then | |
12289 | # Not all programs may use this symbol, but it does not hurt to define it. | |
12290 | cat >> confdefs.h <<\EOF | |
12291 | #define X_DISPLAY_MISSING 1 | |
12292 | EOF | |
12293 | ||
12294 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
12295 | else | |
12296 | if test -n "$x_includes"; then | |
12297 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
12298 | fi | |
12299 | ||
12300 | # It would also be nice to do this for all -L options, not just this one. | |
12301 | if test -n "$x_libraries"; then | |
12302 | X_LIBS="$X_LIBS -L$x_libraries" | |
12303 | # For Solaris; some versions of Sun CC require a space after -R and | |
12304 | # others require no space. Words are not sufficient . . . . | |
12305 | case "`(uname -sr) 2>/dev/null`" in | |
12306 | "SunOS 5"*) | |
12307 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 | |
cb61c62d | 12308 | echo "configure:12309: checking whether -R must be followed by a space" >&5 |
f79bd02d JS |
12309 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
12310 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 12311 | #line 12312 "configure" |
f79bd02d JS |
12312 | #include "confdefs.h" |
12313 | ||
12314 | int main() { | |
12315 | ||
12316 | ; return 0; } | |
12317 | EOF | |
cb61c62d | 12318 | if { (eval echo configure:12319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12319 | rm -rf conftest* |
12320 | ac_R_nospace=yes | |
12321 | else | |
12322 | echo "configure: failed program was:" >&5 | |
12323 | cat conftest.$ac_ext >&5 | |
12324 | rm -rf conftest* | |
12325 | ac_R_nospace=no | |
12326 | fi | |
12327 | rm -f conftest* | |
12328 | if test $ac_R_nospace = yes; then | |
12329 | echo "$ac_t""no" 1>&6 | |
12330 | X_LIBS="$X_LIBS -R$x_libraries" | |
12331 | else | |
12332 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
12333 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 12334 | #line 12335 "configure" |
f79bd02d JS |
12335 | #include "confdefs.h" |
12336 | ||
12337 | int main() { | |
12338 | ||
12339 | ; return 0; } | |
12340 | EOF | |
cb61c62d | 12341 | if { (eval echo configure:12342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12342 | rm -rf conftest* |
12343 | ac_R_space=yes | |
12344 | else | |
12345 | echo "configure: failed program was:" >&5 | |
12346 | cat conftest.$ac_ext >&5 | |
12347 | rm -rf conftest* | |
12348 | ac_R_space=no | |
12349 | fi | |
12350 | rm -f conftest* | |
12351 | if test $ac_R_space = yes; then | |
12352 | echo "$ac_t""yes" 1>&6 | |
12353 | X_LIBS="$X_LIBS -R $x_libraries" | |
12354 | else | |
12355 | echo "$ac_t""neither works" 1>&6 | |
12356 | fi | |
12357 | fi | |
12358 | LIBS="$ac_xsave_LIBS" | |
12359 | esac | |
12360 | fi | |
12361 | ||
12362 | # Check for system-dependent libraries X programs must link with. | |
12363 | # Do this before checking for the system-independent R6 libraries | |
12364 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
12365 | ||
12366 | if test "$ISC" = yes; then | |
12367 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
12368 | else | |
12369 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X | |
12370 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
12371 | # the Alpha needs dnet_stub (dnet does not exist). | |
12372 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 | |
cb61c62d | 12373 | echo "configure:12374: checking for dnet_ntoa in -ldnet" >&5 |
f79bd02d JS |
12374 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
12375 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12376 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12377 | else | |
12378 | ac_save_LIBS="$LIBS" | |
12379 | LIBS="-ldnet $LIBS" | |
12380 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 12381 | #line 12382 "configure" |
f79bd02d JS |
12382 | #include "confdefs.h" |
12383 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12384 | /* We use char because int might match the return type of a gcc2 | |
12385 | builtin and then its argument prototype would still apply. */ | |
12386 | char dnet_ntoa(); | |
12387 | ||
12388 | int main() { | |
12389 | dnet_ntoa() | |
12390 | ; return 0; } | |
12391 | EOF | |
cb61c62d | 12392 | if { (eval echo configure:12393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12393 | rm -rf conftest* |
12394 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12395 | else | |
12396 | echo "configure: failed program was:" >&5 | |
12397 | cat conftest.$ac_ext >&5 | |
12398 | rm -rf conftest* | |
12399 | eval "ac_cv_lib_$ac_lib_var=no" | |
12400 | fi | |
12401 | rm -f conftest* | |
12402 | LIBS="$ac_save_LIBS" | |
12403 | ||
12404 | fi | |
12405 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12406 | echo "$ac_t""yes" 1>&6 | |
12407 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
12408 | else | |
12409 | echo "$ac_t""no" 1>&6 | |
12410 | fi | |
12411 | ||
12412 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
12413 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 | |
cb61c62d | 12414 | echo "configure:12415: checking for dnet_ntoa in -ldnet_stub" >&5 |
f79bd02d JS |
12415 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
12416 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12417 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12418 | else | |
12419 | ac_save_LIBS="$LIBS" | |
12420 | LIBS="-ldnet_stub $LIBS" | |
12421 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 12422 | #line 12423 "configure" |
f79bd02d JS |
12423 | #include "confdefs.h" |
12424 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12425 | /* We use char because int might match the return type of a gcc2 | |
12426 | builtin and then its argument prototype would still apply. */ | |
12427 | char dnet_ntoa(); | |
12428 | ||
12429 | int main() { | |
12430 | dnet_ntoa() | |
12431 | ; return 0; } | |
12432 | EOF | |
cb61c62d | 12433 | if { (eval echo configure:12434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12434 | rm -rf conftest* |
12435 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12436 | else | |
12437 | echo "configure: failed program was:" >&5 | |
12438 | cat conftest.$ac_ext >&5 | |
12439 | rm -rf conftest* | |
12440 | eval "ac_cv_lib_$ac_lib_var=no" | |
12441 | fi | |
12442 | rm -f conftest* | |
12443 | LIBS="$ac_save_LIBS" | |
12444 | ||
12445 | fi | |
12446 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12447 | echo "$ac_t""yes" 1>&6 | |
12448 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
12449 | else | |
12450 | echo "$ac_t""no" 1>&6 | |
12451 | fi | |
12452 | ||
12453 | fi | |
12454 | ||
12455 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
12456 | # to get the SysV transport functions. | |
12457 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) | |
12458 | # needs -lnsl. | |
12459 | # The nsl library prevents programs from opening the X display | |
12460 | # on Irix 5.2, according to dickey@clark.net. | |
12461 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
cb61c62d | 12462 | echo "configure:12463: checking for gethostbyname" >&5 |
f79bd02d JS |
12463 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
12464 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12465 | else | |
12466 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 12467 | #line 12468 "configure" |
f79bd02d JS |
12468 | #include "confdefs.h" |
12469 | /* System header to define __stub macros and hopefully few prototypes, | |
12470 | which can conflict with char gethostbyname(); below. */ | |
12471 | #include <assert.h> | |
12472 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12473 | /* We use char because int might match the return type of a gcc2 | |
12474 | builtin and then its argument prototype would still apply. */ | |
12475 | char gethostbyname(); | |
12476 | ||
12477 | int main() { | |
12478 | ||
12479 | /* The GNU C library defines this for functions which it implements | |
12480 | to always fail with ENOSYS. Some functions are actually named | |
12481 | something starting with __ and the normal name is an alias. */ | |
12482 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
12483 | choke me | |
12484 | #else | |
12485 | gethostbyname(); | |
12486 | #endif | |
12487 | ||
12488 | ; return 0; } | |
12489 | EOF | |
cb61c62d | 12490 | if { (eval echo configure:12491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12491 | rm -rf conftest* |
12492 | eval "ac_cv_func_gethostbyname=yes" | |
12493 | else | |
12494 | echo "configure: failed program was:" >&5 | |
12495 | cat conftest.$ac_ext >&5 | |
12496 | rm -rf conftest* | |
12497 | eval "ac_cv_func_gethostbyname=no" | |
12498 | fi | |
12499 | rm -f conftest* | |
12500 | fi | |
12501 | ||
12502 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
12503 | echo "$ac_t""yes" 1>&6 | |
12504 | : | |
12505 | else | |
12506 | echo "$ac_t""no" 1>&6 | |
12507 | fi | |
12508 | ||
12509 | if test $ac_cv_func_gethostbyname = no; then | |
12510 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 | |
cb61c62d | 12511 | echo "configure:12512: checking for gethostbyname in -lnsl" >&5 |
f79bd02d JS |
12512 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
12513 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12514 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12515 | else | |
12516 | ac_save_LIBS="$LIBS" | |
12517 | LIBS="-lnsl $LIBS" | |
12518 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 12519 | #line 12520 "configure" |
f79bd02d JS |
12520 | #include "confdefs.h" |
12521 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12522 | /* We use char because int might match the return type of a gcc2 | |
12523 | builtin and then its argument prototype would still apply. */ | |
12524 | char gethostbyname(); | |
12525 | ||
12526 | int main() { | |
12527 | gethostbyname() | |
12528 | ; return 0; } | |
12529 | EOF | |
cb61c62d | 12530 | if { (eval echo configure:12531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12531 | rm -rf conftest* |
12532 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12533 | else | |
12534 | echo "configure: failed program was:" >&5 | |
12535 | cat conftest.$ac_ext >&5 | |
12536 | rm -rf conftest* | |
12537 | eval "ac_cv_lib_$ac_lib_var=no" | |
12538 | fi | |
12539 | rm -f conftest* | |
12540 | LIBS="$ac_save_LIBS" | |
12541 | ||
12542 | fi | |
12543 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12544 | echo "$ac_t""yes" 1>&6 | |
12545 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
12546 | else | |
12547 | echo "$ac_t""no" 1>&6 | |
12548 | fi | |
12549 | ||
12550 | fi | |
12551 | ||
12552 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
12553 | # socket/setsockopt and other routines are undefined under SCO ODT | |
12554 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
12555 | # on later versions), says simon@lia.di.epfl.ch: it contains | |
12556 | # gethostby* variants that don't use the nameserver (or something). | |
12557 | # -lsocket must be given before -lnsl if both are needed. | |
12558 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
12559 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
cb61c62d | 12560 | echo "configure:12561: checking for connect" >&5 |
f79bd02d JS |
12561 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
12562 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12563 | else | |
12564 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 12565 | #line 12566 "configure" |
f79bd02d JS |
12566 | #include "confdefs.h" |
12567 | /* System header to define __stub macros and hopefully few prototypes, | |
12568 | which can conflict with char connect(); below. */ | |
12569 | #include <assert.h> | |
12570 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12571 | /* We use char because int might match the return type of a gcc2 | |
12572 | builtin and then its argument prototype would still apply. */ | |
12573 | char connect(); | |
12574 | ||
12575 | int main() { | |
12576 | ||
12577 | /* The GNU C library defines this for functions which it implements | |
12578 | to always fail with ENOSYS. Some functions are actually named | |
12579 | something starting with __ and the normal name is an alias. */ | |
12580 | #if defined (__stub_connect) || defined (__stub___connect) | |
12581 | choke me | |
12582 | #else | |
12583 | connect(); | |
12584 | #endif | |
12585 | ||
12586 | ; return 0; } | |
12587 | EOF | |
cb61c62d | 12588 | if { (eval echo configure:12589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12589 | rm -rf conftest* |
12590 | eval "ac_cv_func_connect=yes" | |
12591 | else | |
12592 | echo "configure: failed program was:" >&5 | |
12593 | cat conftest.$ac_ext >&5 | |
12594 | rm -rf conftest* | |
12595 | eval "ac_cv_func_connect=no" | |
12596 | fi | |
12597 | rm -f conftest* | |
12598 | fi | |
12599 | ||
12600 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
12601 | echo "$ac_t""yes" 1>&6 | |
12602 | : | |
12603 | else | |
12604 | echo "$ac_t""no" 1>&6 | |
12605 | fi | |
12606 | ||
12607 | if test $ac_cv_func_connect = no; then | |
12608 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 | |
cb61c62d | 12609 | echo "configure:12610: checking for connect in -lsocket" >&5 |
f79bd02d JS |
12610 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
12611 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12612 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12613 | else | |
12614 | ac_save_LIBS="$LIBS" | |
12615 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
12616 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 12617 | #line 12618 "configure" |
f79bd02d JS |
12618 | #include "confdefs.h" |
12619 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12620 | /* We use char because int might match the return type of a gcc2 | |
12621 | builtin and then its argument prototype would still apply. */ | |
12622 | char connect(); | |
12623 | ||
12624 | int main() { | |
12625 | connect() | |
12626 | ; return 0; } | |
12627 | EOF | |
cb61c62d | 12628 | if { (eval echo configure:12629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12629 | rm -rf conftest* |
12630 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12631 | else | |
12632 | echo "configure: failed program was:" >&5 | |
12633 | cat conftest.$ac_ext >&5 | |
12634 | rm -rf conftest* | |
12635 | eval "ac_cv_lib_$ac_lib_var=no" | |
12636 | fi | |
12637 | rm -f conftest* | |
12638 | LIBS="$ac_save_LIBS" | |
12639 | ||
12640 | fi | |
12641 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12642 | echo "$ac_t""yes" 1>&6 | |
12643 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
12644 | else | |
12645 | echo "$ac_t""no" 1>&6 | |
12646 | fi | |
12647 | ||
12648 | fi | |
12649 | ||
12650 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. | |
12651 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
cb61c62d | 12652 | echo "configure:12653: checking for remove" >&5 |
f79bd02d JS |
12653 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
12654 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12655 | else | |
12656 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 12657 | #line 12658 "configure" |
f79bd02d JS |
12658 | #include "confdefs.h" |
12659 | /* System header to define __stub macros and hopefully few prototypes, | |
12660 | which can conflict with char remove(); below. */ | |
12661 | #include <assert.h> | |
12662 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12663 | /* We use char because int might match the return type of a gcc2 | |
12664 | builtin and then its argument prototype would still apply. */ | |
12665 | char remove(); | |
12666 | ||
12667 | int main() { | |
12668 | ||
12669 | /* The GNU C library defines this for functions which it implements | |
12670 | to always fail with ENOSYS. Some functions are actually named | |
12671 | something starting with __ and the normal name is an alias. */ | |
12672 | #if defined (__stub_remove) || defined (__stub___remove) | |
12673 | choke me | |
12674 | #else | |
12675 | remove(); | |
12676 | #endif | |
12677 | ||
12678 | ; return 0; } | |
12679 | EOF | |
cb61c62d | 12680 | if { (eval echo configure:12681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12681 | rm -rf conftest* |
12682 | eval "ac_cv_func_remove=yes" | |
12683 | else | |
12684 | echo "configure: failed program was:" >&5 | |
12685 | cat conftest.$ac_ext >&5 | |
12686 | rm -rf conftest* | |
12687 | eval "ac_cv_func_remove=no" | |
12688 | fi | |
12689 | rm -f conftest* | |
12690 | fi | |
12691 | ||
12692 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
12693 | echo "$ac_t""yes" 1>&6 | |
12694 | : | |
12695 | else | |
12696 | echo "$ac_t""no" 1>&6 | |
12697 | fi | |
12698 | ||
12699 | if test $ac_cv_func_remove = no; then | |
12700 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 | |
cb61c62d | 12701 | echo "configure:12702: checking for remove in -lposix" >&5 |
f79bd02d JS |
12702 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
12703 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12704 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12705 | else | |
12706 | ac_save_LIBS="$LIBS" | |
12707 | LIBS="-lposix $LIBS" | |
12708 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 12709 | #line 12710 "configure" |
f79bd02d JS |
12710 | #include "confdefs.h" |
12711 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12712 | /* We use char because int might match the return type of a gcc2 | |
12713 | builtin and then its argument prototype would still apply. */ | |
12714 | char remove(); | |
12715 | ||
12716 | int main() { | |
12717 | remove() | |
12718 | ; return 0; } | |
12719 | EOF | |
cb61c62d | 12720 | if { (eval echo configure:12721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12721 | rm -rf conftest* |
12722 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12723 | else | |
12724 | echo "configure: failed program was:" >&5 | |
12725 | cat conftest.$ac_ext >&5 | |
12726 | rm -rf conftest* | |
12727 | eval "ac_cv_lib_$ac_lib_var=no" | |
12728 | fi | |
12729 | rm -f conftest* | |
12730 | LIBS="$ac_save_LIBS" | |
12731 | ||
12732 | fi | |
12733 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12734 | echo "$ac_t""yes" 1>&6 | |
12735 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
12736 | else | |
12737 | echo "$ac_t""no" 1>&6 | |
12738 | fi | |
12739 | ||
12740 | fi | |
12741 | ||
12742 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
12743 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 | |
cb61c62d | 12744 | echo "configure:12745: checking for shmat" >&5 |
f79bd02d JS |
12745 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
12746 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12747 | else | |
12748 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 12749 | #line 12750 "configure" |
f79bd02d JS |
12750 | #include "confdefs.h" |
12751 | /* System header to define __stub macros and hopefully few prototypes, | |
12752 | which can conflict with char shmat(); below. */ | |
12753 | #include <assert.h> | |
12754 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12755 | /* We use char because int might match the return type of a gcc2 | |
12756 | builtin and then its argument prototype would still apply. */ | |
12757 | char shmat(); | |
12758 | ||
12759 | int main() { | |
12760 | ||
12761 | /* The GNU C library defines this for functions which it implements | |
12762 | to always fail with ENOSYS. Some functions are actually named | |
12763 | something starting with __ and the normal name is an alias. */ | |
12764 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
12765 | choke me | |
12766 | #else | |
12767 | shmat(); | |
12768 | #endif | |
12769 | ||
12770 | ; return 0; } | |
12771 | EOF | |
cb61c62d | 12772 | if { (eval echo configure:12773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12773 | rm -rf conftest* |
12774 | eval "ac_cv_func_shmat=yes" | |
12775 | else | |
12776 | echo "configure: failed program was:" >&5 | |
12777 | cat conftest.$ac_ext >&5 | |
12778 | rm -rf conftest* | |
12779 | eval "ac_cv_func_shmat=no" | |
12780 | fi | |
12781 | rm -f conftest* | |
12782 | fi | |
12783 | ||
12784 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
12785 | echo "$ac_t""yes" 1>&6 | |
12786 | : | |
12787 | else | |
12788 | echo "$ac_t""no" 1>&6 | |
12789 | fi | |
12790 | ||
12791 | if test $ac_cv_func_shmat = no; then | |
12792 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 | |
cb61c62d | 12793 | echo "configure:12794: checking for shmat in -lipc" >&5 |
f79bd02d JS |
12794 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
12795 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12796 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12797 | else | |
12798 | ac_save_LIBS="$LIBS" | |
12799 | LIBS="-lipc $LIBS" | |
12800 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 12801 | #line 12802 "configure" |
f79bd02d JS |
12802 | #include "confdefs.h" |
12803 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12804 | /* We use char because int might match the return type of a gcc2 | |
12805 | builtin and then its argument prototype would still apply. */ | |
12806 | char shmat(); | |
12807 | ||
12808 | int main() { | |
12809 | shmat() | |
12810 | ; return 0; } | |
12811 | EOF | |
cb61c62d | 12812 | if { (eval echo configure:12813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12813 | rm -rf conftest* |
12814 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12815 | else | |
12816 | echo "configure: failed program was:" >&5 | |
12817 | cat conftest.$ac_ext >&5 | |
12818 | rm -rf conftest* | |
12819 | eval "ac_cv_lib_$ac_lib_var=no" | |
12820 | fi | |
12821 | rm -f conftest* | |
12822 | LIBS="$ac_save_LIBS" | |
12823 | ||
12824 | fi | |
12825 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12826 | echo "$ac_t""yes" 1>&6 | |
12827 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
12828 | else | |
12829 | echo "$ac_t""no" 1>&6 | |
12830 | fi | |
12831 | ||
12832 | fi | |
12833 | fi | |
12834 | ||
12835 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
12836 | ac_save_LDFLAGS="$LDFLAGS" | |
12837 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
12838 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
12839 | # check for ICE first), but we must link in the order -lSM -lICE or | |
12840 | # we get undefined symbols. So assume we have SM if we have ICE. | |
12841 | # These have to be linked with before -lX11, unlike the other | |
12842 | # libraries we check for below, so use a different variable. | |
12843 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. | |
12844 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
cb61c62d | 12845 | echo "configure:12846: checking for IceConnectionNumber in -lICE" >&5 |
f79bd02d JS |
12846 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
12847 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12848 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12849 | else | |
12850 | ac_save_LIBS="$LIBS" | |
12851 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
12852 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 12853 | #line 12854 "configure" |
f79bd02d JS |
12854 | #include "confdefs.h" |
12855 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12856 | /* We use char because int might match the return type of a gcc2 | |
12857 | builtin and then its argument prototype would still apply. */ | |
12858 | char IceConnectionNumber(); | |
12859 | ||
12860 | int main() { | |
12861 | IceConnectionNumber() | |
12862 | ; return 0; } | |
12863 | EOF | |
cb61c62d | 12864 | if { (eval echo configure:12865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12865 | rm -rf conftest* |
12866 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12867 | else | |
12868 | echo "configure: failed program was:" >&5 | |
12869 | cat conftest.$ac_ext >&5 | |
12870 | rm -rf conftest* | |
12871 | eval "ac_cv_lib_$ac_lib_var=no" | |
12872 | fi | |
12873 | rm -f conftest* | |
12874 | LIBS="$ac_save_LIBS" | |
12875 | ||
12876 | fi | |
12877 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12878 | echo "$ac_t""yes" 1>&6 | |
12879 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
12880 | else | |
12881 | echo "$ac_t""no" 1>&6 | |
12882 | fi | |
12883 | ||
12884 | LDFLAGS="$ac_save_LDFLAGS" | |
12885 | ||
12886 | fi | |
12887 | ||
12888 | ||
12889 | if test "$no_x" = "yes"; then | |
12890 | { echo "configure: error: X11 not found" 1>&2; exit 1; } | |
12891 | fi | |
12892 | ||
12893 | GUI_TK_LIBRARY="$X_LIBS" | |
12894 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
12895 | AFMINSTALL=afminstall | |
12896 | COMPILED_X_PROGRAM=0 | |
12897 | ||
12898 | echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6 | |
cb61c62d | 12899 | echo "configure:12900: checking for Motif/Lesstif headers" >&5 |
f79bd02d JS |
12900 | |
12901 | ac_find_includes= | |
12902 | for ac_dir in $SEARCH_INCLUDE; | |
12903 | do | |
12904 | if test -f "$ac_dir/Xm/Xm.h"; then | |
12905 | ac_find_includes=$ac_dir | |
12906 | break | |
12907 | fi | |
12908 | done | |
12909 | ||
12910 | if test "$ac_find_includes" != "" ; then | |
12911 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
12912 | else | |
12913 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 12914 | #line 12915 "configure" |
f79bd02d JS |
12915 | #include "confdefs.h" |
12916 | ||
12917 | #include <Xm/Xm.h> | |
12918 | ||
12919 | int main() { | |
12920 | ||
12921 | int version; | |
12922 | version = xmUseVersion; | |
12923 | ||
12924 | ; return 0; } | |
12925 | EOF | |
cb61c62d | 12926 | if { (eval echo configure:12927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
f79bd02d JS |
12927 | rm -rf conftest* |
12928 | ||
12929 | echo "$ac_t""found in default search path" 1>&6 | |
12930 | COMPILED_X_PROGRAM=1 | |
12931 | ||
12932 | else | |
12933 | echo "configure: failed program was:" >&5 | |
12934 | cat conftest.$ac_ext >&5 | |
12935 | rm -rf conftest* | |
12936 | ||
12937 | echo "$ac_t""no" 1>&6 | |
12938 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
12939 | ||
12940 | ||
12941 | fi | |
12942 | rm -f conftest* | |
12943 | fi | |
12944 | ||
12945 | if test "$COMPILED_X_PROGRAM" = 0; then | |
12946 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 | |
cb61c62d | 12947 | echo "configure:12948: checking for Motif/Lesstif library" >&5 |
f79bd02d JS |
12948 | |
12949 | ac_find_libraries= | |
12950 | for ac_dir in $SEARCH_LIB; | |
12951 | do | |
12952 | for ac_extension in a so sl dylib; do | |
12953 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
12954 | ac_find_libraries=$ac_dir | |
12955 | break 2 | |
12956 | fi | |
12957 | done | |
12958 | done | |
12959 | ||
12960 | if test "$ac_find_libraries" != "" ; then | |
12961 | ||
12962 | ac_path_to_include=$ac_find_includes | |
12963 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
12964 | result=$? | |
12965 | if test $result = 0; then | |
12966 | ac_path_to_include="" | |
12967 | else | |
12968 | ac_path_to_include=" -I$ac_find_includes" | |
12969 | fi | |
12970 | ||
12971 | ||
12972 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
12973 | result=$? | |
12974 | if test $result = 0; then | |
12975 | ac_path_to_link="" | |
12976 | else | |
12977 | ac_path_to_link=" -L$ac_find_libraries" | |
12978 | fi | |
12979 | ||
12980 | ||
12981 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
12982 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" | |
12983 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
12984 | else | |
12985 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 12986 | #line 12987 "configure" |
f79bd02d JS |
12987 | #include "confdefs.h" |
12988 | ||
12989 | #include <Xm/Xm.h> | |
12990 | ||
12991 | int main() { | |
12992 | ||
12993 | int version; | |
12994 | version = xmUseVersion; | |
12995 | ||
12996 | ; return 0; } | |
12997 | EOF | |
cb61c62d | 12998 | if { (eval echo configure:12999: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
f79bd02d JS |
12999 | rm -rf conftest* |
13000 | ||
13001 | echo "$ac_t""found in default search path" 1>&6 | |
13002 | COMPILED_X_PROGRAM=1 | |
13003 | ||
13004 | else | |
13005 | echo "configure: failed program was:" >&5 | |
13006 | cat conftest.$ac_ext >&5 | |
13007 | rm -rf conftest* | |
13008 | ||
13009 | echo "$ac_t""no" 1>&6 | |
13010 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
13011 | ||
13012 | ||
13013 | fi | |
13014 | rm -f conftest* | |
13015 | fi | |
13016 | fi | |
13017 | ||
13018 | xpm_link= | |
13019 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
cb61c62d | 13020 | echo "configure:13021: checking for Xpm library" >&5 |
f79bd02d JS |
13021 | |
13022 | ac_find_libraries= | |
13023 | for ac_dir in $SEARCH_LIB; | |
13024 | do | |
13025 | for ac_extension in a so sl dylib; do | |
13026 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
13027 | ac_find_libraries=$ac_dir | |
13028 | break 2 | |
13029 | fi | |
13030 | done | |
13031 | done | |
13032 | ||
13033 | if test "$ac_find_libraries" != "" ; then | |
13034 | ||
13035 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
13036 | result=$? | |
13037 | if test $result = 0; then | |
13038 | ac_path_to_link="" | |
13039 | else | |
13040 | ac_path_to_link=" -L$ac_find_libraries" | |
13041 | fi | |
13042 | ||
13043 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
13044 | xpm_link=" -lXpm" | |
13045 | cat >> confdefs.h <<\EOF | |
13046 | #define wxHAVE_LIB_XPM 1 | |
13047 | EOF | |
13048 | ||
13049 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
13050 | else | |
13051 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 13052 | #line 13053 "configure" |
f79bd02d JS |
13053 | #include "confdefs.h" |
13054 | ||
13055 | #include <X11/xpm.h> | |
13056 | ||
13057 | int main() { | |
13058 | ||
13059 | int version; | |
13060 | version = XpmLibraryVersion(); | |
13061 | ||
13062 | ; return 0; } | |
13063 | EOF | |
cb61c62d | 13064 | if { (eval echo configure:13065: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
f79bd02d JS |
13065 | rm -rf conftest* |
13066 | ||
13067 | xpm_link=" -lXpm" | |
13068 | cat >> confdefs.h <<\EOF | |
13069 | #define wxHAVE_LIB_XPM 1 | |
13070 | EOF | |
13071 | ||
13072 | echo "$ac_t""found in default search path" 1>&6 | |
13073 | COMPILED_X_PROGRAM=0 | |
13074 | ||
13075 | else | |
13076 | echo "configure: failed program was:" >&5 | |
13077 | cat conftest.$ac_ext >&5 | |
13078 | rm -rf conftest* | |
13079 | ||
13080 | echo "$ac_t""no" 1>&6 | |
13081 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
13082 | ||
13083 | ||
13084 | fi | |
13085 | rm -f conftest* | |
13086 | fi | |
13087 | ||
13088 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link -lXmu -lXext -lXt -lX11" | |
13089 | TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo" | |
13090 | TOOLKIT=MOTIF | |
13091 | GUIDIST=MOTIF_DIST | |
13092 | fi | |
13093 | ||
13094 | if test "$wxUSE_MAC" = 1; then | |
13095 | if test "$wxUSE_PRECOMP" = "yes"; then | |
13096 | CPPFLAGS="$CPPFLAGS -cpp-precomp" | |
13097 | fi | |
13098 | CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile" | |
13099 | CFLAGS="$CFLAGS -fpascal-strings" | |
13100 | CXXFLAGS="$CXXFLAGS -fpascal-strings" | |
13101 | ||
13102 | TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile" | |
13103 | TOOLKIT=MAC | |
13104 | GUIDIST=MACX_DIST | |
13105 | fi | |
13106 | ||
13107 | if test "$wxUSE_PM" = 1; then | |
13108 | TOOLKIT=PM | |
1e6feb95 VZ |
13109 | GUIDIST=GTK_DIST |
13110 | fi | |
b4085ce6 | 13111 | |
3a922bb4 | 13112 | if test "$TOOLKIT" = "PM" ; then |
1e6feb95 | 13113 | TOOLKIT_DIR="os2" |
3a922bb4 RL |
13114 | else |
13115 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
1e6feb95 | 13116 | fi |
e07802fc | 13117 | |
3a922bb4 | 13118 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" |
1e6feb95 | 13119 | |
3a922bb4 RL |
13120 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
13121 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
9b695262 VZ |
13122 | |
13123 | ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}" | |
13124 | ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}" | |
13125 | ||
3a922bb4 RL |
13126 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" |
13127 | TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}" | |
13128 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" | |
13129 | WIDGET_SET=univ | |
f6bcfd97 | 13130 | else |
3a922bb4 | 13131 | ALL_OBJECTS="\$(GUIOBJS)" |
9b695262 VZ |
13132 | ALL_SOURCES="\$(ALL_SOURCES)" |
13133 | ALL_HEADERS="\$(ALL_HEADERS)" | |
1e6feb95 VZ |
13134 | fi |
13135 | ||
ba0e650c | 13136 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" |
1e6feb95 | 13137 | |
f9bc1684 | 13138 | if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then |
1e6feb95 VZ |
13139 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" |
13140 | fi | |
13141 | ||
13142 | if test "$wxUSE_HTML" = "yes"; then | |
13143 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
13144 | fi | |
3fcdd07b | 13145 | |
4f14bcd8 | 13146 | if test "$wxUSE_LIBJPEG" = "builtin" ; then |
2224580a | 13147 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" |
d9d8273d | 13148 | fi |
4f14bcd8 | 13149 | if test "$wxUSE_LIBTIFF" = "builtin" ; then |
d9d8273d RR |
13150 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" |
13151 | fi | |
4f14bcd8 | 13152 | if test "$wxUSE_LIBPNG" = "builtin" ; then |
d9d8273d RR |
13153 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" |
13154 | fi | |
2224580a | 13155 | |
2224580a VZ |
13156 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" |
13157 | DISTDIR="wx\$(TOOLKIT)" | |
10f2d63a | 13158 | else |
dad6c0ea VZ |
13159 | USE_GUI=0 |
13160 | ||
3a922bb4 | 13161 | TOOLKIT_DIR="base" |
f6bcfd97 | 13162 | |
3a922bb4 RL |
13163 | if test "$USE_WIN32" = 1 ; then |
13164 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}" | |
13165 | TOOLKIT_VPATH="\${top_srcdir}/src/msw" | |
0b2effe9 | 13166 | |
3a922bb4 | 13167 | TOOLKIT="MSW" |
f6bcfd97 | 13168 | else |
3a922bb4 RL |
13169 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}" |
13170 | TOOLKIT_VPATH="\${top_srcdir}/src/unix" | |
f6bcfd97 BP |
13171 | fi |
13172 | ||
831b3152 | 13173 | PORT_FILES="\${top_srcdir}/src/files.lst" |
2224580a VZ |
13174 | |
13175 | GUIDIST="BASE_DIST" | |
13176 | DISTDIR="wxBase" | |
10f2d63a VZ |
13177 | fi |
13178 | ||
e45387bf VZ |
13179 | |
13180 | if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then | |
13181 | ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)" | |
13182 | fi | |
13183 | ||
4f14bcd8 | 13184 | if test "$wxUSE_REGEX" = "builtin" ; then |
3a922bb4 RL |
13185 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" |
13186 | fi | |
4f14bcd8 | 13187 | if test "$wxUSE_ZLIB" = "builtin" ; then |
3a922bb4 RL |
13188 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" |
13189 | fi | |
10f2d63a | 13190 | |
3a922bb4 | 13191 | if test "$wxUSE_OPENGL" = "yes"; then |
62d0491b RL |
13192 | if test "$wxUSE_MAC" = 1; then |
13193 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
13194 | else | |
570cb8cb | 13195 | |
62d0491b | 13196 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` |
3a922bb4 | 13197 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 |
cb61c62d | 13198 | echo "configure:13199: checking for GL/gl.h" >&5 |
3a922bb4 RL |
13199 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13200 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13201 | else | |
13202 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 13203 | #line 13204 "configure" |
3a922bb4 RL |
13204 | #include "confdefs.h" |
13205 | #include <GL/gl.h> | |
13206 | EOF | |
13207 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
cb61c62d | 13208 | { (eval echo configure:13209: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3a922bb4 RL |
13209 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13210 | if test -z "$ac_err"; then | |
13211 | rm -rf conftest* | |
13212 | eval "ac_cv_header_$ac_safe=yes" | |
13213 | else | |
13214 | echo "$ac_err" >&5 | |
13215 | echo "configure: failed program was:" >&5 | |
13216 | cat conftest.$ac_ext >&5 | |
13217 | rm -rf conftest* | |
13218 | eval "ac_cv_header_$ac_safe=no" | |
13219 | fi | |
13220 | rm -f conftest* | |
13221 | fi | |
13222 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
13223 | echo "$ac_t""yes" 1>&6 | |
13224 | ||
1352efdf | 13225 | echo $ac_n "checking for -lGL""... $ac_c" 1>&6 |
cb61c62d | 13226 | echo "configure:13227: checking for -lGL" >&5 |
57964555 | 13227 | |
62d0491b RL |
13228 | ac_find_libraries= |
13229 | for ac_dir in $SEARCH_LIB; | |
13230 | do | |
13231 | for ac_extension in a so sl dylib; do | |
13232 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
13233 | ac_find_libraries=$ac_dir | |
13234 | break 2 | |
13235 | fi | |
13236 | done | |
13237 | done | |
3a922bb4 | 13238 | |
62d0491b RL |
13239 | if test "$ac_find_libraries" != "" ; then |
13240 | ||
13241 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
13242 | result=$? | |
13243 | if test $result = 0; then | |
13244 | ac_path_to_link="" | |
13245 | else | |
13246 | ac_path_to_link=" -L$ac_find_libraries" | |
13247 | fi | |
3a922bb4 | 13248 | |
4b6b4dfc RR |
13249 | if test "$ac_path_to_link" = " -L/usr/lib" ; then |
13250 | LDFLAGS_GL="$LDFLAGS" | |
13251 | else | |
13252 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
13253 | fi | |
62d0491b | 13254 | OPENGL_LIBS="-lGL -lGLU" |
1352efdf | 13255 | echo "$ac_t""yes" 1>&6 |
62d0491b | 13256 | else |
1352efdf RL |
13257 | echo "$ac_t""no" 1>&6 |
13258 | echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6 | |
cb61c62d | 13259 | echo "configure:13260: checking for -lMesaGL" >&5 |
62d0491b RL |
13260 | |
13261 | ac_find_libraries= | |
13262 | for ac_dir in $SEARCH_LIB; | |
13263 | do | |
13264 | for ac_extension in a so sl dylib; do | |
13265 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
13266 | ac_find_libraries=$ac_dir | |
13267 | break 2 | |
13268 | fi | |
13269 | done | |
13270 | done | |
3a922bb4 | 13271 | |
62d0491b | 13272 | if test "$ac_find_libraries" != "" ; then |
57964555 | 13273 | |
62d0491b RL |
13274 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
13275 | result=$? | |
13276 | if test $result = 0; then | |
13277 | ac_path_to_link="" | |
13278 | else | |
13279 | ac_path_to_link=" -L$ac_find_libraries" | |
13280 | fi | |
3a922bb4 | 13281 | |
62d0491b RL |
13282 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" |
13283 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
1352efdf RL |
13284 | echo "$ac_t""yes" 1>&6 |
13285 | else | |
13286 | echo "$ac_t""no" 1>&6 | |
62d0491b RL |
13287 | fi |
13288 | fi | |
13289 | ||
3a922bb4 RL |
13290 | else |
13291 | echo "$ac_t""no" 1>&6 | |
3a922bb4 RL |
13292 | fi |
13293 | ||
6f754473 | 13294 | |
62d0491b RL |
13295 | |
13296 | # AC_CHECK_HEADER(GL/gl.h, | |
13297 | # [ | |
13298 | # AC_CHECK_LIB(GL, glFlush, | |
13299 | # [ | |
13300 | # OPENGL_LIBS="-lGL -lGLU" | |
13301 | # ], | |
13302 | # [ | |
13303 | # AC_CHECK_LIB(MesaGL, glFlush, | |
13304 | # [ | |
13305 | # OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
13306 | # ], | |
13307 | # [], | |
13308 | # [-lm]) | |
13309 | # ], | |
13310 | # [-lm]) | |
13311 | # ]) | |
13312 | ||
13313 | if test "x$OPENGL_LIBS" = "x"; then | |
13314 | { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; } | |
13315 | fi | |
6f754473 | 13316 | fi |
6f754473 | 13317 | |
62d0491b RL |
13318 | if test "$wxUSE_OPENGL" = "yes"; then |
13319 | cat >> confdefs.h <<\EOF | |
6f754473 VZ |
13320 | #define wxUSE_OPENGL 1 |
13321 | EOF | |
13322 | ||
62d0491b | 13323 | cat >> confdefs.h <<\EOF |
6f754473 VZ |
13324 | #define wxUSE_GLCANVAS 1 |
13325 | EOF | |
13326 | ||
62d0491b RL |
13327 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl" |
13328 | fi | |
3a922bb4 RL |
13329 | fi |
13330 | ||
13331 | if test -z "$TOOLKIT_VPATH" ; then | |
13332 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" | |
13333 | fi | |
13334 | ||
13335 | if test -n "$TOOLKIT" ; then | |
13336 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
13337 | fi | |
13338 | ||
f676c7ff MB |
13339 | lib_unicode_suffix= |
13340 | if test "$wxUSE_UNICODE" = "yes"; then | |
13341 | lib_unicode_suffix=u | |
13342 | fi | |
13343 | ||
3a922bb4 RL |
13344 | lib_debug_suffix= |
13345 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
13346 | lib_debug_suffix=d | |
3a922bb4 RL |
13347 | fi |
13348 | ||
f676c7ff MB |
13349 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}" |
13350 | TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}" | |
3a922bb4 RL |
13351 | |
13352 | if test "$cross_compiling" = "yes"; then | |
13353 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}" | |
13354 | TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}" | |
13355 | fi | |
13356 | ||
13357 | WX_LIBRARY="wx_${TOOLCHAIN_NAME}" | |
13358 | WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}" | |
13359 | ||
3a922bb4 RL |
13360 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" |
13361 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
13362 | ||
13363 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}" | |
13364 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
13365 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}" | |
13366 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
13367 | ||
d08b457b | 13368 | WX_RESOURCES_MACOSX="lib${WX_LIBRARY}.rsrc" |
e23081de | 13369 | WX_RESOURCES_MACOSX_COMPILED="lib${WX_LIBRARY}.r" |
3a922bb4 | 13370 | |
978f1259 RL |
13371 | case "${host}" in |
13372 | *-*-cygwin* | *-*-mingw32* ) | |
13373 | ||
2da4f892 | 13374 | |
978f1259 RL |
13375 | |
13376 | if test "$cross_compiling" != "yes"; then | |
13377 | WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" | |
13378 | WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" | |
13379 | WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}" | |
13380 | WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
2da4f892 RL |
13381 | else |
13382 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
13383 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
978f1259 RL |
13384 | fi |
13385 | ||
13386 | esac | |
13387 | ||
13388 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
13389 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a" | |
13390 | ||
13391 | WXCONFIG_LIBS="-l${WX_LIBRARY}" | |
885d4bf5 | 13392 | WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a" |
978f1259 RL |
13393 | |
13394 | if test "$wxUSE_OPENGL" = "yes"; then | |
885d4bf5 VS |
13395 | WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}" |
13396 | WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}" | |
978f1259 RL |
13397 | fi |
13398 | ||
13399 | ||
3a922bb4 RL |
13400 | |
13401 | if test "$wxUSE_SHARED" = "yes"; then | |
55e80573 VZ |
13402 | |
13403 | if test "$wxUSE_OPENGL" = "yes"; then | |
13404 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
3a922bb4 | 13405 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}" |
55e80573 VZ |
13406 | else |
13407 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
3a922bb4 | 13408 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}" |
55e80573 VZ |
13409 | fi |
13410 | ||
dd4f7467 | 13411 | if test "$GCC" = "yes"; then |
55e80573 | 13412 | PIC_FLAG="-fPIC" |
dd4f7467 | 13413 | fi |
55e80573 VZ |
13414 | |
13415 | SHARED_LD="${CXX} -shared -o" | |
698dcdb6 | 13416 | |
10f2d63a VZ |
13417 | case "${host}" in |
13418 | *-hp-hpux* ) | |
d569ea8d GD |
13419 | if test "$GCC" == "yes"; then |
13420 | SHARED_LD="${SHARED_LD} ${PIC_FLAG}" | |
13421 | else | |
3d63bc3a | 13422 | LDFLAGS="$LDFLAGS -L/usr/lib" |
f6bcfd97 | 13423 | |
10f2d63a VZ |
13424 | SHARED_LD="${CXX} -b -o" |
13425 | PIC_FLAG="+Z" | |
13426 | fi | |
55e80573 | 13427 | |
7b7a7637 RL |
13428 | if test "$wxUSE_OPENGL" = "yes"; then |
13429 | WX_ALL_INSTALLED="preinstall_gl" | |
13430 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" | |
13431 | else | |
13432 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" | |
13433 | fi | |
10f2d63a | 13434 | ;; |
b12915c1 | 13435 | |
55e80573 VZ |
13436 | *-*-linux* ) |
13437 | if test "$GCC" != "yes"; then | |
13438 | echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6 | |
cb61c62d | 13439 | echo "configure:13440: checking for Intel compiler" >&5 |
55e80573 VZ |
13440 | if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then |
13441 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13442 | else | |
13443 | ||
13444 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 13445 | #line 13446 "configure" |
55e80573 VZ |
13446 | #include "confdefs.h" |
13447 | ||
13448 | int main() { | |
13449 | ||
13450 | #ifndef __INTEL_COMPILER | |
dd4f7467 | 13451 | #error Not icc |
55e80573 VZ |
13452 | #endif |
13453 | ||
13454 | ; return 0; } | |
13455 | EOF | |
cb61c62d | 13456 | if { (eval echo configure:13457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
55e80573 VZ |
13457 | rm -rf conftest* |
13458 | wx_cv_prog_icc=yes | |
13459 | else | |
13460 | echo "configure: failed program was:" >&5 | |
13461 | cat conftest.$ac_ext >&5 | |
13462 | rm -rf conftest* | |
13463 | wx_cv_prog_icc=no | |
13464 | ||
13465 | fi | |
13466 | rm -f conftest* | |
13467 | ||
13468 | fi | |
13469 | ||
13470 | echo "$ac_t""$wx_cv_prog_icc" 1>&6 | |
55e80573 VZ |
13471 | if test "$wx_cv_prog_icc" = "yes"; then |
13472 | PIC_FLAG="-KPIC" | |
13473 | fi | |
13474 | fi | |
13475 | ||
3a922bb4 RL |
13476 | if test "$wxUSE_SONAME" = "yes" ; then |
13477 | SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}" | |
13478 | SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}" | |
f6bcfd97 | 13479 | WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)" |
00cf1208 | 13480 | fi |
10f2d63a | 13481 | ;; |
55e80573 | 13482 | |
10f2d63a VZ |
13483 | *-*-solaris2* ) |
13484 | if test "$GCC" = yes ; then | |
f6bcfd97 | 13485 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" |
10f2d63a VZ |
13486 | else |
13487 | SHARED_LD="${CXX} -G -o" | |
13488 | PIC_FLAG="-KPIC" | |
7b7a7637 | 13489 | SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}" |
471944dc | 13490 | SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}" |
10f2d63a | 13491 | fi |
10f2d63a | 13492 | ;; |
55e80573 | 13493 | |
b4085ce6 | 13494 | *-*-darwin* ) |
156b2523 GD |
13495 | CFLAGS="$CFLAGS -fno-common -DDYLIB_INIT" |
13496 | CXXFLAGS="$CXXFLAGS -fno-common -DDYLIB_INIT" | |
13497 | SHARED_LD="$CXX -dynamiclib -init _wxWindowsDylibInit -o" | |
ea5999b9 | 13498 | PIC_FLAG="-dynamic -fPIC" |
10f2d63a | 13499 | ;; |
55e80573 | 13500 | |
10f2d63a VZ |
13501 | *-*-aix* ) |
13502 | SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o" | |
10f2d63a | 13503 | ;; |
55e80573 | 13504 | |
7b7a7637 | 13505 | *-*-cygwin* | *-*-mingw32* ) |
77e13408 | 13506 | |
2da4f892 | 13507 | WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a" |
77e13408 | 13508 | |
77e13408 | 13509 | SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o" |
00c81359 | 13510 | TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1" |
25d0687a RL |
13511 | |
13512 | PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1" | |
7b7a7637 RL |
13513 | |
13514 | if test "$wxUSE_OPENGL" = "yes"; then | |
f6bcfd97 | 13515 | WX_ALL_INSTALLED="preinstall_gl" |
978f1259 | 13516 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" |
f6bcfd97 | 13517 | else |
978f1259 | 13518 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" |
f6bcfd97 | 13519 | fi |
10f2d63a | 13520 | ;; |
55e80573 | 13521 | |
6fa882bd | 13522 | *-pc-os2_emx | *-pc-os2-emx ) |
7b7a7637 | 13523 | wxUSE_SHARED=no |
10f2d63a | 13524 | ;; |
55e80573 | 13525 | |
b12915c1 | 13526 | *-*-beos* ) |
e2b8b066 | 13527 | SHARED_LD="${LD} -shared -o" |
b12915c1 | 13528 | ;; |
55e80573 VZ |
13529 | |
13530 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ | |
13531 | *-*-sunos4* | \ | |
13532 | *-*-irix5* | *-*-irix6* | \ | |
13533 | *-*-osf* | \ | |
13534 | *-*-dgux5* | \ | |
13535 | *-*-sysv5* ) | |
13536 | ;; | |
13537 | ||
10f2d63a | 13538 | *) |
7b7a7637 | 13539 | { echo "configure: error: unknown system type $host." 1>&2; exit 1; } |
10f2d63a VZ |
13540 | esac |
13541 | ||
13542 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
13543 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
bdad4e7e | 13544 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" |
10f2d63a | 13545 | fi |
55e80573 | 13546 | |
3711412e | 13547 | WX_TARGET_LIBRARY_TYPE="so" |
885d4bf5 | 13548 | INSTALL_LIBRARY='$(INSTALL_PROGRAM)' |
3a922bb4 | 13549 | fi |
f6bcfd97 | 13550 | |
3a922bb4 | 13551 | if test "$wxUSE_SHARED" = "no"; then |
f6bcfd97 | 13552 | |
3a922bb4 | 13553 | if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then |
f6bcfd97 BP |
13554 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" |
13555 | fi | |
13556 | ||
6fa882bd RR |
13557 | if test "$wxUSE_MAC" = 1; then |
13558 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
13559 | fi | |
13560 | ||
3a922bb4 RL |
13561 | if test "$wxUSE_OPENGL" = "yes"; then |
13562 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl" | |
13563 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}" | |
13564 | else | |
13565 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}" | |
13566 | fi | |
698dcdb6 | 13567 | |
3a922bb4 RL |
13568 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
13569 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" | |
13570 | ||
13571 | WX_TARGET_LIBRARY_TYPE="a" | |
885d4bf5 | 13572 | INSTALL_LIBRARY='$(INSTALL_DATA)' |
10f2d63a | 13573 | fi |
10f2d63a | 13574 | |
d08b457b GD |
13575 | if test "$wxUSE_MAC" = 1; then |
13576 | WX_ALL="${WX_ALL} \$(build_libdir)/lib${WX_LIBRARY}.r" | |
e23081de | 13577 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res" |
d08b457b GD |
13578 | # Extract the first word of "Rez", so it can be a program name with args. |
13579 | set dummy Rez; ac_word=$2 | |
13580 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
cb61c62d | 13581 | echo "configure:13582: checking for $ac_word" >&5 |
d08b457b GD |
13582 | if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then |
13583 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13584 | else | |
13585 | if test -n "$RESCOMP"; then | |
13586 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
13587 | else | |
13588 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
13589 | ac_dummy="$PATH" | |
13590 | for ac_dir in $ac_dummy; do | |
13591 | test -z "$ac_dir" && ac_dir=. | |
13592 | if test -f $ac_dir/$ac_word; then | |
13593 | ac_cv_prog_RESCOMP="Rez" | |
13594 | break | |
13595 | fi | |
13596 | done | |
13597 | IFS="$ac_save_ifs" | |
13598 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
13599 | fi | |
13600 | fi | |
13601 | RESCOMP="$ac_cv_prog_RESCOMP" | |
13602 | if test -n "$RESCOMP"; then | |
13603 | echo "$ac_t""$RESCOMP" 1>&6 | |
13604 | else | |
13605 | echo "$ac_t""no" 1>&6 | |
13606 | fi | |
13607 | ||
9f8148b1 GD |
13608 | # Extract the first word of "DeRez", so it can be a program name with args. |
13609 | set dummy DeRez; ac_word=$2 | |
d08b457b | 13610 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
cb61c62d | 13611 | echo "configure:13612: checking for $ac_word" >&5 |
d08b457b GD |
13612 | if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then |
13613 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13614 | else | |
13615 | if test -n "$DEREZ"; then | |
13616 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
13617 | else | |
13618 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
13619 | ac_dummy="$PATH" | |
13620 | for ac_dir in $ac_dummy; do | |
13621 | test -z "$ac_dir" && ac_dir=. | |
13622 | if test -f $ac_dir/$ac_word; then | |
9f8148b1 | 13623 | ac_cv_prog_DEREZ="DeRez" |
d08b457b GD |
13624 | break |
13625 | fi | |
13626 | done | |
13627 | IFS="$ac_save_ifs" | |
9f8148b1 | 13628 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" |
d08b457b GD |
13629 | fi |
13630 | fi | |
13631 | DEREZ="$ac_cv_prog_DEREZ" | |
13632 | if test -n "$DEREZ"; then | |
13633 | echo "$ac_t""$DEREZ" 1>&6 | |
13634 | else | |
13635 | echo "$ac_t""no" 1>&6 | |
13636 | fi | |
13637 | ||
13638 | LIBWXMACRES="\$(top_builddir)/lib/lib${WX_LIBRARY}.r" | |
13639 | LIBWXMACRESCOMP="\$(RESCOMP) Carbon.r -t APPL ${LIBWXMACRES} -o \$(BIN_PROGRAM)" | |
e23081de | 13640 | LIBWXMACRESWXCONFIG="${RESCOMP} Carbon.r -t APPL \${prefix}/lib/${WX_RESOURCES_MACOSX_COMPILED} -o" |
d08b457b GD |
13641 | fi |
13642 | ||
3a922bb4 | 13643 | |
13c0541d GD |
13644 | if test "$wxUSE_MAC" != 1; then |
13645 | for ac_hdr in strings.h | |
9cfadba2 | 13646 | do |
698dcdb6 VZ |
13647 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
13648 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
cb61c62d | 13649 | echo "configure:13650: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
13650 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13651 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13652 | else | |
13653 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 13654 | #line 13655 "configure" |
9cfadba2 | 13655 | #include "confdefs.h" |
698dcdb6 VZ |
13656 | #include <$ac_hdr> |
13657 | EOF | |
13658 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
cb61c62d | 13659 | { (eval echo configure:13660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13660 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13661 | if test -z "$ac_err"; then | |
13662 | rm -rf conftest* | |
13663 | eval "ac_cv_header_$ac_safe=yes" | |
6232543b | 13664 | else |
698dcdb6 VZ |
13665 | echo "$ac_err" >&5 |
13666 | echo "configure: failed program was:" >&5 | |
9cfadba2 | 13667 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13668 | rm -rf conftest* |
13669 | eval "ac_cv_header_$ac_safe=no" | |
9cfadba2 | 13670 | fi |
698dcdb6 | 13671 | rm -f conftest* |
9cfadba2 | 13672 | fi |
698dcdb6 VZ |
13673 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13674 | echo "$ac_t""yes" 1>&6 | |
13675 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13676 | cat >> confdefs.h <<EOF | |
13677 | #define $ac_tr_hdr 1 | |
9cfadba2 | 13678 | EOF |
698dcdb6 VZ |
13679 | |
13680 | else | |
13681 | echo "$ac_t""no" 1>&6 | |
9cfadba2 VZ |
13682 | fi |
13683 | done | |
10f2d63a | 13684 | |
13c0541d GD |
13685 | fi |
13686 | ||
3a922bb4 | 13687 | for ac_hdr in stdlib.h |
10f2d63a | 13688 | do |
698dcdb6 VZ |
13689 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
13690 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
cb61c62d | 13691 | echo "configure:13692: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
13692 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13693 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13694 | else | |
13695 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 13696 | #line 13697 "configure" |
10f2d63a | 13697 | #include "confdefs.h" |
698dcdb6 VZ |
13698 | #include <$ac_hdr> |
13699 | EOF | |
13700 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
cb61c62d | 13701 | { (eval echo configure:13702: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13702 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13703 | if test -z "$ac_err"; then | |
13704 | rm -rf conftest* | |
13705 | eval "ac_cv_header_$ac_safe=yes" | |
6232543b | 13706 | else |
698dcdb6 VZ |
13707 | echo "$ac_err" >&5 |
13708 | echo "configure: failed program was:" >&5 | |
10f2d63a | 13709 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13710 | rm -rf conftest* |
13711 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 13712 | fi |
698dcdb6 | 13713 | rm -f conftest* |
10f2d63a | 13714 | fi |
698dcdb6 VZ |
13715 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13716 | echo "$ac_t""yes" 1>&6 | |
13717 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13718 | cat >> confdefs.h <<EOF | |
13719 | #define $ac_tr_hdr 1 | |
10f2d63a | 13720 | EOF |
698dcdb6 VZ |
13721 | |
13722 | else | |
13723 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13724 | fi |
13725 | done | |
13726 | ||
9f8148b1 | 13727 | for ac_hdr in malloc.h |
10f2d63a | 13728 | do |
698dcdb6 VZ |
13729 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
13730 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
cb61c62d | 13731 | echo "configure:13732: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
13732 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13733 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13734 | else | |
13735 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 13736 | #line 13737 "configure" |
10f2d63a | 13737 | #include "confdefs.h" |
698dcdb6 VZ |
13738 | #include <$ac_hdr> |
13739 | EOF | |
13740 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
cb61c62d | 13741 | { (eval echo configure:13742: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13742 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13743 | if test -z "$ac_err"; then | |
13744 | rm -rf conftest* | |
13745 | eval "ac_cv_header_$ac_safe=yes" | |
6f72b082 | 13746 | else |
698dcdb6 VZ |
13747 | echo "$ac_err" >&5 |
13748 | echo "configure: failed program was:" >&5 | |
6f72b082 | 13749 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13750 | rm -rf conftest* |
13751 | eval "ac_cv_header_$ac_safe=no" | |
6f72b082 | 13752 | fi |
698dcdb6 | 13753 | rm -f conftest* |
6f72b082 | 13754 | fi |
698dcdb6 VZ |
13755 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13756 | echo "$ac_t""yes" 1>&6 | |
13757 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13758 | cat >> confdefs.h <<EOF | |
13759 | #define $ac_tr_hdr 1 | |
6f72b082 | 13760 | EOF |
698dcdb6 VZ |
13761 | |
13762 | else | |
13763 | echo "$ac_t""no" 1>&6 | |
6f72b082 OK |
13764 | fi |
13765 | done | |
13766 | ||
9f8148b1 | 13767 | for ac_hdr in unistd.h |
6f72b082 | 13768 | do |
698dcdb6 VZ |
13769 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
13770 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
cb61c62d | 13771 | echo "configure:13772: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
13772 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13773 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13774 | else | |
13775 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 13776 | #line 13777 "configure" |
6f72b082 | 13777 | #include "confdefs.h" |
698dcdb6 VZ |
13778 | #include <$ac_hdr> |
13779 | EOF | |
13780 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
cb61c62d | 13781 | { (eval echo configure:13782: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13782 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13783 | if test -z "$ac_err"; then | |
13784 | rm -rf conftest* | |
13785 | eval "ac_cv_header_$ac_safe=yes" | |
6f72b082 | 13786 | else |
698dcdb6 VZ |
13787 | echo "$ac_err" >&5 |
13788 | echo "configure: failed program was:" >&5 | |
6f72b082 | 13789 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13790 | rm -rf conftest* |
13791 | eval "ac_cv_header_$ac_safe=no" | |
6f72b082 | 13792 | fi |
698dcdb6 | 13793 | rm -f conftest* |
6f72b082 | 13794 | fi |
698dcdb6 VZ |
13795 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13796 | echo "$ac_t""yes" 1>&6 | |
13797 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13798 | cat >> confdefs.h <<EOF | |
13799 | #define $ac_tr_hdr 1 | |
6f72b082 | 13800 | EOF |
698dcdb6 VZ |
13801 | |
13802 | else | |
13803 | echo "$ac_t""no" 1>&6 | |
6f72b082 OK |
13804 | fi |
13805 | done | |
13806 | ||
9f8148b1 | 13807 | for ac_hdr in wchar.h |
6f72b082 | 13808 | do |
698dcdb6 VZ |
13809 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
13810 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
cb61c62d | 13811 | echo "configure:13812: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
13812 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13813 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13814 | else | |
13815 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 13816 | #line 13817 "configure" |
6f72b082 | 13817 | #include "confdefs.h" |
698dcdb6 VZ |
13818 | #include <$ac_hdr> |
13819 | EOF | |
13820 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
cb61c62d | 13821 | { (eval echo configure:13822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13822 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13823 | if test -z "$ac_err"; then | |
13824 | rm -rf conftest* | |
13825 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 13826 | else |
698dcdb6 VZ |
13827 | echo "$ac_err" >&5 |
13828 | echo "configure: failed program was:" >&5 | |
10f2d63a | 13829 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13830 | rm -rf conftest* |
13831 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 13832 | fi |
698dcdb6 | 13833 | rm -f conftest* |
10f2d63a | 13834 | fi |
698dcdb6 VZ |
13835 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13836 | echo "$ac_t""yes" 1>&6 | |
13837 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13838 | cat >> confdefs.h <<EOF | |
13839 | #define $ac_tr_hdr 1 | |
10f2d63a | 13840 | EOF |
698dcdb6 VZ |
13841 | |
13842 | else | |
13843 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13844 | fi |
13845 | done | |
13846 | ||
9f8148b1 | 13847 | for ac_hdr in wcstr.h |
0fb0dd83 | 13848 | do |
698dcdb6 VZ |
13849 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
13850 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
cb61c62d | 13851 | echo "configure:13852: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
13852 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13853 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13854 | else | |
13855 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 13856 | #line 13857 "configure" |
0fb0dd83 | 13857 | #include "confdefs.h" |
698dcdb6 VZ |
13858 | #include <$ac_hdr> |
13859 | EOF | |
13860 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
cb61c62d | 13861 | { (eval echo configure:13862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13862 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13863 | if test -z "$ac_err"; then | |
13864 | rm -rf conftest* | |
13865 | eval "ac_cv_header_$ac_safe=yes" | |
0fb0dd83 | 13866 | else |
698dcdb6 VZ |
13867 | echo "$ac_err" >&5 |
13868 | echo "configure: failed program was:" >&5 | |
0fb0dd83 | 13869 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13870 | rm -rf conftest* |
13871 | eval "ac_cv_header_$ac_safe=no" | |
0fb0dd83 | 13872 | fi |
698dcdb6 | 13873 | rm -f conftest* |
0fb0dd83 | 13874 | fi |
698dcdb6 VZ |
13875 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13876 | echo "$ac_t""yes" 1>&6 | |
13877 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13878 | cat >> confdefs.h <<EOF | |
13879 | #define $ac_tr_hdr 1 | |
0fb0dd83 | 13880 | EOF |
698dcdb6 VZ |
13881 | |
13882 | else | |
13883 | echo "$ac_t""no" 1>&6 | |
0fb0dd83 RR |
13884 | fi |
13885 | done | |
13886 | ||
9f8148b1 | 13887 | for ac_hdr in wctype.h |
1f8ae82f | 13888 | do |
698dcdb6 VZ |
13889 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
13890 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
cb61c62d | 13891 | echo "configure:13892: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
13892 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13893 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13894 | else | |
13895 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 13896 | #line 13897 "configure" |
1f8ae82f | 13897 | #include "confdefs.h" |
698dcdb6 VZ |
13898 | #include <$ac_hdr> |
13899 | EOF | |
13900 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
cb61c62d | 13901 | { (eval echo configure:13902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13902 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13903 | if test -z "$ac_err"; then | |
13904 | rm -rf conftest* | |
13905 | eval "ac_cv_header_$ac_safe=yes" | |
1f8ae82f | 13906 | else |
698dcdb6 VZ |
13907 | echo "$ac_err" >&5 |
13908 | echo "configure: failed program was:" >&5 | |
1f8ae82f | 13909 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13910 | rm -rf conftest* |
13911 | eval "ac_cv_header_$ac_safe=no" | |
1f8ae82f | 13912 | fi |
698dcdb6 | 13913 | rm -f conftest* |
1f8ae82f | 13914 | fi |
698dcdb6 VZ |
13915 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13916 | echo "$ac_t""yes" 1>&6 | |
13917 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13918 | cat >> confdefs.h <<EOF | |
13919 | #define $ac_tr_hdr 1 | |
1f8ae82f | 13920 | EOF |
698dcdb6 VZ |
13921 | |
13922 | else | |
13923 | echo "$ac_t""no" 1>&6 | |
1f8ae82f GD |
13924 | fi |
13925 | done | |
13926 | ||
9f8148b1 | 13927 | for ac_hdr in fnmatch.h |
10f2d63a | 13928 | do |
698dcdb6 VZ |
13929 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
13930 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
cb61c62d | 13931 | echo "configure:13932: checking for $ac_hdr" >&5 |
0fbb762e MB |
13932 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13933 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13934 | else | |
13935 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 13936 | #line 13937 "configure" |
0fbb762e MB |
13937 | #include "confdefs.h" |
13938 | #include <$ac_hdr> | |
13939 | EOF | |
13940 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
cb61c62d | 13941 | { (eval echo configure:13942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
0fbb762e MB |
13942 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13943 | if test -z "$ac_err"; then | |
13944 | rm -rf conftest* | |
13945 | eval "ac_cv_header_$ac_safe=yes" | |
13946 | else | |
13947 | echo "$ac_err" >&5 | |
13948 | echo "configure: failed program was:" >&5 | |
13949 | cat conftest.$ac_ext >&5 | |
13950 | rm -rf conftest* | |
13951 | eval "ac_cv_header_$ac_safe=no" | |
13952 | fi | |
13953 | rm -f conftest* | |
13954 | fi | |
13955 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
13956 | echo "$ac_t""yes" 1>&6 | |
13957 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13958 | cat >> confdefs.h <<EOF | |
13959 | #define $ac_tr_hdr 1 | |
13960 | EOF | |
13961 | ||
13962 | else | |
13963 | echo "$ac_t""no" 1>&6 | |
13964 | fi | |
13965 | done | |
13966 | ||
9f8148b1 GD |
13967 | for ac_hdr in langinfo.h |
13968 | do | |
13969 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
13970 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
cb61c62d | 13971 | echo "configure:13972: checking for $ac_hdr" >&5 |
9f8148b1 GD |
13972 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13973 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13974 | else | |
13975 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 13976 | #line 13977 "configure" |
9f8148b1 GD |
13977 | #include "confdefs.h" |
13978 | #include <$ac_hdr> | |
13979 | EOF | |
13980 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
cb61c62d | 13981 | { (eval echo configure:13982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
9f8148b1 GD |
13982 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13983 | if test -z "$ac_err"; then | |
13984 | rm -rf conftest* | |
13985 | eval "ac_cv_header_$ac_safe=yes" | |
13986 | else | |
13987 | echo "$ac_err" >&5 | |
13988 | echo "configure: failed program was:" >&5 | |
13989 | cat conftest.$ac_ext >&5 | |
13990 | rm -rf conftest* | |
13991 | eval "ac_cv_header_$ac_safe=no" | |
13992 | fi | |
13993 | rm -f conftest* | |
13994 | fi | |
13995 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
13996 | echo "$ac_t""yes" 1>&6 | |
13997 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13998 | cat >> confdefs.h <<EOF | |
13999 | #define $ac_tr_hdr 1 | |
14000 | EOF | |
14001 | ||
14002 | else | |
14003 | echo "$ac_t""no" 1>&6 | |
14004 | fi | |
14005 | done | |
14006 | ||
10f2d63a | 14007 | |
3a922bb4 RL |
14008 | if test "$wxUSE_GUI" = "yes"; then |
14009 | if test "$wxUSE_UNIX" = "yes"; then | |
14010 | for ac_hdr in X11/XKBlib.h | |
29fd3c0c VS |
14011 | do |
14012 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
14013 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
cb61c62d | 14014 | echo "configure:14015: checking for $ac_hdr" >&5 |
29fd3c0c VS |
14015 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14016 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14017 | else | |
14018 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 14019 | #line 14020 "configure" |
29fd3c0c VS |
14020 | #include "confdefs.h" |
14021 | #include <$ac_hdr> | |
14022 | EOF | |
14023 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
cb61c62d | 14024 | { (eval echo configure:14025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
29fd3c0c VS |
14025 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14026 | if test -z "$ac_err"; then | |
14027 | rm -rf conftest* | |
14028 | eval "ac_cv_header_$ac_safe=yes" | |
14029 | else | |
14030 | echo "$ac_err" >&5 | |
14031 | echo "configure: failed program was:" >&5 | |
14032 | cat conftest.$ac_ext >&5 | |
14033 | rm -rf conftest* | |
14034 | eval "ac_cv_header_$ac_safe=no" | |
14035 | fi | |
14036 | rm -f conftest* | |
14037 | fi | |
14038 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
14039 | echo "$ac_t""yes" 1>&6 | |
14040 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
14041 | cat >> confdefs.h <<EOF | |
14042 | #define $ac_tr_hdr 1 | |
14043 | EOF | |
14044 | ||
14045 | else | |
14046 | echo "$ac_t""no" 1>&6 | |
14047 | fi | |
14048 | done | |
14049 | ||
3a922bb4 | 14050 | fi |
29fd3c0c VS |
14051 | fi |
14052 | ||
698dcdb6 VZ |
14053 | |
14054 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
cb61c62d | 14055 | echo "configure:14056: checking for ANSI C header files" >&5 |
698dcdb6 VZ |
14056 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
14057 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14058 | else |
698dcdb6 | 14059 | cat > conftest.$ac_ext <<EOF |
cb61c62d | 14060 | #line 14061 "configure" |
10f2d63a VZ |
14061 | #include "confdefs.h" |
14062 | #include <stdlib.h> | |
14063 | #include <stdarg.h> | |
14064 | #include <string.h> | |
14065 | #include <float.h> | |
698dcdb6 VZ |
14066 | EOF |
14067 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
cb61c62d | 14068 | { (eval echo configure:14069: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
14069 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14070 | if test -z "$ac_err"; then | |
14071 | rm -rf conftest* | |
10f2d63a VZ |
14072 | ac_cv_header_stdc=yes |
14073 | else | |
698dcdb6 VZ |
14074 | echo "$ac_err" >&5 |
14075 | echo "configure: failed program was:" >&5 | |
10f2d63a | 14076 | cat conftest.$ac_ext >&5 |
698dcdb6 | 14077 | rm -rf conftest* |
10f2d63a VZ |
14078 | ac_cv_header_stdc=no |
14079 | fi | |
698dcdb6 | 14080 | rm -f conftest* |
10f2d63a VZ |
14081 | |
14082 | if test $ac_cv_header_stdc = yes; then | |
14083 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
698dcdb6 | 14084 | cat > conftest.$ac_ext <<EOF |
cb61c62d | 14085 | #line 14086 "configure" |
10f2d63a VZ |
14086 | #include "confdefs.h" |
14087 | #include <string.h> | |
698dcdb6 | 14088 | EOF |
10f2d63a VZ |
14089 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
14090 | egrep "memchr" >/dev/null 2>&1; then | |
14091 | : | |
14092 | else | |
698dcdb6 | 14093 | rm -rf conftest* |
10f2d63a VZ |
14094 | ac_cv_header_stdc=no |
14095 | fi | |
14096 | rm -f conftest* | |
14097 | ||
14098 | fi | |
14099 | ||
14100 | if test $ac_cv_header_stdc = yes; then | |
14101 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
698dcdb6 | 14102 | cat > conftest.$ac_ext <<EOF |
cb61c62d | 14103 | #line 14104 "configure" |
10f2d63a VZ |
14104 | #include "confdefs.h" |
14105 | #include <stdlib.h> | |
698dcdb6 | 14106 | EOF |
10f2d63a VZ |
14107 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
14108 | egrep "free" >/dev/null 2>&1; then | |
14109 | : | |
14110 | else | |
698dcdb6 | 14111 | rm -rf conftest* |
10f2d63a VZ |
14112 | ac_cv_header_stdc=no |
14113 | fi | |
14114 | rm -f conftest* | |
14115 | ||
14116 | fi | |
14117 | ||
14118 | if test $ac_cv_header_stdc = yes; then | |
14119 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
698dcdb6 | 14120 | if test "$cross_compiling" = yes; then |
10f2d63a VZ |
14121 | : |
14122 | else | |
698dcdb6 | 14123 | cat > conftest.$ac_ext <<EOF |
cb61c62d | 14124 | #line 14125 "configure" |
10f2d63a VZ |
14125 | #include "confdefs.h" |
14126 | #include <ctype.h> | |
698dcdb6 VZ |
14127 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
14128 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
1e487827 | 14129 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
698dcdb6 VZ |
14130 | int main () { int i; for (i = 0; i < 256; i++) |
14131 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
14132 | exit (0); } | |
14133 | ||
14134 | EOF | |
cb61c62d | 14135 | if { (eval echo configure:14136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 14136 | then |
10f2d63a VZ |
14137 | : |
14138 | else | |
698dcdb6 VZ |
14139 | echo "configure: failed program was:" >&5 |
14140 | cat conftest.$ac_ext >&5 | |
14141 | rm -fr conftest* | |
14142 | ac_cv_header_stdc=no | |
10f2d63a | 14143 | fi |
698dcdb6 | 14144 | rm -fr conftest* |
10f2d63a | 14145 | fi |
698dcdb6 | 14146 | |
10f2d63a VZ |
14147 | fi |
14148 | fi | |
1e487827 | 14149 | |
698dcdb6 VZ |
14150 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
14151 | if test $ac_cv_header_stdc = yes; then | |
14152 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
14153 | #define STDC_HEADERS 1 |
14154 | EOF | |
14155 | ||
14156 | fi | |
14157 | ||
698dcdb6 | 14158 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
cb61c62d | 14159 | echo "configure:14160: checking for mode_t" >&5 |
698dcdb6 VZ |
14160 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
14161 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 14162 | else |
698dcdb6 | 14163 | cat > conftest.$ac_ext <<EOF |
cb61c62d | 14164 | #line 14165 "configure" |
1e487827 | 14165 | #include "confdefs.h" |
698dcdb6 VZ |
14166 | #include <sys/types.h> |
14167 | #if STDC_HEADERS | |
14168 | #include <stdlib.h> | |
14169 | #include <stddef.h> | |
14170 | #endif | |
14171 | EOF | |
14172 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
14173 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
14174 | rm -rf conftest* | |
10f2d63a VZ |
14175 | ac_cv_type_mode_t=yes |
14176 | else | |
698dcdb6 VZ |
14177 | rm -rf conftest* |
14178 | ac_cv_type_mode_t=no | |
703e0a69 | 14179 | fi |
698dcdb6 | 14180 | rm -f conftest* |
1e487827 | 14181 | |
698dcdb6 VZ |
14182 | fi |
14183 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 | |
14184 | if test $ac_cv_type_mode_t = no; then | |
14185 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
14186 | #define mode_t int |
14187 | EOF | |
14188 | ||
14189 | fi | |
14190 | ||
698dcdb6 | 14191 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
cb61c62d | 14192 | echo "configure:14193: checking for off_t" >&5 |
698dcdb6 VZ |
14193 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
14194 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14195 | else |
698dcdb6 | 14196 | cat > conftest.$ac_ext <<EOF |
cb61c62d | 14197 | #line 14198 "configure" |
10f2d63a | 14198 | #include "confdefs.h" |
698dcdb6 VZ |
14199 | #include <sys/types.h> |
14200 | #if STDC_HEADERS | |
14201 | #include <stdlib.h> | |
14202 | #include <stddef.h> | |
14203 | #endif | |
14204 | EOF | |
14205 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
14206 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
14207 | rm -rf conftest* | |
10f2d63a VZ |
14208 | ac_cv_type_off_t=yes |
14209 | else | |
698dcdb6 VZ |
14210 | rm -rf conftest* |
14211 | ac_cv_type_off_t=no | |
703e0a69 | 14212 | fi |
698dcdb6 | 14213 | rm -f conftest* |
1e487827 | 14214 | |
698dcdb6 VZ |
14215 | fi |
14216 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
14217 | if test $ac_cv_type_off_t = no; then | |
14218 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
14219 | #define off_t long |
14220 | EOF | |
14221 | ||
14222 | fi | |
14223 | ||
698dcdb6 | 14224 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
cb61c62d | 14225 | echo "configure:14226: checking for pid_t" >&5 |
698dcdb6 VZ |
14226 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
14227 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14228 | else |
698dcdb6 | 14229 | cat > conftest.$ac_ext <<EOF |
cb61c62d | 14230 | #line 14231 "configure" |
10f2d63a | 14231 | #include "confdefs.h" |
698dcdb6 VZ |
14232 | #include <sys/types.h> |
14233 | #if STDC_HEADERS | |
14234 | #include <stdlib.h> | |
14235 | #include <stddef.h> | |
14236 | #endif | |
14237 | EOF | |
14238 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
14239 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
14240 | rm -rf conftest* | |
10f2d63a VZ |
14241 | ac_cv_type_pid_t=yes |
14242 | else | |
698dcdb6 VZ |
14243 | rm -rf conftest* |
14244 | ac_cv_type_pid_t=no | |
703e0a69 | 14245 | fi |
698dcdb6 | 14246 | rm -f conftest* |
1e487827 | 14247 | |
698dcdb6 VZ |
14248 | fi |
14249 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
14250 | if test $ac_cv_type_pid_t = no; then | |
14251 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
14252 | #define pid_t int |
14253 | EOF | |
14254 | ||
14255 | fi | |
14256 | ||
698dcdb6 | 14257 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
cb61c62d | 14258 | echo "configure:14259: checking for size_t" >&5 |
698dcdb6 VZ |
14259 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
14260 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14261 | else |
698dcdb6 | 14262 | cat > conftest.$ac_ext <<EOF |
cb61c62d | 14263 | #line 14264 "configure" |
10f2d63a | 14264 | #include "confdefs.h" |
698dcdb6 VZ |
14265 | #include <sys/types.h> |
14266 | #if STDC_HEADERS | |
14267 | #include <stdlib.h> | |
14268 | #include <stddef.h> | |
14269 | #endif | |
14270 | EOF | |
14271 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
14272 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
14273 | rm -rf conftest* | |
10f2d63a VZ |
14274 | ac_cv_type_size_t=yes |
14275 | else | |
698dcdb6 VZ |
14276 | rm -rf conftest* |
14277 | ac_cv_type_size_t=no | |
703e0a69 | 14278 | fi |
698dcdb6 | 14279 | rm -f conftest* |
1e487827 | 14280 | |
698dcdb6 VZ |
14281 | fi |
14282 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
14283 | if test $ac_cv_type_size_t = no; then | |
14284 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
14285 | #define size_t unsigned |
14286 | EOF | |
14287 | ||
14288 | fi | |
14289 | ||
698dcdb6 | 14290 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
cb61c62d | 14291 | echo "configure:14292: checking for uid_t in sys/types.h" >&5 |
698dcdb6 VZ |
14292 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
14293 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14294 | else |
698dcdb6 | 14295 | cat > conftest.$ac_ext <<EOF |
cb61c62d | 14296 | #line 14297 "configure" |
10f2d63a VZ |
14297 | #include "confdefs.h" |
14298 | #include <sys/types.h> | |
698dcdb6 | 14299 | EOF |
10f2d63a VZ |
14300 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
14301 | egrep "uid_t" >/dev/null 2>&1; then | |
698dcdb6 | 14302 | rm -rf conftest* |
10f2d63a VZ |
14303 | ac_cv_type_uid_t=yes |
14304 | else | |
698dcdb6 | 14305 | rm -rf conftest* |
10f2d63a VZ |
14306 | ac_cv_type_uid_t=no |
14307 | fi | |
14308 | rm -f conftest* | |
14309 | ||
14310 | fi | |
1e487827 | 14311 | |
698dcdb6 VZ |
14312 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
14313 | if test $ac_cv_type_uid_t = no; then | |
14314 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
14315 | #define uid_t int |
14316 | EOF | |
14317 | ||
698dcdb6 | 14318 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
14319 | #define gid_t int |
14320 | EOF | |
14321 | ||
14322 | fi | |
14323 | ||
1e487827 | 14324 | |
698dcdb6 | 14325 | echo $ac_n "checking for wchar_t""... $ac_c" 1>&6 |
cb61c62d | 14326 | echo "configure:14327: checking for wchar_t" >&5 |
698dcdb6 VZ |
14327 | if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then |
14328 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14329 | else | |
14330 | ||
14331 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 14332 | #line 14333 "configure" |
0046ff7c | 14333 | #include "confdefs.h" |
4b42290e GD |
14334 | |
14335 | #ifdef HAVE_WCHAR_H | |
0fbb762e MB |
14336 | # ifdef __CYGWIN__ |
14337 | # include <stddef.h> | |
14338 | # endif | |
4b42290e GD |
14339 | # include <wchar.h> |
14340 | #endif | |
14341 | #ifdef HAVE_STDLIB_H | |
14342 | # include <stdlib.h> | |
14343 | #endif | |
14344 | ||
698dcdb6 | 14345 | int main() { |
0046ff7c | 14346 | |
d836ee96 VZ |
14347 | wchar_t wc, *ws; |
14348 | wc = L'a'; | |
14349 | ws = L"Hello, world!"; | |
698dcdb6 VZ |
14350 | |
14351 | ; return 0; } | |
14352 | EOF | |
cb61c62d | 14353 | if { (eval echo configure:14354: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 14354 | rm -rf conftest* |
1f8ae82f | 14355 | wx_cv_type_wchar_t=yes |
0046ff7c | 14356 | else |
698dcdb6 VZ |
14357 | echo "configure: failed program was:" >&5 |
14358 | cat conftest.$ac_ext >&5 | |
14359 | rm -rf conftest* | |
14360 | wx_cv_type_wchar_t=no | |
d836ee96 | 14361 | |
6232543b | 14362 | fi |
698dcdb6 | 14363 | rm -f conftest* |
703e0a69 | 14364 | |
1e487827 | 14365 | fi |
698dcdb6 VZ |
14366 | |
14367 | echo "$ac_t""$wx_cv_type_wchar_t" 1>&6 | |
d836ee96 VZ |
14368 | |
14369 | if test "$wx_cv_type_wchar_t" = "yes"; then | |
698dcdb6 | 14370 | cat >> confdefs.h <<\EOF |
0046ff7c VS |
14371 | #define wxUSE_WCHAR_T 1 |
14372 | EOF | |
14373 | ||
14374 | fi | |
14375 | ||
19af3b06 VZ |
14376 | |
14377 | ac_ext=C | |
14378 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14379 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14380 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14381 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14382 | cross_compiling=$ac_cv_prog_cxx_cross | |
14383 | ||
d836ee96 | 14384 | echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6 |
cb61c62d | 14385 | echo "configure:14386: checking if size_t is unsigned int" >&5 |
d836ee96 VZ |
14386 | if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then |
14387 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14388 | else | |
dd2c8b7c | 14389 | cat > conftest.$ac_ext <<EOF |
cb61c62d | 14390 | #line 14391 "configure" |
d836ee96 VZ |
14391 | #include "confdefs.h" |
14392 | #include <stddef.h> | |
14393 | int main() { | |
14394 | ||
dd2c8b7c VZ |
14395 | return 0; } |
14396 | ||
d836ee96 | 14397 | struct Foo { void foo(size_t); void foo(unsigned int); }; |
dd2c8b7c VZ |
14398 | |
14399 | int bar() { | |
d836ee96 VZ |
14400 | |
14401 | ; return 0; } | |
14402 | EOF | |
cb61c62d | 14403 | if { (eval echo configure:14404: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d836ee96 VZ |
14404 | rm -rf conftest* |
14405 | wx_cv_size_t_is_uint=no | |
14406 | else | |
14407 | echo "configure: failed program was:" >&5 | |
14408 | cat conftest.$ac_ext >&5 | |
14409 | rm -rf conftest* | |
14410 | wx_cv_size_t_is_uint=yes | |
14411 | ||
14412 | fi | |
14413 | rm -f conftest* | |
14414 | ||
14415 | fi | |
14416 | ||
14417 | echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6 | |
14418 | ||
14419 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
14420 | cat >> confdefs.h <<\EOF | |
14421 | #define wxSIZE_T_IS_UINT 1 | |
14422 | EOF | |
14423 | ||
14424 | else | |
14425 | echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6 | |
cb61c62d | 14426 | echo "configure:14427: checking if size_t is unsigned long" >&5 |
d836ee96 VZ |
14427 | if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then |
14428 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14429 | else | |
14430 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 14431 | #line 14432 "configure" |
d836ee96 VZ |
14432 | #include "confdefs.h" |
14433 | #include <stddef.h> | |
14434 | int main() { | |
14435 | ||
dd2c8b7c VZ |
14436 | return 0; } |
14437 | ||
d836ee96 | 14438 | struct Foo { void foo(size_t); void foo(unsigned long); }; |
dd2c8b7c VZ |
14439 | |
14440 | int bar() { | |
d836ee96 VZ |
14441 | |
14442 | ; return 0; } | |
14443 | EOF | |
cb61c62d | 14444 | if { (eval echo configure:14445: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d836ee96 VZ |
14445 | rm -rf conftest* |
14446 | wx_cv_size_t_is_ulong=no | |
14447 | else | |
14448 | echo "configure: failed program was:" >&5 | |
14449 | cat conftest.$ac_ext >&5 | |
14450 | rm -rf conftest* | |
14451 | wx_cv_size_t_is_ulong=yes | |
14452 | ||
14453 | fi | |
14454 | rm -f conftest* | |
14455 | ||
14456 | fi | |
14457 | ||
14458 | echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6 | |
14459 | ||
14460 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
14461 | cat >> confdefs.h <<\EOF | |
14462 | #define wxSIZE_T_IS_ULONG 1 | |
14463 | EOF | |
14464 | ||
14465 | fi | |
14466 | fi | |
14467 | ||
19af3b06 VZ |
14468 | ac_ext=c |
14469 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14470 | ac_cpp='$CPP $CPPFLAGS' | |
14471 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14472 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14473 | cross_compiling=$ac_cv_prog_cc_cross | |
14474 | ||
14475 | ||
1e487827 | 14476 | |
698dcdb6 | 14477 | echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6 |
cb61c62d | 14478 | echo "configure:14479: checking for pw_gecos in struct passwd" >&5 |
698dcdb6 VZ |
14479 | if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then |
14480 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14481 | else | |
14482 | ||
14483 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 14484 | #line 14485 "configure" |
b12915c1 VZ |
14485 | #include "confdefs.h" |
14486 | #include <pwd.h> | |
698dcdb6 | 14487 | int main() { |
b12915c1 VZ |
14488 | |
14489 | char *p; | |
14490 | struct passwd *pw; | |
14491 | p = pw->pw_gecos; | |
698dcdb6 VZ |
14492 | |
14493 | ; return 0; } | |
14494 | EOF | |
cb61c62d | 14495 | if { (eval echo configure:14496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
14496 | rm -rf conftest* |
14497 | ||
b12915c1 | 14498 | wx_cv_struct_pw_gecos=yes |
698dcdb6 | 14499 | |
b12915c1 | 14500 | else |
698dcdb6 VZ |
14501 | echo "configure: failed program was:" >&5 |
14502 | cat conftest.$ac_ext >&5 | |
14503 | rm -rf conftest* | |
14504 | ||
b12915c1 | 14505 | wx_cv_struct_pw_gecos=no |
698dcdb6 VZ |
14506 | |
14507 | ||
6232543b | 14508 | fi |
698dcdb6 VZ |
14509 | rm -f conftest* |
14510 | ||
703e0a69 | 14511 | |
1e487827 | 14512 | fi |
698dcdb6 VZ |
14513 | |
14514 | echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6 | |
b12915c1 | 14515 | |
bd3277fe | 14516 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
698dcdb6 | 14517 | cat >> confdefs.h <<\EOF |
bd3277fe VZ |
14518 | #define HAVE_PW_GECOS 1 |
14519 | EOF | |
14520 | ||
14521 | fi | |
14522 | ||
698dcdb6 VZ |
14523 | |
14524 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
cb61c62d | 14525 | echo "configure:14526: checking for working const" >&5 |
698dcdb6 VZ |
14526 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
14527 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14528 | else |
698dcdb6 | 14529 | cat > conftest.$ac_ext <<EOF |
cb61c62d | 14530 | #line 14531 "configure" |
10f2d63a | 14531 | #include "confdefs.h" |
698dcdb6 VZ |
14532 | |
14533 | int main() { | |
14534 | ||
14535 | /* Ultrix mips cc rejects this. */ | |
4cdb0ab0 | 14536 | typedef int charset[2]; const charset x; |
698dcdb6 VZ |
14537 | /* SunOS 4.1.1 cc rejects this. */ |
14538 | char const *const *ccp; | |
14539 | char **p; | |
14540 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
14541 | struct point {int x, y;}; | |
14542 | static struct point const zero = {0,0}; | |
14543 | /* AIX XL C 1.02.0.0 rejects this. | |
14544 | It does not let you subtract one const X* pointer from another in an arm | |
14545 | of an if-expression whose if-part is not a constant expression */ | |
14546 | const char *g = "string"; | |
14547 | ccp = &g + (g ? g-g : 0); | |
14548 | /* HPUX 7.0 cc rejects these. */ | |
14549 | ++ccp; | |
14550 | p = (char**) ccp; | |
14551 | ccp = (char const *const *) p; | |
14552 | { /* SCO 3.2v4 cc rejects this. */ | |
14553 | char *t; | |
14554 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
14555 | ||
14556 | *t++ = 0; | |
10f2d63a | 14557 | } |
698dcdb6 VZ |
14558 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
14559 | int x[] = {25, 17}; | |
14560 | const int *foo = &x[0]; | |
14561 | ++foo; | |
703e0a69 | 14562 | } |
698dcdb6 VZ |
14563 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
14564 | typedef const int *iptr; | |
14565 | iptr p = 0; | |
14566 | ++p; | |
6232543b | 14567 | } |
698dcdb6 VZ |
14568 | { /* AIX XL C 1.02.0.0 rejects this saying |
14569 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
14570 | struct s { int j; const int *ap[3]; }; | |
14571 | struct s *b; b->j = 5; | |
1e487827 | 14572 | } |
698dcdb6 VZ |
14573 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
14574 | const int foo = 10; | |
14575 | } | |
4f14bcd8 GD |
14576 | |
14577 | ; return 0; } | |
698dcdb6 | 14578 | EOF |
cb61c62d | 14579 | if { (eval echo configure:14580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
14580 | rm -rf conftest* |
14581 | ac_cv_c_const=yes | |
698dcdb6 VZ |
14582 | else |
14583 | echo "configure: failed program was:" >&5 | |
14584 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
14585 | rm -rf conftest* |
14586 | ac_cv_c_const=no | |
703e0a69 | 14587 | fi |
4f14bcd8 | 14588 | rm -f conftest* |
698dcdb6 VZ |
14589 | fi |
14590 | ||
4f14bcd8 GD |
14591 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
14592 | if test $ac_cv_c_const = no; then | |
14593 | cat >> confdefs.h <<\EOF | |
14594 | #define const | |
698dcdb6 VZ |
14595 | EOF |
14596 | ||
4f14bcd8 | 14597 | fi |
698dcdb6 | 14598 | |
4f14bcd8 | 14599 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
cb61c62d | 14600 | echo "configure:14601: checking for inline" >&5 |
4f14bcd8 | 14601 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
698dcdb6 | 14602 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 14603 | else |
4f14bcd8 GD |
14604 | ac_cv_c_inline=no |
14605 | for ac_kw in inline __inline__ __inline; do | |
698dcdb6 | 14606 | cat > conftest.$ac_ext <<EOF |
cb61c62d | 14607 | #line 14608 "configure" |
10f2d63a | 14608 | #include "confdefs.h" |
4f14bcd8 GD |
14609 | |
14610 | int main() { | |
4cdb0ab0 | 14611 | } $ac_kw foo() { |
4f14bcd8 | 14612 | ; return 0; } |
698dcdb6 | 14613 | EOF |
cb61c62d | 14614 | if { (eval echo configure:14615: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
14615 | rm -rf conftest* |
14616 | ac_cv_c_inline=$ac_kw; break | |
10f2d63a | 14617 | else |
698dcdb6 VZ |
14618 | echo "configure: failed program was:" >&5 |
14619 | cat conftest.$ac_ext >&5 | |
10f2d63a | 14620 | fi |
4f14bcd8 GD |
14621 | rm -f conftest* |
14622 | done | |
698dcdb6 | 14623 | |
10f2d63a | 14624 | fi |
4f14bcd8 GD |
14625 | |
14626 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
14627 | case "$ac_cv_c_inline" in | |
14628 | inline | yes) ;; | |
14629 | no) cat >> confdefs.h <<\EOF | |
14630 | #define inline | |
14631 | EOF | |
14632 | ;; | |
14633 | *) cat >> confdefs.h <<EOF | |
14634 | #define inline $ac_cv_c_inline | |
698dcdb6 | 14635 | EOF |
4f14bcd8 GD |
14636 | ;; |
14637 | esac | |
698dcdb6 VZ |
14638 | |
14639 | ||
4f14bcd8 | 14640 | echo $ac_n "checking size of char""... $ac_c" 1>&6 |
cb61c62d | 14641 | echo "configure:14642: checking size of char" >&5 |
4f14bcd8 | 14642 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
698dcdb6 VZ |
14643 | echo $ac_n "(cached) $ac_c" 1>&6 |
14644 | else | |
14645 | if test "$cross_compiling" = yes; then | |
4f14bcd8 | 14646 | ac_cv_sizeof_char=1 |
698dcdb6 VZ |
14647 | else |
14648 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 14649 | #line 14650 "configure" |
698dcdb6 VZ |
14650 | #include "confdefs.h" |
14651 | #include <stdio.h> | |
cb61c62d | 14652 | main() |
698dcdb6 VZ |
14653 | { |
14654 | FILE *f=fopen("conftestval", "w"); | |
cb61c62d | 14655 | if (!f) exit(1); |
4f14bcd8 | 14656 | fprintf(f, "%d\n", sizeof(char)); |
cb61c62d | 14657 | exit(0); |
698dcdb6 VZ |
14658 | } |
14659 | EOF | |
cb61c62d | 14660 | if { (eval echo configure:14661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 14661 | then |
4f14bcd8 | 14662 | ac_cv_sizeof_char=`cat conftestval` |
6232543b | 14663 | else |
698dcdb6 VZ |
14664 | echo "configure: failed program was:" >&5 |
14665 | cat conftest.$ac_ext >&5 | |
14666 | rm -fr conftest* | |
4f14bcd8 | 14667 | ac_cv_sizeof_char=0 |
6232543b | 14668 | fi |
698dcdb6 VZ |
14669 | rm -fr conftest* |
14670 | fi | |
14671 | ||
703e0a69 | 14672 | fi |
4f14bcd8 | 14673 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
698dcdb6 | 14674 | cat >> confdefs.h <<EOF |
4f14bcd8 | 14675 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
10f2d63a VZ |
14676 | EOF |
14677 | ||
1e487827 | 14678 | |
4f14bcd8 | 14679 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
cb61c62d | 14680 | echo "configure:14681: checking size of short" >&5 |
4f14bcd8 | 14681 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
698dcdb6 VZ |
14682 | echo $ac_n "(cached) $ac_c" 1>&6 |
14683 | else | |
4f14bcd8 GD |
14684 | if test "$cross_compiling" = yes; then |
14685 | ac_cv_sizeof_short=2 | |
b93d0d08 | 14686 | else |
698dcdb6 | 14687 | cat > conftest.$ac_ext <<EOF |
cb61c62d | 14688 | #line 14689 "configure" |
b93d0d08 | 14689 | #include "confdefs.h" |
4f14bcd8 | 14690 | #include <stdio.h> |
cb61c62d | 14691 | main() |
4f14bcd8 GD |
14692 | { |
14693 | FILE *f=fopen("conftestval", "w"); | |
cb61c62d | 14694 | if (!f) exit(1); |
4f14bcd8 | 14695 | fprintf(f, "%d\n", sizeof(short)); |
cb61c62d | 14696 | exit(0); |
4f14bcd8 | 14697 | } |
698dcdb6 | 14698 | EOF |
cb61c62d | 14699 | if { (eval echo configure:14700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 14700 | then |
4f14bcd8 | 14701 | ac_cv_sizeof_short=`cat conftestval` |
b93d0d08 | 14702 | else |
698dcdb6 VZ |
14703 | echo "configure: failed program was:" >&5 |
14704 | cat conftest.$ac_ext >&5 | |
14705 | rm -fr conftest* | |
4f14bcd8 | 14706 | ac_cv_sizeof_short=0 |
b93d0d08 | 14707 | fi |
698dcdb6 | 14708 | rm -fr conftest* |
b93d0d08 VS |
14709 | fi |
14710 | ||
b93d0d08 | 14711 | fi |
4f14bcd8 | 14712 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
698dcdb6 | 14713 | cat >> confdefs.h <<EOF |
4f14bcd8 | 14714 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
b93d0d08 VS |
14715 | EOF |
14716 | ||
698dcdb6 | 14717 | |
4f14bcd8 | 14718 | echo $ac_n "checking size of int *""... $ac_c" 1>&6 |
cb61c62d | 14719 | echo "configure:14720: checking size of int *" >&5 |
4f14bcd8 | 14720 | if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then |
698dcdb6 | 14721 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 14722 | else |
4f14bcd8 GD |
14723 | if test "$cross_compiling" = yes; then |
14724 | ac_cv_sizeof_int_p=4 | |
3a922bb4 | 14725 | else |
3a922bb4 | 14726 | cat > conftest.$ac_ext <<EOF |
cb61c62d | 14727 | #line 14728 "configure" |
3a922bb4 | 14728 | #include "confdefs.h" |
4f14bcd8 | 14729 | #include <stdio.h> |
cb61c62d | 14730 | main() |
4f14bcd8 GD |
14731 | { |
14732 | FILE *f=fopen("conftestval", "w"); | |
cb61c62d | 14733 | if (!f) exit(1); |
4f14bcd8 | 14734 | fprintf(f, "%d\n", sizeof(int *)); |
cb61c62d | 14735 | exit(0); |
4f14bcd8 GD |
14736 | } |
14737 | EOF | |
cb61c62d | 14738 | if { (eval echo configure:14739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
14739 | then |
14740 | ac_cv_sizeof_int_p=`cat conftestval` | |
14741 | else | |
14742 | echo "configure: failed program was:" >&5 | |
14743 | cat conftest.$ac_ext >&5 | |
14744 | rm -fr conftest* | |
14745 | ac_cv_sizeof_int_p=0 | |
3a922bb4 | 14746 | fi |
4f14bcd8 | 14747 | rm -fr conftest* |
3a922bb4 | 14748 | fi |
698dcdb6 | 14749 | |
4f14bcd8 GD |
14750 | fi |
14751 | echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6 | |
14752 | cat >> confdefs.h <<EOF | |
14753 | #define SIZEOF_INT_P $ac_cv_sizeof_int_p | |
10f2d63a VZ |
14754 | EOF |
14755 | ||
703e0a69 | 14756 | |
4f14bcd8 | 14757 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
cb61c62d | 14758 | echo "configure:14759: checking size of int" >&5 |
4f14bcd8 | 14759 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
698dcdb6 | 14760 | echo $ac_n "(cached) $ac_c" 1>&6 |
4f14bcd8 GD |
14761 | else |
14762 | if test "$cross_compiling" = yes; then | |
14763 | ac_cv_sizeof_int=4 | |
698dcdb6 VZ |
14764 | else |
14765 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 14766 | #line 14767 "configure" |
10f2d63a | 14767 | #include "confdefs.h" |
4f14bcd8 | 14768 | #include <stdio.h> |
cb61c62d | 14769 | main() |
4f14bcd8 GD |
14770 | { |
14771 | FILE *f=fopen("conftestval", "w"); | |
cb61c62d | 14772 | if (!f) exit(1); |
4f14bcd8 | 14773 | fprintf(f, "%d\n", sizeof(int)); |
cb61c62d | 14774 | exit(0); |
4f14bcd8 | 14775 | } |
698dcdb6 | 14776 | EOF |
cb61c62d | 14777 | if { (eval echo configure:14778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
14778 | then |
14779 | ac_cv_sizeof_int=`cat conftestval` | |
10f2d63a | 14780 | else |
698dcdb6 | 14781 | echo "configure: failed program was:" >&5 |
10f2d63a | 14782 | cat conftest.$ac_ext >&5 |
4f14bcd8 GD |
14783 | rm -fr conftest* |
14784 | ac_cv_sizeof_int=0 | |
10f2d63a | 14785 | fi |
4f14bcd8 | 14786 | rm -fr conftest* |
10f2d63a | 14787 | fi |
10f2d63a | 14788 | |
4f14bcd8 GD |
14789 | fi |
14790 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | |
14791 | cat >> confdefs.h <<EOF | |
14792 | #define SIZEOF_INT $ac_cv_sizeof_int | |
10f2d63a VZ |
14793 | EOF |
14794 | ||
698dcdb6 | 14795 | |
4f14bcd8 | 14796 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
cb61c62d | 14797 | echo "configure:14798: checking size of long" >&5 |
4f14bcd8 | 14798 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
698dcdb6 VZ |
14799 | echo $ac_n "(cached) $ac_c" 1>&6 |
14800 | else | |
4f14bcd8 GD |
14801 | if test "$cross_compiling" = yes; then |
14802 | ac_cv_sizeof_long=4 | |
14803 | else | |
14804 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 14805 | #line 14806 "configure" |
10f2d63a | 14806 | #include "confdefs.h" |
4f14bcd8 | 14807 | #include <stdio.h> |
cb61c62d | 14808 | main() |
4f14bcd8 GD |
14809 | { |
14810 | FILE *f=fopen("conftestval", "w"); | |
cb61c62d | 14811 | if (!f) exit(1); |
4f14bcd8 | 14812 | fprintf(f, "%d\n", sizeof(long)); |
cb61c62d | 14813 | exit(0); |
4f14bcd8 | 14814 | } |
698dcdb6 | 14815 | EOF |
cb61c62d | 14816 | if { (eval echo configure:14817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
14817 | then |
14818 | ac_cv_sizeof_long=`cat conftestval` | |
10f2d63a | 14819 | else |
698dcdb6 VZ |
14820 | echo "configure: failed program was:" >&5 |
14821 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
14822 | rm -fr conftest* |
14823 | ac_cv_sizeof_long=0 | |
10f2d63a | 14824 | fi |
4f14bcd8 | 14825 | rm -fr conftest* |
10f2d63a | 14826 | fi |
698dcdb6 | 14827 | |
4f14bcd8 GD |
14828 | fi |
14829 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 | |
14830 | cat >> confdefs.h <<EOF | |
14831 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
10f2d63a VZ |
14832 | EOF |
14833 | ||
698dcdb6 | 14834 | |
4f14bcd8 | 14835 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 |
cb61c62d | 14836 | echo "configure:14837: checking size of long long" >&5 |
4f14bcd8 | 14837 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
698dcdb6 | 14838 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 14839 | else |
4f14bcd8 GD |
14840 | if test "$cross_compiling" = yes; then |
14841 | ac_cv_sizeof_long_long=0 | |
14842 | else | |
14843 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 14844 | #line 14845 "configure" |
10f2d63a | 14845 | #include "confdefs.h" |
4f14bcd8 | 14846 | #include <stdio.h> |
cb61c62d | 14847 | main() |
4f14bcd8 GD |
14848 | { |
14849 | FILE *f=fopen("conftestval", "w"); | |
cb61c62d | 14850 | if (!f) exit(1); |
4f14bcd8 | 14851 | fprintf(f, "%d\n", sizeof(long long)); |
cb61c62d | 14852 | exit(0); |
4f14bcd8 | 14853 | } |
698dcdb6 | 14854 | EOF |
cb61c62d | 14855 | if { (eval echo configure:14856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
14856 | then |
14857 | ac_cv_sizeof_long_long=`cat conftestval` | |
698dcdb6 VZ |
14858 | else |
14859 | echo "configure: failed program was:" >&5 | |
14860 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
14861 | rm -fr conftest* |
14862 | ac_cv_sizeof_long_long=0 | |
14863 | fi | |
14864 | rm -fr conftest* | |
698dcdb6 | 14865 | fi |
698dcdb6 VZ |
14866 | |
14867 | fi | |
4f14bcd8 GD |
14868 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
14869 | cat >> confdefs.h <<EOF | |
14870 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
10f2d63a VZ |
14871 | EOF |
14872 | ||
10f2d63a | 14873 | |
4f14bcd8 GD |
14874 | |
14875 | echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 | |
cb61c62d | 14876 | echo "configure:14877: checking size of wchar_t" >&5 |
4f14bcd8 | 14877 | if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then |
698dcdb6 | 14878 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 14879 | else |
4f14bcd8 GD |
14880 | |
14881 | if test "$cross_compiling" = yes; then | |
14882 | wx_cv_sizeof_wchar_t=4 | |
14883 | ||
14884 | else | |
14885 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 14886 | #line 14887 "configure" |
10f2d63a | 14887 | #include "confdefs.h" |
698dcdb6 | 14888 | |
4f14bcd8 | 14889 | #ifdef HAVE_WCHAR_H |
0fbb762e MB |
14890 | # ifdef __CYGWIN__ |
14891 | # include <stddef.h> | |
14892 | # endif | |
4f14bcd8 GD |
14893 | # include <wchar.h> |
14894 | #endif | |
14895 | #ifdef HAVE_STDLIB_H | |
14896 | # include <stdlib.h> | |
14897 | #endif | |
14898 | #include <stdio.h> | |
14899 | int main() | |
14900 | { | |
14901 | FILE *f=fopen("conftestval", "w"); | |
14902 | if (!f) exit(1); | |
14903 | fprintf(f, "%i", sizeof(wchar_t)); | |
14904 | exit(0); | |
14905 | } | |
14906 | ||
698dcdb6 | 14907 | EOF |
cb61c62d | 14908 | if { (eval echo configure:14909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
14909 | then |
14910 | wx_cv_sizeof_wchar_t=`cat conftestval` | |
698dcdb6 VZ |
14911 | else |
14912 | echo "configure: failed program was:" >&5 | |
14913 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
14914 | rm -fr conftest* |
14915 | wx_cv_sizeof_wchar_t=0 | |
698dcdb6 | 14916 | fi |
4f14bcd8 GD |
14917 | rm -fr conftest* |
14918 | fi | |
14919 | ||
698dcdb6 VZ |
14920 | |
14921 | fi | |
4f14bcd8 GD |
14922 | |
14923 | echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6 | |
14924 | ||
14925 | cat >> confdefs.h <<EOF | |
14926 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t | |
10f2d63a VZ |
14927 | EOF |
14928 | ||
18dbb1f6 | 14929 | |
4f14bcd8 | 14930 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
cb61c62d | 14931 | echo "configure:14932: checking whether byte ordering is bigendian" >&5 |
4f14bcd8 | 14932 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
18dbb1f6 VZ |
14933 | echo $ac_n "(cached) $ac_c" 1>&6 |
14934 | else | |
4f14bcd8 GD |
14935 | ac_cv_c_bigendian=unknown |
14936 | # See if sys/param.h defines the BYTE_ORDER macro. | |
18dbb1f6 | 14937 | cat > conftest.$ac_ext <<EOF |
cb61c62d | 14938 | #line 14939 "configure" |
18dbb1f6 | 14939 | #include "confdefs.h" |
4f14bcd8 GD |
14940 | #include <sys/types.h> |
14941 | #include <sys/param.h> | |
14942 | int main() { | |
18dbb1f6 | 14943 | |
4f14bcd8 GD |
14944 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
14945 | bogus endian macros | |
14946 | #endif | |
14947 | ; return 0; } | |
14948 | EOF | |
cb61c62d | 14949 | if { (eval echo configure:14950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
14950 | rm -rf conftest* |
14951 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
14952 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 14953 | #line 14954 "configure" |
4f14bcd8 GD |
14954 | #include "confdefs.h" |
14955 | #include <sys/types.h> | |
14956 | #include <sys/param.h> | |
18dbb1f6 | 14957 | int main() { |
4f14bcd8 GD |
14958 | |
14959 | #if BYTE_ORDER != BIG_ENDIAN | |
14960 | not big endian | |
14961 | #endif | |
18dbb1f6 VZ |
14962 | ; return 0; } |
14963 | EOF | |
cb61c62d | 14964 | if { (eval echo configure:14965: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
18dbb1f6 | 14965 | rm -rf conftest* |
4f14bcd8 | 14966 | ac_cv_c_bigendian=yes |
18dbb1f6 VZ |
14967 | else |
14968 | echo "configure: failed program was:" >&5 | |
14969 | cat conftest.$ac_ext >&5 | |
14970 | rm -rf conftest* | |
4f14bcd8 | 14971 | ac_cv_c_bigendian=no |
18dbb1f6 VZ |
14972 | fi |
14973 | rm -f conftest* | |
698dcdb6 | 14974 | else |
4f14bcd8 GD |
14975 | echo "configure: failed program was:" >&5 |
14976 | cat conftest.$ac_ext >&5 | |
1e487827 | 14977 | fi |
4f14bcd8 GD |
14978 | rm -f conftest* |
14979 | if test $ac_cv_c_bigendian = unknown; then | |
14980 | if test "$cross_compiling" = yes; then | |
14981 | ac_cv_c_bigendian=unknown | |
b3e8d00a VZ |
14982 | else |
14983 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 14984 | #line 14985 "configure" |
b3e8d00a | 14985 | #include "confdefs.h" |
4f14bcd8 GD |
14986 | main () { |
14987 | /* Are we little or big endian? From Harbison&Steele. */ | |
14988 | union | |
14989 | { | |
14990 | long l; | |
14991 | char c[sizeof (long)]; | |
14992 | } u; | |
14993 | u.l = 1; | |
14994 | exit (u.c[sizeof (long) - 1] == 1); | |
14995 | } | |
b3e8d00a | 14996 | EOF |
cb61c62d | 14997 | if { (eval echo configure:14998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
14998 | then |
14999 | ac_cv_c_bigendian=no | |
b3e8d00a VZ |
15000 | else |
15001 | echo "configure: failed program was:" >&5 | |
15002 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
15003 | rm -fr conftest* |
15004 | ac_cv_c_bigendian=yes | |
b3e8d00a | 15005 | fi |
4f14bcd8 | 15006 | rm -fr conftest* |
b3e8d00a VZ |
15007 | fi |
15008 | ||
4f14bcd8 GD |
15009 | fi |
15010 | fi | |
15011 | ||
15012 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
15013 | if test $ac_cv_c_bigendian = unknown; then | |
15014 | 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 | |
15015 | fi | |
15016 | if test $ac_cv_c_bigendian = yes; then | |
15017 | cat >> confdefs.h <<\EOF | |
15018 | #define WORDS_BIGENDIAN 1 | |
b3e8d00a | 15019 | EOF |
4f14bcd8 | 15020 | |
b3e8d00a | 15021 | fi |
b3e8d00a VZ |
15022 | |
15023 | ||
4f14bcd8 | 15024 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 |
cb61c62d | 15025 | echo "configure:15026: checking how to run the C++ preprocessor" >&5 |
4f14bcd8 GD |
15026 | if test -z "$CXXCPP"; then |
15027 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then | |
698dcdb6 VZ |
15028 | echo $ac_n "(cached) $ac_c" 1>&6 |
15029 | else | |
4f14bcd8 GD |
15030 | ac_ext=C |
15031 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15032 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15033 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15034 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15035 | cross_compiling=$ac_cv_prog_cxx_cross | |
15036 | CXXCPP="${CXX-g++} -E" | |
698dcdb6 | 15037 | cat > conftest.$ac_ext <<EOF |
cb61c62d | 15038 | #line 15039 "configure" |
10f2d63a | 15039 | #include "confdefs.h" |
4f14bcd8 | 15040 | #include <stdlib.h> |
698dcdb6 | 15041 | EOF |
4f14bcd8 | 15042 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
cb61c62d | 15043 | { (eval echo configure:15044: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
15044 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15045 | if test -z "$ac_err"; then | |
15046 | : | |
698dcdb6 | 15047 | else |
4f14bcd8 | 15048 | echo "$ac_err" >&5 |
698dcdb6 VZ |
15049 | echo "configure: failed program was:" >&5 |
15050 | cat conftest.$ac_ext >&5 | |
15051 | rm -rf conftest* | |
4f14bcd8 | 15052 | CXXCPP=/lib/cpp |
698dcdb6 VZ |
15053 | fi |
15054 | rm -f conftest* | |
4f14bcd8 GD |
15055 | ac_cv_prog_CXXCPP="$CXXCPP" |
15056 | ac_ext=C | |
15057 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15058 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15059 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15060 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15061 | cross_compiling=$ac_cv_prog_cxx_cross | |
15062 | fi | |
698dcdb6 | 15063 | fi |
4f14bcd8 GD |
15064 | CXXCPP="$ac_cv_prog_CXXCPP" |
15065 | echo "$ac_t""$CXXCPP" 1>&6 | |
698dcdb6 | 15066 | |
4f14bcd8 GD |
15067 | |
15068 | if test "$cross_compiling" = "yes"; then | |
15069 | cat >> confdefs.h <<\EOF | |
15070 | #define wxUSE_IOSTREAMH 1 | |
698dcdb6 VZ |
15071 | EOF |
15072 | ||
4f14bcd8 GD |
15073 | else |
15074 | ||
15075 | ac_ext=C | |
15076 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15077 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15078 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15079 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15080 | cross_compiling=$ac_cv_prog_cxx_cross | |
698dcdb6 | 15081 | |
4f14bcd8 GD |
15082 | |
15083 | for ac_hdr in iostream | |
15084 | do | |
15085 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
15086 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
cb61c62d | 15087 | echo "configure:15088: checking for $ac_hdr" >&5 |
4f14bcd8 | 15088 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
698dcdb6 VZ |
15089 | echo $ac_n "(cached) $ac_c" 1>&6 |
15090 | else | |
15091 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 15092 | #line 15093 "configure" |
10f2d63a | 15093 | #include "confdefs.h" |
4f14bcd8 | 15094 | #include <$ac_hdr> |
698dcdb6 | 15095 | EOF |
4f14bcd8 | 15096 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
cb61c62d | 15097 | { (eval echo configure:15098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
15098 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15099 | if test -z "$ac_err"; then | |
698dcdb6 | 15100 | rm -rf conftest* |
4f14bcd8 | 15101 | eval "ac_cv_header_$ac_safe=yes" |
698dcdb6 | 15102 | else |
4f14bcd8 | 15103 | echo "$ac_err" >&5 |
698dcdb6 VZ |
15104 | echo "configure: failed program was:" >&5 |
15105 | cat conftest.$ac_ext >&5 | |
15106 | rm -rf conftest* | |
4f14bcd8 | 15107 | eval "ac_cv_header_$ac_safe=no" |
698dcdb6 VZ |
15108 | fi |
15109 | rm -f conftest* | |
15110 | fi | |
4f14bcd8 | 15111 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
698dcdb6 | 15112 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
15113 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
15114 | cat >> confdefs.h <<EOF | |
15115 | #define $ac_tr_hdr 1 | |
10f2d63a | 15116 | EOF |
4f14bcd8 | 15117 | |
698dcdb6 VZ |
15118 | else |
15119 | echo "$ac_t""no" 1>&6 | |
10f2d63a | 15120 | fi |
4f14bcd8 | 15121 | done |
10f2d63a | 15122 | |
10f2d63a | 15123 | |
4f14bcd8 GD |
15124 | if test "$ac_cv_header_iostream" = "yes" ; then |
15125 | : | |
15126 | else | |
15127 | cat >> confdefs.h <<\EOF | |
15128 | #define wxUSE_IOSTREAMH 1 | |
15129 | EOF | |
15130 | ||
15131 | fi | |
1e487827 | 15132 | |
4f14bcd8 GD |
15133 | ac_ext=c |
15134 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15135 | ac_cpp='$CPP $CPPFLAGS' | |
15136 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15137 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15138 | cross_compiling=$ac_cv_prog_cc_cross | |
698dcdb6 | 15139 | |
4f14bcd8 | 15140 | fi |
698dcdb6 VZ |
15141 | |
15142 | ||
15143 | ||
4f14bcd8 | 15144 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 |
cb61c62d | 15145 | echo "configure:15146: checking if C++ compiler supports bool" >&5 |
4f14bcd8 | 15146 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then |
698dcdb6 VZ |
15147 | echo $ac_n "(cached) $ac_c" 1>&6 |
15148 | else | |
15149 | ||
4f14bcd8 GD |
15150 | |
15151 | ac_ext=C | |
15152 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15153 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15154 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15155 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15156 | cross_compiling=$ac_cv_prog_cxx_cross | |
f6bcfd97 | 15157 | |
10f2d63a | 15158 | |
4f14bcd8 | 15159 | cat > conftest.$ac_ext <<EOF |
cb61c62d | 15160 | #line 15161 "configure" |
4f14bcd8 | 15161 | #include "confdefs.h" |
10f2d63a | 15162 | |
4f14bcd8 GD |
15163 | |
15164 | int main() { | |
f6bcfd97 | 15165 | |
4f14bcd8 | 15166 | bool b = true; |
f6bcfd97 | 15167 | |
4f14bcd8 GD |
15168 | return 0; |
15169 | ||
698dcdb6 VZ |
15170 | ; return 0; } |
15171 | EOF | |
cb61c62d | 15172 | if { (eval echo configure:15173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
15173 | rm -rf conftest* |
15174 | ||
4f14bcd8 GD |
15175 | wx_cv_cpp_bool=yes |
15176 | ||
10f2d63a | 15177 | else |
698dcdb6 VZ |
15178 | echo "configure: failed program was:" >&5 |
15179 | cat conftest.$ac_ext >&5 | |
15180 | rm -rf conftest* | |
15181 | ||
4f14bcd8 GD |
15182 | wx_cv_cpp_bool=no |
15183 | ||
15184 | ||
15185 | fi | |
15186 | rm -f conftest* | |
c521c494 | 15187 | |
4f14bcd8 GD |
15188 | ac_ext=c |
15189 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15190 | ac_cpp='$CPP $CPPFLAGS' | |
15191 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15192 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15193 | cross_compiling=$ac_cv_prog_cc_cross | |
c521c494 | 15194 | |
4f14bcd8 GD |
15195 | |
15196 | fi | |
c521c494 | 15197 | |
4f14bcd8 | 15198 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 |
c521c494 | 15199 | |
4f14bcd8 GD |
15200 | if test "$wx_cv_cpp_bool" = "yes"; then |
15201 | cat >> confdefs.h <<\EOF | |
15202 | #define HAVE_BOOL 1 | |
15203 | EOF | |
c521c494 | 15204 | |
4f14bcd8 GD |
15205 | fi |
15206 | ||
15207 | ||
15208 | ||
15209 | echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6 | |
cb61c62d | 15210 | echo "configure:15211: checking for wcslen in -lc" >&5 |
4f14bcd8 GD |
15211 | ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'` |
15212 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15213 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15214 | else | |
15215 | ac_save_LIBS="$LIBS" | |
15216 | LIBS="-lc $LIBS" | |
15217 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 15218 | #line 15219 "configure" |
4f14bcd8 GD |
15219 | #include "confdefs.h" |
15220 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15221 | /* We use char because int might match the return type of a gcc2 | |
15222 | builtin and then its argument prototype would still apply. */ | |
15223 | char wcslen(); | |
15224 | ||
15225 | int main() { | |
15226 | wcslen() | |
698dcdb6 VZ |
15227 | ; return 0; } |
15228 | EOF | |
cb61c62d | 15229 | if { (eval echo configure:15230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15230 | rm -rf conftest* |
4f14bcd8 | 15231 | eval "ac_cv_lib_$ac_lib_var=yes" |
c521c494 | 15232 | else |
698dcdb6 VZ |
15233 | echo "configure: failed program was:" >&5 |
15234 | cat conftest.$ac_ext >&5 | |
15235 | rm -rf conftest* | |
4f14bcd8 | 15236 | eval "ac_cv_lib_$ac_lib_var=no" |
6232543b | 15237 | fi |
698dcdb6 | 15238 | rm -f conftest* |
4f14bcd8 | 15239 | LIBS="$ac_save_LIBS" |
703e0a69 | 15240 | |
1e487827 | 15241 | fi |
4f14bcd8 GD |
15242 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
15243 | echo "$ac_t""yes" 1>&6 | |
15244 | ||
15245 | cat >> confdefs.h <<\EOF | |
15246 | #define HAVE_WCSLEN 1 | |
9d8deca0 VZ |
15247 | EOF |
15248 | ||
3d63bc3a | 15249 | WCHAR_LINK= |
4f14bcd8 | 15250 | |
9d8deca0 | 15251 | else |
4f14bcd8 | 15252 | echo "$ac_t""no" 1>&6 |
9d8deca0 | 15253 | |
4f14bcd8 | 15254 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 |
cb61c62d | 15255 | echo "configure:15256: checking for wcslen in -lw" >&5 |
4f14bcd8 GD |
15256 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` |
15257 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 | 15258 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 15259 | else |
4f14bcd8 GD |
15260 | ac_save_LIBS="$LIBS" |
15261 | LIBS="-lw $LIBS" | |
15262 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 15263 | #line 15264 "configure" |
10f2d63a | 15264 | #include "confdefs.h" |
4f14bcd8 GD |
15265 | /* Override any gcc2 internal prototype to avoid an error. */ |
15266 | /* We use char because int might match the return type of a gcc2 | |
15267 | builtin and then its argument prototype would still apply. */ | |
15268 | char wcslen(); | |
10f2d63a | 15269 | |
698dcdb6 | 15270 | int main() { |
4f14bcd8 | 15271 | wcslen() |
698dcdb6 VZ |
15272 | ; return 0; } |
15273 | EOF | |
cb61c62d | 15274 | if { (eval echo configure:15275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15275 | rm -rf conftest* |
4f14bcd8 | 15276 | eval "ac_cv_lib_$ac_lib_var=yes" |
10f2d63a | 15277 | else |
698dcdb6 VZ |
15278 | echo "configure: failed program was:" >&5 |
15279 | cat conftest.$ac_ext >&5 | |
15280 | rm -rf conftest* | |
4f14bcd8 | 15281 | eval "ac_cv_lib_$ac_lib_var=no" |
6232543b | 15282 | fi |
698dcdb6 | 15283 | rm -f conftest* |
4f14bcd8 | 15284 | LIBS="$ac_save_LIBS" |
703e0a69 | 15285 | |
1e487827 | 15286 | fi |
4f14bcd8 GD |
15287 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
15288 | echo "$ac_t""yes" 1>&6 | |
15289 | ||
15290 | cat >> confdefs.h <<\EOF | |
15291 | #define HAVE_WCSLEN 1 | |
9d8deca0 VZ |
15292 | EOF |
15293 | ||
3d63bc3a | 15294 | WCHAR_LINK=" -lw" |
4f14bcd8 GD |
15295 | |
15296 | else | |
15297 | echo "$ac_t""no" 1>&6 | |
698dcdb6 | 15298 | |
4f14bcd8 | 15299 | echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6 |
cb61c62d | 15300 | echo "configure:15301: checking for wcslen in -lmsvcrt" >&5 |
4f14bcd8 GD |
15301 | ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'` |
15302 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 VZ |
15303 | echo $ac_n "(cached) $ac_c" 1>&6 |
15304 | else | |
4f14bcd8 GD |
15305 | ac_save_LIBS="$LIBS" |
15306 | LIBS="-lmsvcrt $LIBS" | |
15307 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 15308 | #line 15309 "configure" |
95c8801c | 15309 | #include "confdefs.h" |
4f14bcd8 GD |
15310 | /* Override any gcc2 internal prototype to avoid an error. */ |
15311 | /* We use char because int might match the return type of a gcc2 | |
15312 | builtin and then its argument prototype would still apply. */ | |
15313 | char wcslen(); | |
95c8801c | 15314 | |
4f14bcd8 GD |
15315 | int main() { |
15316 | wcslen() | |
698dcdb6 VZ |
15317 | ; return 0; } |
15318 | EOF | |
cb61c62d | 15319 | if { (eval echo configure:15320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15320 | rm -rf conftest* |
4f14bcd8 | 15321 | eval "ac_cv_lib_$ac_lib_var=yes" |
95c8801c | 15322 | else |
698dcdb6 VZ |
15323 | echo "configure: failed program was:" >&5 |
15324 | cat conftest.$ac_ext >&5 | |
15325 | rm -rf conftest* | |
4f14bcd8 | 15326 | eval "ac_cv_lib_$ac_lib_var=no" |
95c8801c | 15327 | fi |
698dcdb6 | 15328 | rm -f conftest* |
4f14bcd8 | 15329 | LIBS="$ac_save_LIBS" |
95c8801c VS |
15330 | |
15331 | fi | |
4f14bcd8 GD |
15332 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
15333 | echo "$ac_t""yes" 1>&6 | |
15334 | ||
15335 | cat >> confdefs.h <<\EOF | |
15336 | #define HAVE_WCSLEN 1 | |
15337 | EOF | |
698dcdb6 | 15338 | |
3d63bc3a | 15339 | WCHAR_LINK= |
4f14bcd8 GD |
15340 | |
15341 | else | |
15342 | echo "$ac_t""no" 1>&6 | |
15343 | fi | |
10f2d63a | 15344 | |
4f14bcd8 GD |
15345 | |
15346 | fi | |
95c8801c | 15347 | |
4f14bcd8 | 15348 | |
95c8801c | 15349 | fi |
10f2d63a | 15350 | |
1e487827 | 15351 | |
4f14bcd8 | 15352 | for ac_func in wcsrtombs |
eb4efbdc | 15353 | do |
698dcdb6 | 15354 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
cb61c62d | 15355 | echo "configure:15356: checking for $ac_func" >&5 |
698dcdb6 VZ |
15356 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15357 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15358 | else | |
15359 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 15360 | #line 15361 "configure" |
eb4efbdc VZ |
15361 | #include "confdefs.h" |
15362 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 15363 | which can conflict with char $ac_func(); below. */ |
eb4efbdc VZ |
15364 | #include <assert.h> |
15365 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15366 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15367 | builtin and then its argument prototype would still apply. */ |
15368 | char $ac_func(); | |
15369 | ||
15370 | int main() { | |
eb4efbdc VZ |
15371 | |
15372 | /* The GNU C library defines this for functions which it implements | |
15373 | to always fail with ENOSYS. Some functions are actually named | |
15374 | something starting with __ and the normal name is an alias. */ | |
15375 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15376 | choke me | |
15377 | #else | |
698dcdb6 | 15378 | $ac_func(); |
eb4efbdc VZ |
15379 | #endif |
15380 | ||
698dcdb6 | 15381 | ; return 0; } |
eb4efbdc | 15382 | EOF |
cb61c62d | 15383 | if { (eval echo configure:15384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15384 | rm -rf conftest* |
15385 | eval "ac_cv_func_$ac_func=yes" | |
15386 | else | |
15387 | echo "configure: failed program was:" >&5 | |
15388 | cat conftest.$ac_ext >&5 | |
15389 | rm -rf conftest* | |
15390 | eval "ac_cv_func_$ac_func=no" | |
15391 | fi | |
15392 | rm -f conftest* | |
15393 | fi | |
eb4efbdc | 15394 | |
698dcdb6 VZ |
15395 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
15396 | echo "$ac_t""yes" 1>&6 | |
15397 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15398 | cat >> confdefs.h <<EOF | |
15399 | #define $ac_tr_func 1 | |
15400 | EOF | |
15401 | ||
15402 | else | |
15403 | echo "$ac_t""no" 1>&6 | |
eb4efbdc VZ |
15404 | fi |
15405 | done | |
15406 | ||
698dcdb6 | 15407 | |
4f14bcd8 | 15408 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
cb61c62d | 15409 | echo "configure:15410: checking for vprintf" >&5 |
4f14bcd8 | 15410 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
698dcdb6 VZ |
15411 | echo $ac_n "(cached) $ac_c" 1>&6 |
15412 | else | |
4f14bcd8 | 15413 | cat > conftest.$ac_ext <<EOF |
cb61c62d | 15414 | #line 15415 "configure" |
f6bcfd97 | 15415 | #include "confdefs.h" |
4f14bcd8 GD |
15416 | /* System header to define __stub macros and hopefully few prototypes, |
15417 | which can conflict with char vprintf(); below. */ | |
15418 | #include <assert.h> | |
15419 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15420 | /* We use char because int might match the return type of a gcc2 | |
15421 | builtin and then its argument prototype would still apply. */ | |
15422 | char vprintf(); | |
15423 | ||
698dcdb6 | 15424 | int main() { |
f6bcfd97 | 15425 | |
4f14bcd8 GD |
15426 | /* The GNU C library defines this for functions which it implements |
15427 | to always fail with ENOSYS. Some functions are actually named | |
15428 | something starting with __ and the normal name is an alias. */ | |
15429 | #if defined (__stub_vprintf) || defined (__stub___vprintf) | |
15430 | choke me | |
15431 | #else | |
15432 | vprintf(); | |
15433 | #endif | |
f6bcfd97 | 15434 | |
698dcdb6 VZ |
15435 | ; return 0; } |
15436 | EOF | |
cb61c62d | 15437 | if { (eval echo configure:15438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15438 | rm -rf conftest* |
4f14bcd8 | 15439 | eval "ac_cv_func_vprintf=yes" |
f6bcfd97 | 15440 | else |
698dcdb6 VZ |
15441 | echo "configure: failed program was:" >&5 |
15442 | cat conftest.$ac_ext >&5 | |
15443 | rm -rf conftest* | |
4f14bcd8 | 15444 | eval "ac_cv_func_vprintf=no" |
6232543b | 15445 | fi |
698dcdb6 | 15446 | rm -f conftest* |
1e487827 | 15447 | fi |
698dcdb6 | 15448 | |
4f14bcd8 GD |
15449 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then |
15450 | echo "$ac_t""yes" 1>&6 | |
15451 | cat >> confdefs.h <<\EOF | |
15452 | #define HAVE_VPRINTF 1 | |
f6bcfd97 BP |
15453 | EOF |
15454 | ||
4f14bcd8 GD |
15455 | else |
15456 | echo "$ac_t""no" 1>&6 | |
eb4efbdc VZ |
15457 | fi |
15458 | ||
4f14bcd8 GD |
15459 | if test "$ac_cv_func_vprintf" != yes; then |
15460 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
cb61c62d | 15461 | echo "configure:15462: checking for _doprnt" >&5 |
4f14bcd8 | 15462 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
698dcdb6 VZ |
15463 | echo $ac_n "(cached) $ac_c" 1>&6 |
15464 | else | |
15465 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 15466 | #line 15467 "configure" |
10f2d63a VZ |
15467 | #include "confdefs.h" |
15468 | /* System header to define __stub macros and hopefully few prototypes, | |
4f14bcd8 | 15469 | which can conflict with char _doprnt(); below. */ |
10f2d63a VZ |
15470 | #include <assert.h> |
15471 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15472 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 15473 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 15474 | char _doprnt(); |
698dcdb6 VZ |
15475 | |
15476 | int main() { | |
10f2d63a VZ |
15477 | |
15478 | /* The GNU C library defines this for functions which it implements | |
15479 | to always fail with ENOSYS. Some functions are actually named | |
15480 | something starting with __ and the normal name is an alias. */ | |
4f14bcd8 | 15481 | #if defined (__stub__doprnt) || defined (__stub____doprnt) |
10f2d63a VZ |
15482 | choke me |
15483 | #else | |
4f14bcd8 | 15484 | _doprnt(); |
10f2d63a VZ |
15485 | #endif |
15486 | ||
698dcdb6 | 15487 | ; return 0; } |
10f2d63a | 15488 | EOF |
cb61c62d | 15489 | if { (eval echo configure:15490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15490 | rm -rf conftest* |
4f14bcd8 | 15491 | eval "ac_cv_func__doprnt=yes" |
698dcdb6 VZ |
15492 | else |
15493 | echo "configure: failed program was:" >&5 | |
15494 | cat conftest.$ac_ext >&5 | |
15495 | rm -rf conftest* | |
4f14bcd8 | 15496 | eval "ac_cv_func__doprnt=no" |
698dcdb6 VZ |
15497 | fi |
15498 | rm -f conftest* | |
15499 | fi | |
270a909e | 15500 | |
4f14bcd8 | 15501 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then |
698dcdb6 | 15502 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
15503 | cat >> confdefs.h <<\EOF |
15504 | #define HAVE_DOPRNT 1 | |
698dcdb6 | 15505 | EOF |
4f14bcd8 | 15506 | |
698dcdb6 VZ |
15507 | else |
15508 | echo "$ac_t""no" 1>&6 | |
270a909e | 15509 | fi |
270a909e | 15510 | |
4f14bcd8 | 15511 | fi |
1e487827 | 15512 | |
52e8b690 | 15513 | |
52e8b690 | 15514 | |
52e8b690 | 15515 | |
52e8b690 | 15516 | |
52e8b690 | 15517 | |
4f14bcd8 | 15518 | echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6 |
cb61c62d | 15519 | echo "configure:15520: checking for vsnprintf" >&5 |
4f14bcd8 | 15520 | if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then |
698dcdb6 | 15521 | echo $ac_n "(cached) $ac_c" 1>&6 |
c63c7106 | 15522 | else |
4f14bcd8 | 15523 | |
af15babd | 15524 | cat > conftest.$ac_ext <<EOF |
cb61c62d | 15525 | #line 15526 "configure" |
c63c7106 | 15526 | #include "confdefs.h" |
698dcdb6 | 15527 | |
4f14bcd8 GD |
15528 | #include <stdio.h> |
15529 | #include <stdarg.h> | |
15530 | ||
af15babd VZ |
15531 | int main() { |
15532 | ||
4f14bcd8 GD |
15533 | int wx_test_vsnprintf(const char *, ...); |
15534 | ||
15535 | wx_test_vsnprintf("%s"); | |
15536 | return 0; | |
15537 | } | |
15538 | ||
15539 | int wx_test_vsnprintf(const char *fmt, ...) | |
15540 | { | |
15541 | char *s; | |
15542 | ||
15543 | va_list argp; | |
15544 | va_start(argp, fmt); | |
15545 | vsnprintf(s, 42, fmt, argp); | |
15546 | va_end(argp); | |
15547 | ||
af15babd VZ |
15548 | ; return 0; } |
15549 | EOF | |
cb61c62d | 15550 | if { (eval echo configure:15551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
15551 | rm -rf conftest* |
15552 | ||
4f14bcd8 GD |
15553 | wx_cv_func_vsnprintf=yes |
15554 | ||
af15babd VZ |
15555 | else |
15556 | echo "configure: failed program was:" >&5 | |
15557 | cat conftest.$ac_ext >&5 | |
15558 | rm -rf conftest* | |
15559 | ||
4f14bcd8 | 15560 | cat > conftest.$ac_ext <<EOF |
cb61c62d | 15561 | #line 15562 "configure" |
af15babd | 15562 | #include "confdefs.h" |
af15babd | 15563 | |
4f14bcd8 GD |
15564 | #include <stdio.h> |
15565 | #include <stdarg.h> | |
15566 | ||
af15babd VZ |
15567 | int main() { |
15568 | ||
4f14bcd8 GD |
15569 | int wx_test_vsnprintf(const char *, ...); |
15570 | ||
15571 | wx_test_vsnprintf("%s"); | |
15572 | return 0; | |
15573 | } | |
15574 | ||
15575 | int wx_test_vsnprintf(const char *fmt, ...) | |
15576 | { | |
15577 | char *s; | |
af15babd | 15578 | |
4f14bcd8 GD |
15579 | va_list argp; |
15580 | va_start(argp, fmt); | |
15581 | _vsnprintf(s, 42, fmt, argp); | |
15582 | va_end(argp); | |
15583 | ||
af15babd VZ |
15584 | ; return 0; } |
15585 | EOF | |
cb61c62d | 15586 | if { (eval echo configure:15587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd | 15587 | rm -rf conftest* |
4f14bcd8 GD |
15588 | |
15589 | wx_cv_func_vsnprintf=yes | |
15590 | ||
af15babd VZ |
15591 | else |
15592 | echo "configure: failed program was:" >&5 | |
15593 | cat conftest.$ac_ext >&5 | |
15594 | rm -rf conftest* | |
4f14bcd8 GD |
15595 | |
15596 | wx_cv_func_vsnprintf=no | |
15597 | ||
af15babd VZ |
15598 | fi |
15599 | rm -f conftest* | |
4f14bcd8 | 15600 | |
af15babd | 15601 | fi |
4f14bcd8 | 15602 | rm -f conftest* |
af15babd | 15603 | |
af15babd | 15604 | fi |
af15babd | 15605 | |
4f14bcd8 | 15606 | echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6 |
af15babd | 15607 | |
4f14bcd8 GD |
15608 | if test "$wx_cv_func_vsnprintf" = yes; then |
15609 | cat >> confdefs.h <<\EOF | |
15610 | #define HAVE_VSNPRINTF 1 | |
15611 | EOF | |
15612 | ||
15613 | else | |
f9bc1684 | 15614 | echo "configure: warning: unsafe function vsprintf will be used instead of vsnprintf" 1>&2 |
af15babd VZ |
15615 | fi |
15616 | ||
4f14bcd8 | 15617 | echo $ac_n "checking for vsscanf""... $ac_c" 1>&6 |
cb61c62d | 15618 | echo "configure:15619: checking for vsscanf" >&5 |
4f14bcd8 | 15619 | if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then |
af15babd VZ |
15620 | echo $ac_n "(cached) $ac_c" 1>&6 |
15621 | else | |
4f14bcd8 | 15622 | |
af15babd | 15623 | cat > conftest.$ac_ext <<EOF |
cb61c62d | 15624 | #line 15625 "configure" |
af15babd | 15625 | #include "confdefs.h" |
af15babd | 15626 | |
4f14bcd8 GD |
15627 | #include <stdio.h> |
15628 | #include <stdarg.h> | |
15629 | ||
af15babd VZ |
15630 | int main() { |
15631 | ||
4f14bcd8 GD |
15632 | int wx_test_vsscanf(const char *, ...); |
15633 | ||
15634 | wx_test_vsscanf("%d"); | |
15635 | return 0; | |
15636 | } | |
af15babd | 15637 | |
4f14bcd8 GD |
15638 | int wx_test_vsscanf(const char *fmt, ...) |
15639 | { | |
15640 | va_list argp; | |
15641 | va_start(argp, fmt); | |
15642 | vsscanf("42", fmt, argp); | |
15643 | va_end(argp); | |
15644 | ||
af15babd VZ |
15645 | ; return 0; } |
15646 | EOF | |
cb61c62d | 15647 | if { (eval echo configure:15648: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 15648 | rm -rf conftest* |
4f14bcd8 GD |
15649 | |
15650 | wx_cv_func_vsscanf=yes | |
15651 | ||
af15babd VZ |
15652 | else |
15653 | echo "configure: failed program was:" >&5 | |
15654 | cat conftest.$ac_ext >&5 | |
15655 | rm -rf conftest* | |
4f14bcd8 GD |
15656 | |
15657 | wx_cv_func_vsscanf=no | |
15658 | ||
af15babd VZ |
15659 | fi |
15660 | rm -f conftest* | |
4f14bcd8 | 15661 | |
af15babd VZ |
15662 | fi |
15663 | ||
4f14bcd8 GD |
15664 | echo "$ac_t""$wx_cv_func_vsscanf" 1>&6 |
15665 | ||
15666 | if test "$wx_cv_func_vsscanf" = yes; then | |
15667 | cat >> confdefs.h <<\EOF | |
15668 | #define HAVE_VSSCANF 1 | |
af15babd | 15669 | EOF |
4f14bcd8 | 15670 | |
af15babd | 15671 | fi |
af15babd | 15672 | |
4f14bcd8 | 15673 | if test "$TOOLKIT" != "MSW"; then |
af15babd | 15674 | |
4f14bcd8 GD |
15675 | |
15676 | ||
15677 | ac_ext=C | |
15678 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15679 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15680 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15681 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15682 | cross_compiling=$ac_cv_prog_cxx_cross | |
15683 | ||
b040e242 VS |
15684 | |
15685 | ||
15686 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
15687 | if test "${with_libiconv_prefix+set}" = set; then | |
15688 | withval="$with_libiconv_prefix" | |
15689 | ||
15690 | for dir in `echo "$withval" | tr : ' '`; do | |
15691 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
15692 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
15693 | done | |
15694 | ||
15695 | fi | |
15696 | ||
15697 | ||
15698 | echo $ac_n "checking for iconv""... $ac_c" 1>&6 | |
cb61c62d | 15699 | echo "configure:15700: checking for iconv" >&5 |
b040e242 | 15700 | if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then |
af15babd VZ |
15701 | echo $ac_n "(cached) $ac_c" 1>&6 |
15702 | else | |
4f14bcd8 | 15703 | |
b040e242 VS |
15704 | am_cv_func_iconv="no, consider installing GNU libiconv" |
15705 | am_cv_lib_iconv=no | |
4f14bcd8 | 15706 | cat > conftest.$ac_ext <<EOF |
cb61c62d | 15707 | #line 15708 "configure" |
af15babd | 15708 | #include "confdefs.h" |
b040e242 | 15709 | #include <stdlib.h> |
4f14bcd8 | 15710 | #include <iconv.h> |
af15babd | 15711 | int main() { |
b040e242 VS |
15712 | iconv_t cd = iconv_open("",""); |
15713 | iconv(cd,NULL,NULL,NULL,NULL); | |
15714 | iconv_close(cd); | |
af15babd VZ |
15715 | ; return 0; } |
15716 | EOF | |
cb61c62d | 15717 | if { (eval echo configure:15718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd | 15718 | rm -rf conftest* |
b040e242 | 15719 | am_cv_func_iconv=yes |
af15babd VZ |
15720 | else |
15721 | echo "configure: failed program was:" >&5 | |
15722 | cat conftest.$ac_ext >&5 | |
b040e242 VS |
15723 | fi |
15724 | rm -f conftest* | |
15725 | if test "$am_cv_func_iconv" != yes; then | |
15726 | am_save_LIBS="$LIBS" | |
15727 | LIBS="$LIBS -liconv" | |
15728 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 15729 | #line 15730 "configure" |
b040e242 VS |
15730 | #include "confdefs.h" |
15731 | #include <stdlib.h> | |
15732 | #include <iconv.h> | |
15733 | int main() { | |
15734 | iconv_t cd = iconv_open("",""); | |
15735 | iconv(cd,NULL,NULL,NULL,NULL); | |
15736 | iconv_close(cd); | |
15737 | ; return 0; } | |
15738 | EOF | |
cb61c62d | 15739 | if { (eval echo configure:15740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd | 15740 | rm -rf conftest* |
b040e242 VS |
15741 | am_cv_lib_iconv=yes |
15742 | am_cv_func_iconv=yes | |
15743 | else | |
15744 | echo "configure: failed program was:" >&5 | |
15745 | cat conftest.$ac_ext >&5 | |
af15babd VZ |
15746 | fi |
15747 | rm -f conftest* | |
b040e242 VS |
15748 | LIBS="$am_save_LIBS" |
15749 | fi | |
15750 | ||
15751 | fi | |
15752 | ||
15753 | echo "$ac_t""$am_cv_func_iconv" 1>&6 | |
15754 | if test "$am_cv_func_iconv" = yes; then | |
15755 | cat >> confdefs.h <<\EOF | |
15756 | #define HAVE_ICONV 1 | |
15757 | EOF | |
15758 | ||
b7043674 | 15759 | echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6 |
cb61c62d | 15760 | echo "configure:15761: checking if iconv needs const" >&5 |
b7043674 | 15761 | if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then |
b040e242 VS |
15762 | echo $ac_n "(cached) $ac_c" 1>&6 |
15763 | else | |
b7043674 | 15764 | cat > conftest.$ac_ext <<EOF |
cb61c62d | 15765 | #line 15766 "configure" |
b040e242 VS |
15766 | #include "confdefs.h" |
15767 | ||
15768 | #include <stdlib.h> | |
15769 | #include <iconv.h> | |
15770 | extern | |
15771 | #ifdef __cplusplus | |
15772 | "C" | |
15773 | #endif | |
15774 | #if defined(__STDC__) || defined(__cplusplus) | |
15775 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
15776 | #else | |
15777 | size_t iconv(); | |
15778 | #endif | |
b7043674 | 15779 | |
b040e242 | 15780 | int main() { |
af15babd | 15781 | |
b040e242 VS |
15782 | ; return 0; } |
15783 | EOF | |
cb61c62d | 15784 | if { (eval echo configure:15785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
b040e242 | 15785 | rm -rf conftest* |
b7043674 | 15786 | wx_cv_func_iconv_const="no" |
b040e242 VS |
15787 | else |
15788 | echo "configure: failed program was:" >&5 | |
15789 | cat conftest.$ac_ext >&5 | |
15790 | rm -rf conftest* | |
b7043674 VZ |
15791 | wx_cv_func_iconv_const="yes" |
15792 | ||
b040e242 VS |
15793 | fi |
15794 | rm -f conftest* | |
b7043674 | 15795 | |
af15babd | 15796 | fi |
af15babd | 15797 | |
b7043674 VZ |
15798 | echo "$ac_t""$wx_cv_func_iconv_const" 1>&6 |
15799 | ||
15800 | iconv_const= | |
1c405bb5 | 15801 | if test "x$wx_cv_func_iconv_const" = "xyes"; then |
b7043674 VZ |
15802 | iconv_const="const" |
15803 | fi | |
15804 | ||
b040e242 | 15805 | cat >> confdefs.h <<EOF |
b7043674 | 15806 | #define ICONV_CONST $iconv_const |
b040e242 VS |
15807 | EOF |
15808 | ||
15809 | fi | |
15810 | LIBICONV= | |
15811 | if test "$am_cv_lib_iconv" = yes; then | |
15812 | LIBICONV="-liconv" | |
15813 | fi | |
15814 | ||
15815 | ||
15816 | LIBS="$LIBICONV $LIBS" | |
4f14bcd8 GD |
15817 | ac_ext=c |
15818 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15819 | ac_cpp='$CPP $CPPFLAGS' | |
15820 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15821 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15822 | cross_compiling=$ac_cv_prog_cc_cross | |
af15babd | 15823 | |
af15babd | 15824 | |
4f14bcd8 GD |
15825 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
15826 | for ac_func in sigaction | |
af15babd VZ |
15827 | do |
15828 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
cb61c62d | 15829 | echo "configure:15830: checking for $ac_func" >&5 |
af15babd VZ |
15830 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15831 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15832 | else | |
15833 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 15834 | #line 15835 "configure" |
af15babd VZ |
15835 | #include "confdefs.h" |
15836 | /* System header to define __stub macros and hopefully few prototypes, | |
15837 | which can conflict with char $ac_func(); below. */ | |
15838 | #include <assert.h> | |
15839 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15840 | /* We use char because int might match the return type of a gcc2 | |
15841 | builtin and then its argument prototype would still apply. */ | |
15842 | char $ac_func(); | |
15843 | ||
15844 | int main() { | |
15845 | ||
15846 | /* The GNU C library defines this for functions which it implements | |
15847 | to always fail with ENOSYS. Some functions are actually named | |
15848 | something starting with __ and the normal name is an alias. */ | |
15849 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15850 | choke me | |
15851 | #else | |
15852 | $ac_func(); | |
15853 | #endif | |
15854 | ||
15855 | ; return 0; } | |
15856 | EOF | |
cb61c62d | 15857 | if { (eval echo configure:15858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
15858 | rm -rf conftest* |
15859 | eval "ac_cv_func_$ac_func=yes" | |
15860 | else | |
15861 | echo "configure: failed program was:" >&5 | |
15862 | cat conftest.$ac_ext >&5 | |
15863 | rm -rf conftest* | |
15864 | eval "ac_cv_func_$ac_func=no" | |
15865 | fi | |
15866 | rm -f conftest* | |
15867 | fi | |
15868 | ||
15869 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
15870 | echo "$ac_t""yes" 1>&6 | |
15871 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15872 | cat >> confdefs.h <<EOF | |
15873 | #define $ac_tr_func 1 | |
15874 | EOF | |
4f14bcd8 | 15875 | |
af15babd VZ |
15876 | else |
15877 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 GD |
15878 | fi |
15879 | done | |
15880 | ||
15881 | ||
15882 | if test "$ac_cv_func_sigaction" = "no"; then | |
15883 | echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2 | |
15884 | wxUSE_ON_FATAL_EXCEPTION=no | |
15885 | fi | |
15886 | ||
15887 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
15888 | ||
15889 | ac_ext=C | |
15890 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15891 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15892 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15893 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15894 | cross_compiling=$ac_cv_prog_cxx_cross | |
15895 | ||
15896 | ||
15897 | echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6 | |
cb61c62d | 15898 | echo "configure:15899: checking for sa_handler type" >&5 |
4f14bcd8 | 15899 | if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then |
af15babd VZ |
15900 | echo $ac_n "(cached) $ac_c" 1>&6 |
15901 | else | |
4f14bcd8 GD |
15902 | |
15903 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 15904 | #line 15905 "configure" |
af15babd | 15905 | #include "confdefs.h" |
4f14bcd8 | 15906 | #include <signal.h> |
af15babd | 15907 | int main() { |
4f14bcd8 GD |
15908 | |
15909 | extern void testSigHandler(int); | |
15910 | ||
15911 | struct sigaction sa; | |
15912 | sa.sa_handler = testSigHandler; | |
15913 | ||
af15babd VZ |
15914 | ; return 0; } |
15915 | EOF | |
cb61c62d | 15916 | if { (eval echo configure:15917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 15917 | rm -rf conftest* |
4f14bcd8 GD |
15918 | |
15919 | wx_cv_type_sa_handler=int | |
15920 | ||
af15babd VZ |
15921 | else |
15922 | echo "configure: failed program was:" >&5 | |
15923 | cat conftest.$ac_ext >&5 | |
15924 | rm -rf conftest* | |
4f14bcd8 GD |
15925 | |
15926 | wx_cv_type_sa_handler=void | |
15927 | ||
af15babd VZ |
15928 | fi |
15929 | rm -f conftest* | |
4f14bcd8 GD |
15930 | |
15931 | fi | |
15932 | ||
15933 | echo "$ac_t""$wx_cv_type_sa_handler" 1>&6 | |
15934 | ||
15935 | ac_ext=c | |
15936 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15937 | ac_cpp='$CPP $CPPFLAGS' | |
15938 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15939 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15940 | cross_compiling=$ac_cv_prog_cc_cross | |
af15babd | 15941 | |
4f14bcd8 GD |
15942 | |
15943 | cat >> confdefs.h <<EOF | |
15944 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
af15babd VZ |
15945 | EOF |
15946 | ||
4f14bcd8 GD |
15947 | fi |
15948 | fi | |
af15babd | 15949 | |
4f14bcd8 | 15950 | for ac_func in vfork |
af15babd VZ |
15951 | do |
15952 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
cb61c62d | 15953 | echo "configure:15954: checking for $ac_func" >&5 |
af15babd VZ |
15954 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15955 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15956 | else | |
15957 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 15958 | #line 15959 "configure" |
af15babd VZ |
15959 | #include "confdefs.h" |
15960 | /* System header to define __stub macros and hopefully few prototypes, | |
15961 | which can conflict with char $ac_func(); below. */ | |
15962 | #include <assert.h> | |
15963 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15964 | /* We use char because int might match the return type of a gcc2 | |
15965 | builtin and then its argument prototype would still apply. */ | |
15966 | char $ac_func(); | |
15967 | ||
15968 | int main() { | |
15969 | ||
15970 | /* The GNU C library defines this for functions which it implements | |
15971 | to always fail with ENOSYS. Some functions are actually named | |
15972 | something starting with __ and the normal name is an alias. */ | |
15973 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15974 | choke me | |
15975 | #else | |
15976 | $ac_func(); | |
15977 | #endif | |
15978 | ||
15979 | ; return 0; } | |
15980 | EOF | |
cb61c62d | 15981 | if { (eval echo configure:15982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
15982 | rm -rf conftest* |
15983 | eval "ac_cv_func_$ac_func=yes" | |
15984 | else | |
15985 | echo "configure: failed program was:" >&5 | |
15986 | cat conftest.$ac_ext >&5 | |
15987 | rm -rf conftest* | |
15988 | eval "ac_cv_func_$ac_func=no" | |
15989 | fi | |
15990 | rm -f conftest* | |
15991 | fi | |
15992 | ||
15993 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
15994 | echo "$ac_t""yes" 1>&6 | |
15995 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15996 | cat >> confdefs.h <<EOF | |
15997 | #define $ac_tr_func 1 | |
15998 | EOF | |
4f14bcd8 | 15999 | |
af15babd VZ |
16000 | else |
16001 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
16002 | fi |
16003 | done | |
16004 | ||
af15babd | 16005 | |
ade35f11 VZ |
16006 | for ac_func in mkstemp mktemp |
16007 | do | |
16008 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
cb61c62d | 16009 | echo "configure:16010: checking for $ac_func" >&5 |
ade35f11 VZ |
16010 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16011 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16012 | else | |
16013 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 16014 | #line 16015 "configure" |
ade35f11 VZ |
16015 | #include "confdefs.h" |
16016 | /* System header to define __stub macros and hopefully few prototypes, | |
16017 | which can conflict with char $ac_func(); below. */ | |
16018 | #include <assert.h> | |
16019 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16020 | /* We use char because int might match the return type of a gcc2 | |
16021 | builtin and then its argument prototype would still apply. */ | |
16022 | char $ac_func(); | |
16023 | ||
16024 | int main() { | |
16025 | ||
16026 | /* The GNU C library defines this for functions which it implements | |
16027 | to always fail with ENOSYS. Some functions are actually named | |
16028 | something starting with __ and the normal name is an alias. */ | |
16029 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16030 | choke me | |
16031 | #else | |
16032 | $ac_func(); | |
16033 | #endif | |
16034 | ||
16035 | ; return 0; } | |
16036 | EOF | |
cb61c62d | 16037 | if { (eval echo configure:16038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ade35f11 VZ |
16038 | rm -rf conftest* |
16039 | eval "ac_cv_func_$ac_func=yes" | |
16040 | else | |
16041 | echo "configure: failed program was:" >&5 | |
16042 | cat conftest.$ac_ext >&5 | |
16043 | rm -rf conftest* | |
16044 | eval "ac_cv_func_$ac_func=no" | |
16045 | fi | |
16046 | rm -f conftest* | |
16047 | fi | |
16048 | ||
16049 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16050 | echo "$ac_t""yes" 1>&6 | |
16051 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16052 | cat >> confdefs.h <<EOF | |
16053 | #define $ac_tr_func 1 | |
16054 | EOF | |
16055 | break | |
16056 | else | |
16057 | echo "$ac_t""no" 1>&6 | |
16058 | fi | |
16059 | done | |
16060 | ||
16061 | ||
4f14bcd8 | 16062 | echo $ac_n "checking for statfs""... $ac_c" 1>&6 |
cb61c62d | 16063 | echo "configure:16064: checking for statfs" >&5 |
4f14bcd8 GD |
16064 | if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then |
16065 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16066 | else | |
16067 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 16068 | #line 16069 "configure" |
4f14bcd8 GD |
16069 | #include "confdefs.h" |
16070 | ||
16071 | #if defined(__BSD__) | |
16072 | #include <sys/param.h> | |
16073 | #include <sys/mount.h> | |
16074 | #else | |
16075 | #include <sys/vfs.h> | |
16076 | #endif | |
16077 | ||
16078 | int main() { | |
16079 | ||
16080 | long l; | |
16081 | struct statfs fs; | |
16082 | statfs("/", &fs); | |
16083 | l = fs.f_bsize; | |
16084 | l += fs.f_blocks; | |
16085 | l += fs.f_bavail; | |
16086 | ||
16087 | ; return 0; } | |
16088 | EOF | |
cb61c62d | 16089 | if { (eval echo configure:16090: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
16090 | rm -rf conftest* |
16091 | ||
16092 | wx_cv_func_statfs=yes | |
16093 | ||
16094 | else | |
16095 | echo "configure: failed program was:" >&5 | |
16096 | cat conftest.$ac_ext >&5 | |
16097 | rm -rf conftest* | |
16098 | ||
16099 | wx_cv_func_statfs=no | |
af15babd VZ |
16100 | |
16101 | ||
16102 | fi | |
4f14bcd8 | 16103 | rm -f conftest* |
af15babd VZ |
16104 | |
16105 | fi | |
16106 | ||
4f14bcd8 GD |
16107 | echo "$ac_t""$wx_cv_func_statfs" 1>&6 |
16108 | ||
16109 | if test "$wx_cv_func_statfs" = "yes"; then | |
16110 | cat >> confdefs.h <<\EOF | |
16111 | #define HAVE_STATFS 1 | |
16112 | EOF | |
16113 | ||
16114 | else | |
16115 | echo $ac_n "checking for statvfs""... $ac_c" 1>&6 | |
cb61c62d | 16116 | echo "configure:16117: checking for statvfs" >&5 |
4f14bcd8 | 16117 | if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then |
af15babd VZ |
16118 | echo $ac_n "(cached) $ac_c" 1>&6 |
16119 | else | |
16120 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 16121 | #line 16122 "configure" |
af15babd | 16122 | #include "confdefs.h" |
af15babd | 16123 | |
4f14bcd8 GD |
16124 | #include <sys/statvfs.h> |
16125 | ||
af15babd VZ |
16126 | int main() { |
16127 | ||
4f14bcd8 GD |
16128 | long l; |
16129 | struct statvfs fs; | |
16130 | statvfs("/", &fs); | |
16131 | l = fs.f_bsize; | |
16132 | l += fs.f_blocks; | |
16133 | l += fs.f_bavail; | |
16134 | ||
af15babd VZ |
16135 | ; return 0; } |
16136 | EOF | |
cb61c62d | 16137 | if { (eval echo configure:16138: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 16138 | rm -rf conftest* |
4f14bcd8 GD |
16139 | |
16140 | wx_cv_func_statvfs=yes | |
16141 | ||
af15babd VZ |
16142 | else |
16143 | echo "configure: failed program was:" >&5 | |
16144 | cat conftest.$ac_ext >&5 | |
16145 | rm -rf conftest* | |
4f14bcd8 GD |
16146 | |
16147 | wx_cv_func_statvfs=no | |
16148 | ||
16149 | ||
af15babd VZ |
16150 | fi |
16151 | rm -f conftest* | |
4f14bcd8 | 16152 | |
af15babd VZ |
16153 | fi |
16154 | ||
4f14bcd8 | 16155 | echo "$ac_t""$wx_cv_func_statvfs" 1>&6 |
af15babd | 16156 | |
4f14bcd8 GD |
16157 | if test "$wx_cv_func_statvfs" = "yes"; then |
16158 | cat >> confdefs.h <<\EOF | |
16159 | #define HAVE_STATVFS 1 | |
16160 | EOF | |
af15babd | 16161 | |
4f14bcd8 GD |
16162 | else |
16163 | echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2 | |
16164 | fi | |
16165 | fi | |
af15babd | 16166 | |
4f14bcd8 GD |
16167 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
16168 | for ac_func in fcntl flock | |
af15babd VZ |
16169 | do |
16170 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
cb61c62d | 16171 | echo "configure:16172: checking for $ac_func" >&5 |
af15babd VZ |
16172 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16173 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16174 | else | |
16175 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 16176 | #line 16177 "configure" |
af15babd VZ |
16177 | #include "confdefs.h" |
16178 | /* System header to define __stub macros and hopefully few prototypes, | |
16179 | which can conflict with char $ac_func(); below. */ | |
16180 | #include <assert.h> | |
16181 | /* Override any gcc2 internal prototype to avoid an error. */ | |
af15babd VZ |
16182 | /* We use char because int might match the return type of a gcc2 |
16183 | builtin and then its argument prototype would still apply. */ | |
16184 | char $ac_func(); | |
16185 | ||
16186 | int main() { | |
16187 | ||
16188 | /* The GNU C library defines this for functions which it implements | |
16189 | to always fail with ENOSYS. Some functions are actually named | |
16190 | something starting with __ and the normal name is an alias. */ | |
16191 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16192 | choke me | |
16193 | #else | |
16194 | $ac_func(); | |
16195 | #endif | |
16196 | ||
16197 | ; return 0; } | |
16198 | EOF | |
cb61c62d | 16199 | if { (eval echo configure:16200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
16200 | rm -rf conftest* |
16201 | eval "ac_cv_func_$ac_func=yes" | |
16202 | else | |
16203 | echo "configure: failed program was:" >&5 | |
16204 | cat conftest.$ac_ext >&5 | |
16205 | rm -rf conftest* | |
16206 | eval "ac_cv_func_$ac_func=no" | |
16207 | fi | |
16208 | rm -f conftest* | |
16209 | fi | |
16210 | ||
16211 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16212 | echo "$ac_t""yes" 1>&6 | |
16213 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16214 | cat >> confdefs.h <<EOF | |
16215 | #define $ac_tr_func 1 | |
16216 | EOF | |
4f14bcd8 | 16217 | break |
af15babd VZ |
16218 | else |
16219 | echo "$ac_t""no" 1>&6 | |
16220 | fi | |
16221 | done | |
16222 | ||
16223 | ||
4f14bcd8 GD |
16224 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then |
16225 | echo "configure: warning: wxSingleInstanceChecker not available" 1>&2 | |
16226 | wxUSE_SNGLINST_CHECKER=no | |
16227 | fi | |
16228 | fi | |
af15babd | 16229 | |
4f14bcd8 | 16230 | for ac_func in timegm |
af15babd VZ |
16231 | do |
16232 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
cb61c62d | 16233 | echo "configure:16234: checking for $ac_func" >&5 |
af15babd VZ |
16234 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16235 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16236 | else | |
16237 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 16238 | #line 16239 "configure" |
af15babd VZ |
16239 | #include "confdefs.h" |
16240 | /* System header to define __stub macros and hopefully few prototypes, | |
16241 | which can conflict with char $ac_func(); below. */ | |
16242 | #include <assert.h> | |
16243 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16244 | /* We use char because int might match the return type of a gcc2 | |
16245 | builtin and then its argument prototype would still apply. */ | |
16246 | char $ac_func(); | |
16247 | ||
698dcdb6 | 16248 | int main() { |
698dcdb6 | 16249 | |
af15babd VZ |
16250 | /* The GNU C library defines this for functions which it implements |
16251 | to always fail with ENOSYS. Some functions are actually named | |
16252 | something starting with __ and the normal name is an alias. */ | |
16253 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16254 | choke me | |
16255 | #else | |
16256 | $ac_func(); | |
16257 | #endif | |
16258 | ||
698dcdb6 VZ |
16259 | ; return 0; } |
16260 | EOF | |
cb61c62d | 16261 | if { (eval echo configure:16262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16262 | rm -rf conftest* |
af15babd | 16263 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
16264 | else |
16265 | echo "configure: failed program was:" >&5 | |
16266 | cat conftest.$ac_ext >&5 | |
16267 | rm -rf conftest* | |
af15babd | 16268 | eval "ac_cv_func_$ac_func=no" |
1e487827 | 16269 | fi |
9952adac | 16270 | rm -f conftest* |
af15babd | 16271 | fi |
703e0a69 | 16272 | |
af15babd VZ |
16273 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16274 | echo "$ac_t""yes" 1>&6 | |
16275 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
4f14bcd8 GD |
16276 | cat >> confdefs.h <<EOF |
16277 | #define $ac_tr_func 1 | |
16278 | EOF | |
16279 | ||
16280 | else | |
16281 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
16282 | fi |
16283 | done | |
16284 | ||
16285 | ||
4f14bcd8 | 16286 | for ac_func in putenv setenv |
10f2d63a | 16287 | do |
698dcdb6 | 16288 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
cb61c62d | 16289 | echo "configure:16290: checking for $ac_func" >&5 |
698dcdb6 VZ |
16290 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16291 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16292 | else | |
16293 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 16294 | #line 16295 "configure" |
af15babd VZ |
16295 | #include "confdefs.h" |
16296 | /* System header to define __stub macros and hopefully few prototypes, | |
16297 | which can conflict with char $ac_func(); below. */ | |
16298 | #include <assert.h> | |
16299 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16300 | /* We use char because int might match the return type of a gcc2 | |
16301 | builtin and then its argument prototype would still apply. */ | |
16302 | char $ac_func(); | |
16303 | ||
16304 | int main() { | |
16305 | ||
16306 | /* The GNU C library defines this for functions which it implements | |
16307 | to always fail with ENOSYS. Some functions are actually named | |
16308 | something starting with __ and the normal name is an alias. */ | |
16309 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16310 | choke me | |
16311 | #else | |
16312 | $ac_func(); | |
16313 | #endif | |
16314 | ||
16315 | ; return 0; } | |
16316 | EOF | |
cb61c62d | 16317 | if { (eval echo configure:16318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
16318 | rm -rf conftest* |
16319 | eval "ac_cv_func_$ac_func=yes" | |
16320 | else | |
16321 | echo "configure: failed program was:" >&5 | |
16322 | cat conftest.$ac_ext >&5 | |
16323 | rm -rf conftest* | |
16324 | eval "ac_cv_func_$ac_func=no" | |
16325 | fi | |
16326 | rm -f conftest* | |
16327 | fi | |
16328 | ||
16329 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16330 | echo "$ac_t""yes" 1>&6 | |
16331 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16332 | cat >> confdefs.h <<EOF | |
16333 | #define $ac_tr_func 1 | |
16334 | EOF | |
4f14bcd8 | 16335 | break |
af15babd VZ |
16336 | else |
16337 | echo "$ac_t""no" 1>&6 | |
16338 | fi | |
af15babd VZ |
16339 | done |
16340 | ||
16341 | ||
4f14bcd8 GD |
16342 | HAVE_SOME_SLEEP_FUNC=0 |
16343 | if test "$USE_BEOS" = 1; then | |
16344 | cat >> confdefs.h <<\EOF | |
16345 | #define HAVE_SLEEP 1 | |
af15babd VZ |
16346 | EOF |
16347 | ||
4f14bcd8 | 16348 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
16349 | fi |
16350 | ||
4f14bcd8 GD |
16351 | if test "$USE_DARWIN" = 1; then |
16352 | cat >> confdefs.h <<\EOF | |
16353 | #define HAVE_USLEEP 1 | |
af15babd | 16354 | EOF |
10f2d63a | 16355 | |
4f14bcd8 | 16356 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
16357 | fi |
16358 | ||
4f14bcd8 GD |
16359 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
16360 | POSIX4_LINK= | |
16361 | for ac_func in nanosleep | |
16362 | do | |
16363 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
cb61c62d | 16364 | echo "configure:16365: checking for $ac_func" >&5 |
4f14bcd8 | 16365 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 | 16366 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 16367 | else |
4f14bcd8 | 16368 | cat > conftest.$ac_ext <<EOF |
cb61c62d | 16369 | #line 16370 "configure" |
10f2d63a | 16370 | #include "confdefs.h" |
4f14bcd8 GD |
16371 | /* System header to define __stub macros and hopefully few prototypes, |
16372 | which can conflict with char $ac_func(); below. */ | |
16373 | #include <assert.h> | |
10f2d63a VZ |
16374 | /* Override any gcc2 internal prototype to avoid an error. */ |
16375 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16376 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16377 | char $ac_func(); |
698dcdb6 VZ |
16378 | |
16379 | int main() { | |
4f14bcd8 GD |
16380 | |
16381 | /* The GNU C library defines this for functions which it implements | |
16382 | to always fail with ENOSYS. Some functions are actually named | |
16383 | something starting with __ and the normal name is an alias. */ | |
16384 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16385 | choke me | |
16386 | #else | |
16387 | $ac_func(); | |
16388 | #endif | |
16389 | ||
698dcdb6 VZ |
16390 | ; return 0; } |
16391 | EOF | |
cb61c62d | 16392 | if { (eval echo configure:16393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16393 | rm -rf conftest* |
4f14bcd8 | 16394 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
16395 | else |
16396 | echo "configure: failed program was:" >&5 | |
16397 | cat conftest.$ac_ext >&5 | |
16398 | rm -rf conftest* | |
4f14bcd8 | 16399 | eval "ac_cv_func_$ac_func=no" |
698dcdb6 VZ |
16400 | fi |
16401 | rm -f conftest* | |
698dcdb6 | 16402 | fi |
4f14bcd8 GD |
16403 | |
16404 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 16405 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
16406 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
16407 | cat >> confdefs.h <<EOF | |
16408 | #define $ac_tr_func 1 | |
16409 | EOF | |
16410 | cat >> confdefs.h <<\EOF | |
16411 | #define HAVE_NANOSLEEP 1 | |
16412 | EOF | |
16413 | ||
10f2d63a | 16414 | else |
698dcdb6 | 16415 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 16416 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 |
cb61c62d | 16417 | echo "configure:16418: checking for nanosleep in -lposix4" >&5 |
4f14bcd8 | 16418 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
16419 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
16420 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 16421 | else |
698dcdb6 | 16422 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 16423 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 16424 | cat > conftest.$ac_ext <<EOF |
cb61c62d | 16425 | #line 16426 "configure" |
10f2d63a VZ |
16426 | #include "confdefs.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 | |
698dcdb6 | 16429 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16430 | char nanosleep(); |
698dcdb6 VZ |
16431 | |
16432 | int main() { | |
4f14bcd8 | 16433 | nanosleep() |
698dcdb6 VZ |
16434 | ; return 0; } |
16435 | EOF | |
cb61c62d | 16436 | if { (eval echo configure:16437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16437 | rm -rf conftest* |
16438 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16439 | else | |
16440 | echo "configure: failed program was:" >&5 | |
16441 | cat conftest.$ac_ext >&5 | |
16442 | rm -rf conftest* | |
16443 | eval "ac_cv_lib_$ac_lib_var=no" | |
16444 | fi | |
16445 | rm -f conftest* | |
16446 | LIBS="$ac_save_LIBS" | |
10f2d63a | 16447 | |
698dcdb6 VZ |
16448 | fi |
16449 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16450 | echo "$ac_t""yes" 1>&6 | |
16451 | ||
4f14bcd8 GD |
16452 | cat >> confdefs.h <<\EOF |
16453 | #define HAVE_NANOSLEEP 1 | |
16454 | EOF | |
16455 | ||
3d63bc3a | 16456 | POSIX4_LINK=" -lposix4" |
4f14bcd8 | 16457 | |
10f2d63a | 16458 | else |
698dcdb6 | 16459 | echo "$ac_t""no" 1>&6 |
10f2d63a | 16460 | |
4f14bcd8 GD |
16461 | for ac_func in usleep |
16462 | do | |
16463 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
cb61c62d | 16464 | echo "configure:16465: checking for $ac_func" >&5 |
4f14bcd8 | 16465 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 | 16466 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 16467 | else |
698dcdb6 | 16468 | cat > conftest.$ac_ext <<EOF |
cb61c62d | 16469 | #line 16470 "configure" |
10f2d63a | 16470 | #include "confdefs.h" |
4f14bcd8 GD |
16471 | /* System header to define __stub macros and hopefully few prototypes, |
16472 | which can conflict with char $ac_func(); below. */ | |
16473 | #include <assert.h> | |
16474 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16475 | /* We use char because int might match the return type of a gcc2 | |
16476 | builtin and then its argument prototype would still apply. */ | |
16477 | char $ac_func(); | |
16478 | ||
16479 | int main() { | |
16480 | ||
16481 | /* The GNU C library defines this for functions which it implements | |
16482 | to always fail with ENOSYS. Some functions are actually named | |
16483 | something starting with __ and the normal name is an alias. */ | |
16484 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16485 | choke me | |
16486 | #else | |
16487 | $ac_func(); | |
16488 | #endif | |
16489 | ||
16490 | ; return 0; } | |
698dcdb6 | 16491 | EOF |
cb61c62d | 16492 | if { (eval echo configure:16493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16493 | rm -rf conftest* |
4f14bcd8 | 16494 | eval "ac_cv_func_$ac_func=yes" |
1e487827 | 16495 | else |
698dcdb6 | 16496 | echo "configure: failed program was:" >&5 |
10f2d63a | 16497 | cat conftest.$ac_ext >&5 |
698dcdb6 | 16498 | rm -rf conftest* |
4f14bcd8 | 16499 | eval "ac_cv_func_$ac_func=no" |
10f2d63a | 16500 | fi |
698dcdb6 | 16501 | rm -f conftest* |
10f2d63a | 16502 | fi |
4f14bcd8 GD |
16503 | |
16504 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 16505 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
16506 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
16507 | cat >> confdefs.h <<EOF | |
16508 | #define $ac_tr_func 1 | |
16509 | EOF | |
16510 | cat >> confdefs.h <<\EOF | |
16511 | #define HAVE_USLEEP 1 | |
16512 | EOF | |
16513 | ||
698dcdb6 VZ |
16514 | else |
16515 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 GD |
16516 | echo "configure: warning: wxSleep() function will not work" 1>&2 |
16517 | ||
10f2d63a | 16518 | fi |
4f14bcd8 | 16519 | done |
10f2d63a | 16520 | |
4f14bcd8 | 16521 | |
698dcdb6 | 16522 | |
6232543b | 16523 | fi |
10f2d63a | 16524 | |
698dcdb6 | 16525 | |
4f14bcd8 | 16526 | |
1e487827 | 16527 | fi |
4f14bcd8 | 16528 | done |
703e0a69 | 16529 | |
10f2d63a VZ |
16530 | fi |
16531 | ||
4f14bcd8 | 16532 | for ac_func in uname gethostname |
70846f0a | 16533 | do |
698dcdb6 | 16534 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
cb61c62d | 16535 | echo "configure:16536: checking for $ac_func" >&5 |
698dcdb6 VZ |
16536 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16537 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16538 | else | |
16539 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 16540 | #line 16541 "configure" |
70846f0a VZ |
16541 | #include "confdefs.h" |
16542 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16543 | which can conflict with char $ac_func(); below. */ |
70846f0a VZ |
16544 | #include <assert.h> |
16545 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16546 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16547 | builtin and then its argument prototype would still apply. */ |
16548 | char $ac_func(); | |
16549 | ||
16550 | int main() { | |
70846f0a VZ |
16551 | |
16552 | /* The GNU C library defines this for functions which it implements | |
16553 | to always fail with ENOSYS. Some functions are actually named | |
16554 | something starting with __ and the normal name is an alias. */ | |
16555 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16556 | choke me | |
16557 | #else | |
698dcdb6 | 16558 | $ac_func(); |
70846f0a VZ |
16559 | #endif |
16560 | ||
698dcdb6 | 16561 | ; return 0; } |
70846f0a | 16562 | EOF |
cb61c62d | 16563 | if { (eval echo configure:16564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16564 | rm -rf conftest* |
16565 | eval "ac_cv_func_$ac_func=yes" | |
16566 | else | |
16567 | echo "configure: failed program was:" >&5 | |
16568 | cat conftest.$ac_ext >&5 | |
16569 | rm -rf conftest* | |
16570 | eval "ac_cv_func_$ac_func=no" | |
16571 | fi | |
16572 | rm -f conftest* | |
16573 | fi | |
70846f0a | 16574 | |
698dcdb6 VZ |
16575 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16576 | echo "$ac_t""yes" 1>&6 | |
16577 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16578 | cat >> confdefs.h <<EOF | |
16579 | #define $ac_tr_func 1 | |
16580 | EOF | |
4f14bcd8 | 16581 | break |
698dcdb6 VZ |
16582 | else |
16583 | echo "$ac_t""no" 1>&6 | |
70846f0a VZ |
16584 | fi |
16585 | done | |
16586 | ||
698dcdb6 | 16587 | |
4f14bcd8 GD |
16588 | |
16589 | ac_ext=C | |
16590 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
16591 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16592 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16593 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16594 | cross_compiling=$ac_cv_prog_cxx_cross | |
16595 | ||
16596 | ||
16597 | for ac_func in strtok_r | |
10f2d63a | 16598 | do |
4f14bcd8 | 16599 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
cb61c62d | 16600 | echo "configure:16601: checking for $ac_func" >&5 |
4f14bcd8 | 16601 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 VZ |
16602 | echo $ac_n "(cached) $ac_c" 1>&6 |
16603 | else | |
16604 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 16605 | #line 16606 "configure" |
10f2d63a | 16606 | #include "confdefs.h" |
4f14bcd8 GD |
16607 | /* System header to define __stub macros and hopefully few prototypes, |
16608 | which can conflict with char $ac_func(); below. */ | |
16609 | #include <assert.h> | |
16610 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16611 | #ifdef __cplusplus | |
16612 | extern "C" | |
16613 | #endif | |
16614 | /* We use char because int might match the return type of a gcc2 | |
16615 | builtin and then its argument prototype would still apply. */ | |
16616 | char $ac_func(); | |
16617 | ||
16618 | int main() { | |
16619 | ||
16620 | /* The GNU C library defines this for functions which it implements | |
16621 | to always fail with ENOSYS. Some functions are actually named | |
16622 | something starting with __ and the normal name is an alias. */ | |
16623 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16624 | choke me | |
16625 | #else | |
16626 | $ac_func(); | |
16627 | #endif | |
16628 | ||
16629 | ; return 0; } | |
698dcdb6 | 16630 | EOF |
cb61c62d | 16631 | if { (eval echo configure:16632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16632 | rm -rf conftest* |
4f14bcd8 | 16633 | eval "ac_cv_func_$ac_func=yes" |
1e487827 | 16634 | else |
698dcdb6 | 16635 | echo "configure: failed program was:" >&5 |
10f2d63a | 16636 | cat conftest.$ac_ext >&5 |
698dcdb6 | 16637 | rm -rf conftest* |
4f14bcd8 | 16638 | eval "ac_cv_func_$ac_func=no" |
10f2d63a | 16639 | fi |
698dcdb6 | 16640 | rm -f conftest* |
10f2d63a | 16641 | fi |
4f14bcd8 GD |
16642 | |
16643 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 16644 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 | 16645 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
698dcdb6 | 16646 | cat >> confdefs.h <<EOF |
4f14bcd8 | 16647 | #define $ac_tr_func 1 |
10f2d63a | 16648 | EOF |
698dcdb6 VZ |
16649 | |
16650 | else | |
16651 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
16652 | fi |
16653 | done | |
16654 | ||
698dcdb6 | 16655 | |
4f14bcd8 GD |
16656 | ac_ext=c |
16657 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
16658 | ac_cpp='$CPP $CPPFLAGS' | |
16659 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16660 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16661 | cross_compiling=$ac_cv_prog_cc_cross | |
16662 | ||
16663 | ||
16664 | INET_LINK= | |
16665 | for ac_func in inet_addr | |
16666 | do | |
16667 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
cb61c62d | 16668 | echo "configure:16669: checking for $ac_func" >&5 |
4f14bcd8 | 16669 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 | 16670 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 16671 | else |
4f14bcd8 | 16672 | cat > conftest.$ac_ext <<EOF |
cb61c62d | 16673 | #line 16674 "configure" |
10f2d63a | 16674 | #include "confdefs.h" |
4f14bcd8 GD |
16675 | /* System header to define __stub macros and hopefully few prototypes, |
16676 | which can conflict with char $ac_func(); below. */ | |
16677 | #include <assert.h> | |
10f2d63a VZ |
16678 | /* Override any gcc2 internal prototype to avoid an error. */ |
16679 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16680 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16681 | char $ac_func(); |
698dcdb6 VZ |
16682 | |
16683 | int main() { | |
4f14bcd8 GD |
16684 | |
16685 | /* The GNU C library defines this for functions which it implements | |
16686 | to always fail with ENOSYS. Some functions are actually named | |
16687 | something starting with __ and the normal name is an alias. */ | |
16688 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16689 | choke me | |
16690 | #else | |
16691 | $ac_func(); | |
16692 | #endif | |
16693 | ||
698dcdb6 VZ |
16694 | ; return 0; } |
16695 | EOF | |
cb61c62d | 16696 | if { (eval echo configure:16697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16697 | rm -rf conftest* |
4f14bcd8 | 16698 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
16699 | else |
16700 | echo "configure: failed program was:" >&5 | |
16701 | cat conftest.$ac_ext >&5 | |
16702 | rm -rf conftest* | |
4f14bcd8 | 16703 | eval "ac_cv_func_$ac_func=no" |
698dcdb6 VZ |
16704 | fi |
16705 | rm -f conftest* | |
698dcdb6 | 16706 | fi |
4f14bcd8 GD |
16707 | |
16708 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 16709 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
16710 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
16711 | cat >> confdefs.h <<EOF | |
16712 | #define $ac_tr_func 1 | |
16713 | EOF | |
16714 | cat >> confdefs.h <<\EOF | |
16715 | #define HAVE_INET_ADDR 1 | |
10f2d63a VZ |
16716 | EOF |
16717 | ||
16718 | else | |
698dcdb6 | 16719 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 16720 | echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6 |
cb61c62d | 16721 | echo "configure:16722: checking for inet_addr in -lnsl" >&5 |
4f14bcd8 | 16722 | ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
16723 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
16724 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 16725 | else |
698dcdb6 | 16726 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 16727 | LIBS="-lnsl $LIBS" |
698dcdb6 | 16728 | cat > conftest.$ac_ext <<EOF |
cb61c62d | 16729 | #line 16730 "configure" |
10f2d63a VZ |
16730 | #include "confdefs.h" |
16731 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16732 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16733 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16734 | char inet_addr(); |
698dcdb6 VZ |
16735 | |
16736 | int main() { | |
4f14bcd8 | 16737 | inet_addr() |
698dcdb6 VZ |
16738 | ; return 0; } |
16739 | EOF | |
cb61c62d | 16740 | if { (eval echo configure:16741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16741 | rm -rf conftest* |
16742 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16743 | else | |
16744 | echo "configure: failed program was:" >&5 | |
16745 | cat conftest.$ac_ext >&5 | |
16746 | rm -rf conftest* | |
16747 | eval "ac_cv_lib_$ac_lib_var=no" | |
16748 | fi | |
16749 | rm -f conftest* | |
16750 | LIBS="$ac_save_LIBS" | |
16751 | ||
16752 | fi | |
16753 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16754 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 16755 | INET_LINK="nsl" |
10f2d63a | 16756 | else |
698dcdb6 | 16757 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 16758 | echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6 |
cb61c62d | 16759 | echo "configure:16760: checking for inet_addr in -lresolv" >&5 |
4f14bcd8 | 16760 | ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
16761 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
16762 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 16763 | else |
698dcdb6 | 16764 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 16765 | LIBS="-lresolv $LIBS" |
698dcdb6 | 16766 | cat > conftest.$ac_ext <<EOF |
cb61c62d | 16767 | #line 16768 "configure" |
10f2d63a VZ |
16768 | #include "confdefs.h" |
16769 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16770 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16771 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16772 | char inet_addr(); |
698dcdb6 VZ |
16773 | |
16774 | int main() { | |
4f14bcd8 | 16775 | inet_addr() |
698dcdb6 VZ |
16776 | ; return 0; } |
16777 | EOF | |
cb61c62d | 16778 | if { (eval echo configure:16779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16779 | rm -rf conftest* |
16780 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16781 | else | |
16782 | echo "configure: failed program was:" >&5 | |
16783 | cat conftest.$ac_ext >&5 | |
16784 | rm -rf conftest* | |
16785 | eval "ac_cv_lib_$ac_lib_var=no" | |
16786 | fi | |
16787 | rm -f conftest* | |
16788 | LIBS="$ac_save_LIBS" | |
16789 | ||
16790 | fi | |
16791 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16792 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 GD |
16793 | INET_LINK="resolv" |
16794 | ||
698dcdb6 | 16795 | else |
4f14bcd8 GD |
16796 | echo "$ac_t""no" 1>&6 |
16797 | fi | |
698dcdb6 | 16798 | |
4f14bcd8 | 16799 | |
698dcdb6 | 16800 | fi |
4f14bcd8 GD |
16801 | |
16802 | ||
698dcdb6 VZ |
16803 | |
16804 | fi | |
4f14bcd8 GD |
16805 | done |
16806 | ||
16807 | ||
16808 | for ac_func in inet_aton | |
16809 | do | |
16810 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
cb61c62d | 16811 | echo "configure:16812: checking for $ac_func" >&5 |
4f14bcd8 | 16812 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 VZ |
16813 | echo $ac_n "(cached) $ac_c" 1>&6 |
16814 | else | |
4f14bcd8 | 16815 | cat > conftest.$ac_ext <<EOF |
cb61c62d | 16816 | #line 16817 "configure" |
f6bcfd97 | 16817 | #include "confdefs.h" |
4f14bcd8 GD |
16818 | /* System header to define __stub macros and hopefully few prototypes, |
16819 | which can conflict with char $ac_func(); below. */ | |
16820 | #include <assert.h> | |
f6bcfd97 BP |
16821 | /* Override any gcc2 internal prototype to avoid an error. */ |
16822 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16823 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16824 | char $ac_func(); |
698dcdb6 VZ |
16825 | |
16826 | int main() { | |
4f14bcd8 GD |
16827 | |
16828 | /* The GNU C library defines this for functions which it implements | |
16829 | to always fail with ENOSYS. Some functions are actually named | |
16830 | something starting with __ and the normal name is an alias. */ | |
16831 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16832 | choke me | |
16833 | #else | |
16834 | $ac_func(); | |
16835 | #endif | |
16836 | ||
698dcdb6 VZ |
16837 | ; return 0; } |
16838 | EOF | |
cb61c62d | 16839 | if { (eval echo configure:16840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16840 | rm -rf conftest* |
4f14bcd8 | 16841 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
16842 | else |
16843 | echo "configure: failed program was:" >&5 | |
16844 | cat conftest.$ac_ext >&5 | |
16845 | rm -rf conftest* | |
4f14bcd8 | 16846 | eval "ac_cv_func_$ac_func=no" |
698dcdb6 VZ |
16847 | fi |
16848 | rm -f conftest* | |
698dcdb6 | 16849 | fi |
4f14bcd8 GD |
16850 | |
16851 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 16852 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
16853 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
16854 | cat >> confdefs.h <<EOF | |
16855 | #define $ac_tr_func 1 | |
16856 | EOF | |
16857 | cat >> confdefs.h <<\EOF | |
16858 | #define HAVE_INET_ATON 1 | |
16859 | EOF | |
16860 | ||
10f2d63a | 16861 | else |
698dcdb6 | 16862 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 16863 | echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6 |
cb61c62d | 16864 | echo "configure:16865: checking for inet_aton in -l$INET_LINK" >&5 |
4f14bcd8 | 16865 | ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
16866 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
16867 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 16868 | else |
698dcdb6 | 16869 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 16870 | LIBS="-l$INET_LINK $LIBS" |
698dcdb6 | 16871 | cat > conftest.$ac_ext <<EOF |
cb61c62d | 16872 | #line 16873 "configure" |
10f2d63a | 16873 | #include "confdefs.h" |
6232543b | 16874 | /* Override any gcc2 internal prototype to avoid an error. */ |
6232543b | 16875 | /* We use char because int might match the return type of a gcc2 |
698dcdb6 | 16876 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16877 | char inet_aton(); |
698dcdb6 VZ |
16878 | |
16879 | int main() { | |
4f14bcd8 | 16880 | inet_aton() |
698dcdb6 VZ |
16881 | ; return 0; } |
16882 | EOF | |
cb61c62d | 16883 | if { (eval echo configure:16884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16884 | rm -rf conftest* |
16885 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16886 | else | |
16887 | echo "configure: failed program was:" >&5 | |
16888 | cat conftest.$ac_ext >&5 | |
16889 | rm -rf conftest* | |
16890 | eval "ac_cv_lib_$ac_lib_var=no" | |
16891 | fi | |
16892 | rm -f conftest* | |
16893 | LIBS="$ac_save_LIBS" | |
10f2d63a | 16894 | |
698dcdb6 VZ |
16895 | fi |
16896 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16897 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 GD |
16898 | cat >> confdefs.h <<\EOF |
16899 | #define HAVE_INET_ATON 1 | |
16900 | EOF | |
16901 | ||
698dcdb6 VZ |
16902 | else |
16903 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
16904 | fi |
16905 | ||
4f14bcd8 | 16906 | |
10f2d63a | 16907 | fi |
4f14bcd8 | 16908 | done |
10f2d63a | 16909 | |
4f14bcd8 GD |
16910 | |
16911 | if test "x$INET_LINK" != "x"; then | |
16912 | cat >> confdefs.h <<\EOF | |
16913 | #define HAVE_INET_ADDR 1 | |
16914 | EOF | |
16915 | ||
3d63bc3a | 16916 | INET_LINK=" -l$INET_LINK" |
6232543b | 16917 | fi |
10f2d63a | 16918 | |
1e487827 | 16919 | fi |
703e0a69 | 16920 | |
698dcdb6 | 16921 | |
4f14bcd8 GD |
16922 | cat > confcache <<\EOF |
16923 | # This file is a shell script that caches the results of configure | |
16924 | # tests run on this system so they can be shared between configure | |
16925 | # scripts and configure runs. It is not useful on other systems. | |
16926 | # If it contains results you don't want to keep, you may remove or edit it. | |
16927 | # | |
16928 | # By default, configure uses ./config.cache as the cache file, | |
16929 | # creating it if it does not exist already. You can give configure | |
16930 | # the --cache-file=FILE option to use a different cache file; that is | |
16931 | # what configure does when it calls configure scripts in | |
16932 | # subdirectories, so they share the cache. | |
16933 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
16934 | # config.status only pays attention to the cache file if you give it the | |
16935 | # --recheck option to rerun configure. | |
16936 | # | |
f6bcfd97 | 16937 | EOF |
4f14bcd8 GD |
16938 | # The following way of writing the cache mishandles newlines in values, |
16939 | # but we know of no workaround that is simple, portable, and efficient. | |
16940 | # So, don't put newlines in cache variables' values. | |
16941 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
16942 | # and sets the high bit in the cache file unless we assign to the vars. | |
16943 | (set) 2>&1 | | |
16944 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
16945 | *ac_space=\ *) | |
16946 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
16947 | # turns \\\\ into \\, and sed turns \\ into \). | |
16948 | sed -n \ | |
16949 | -e "s/'/'\\\\''/g" \ | |
16950 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
16951 | ;; | |
16952 | *) | |
16953 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
16954 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
16955 | ;; | |
16956 | esac >> confcache | |
16957 | if cmp -s $cache_file confcache; then | |
16958 | : | |
16959 | else | |
16960 | if test -w $cache_file; then | |
16961 | echo "updating cache $cache_file" | |
16962 | cat confcache > $cache_file | |
f6bcfd97 | 16963 | else |
4f14bcd8 | 16964 | echo "not updating unwritable cache $cache_file" |
f6bcfd97 | 16965 | fi |
4f14bcd8 GD |
16966 | fi |
16967 | rm -f confcache | |
f6bcfd97 | 16968 | |
4f14bcd8 GD |
16969 | |
16970 | ||
16971 | if test "$TOOLKIT" != "MSW"; then | |
16972 | ||
7274f1c7 RL |
16973 | |
16974 | THREADS_LINK= | |
16975 | THREADS_OBJ= | |
16976 | CODE_GEN_FLAGS= | |
16977 | CODE_GEN_FLAGS_CXX= | |
16978 | ||
16979 | if test "$wxUSE_THREADS" = "yes" ; then | |
16980 | if test "$wxUSE_WINE" = 1 ; then | |
156b2523 | 16981 | echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2 |
7274f1c7 RL |
16982 | wxUSE_THREADS="no" |
16983 | elif test "$USE_BEOS" = 1; then | |
156b2523 | 16984 | echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2 |
7274f1c7 RL |
16985 | wxUSE_THREADS="no" |
16986 | fi | |
4f14bcd8 | 16987 | fi |
4f14bcd8 | 16988 | |
7274f1c7 RL |
16989 | if test "$wxUSE_THREADS" = "yes" ; then |
16990 | ||
16991 | if test "$USE_AIX" = 1; then | |
16992 | THREADS_LIB=pthreads | |
16993 | else | |
16994 | THREADS_LIB=pthread | |
16995 | fi | |
4f14bcd8 | 16996 | |
7274f1c7 | 16997 | echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6 |
cb61c62d | 16998 | echo "configure:16999: checking for pthread_create in -l$THREADS_LIB" >&5 |
4f14bcd8 | 16999 | ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
17000 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
17001 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 17002 | else |
698dcdb6 | 17003 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17004 | LIBS="-l$THREADS_LIB $LIBS" |
698dcdb6 | 17005 | cat > conftest.$ac_ext <<EOF |
cb61c62d | 17006 | #line 17007 "configure" |
10f2d63a VZ |
17007 | #include "confdefs.h" |
17008 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17009 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 17010 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 17011 | char pthread_create(); |
698dcdb6 VZ |
17012 | |
17013 | int main() { | |
4f14bcd8 | 17014 | pthread_create() |
698dcdb6 VZ |
17015 | ; return 0; } |
17016 | EOF | |
cb61c62d | 17017 | if { (eval echo configure:17018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17018 | rm -rf conftest* |
17019 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17020 | else | |
17021 | echo "configure: failed program was:" >&5 | |
17022 | cat conftest.$ac_ext >&5 | |
17023 | rm -rf conftest* | |
17024 | eval "ac_cv_lib_$ac_lib_var=no" | |
17025 | fi | |
17026 | rm -f conftest* | |
17027 | LIBS="$ac_save_LIBS" | |
17028 | ||
17029 | fi | |
17030 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17031 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 17032 | |
7274f1c7 RL |
17033 | THREADS_OBJ="threadpsx.lo" |
17034 | THREADS_LINK=$THREADS_LIB | |
17035 | ||
10f2d63a | 17036 | else |
698dcdb6 | 17037 | echo "$ac_t""no" 1>&6 |
10f2d63a | 17038 | |
7274f1c7 | 17039 | echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 |
cb61c62d | 17040 | echo "configure:17041: checking for pthread_create in -lc_r" >&5 |
4f14bcd8 GD |
17041 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` |
17042 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 VZ |
17043 | echo $ac_n "(cached) $ac_c" 1>&6 |
17044 | else | |
4f14bcd8 GD |
17045 | ac_save_LIBS="$LIBS" |
17046 | LIBS="-lc_r $LIBS" | |
17047 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 17048 | #line 17049 "configure" |
10f2d63a | 17049 | #include "confdefs.h" |
4f14bcd8 GD |
17050 | /* Override any gcc2 internal prototype to avoid an error. */ |
17051 | /* We use char because int might match the return type of a gcc2 | |
17052 | builtin and then its argument prototype would still apply. */ | |
17053 | char pthread_create(); | |
10f2d63a | 17054 | |
4f14bcd8 GD |
17055 | int main() { |
17056 | pthread_create() | |
698dcdb6 VZ |
17057 | ; return 0; } |
17058 | EOF | |
cb61c62d | 17059 | if { (eval echo configure:17060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17060 | rm -rf conftest* |
4f14bcd8 | 17061 | eval "ac_cv_lib_$ac_lib_var=yes" |
10f2d63a | 17062 | else |
698dcdb6 VZ |
17063 | echo "configure: failed program was:" >&5 |
17064 | cat conftest.$ac_ext >&5 | |
17065 | rm -rf conftest* | |
4f14bcd8 | 17066 | eval "ac_cv_lib_$ac_lib_var=no" |
6232543b | 17067 | fi |
698dcdb6 | 17068 | rm -f conftest* |
4f14bcd8 | 17069 | LIBS="$ac_save_LIBS" |
d9b9876f | 17070 | |
4f14bcd8 GD |
17071 | fi |
17072 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17073 | echo "$ac_t""yes" 1>&6 | |
17074 | ||
7274f1c7 RL |
17075 | THREADS_OBJ="threadpsx.lo" |
17076 | THREADS_LINK="c_r" | |
17077 | ||
4f14bcd8 GD |
17078 | else |
17079 | echo "$ac_t""no" 1>&6 | |
ab252f7b | 17080 | |
7274f1c7 | 17081 | ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'` |
4f14bcd8 | 17082 | echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6 |
cb61c62d | 17083 | echo "configure:17084: checking for sys/prctl.h" >&5 |
4f14bcd8 | 17084 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
698dcdb6 | 17085 | echo $ac_n "(cached) $ac_c" 1>&6 |
d9b9876f | 17086 | else |
4f14bcd8 | 17087 | cat > conftest.$ac_ext <<EOF |
cb61c62d | 17088 | #line 17089 "configure" |
d9b9876f | 17089 | #include "confdefs.h" |
4f14bcd8 | 17090 | #include <sys/prctl.h> |
698dcdb6 | 17091 | EOF |
4f14bcd8 | 17092 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
cb61c62d | 17093 | { (eval echo configure:17094: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
17094 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
17095 | if test -z "$ac_err"; then | |
698dcdb6 | 17096 | rm -rf conftest* |
4f14bcd8 | 17097 | eval "ac_cv_header_$ac_safe=yes" |
d9b9876f | 17098 | else |
4f14bcd8 | 17099 | echo "$ac_err" >&5 |
698dcdb6 VZ |
17100 | echo "configure: failed program was:" >&5 |
17101 | cat conftest.$ac_ext >&5 | |
17102 | rm -rf conftest* | |
4f14bcd8 | 17103 | eval "ac_cv_header_$ac_safe=no" |
6232543b | 17104 | fi |
698dcdb6 | 17105 | rm -f conftest* |
4f14bcd8 GD |
17106 | fi |
17107 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
17108 | echo "$ac_t""yes" 1>&6 | |
698dcdb6 | 17109 | |
7274f1c7 RL |
17110 | THREADS_OBJ="threadsgi.lo" |
17111 | ||
4f14bcd8 GD |
17112 | else |
17113 | echo "$ac_t""no" 1>&6 | |
1e487827 | 17114 | fi |
698dcdb6 | 17115 | |
7274f1c7 | 17116 | |
4f14bcd8 | 17117 | fi |
d9b9876f | 17118 | |
7274f1c7 | 17119 | |
4f14bcd8 | 17120 | fi |
d9b9876f | 17121 | |
4f14bcd8 | 17122 | |
7274f1c7 RL |
17123 | if test -z "$THREADS_OBJ" ; then |
17124 | wxUSE_THREADS=no | |
156b2523 | 17125 | echo "configure: warning: No thread support on this system... disabled" 1>&2 |
7274f1c7 | 17126 | fi |
4f14bcd8 | 17127 | fi |
4f14bcd8 | 17128 | |
7274f1c7 RL |
17129 | if test "$wxUSE_THREADS" = "yes" ; then |
17130 | for ac_func in thr_setconcurrency | |
4f14bcd8 GD |
17131 | do |
17132 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
cb61c62d | 17133 | echo "configure:17134: checking for $ac_func" >&5 |
4f14bcd8 | 17134 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 VZ |
17135 | echo $ac_n "(cached) $ac_c" 1>&6 |
17136 | else | |
4f14bcd8 | 17137 | cat > conftest.$ac_ext <<EOF |
cb61c62d | 17138 | #line 17139 "configure" |
d9b9876f | 17139 | #include "confdefs.h" |
4f14bcd8 GD |
17140 | /* System header to define __stub macros and hopefully few prototypes, |
17141 | which can conflict with char $ac_func(); below. */ | |
17142 | #include <assert.h> | |
17143 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17144 | /* We use char because int might match the return type of a gcc2 | |
17145 | builtin and then its argument prototype would still apply. */ | |
17146 | char $ac_func(); | |
17147 | ||
698dcdb6 | 17148 | int main() { |
d9b9876f | 17149 | |
4f14bcd8 GD |
17150 | /* The GNU C library defines this for functions which it implements |
17151 | to always fail with ENOSYS. Some functions are actually named | |
17152 | something starting with __ and the normal name is an alias. */ | |
17153 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17154 | choke me | |
17155 | #else | |
17156 | $ac_func(); | |
17157 | #endif | |
17158 | ||
698dcdb6 VZ |
17159 | ; return 0; } |
17160 | EOF | |
cb61c62d | 17161 | if { (eval echo configure:17162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17162 | rm -rf conftest* |
4f14bcd8 | 17163 | eval "ac_cv_func_$ac_func=yes" |
d9b9876f | 17164 | else |
698dcdb6 VZ |
17165 | echo "configure: failed program was:" >&5 |
17166 | cat conftest.$ac_ext >&5 | |
17167 | rm -rf conftest* | |
4f14bcd8 | 17168 | eval "ac_cv_func_$ac_func=no" |
6232543b | 17169 | fi |
698dcdb6 | 17170 | rm -f conftest* |
1e487827 | 17171 | fi |
698dcdb6 | 17172 | |
4f14bcd8 GD |
17173 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17174 | echo "$ac_t""yes" 1>&6 | |
17175 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17176 | cat >> confdefs.h <<EOF | |
17177 | #define $ac_tr_func 1 | |
d9b9876f | 17178 | EOF |
4f14bcd8 GD |
17179 | |
17180 | else | |
17181 | echo "$ac_t""no" 1>&6 | |
10f2d63a | 17182 | fi |
4f14bcd8 | 17183 | done |
10f2d63a | 17184 | |
10f2d63a | 17185 | |
7274f1c7 RL |
17186 | |
17187 | for ac_hdr in sched.h | |
4f14bcd8 GD |
17188 | do |
17189 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
17190 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
cb61c62d | 17191 | echo "configure:17192: checking for $ac_hdr" >&5 |
4f14bcd8 GD |
17192 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
17193 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 17194 | else |
4f14bcd8 | 17195 | cat > conftest.$ac_ext <<EOF |
cb61c62d | 17196 | #line 17197 "configure" |
4f14bcd8 GD |
17197 | #include "confdefs.h" |
17198 | #include <$ac_hdr> | |
13111b2a | 17199 | EOF |
4f14bcd8 | 17200 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
cb61c62d | 17201 | { (eval echo configure:17202: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
17202 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
17203 | if test -z "$ac_err"; then | |
17204 | rm -rf conftest* | |
17205 | eval "ac_cv_header_$ac_safe=yes" | |
17206 | else | |
17207 | echo "$ac_err" >&5 | |
17208 | echo "configure: failed program was:" >&5 | |
17209 | cat conftest.$ac_ext >&5 | |
17210 | rm -rf conftest* | |
17211 | eval "ac_cv_header_$ac_safe=no" | |
13111b2a | 17212 | fi |
4f14bcd8 | 17213 | rm -f conftest* |
10f2d63a | 17214 | fi |
4f14bcd8 GD |
17215 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
17216 | echo "$ac_t""yes" 1>&6 | |
17217 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
698dcdb6 | 17218 | cat >> confdefs.h <<EOF |
4f14bcd8 | 17219 | #define $ac_tr_hdr 1 |
f6bcfd97 | 17220 | EOF |
4f14bcd8 GD |
17221 | |
17222 | else | |
17223 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 | 17224 | fi |
4f14bcd8 | 17225 | done |
f6bcfd97 | 17226 | |
10f2d63a | 17227 | |
7274f1c7 | 17228 | echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6 |
cb61c62d | 17229 | echo "configure:17230: checking for sched_yield in -l$THREADS_LINK" >&5 |
4f14bcd8 GD |
17230 | ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'` |
17231 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17232 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17233 | else | |
17234 | ac_save_LIBS="$LIBS" | |
17235 | LIBS="-l$THREADS_LINK $LIBS" | |
17236 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 17237 | #line 17238 "configure" |
4f14bcd8 GD |
17238 | #include "confdefs.h" |
17239 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17240 | /* We use char because int might match the return type of a gcc2 | |
17241 | builtin and then its argument prototype would still apply. */ | |
17242 | char sched_yield(); | |
10f2d63a | 17243 | |
4f14bcd8 GD |
17244 | int main() { |
17245 | sched_yield() | |
17246 | ; return 0; } | |
10f2d63a | 17247 | EOF |
cb61c62d | 17248 | if { (eval echo configure:17249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
17249 | rm -rf conftest* |
17250 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 17251 | else |
4f14bcd8 GD |
17252 | echo "configure: failed program was:" >&5 |
17253 | cat conftest.$ac_ext >&5 | |
17254 | rm -rf conftest* | |
17255 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 17256 | fi |
4f14bcd8 GD |
17257 | rm -f conftest* |
17258 | LIBS="$ac_save_LIBS" | |
10f2d63a | 17259 | |
4f14bcd8 GD |
17260 | fi |
17261 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17262 | echo "$ac_t""yes" 1>&6 | |
17263 | cat >> confdefs.h <<\EOF | |
17264 | #define HAVE_SCHED_YIELD 1 | |
10f2d63a VZ |
17265 | EOF |
17266 | ||
4f14bcd8 GD |
17267 | else |
17268 | echo "$ac_t""no" 1>&6 | |
17269 | echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6 | |
cb61c62d | 17270 | echo "configure:17271: checking for sched_yield in -lposix4" >&5 |
4f14bcd8 GD |
17271 | ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'` |
17272 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17273 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17274 | else | |
17275 | ac_save_LIBS="$LIBS" | |
17276 | LIBS="-lposix4 $LIBS" | |
17277 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 17278 | #line 17279 "configure" |
4f14bcd8 GD |
17279 | #include "confdefs.h" |
17280 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17281 | /* We use char because int might match the return type of a gcc2 | |
17282 | builtin and then its argument prototype would still apply. */ | |
17283 | char sched_yield(); | |
47c13eb7 | 17284 | |
4f14bcd8 GD |
17285 | int main() { |
17286 | sched_yield() | |
17287 | ; return 0; } | |
10f2d63a | 17288 | EOF |
cb61c62d | 17289 | if { (eval echo configure:17290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
17290 | rm -rf conftest* |
17291 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 17292 | else |
4f14bcd8 GD |
17293 | echo "configure: failed program was:" >&5 |
17294 | cat conftest.$ac_ext >&5 | |
17295 | rm -rf conftest* | |
17296 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 17297 | fi |
4f14bcd8 GD |
17298 | rm -f conftest* |
17299 | LIBS="$ac_save_LIBS" | |
10f2d63a | 17300 | |
54276ccf | 17301 | fi |
4f14bcd8 GD |
17302 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
17303 | echo "$ac_t""yes" 1>&6 | |
17304 | cat >> confdefs.h <<\EOF | |
17305 | #define HAVE_SCHED_YIELD 1 | |
54276ccf | 17306 | EOF |
3d63bc3a | 17307 | POSIX4_LINK=" -lposix4" |
4f14bcd8 GD |
17308 | else |
17309 | echo "$ac_t""no" 1>&6 | |
17310 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
7274f1c7 | 17311 | |
54276ccf VZ |
17312 | fi |
17313 | ||
7274f1c7 | 17314 | |
4f14bcd8 | 17315 | fi |
698dcdb6 | 17316 | |
10f2d63a | 17317 | |
7274f1c7 RL |
17318 | HAVE_PRIOR_FUNCS=0 |
17319 | echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6 | |
cb61c62d | 17320 | echo "configure:17321: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5 |
4f14bcd8 GD |
17321 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'` |
17322 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 VZ |
17323 | echo $ac_n "(cached) $ac_c" 1>&6 |
17324 | else | |
4f14bcd8 GD |
17325 | ac_save_LIBS="$LIBS" |
17326 | LIBS="-l$THREADS_LINK $LIBS" | |
17327 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 17328 | #line 17329 "configure" |
422107f9 | 17329 | #include "confdefs.h" |
4f14bcd8 GD |
17330 | /* Override any gcc2 internal prototype to avoid an error. */ |
17331 | /* We use char because int might match the return type of a gcc2 | |
17332 | builtin and then its argument prototype would still apply. */ | |
17333 | char pthread_attr_getschedpolicy(); | |
17334 | ||
17335 | int main() { | |
17336 | pthread_attr_getschedpolicy() | |
17337 | ; return 0; } | |
698dcdb6 | 17338 | EOF |
cb61c62d | 17339 | if { (eval echo configure:17340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17340 | rm -rf conftest* |
4f14bcd8 | 17341 | eval "ac_cv_lib_$ac_lib_var=yes" |
422107f9 | 17342 | else |
698dcdb6 | 17343 | echo "configure: failed program was:" >&5 |
422107f9 | 17344 | cat conftest.$ac_ext >&5 |
698dcdb6 | 17345 | rm -rf conftest* |
4f14bcd8 | 17346 | eval "ac_cv_lib_$ac_lib_var=no" |
422107f9 | 17347 | fi |
698dcdb6 | 17348 | rm -f conftest* |
4f14bcd8 GD |
17349 | LIBS="$ac_save_LIBS" |
17350 | ||
422107f9 | 17351 | fi |
4f14bcd8 | 17352 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
698dcdb6 | 17353 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 | 17354 | echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6 |
cb61c62d | 17355 | echo "configure:17356: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5 |
4f14bcd8 | 17356 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
17357 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
17358 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 17359 | else |
698dcdb6 | 17360 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17361 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 17362 | cat > conftest.$ac_ext <<EOF |
cb61c62d | 17363 | #line 17364 "configure" |
422107f9 VZ |
17364 | #include "confdefs.h" |
17365 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17366 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 17367 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 17368 | char pthread_attr_setschedparam(); |
698dcdb6 VZ |
17369 | |
17370 | int main() { | |
4f14bcd8 | 17371 | pthread_attr_setschedparam() |
698dcdb6 VZ |
17372 | ; return 0; } |
17373 | EOF | |
cb61c62d | 17374 | if { (eval echo configure:17375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17375 | rm -rf conftest* |
17376 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17377 | else | |
17378 | echo "configure: failed program was:" >&5 | |
17379 | cat conftest.$ac_ext >&5 | |
17380 | rm -rf conftest* | |
17381 | eval "ac_cv_lib_$ac_lib_var=no" | |
17382 | fi | |
17383 | rm -f conftest* | |
17384 | LIBS="$ac_save_LIBS" | |
17385 | ||
17386 | fi | |
17387 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17388 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 17389 | echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6 |
cb61c62d | 17390 | echo "configure:17391: checking for sched_get_priority_max in -l$THREADS_LINK" >&5 |
4f14bcd8 GD |
17391 | ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
17392 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 VZ |
17393 | echo $ac_n "(cached) $ac_c" 1>&6 |
17394 | else | |
4f14bcd8 GD |
17395 | ac_save_LIBS="$LIBS" |
17396 | LIBS="-l$THREADS_LINK $LIBS" | |
17397 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 17398 | #line 17399 "configure" |
422107f9 | 17399 | #include "confdefs.h" |
4f14bcd8 GD |
17400 | /* Override any gcc2 internal prototype to avoid an error. */ |
17401 | /* We use char because int might match the return type of a gcc2 | |
17402 | builtin and then its argument prototype would still apply. */ | |
17403 | char sched_get_priority_max(); | |
17404 | ||
17405 | int main() { | |
17406 | sched_get_priority_max() | |
17407 | ; return 0; } | |
698dcdb6 | 17408 | EOF |
cb61c62d | 17409 | if { (eval echo configure:17410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17410 | rm -rf conftest* |
4f14bcd8 | 17411 | eval "ac_cv_lib_$ac_lib_var=yes" |
422107f9 | 17412 | else |
698dcdb6 | 17413 | echo "configure: failed program was:" >&5 |
422107f9 | 17414 | cat conftest.$ac_ext >&5 |
698dcdb6 | 17415 | rm -rf conftest* |
4f14bcd8 | 17416 | eval "ac_cv_lib_$ac_lib_var=no" |
422107f9 | 17417 | fi |
698dcdb6 | 17418 | rm -f conftest* |
4f14bcd8 GD |
17419 | LIBS="$ac_save_LIBS" |
17420 | ||
422107f9 | 17421 | fi |
4f14bcd8 | 17422 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
698dcdb6 | 17423 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
17424 | HAVE_PRIOR_FUNCS=1 |
17425 | else | |
17426 | echo "$ac_t""no" 1>&6 | |
17427 | echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6 | |
cb61c62d | 17428 | echo "configure:17429: checking for sched_get_priority_max in -lposix4" >&5 |
4f14bcd8 | 17429 | ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
17430 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
17431 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 17432 | else |
698dcdb6 | 17433 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17434 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 17435 | cat > conftest.$ac_ext <<EOF |
cb61c62d | 17436 | #line 17437 "configure" |
422107f9 VZ |
17437 | #include "confdefs.h" |
17438 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17439 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 17440 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 17441 | char sched_get_priority_max(); |
698dcdb6 VZ |
17442 | |
17443 | int main() { | |
4f14bcd8 | 17444 | sched_get_priority_max() |
698dcdb6 VZ |
17445 | ; return 0; } |
17446 | EOF | |
cb61c62d | 17447 | if { (eval echo configure:17448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17448 | rm -rf conftest* |
17449 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17450 | else | |
17451 | echo "configure: failed program was:" >&5 | |
17452 | cat conftest.$ac_ext >&5 | |
17453 | rm -rf conftest* | |
17454 | eval "ac_cv_lib_$ac_lib_var=no" | |
17455 | fi | |
17456 | rm -f conftest* | |
17457 | LIBS="$ac_save_LIBS" | |
17458 | ||
17459 | fi | |
17460 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17461 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 17462 | |
7274f1c7 RL |
17463 | HAVE_PRIOR_FUNCS=1 |
17464 | POSIX4_LINK=" -lposix4" | |
17465 | ||
698dcdb6 VZ |
17466 | else |
17467 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
17468 | fi |
17469 | ||
7274f1c7 | 17470 | |
422107f9 VZ |
17471 | fi |
17472 | ||
7274f1c7 | 17473 | |
4f14bcd8 GD |
17474 | else |
17475 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
17476 | fi |
17477 | ||
7274f1c7 | 17478 | |
698dcdb6 | 17479 | else |
4f14bcd8 GD |
17480 | echo "$ac_t""no" 1>&6 |
17481 | fi | |
463abc64 | 17482 | |
463abc64 | 17483 | |
7274f1c7 RL |
17484 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
17485 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 17486 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 |
698dcdb6 | 17487 | EOF |
463abc64 | 17488 | |
7274f1c7 RL |
17489 | else |
17490 | echo "configure: warning: Setting thread priority will not work" 1>&2 | |
17491 | fi | |
463abc64 | 17492 | |
7274f1c7 | 17493 | echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6 |
cb61c62d | 17494 | echo "configure:17495: checking for pthread_cancel in -l$THREADS_LINK" >&5 |
4f14bcd8 | 17495 | ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
17496 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
17497 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 17498 | else |
698dcdb6 | 17499 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17500 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 17501 | cat > conftest.$ac_ext <<EOF |
cb61c62d | 17502 | #line 17503 "configure" |
422107f9 VZ |
17503 | #include "confdefs.h" |
17504 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17505 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 17506 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 17507 | char pthread_cancel(); |
698dcdb6 VZ |
17508 | |
17509 | int main() { | |
4f14bcd8 | 17510 | pthread_cancel() |
698dcdb6 VZ |
17511 | ; return 0; } |
17512 | EOF | |
cb61c62d | 17513 | if { (eval echo configure:17514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17514 | rm -rf conftest* |
17515 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17516 | else | |
17517 | echo "configure: failed program was:" >&5 | |
17518 | cat conftest.$ac_ext >&5 | |
17519 | rm -rf conftest* | |
17520 | eval "ac_cv_lib_$ac_lib_var=no" | |
17521 | fi | |
17522 | rm -f conftest* | |
17523 | LIBS="$ac_save_LIBS" | |
17524 | ||
17525 | fi | |
17526 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17527 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 GD |
17528 | cat >> confdefs.h <<\EOF |
17529 | #define HAVE_PTHREAD_CANCEL 1 | |
17530 | EOF | |
17531 | ||
698dcdb6 VZ |
17532 | else |
17533 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 | 17534 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 |
422107f9 VZ |
17535 | fi |
17536 | ||
422107f9 | 17537 | |
7274f1c7 | 17538 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 |
cb61c62d | 17539 | echo "configure:17540: checking for pthread_cleanup_push/pop" >&5 |
4f14bcd8 GD |
17540 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then |
17541 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17542 | else | |
17543 | ||
7274f1c7 | 17544 | cat > conftest.$ac_ext <<EOF |
cb61c62d | 17545 | #line 17546 "configure" |
4f14bcd8 GD |
17546 | #include "confdefs.h" |
17547 | #include <pthread.h> | |
17548 | int main() { | |
17549 | ||
7274f1c7 RL |
17550 | pthread_cleanup_push(NULL, NULL); |
17551 | pthread_cleanup_pop(0); | |
17552 | ||
4f14bcd8 GD |
17553 | ; return 0; } |
17554 | EOF | |
cb61c62d | 17555 | if { (eval echo configure:17556: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
17556 | rm -rf conftest* |
17557 | ||
7274f1c7 RL |
17558 | wx_cv_func_pthread_cleanup_push=yes |
17559 | ||
4f14bcd8 GD |
17560 | else |
17561 | echo "configure: failed program was:" >&5 | |
17562 | cat conftest.$ac_ext >&5 | |
17563 | rm -rf conftest* | |
17564 | ||
7274f1c7 RL |
17565 | wx_cv_func_pthread_cleanup_push=no |
17566 | ||
4f14bcd8 GD |
17567 | fi |
17568 | rm -f conftest* | |
7274f1c7 | 17569 | |
10f2d63a VZ |
17570 | fi |
17571 | ||
4f14bcd8 GD |
17572 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 |
17573 | ||
7274f1c7 RL |
17574 | if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then |
17575 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 17576 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 |
c7a2bf27 RR |
17577 | EOF |
17578 | ||
7274f1c7 | 17579 | fi |
4f14bcd8 | 17580 | |
7274f1c7 RL |
17581 | |
17582 | if test "x$wx_lib_glibc21" = "xyes"; then | |
17583 | CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" | |
17584 | fi | |
4f14bcd8 | 17585 | |
7274f1c7 | 17586 | echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6 |
cb61c62d | 17587 | echo "configure:17588: checking for pthread_mutexattr_t" >&5 |
4f14bcd8 | 17588 | if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then |
698dcdb6 VZ |
17589 | echo $ac_n "(cached) $ac_c" 1>&6 |
17590 | else | |
4f14bcd8 | 17591 | |
7274f1c7 | 17592 | cat > conftest.$ac_ext <<EOF |
cb61c62d | 17593 | #line 17594 "configure" |
0dcf9893 | 17594 | #include "confdefs.h" |
4f14bcd8 GD |
17595 | #include <pthread.h> |
17596 | int main() { | |
17597 | ||
7274f1c7 RL |
17598 | pthread_mutexattr_t attr; |
17599 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
17600 | ||
4f14bcd8 | 17601 | ; return 0; } |
698dcdb6 | 17602 | EOF |
cb61c62d | 17603 | if { (eval echo configure:17604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 17604 | rm -rf conftest* |
4f14bcd8 | 17605 | |
7274f1c7 RL |
17606 | wx_cv_type_pthread_mutexattr_t=yes |
17607 | ||
3fed1840 | 17608 | else |
698dcdb6 | 17609 | echo "configure: failed program was:" >&5 |
3fed1840 | 17610 | cat conftest.$ac_ext >&5 |
698dcdb6 | 17611 | rm -rf conftest* |
4f14bcd8 | 17612 | |
7274f1c7 RL |
17613 | wx_cv_type_pthread_mutexattr_t=no |
17614 | ||
4f14bcd8 | 17615 | |
3fed1840 | 17616 | fi |
698dcdb6 | 17617 | rm -f conftest* |
7274f1c7 | 17618 | |
3fed1840 | 17619 | fi |
4f14bcd8 GD |
17620 | |
17621 | echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6 | |
17622 | ||
7274f1c7 RL |
17623 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then |
17624 | cat >> confdefs.h <<\EOF | |
4f14bcd8 GD |
17625 | #define HAVE_PTHREAD_MUTEXATTR_T 1 |
17626 | EOF | |
17627 | ||
7274f1c7 RL |
17628 | else |
17629 | echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6 | |
cb61c62d | 17630 | echo "configure:17631: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 |
4f14bcd8 | 17631 | if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then |
698dcdb6 | 17632 | echo $ac_n "(cached) $ac_c" 1>&6 |
3fed1840 | 17633 | else |
4f14bcd8 | 17634 | |
7274f1c7 | 17635 | cat > conftest.$ac_ext <<EOF |
cb61c62d | 17636 | #line 17637 "configure" |
3fed1840 | 17637 | #include "confdefs.h" |
4f14bcd8 | 17638 | #include <pthread.h> |
698dcdb6 | 17639 | int main() { |
4f14bcd8 | 17640 | |
7274f1c7 RL |
17641 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; |
17642 | ||
698dcdb6 VZ |
17643 | ; return 0; } |
17644 | EOF | |
cb61c62d | 17645 | if { (eval echo configure:17646: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 17646 | rm -rf conftest* |
4f14bcd8 | 17647 | |
7274f1c7 RL |
17648 | wx_cv_type_pthread_rec_mutex_init=yes |
17649 | ||
698dcdb6 VZ |
17650 | else |
17651 | echo "configure: failed program was:" >&5 | |
17652 | cat conftest.$ac_ext >&5 | |
17653 | rm -rf conftest* | |
4f14bcd8 | 17654 | |
7274f1c7 RL |
17655 | wx_cv_type_pthread_rec_mutex_init=no |
17656 | ||
4f14bcd8 | 17657 | |
698dcdb6 VZ |
17658 | fi |
17659 | rm -f conftest* | |
7274f1c7 | 17660 | |
3fed1840 RR |
17661 | fi |
17662 | ||
4f14bcd8 | 17663 | echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6 |
7274f1c7 RL |
17664 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then |
17665 | cat >> confdefs.h <<\EOF | |
4f14bcd8 GD |
17666 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 |
17667 | EOF | |
3fed1840 | 17668 | |
7274f1c7 RL |
17669 | else |
17670 | echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2 | |
17671 | fi | |
17672 | fi | |
4f14bcd8 | 17673 | |
7274f1c7 | 17674 | THREADS_LINK=" -l$THREADS_LINK" |
4f14bcd8 | 17675 | |
7274f1c7 RL |
17676 | if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then |
17677 | CPPFLAGS="$CFLAGS -mt" | |
17678 | CXXFLAGS="$CXXFLAGS -mt" | |
17679 | LDFLAGS="$LDFLAGS -mt" | |
17680 | fi | |
17681 | fi | |
3fed1840 | 17682 | |
4f14bcd8 GD |
17683 | fi |
17684 | ||
17685 | if test "$wxUSE_THREADS" = "yes"; then | |
3a922bb4 | 17686 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 17687 | #define wxUSE_THREADS 1 |
7b6058cd GD |
17688 | EOF |
17689 | ||
4f14bcd8 | 17690 | |
3f345b47 | 17691 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS $CPP_MT_FLAG" |
4f14bcd8 GD |
17692 | |
17693 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
698dcdb6 | 17694 | else |
4f14bcd8 GD |
17695 | if test "$ac_cv_func_strtok_r" = "yes"; then |
17696 | echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6 | |
cb61c62d | 17697 | echo "configure:17698: checking if -D_REENTRANT is needed" >&5 |
4f14bcd8 GD |
17698 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
17699 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
17700 | echo "$ac_t""yes" 1>&6 | |
17701 | else | |
17702 | echo "$ac_t""no" 1>&6 | |
17703 | fi | |
17704 | fi | |
17705 | fi | |
17706 | ||
17707 | if test "$WXGTK20" = 1 ; then | |
17708 | cat >> confdefs.h <<EOF | |
17709 | #define __WXGTK20__ $WXGTK20 | |
698dcdb6 | 17710 | EOF |
4f14bcd8 GD |
17711 | |
17712 | WXGTK12=1 | |
10f2d63a | 17713 | fi |
4f14bcd8 GD |
17714 | |
17715 | if test "$WXGTK12" = 1 ; then | |
17716 | cat >> confdefs.h <<EOF | |
17717 | #define __WXGTK12__ $WXGTK12 | |
17718 | EOF | |
17719 | ||
10f2d63a | 17720 | fi |
698dcdb6 | 17721 | |
4f14bcd8 GD |
17722 | if test "$WXGTK127" = 1 ; then |
17723 | cat >> confdefs.h <<EOF | |
17724 | #define __WXGTK127__ $WXGTK127 | |
698dcdb6 | 17725 | EOF |
4f14bcd8 | 17726 | |
698dcdb6 | 17727 | fi |
10f2d63a | 17728 | |
4f14bcd8 GD |
17729 | WXDEBUG= |
17730 | ||
17731 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
17732 | WXDEBUG="-g" | |
17733 | wxUSE_OPTIMISE=no | |
698dcdb6 | 17734 | fi |
4f14bcd8 GD |
17735 | |
17736 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
17737 | wxUSE_DEBUG_INFO=yes | |
17738 | WXDEBUG="-ggdb" | |
10f2d63a VZ |
17739 | fi |
17740 | ||
4f14bcd8 GD |
17741 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then |
17742 | cat >> confdefs.h <<\EOF | |
17743 | #define WXDEBUG 1 | |
17744 | EOF | |
17745 | ||
17746 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
10f2d63a | 17747 | else |
4f14bcd8 GD |
17748 | if test "$wxUSE_GTK" = 1 ; then |
17749 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
17750 | fi | |
17751 | fi | |
17752 | ||
17753 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
17754 | cat >> confdefs.h <<\EOF | |
17755 | #define wxUSE_MEMORY_TRACING 1 | |
17756 | EOF | |
17757 | ||
17758 | cat >> confdefs.h <<\EOF | |
17759 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
17760 | EOF | |
17761 | ||
17762 | cat >> confdefs.h <<\EOF | |
17763 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
17764 | EOF | |
17765 | ||
17766 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
17767 | fi | |
17768 | ||
17769 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
3d63bc3a | 17770 | DMALLOC_LIBS="-ldmalloc" |
4f14bcd8 GD |
17771 | fi |
17772 | ||
17773 | PROFILE= | |
17774 | if test "$wxUSE_PROFILE" = "yes" ; then | |
3d63bc3a | 17775 | PROFILE=" -pg" |
10f2d63a VZ |
17776 | fi |
17777 | ||
88e30f2b | 17778 | if test "$GCC" = "yes" ; then |
4f14bcd8 GD |
17779 | if test "$wxUSE_NO_RTTI" = "yes" ; then |
17780 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
3a922bb4 | 17781 | fi |
4f14bcd8 GD |
17782 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
17783 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
17784 | fi | |
17785 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
17786 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
17787 | fi | |
4f14bcd8 GD |
17788 | if test "$USE_WIN32" = 1 ; then |
17789 | # I'm not even really sure what this was ever added to solve, | |
17790 | # but someone added it for mingw native builds, so I guess | |
17791 | # they had a reason, right?? | |
17792 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return" | |
17793 | fi | |
17794 | fi | |
17795 | ||
17796 | ||
17797 | CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" ` | |
17798 | CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" ` | |
17799 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
17800 | OPTIMISE= | |
17801 | else | |
17802 | if test "$GCC" = yes ; then | |
17803 | OPTIMISE="-O2" | |
17804 | case "${host}" in | |
17805 | i586-*-*|i686-*-* ) | |
17806 | OPTIMISE="${OPTIMISE} " | |
17807 | ;; | |
17808 | esac | |
17809 | else | |
17810 | OPTIMISE="-O" | |
17811 | fi | |
17812 | fi | |
17813 | ||
17814 | if test "$WXWIN_COMPATIBILITY_2" = "yes"; then | |
17815 | cat >> confdefs.h <<\EOF | |
17816 | #define WXWIN_COMPATIBILITY_2 1 | |
17817 | EOF | |
17818 | ||
17819 | ||
17820 | WXWIN_COMPATIBILITY_2_2="yes" | |
17821 | fi | |
17822 | ||
17823 | if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then | |
17824 | cat >> confdefs.h <<\EOF | |
17825 | #define WXWIN_COMPATIBILITY_2_2 1 | |
17826 | EOF | |
17827 | ||
10f2d63a VZ |
17828 | fi |
17829 | ||
698dcdb6 | 17830 | |
10f2d63a | 17831 | if test "$wxUSE_GUI" = "yes"; then |
698dcdb6 | 17832 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17833 | #define wxUSE_GUI 1 |
17834 | EOF | |
17835 | ||
698dcdb6 | 17836 | |
10f2d63a | 17837 | else |
698dcdb6 | 17838 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17839 | #define wxUSE_NOGUI 1 |
17840 | EOF | |
17841 | ||
17842 | fi | |
17843 | ||
698dcdb6 | 17844 | |
10f2d63a | 17845 | if test "$wxUSE_UNIX" = "yes"; then |
698dcdb6 | 17846 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17847 | #define wxUSE_UNIX 1 |
17848 | EOF | |
17849 | ||
17850 | fi | |
17851 | ||
698dcdb6 | 17852 | |
10f2d63a | 17853 | if test "$wxUSE_APPLE_IEEE" = "yes"; then |
698dcdb6 | 17854 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17855 | #define wxUSE_APPLE_IEEE 1 |
17856 | EOF | |
17857 | ||
17858 | fi | |
17859 | ||
1e6feb95 VZ |
17860 | if test "$wxUSE_TIMER" = "yes"; then |
17861 | cat >> confdefs.h <<\EOF | |
17862 | #define wxUSE_TIMER 1 | |
17863 | EOF | |
17864 | ||
17865 | fi | |
17866 | ||
10f2d63a | 17867 | if test "$wxUSE_WAVE" = "yes"; then |
698dcdb6 | 17868 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17869 | #define wxUSE_WAVE 1 |
17870 | EOF | |
17871 | ||
17872 | fi | |
17873 | ||
1e6feb95 VZ |
17874 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
17875 | cat >> confdefs.h <<\EOF | |
17876 | #define wxUSE_CMDLINE_PARSER 1 | |
17877 | EOF | |
17878 | ||
17879 | fi | |
17880 | ||
17881 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
17882 | cat >> confdefs.h <<\EOF | |
17883 | #define wxUSE_STOPWATCH 1 | |
17884 | EOF | |
17885 | ||
17886 | fi | |
17887 | ||
17888 | if test "$wxUSE_DATETIME" = "yes"; then | |
17889 | cat >> confdefs.h <<\EOF | |
17890 | #define wxUSE_DATETIME 1 | |
17891 | EOF | |
17892 | ||
17893 | fi | |
17894 | ||
17895 | if test "$wxUSE_TIMEDATE" = "yes"; then | |
17896 | cat >> confdefs.h <<\EOF | |
17897 | #define wxUSE_TIMEDATE 1 | |
17898 | EOF | |
17899 | ||
17900 | fi | |
17901 | ||
10f2d63a | 17902 | if test "$wxUSE_FILE" = "yes"; then |
698dcdb6 | 17903 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17904 | #define wxUSE_FILE 1 |
17905 | EOF | |
17906 | ||
17907 | fi | |
17908 | ||
1e6feb95 VZ |
17909 | if test "$wxUSE_FFILE" = "yes"; then |
17910 | cat >> confdefs.h <<\EOF | |
17911 | #define wxUSE_FFILE 1 | |
17912 | EOF | |
17913 | ||
17914 | fi | |
17915 | ||
24528b0c | 17916 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
698dcdb6 | 17917 | cat >> confdefs.h <<\EOF |
24528b0c VS |
17918 | #define wxUSE_FILESYSTEM 1 |
17919 | EOF | |
17920 | ||
17921 | fi | |
17922 | ||
10f2d63a | 17923 | if test "$wxUSE_FS_INET" = "yes"; then |
698dcdb6 | 17924 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17925 | #define wxUSE_FS_INET 1 |
17926 | EOF | |
17927 | ||
17928 | fi | |
17929 | ||
17930 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
698dcdb6 | 17931 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17932 | #define wxUSE_FS_ZIP 1 |
17933 | EOF | |
17934 | ||
17935 | fi | |
17936 | ||
17937 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
698dcdb6 | 17938 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17939 | #define wxUSE_ZIPSTREAM 1 |
17940 | EOF | |
17941 | ||
17942 | fi | |
17943 | ||
eb4efbdc | 17944 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
698dcdb6 | 17945 | cat >> confdefs.h <<\EOF |
eb4efbdc VZ |
17946 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
17947 | EOF | |
17948 | ||
17949 | fi | |
17950 | ||
4f3c5f06 | 17951 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
698dcdb6 | 17952 | cat >> confdefs.h <<\EOF |
4f3c5f06 VZ |
17953 | #define wxUSE_SNGLINST_CHECKER 1 |
17954 | EOF | |
17955 | ||
17956 | fi | |
17957 | ||
10f2d63a | 17958 | if test "$wxUSE_BUSYINFO" = "yes"; then |
698dcdb6 | 17959 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17960 | #define wxUSE_BUSYINFO 1 |
17961 | EOF | |
17962 | ||
17963 | fi | |
17964 | ||
17965 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
698dcdb6 | 17966 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17967 | #define wxUSE_STD_IOSTREAM 1 |
17968 | EOF | |
17969 | ||
17970 | fi | |
17971 | ||
a3a584a7 VZ |
17972 | if test "$wxUSE_TEXTBUFFER" = "yes"; then |
17973 | cat >> confdefs.h <<\EOF | |
17974 | #define wxUSE_TEXTBUFFER 1 | |
17975 | EOF | |
17976 | ||
17977 | fi | |
17978 | ||
10f2d63a | 17979 | if test "$wxUSE_TEXTFILE" = "yes"; then |
a3a584a7 | 17980 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then |
156b2523 | 17981 | echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2 |
10f2d63a | 17982 | else |
698dcdb6 | 17983 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17984 | #define wxUSE_TEXTFILE 1 |
17985 | EOF | |
17986 | ||
17987 | fi | |
17988 | fi | |
17989 | ||
17990 | if test "$wxUSE_CONFIG" = "yes" ; then | |
17991 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
156b2523 | 17992 | echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2 |
10f2d63a | 17993 | else |
698dcdb6 | 17994 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17995 | #define wxUSE_CONFIG 1 |
17996 | EOF | |
17997 | ||
17998 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
17999 | fi | |
18000 | fi | |
18001 | ||
18002 | if test "$wxUSE_INTL" = "yes" ; then | |
18003 | if test "$wxUSE_FILE" != "yes"; then | |
156b2523 | 18004 | echo "configure: warning: I18n code requires wxFile... disabled" 1>&2 |
10f2d63a | 18005 | else |
698dcdb6 | 18006 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18007 | #define wxUSE_INTL 1 |
18008 | EOF | |
18009 | ||
18010 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
f6bcfd97 | 18011 | GUIDIST="$GUIDIST INTL_DIST" |
10f2d63a VZ |
18012 | fi |
18013 | fi | |
18014 | ||
18015 | if test "$wxUSE_LOG" = "yes"; then | |
698dcdb6 | 18016 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18017 | #define wxUSE_LOG 1 |
18018 | EOF | |
18019 | ||
d73be714 VZ |
18020 | |
18021 | if test "$wxUSE_LOGGUI" = "yes"; then | |
18022 | cat >> confdefs.h <<\EOF | |
18023 | #define wxUSE_LOGGUI 1 | |
18024 | EOF | |
18025 | ||
18026 | fi | |
18027 | ||
18028 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
18029 | cat >> confdefs.h <<\EOF | |
18030 | #define wxUSE_LOGWINDOW 1 | |
69d27ff7 MB |
18031 | EOF |
18032 | ||
18033 | fi | |
18034 | ||
18035 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
18036 | cat >> confdefs.h <<\EOF | |
18037 | #define wxUSE_LOG_DIALOG 1 | |
d73be714 VZ |
18038 | EOF |
18039 | ||
18040 | fi | |
10f2d63a VZ |
18041 | fi |
18042 | ||
18043 | if test "$wxUSE_LONGLONG" = "yes"; then | |
698dcdb6 | 18044 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18045 | #define wxUSE_LONGLONG 1 |
18046 | EOF | |
18047 | ||
18048 | fi | |
18049 | ||
e8f65ba6 | 18050 | if test "$wxUSE_GEOMETRY" = "yes"; then |
698dcdb6 | 18051 | cat >> confdefs.h <<\EOF |
e8f65ba6 RR |
18052 | #define wxUSE_GEOMETRY 1 |
18053 | EOF | |
18054 | ||
18055 | fi | |
18056 | ||
10f2d63a | 18057 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
698dcdb6 | 18058 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18059 | #define wxUSE_DIALUP_MANAGER 1 |
18060 | EOF | |
18061 | ||
70f7a477 | 18062 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
10f2d63a VZ |
18063 | fi |
18064 | ||
18065 | if test "$wxUSE_STREAMS" = "yes" ; then | |
698dcdb6 | 18066 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18067 | #define wxUSE_STREAMS 1 |
18068 | EOF | |
18069 | ||
18070 | fi | |
18071 | ||
1e487827 | 18072 | |
1e6feb95 | 18073 | if test "$wxUSE_DATETIME" = "yes"; then |
698dcdb6 | 18074 | for ac_func in strptime |
83307f33 | 18075 | do |
698dcdb6 | 18076 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
cb61c62d | 18077 | echo "configure:18078: checking for $ac_func" >&5 |
698dcdb6 VZ |
18078 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18079 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18080 | else | |
18081 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 18082 | #line 18083 "configure" |
83307f33 VZ |
18083 | #include "confdefs.h" |
18084 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 18085 | which can conflict with char $ac_func(); below. */ |
83307f33 VZ |
18086 | #include <assert.h> |
18087 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18088 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18089 | builtin and then its argument prototype would still apply. */ |
18090 | char $ac_func(); | |
18091 | ||
18092 | int main() { | |
83307f33 VZ |
18093 | |
18094 | /* The GNU C library defines this for functions which it implements | |
18095 | to always fail with ENOSYS. Some functions are actually named | |
18096 | something starting with __ and the normal name is an alias. */ | |
18097 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18098 | choke me | |
18099 | #else | |
698dcdb6 | 18100 | $ac_func(); |
83307f33 VZ |
18101 | #endif |
18102 | ||
698dcdb6 | 18103 | ; return 0; } |
83307f33 | 18104 | EOF |
cb61c62d | 18105 | if { (eval echo configure:18106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18106 | rm -rf conftest* |
18107 | eval "ac_cv_func_$ac_func=yes" | |
18108 | else | |
18109 | echo "configure: failed program was:" >&5 | |
18110 | cat conftest.$ac_ext >&5 | |
18111 | rm -rf conftest* | |
18112 | eval "ac_cv_func_$ac_func=no" | |
18113 | fi | |
18114 | rm -f conftest* | |
18115 | fi | |
83307f33 | 18116 | |
698dcdb6 VZ |
18117 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
18118 | echo "$ac_t""yes" 1>&6 | |
18119 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18120 | cat >> confdefs.h <<EOF | |
18121 | #define $ac_tr_func 1 | |
18122 | EOF | |
18123 | ||
18124 | else | |
18125 | echo "$ac_t""no" 1>&6 | |
83307f33 VZ |
18126 | fi |
18127 | done | |
18128 | ||
1e487827 | 18129 | |
698dcdb6 | 18130 | echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6 |
cb61c62d | 18131 | echo "configure:18132: checking for timezone variable in <time.h>" >&5 |
698dcdb6 VZ |
18132 | if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then |
18133 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18134 | else | |
18135 | ||
18136 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 18137 | #line 18138 "configure" |
360d6699 VZ |
18138 | #include "confdefs.h" |
18139 | ||
b4085ce6 | 18140 | #include <time.h> |
698dcdb6 VZ |
18141 | |
18142 | int main() { | |
360d6699 VZ |
18143 | |
18144 | int tz; | |
4f11a343 | 18145 | tz = timezone; |
698dcdb6 VZ |
18146 | |
18147 | ; return 0; } | |
18148 | EOF | |
cb61c62d | 18149 | if { (eval echo configure:18150: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
18150 | rm -rf conftest* |
18151 | ||
4f11a343 | 18152 | wx_cv_var_timezone=timezone |
698dcdb6 | 18153 | |
360d6699 | 18154 | else |
698dcdb6 VZ |
18155 | echo "configure: failed program was:" >&5 |
18156 | cat conftest.$ac_ext >&5 | |
18157 | rm -rf conftest* | |
18158 | ||
18159 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 18160 | #line 18161 "configure" |
360d6699 VZ |
18161 | #include "confdefs.h" |
18162 | ||
b4085ce6 | 18163 | #include <time.h> |
698dcdb6 VZ |
18164 | |
18165 | int main() { | |
360d6699 VZ |
18166 | |
18167 | int tz; | |
18168 | tz = _timezone; | |
698dcdb6 VZ |
18169 | |
18170 | ; return 0; } | |
18171 | EOF | |
cb61c62d | 18172 | if { (eval echo configure:18173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
18173 | rm -rf conftest* |
18174 | ||
360d6699 | 18175 | wx_cv_var_timezone=_timezone |
698dcdb6 | 18176 | |
5357c8e8 | 18177 | else |
698dcdb6 VZ |
18178 | echo "configure: failed program was:" >&5 |
18179 | cat conftest.$ac_ext >&5 | |
18180 | rm -rf conftest* | |
18181 | ||
18182 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 18183 | #line 18184 "configure" |
5357c8e8 VZ |
18184 | #include "confdefs.h" |
18185 | ||
b4085ce6 | 18186 | #include <time.h> |
698dcdb6 VZ |
18187 | |
18188 | int main() { | |
5357c8e8 VZ |
18189 | |
18190 | int tz; | |
4f11a343 | 18191 | tz = __timezone; |
698dcdb6 VZ |
18192 | |
18193 | ; return 0; } | |
18194 | EOF | |
cb61c62d | 18195 | if { (eval echo configure:18196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
18196 | rm -rf conftest* |
18197 | ||
4f11a343 | 18198 | wx_cv_var_timezone=__timezone |
698dcdb6 | 18199 | |
360d6699 | 18200 | else |
698dcdb6 VZ |
18201 | echo "configure: failed program was:" >&5 |
18202 | cat conftest.$ac_ext >&5 | |
18203 | rm -rf conftest* | |
f9bc1684 VS |
18204 | |
18205 | if test "$USE_DOS" = 0 ; then | |
18206 | { echo "configure: error: no timezone variable" 1>&2; exit 1; } | |
18207 | fi | |
18208 | ||
698dcdb6 | 18209 | |
360d6699 | 18210 | fi |
698dcdb6 VZ |
18211 | rm -f conftest* |
18212 | ||
18213 | ||
360d6699 | 18214 | fi |
698dcdb6 VZ |
18215 | rm -f conftest* |
18216 | ||
18217 | ||
6232543b | 18218 | fi |
698dcdb6 VZ |
18219 | rm -f conftest* |
18220 | ||
18221 | ||
1e487827 | 18222 | fi |
703e0a69 | 18223 | |
698dcdb6 VZ |
18224 | echo "$ac_t""$wx_cv_var_timezone" 1>&6 |
18225 | ||
f9bc1684 | 18226 | if test "x$wx_cv_var_timezone" != x ; then |
698dcdb6 | 18227 | cat >> confdefs.h <<EOF |
360d6699 VZ |
18228 | #define WX_TIMEZONE $wx_cv_var_timezone |
18229 | EOF | |
18230 | ||
f9bc1684 | 18231 | fi |
698dcdb6 VZ |
18232 | |
18233 | for ac_func in localtime | |
afc31813 | 18234 | do |
698dcdb6 | 18235 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
cb61c62d | 18236 | echo "configure:18237: checking for $ac_func" >&5 |
698dcdb6 VZ |
18237 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18238 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18239 | else | |
18240 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 18241 | #line 18242 "configure" |
10f2d63a | 18242 | #include "confdefs.h" |
afc31813 | 18243 | /* System header to define __stub macros and hopefully few prototypes, |
698dcdb6 | 18244 | which can conflict with char $ac_func(); below. */ |
afc31813 VZ |
18245 | #include <assert.h> |
18246 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18247 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18248 | builtin and then its argument prototype would still apply. */ |
18249 | char $ac_func(); | |
18250 | ||
18251 | int main() { | |
afc31813 VZ |
18252 | |
18253 | /* The GNU C library defines this for functions which it implements | |
18254 | to always fail with ENOSYS. Some functions are actually named | |
18255 | something starting with __ and the normal name is an alias. */ | |
18256 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18257 | choke me | |
18258 | #else | |
698dcdb6 | 18259 | $ac_func(); |
afc31813 VZ |
18260 | #endif |
18261 | ||
698dcdb6 | 18262 | ; return 0; } |
10f2d63a | 18263 | EOF |
cb61c62d | 18264 | if { (eval echo configure:18265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18265 | rm -rf conftest* |
18266 | eval "ac_cv_func_$ac_func=yes" | |
18267 | else | |
18268 | echo "configure: failed program was:" >&5 | |
18269 | cat conftest.$ac_ext >&5 | |
18270 | rm -rf conftest* | |
18271 | eval "ac_cv_func_$ac_func=no" | |
18272 | fi | |
18273 | rm -f conftest* | |
18274 | fi | |
afc31813 | 18275 | |
698dcdb6 VZ |
18276 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
18277 | echo "$ac_t""yes" 1>&6 | |
18278 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18279 | cat >> confdefs.h <<EOF | |
18280 | #define $ac_tr_func 1 | |
18281 | EOF | |
18282 | ||
18283 | else | |
18284 | echo "$ac_t""no" 1>&6 | |
afc31813 VZ |
18285 | fi |
18286 | done | |
18287 | ||
1e487827 | 18288 | |
698dcdb6 VZ |
18289 | if test "$ac_cv_func_localtime" = "yes"; then |
18290 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 | |
cb61c62d | 18291 | echo "configure:18292: checking for tm_gmtoff in struct tm" >&5 |
698dcdb6 VZ |
18292 | if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then |
18293 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18294 | else | |
18295 | ||
18296 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 18297 | #line 18298 "configure" |
0470b1e6 VZ |
18298 | #include "confdefs.h" |
18299 | ||
b4085ce6 | 18300 | #include <time.h> |
698dcdb6 VZ |
18301 | |
18302 | int main() { | |
0470b1e6 VZ |
18303 | |
18304 | struct tm tm; | |
18305 | tm.tm_gmtoff++; | |
698dcdb6 VZ |
18306 | |
18307 | ; return 0; } | |
18308 | EOF | |
cb61c62d | 18309 | if { (eval echo configure:18310: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
18310 | rm -rf conftest* |
18311 | ||
f03a98d8 | 18312 | wx_cv_struct_tm_has_gmtoff=yes |
698dcdb6 | 18313 | |
0470b1e6 | 18314 | else |
698dcdb6 VZ |
18315 | echo "configure: failed program was:" >&5 |
18316 | cat conftest.$ac_ext >&5 | |
18317 | rm -rf conftest* | |
18318 | wx_cv_struct_tm_has_gmtoff=no | |
18319 | ||
0470b1e6 | 18320 | fi |
698dcdb6 VZ |
18321 | rm -f conftest* |
18322 | ||
1e487827 | 18323 | fi |
698dcdb6 VZ |
18324 | |
18325 | echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6 | |
6232543b VS |
18326 | fi |
18327 | ||
18328 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
698dcdb6 | 18329 | cat >> confdefs.h <<\EOF |
6232543b VS |
18330 | #define WX_GMTOFF_IN_TM 1 |
18331 | EOF | |
0470b1e6 | 18332 | |
3fcdd07b VZ |
18333 | fi |
18334 | ||
698dcdb6 | 18335 | for ac_func in gettimeofday ftime |
3fcdd07b | 18336 | do |
698dcdb6 | 18337 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
cb61c62d | 18338 | echo "configure:18339: checking for $ac_func" >&5 |
698dcdb6 VZ |
18339 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18340 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18341 | else | |
18342 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 18343 | #line 18344 "configure" |
3fcdd07b VZ |
18344 | #include "confdefs.h" |
18345 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 18346 | which can conflict with char $ac_func(); below. */ |
3fcdd07b VZ |
18347 | #include <assert.h> |
18348 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18349 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18350 | builtin and then its argument prototype would still apply. */ |
18351 | char $ac_func(); | |
18352 | ||
18353 | int main() { | |
3fcdd07b VZ |
18354 | |
18355 | /* The GNU C library defines this for functions which it implements | |
18356 | to always fail with ENOSYS. Some functions are actually named | |
18357 | something starting with __ and the normal name is an alias. */ | |
18358 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18359 | choke me | |
18360 | #else | |
698dcdb6 | 18361 | $ac_func(); |
3fcdd07b VZ |
18362 | #endif |
18363 | ||
698dcdb6 VZ |
18364 | ; return 0; } |
18365 | EOF | |
cb61c62d | 18366 | if { (eval echo configure:18367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18367 | rm -rf conftest* |
18368 | eval "ac_cv_func_$ac_func=yes" | |
18369 | else | |
18370 | echo "configure: failed program was:" >&5 | |
18371 | cat conftest.$ac_ext >&5 | |
18372 | rm -rf conftest* | |
18373 | eval "ac_cv_func_$ac_func=no" | |
18374 | fi | |
18375 | rm -f conftest* | |
18376 | fi | |
18377 | ||
18378 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18379 | echo "$ac_t""yes" 1>&6 | |
18380 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18381 | cat >> confdefs.h <<EOF | |
18382 | #define $ac_tr_func 1 | |
3fcdd07b VZ |
18383 | EOF |
18384 | break | |
698dcdb6 VZ |
18385 | else |
18386 | echo "$ac_t""no" 1>&6 | |
3fcdd07b VZ |
18387 | fi |
18388 | done | |
18389 | ||
afc31813 | 18390 | |
698dcdb6 VZ |
18391 | if test "$ac_cv_func_gettimeofday" = "yes"; then |
18392 | echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6 | |
cb61c62d | 18393 | echo "configure:18394: checking whether gettimeofday takes two arguments" >&5 |
698dcdb6 VZ |
18394 | if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then |
18395 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18396 | else | |
18397 | ||
18398 | ||
18399 | ac_ext=C | |
18400 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 18401 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
18402 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
18403 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
18404 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 18405 | |
698dcdb6 VZ |
18406 | |
18407 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 18408 | #line 18409 "configure" |
10f2d63a | 18409 | #include "confdefs.h" |
afc31813 VZ |
18410 | |
18411 | #include <sys/time.h> | |
18412 | #include <unistd.h> | |
698dcdb6 VZ |
18413 | |
18414 | int main() { | |
afc31813 VZ |
18415 | |
18416 | struct timeval tv; | |
776862b4 | 18417 | gettimeofday(&tv, NULL); |
698dcdb6 VZ |
18418 | |
18419 | ; return 0; } | |
18420 | EOF | |
cb61c62d | 18421 | if { (eval echo configure:18422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 18422 | rm -rf conftest* |
afc31813 | 18423 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a | 18424 | else |
698dcdb6 VZ |
18425 | echo "configure: failed program was:" >&5 |
18426 | cat conftest.$ac_ext >&5 | |
18427 | rm -rf conftest* | |
18428 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 18429 | #line 18430 "configure" |
10f2d63a | 18430 | #include "confdefs.h" |
afc31813 VZ |
18431 | |
18432 | #include <sys/time.h> | |
18433 | #include <unistd.h> | |
698dcdb6 VZ |
18434 | |
18435 | int main() { | |
afc31813 VZ |
18436 | |
18437 | struct timeval tv; | |
18438 | gettimeofday(&tv); | |
698dcdb6 VZ |
18439 | |
18440 | ; return 0; } | |
18441 | EOF | |
cb61c62d | 18442 | if { (eval echo configure:18443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 18443 | rm -rf conftest* |
afc31813 | 18444 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a | 18445 | else |
698dcdb6 VZ |
18446 | echo "configure: failed program was:" >&5 |
18447 | cat conftest.$ac_ext >&5 | |
18448 | rm -rf conftest* | |
776862b4 VZ |
18449 | |
18450 | echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2 | |
18451 | wx_cv_func_gettimeofday_has_2_args=unknown | |
18452 | ||
698dcdb6 | 18453 | |
10f2d63a | 18454 | fi |
698dcdb6 VZ |
18455 | rm -f conftest* |
18456 | ||
10f2d63a | 18457 | fi |
698dcdb6 | 18458 | rm -f conftest* |
afc31813 | 18459 | ac_ext=c |
698dcdb6 | 18460 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 18461 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
18462 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
18463 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
18464 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a | 18465 | |
698dcdb6 | 18466 | |
afc31813 | 18467 | fi |
698dcdb6 VZ |
18468 | |
18469 | echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6 | |
c63c7106 | 18470 | |
afc31813 | 18471 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
698dcdb6 | 18472 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
18473 | #define WX_GETTIMEOFDAY_NO_TZ 1 |
18474 | EOF | |
18475 | ||
18476 | fi | |
18477 | fi | |
18478 | ||
698dcdb6 | 18479 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
18480 | #define wxUSE_TIMEDATE 1 |
18481 | EOF | |
18482 | ||
18483 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
18484 | fi | |
18485 | ||
698dcdb6 | 18486 | |
b089607b VZ |
18487 | if test "$TOOLKIT" != "MSW"; then |
18488 | ||
3a922bb4 RL |
18489 | if test "$wxUSE_SOCKETS" = "yes"; then |
18490 | echo $ac_n "checking for socket""... $ac_c" 1>&6 | |
cb61c62d | 18491 | echo "configure:18492: checking for socket" >&5 |
698dcdb6 VZ |
18492 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
18493 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 18494 | else |
698dcdb6 | 18495 | cat > conftest.$ac_ext <<EOF |
cb61c62d | 18496 | #line 18497 "configure" |
c63c7106 VZ |
18497 | #include "confdefs.h" |
18498 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 18499 | which can conflict with char socket(); below. */ |
c63c7106 VZ |
18500 | #include <assert.h> |
18501 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18502 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18503 | builtin and then its argument prototype would still apply. */ |
18504 | char socket(); | |
18505 | ||
18506 | int main() { | |
c63c7106 VZ |
18507 | |
18508 | /* The GNU C library defines this for functions which it implements | |
18509 | to always fail with ENOSYS. Some functions are actually named | |
18510 | something starting with __ and the normal name is an alias. */ | |
18511 | #if defined (__stub_socket) || defined (__stub___socket) | |
18512 | choke me | |
18513 | #else | |
698dcdb6 | 18514 | socket(); |
c63c7106 VZ |
18515 | #endif |
18516 | ||
698dcdb6 VZ |
18517 | ; return 0; } |
18518 | EOF | |
cb61c62d | 18519 | if { (eval echo configure:18520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18520 | rm -rf conftest* |
18521 | eval "ac_cv_func_socket=yes" | |
18522 | else | |
18523 | echo "configure: failed program was:" >&5 | |
18524 | cat conftest.$ac_ext >&5 | |
18525 | rm -rf conftest* | |
18526 | eval "ac_cv_func_socket=no" | |
18527 | fi | |
18528 | rm -f conftest* | |
18529 | fi | |
18530 | ||
18531 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
18532 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
18533 | : |
18534 | else | |
698dcdb6 VZ |
18535 | echo "$ac_t""no" 1>&6 |
18536 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
cb61c62d | 18537 | echo "configure:18538: checking for socket in -lsocket" >&5 |
698dcdb6 VZ |
18538 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
18539 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18540 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 18541 | else |
698dcdb6 | 18542 | ac_save_LIBS="$LIBS" |
c63c7106 | 18543 | LIBS="-lsocket $LIBS" |
698dcdb6 | 18544 | cat > conftest.$ac_ext <<EOF |
cb61c62d | 18545 | #line 18546 "configure" |
c63c7106 VZ |
18546 | #include "confdefs.h" |
18547 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18548 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18549 | builtin and then its argument prototype would still apply. */ |
18550 | char socket(); | |
18551 | ||
18552 | int main() { | |
18553 | socket() | |
18554 | ; return 0; } | |
18555 | EOF | |
cb61c62d | 18556 | if { (eval echo configure:18557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18557 | rm -rf conftest* |
18558 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18559 | else | |
18560 | echo "configure: failed program was:" >&5 | |
18561 | cat conftest.$ac_ext >&5 | |
18562 | rm -rf conftest* | |
18563 | eval "ac_cv_lib_$ac_lib_var=no" | |
18564 | fi | |
18565 | rm -f conftest* | |
18566 | LIBS="$ac_save_LIBS" | |
18567 | ||
18568 | fi | |
18569 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18570 | echo "$ac_t""yes" 1>&6 | |
c63c7106 | 18571 | INET_LINK="$INET_LINK -lsocket" |
c63c7106 | 18572 | else |
698dcdb6 | 18573 | echo "$ac_t""no" 1>&6 |
afc31813 | 18574 | |
3a922bb4 RL |
18575 | echo "configure: warning: socket library not found - sockets will be disabled" 1>&2 |
18576 | wxUSE_SOCKETS=no | |
18577 | ||
698dcdb6 | 18578 | |
6232543b | 18579 | fi |
b089607b | 18580 | |
3a922bb4 | 18581 | |
1e487827 | 18582 | fi |
afc31813 | 18583 | |
3a922bb4 | 18584 | fi |
51a9faba | 18585 | |
3a922bb4 RL |
18586 | |
18587 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
18588 | echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6 | |
cb61c62d | 18589 | echo "configure:18590: checking what is the type of the third argument of getsockname" >&5 |
698dcdb6 VZ |
18590 | if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then |
18591 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18592 | else | |
18593 | ||
3a922bb4 RL |
18594 | |
18595 | ac_ext=C | |
698dcdb6 | 18596 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
1e487827 | 18597 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
18598 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
18599 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
18600 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 18601 | |
698dcdb6 | 18602 | |
3a922bb4 | 18603 | cat > conftest.$ac_ext <<EOF |
cb61c62d | 18604 | #line 18605 "configure" |
afc31813 | 18605 | #include "confdefs.h" |
51a9faba | 18606 | |
3a922bb4 RL |
18607 | #include <sys/types.h> |
18608 | #include <sys/socket.h> | |
18609 | ||
698dcdb6 | 18610 | int main() { |
51a9faba | 18611 | |
3a922bb4 RL |
18612 | socklen_t len; |
18613 | getsockname(0, 0, &len); | |
18614 | ||
698dcdb6 VZ |
18615 | ; return 0; } |
18616 | EOF | |
cb61c62d | 18617 | if { (eval echo configure:18618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 18618 | rm -rf conftest* |
51a9faba | 18619 | wx_cv_type_getsockname3=socklen_t |
afc31813 | 18620 | else |
698dcdb6 VZ |
18621 | echo "configure: failed program was:" >&5 |
18622 | cat conftest.$ac_ext >&5 | |
18623 | rm -rf conftest* | |
18624 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 18625 | #line 18626 "configure" |
afc31813 | 18626 | #include "confdefs.h" |
51a9faba | 18627 | |
3a922bb4 RL |
18628 | #include <sys/types.h> |
18629 | #include <sys/socket.h> | |
18630 | ||
698dcdb6 | 18631 | int main() { |
51a9faba | 18632 | |
3a922bb4 RL |
18633 | size_t len; |
18634 | getsockname(0, 0, &len); | |
18635 | ||
698dcdb6 VZ |
18636 | ; return 0; } |
18637 | EOF | |
cb61c62d | 18638 | if { (eval echo configure:18639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 18639 | rm -rf conftest* |
51a9faba | 18640 | wx_cv_type_getsockname3=size_t |
afc31813 | 18641 | else |
698dcdb6 VZ |
18642 | echo "configure: failed program was:" >&5 |
18643 | cat conftest.$ac_ext >&5 | |
18644 | rm -rf conftest* | |
18645 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 18646 | #line 18647 "configure" |
afc31813 | 18647 | #include "confdefs.h" |
51a9faba | 18648 | |
3a922bb4 RL |
18649 | #include <sys/types.h> |
18650 | #include <sys/socket.h> | |
18651 | ||
698dcdb6 | 18652 | int main() { |
51a9faba | 18653 | |
3a922bb4 RL |
18654 | int len; |
18655 | getsockname(0, 0, &len); | |
18656 | ||
698dcdb6 VZ |
18657 | ; return 0; } |
18658 | EOF | |
cb61c62d | 18659 | if { (eval echo configure:18660: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 18660 | rm -rf conftest* |
51a9faba | 18661 | wx_cv_type_getsockname3=int |
afc31813 | 18662 | else |
698dcdb6 VZ |
18663 | echo "configure: failed program was:" >&5 |
18664 | cat conftest.$ac_ext >&5 | |
18665 | rm -rf conftest* | |
18666 | wx_cv_type_getsockname3=unknown | |
3a922bb4 | 18667 | |
afc31813 | 18668 | fi |
698dcdb6 | 18669 | rm -f conftest* |
3a922bb4 | 18670 | |
afc31813 | 18671 | fi |
698dcdb6 | 18672 | rm -f conftest* |
3a922bb4 | 18673 | |
afc31813 | 18674 | fi |
698dcdb6 | 18675 | rm -f conftest* |
51a9faba | 18676 | |
3a922bb4 | 18677 | ac_ext=c |
698dcdb6 | 18678 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
afc31813 | 18679 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
18680 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
18681 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
18682 | cross_compiling=$ac_cv_prog_cc_cross | |
afc31813 | 18683 | |
3a922bb4 | 18684 | |
51a9faba | 18685 | fi |
698dcdb6 VZ |
18686 | |
18687 | echo "$ac_t""$wx_cv_type_getsockname3" 1>&6 | |
51a9faba | 18688 | |
3a922bb4 RL |
18689 | if test "$wx_cv_type_getsockname3" = "unknown"; then |
18690 | wxUSE_SOCKETS=no | |
18691 | echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2 | |
18692 | else | |
18693 | cat >> confdefs.h <<EOF | |
51a9faba VZ |
18694 | #define SOCKLEN_T $wx_cv_type_getsockname3 |
18695 | EOF | |
18696 | ||
3a922bb4 | 18697 | fi |
51a9faba VZ |
18698 | fi |
18699 | fi | |
afc31813 | 18700 | |
51a9faba | 18701 | if test "$wxUSE_SOCKETS" = "yes" ; then |
698dcdb6 | 18702 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
18703 | #define wxUSE_SOCKETS 1 |
18704 | EOF | |
18705 | ||
70f7a477 | 18706 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
afc31813 VZ |
18707 | fi |
18708 | ||
698dcdb6 | 18709 | |
dc3d889d VZ |
18710 | if test "$wxUSE_GUI" = "yes"; then |
18711 | ||
156b2523 GD |
18712 | if test "$TOOLKIT" = "MAC"; then |
18713 | echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2 | |
18714 | wxUSE_JOYSTICK=no | |
18715 | fi | |
18716 | if test "$TOOLKIT" = "MOTIF"; then | |
18717 | echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2 | |
18718 | wxUSE_JOYSTICK=no | |
f79bd02d JS |
18719 | fi |
18720 | if test "$TOOLKIT" = "X11"; then | |
18721 | echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2 | |
18722 | wxUSE_JOYSTICK=no | |
156b2523 GD |
18723 | fi |
18724 | ||
3a922bb4 RL |
18725 | if test "$TOOLKIT" != "MSW"; then |
18726 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
18727 | for ac_hdr in linux/joystick.h | |
10f2d63a | 18728 | do |
698dcdb6 VZ |
18729 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
18730 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
cb61c62d | 18731 | echo "configure:18732: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
18732 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
18733 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18734 | else | |
18735 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 18736 | #line 18737 "configure" |
10f2d63a | 18737 | #include "confdefs.h" |
698dcdb6 VZ |
18738 | #include <$ac_hdr> |
18739 | EOF | |
18740 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
cb61c62d | 18741 | { (eval echo configure:18742: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
18742 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
18743 | if test -z "$ac_err"; then | |
18744 | rm -rf conftest* | |
18745 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 18746 | else |
698dcdb6 VZ |
18747 | echo "$ac_err" >&5 |
18748 | echo "configure: failed program was:" >&5 | |
10f2d63a | 18749 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
18750 | rm -rf conftest* |
18751 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 18752 | fi |
698dcdb6 | 18753 | rm -f conftest* |
10f2d63a | 18754 | fi |
698dcdb6 VZ |
18755 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
18756 | echo "$ac_t""yes" 1>&6 | |
18757 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
18758 | cat >> confdefs.h <<EOF | |
18759 | #define $ac_tr_hdr 1 | |
10f2d63a | 18760 | EOF |
698dcdb6 VZ |
18761 | |
18762 | else | |
18763 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
18764 | fi |
18765 | done | |
18766 | ||
3a922bb4 RL |
18767 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then |
18768 | wxUSE_JOYSTICK=no | |
156b2523 | 18769 | echo "configure: warning: Joystick not supported by this system... disabled" 1>&2 |
3a922bb4 RL |
18770 | fi |
18771 | fi | |
18772 | fi | |
b089607b | 18773 | |
3a922bb4 RL |
18774 | if test "$wxUSE_JOYSTICK" = "yes"; then |
18775 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
18776 | #define wxUSE_JOYSTICK 1 |
18777 | EOF | |
18778 | ||
3a922bb4 RL |
18779 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
18780 | fi | |
dc3d889d VZ |
18781 | fi |
18782 | ||
698dcdb6 | 18783 | |
b089607b VZ |
18784 | if test "$TOOLKIT" != "MSW"; then |
18785 | ||
3a922bb4 RL |
18786 | HAVE_DL_FUNCS=0 |
18787 | HAVE_SHL_FUNCS=0 | |
0b9ab0bd | 18788 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then |
3a922bb4 RL |
18789 | if test "$USE_DARWIN" = 1; then |
18790 | HAVE_DL_FUNCS=1 | |
18791 | else | |
18792 | for ac_func in dlopen | |
10f2d63a | 18793 | do |
698dcdb6 | 18794 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
cb61c62d | 18795 | echo "configure:18796: checking for $ac_func" >&5 |
698dcdb6 VZ |
18796 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18797 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18798 | else | |
18799 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 18800 | #line 18801 "configure" |
10f2d63a VZ |
18801 | #include "confdefs.h" |
18802 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 18803 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
18804 | #include <assert.h> |
18805 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18806 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18807 | builtin and then its argument prototype would still apply. */ |
18808 | char $ac_func(); | |
18809 | ||
18810 | int main() { | |
10f2d63a VZ |
18811 | |
18812 | /* The GNU C library defines this for functions which it implements | |
18813 | to always fail with ENOSYS. Some functions are actually named | |
18814 | something starting with __ and the normal name is an alias. */ | |
18815 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18816 | choke me | |
18817 | #else | |
698dcdb6 | 18818 | $ac_func(); |
10f2d63a VZ |
18819 | #endif |
18820 | ||
698dcdb6 VZ |
18821 | ; return 0; } |
18822 | EOF | |
cb61c62d | 18823 | if { (eval echo configure:18824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18824 | rm -rf conftest* |
18825 | eval "ac_cv_func_$ac_func=yes" | |
18826 | else | |
18827 | echo "configure: failed program was:" >&5 | |
18828 | cat conftest.$ac_ext >&5 | |
18829 | rm -rf conftest* | |
18830 | eval "ac_cv_func_$ac_func=no" | |
18831 | fi | |
18832 | rm -f conftest* | |
18833 | fi | |
18834 | ||
18835 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18836 | echo "$ac_t""yes" 1>&6 | |
18837 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18838 | cat >> confdefs.h <<EOF | |
18839 | #define $ac_tr_func 1 | |
18840 | EOF | |
18841 | ||
3a922bb4 | 18842 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18843 | #define HAVE_DLOPEN 1 |
18844 | EOF | |
18845 | ||
3a922bb4 RL |
18846 | HAVE_DL_FUNCS=1 |
18847 | ||
10f2d63a | 18848 | else |
698dcdb6 VZ |
18849 | echo "$ac_t""no" 1>&6 |
18850 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
cb61c62d | 18851 | echo "configure:18852: checking for dlopen in -ldl" >&5 |
698dcdb6 VZ |
18852 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
18853 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18854 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 18855 | else |
698dcdb6 | 18856 | ac_save_LIBS="$LIBS" |
10f2d63a | 18857 | LIBS="-ldl $LIBS" |
698dcdb6 | 18858 | cat > conftest.$ac_ext <<EOF |
cb61c62d | 18859 | #line 18860 "configure" |
10f2d63a VZ |
18860 | #include "confdefs.h" |
18861 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18862 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18863 | builtin and then its argument prototype would still apply. */ |
18864 | char dlopen(); | |
18865 | ||
18866 | int main() { | |
18867 | dlopen() | |
18868 | ; return 0; } | |
18869 | EOF | |
cb61c62d | 18870 | if { (eval echo configure:18871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18871 | rm -rf conftest* |
18872 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18873 | else | |
18874 | echo "configure: failed program was:" >&5 | |
18875 | cat conftest.$ac_ext >&5 | |
18876 | rm -rf conftest* | |
18877 | eval "ac_cv_lib_$ac_lib_var=no" | |
18878 | fi | |
18879 | rm -f conftest* | |
18880 | LIBS="$ac_save_LIBS" | |
18881 | ||
18882 | fi | |
18883 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18884 | echo "$ac_t""yes" 1>&6 | |
18885 | ||
3a922bb4 | 18886 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18887 | #define HAVE_DLOPEN 1 |
18888 | EOF | |
18889 | ||
3a922bb4 | 18890 | HAVE_DL_FUNCS=1 |
3d63bc3a | 18891 | DL_LINK=" -ldl$DL_LINK" |
3a922bb4 | 18892 | |
10f2d63a | 18893 | else |
698dcdb6 | 18894 | echo "$ac_t""no" 1>&6 |
10f2d63a | 18895 | |
3a922bb4 | 18896 | for ac_func in shl_load |
10f2d63a | 18897 | do |
698dcdb6 | 18898 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
cb61c62d | 18899 | echo "configure:18900: checking for $ac_func" >&5 |
698dcdb6 VZ |
18900 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18901 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18902 | else | |
18903 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 18904 | #line 18905 "configure" |
10f2d63a VZ |
18905 | #include "confdefs.h" |
18906 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 18907 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
18908 | #include <assert.h> |
18909 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18910 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18911 | builtin and then its argument prototype would still apply. */ |
18912 | char $ac_func(); | |
18913 | ||
18914 | int main() { | |
10f2d63a VZ |
18915 | |
18916 | /* The GNU C library defines this for functions which it implements | |
18917 | to always fail with ENOSYS. Some functions are actually named | |
18918 | something starting with __ and the normal name is an alias. */ | |
18919 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18920 | choke me | |
18921 | #else | |
698dcdb6 | 18922 | $ac_func(); |
10f2d63a VZ |
18923 | #endif |
18924 | ||
698dcdb6 VZ |
18925 | ; return 0; } |
18926 | EOF | |
cb61c62d | 18927 | if { (eval echo configure:18928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18928 | rm -rf conftest* |
18929 | eval "ac_cv_func_$ac_func=yes" | |
18930 | else | |
18931 | echo "configure: failed program was:" >&5 | |
18932 | cat conftest.$ac_ext >&5 | |
18933 | rm -rf conftest* | |
18934 | eval "ac_cv_func_$ac_func=no" | |
18935 | fi | |
18936 | rm -f conftest* | |
18937 | fi | |
18938 | ||
18939 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18940 | echo "$ac_t""yes" 1>&6 | |
18941 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18942 | cat >> confdefs.h <<EOF | |
18943 | #define $ac_tr_func 1 | |
18944 | EOF | |
18945 | ||
3a922bb4 | 18946 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18947 | #define HAVE_SHL_LOAD 1 |
18948 | EOF | |
18949 | ||
3a922bb4 RL |
18950 | HAVE_SHL_FUNCS=1 |
18951 | ||
10f2d63a | 18952 | else |
698dcdb6 VZ |
18953 | echo "$ac_t""no" 1>&6 |
18954 | echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6 | |
cb61c62d | 18955 | echo "configure:18956: checking for dld in -lshl_load" >&5 |
698dcdb6 VZ |
18956 | ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'` |
18957 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18958 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 18959 | else |
698dcdb6 | 18960 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 18961 | LIBS="-lshl_load $LIBS" |
698dcdb6 | 18962 | cat > conftest.$ac_ext <<EOF |
cb61c62d | 18963 | #line 18964 "configure" |
f6bcfd97 BP |
18964 | #include "confdefs.h" |
18965 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18966 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18967 | builtin and then its argument prototype would still apply. */ |
18968 | char dld(); | |
18969 | ||
18970 | int main() { | |
18971 | dld() | |
18972 | ; return 0; } | |
18973 | EOF | |
cb61c62d | 18974 | if { (eval echo configure:18975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18975 | rm -rf conftest* |
18976 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18977 | else | |
18978 | echo "configure: failed program was:" >&5 | |
18979 | cat conftest.$ac_ext >&5 | |
18980 | rm -rf conftest* | |
18981 | eval "ac_cv_lib_$ac_lib_var=no" | |
18982 | fi | |
18983 | rm -f conftest* | |
18984 | LIBS="$ac_save_LIBS" | |
f6bcfd97 | 18985 | |
698dcdb6 VZ |
18986 | fi |
18987 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18988 | echo "$ac_t""yes" 1>&6 | |
18989 | ||
3a922bb4 | 18990 | HAVE_SHL_FUNCS=1 |
3d63bc3a | 18991 | DL_LINK=" -ldld$DL_LINK" |
3a922bb4 | 18992 | |
698dcdb6 VZ |
18993 | else |
18994 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
18995 | fi |
18996 | ||
3a922bb4 | 18997 | |
10f2d63a VZ |
18998 | fi |
18999 | done | |
19000 | ||
3a922bb4 | 19001 | |
10f2d63a VZ |
19002 | fi |
19003 | ||
3a922bb4 | 19004 | |
10f2d63a VZ |
19005 | fi |
19006 | done | |
19007 | ||
1e487827 | 19008 | |
3a922bb4 RL |
19009 | if test "$HAVE_DL_FUNCS" = 1; then |
19010 | for ac_func in dlerror | |
f6bcfd97 | 19011 | do |
698dcdb6 | 19012 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
cb61c62d | 19013 | echo "configure:19014: checking for $ac_func" >&5 |
698dcdb6 VZ |
19014 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
19015 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19016 | else | |
19017 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 19018 | #line 19019 "configure" |
f6bcfd97 BP |
19019 | #include "confdefs.h" |
19020 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 19021 | which can conflict with char $ac_func(); below. */ |
f6bcfd97 BP |
19022 | #include <assert.h> |
19023 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19024 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
19025 | builtin and then its argument prototype would still apply. */ |
19026 | char $ac_func(); | |
19027 | ||
19028 | int main() { | |
f6bcfd97 BP |
19029 | |
19030 | /* The GNU C library defines this for functions which it implements | |
19031 | to always fail with ENOSYS. Some functions are actually named | |
19032 | something starting with __ and the normal name is an alias. */ | |
19033 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19034 | choke me | |
19035 | #else | |
698dcdb6 | 19036 | $ac_func(); |
f6bcfd97 BP |
19037 | #endif |
19038 | ||
698dcdb6 VZ |
19039 | ; return 0; } |
19040 | EOF | |
cb61c62d | 19041 | if { (eval echo configure:19042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
19042 | rm -rf conftest* |
19043 | eval "ac_cv_func_$ac_func=yes" | |
19044 | else | |
19045 | echo "configure: failed program was:" >&5 | |
19046 | cat conftest.$ac_ext >&5 | |
19047 | rm -rf conftest* | |
19048 | eval "ac_cv_func_$ac_func=no" | |
19049 | fi | |
19050 | rm -f conftest* | |
19051 | fi | |
19052 | ||
19053 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
19054 | echo "$ac_t""yes" 1>&6 | |
19055 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19056 | cat >> confdefs.h <<EOF | |
19057 | #define $ac_tr_func 1 | |
19058 | EOF | |
19059 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
19060 | #define HAVE_DLERROR 1 |
19061 | EOF | |
19062 | ||
19063 | else | |
698dcdb6 VZ |
19064 | echo "$ac_t""no" 1>&6 |
19065 | echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6 | |
cb61c62d | 19066 | echo "configure:19067: checking for dlerror in -ldl" >&5 |
698dcdb6 VZ |
19067 | ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'` |
19068 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19069 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 19070 | else |
698dcdb6 | 19071 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 19072 | LIBS="-ldl $LIBS" |
698dcdb6 | 19073 | cat > conftest.$ac_ext <<EOF |
cb61c62d | 19074 | #line 19075 "configure" |
f6bcfd97 BP |
19075 | #include "confdefs.h" |
19076 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19077 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
19078 | builtin and then its argument prototype would still apply. */ |
19079 | char dlerror(); | |
19080 | ||
19081 | int main() { | |
19082 | dlerror() | |
19083 | ; return 0; } | |
19084 | EOF | |
cb61c62d | 19085 | if { (eval echo configure:19086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
19086 | rm -rf conftest* |
19087 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19088 | else | |
19089 | echo "configure: failed program was:" >&5 | |
19090 | cat conftest.$ac_ext >&5 | |
19091 | rm -rf conftest* | |
19092 | eval "ac_cv_lib_$ac_lib_var=no" | |
19093 | fi | |
19094 | rm -f conftest* | |
19095 | LIBS="$ac_save_LIBS" | |
19096 | ||
19097 | fi | |
19098 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19099 | echo "$ac_t""yes" 1>&6 | |
19100 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
19101 | #define HAVE_DLERROR 1 |
19102 | EOF | |
19103 | ||
698dcdb6 VZ |
19104 | else |
19105 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
19106 | fi |
19107 | ||
19108 | fi | |
19109 | done | |
19110 | ||
3a922bb4 RL |
19111 | fi |
19112 | fi | |
f6bcfd97 | 19113 | |
3a922bb4 RL |
19114 | if test "$HAVE_DL_FUNCS" = 0; then |
19115 | if test "$HAVE_SHL_FUNCS" = 0; then | |
19116 | if test "$USE_UNIX" = 1; then | |
19117 | echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2 | |
0b9ab0bd | 19118 | wxUSE_DYNAMIC_LOADER=no |
3a922bb4 RL |
19119 | wxUSE_DYNLIB_CLASS=no |
19120 | else | |
19121 | echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2 | |
19122 | fi | |
19123 | fi | |
10f2d63a VZ |
19124 | fi |
19125 | fi | |
19126 | fi | |
19127 | ||
0b9ab0bd RL |
19128 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then |
19129 | cat >> confdefs.h <<\EOF | |
19130 | #define wxUSE_DYNAMIC_LOADER 1 | |
19131 | EOF | |
19132 | ||
19133 | elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
698dcdb6 | 19134 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19135 | #define wxUSE_DYNLIB_CLASS 1 |
19136 | EOF | |
19137 | ||
19138 | fi | |
19139 | ||
698dcdb6 | 19140 | |
1e6feb95 VZ |
19141 | if test "$wxUSE_FONTMAP" = "yes" ; then |
19142 | cat >> confdefs.h <<\EOF | |
19143 | #define wxUSE_FONTMAP 1 | |
19144 | EOF | |
19145 | ||
19146 | fi | |
19147 | ||
10f2d63a | 19148 | if test "$wxUSE_UNICODE" = "yes" ; then |
698dcdb6 | 19149 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19150 | #define wxUSE_UNICODE 1 |
19151 | EOF | |
19152 | ||
a72a4bfa VS |
19153 | |
19154 | if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
19155 | echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6 | |
cb61c62d | 19156 | echo "configure:19157: checking for main in -lunicows" >&5 |
a72a4bfa VS |
19157 | ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'` |
19158 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19159 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19160 | else | |
19161 | ac_save_LIBS="$LIBS" | |
19162 | LIBS="-lunicows $LIBS" | |
19163 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 19164 | #line 19165 "configure" |
a72a4bfa VS |
19165 | #include "confdefs.h" |
19166 | ||
19167 | int main() { | |
19168 | main() | |
19169 | ; return 0; } | |
19170 | EOF | |
cb61c62d | 19171 | if { (eval echo configure:19172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a72a4bfa VS |
19172 | rm -rf conftest* |
19173 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19174 | else | |
19175 | echo "configure: failed program was:" >&5 | |
19176 | cat conftest.$ac_ext >&5 | |
19177 | rm -rf conftest* | |
19178 | eval "ac_cv_lib_$ac_lib_var=no" | |
19179 | fi | |
19180 | rm -f conftest* | |
19181 | LIBS="$ac_save_LIBS" | |
19182 | ||
19183 | fi | |
19184 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19185 | echo "$ac_t""yes" 1>&6 | |
19186 | ||
19187 | cat >> confdefs.h <<\EOF | |
19188 | #define wxUSE_UNICODE_MSLU 1 | |
19189 | EOF | |
19190 | ||
19191 | ||
19192 | else | |
19193 | echo "$ac_t""no" 1>&6 | |
19194 | ||
19195 | echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled. | |
19196 | Applications will only run on Windows NT/2000/XP!" 1>&2 | |
19197 | wxUSE_UNICODE_MSLU=no | |
19198 | ||
19199 | fi | |
19200 | ||
19201 | fi | |
10f2d63a VZ |
19202 | fi |
19203 | ||
10f2d63a | 19204 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then |
698dcdb6 | 19205 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19206 | #define wxUSE_EXPERIMENTAL_PRINTF 1 |
19207 | EOF | |
19208 | ||
19209 | fi | |
19210 | ||
698dcdb6 | 19211 | |
698dcdb6 | 19212 | |
10f2d63a VZ |
19213 | IODBC_C_SRC="" |
19214 | if test "$wxUSE_ODBC" = "yes" ; then | |
698dcdb6 | 19215 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19216 | #define wxUSE_ODBC 1 |
19217 | EOF | |
19218 | ||
19219 | WXODBCFLAG="-D_IODBC_" | |
19220 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
10f2d63a VZ |
19221 | fi |
19222 | ||
698dcdb6 | 19223 | |
10f2d63a | 19224 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then |
698dcdb6 | 19225 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19226 | #define wxUSE_POSTSCRIPT 1 |
19227 | EOF | |
19228 | ||
19229 | fi | |
19230 | ||
698dcdb6 | 19231 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19232 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 |
19233 | EOF | |
19234 | ||
698dcdb6 VZ |
19235 | |
19236 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
19237 | #define wxUSE_NORMALIZED_PS_FONTS 1 |
19238 | EOF | |
19239 | ||
698dcdb6 VZ |
19240 | |
19241 | ||
10f2d63a | 19242 | if test "$wxUSE_CONSTRAINTS" = "yes"; then |
698dcdb6 | 19243 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19244 | #define wxUSE_CONSTRAINTS 1 |
19245 | EOF | |
19246 | ||
19247 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
19248 | fi | |
19249 | ||
19250 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
fc26f4ab | 19251 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
156b2523 | 19252 | echo "configure: warning: MDI not yet supported for wxUNIVERSAL... disabled" 1>&2 |
fc26f4ab RL |
19253 | wxUSE_MDI_ARCHITECTURE=no |
19254 | fi | |
19255 | ||
19256 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
19257 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
19258 | #define wxUSE_MDI_ARCHITECTURE 1 |
19259 | EOF | |
19260 | ||
fc26f4ab RL |
19261 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
19262 | fi | |
10f2d63a VZ |
19263 | fi |
19264 | ||
19265 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
698dcdb6 | 19266 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19267 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 |
19268 | EOF | |
19269 | ||
19270 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
19271 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
19272 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
19273 | fi | |
19274 | fi | |
19275 | ||
19276 | if test "$wxUSE_HELP" = "yes"; then | |
698dcdb6 | 19277 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19278 | #define wxUSE_HELP 1 |
19279 | EOF | |
19280 | ||
19281 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
3379ed37 | 19282 | |
77e13408 | 19283 | if test "$wxUSE_MSW" = 1; then |
031d8228 | 19284 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then |
29fd3c0c VS |
19285 | ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'` |
19286 | echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6 | |
cb61c62d | 19287 | echo "configure:19288: checking for htmlhelp.h" >&5 |
29fd3c0c VS |
19288 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
19289 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19290 | else | |
19291 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 19292 | #line 19293 "configure" |
29fd3c0c VS |
19293 | #include "confdefs.h" |
19294 | #include <htmlhelp.h> | |
19295 | EOF | |
19296 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
cb61c62d | 19297 | { (eval echo configure:19298: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
29fd3c0c VS |
19298 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
19299 | if test -z "$ac_err"; then | |
19300 | rm -rf conftest* | |
19301 | eval "ac_cv_header_$ac_safe=yes" | |
19302 | else | |
19303 | echo "$ac_err" >&5 | |
19304 | echo "configure: failed program was:" >&5 | |
19305 | cat conftest.$ac_ext >&5 | |
19306 | rm -rf conftest* | |
19307 | eval "ac_cv_header_$ac_safe=no" | |
19308 | fi | |
19309 | rm -f conftest* | |
19310 | fi | |
19311 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
19312 | echo "$ac_t""yes" 1>&6 | |
19313 | ||
19314 | cat >> confdefs.h <<\EOF | |
19315 | #define wxUSE_MS_HTML_HELP 1 | |
19316 | EOF | |
19317 | ||
19318 | ||
19319 | else | |
19320 | echo "$ac_t""no" 1>&6 | |
19321 | ||
fc26f4ab | 19322 | echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h... disabled" 1>&2 |
29fd3c0c VS |
19323 | wxUSE_MS_HTML_HELP=no |
19324 | ||
19325 | fi | |
19326 | ||
3e44f09d | 19327 | fi |
3379ed37 | 19328 | fi |
031d8228 VS |
19329 | |
19330 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
19331 | if test "$wxUSE_HTML" = "yes"; then | |
19332 | cat >> confdefs.h <<\EOF | |
19333 | #define wxUSE_WXHTML_HELP 1 | |
19334 | EOF | |
19335 | ||
19336 | else | |
19337 | echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2 | |
19338 | wxUSE_WXHTML_HELP=no | |
19339 | fi | |
19340 | fi | |
10f2d63a VZ |
19341 | fi |
19342 | ||
19343 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
19344 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
698dcdb6 | 19345 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 |
10f2d63a | 19346 | else |
698dcdb6 | 19347 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19348 | #define wxUSE_PRINTING_ARCHITECTURE 1 |
19349 | EOF | |
19350 | ||
19351 | fi | |
19352 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
19353 | fi | |
19354 | ||
19355 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
698dcdb6 | 19356 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19357 | #define wxUSE_PROLOGIO 1 |
19358 | EOF | |
19359 | ||
19360 | fi | |
19361 | ||
19362 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
3379ed37 | 19363 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19364 | #define wxUSE_RESOURCES 1 |
19365 | EOF | |
19366 | ||
3379ed37 | 19367 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" |
10f2d63a VZ |
19368 | fi |
19369 | ||
19370 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
698dcdb6 | 19371 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19372 | #define wxUSE_X_RESOURCES 1 |
19373 | EOF | |
19374 | ||
19375 | fi | |
19376 | ||
698dcdb6 | 19377 | |
77e13408 RL |
19378 | if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ |
19379 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
19380 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
2b9bdf71 | 19381 | for ac_hdr in ole2.h |
10f2d63a | 19382 | do |
698dcdb6 VZ |
19383 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
19384 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
cb61c62d | 19385 | echo "configure:19386: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
19386 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
19387 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19388 | else | |
19389 | cat > conftest.$ac_ext <<EOF | |
cb61c62d | 19390 | #line 19391 "configure" |
10f2d63a | 19391 | #include "confdefs.h" |
698dcdb6 VZ |
19392 | #include <$ac_hdr> |
19393 | EOF | |
19394 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
cb61c62d | 19395 | { (eval echo configure:19396: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
19396 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
19397 | if test -z "$ac_err"; then | |
19398 | rm -rf conftest* | |
19399 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 19400 | else |
698dcdb6 VZ |
19401 | echo "$ac_err" >&5 |
19402 | echo "configure: failed program was:" >&5 | |
10f2d63a | 19403 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
19404 | rm -rf conftest* |
19405 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 19406 | fi |
698dcdb6 | 19407 | rm -f conftest* |
10f2d63a | 19408 | fi |
698dcdb6 VZ |
19409 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
19410 | echo "$ac_t""yes" 1>&6 | |
19411 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
19412 | cat >> confdefs.h <<EOF | |
19413 | #define $ac_tr_hdr 1 | |
10f2d63a | 19414 | EOF |
698dcdb6 VZ |
19415 | |
19416 | else | |
19417 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
19418 | fi |
19419 | done | |
19420 | ||
698dcdb6 | 19421 | |
2b9bdf71 VZ |
19422 | if test "$ac_cv_header_ole2_h" = "yes" ; then |
19423 | if test "$GCC" = yes ; then | |
19424 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" | |
2b9bdf71 | 19425 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" |
3d63bc3a | 19426 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
2b9bdf71 | 19427 | cat >> confdefs.h <<\EOF |
4f11a343 VS |
19428 | #define wxUSE_OLE 1 |
19429 | EOF | |
19430 | ||
b64f0a5f | 19431 | |
2b9bdf71 VZ |
19432 | fi |
19433 | ||
19434 | cat >> confdefs.h <<\EOF | |
19435 | #define wxUSE_DATAOBJ 1 | |
19436 | EOF | |
19437 | ||
19438 | else | |
19439 | echo "configure: warning: Some features disabled because OLE headers not found" 1>&2 | |
19440 | ||
19441 | wxUSE_CLIPBOARD=no | |
19442 | wxUSE_DRAG_AND_DROP=no | |
19443 | wxUSE_DATAOBJ=no | |
19444 | fi | |
19445 | ||
77e13408 | 19446 | if test "$wxUSE_METAFILE" = "yes"; then |
2b9bdf71 | 19447 | cat >> confdefs.h <<\EOF |
b64f0a5f RL |
19448 | #define wxUSE_METAFILE 1 |
19449 | EOF | |
19450 | ||
2b9bdf71 VZ |
19451 | |
19452 | cat >> confdefs.h <<\EOF | |
b64f0a5f RL |
19453 | #define wxUSE_ENH_METAFILE 1 |
19454 | EOF | |
19455 | ||
2b9bdf71 VZ |
19456 | fi |
19457 | fi | |
19458 | ||
19459 | if test "$wxUSE_IPC" = "yes"; then | |
19460 | if test "$wxUSE_SOCKETS" != "yes"; then | |
156b2523 | 19461 | echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2 |
2b9bdf71 VZ |
19462 | fi |
19463 | ||
19464 | cat >> confdefs.h <<\EOF | |
19465 | #define wxUSE_IPC 1 | |
19466 | EOF | |
19467 | ||
19468 | fi | |
19469 | ||
19470 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
178572bb RR |
19471 | if test "$wxUSE_X11" = 1; then |
19472 | echo "configure: warning: Clipboard not yet supported under X11... disabled" 1>&2 | |
19473 | wxUSE_CLIPBOARD=no | |
19474 | fi | |
19475 | ||
19476 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
19477 | cat >> confdefs.h <<\EOF | |
2b9bdf71 VZ |
19478 | #define wxUSE_CLIPBOARD 1 |
19479 | EOF | |
19480 | ||
673f4220 | 19481 | |
178572bb | 19482 | cat >> confdefs.h <<\EOF |
673f4220 VZ |
19483 | #define wxUSE_DATAOBJ 1 |
19484 | EOF | |
19485 | ||
178572bb | 19486 | fi |
2b9bdf71 VZ |
19487 | fi |
19488 | ||
19489 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
19490 | if test "$wxUSE_GTK" = 1; then | |
19491 | if test "$WXGTK12" != 1; then | |
156b2523 | 19492 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2 |
10f2d63a VZ |
19493 | wxUSE_DRAG_AND_DROP=no |
19494 | fi | |
19495 | fi | |
19496 | ||
2b9bdf71 | 19497 | if test "$wxUSE_MOTIF" = 1; then |
156b2523 | 19498 | echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2 |
2b9bdf71 VZ |
19499 | wxUSE_DRAG_AND_DROP=no |
19500 | fi | |
19501 | ||
f79bd02d JS |
19502 | if test "$wxUSE_X11" = 1; then |
19503 | echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2 | |
19504 | wxUSE_DRAG_AND_DROP=no | |
19505 | fi | |
19506 | ||
10f2d63a | 19507 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then |
698dcdb6 | 19508 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19509 | #define wxUSE_DRAG_AND_DROP 1 |
19510 | EOF | |
19511 | ||
19512 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
19513 | fi | |
19514 | ||
19515 | fi | |
19516 | ||
19517 | if test "$wxUSE_SPLINES" = "yes" ; then | |
698dcdb6 | 19518 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19519 | #define wxUSE_SPLINES 1 |
19520 | EOF | |
19521 | ||
19522 | fi | |
19523 | ||
698dcdb6 | 19524 | |
1e6feb95 VZ |
19525 | USES_CONTROLS=0 |
19526 | if test "$wxUSE_CONTROLS" = "yes"; then | |
19527 | USES_CONTROLS=1 | |
19528 | fi | |
19529 | ||
10f2d63a | 19530 | if test "$wxUSE_ACCEL" = "yes"; then |
698dcdb6 | 19531 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19532 | #define wxUSE_ACCEL 1 |
19533 | EOF | |
19534 | ||
1e6feb95 VZ |
19535 | USES_CONTROLS=1 |
19536 | fi | |
19537 | ||
19538 | if test "$wxUSE_BUTTON" = "yes"; then | |
19539 | cat >> confdefs.h <<\EOF | |
19540 | #define wxUSE_BUTTON 1 | |
19541 | EOF | |
19542 | ||
19543 | USES_CONTROLS=1 | |
19544 | fi | |
19545 | ||
19546 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
19547 | cat >> confdefs.h <<\EOF | |
19548 | #define wxUSE_BMPBUTTON 1 | |
19549 | EOF | |
19550 | ||
19551 | USES_CONTROLS=1 | |
19552 | fi | |
19553 | ||
19554 | if test "$wxUSE_CALCTRL" = "yes"; then | |
19555 | cat >> confdefs.h <<\EOF | |
19556 | #define wxUSE_CALENDARCTRL 1 | |
19557 | EOF | |
19558 | ||
19559 | USES_CONTROLS=1 | |
19560 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
10f2d63a VZ |
19561 | fi |
19562 | ||
19563 | if test "$wxUSE_CARET" = "yes"; then | |
698dcdb6 | 19564 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19565 | #define wxUSE_CARET 1 |
19566 | EOF | |
19567 | ||
1e6feb95 | 19568 | USES_CONTROLS=1 |
10f2d63a VZ |
19569 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" |
19570 | fi | |
19571 | ||
19572 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
698dcdb6 | 19573 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19574 | #define wxUSE_COMBOBOX 1 |
19575 | EOF | |
19576 | ||
1e6feb95 | 19577 | USES_CONTROLS=1 |
10f2d63a VZ |
19578 | fi |
19579 | ||
19580 | if test "$wxUSE_CHOICE" = "yes"; then | |
698dcdb6 | 19581 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19582 | #define wxUSE_CHOICE 1 |
19583 | EOF | |
19584 | ||
1e6feb95 | 19585 | USES_CONTROLS=1 |
10f2d63a VZ |
19586 | fi |
19587 | ||
19588 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
698dcdb6 | 19589 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19590 | #define wxUSE_CHECKBOX 1 |
19591 | EOF | |
19592 | ||
1e6feb95 | 19593 | USES_CONTROLS=1 |
10f2d63a VZ |
19594 | fi |
19595 | ||
19596 | if test "$wxUSE_CHECKLST" = "yes"; then | |
698dcdb6 | 19597 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19598 | #define wxUSE_CHECKLISTBOX 1 |
19599 | EOF | |
19600 | ||
1e6feb95 | 19601 | USES_CONTROLS=1 |
10f2d63a VZ |
19602 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" |
19603 | fi | |
19604 | ||
19605 | if test "$wxUSE_GAUGE" = "yes"; then | |
698dcdb6 | 19606 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19607 | #define wxUSE_GAUGE 1 |
19608 | EOF | |
19609 | ||
1e6feb95 | 19610 | USES_CONTROLS=1 |
10f2d63a VZ |
19611 | fi |
19612 | ||
d6a55c4b VZ |
19613 | if test "$wxUSE_NEW_GRID" = "yes"; then |
19614 | wxUSE_GRID="yes" | |
698dcdb6 | 19615 | cat >> confdefs.h <<\EOF |
d6a55c4b | 19616 | #define wxUSE_NEW_GRID 1 |
10f2d63a VZ |
19617 | EOF |
19618 | ||
1e6feb95 | 19619 | USES_CONTROLS=1 |
d6a55c4b | 19620 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid" |
10f2d63a VZ |
19621 | fi |
19622 | ||
d6a55c4b | 19623 | if test "$wxUSE_GRID" = "yes"; then |
698dcdb6 | 19624 | cat >> confdefs.h <<\EOF |
d6a55c4b | 19625 | #define wxUSE_GRID 1 |
10f2d63a VZ |
19626 | EOF |
19627 | ||
1e6feb95 | 19628 | USES_CONTROLS=1 |
d6a55c4b | 19629 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
19630 | fi |
19631 | ||
19632 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 19633 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19634 | #define wxUSE_IMAGLIST 1 |
19635 | EOF | |
19636 | ||
19637 | fi | |
19638 | ||
19639 | if test "$wxUSE_LISTBOX" = "yes"; then | |
698dcdb6 | 19640 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19641 | #define wxUSE_LISTBOX 1 |
19642 | EOF | |
19643 | ||
1e6feb95 | 19644 | USES_CONTROLS=1 |
10f2d63a VZ |
19645 | fi |
19646 | ||
19647 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
19648 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 19649 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19650 | #define wxUSE_LISTCTRL 1 |
19651 | EOF | |
19652 | ||
1e6feb95 | 19653 | USES_CONTROLS=1 |
10f2d63a VZ |
19654 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" |
19655 | else | |
698dcdb6 | 19656 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
19657 | fi |
19658 | fi | |
19659 | ||
19660 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
698dcdb6 | 19661 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19662 | #define wxUSE_NOTEBOOK 1 |
19663 | EOF | |
19664 | ||
1e6feb95 | 19665 | USES_CONTROLS=1 |
10f2d63a VZ |
19666 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" |
19667 | fi | |
19668 | ||
24176f2c GD |
19669 | if test "$wxUSE_PROPSHEET" = "yes"; then |
19670 | cat >> confdefs.h <<\EOF | |
19671 | #define wxUSE_PROPSHEET 1 | |
19672 | EOF | |
19673 | ||
19674 | USES_CONTROLS=1 | |
19675 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist" | |
19676 | fi | |
19677 | ||
10f2d63a | 19678 | if test "$wxUSE_RADIOBOX" = "yes"; then |
698dcdb6 | 19679 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19680 | #define wxUSE_RADIOBOX 1 |
19681 | EOF | |
19682 | ||
1e6feb95 | 19683 | USES_CONTROLS=1 |
10f2d63a VZ |
19684 | fi |
19685 | ||
19686 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
698dcdb6 | 19687 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19688 | #define wxUSE_RADIOBTN 1 |
19689 | EOF | |
19690 | ||
1e6feb95 | 19691 | USES_CONTROLS=1 |
10f2d63a VZ |
19692 | fi |
19693 | ||
19694 | if test "$wxUSE_SASH" = "yes"; then | |
698dcdb6 | 19695 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19696 | #define wxUSE_SASH 1 |
19697 | EOF | |
19698 | ||
19699 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
19700 | fi | |
19701 | ||
19702 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
698dcdb6 | 19703 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19704 | #define wxUSE_SCROLLBAR 1 |
19705 | EOF | |
19706 | ||
1e6feb95 | 19707 | USES_CONTROLS=1 |
741a9306 | 19708 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
19709 | fi |
19710 | ||
19711 | if test "$wxUSE_SLIDER" = "yes"; then | |
698dcdb6 | 19712 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19713 | #define wxUSE_SLIDER 1 |
19714 | EOF | |
19715 | ||
1e6feb95 | 19716 | USES_CONTROLS=1 |
10f2d63a VZ |
19717 | fi |
19718 | ||
19719 | if test "$wxUSE_SPINBTN" = "yes"; then | |
698dcdb6 | 19720 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19721 | #define wxUSE_SPINBTN 1 |
19722 | EOF | |
19723 | ||
1e6feb95 | 19724 | USES_CONTROLS=1 |
10f2d63a VZ |
19725 | fi |
19726 | ||
56cfaa52 | 19727 | if test "$wxUSE_SPINCTRL" = "yes"; then |
698dcdb6 | 19728 | cat >> confdefs.h <<\EOF |
56cfaa52 RR |
19729 | #define wxUSE_SPINCTRL 1 |
19730 | EOF | |
19731 | ||
1e6feb95 | 19732 | USES_CONTROLS=1 |
56cfaa52 RR |
19733 | fi |
19734 | ||
10f2d63a | 19735 | if test "$wxUSE_SPLITTER" = "yes"; then |
698dcdb6 | 19736 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19737 | #define wxUSE_SPLITTER 1 |
19738 | EOF | |
19739 | ||
19740 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
19741 | fi | |
19742 | ||
19743 | if test "$wxUSE_STATBMP" = "yes"; then | |
698dcdb6 | 19744 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19745 | #define wxUSE_STATBMP 1 |
19746 | EOF | |
19747 | ||
1e6feb95 | 19748 | USES_CONTROLS=1 |
10f2d63a VZ |
19749 | fi |
19750 | ||
19751 | if test "$wxUSE_STATBOX" = "yes"; then | |
698dcdb6 | 19752 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19753 | #define wxUSE_STATBOX 1 |
19754 | EOF | |
19755 | ||
1e6feb95 VZ |
19756 | USES_CONTROLS=1 |
19757 | fi | |
19758 | ||
19759 | if test "$wxUSE_STATTEXT" = "yes"; then | |
19760 | cat >> confdefs.h <<\EOF | |
19761 | #define wxUSE_STATTEXT 1 | |
19762 | EOF | |
19763 | ||
19764 | USES_CONTROLS=1 | |
10f2d63a VZ |
19765 | fi |
19766 | ||
19767 | if test "$wxUSE_STATLINE" = "yes"; then | |
19768 | if test "$wxUSE_WINE" = 1 ; then | |
698dcdb6 | 19769 | echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2 |
10f2d63a | 19770 | else |
698dcdb6 | 19771 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19772 | #define wxUSE_STATLINE 1 |
19773 | EOF | |
19774 | ||
1e6feb95 | 19775 | USES_CONTROLS=1 |
10f2d63a VZ |
19776 | fi |
19777 | fi | |
19778 | ||
19779 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
698dcdb6 | 19780 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19781 | #define wxUSE_STATUSBAR 1 |
19782 | EOF | |
19783 | ||
1e6feb95 | 19784 | USES_CONTROLS=1 |
698dcdb6 | 19785 | |
2286341c | 19786 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" |
10f2d63a VZ |
19787 | fi |
19788 | ||
19789 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
698dcdb6 | 19790 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19791 | #define wxUSE_TAB_DIALOG 1 |
19792 | EOF | |
19793 | ||
19794 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
19795 | fi | |
19796 | ||
1e6feb95 VZ |
19797 | if test "$wxUSE_TEXTCTRL" = "yes"; then |
19798 | cat >> confdefs.h <<\EOF | |
19799 | #define wxUSE_TEXTCTRL 1 | |
19800 | EOF | |
19801 | ||
19802 | USES_CONTROLS=1 | |
19803 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
19804 | fi | |
19805 | ||
1db8dc4a | 19806 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
156b2523 GD |
19807 | if test "$wxUSE_MAC" = 1; then |
19808 | echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2 | |
19809 | wxUSE_TOGGLEBTN=no | |
19810 | fi | |
19811 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
19812 | echo "configure: warning: Toggle button not yet supported under wxUNIVERSAL... disabled" 1>&2 | |
a45d7ab7 GD |
19813 | wxUSE_TOGGLEBTN=no |
19814 | fi | |
19815 | ||
19816 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
19817 | cat >> confdefs.h <<\EOF | |
1db8dc4a VZ |
19818 | #define wxUSE_TOGGLEBTN 1 |
19819 | EOF | |
19820 | ||
1e6feb95 | 19821 | USES_CONTROLS=1 |
a45d7ab7 | 19822 | fi |
1db8dc4a VZ |
19823 | fi |
19824 | ||
360d6699 | 19825 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
698dcdb6 | 19826 | cat >> confdefs.h <<\EOF |
360d6699 VZ |
19827 | #define wxUSE_TOOLBAR_SIMPLE 1 |
19828 | EOF | |
19829 | ||
19830 | wxUSE_TOOLBAR="yes" | |
1e6feb95 | 19831 | USES_CONTROLS=1 |
360d6699 VZ |
19832 | fi |
19833 | ||
10f2d63a | 19834 | if test "$wxUSE_TOOLBAR" = "yes"; then |
698dcdb6 | 19835 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19836 | #define wxUSE_TOOLBAR 1 |
19837 | EOF | |
19838 | ||
1e6feb95 | 19839 | USES_CONTROLS=1 |
698dcdb6 | 19840 | |
360d6699 VZ |
19841 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then |
19842 | wxUSE_TOOLBAR_NATIVE="yes" | |
19843 | fi | |
19844 | ||
1e6feb95 VZ |
19845 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
19846 | cat >> confdefs.h <<\EOF | |
360d6699 VZ |
19847 | #define wxUSE_TOOLBAR_NATIVE 1 |
19848 | EOF | |
19849 | ||
1e6feb95 VZ |
19850 | USES_CONTROLS=1 |
19851 | fi | |
19852 | ||
19853 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
360d6699 VZ |
19854 | fi |
19855 | ||
10f2d63a VZ |
19856 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
19857 | if test "$wxUSE_MOTIF" = 1; then | |
156b2523 | 19858 | echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2 |
10f2d63a VZ |
19859 | else |
19860 | if test "$wxUSE_WINE" = 1; then | |
156b2523 | 19861 | echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2 |
10f2d63a | 19862 | else |
69d27ff7 | 19863 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
156b2523 | 19864 | echo "configure: warning: wxTooltip not supported yet in wxUNIVERSAL... disabled" 1>&2 |
69d27ff7 | 19865 | else |
178572bb RR |
19866 | if test "$wxUSE_X11" = "1"; then |
19867 | echo "configure: warning: wxTooltip not supported yet under X11... disabled" 1>&2 | |
19868 | else | |
19869 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
19870 | #define wxUSE_TOOLTIPS 1 |
19871 | EOF | |
19872 | ||
178572bb | 19873 | fi |
69d27ff7 | 19874 | fi |
10f2d63a VZ |
19875 | fi |
19876 | fi | |
19877 | fi | |
19878 | ||
19879 | if test "$wxUSE_TREECTRL" = "yes"; then | |
19880 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 19881 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19882 | #define wxUSE_TREECTRL 1 |
19883 | EOF | |
19884 | ||
1e6feb95 | 19885 | USES_CONTROLS=1 |
10f2d63a VZ |
19886 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" |
19887 | else | |
698dcdb6 | 19888 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
19889 | fi |
19890 | fi | |
19891 | ||
9f41d601 | 19892 | if test "$wxUSE_POPUPWIN" = "yes"; then |
6abe4b65 | 19893 | if test "$wxUSE_MAC" = 1; then |
156b2523 | 19894 | echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2 |
6abe4b65 | 19895 | else |
485cf710 VZ |
19896 | if test "$wxUSE_MOTIF" = 1; then |
19897 | echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2 | |
19898 | else | |
19899 | cat >> confdefs.h <<\EOF | |
9f41d601 RR |
19900 | #define wxUSE_POPUPWIN 1 |
19901 | EOF | |
19902 | ||
9926e4a4 | 19903 | |
485cf710 VZ |
19904 | USES_CONTROLS=1 |
19905 | fi | |
6abe4b65 | 19906 | fi |
9f41d601 RR |
19907 | fi |
19908 | ||
dd964dcc VZ |
19909 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
19910 | cat >> confdefs.h <<\EOF | |
19911 | #define wxUSE_TIPWINDOW 1 | |
19912 | EOF | |
19913 | ||
19914 | fi | |
19915 | ||
1e6feb95 VZ |
19916 | if test "$USES_CONTROLS" = 1; then |
19917 | cat >> confdefs.h <<\EOF | |
19918 | #define wxUSE_CONTROLS 1 | |
10f2d63a VZ |
19919 | EOF |
19920 | ||
10f2d63a VZ |
19921 | fi |
19922 | ||
1e6feb95 | 19923 | |
24176f2c GD |
19924 | if test "$wxUSE_TREELAYOUT" = "yes"; then |
19925 | cat >> confdefs.h <<\EOF | |
19926 | #define wxUSE_TREELAYOUT 1 | |
19927 | EOF | |
19928 | ||
19929 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay" | |
19930 | fi | |
1e6feb95 | 19931 | |
24fd6d87 VZ |
19932 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
19933 | cat >> confdefs.h <<\EOF | |
19934 | #define wxUSE_DRAGIMAGE 1 | |
19935 | EOF | |
19936 | ||
19937 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
19938 | fi | |
19939 | ||
1e6feb95 | 19940 | if test "$wxUSE_MENUS" = "yes"; then |
698dcdb6 | 19941 | cat >> confdefs.h <<\EOF |
1e6feb95 | 19942 | #define wxUSE_MENUS 1 |
10f2d63a VZ |
19943 | EOF |
19944 | ||
1e6feb95 | 19945 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" |
10f2d63a VZ |
19946 | fi |
19947 | ||
1e6feb95 VZ |
19948 | if test "$wxUSE_METAFILE" = "yes"; then |
19949 | cat >> confdefs.h <<\EOF | |
19950 | #define wxUSE_METAFILE 1 | |
10f2d63a VZ |
19951 | EOF |
19952 | ||
10f2d63a VZ |
19953 | fi |
19954 | ||
1e6feb95 VZ |
19955 | if test "$wxUSE_MIMETYPE" = "yes"; then |
19956 | cat >> confdefs.h <<\EOF | |
19957 | #define wxUSE_MIMETYPE 1 | |
10f2d63a VZ |
19958 | EOF |
19959 | ||
10f2d63a VZ |
19960 | fi |
19961 | ||
3e44f09d VZ |
19962 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then |
19963 | cat >> confdefs.h <<\EOF | |
19964 | #define wxUSE_SYSTEM_OPTIONS 1 | |
19965 | EOF | |
19966 | ||
19967 | fi | |
19968 | ||
4cdb0ab0 | 19969 | if test "$wxUSE_PROTOCOL" = "yes"; then |
3954f9ca VS |
19970 | if test "$wxUSE_SOCKETS" != "yes"; then |
19971 | echo "configure: warning: Protocol classes require sockets... disabled" 1>&2 | |
19972 | wxUSE_PROTOCOL=no | |
19973 | fi | |
19974 | ||
19975 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
19976 | cat >> confdefs.h <<\EOF | |
4cdb0ab0 VS |
19977 | #define wxUSE_PROTOCOL 1 |
19978 | EOF | |
19979 | ||
19980 | ||
3954f9ca VS |
19981 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then |
19982 | cat >> confdefs.h <<\EOF | |
4cdb0ab0 VS |
19983 | #define wxUSE_PROTOCOL_HTTP 1 |
19984 | EOF | |
19985 | ||
3954f9ca VS |
19986 | fi |
19987 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
19988 | cat >> confdefs.h <<\EOF | |
4cdb0ab0 VS |
19989 | #define wxUSE_PROTOCOL_FTP 1 |
19990 | EOF | |
19991 | ||
3954f9ca VS |
19992 | fi |
19993 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
19994 | cat >> confdefs.h <<\EOF | |
19995 | #define wxUSE_PROTOCOL_FILE 1 | |
19996 | EOF | |
19997 | ||
19998 | fi | |
4cdb0ab0 | 19999 | fi |
3954f9ca VS |
20000 | fi |
20001 | ||
20002 | if test "$wxUSE_URL" = "yes"; then | |
20003 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
20004 | echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2 | |
20005 | wxUSE_URL=no | |
20006 | fi | |
20007 | if test "$wxUSE_URL" = "yes"; then | |
4cdb0ab0 | 20008 | cat >> confdefs.h <<\EOF |
3954f9ca | 20009 | #define wxUSE_URL 1 |
4cdb0ab0 VS |
20010 | EOF |
20011 | ||
20012 | fi | |
20013 | fi | |
20014 | ||
10f2d63a | 20015 | if test "$wxUSE_MINIFRAME" = "yes"; then |
698dcdb6 | 20016 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20017 | #define wxUSE_MINIFRAME 1 |
20018 | EOF | |
20019 | ||
20020 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
20021 | fi | |
20022 | ||
20023 | if test "$wxUSE_HTML" = "yes"; then | |
698dcdb6 | 20024 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20025 | #define wxUSE_HTML 1 |
20026 | EOF | |
20027 | ||
20028 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
10f2d63a VZ |
20029 | fi |
20030 | ||
20031 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
698dcdb6 | 20032 | cat >> confdefs.h <<\EOF |
1e487827 VS |
20033 | #define wxUSE_VALIDATORS 1 |
20034 | EOF | |
703e0a69 | 20035 | |
698dcdb6 VZ |
20036 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" |
20037 | fi | |
20038 | ||
edae8572 VZ |
20039 | if test "$wxUSE_PALETTE" = "yes" ; then |
20040 | cat >> confdefs.h <<\EOF | |
20041 | #define wxUSE_PALETTE 1 | |
20042 | EOF | |
20043 | ||
20044 | fi | |
20045 | ||
698dcdb6 VZ |
20046 | if test "$wxUSE_IMAGE" = "yes" ; then |
20047 | cat >> confdefs.h <<\EOF | |
20048 | #define wxUSE_IMAGE 1 | |
20049 | EOF | |
20050 | ||
20051 | fi | |
20052 | ||
20053 | if test "$wxUSE_GIF" = "yes" ; then | |
20054 | cat >> confdefs.h <<\EOF | |
20055 | #define wxUSE_GIF 1 | |
20056 | EOF | |
20057 | ||
20058 | fi | |
20059 | ||
20060 | if test "$wxUSE_PCX" = "yes" ; then | |
20061 | cat >> confdefs.h <<\EOF | |
20062 | #define wxUSE_PCX 1 | |
20063 | EOF | |
20064 | ||
20065 | fi | |
20066 | ||
4b6b4dfc RR |
20067 | if test "$wxUSE_IFF" = "yes" ; then |
20068 | cat >> confdefs.h <<\EOF | |
20069 | #define wxUSE_IFF 1 | |
20070 | EOF | |
20071 | ||
20072 | fi | |
20073 | ||
698dcdb6 VZ |
20074 | if test "$wxUSE_PNM" = "yes" ; then |
20075 | cat >> confdefs.h <<\EOF | |
20076 | #define wxUSE_PNM 1 | |
20077 | EOF | |
20078 | ||
20079 | fi | |
20080 | ||
20081 | if test "$wxUSE_XPM" = "yes" ; then | |
20082 | cat >> confdefs.h <<\EOF | |
20083 | #define wxUSE_XPM 1 | |
20084 | EOF | |
20085 | ||
20086 | fi | |
20087 | ||
658974ae VS |
20088 | if test "$wxUSE_ICO_CUR" = "yes" ; then |
20089 | cat >> confdefs.h <<\EOF | |
20090 | #define wxUSE_ICO_CUR 1 | |
20091 | EOF | |
20092 | ||
20093 | fi | |
20094 | ||
a72a4bfa VS |
20095 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then |
20096 | LIBS=" -lunicows $LIBS" | |
20097 | fi | |
20098 | ||
698dcdb6 | 20099 | |
1e6feb95 VZ |
20100 | if test "$wxUSE_CHOICEDLG" = "yes"; then |
20101 | cat >> confdefs.h <<\EOF | |
20102 | #define wxUSE_CHOICEDLG 1 | |
20103 | EOF | |
20104 | ||
20105 | fi | |
20106 | ||
20107 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
20108 | cat >> confdefs.h <<\EOF | |
20109 | #define wxUSE_COLOURDLG 1 | |
20110 | EOF | |
20111 | ||
20112 | fi | |
20113 | ||
20114 | if test "$wxUSE_FILEDLG" = "yes"; then | |
20115 | cat >> confdefs.h <<\EOF | |
20116 | #define wxUSE_FILEDLG 1 | |
20117 | EOF | |
20118 | ||
20119 | fi | |
20120 | ||
8db37e06 VZ |
20121 | if test "$wxUSE_FINDREPLDLG" = "yes"; then |
20122 | cat >> confdefs.h <<\EOF | |
20123 | #define wxUSE_FINDREPLDLG 1 | |
20124 | EOF | |
20125 | ||
20126 | fi | |
20127 | ||
1e6feb95 VZ |
20128 | if test "$wxUSE_FONTDLG" = "yes"; then |
20129 | cat >> confdefs.h <<\EOF | |
20130 | #define wxUSE_FONTDLG 1 | |
20131 | EOF | |
20132 | ||
20133 | fi | |
20134 | ||
20135 | if test "$wxUSE_DIRDLG" = "yes"; then | |
20136 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
20137 | echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2 | |
20138 | else | |
20139 | if test "$wxUSE_TREECTRL" != "yes"; then | |
20140 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 | |
20141 | else | |
20142 | cat >> confdefs.h <<\EOF | |
20143 | #define wxUSE_DIRDLG 1 | |
20144 | EOF | |
20145 | ||
20146 | fi | |
20147 | fi | |
20148 | fi | |
20149 | ||
20150 | if test "$wxUSE_MSGDLG" = "yes"; then | |
20151 | cat >> confdefs.h <<\EOF | |
20152 | #define wxUSE_MSGDLG 1 | |
20153 | EOF | |
20154 | ||
20155 | fi | |
20156 | ||
20157 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
20158 | cat >> confdefs.h <<\EOF | |
20159 | #define wxUSE_NUMBERDLG 1 | |
20160 | EOF | |
20161 | ||
20162 | fi | |
20163 | ||
20164 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
20165 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
20166 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 | |
20167 | else | |
20168 | cat >> confdefs.h <<\EOF | |
20169 | #define wxUSE_PROGRESSDLG 1 | |
20170 | EOF | |
20171 | ||
20172 | fi | |
20173 | fi | |
20174 | ||
cbca9943 VZ |
20175 | if test "$wxUSE_SPLASH" = "yes"; then |
20176 | cat >> confdefs.h <<\EOF | |
20177 | #define wxUSE_SPLASH 1 | |
20178 | EOF | |
20179 | ||
20180 | fi | |
20181 | ||
1e6feb95 VZ |
20182 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then |
20183 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
20184 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 | |
20185 | else | |
20186 | cat >> confdefs.h <<\EOF | |
20187 | #define wxUSE_STARTUP_TIPS 1 | |
20188 | EOF | |
20189 | ||
20190 | fi | |
20191 | fi | |
20192 | ||
20193 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
20194 | cat >> confdefs.h <<\EOF | |
20195 | #define wxUSE_TEXTDLG 1 | |
20196 | EOF | |
20197 | ||
20198 | fi | |
20199 | ||
b1f5d087 VZ |
20200 | if test "$wxUSE_WIZARDDLG" = "yes"; then |
20201 | cat >> confdefs.h <<\EOF | |
20202 | #define wxUSE_WIZARDDLG 1 | |
20203 | EOF | |
20204 | ||
20205 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
20206 | fi | |
20207 | ||
1e6feb95 | 20208 | |
698dcdb6 VZ |
20209 | if test "$cross_compiling" = "yes"; then |
20210 | OSINFO="\"$host\"" | |
20211 | else | |
20212 | OSINFO=`uname -s -r -m` | |
20213 | OSINFO="\"$OSINFO\"" | |
20214 | fi | |
20215 | ||
20216 | cat >> confdefs.h <<EOF | |
20217 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
20218 | EOF | |
20219 | ||
20220 | ||
20221 | ||
06dda230 VZ |
20222 | if test "x$prefix" != "xNONE"; then |
20223 | wxPREFIX=$prefix | |
20224 | else | |
20225 | wxPREFIX=$ac_default_prefix | |
20226 | fi | |
20227 | ||
7e67ed0d | 20228 | cat >> confdefs.h <<EOF |
06dda230 | 20229 | #define wxINSTALL_PREFIX "$wxPREFIX" |
7e67ed0d VZ |
20230 | EOF |
20231 | ||
20232 | ||
20233 | ||
698dcdb6 | 20234 | |
3a922bb4 | 20235 | |
f11bdd03 | 20236 | if test "$wxUSE_MAC" = 1 ; then |
3d63bc3a | 20237 | LDFLAGS="$LDFLAGS -framework Carbon -framework System" |
698dcdb6 | 20238 | fi |
3a922bb4 | 20239 | |
3d63bc3a | 20240 | |
cb61c62d | 20241 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DL_LINK -lm $LIBS" |
3d63bc3a | 20242 | |
698dcdb6 | 20243 | if test "$wxUSE_GUI" = "yes"; then |
3d63bc3a | 20244 | |
cb61c62d | 20245 | LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS" |
3a922bb4 RL |
20246 | |
20247 | ||
20248 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \ | |
20249 | drawing dynamic erase event exec font image \ | |
20250 | minimal richedit rotate widgets" | |
20251 | ||
3a922bb4 RL |
20252 | CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)" |
20253 | else | |
20254 | SAMPLES_SUBDIRS="console" | |
698dcdb6 VZ |
20255 | fi |
20256 | ||
698dcdb6 | 20257 | |
d714471b | 20258 | INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} -I\${top_srcdir}/include \ |
cb61c62d | 20259 | $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $TOOLKIT_INCLUDE" |
698dcdb6 | 20260 | |
63e7762e | 20261 | if test "$wxUSE_GTK" = 1; then |
3d63bc3a | 20262 | WXCONFIG_INCLUDE= |
698dcdb6 VZ |
20263 | else |
20264 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
20265 | fi | |
20266 | ||
20267 | if test "$GXX" = yes ; then | |
20268 | CXXWARNINGS="-Wall" | |
88e30f2b RL |
20269 | |
20270 | if test "$wxUSE_NO_DEPS" = "no" ; then | |
20271 | CFLAGS="-MMD $CFLAGS" | |
20272 | CXXFLAGS="-MMD $CXXFLAGS" | |
20273 | fi | |
20274 | fi | |
20275 | ||
1725144d | 20276 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES" |
698dcdb6 VZ |
20277 | |
20278 | CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` | |
20279 | CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
20280 | ||
3d63bc3a | 20281 | LDFLAGS="$LDFLAGS$PROFILE" |
698dcdb6 | 20282 | |
698dcdb6 VZ |
20283 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" |
20284 | ||
20285 | ||
20286 | ||
20287 | ||
20288 | ||
20289 | ||
20290 | ||
20291 | ||
20292 | ||
20293 | ||
20294 | ||
20295 | ||
20296 | ||
20297 | ||
20298 | ||
20299 | ||
20300 | ||
20301 | ||
20302 | ||
20303 | ||
20304 | ||
20305 | ||
20306 | ||
20307 | ||
20308 | ||
20309 | ||
20310 | ||
20311 | ||
20312 | ||
20313 | ||
20314 | ||
20315 | ||
20316 | ||
20317 | ||
20318 | ||
20319 | ||
20320 | ||
20321 | ||
20322 | ||
20323 | ||
20324 | ||
20325 | ||
20326 | ||
20327 | ||
20328 | ||
20329 | ||
20330 | ||
20331 | ||
20332 | ||
20333 | ||
20334 | ||
20335 | ||
20336 | ||
20337 | ||
20338 | ||
20339 | ||
20340 | ||
20341 | ||
20342 | ||
20343 | ||
20344 | ||
20345 | ||
20346 | ||
20347 | ||
20348 | ||
20349 | ||
20350 | ||
32832908 | 20351 | |
2f51a9ec GD |
20352 | |
20353 | ||
20354 | ||
20355 | ||
f6bcfd97 | 20356 | |
dad6c0ea | 20357 | |
caa2c79b | 20358 | |
3711412e | 20359 | |
1e6feb95 VZ |
20360 | |
20361 | ||
885d4bf5 VS |
20362 | |
20363 | ||
20364 | ||
20365 | ||
9b695262 VZ |
20366 | |
20367 | ||
62d0491b | 20368 | |
10f2d63a VZ |
20369 | |
20370 | ||
698dcdb6 | 20371 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
178572bb | 20372 | echo "configure:20373: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
698dcdb6 VZ |
20373 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
20374 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
20375 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 20376 | else |
698dcdb6 | 20377 | cat > conftestmake <<\EOF |
10f2d63a VZ |
20378 | all: |
20379 | @echo 'ac_maketemp="${MAKE}"' | |
20380 | EOF | |
20381 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
698dcdb6 | 20382 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
10f2d63a VZ |
20383 | if test -n "$ac_maketemp"; then |
20384 | eval ac_cv_prog_make_${ac_make}_set=yes | |
20385 | else | |
20386 | eval ac_cv_prog_make_${ac_make}_set=no | |
20387 | fi | |
698dcdb6 | 20388 | rm -f conftestmake |
10f2d63a VZ |
20389 | fi |
20390 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
698dcdb6 | 20391 | echo "$ac_t""yes" 1>&6 |
10f2d63a VZ |
20392 | SET_MAKE= |
20393 | else | |
698dcdb6 | 20394 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
20395 | SET_MAKE="MAKE=${MAKE-make}" |
20396 | fi | |
20397 | ||
698dcdb6 | 20398 | |
3a922bb4 RL |
20399 | if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then |
20400 | mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h | |
00cf1208 | 20401 | fi |
665bbe97 | 20402 | |
698dcdb6 | 20403 | |
10f2d63a | 20404 | |
2224580a | 20405 | if test "$wxUSE_GUI" = "yes"; then |
ec90f5e5 | 20406 | wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS |
22c3fb2b | 20407 | wx_cv_if_gnu_make=$IF_GNU_MAKE |
e8482f24 GL |
20408 | wx_cv_path_ifs=$PATH_IFS |
20409 | wx_cv_program_ext=$PROGRAM_EXT | |
20410 | wx_cv_target_library=$WX_TARGET_LIBRARY | |
7b6058cd | 20411 | wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL |
3711412e | 20412 | wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE |
22c3fb2b VZ |
20413 | export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \ |
20414 | wx_cv_path_ifs wx_cv_program_ext \ | |
7b6058cd | 20415 | wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype |
698dcdb6 | 20416 | subdirs="demos samples utils contrib" |
2224580a VZ |
20417 | |
20418 | fi | |
10f2d63a | 20419 | |
698dcdb6 VZ |
20420 | trap '' 1 2 15 |
20421 | cat > confcache <<\EOF | |
10f2d63a VZ |
20422 | # This file is a shell script that caches the results of configure |
20423 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
20424 | # scripts and configure runs. It is not useful on other systems. |
20425 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 20426 | # |
698dcdb6 VZ |
20427 | # By default, configure uses ./config.cache as the cache file, |
20428 | # creating it if it does not exist already. You can give configure | |
20429 | # the --cache-file=FILE option to use a different cache file; that is | |
20430 | # what configure does when it calls configure scripts in | |
20431 | # subdirectories, so they share the cache. | |
20432 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
20433 | # config.status only pays attention to the cache file if you give it the | |
20434 | # --recheck option to rerun configure. | |
10f2d63a | 20435 | # |
698dcdb6 | 20436 | EOF |
10f2d63a VZ |
20437 | # The following way of writing the cache mishandles newlines in values, |
20438 | # but we know of no workaround that is simple, portable, and efficient. | |
20439 | # So, don't put newlines in cache variables' values. | |
20440 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
20441 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
20442 | (set) 2>&1 | |
20443 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
20444 | *ac_space=\ *) | |
20445 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
20446 | # turns \\\\ into \\, and sed turns \\ into \). | |
20447 | sed -n \ | |
20448 | -e "s/'/'\\\\''/g" \ | |
20449 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
20450 | ;; | |
20451 | *) | |
20452 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
20453 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
20454 | ;; | |
20455 | esac >> confcache | |
20456 | if cmp -s $cache_file confcache; then | |
20457 | : | |
20458 | else | |
10f2d63a | 20459 | if test -w $cache_file; then |
698dcdb6 VZ |
20460 | echo "updating cache $cache_file" |
20461 | cat confcache > $cache_file | |
10f2d63a VZ |
20462 | else |
20463 | echo "not updating unwritable cache $cache_file" | |
20464 | fi | |
20465 | fi | |
20466 | rm -f confcache | |
20467 | ||
698dcdb6 VZ |
20468 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
20469 | ||
10f2d63a VZ |
20470 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
20471 | # Let make expand exec_prefix. | |
20472 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
20473 | ||
698dcdb6 VZ |
20474 | # Any assignment to VPATH causes Sun make to only execute |
20475 | # the first set of double-colon rules, so remove it if not needed. | |
20476 | # If there is a colon in the path, we need to keep it. | |
10f2d63a | 20477 | if test "x$srcdir" = x.; then |
698dcdb6 | 20478 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
10f2d63a VZ |
20479 | fi |
20480 | ||
698dcdb6 VZ |
20481 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
20482 | ||
10f2d63a VZ |
20483 | DEFS=-DHAVE_CONFIG_H |
20484 | ||
698dcdb6 | 20485 | # Without the "./", some shells look in PATH for config.status. |
10f2d63a | 20486 | : ${CONFIG_STATUS=./config.status} |
698dcdb6 VZ |
20487 | |
20488 | echo creating $CONFIG_STATUS | |
20489 | rm -f $CONFIG_STATUS | |
20490 | cat > $CONFIG_STATUS <<EOF | |
20491 | #! /bin/sh | |
10f2d63a VZ |
20492 | # Generated automatically by configure. |
20493 | # Run this file to recreate the current configuration. | |
698dcdb6 VZ |
20494 | # This directory was configured as follows, |
20495 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
20496 | # | |
20497 | # $0 $ac_configure_args | |
20498 | # | |
10f2d63a | 20499 | # Compiler output produced by configure, useful for debugging |
698dcdb6 | 20500 | # configure, is in ./config.log if it exists. |
1e487827 | 20501 | |
698dcdb6 VZ |
20502 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
20503 | for ac_option | |
10f2d63a | 20504 | do |
698dcdb6 | 20505 | case "\$ac_option" in |
10f2d63a | 20506 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
698dcdb6 VZ |
20507 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
20508 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
20509 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
20510 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
20511 | exit 0 ;; | |
20512 | -help | --help | --hel | --he | --h) | |
20513 | echo "\$ac_cs_usage"; exit 0 ;; | |
20514 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
10f2d63a VZ |
20515 | esac |
20516 | done | |
20517 | ||
698dcdb6 VZ |
20518 | ac_given_srcdir=$srcdir |
20519 | ac_given_INSTALL="$INSTALL" | |
703e0a69 | 20520 | |
698dcdb6 VZ |
20521 | trap 'rm -fr `echo " |
20522 | wx-config | |
20523 | src/make.env | |
20524 | src/makeprog.env | |
20525 | src/makelib.env | |
20526 | Makefile | |
20527 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
1e487827 | 20528 | EOF |
698dcdb6 | 20529 | cat >> $CONFIG_STATUS <<EOF |
1e487827 | 20530 | |
698dcdb6 VZ |
20531 | # Protect against being on the right side of a sed subst in config.status. |
20532 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
20533 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
20534 | $ac_vpsub | |
20535 | $extrasub | |
20536 | s%@SHELL@%$SHELL%g | |
20537 | s%@CFLAGS@%$CFLAGS%g | |
20538 | s%@CPPFLAGS@%$CPPFLAGS%g | |
20539 | s%@CXXFLAGS@%$CXXFLAGS%g | |
20540 | s%@FFLAGS@%$FFLAGS%g | |
20541 | s%@DEFS@%$DEFS%g | |
20542 | s%@LDFLAGS@%$LDFLAGS%g | |
20543 | s%@LIBS@%$LIBS%g | |
20544 | s%@exec_prefix@%$exec_prefix%g | |
20545 | s%@prefix@%$prefix%g | |
20546 | s%@program_transform_name@%$program_transform_name%g | |
20547 | s%@bindir@%$bindir%g | |
20548 | s%@sbindir@%$sbindir%g | |
20549 | s%@libexecdir@%$libexecdir%g | |
20550 | s%@datadir@%$datadir%g | |
20551 | s%@sysconfdir@%$sysconfdir%g | |
20552 | s%@sharedstatedir@%$sharedstatedir%g | |
20553 | s%@localstatedir@%$localstatedir%g | |
20554 | s%@libdir@%$libdir%g | |
20555 | s%@includedir@%$includedir%g | |
20556 | s%@oldincludedir@%$oldincludedir%g | |
20557 | s%@infodir@%$infodir%g | |
20558 | s%@mandir@%$mandir%g | |
20559 | s%@host@%$host%g | |
20560 | s%@host_alias@%$host_alias%g | |
20561 | s%@host_cpu@%$host_cpu%g | |
20562 | s%@host_vendor@%$host_vendor%g | |
20563 | s%@host_os@%$host_os%g | |
20564 | s%@target@%$target%g | |
20565 | s%@target_alias@%$target_alias%g | |
20566 | s%@target_cpu@%$target_cpu%g | |
20567 | s%@target_vendor@%$target_vendor%g | |
20568 | s%@target_os@%$target_os%g | |
20569 | s%@build@%$build%g | |
20570 | s%@build_alias@%$build_alias%g | |
20571 | s%@build_cpu@%$build_cpu%g | |
20572 | s%@build_vendor@%$build_vendor%g | |
20573 | s%@build_os@%$build_os%g | |
20574 | s%@CC@%$CC%g | |
20575 | s%@CPP@%$CPP%g | |
20576 | s%@CXX@%$CXX%g | |
698dcdb6 VZ |
20577 | s%@RANLIB@%$RANLIB%g |
20578 | s%@AR@%$AR%g | |
20579 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
d6853540 | 20580 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
6054113a | 20581 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
698dcdb6 | 20582 | s%@STRIP@%$STRIP%g |
613d0995 | 20583 | s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g |
698dcdb6 VZ |
20584 | s%@YACC@%$YACC%g |
20585 | s%@LEX@%$LEX%g | |
20586 | s%@LEXLIB@%$LEXLIB%g | |
20587 | s%@LN_S@%$LN_S%g | |
20588 | s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g | |
698dcdb6 VZ |
20589 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g |
20590 | s%@GTK_LIBS@%$GTK_LIBS%g | |
8168de4c | 20591 | s%@GTK_CONFIG@%$GTK_CONFIG%g |
698dcdb6 VZ |
20592 | s%@X_CFLAGS@%$X_CFLAGS%g |
20593 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
20594 | s%@X_LIBS@%$X_LIBS%g | |
20595 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
3a922bb4 | 20596 | s%@RESCOMP@%$RESCOMP%g |
698dcdb6 | 20597 | s%@DEREZ@%$DEREZ%g |
3a922bb4 | 20598 | s%@CXXCPP@%$CXXCPP%g |
b040e242 | 20599 | s%@LIBICONV@%$LIBICONV%g |
698dcdb6 VZ |
20600 | s%@LEX_STEM@%$LEX_STEM%g |
20601 | s%@PATH_IFS@%$PATH_IFS%g | |
20602 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g | |
20603 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
20604 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
698dcdb6 VZ |
20605 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g |
20606 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
77e13408 | 20607 | s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g |
698dcdb6 VZ |
20608 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g |
20609 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
20610 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
698dcdb6 | 20611 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g |
698dcdb6 VZ |
20612 | s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g |
20613 | s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g | |
698dcdb6 VZ |
20614 | s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g |
20615 | s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g | |
20616 | s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g | |
698dcdb6 VZ |
20617 | s%@WX_ALL@%$WX_ALL%g |
20618 | s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g | |
20619 | s%@SHARED_LD@%$SHARED_LD%g | |
20620 | s%@PIC_FLAG@%$PIC_FLAG%g | |
698dcdb6 VZ |
20621 | s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g |
20622 | s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g | |
3a922bb4 RL |
20623 | s%@SONAME_FLAGS@%$SONAME_FLAGS%g |
20624 | s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g | |
698dcdb6 VZ |
20625 | s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g |
20626 | s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g | |
20627 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g | |
20628 | s%@USE_GUI@%$USE_GUI%g | |
20629 | s%@AFMINSTALL@%$AFMINSTALL%g | |
20630 | s%@TOOLKIT@%$TOOLKIT%g | |
698dcdb6 | 20631 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g |
1e6feb95 | 20632 | s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g |
3a922bb4 RL |
20633 | s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g |
20634 | s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g | |
00c81359 | 20635 | s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g |
3a922bb4 RL |
20636 | s%@cross_compiling@%$cross_compiling%g |
20637 | s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g | |
20638 | s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g | |
885d4bf5 VS |
20639 | s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g |
20640 | s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g | |
698dcdb6 VZ |
20641 | s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g |
20642 | s%@ALL_OBJECTS@%$ALL_OBJECTS%g | |
9b695262 VZ |
20643 | s%@ALL_HEADERS@%$ALL_HEADERS%g |
20644 | s%@ALL_SOURCES@%$ALL_SOURCES%g | |
698dcdb6 VZ |
20645 | s%@GUIDIST@%$GUIDIST%g |
20646 | s%@PORT_FILES@%$PORT_FILES%g | |
20647 | s%@DISTDIR@%$DISTDIR%g | |
698dcdb6 | 20648 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g |
62d0491b | 20649 | s%@LDFLAGS_GL@%$LDFLAGS_GL%g |
698dcdb6 | 20650 | s%@OPENGL_LIBS@%$OPENGL_LIBS%g |
3d63bc3a | 20651 | s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g |
698dcdb6 | 20652 | s%@EXTRADEFS@%$EXTRADEFS%g |
698dcdb6 | 20653 | s%@RESFLAGS@%$RESFLAGS%g |
3a922bb4 | 20654 | s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g |
d08b457b | 20655 | s%@WX_RESOURCES_MACOSX@%$WX_RESOURCES_MACOSX%g |
e23081de | 20656 | s%@WX_RESOURCES_MACOSX_COMPILED@%$WX_RESOURCES_MACOSX_COMPILED%g |
698dcdb6 VZ |
20657 | s%@LIBWXMACRES@%$LIBWXMACRES%g |
20658 | s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g | |
2baaf735 | 20659 | s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g |
698dcdb6 VZ |
20660 | s%@DLLTOOL@%$DLLTOOL%g |
20661 | s%@AS@%$AS%g | |
20662 | s%@NM@%$NM%g | |
20663 | s%@LD@%$LD%g | |
20664 | s%@MAKEINFO@%$MAKEINFO%g | |
885d4bf5 | 20665 | s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g |
698dcdb6 VZ |
20666 | s%@SET_MAKE@%$SET_MAKE%g |
20667 | s%@subdirs@%$subdirs%g | |
1e487827 | 20668 | |
1e487827 | 20669 | CEOF |
1e487827 VS |
20670 | EOF |
20671 | ||
698dcdb6 VZ |
20672 | cat >> $CONFIG_STATUS <<\EOF |
20673 | ||
20674 | # Split the substitutions into bite-sized pieces for seds with | |
20675 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
20676 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
20677 | ac_file=1 # Number of current file. | |
20678 | ac_beg=1 # First line for current file. | |
20679 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
20680 | ac_more_lines=: | |
20681 | ac_sed_cmds="" | |
20682 | while $ac_more_lines; do | |
20683 | if test $ac_beg -gt 1; then | |
20684 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
20685 | else | |
20686 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
20687 | fi | |
20688 | if test ! -s conftest.s$ac_file; then | |
20689 | ac_more_lines=false | |
20690 | rm -f conftest.s$ac_file | |
20691 | else | |
20692 | if test -z "$ac_sed_cmds"; then | |
20693 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
10f2d63a | 20694 | else |
698dcdb6 | 20695 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
10f2d63a | 20696 | fi |
698dcdb6 VZ |
20697 | ac_file=`expr $ac_file + 1` |
20698 | ac_beg=$ac_end | |
20699 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
10f2d63a | 20700 | fi |
698dcdb6 VZ |
20701 | done |
20702 | if test -z "$ac_sed_cmds"; then | |
20703 | ac_sed_cmds=cat | |
20704 | fi | |
20705 | EOF | |
10f2d63a | 20706 | |
698dcdb6 VZ |
20707 | cat >> $CONFIG_STATUS <<EOF |
20708 | ||
20709 | CONFIG_FILES=\${CONFIG_FILES-"wx-config | |
20710 | src/make.env | |
20711 | src/makeprog.env | |
20712 | src/makelib.env | |
20713 | Makefile | |
20714 | "} | |
10f2d63a | 20715 | EOF |
698dcdb6 VZ |
20716 | cat >> $CONFIG_STATUS <<\EOF |
20717 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
10f2d63a | 20718 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
698dcdb6 VZ |
20719 | case "$ac_file" in |
20720 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
20721 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
20722 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
20723 | esac |
20724 | ||
698dcdb6 | 20725 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
1e487827 | 20726 | |
698dcdb6 VZ |
20727 | # Remove last slash and all that follows it. Not all systems have dirname. |
20728 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
20729 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
20730 | # The file is in a subdirectory. | |
20731 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
20732 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
10f2d63a | 20733 | # A "../" for each directory in $ac_dir_suffix. |
698dcdb6 | 20734 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
10f2d63a VZ |
20735 | else |
20736 | ac_dir_suffix= ac_dots= | |
20737 | fi | |
20738 | ||
698dcdb6 VZ |
20739 | case "$ac_given_srcdir" in |
20740 | .) srcdir=. | |
20741 | if test -z "$ac_dots"; then top_srcdir=. | |
20742 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
20743 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
10f2d63a | 20744 | *) # Relative path. |
698dcdb6 VZ |
20745 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
20746 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
10f2d63a VZ |
20747 | esac |
20748 | ||
698dcdb6 VZ |
20749 | case "$ac_given_INSTALL" in |
20750 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
20751 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
10f2d63a VZ |
20752 | esac |
20753 | ||
698dcdb6 VZ |
20754 | echo creating "$ac_file" |
20755 | rm -f "$ac_file" | |
20756 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
20757 | case "$ac_file" in | |
20758 | *Makefile*) ac_comsub="1i\\ | |
20759 | # $configure_input" ;; | |
20760 | *) ac_comsub= ;; | |
20761 | esac | |
10f2d63a | 20762 | |
698dcdb6 VZ |
20763 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
20764 | sed -e "$ac_comsub | |
20765 | s%@configure_input@%$configure_input%g | |
20766 | s%@srcdir@%$srcdir%g | |
20767 | s%@top_srcdir@%$top_srcdir%g | |
20768 | s%@INSTALL@%$INSTALL%g | |
20769 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
20770 | fi; done | |
20771 | rm -f conftest.s* | |
10f2d63a VZ |
20772 | |
20773 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
20774 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
20775 | # | |
20776 | # ac_d sets the value in "#define NAME VALUE" lines. | |
698dcdb6 VZ |
20777 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
20778 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
20779 | ac_dC='\3' | |
20780 | ac_dD='%g' | |
20781 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
20782 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
20783 | ac_uB='\([ ]\)%\1#\2define\3' | |
10f2d63a | 20784 | ac_uC=' ' |
698dcdb6 VZ |
20785 | ac_uD='\4%g' |
20786 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
20787 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
20788 | ac_eB='$%\1#\2define\3' | |
20789 | ac_eC=' ' | |
20790 | ac_eD='%g' | |
10f2d63a | 20791 | |
698dcdb6 VZ |
20792 | if test "${CONFIG_HEADERS+set}" != set; then |
20793 | EOF | |
20794 | cat >> $CONFIG_STATUS <<EOF | |
20795 | CONFIG_HEADERS="setup.h:setup.h.in" | |
20796 | EOF | |
20797 | cat >> $CONFIG_STATUS <<\EOF | |
20798 | fi | |
20799 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
10f2d63a | 20800 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
698dcdb6 VZ |
20801 | case "$ac_file" in |
20802 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
20803 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
20804 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
20805 | esac |
20806 | ||
698dcdb6 VZ |
20807 | echo creating $ac_file |
20808 | ||
20809 | rm -f conftest.frag conftest.in conftest.out | |
20810 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
20811 | cat $ac_file_inputs > conftest.in | |
20812 | ||
20813 | EOF | |
20814 | ||
20815 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
20816 | # the proper values into config.h.in to produce config.h. And first: | |
20817 | # Protect against being on the right side of a sed subst in config.status. | |
20818 | # Protect against being in an unquoted here document in config.status. | |
20819 | rm -f conftest.vals | |
20820 | cat > conftest.hdr <<\EOF | |
20821 | s/[\\&%]/\\&/g | |
20822 | s%[\\$`]%\\&%g | |
20823 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
20824 | s%ac_d%ac_u%gp | |
20825 | s%ac_u%ac_e%gp | |
20826 | EOF | |
20827 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
20828 | rm -f conftest.hdr | |
10f2d63a VZ |
20829 | |
20830 | # This sed command replaces #undef with comments. This is necessary, for | |
20831 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
20832 | # on some systems where configure will not decide to define it. | |
698dcdb6 VZ |
20833 | cat >> conftest.vals <<\EOF |
20834 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
10f2d63a VZ |
20835 | EOF |
20836 | ||
698dcdb6 VZ |
20837 | # Break up conftest.vals because some shells have a limit on |
20838 | # the size of here documents, and old seds have small limits too. | |
10f2d63a VZ |
20839 | |
20840 | rm -f conftest.tail | |
698dcdb6 | 20841 | while : |
10f2d63a | 20842 | do |
698dcdb6 VZ |
20843 | ac_lines=`grep -c . conftest.vals` |
20844 | # grep -c gives empty output for an empty file on some AIX systems. | |
20845 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
20846 | # Write a limited-size here document to conftest.frag. | |
20847 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
20848 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
10f2d63a | 20849 | echo 'CEOF |
698dcdb6 VZ |
20850 | sed -f conftest.frag conftest.in > conftest.out |
20851 | rm -f conftest.in | |
20852 | mv conftest.out conftest.in | |
20853 | ' >> $CONFIG_STATUS | |
20854 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
20855 | rm -f conftest.vals | |
20856 | mv conftest.tail conftest.vals | |
10f2d63a | 20857 | done |
698dcdb6 VZ |
20858 | rm -f conftest.vals |
20859 | ||
20860 | cat >> $CONFIG_STATUS <<\EOF | |
20861 | rm -f conftest.frag conftest.h | |
20862 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
20863 | cat conftest.in >> conftest.h | |
20864 | rm -f conftest.in | |
20865 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
20866 | echo "$ac_file is unchanged" | |
20867 | rm -f conftest.h | |
10f2d63a | 20868 | else |
698dcdb6 VZ |
20869 | # Remove last slash and all that follows it. Not all systems have dirname. |
20870 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
10f2d63a | 20871 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
698dcdb6 VZ |
20872 | # The file is in a subdirectory. |
20873 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
10f2d63a | 20874 | fi |
698dcdb6 VZ |
20875 | rm -f $ac_file |
20876 | mv conftest.h $ac_file | |
10f2d63a | 20877 | fi |
698dcdb6 VZ |
20878 | fi; done |
20879 | ||
10f2d63a | 20880 | EOF |
698dcdb6 | 20881 | cat >> $CONFIG_STATUS <<EOF |
10f2d63a | 20882 | |
3a922bb4 | 20883 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}" |
698dcdb6 VZ |
20884 | LN_S="${LN_S}" |
20885 | ||
20886 | ||
20887 | EOF | |
20888 | cat >> $CONFIG_STATUS <<\EOF | |
10f2d63a | 20889 | |
652d930d | 20890 | if test ! -h wx-config; then |
991a5759 | 20891 | chmod +x wx-config |
3a922bb4 RL |
20892 | mv wx-config wx${TOOLCHAIN_NAME}-config |
20893 | ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config | |
991a5759 | 20894 | fi |
665bbe97 | 20895 | |
00cf1208 RR |
20896 | if test ! -d lib; then |
20897 | mkdir lib | |
20898 | fi | |
20899 | if test ! -d lib/wx; then | |
20900 | mkdir lib/wx | |
20901 | fi | |
20902 | if test ! -d lib/wx/include; then | |
20903 | mkdir lib/wx/include | |
20904 | fi | |
3a922bb4 RL |
20905 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then |
20906 | mkdir lib/wx/include/${TOOLCHAIN_NAME} | |
00cf1208 | 20907 | fi |
3a922bb4 RL |
20908 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then |
20909 | mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx | |
00cf1208 RR |
20910 | fi |
20911 | if test -f setup.h; then | |
3a922bb4 | 20912 | mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h |
00cf1208 | 20913 | fi |
698dcdb6 VZ |
20914 | |
20915 | exit 0 | |
10f2d63a VZ |
20916 | EOF |
20917 | chmod +x $CONFIG_STATUS | |
698dcdb6 VZ |
20918 | rm -fr confdefs* $ac_clean_files |
20919 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
10f2d63a | 20920 | |
2224580a VZ |
20921 | if test "$no_recursion" != yes; then |
20922 | ||
20923 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
20924 | ac_sub_configure_args= | |
20925 | ac_prev= | |
20926 | for ac_arg in $ac_configure_args; do | |
20927 | if test -n "$ac_prev"; then | |
20928 | ac_prev= | |
20929 | continue | |
20930 | fi | |
698dcdb6 | 20931 | case "$ac_arg" in |
2224580a VZ |
20932 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
20933 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
20934 | ac_prev=cache_file ;; | |
20935 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
698dcdb6 | 20936 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
2224580a VZ |
20937 | ;; |
20938 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
20939 | ac_prev=srcdir ;; | |
20940 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
20941 | ;; | |
20942 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
20943 | esac | |
20944 | done | |
20945 | ||
698dcdb6 | 20946 | for ac_config_dir in demos samples utils contrib; do |
2224580a VZ |
20947 | |
20948 | # Do not complain, so a configure script can configure whichever | |
20949 | # parts of a large source tree are present. | |
698dcdb6 VZ |
20950 | if test ! -d $srcdir/$ac_config_dir; then |
20951 | continue | |
20952 | fi | |
20953 | ||
20954 | echo configuring in $ac_config_dir | |
2224580a | 20955 | |
698dcdb6 | 20956 | case "$srcdir" in |
2224580a VZ |
20957 | .) ;; |
20958 | *) | |
698dcdb6 VZ |
20959 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; |
20960 | else | |
20961 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
20962 | fi | |
20963 | ;; | |
2224580a VZ |
20964 | esac |
20965 | ||
20966 | ac_popdir=`pwd` | |
698dcdb6 | 20967 | cd $ac_config_dir |
2224580a | 20968 | |
698dcdb6 VZ |
20969 | # A "../" for each directory in /$ac_config_dir. |
20970 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
2224580a | 20971 | |
698dcdb6 | 20972 | case "$srcdir" in |
2224580a VZ |
20973 | .) # No --srcdir option. We are building in place. |
20974 | ac_sub_srcdir=$srcdir ;; | |
698dcdb6 VZ |
20975 | /*) # Absolute path. |
20976 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
2224580a | 20977 | *) # Relative path. |
698dcdb6 | 20978 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; |
2224580a VZ |
20979 | esac |
20980 | ||
20981 | # Check for guested configure; otherwise get Cygnus style configure. | |
698dcdb6 VZ |
20982 | if test -f $ac_sub_srcdir/configure; then |
20983 | ac_sub_configure=$ac_sub_srcdir/configure | |
2224580a VZ |
20984 | elif test -f $ac_sub_srcdir/configure.in; then |
20985 | ac_sub_configure=$ac_configure | |
20986 | else | |
698dcdb6 | 20987 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 |
2224580a VZ |
20988 | ac_sub_configure= |
20989 | fi | |
20990 | ||
20991 | # The recursion is here. | |
20992 | if test -n "$ac_sub_configure"; then | |
698dcdb6 | 20993 | |
2224580a | 20994 | # Make the cache file name correct relative to the subdirectory. |
698dcdb6 VZ |
20995 | case "$cache_file" in |
20996 | /*) ac_sub_cache_file=$cache_file ;; | |
2224580a | 20997 | *) # Relative path. |
698dcdb6 | 20998 | ac_sub_cache_file="$ac_dots$cache_file" ;; |
2224580a | 20999 | esac |
698dcdb6 VZ |
21000 | case "$ac_given_INSTALL" in |
21001 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
21002 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
21003 | esac | |
2224580a | 21004 | |
698dcdb6 | 21005 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" |
2224580a | 21006 | # The eval makes quoting arguments work. |
698dcdb6 VZ |
21007 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir |
21008 | then : | |
21009 | else | |
21010 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
21011 | fi | |
2224580a VZ |
21012 | fi |
21013 | ||
21014 | cd $ac_popdir | |
21015 | done | |
21016 | fi | |
21017 | ||
698dcdb6 | 21018 |