]>
Commit | Line | Data |
---|---|---|
10f2d63a VZ |
1 | #! /bin/sh |
2 | ||
698dcdb6 | 3 | # From configure.in Id: configure.in |
703e0a69 VZ |
4 | |
5 | ||
6 | ||
7 | ||
90dd450c VZ |
8 | |
9 | ||
10 | ||
11 | ||
12 | ||
13 | ||
14 | ||
15 | ||
703e0a69 | 16 | |
703e0a69 VZ |
17 | |
18 | ||
1e487827 | 19 | |
1e487827 | 20 | |
698dcdb6 VZ |
21 | |
22 | ||
23 | ||
24 | ||
25 | ||
26 | ||
27 | ||
28 | ||
29 | ||
30 | ||
31 | ||
32 | ||
33 | ||
34 | ||
35 | ||
36 | ||
37 | ||
38 | ||
39 | ||
40 | ||
41 | ||
42 | ||
43 | ||
44 | ||
45 | ||
46 | ||
47 | ||
48 | ||
b040e242 VS |
49 | |
50 | ||
51 | ||
b040e242 VS |
52 | |
53 | ||
54 | ||
55 | ||
9e691f46 VZ |
56 | # Configure paths for GTK+ |
57 | # Owen Taylor 1997-2001 | |
b040e242 VS |
58 | |
59 | ||
60 | ||
61 | # Configure paths for GTK+ | |
62 | # Owen Taylor 97-11-3 | |
698dcdb6 | 63 | |
698dcdb6 VZ |
64 | |
65 | ||
66 | # Guess values for system-dependent variables and create Makefiles. | |
67 | # Generated automatically using autoconf version 2.13 | |
68 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. | |
69 | # | |
70 | # This configure script is free software; the Free Software Foundation | |
71 | # gives unlimited permission to copy, distribute and modify it. | |
72 | ||
73 | # Defaults: | |
74 | ac_help= | |
75 | ac_default_prefix=/usr/local | |
76 | # Any additions from configure.in: | |
77 | ac_help="$ac_help | |
8168de4c | 78 | --enable-gui use GUI classes" |
1e6feb95 | 79 | ac_help="$ac_help |
8168de4c | 80 | --enable-universal use wxWindows GUI controls instead of native ones" |
698dcdb6 VZ |
81 | ac_help="$ac_help |
82 | --with-gtk use GTK+" | |
83 | ac_help="$ac_help | |
84 | --with-motif use Motif/Lesstif" | |
85 | ac_help="$ac_help | |
86 | --with-mac use Mac OS X" | |
87 | ac_help="$ac_help | |
88 | --with-wine use WINE" | |
89 | ac_help="$ac_help | |
77e13408 | 90 | --with-msw use MS-Windows" |
698dcdb6 VZ |
91 | ac_help="$ac_help |
92 | --with-pm use OS/2 Presentation Manager" | |
1e6feb95 | 93 | ac_help="$ac_help |
b3e8d00a | 94 | --with-mgl use SciTech MGL" |
1725144d RR |
95 | ac_help="$ac_help |
96 | --with-microwin use MicroWindows" | |
f79bd02d JS |
97 | ac_help="$ac_help |
98 | --with-x11 use X11" | |
d8356fa3 VZ |
99 | ac_help="$ac_help |
100 | --enable-nanox use NanoX" | |
698dcdb6 | 101 | ac_help="$ac_help |
8168de4c | 102 | --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)" |
698dcdb6 | 103 | ac_help="$ac_help |
8168de4c | 104 | --with-libpng use libpng (PNG image format)" |
698dcdb6 | 105 | ac_help="$ac_help |
8168de4c | 106 | --with-libjpeg use libjpeg (JPEG file format)" |
698dcdb6 | 107 | ac_help="$ac_help |
8168de4c | 108 | --with-libtiff use libtiff (TIFF file format)" |
698dcdb6 | 109 | ac_help="$ac_help |
8168de4c | 110 | --with-opengl use OpenGL (or Mesa)" |
698dcdb6 | 111 | ac_help="$ac_help |
d0e9b150 | 112 | --with-dmalloc use dmalloc library (http://dmalloc.com/)" |
3e44f09d VZ |
113 | ac_help="$ac_help |
114 | --with-regex enable support for wxRegEx class" | |
698dcdb6 | 115 | ac_help="$ac_help |
8168de4c | 116 | --with-zlib use zlib for LZW compression" |
698dcdb6 | 117 | ac_help="$ac_help |
8168de4c | 118 | --with-odbc use the IODBC and wxODBC classes" |
698dcdb6 | 119 | ac_help="$ac_help |
8168de4c | 120 | --enable-shared create shared library code" |
698dcdb6 | 121 | ac_help="$ac_help |
3a922bb4 | 122 | --enable-soname set the DT_SONAME field in ELF shared libraries" |
698dcdb6 | 123 | ac_help="$ac_help |
8168de4c | 124 | --enable-optimise create optimised code" |
698dcdb6 | 125 | ac_help="$ac_help |
8168de4c | 126 | --enable-debug same as debug_flag and debug_info" |
683dccda GD |
127 | ac_help="$ac_help |
128 | --enable-precomp enable use of precompiled headers (Mac OS X)" | |
698dcdb6 | 129 | ac_help="$ac_help |
8168de4c | 130 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)" |
698dcdb6 | 131 | ac_help="$ac_help |
8168de4c | 132 | --enable-debug_info create code with debugging information" |
698dcdb6 | 133 | ac_help="$ac_help |
8168de4c | 134 | --enable-debug_gdb create code with extra GDB debugging information" |
698dcdb6 | 135 | ac_help="$ac_help |
8168de4c | 136 | --enable-debug_cntxt use wxDebugContext" |
698dcdb6 | 137 | ac_help="$ac_help |
8168de4c | 138 | --enable-mem_tracing create code with memory tracing" |
698dcdb6 | 139 | ac_help="$ac_help |
8168de4c | 140 | --enable-profile create code with profiling information" |
698dcdb6 | 141 | ac_help="$ac_help |
8168de4c | 142 | --enable-no_rtti create code without RTTI information" |
698dcdb6 | 143 | ac_help="$ac_help |
b3e8d00a | 144 | --enable-no_exceptions create code without C++ exceptions handling" |
698dcdb6 | 145 | ac_help="$ac_help |
8168de4c | 146 | --enable-permissive compile code disregarding strict ANSI" |
698dcdb6 | 147 | ac_help="$ac_help |
8168de4c | 148 | --enable-no_deps create code without dependency information" |
54276ccf | 149 | ac_help="$ac_help |
b3e8d00a | 150 | --enable-compat20 enable wxWindows 2.0 compatibility" |
54276ccf | 151 | ac_help="$ac_help |
0c9a1c32 | 152 | --disable-compat22 disable wxWindows 2.2 compatibility" |
698dcdb6 | 153 | ac_help="$ac_help |
8168de4c | 154 | --enable-intl use internationalization system" |
698dcdb6 | 155 | ac_help="$ac_help |
8168de4c | 156 | --enable-config use wxConfig (and derived) classes" |
a1622950 VZ |
157 | ac_help="$ac_help |
158 | --enable-protocols use wxProtocol and derived classes" | |
159 | ac_help="$ac_help | |
160 | --enable-ftp use wxFTP (requires wxProtocol" | |
161 | ac_help="$ac_help | |
162 | --enable-http use wxHTTP (requires wxProtocol" | |
163 | ac_help="$ac_help | |
164 | --enable-fileproto use wxFileProto class (requires wxProtocol" | |
698dcdb6 | 165 | ac_help="$ac_help |
8168de4c | 166 | --enable-sockets use socket/network classes" |
698dcdb6 | 167 | ac_help="$ac_help |
8168de4c | 168 | --enable-ipc use interprocess communication (wxSocket etc.)" |
698dcdb6 | 169 | ac_help="$ac_help |
8168de4c | 170 | --enable-cmdline use wxCmdLineParser class" |
1e6feb95 | 171 | ac_help="$ac_help |
8168de4c | 172 | --enable-datetime use wxDateTime class" |
1e6feb95 | 173 | ac_help="$ac_help |
8168de4c | 174 | --enable-timedate use obsolete wxDate/wxTime classes" |
1e6feb95 | 175 | ac_help="$ac_help |
8168de4c | 176 | --enable-stopwatch use wxStopWatch class" |
1e6feb95 | 177 | ac_help="$ac_help |
8168de4c | 178 | --enable-dialupman use dialup network classes" |
698dcdb6 | 179 | ac_help="$ac_help |
8168de4c | 180 | --enable-apple_ieee use the Apple IEEE codec" |
698dcdb6 | 181 | ac_help="$ac_help |
8168de4c | 182 | --enable-timer use wxTimer class" |
698dcdb6 | 183 | ac_help="$ac_help |
8168de4c | 184 | --enable-wave use wxWave class" |
698dcdb6 | 185 | ac_help="$ac_help |
8168de4c | 186 | --enable-fraction use wxFraction class" |
698dcdb6 | 187 | ac_help="$ac_help |
8168de4c | 188 | --enable-dynlib use wxLibrary class for DLL loading" |
0b9ab0bd RL |
189 | ac_help="$ac_help |
190 | --enable-dynamicloader use (new) wxDynamicLibrary class" | |
698dcdb6 | 191 | ac_help="$ac_help |
8168de4c | 192 | --enable-longlong use wxLongLong class" |
698dcdb6 | 193 | ac_help="$ac_help |
8168de4c | 194 | --enable-geometry use geometry class" |
698dcdb6 | 195 | ac_help="$ac_help |
8168de4c | 196 | --enable-log use logging system" |
698dcdb6 | 197 | ac_help="$ac_help |
8168de4c | 198 | --enable-streams use wxStream etc classes" |
698dcdb6 | 199 | ac_help="$ac_help |
8168de4c | 200 | --enable-file use wxFile classes" |
698dcdb6 | 201 | ac_help="$ac_help |
8168de4c | 202 | --enable-ffile use wxFFile classes" |
1e6feb95 | 203 | ac_help="$ac_help |
a3a584a7 VZ |
204 | --enable-textbuf use wxTextBuffer class" |
205 | ac_help="$ac_help | |
206 | --enable-textfile use wxTextFile class" | |
698dcdb6 | 207 | ac_help="$ac_help |
8168de4c | 208 | --enable-fontmap use font encodings conversion classes" |
1e6feb95 | 209 | ac_help="$ac_help |
8168de4c | 210 | --enable-unicode compile wxString with Unicode support" |
a72a4bfa VS |
211 | ac_help="$ac_help |
212 | --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)" | |
698dcdb6 | 213 | ac_help="$ac_help |
8168de4c | 214 | --enable-wxprintfv use wxWindows implementation of vprintf()" |
698dcdb6 | 215 | ac_help="$ac_help |
8168de4c | 216 | --enable-std_iostreams use standard C++ stream classes" |
698dcdb6 | 217 | ac_help="$ac_help |
8168de4c | 218 | --enable-filesystem use virtual file systems classes" |
698dcdb6 | 219 | ac_help="$ac_help |
8168de4c | 220 | --enable-fs_inet use virtual HTTP/FTP filesystems" |
698dcdb6 | 221 | ac_help="$ac_help |
8168de4c | 222 | --enable-fs_zip use virtual ZIP filesystems" |
698dcdb6 | 223 | ac_help="$ac_help |
8168de4c | 224 | --enable-zipstream use wxZipInputStream" |
698dcdb6 | 225 | ac_help="$ac_help |
8168de4c | 226 | --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException" |
698dcdb6 | 227 | ac_help="$ac_help |
8168de4c | 228 | --enable-snglinst use wxSingleInstanceChecker class" |
698dcdb6 | 229 | ac_help="$ac_help |
69d27ff7 | 230 | --enable-mimetype use wxMimeTypesManager" |
3e44f09d | 231 | ac_help="$ac_help |
b3e8d00a | 232 | --enable-sysoptions use wxSystemOptions" |
4cdb0ab0 VS |
233 | ac_help="$ac_help |
234 | --enable-url use wxURL class" | |
235 | ac_help="$ac_help | |
236 | --enable-protocol use wxProtocol class" | |
237 | ac_help="$ac_help | |
238 | --enable-protocol-http HTTP support in wxProtocol" | |
239 | ac_help="$ac_help | |
240 | --enable-protocol-ftp FTP support in wxProtocol" | |
241 | ac_help="$ac_help | |
242 | --enable-protocol-file FILE support in wxProtocol" | |
1e6feb95 | 243 | ac_help="$ac_help |
8168de4c | 244 | --enable-threads use threads" |
698dcdb6 | 245 | ac_help="$ac_help |
8168de4c | 246 | --enable-docview use document view architecture" |
698dcdb6 | 247 | ac_help="$ac_help |
3379ed37 | 248 | --enable-help use help subsystem" |
29fd3c0c VS |
249 | ac_help="$ac_help |
250 | --enable-mshtmlhelp use MS HTML Help (win32)" | |
3379ed37 VZ |
251 | ac_help="$ac_help |
252 | --enable-html use wxHTML sub-library" | |
253 | ac_help="$ac_help | |
254 | --enable-htmlhelp use wxHTML-based help" | |
698dcdb6 | 255 | ac_help="$ac_help |
8168de4c | 256 | --enable-constraints use layout-constraints system" |
698dcdb6 | 257 | ac_help="$ac_help |
8168de4c | 258 | --enable-printarch use printing architecture" |
698dcdb6 | 259 | ac_help="$ac_help |
8168de4c | 260 | --enable-mdi use multiple document interface architecture" |
698dcdb6 | 261 | ac_help="$ac_help |
8168de4c | 262 | --enable-loggui use standard GUI logger" |
1e6feb95 | 263 | ac_help="$ac_help |
8168de4c | 264 | --enable-logwin use wxLogWindow" |
69d27ff7 MB |
265 | ac_help="$ac_help |
266 | --enable-logdialog use wxLogDialog" | |
1e6feb95 | 267 | ac_help="$ac_help |
8168de4c | 268 | --enable-postscript use wxPostscriptDC device context (default for gtk+)" |
698dcdb6 | 269 | ac_help="$ac_help |
8168de4c | 270 | --enable-prologio use Prolog IO library" |
698dcdb6 | 271 | ac_help="$ac_help |
8168de4c | 272 | --enable-resources use wxWindows resources" |
698dcdb6 | 273 | ac_help="$ac_help |
8168de4c | 274 | --enable-xresources use X resources for save (default for gtk+)" |
698dcdb6 | 275 | ac_help="$ac_help |
8168de4c | 276 | --enable-clipboard use wxClipboard classes" |
698dcdb6 | 277 | ac_help="$ac_help |
8168de4c | 278 | --enable-dnd use Drag'n'Drop classes" |
698dcdb6 | 279 | ac_help="$ac_help |
8168de4c | 280 | --enable-metafile use win32 metafiles" |
698dcdb6 | 281 | ac_help="$ac_help |
24176f2c | 282 | --enable-treelayout use wxTreeLayout classes" |
698dcdb6 | 283 | ac_help="$ac_help |
8168de4c | 284 | --enable-controls use all usual controls" |
698dcdb6 | 285 | ac_help="$ac_help |
8168de4c | 286 | --enable-accel use accelerators" |
698dcdb6 | 287 | ac_help="$ac_help |
8168de4c | 288 | --enable-button use wxButton class" |
698dcdb6 | 289 | ac_help="$ac_help |
8168de4c | 290 | --enable-bmpbutton use wxBitmapButton class" |
698dcdb6 | 291 | ac_help="$ac_help |
8168de4c | 292 | --enable-calendar use wxCalendarCtrl class" |
1e6feb95 | 293 | ac_help="$ac_help |
8168de4c | 294 | --enable-caret use wxCaret class" |
1e6feb95 | 295 | ac_help="$ac_help |
8168de4c | 296 | --enable-checkbox use wxCheckBox class" |
698dcdb6 | 297 | ac_help="$ac_help |
8168de4c | 298 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class" |
698dcdb6 | 299 | ac_help="$ac_help |
8168de4c | 300 | --enable-choice use wxChoice class" |
698dcdb6 | 301 | ac_help="$ac_help |
8168de4c | 302 | --enable-combobox use wxComboBox classes" |
698dcdb6 | 303 | ac_help="$ac_help |
8168de4c | 304 | --enable-gauge use wxGauge class" |
698dcdb6 | 305 | ac_help="$ac_help |
8168de4c | 306 | --enable-grid use wxGrid class" |
698dcdb6 | 307 | ac_help="$ac_help |
8168de4c | 308 | --enable-newgrid use new wxGrid class" |
698dcdb6 | 309 | ac_help="$ac_help |
8168de4c | 310 | --enable-imaglist use wxImageList class" |
698dcdb6 | 311 | ac_help="$ac_help |
8168de4c | 312 | --enable-listbox use wxListBox class" |
698dcdb6 | 313 | ac_help="$ac_help |
8168de4c | 314 | --enable-listctrl use wxListCtrl class" |
698dcdb6 | 315 | ac_help="$ac_help |
8168de4c | 316 | --enable-notebook use wxNotebook class" |
24176f2c GD |
317 | ac_help="$ac_help |
318 | --enable-propsheet use wxPropertySheet class" | |
698dcdb6 | 319 | ac_help="$ac_help |
8168de4c | 320 | --enable-radiobox use wxRadioBox class" |
698dcdb6 | 321 | ac_help="$ac_help |
8168de4c | 322 | --enable-radiobtn use wxRadioButton class" |
698dcdb6 | 323 | ac_help="$ac_help |
8168de4c | 324 | --enable-sash use wxSashWindow class" |
698dcdb6 | 325 | ac_help="$ac_help |
8168de4c | 326 | --enable-scrollbar use wxScrollBar class and scrollable windows" |
698dcdb6 | 327 | ac_help="$ac_help |
8168de4c | 328 | --enable-slider use wxSlider class" |
698dcdb6 | 329 | ac_help="$ac_help |
8168de4c | 330 | --enable-spinbtn use wxSpinButton class" |
698dcdb6 | 331 | ac_help="$ac_help |
8168de4c | 332 | --enable-spinctrl use wxSpinCtrl class" |
698dcdb6 | 333 | ac_help="$ac_help |
8168de4c | 334 | --enable-splitter use wxSplitterWindow class" |
698dcdb6 | 335 | ac_help="$ac_help |
8168de4c | 336 | --enable-statbmp use wxStaticBitmap class" |
698dcdb6 | 337 | ac_help="$ac_help |
8168de4c | 338 | --enable-statbox use wxStaticBox class" |
698dcdb6 | 339 | ac_help="$ac_help |
8168de4c | 340 | --enable-statline use wxStaticLine class" |
698dcdb6 | 341 | ac_help="$ac_help |
8168de4c | 342 | --enable-stattext use wxStaticText class" |
1e6feb95 | 343 | ac_help="$ac_help |
8168de4c | 344 | --enable-statusbar use wxStatusBar class" |
698dcdb6 | 345 | ac_help="$ac_help |
8168de4c | 346 | --enable-tabdialog use wxTabControl class" |
698dcdb6 | 347 | ac_help="$ac_help |
8168de4c | 348 | --enable-textctrl use wxTextCtrl class" |
1e6feb95 | 349 | ac_help="$ac_help |
8168de4c | 350 | --enable-togglebtn use wxToggleButton class" |
698dcdb6 | 351 | ac_help="$ac_help |
8168de4c | 352 | --enable-toolbar use wxToolBar class" |
698dcdb6 | 353 | ac_help="$ac_help |
8168de4c | 354 | --enable-tbarnative use native wxToolBar class" |
698dcdb6 | 355 | ac_help="$ac_help |
8168de4c | 356 | --enable-tbarsmpl use wxToolBarSimple class" |
698dcdb6 | 357 | ac_help="$ac_help |
8168de4c | 358 | --enable-treectrl use wxTreeCtrl class" |
9926e4a4 VZ |
359 | ac_help="$ac_help |
360 | --enable-tipwindow use wxTipWindow class" | |
9f41d601 RR |
361 | ac_help="$ac_help |
362 | --enable-popupwin use wxPopUpWindow class" | |
698dcdb6 | 363 | ac_help="$ac_help |
b3e8d00a | 364 | --enable-commondlg use all common dialogs" |
698dcdb6 | 365 | ac_help="$ac_help |
8168de4c | 366 | --enable-choicedlg use wxChoiceDialog" |
1e6feb95 | 367 | ac_help="$ac_help |
8168de4c | 368 | --enable-coldlg use wxColourDialog" |
1e6feb95 | 369 | ac_help="$ac_help |
8168de4c | 370 | --enable-filedlg use wxFileDialog" |
8db37e06 VZ |
371 | ac_help="$ac_help |
372 | --enable-finddlg use wxFindReplaceDialog" | |
1e6feb95 | 373 | ac_help="$ac_help |
8168de4c | 374 | --enable-fontdlg use wxFontDialog" |
1e6feb95 | 375 | ac_help="$ac_help |
8168de4c | 376 | --enable-dirdlg use wxDirDialog" |
698dcdb6 | 377 | ac_help="$ac_help |
8168de4c | 378 | --enable-msgdlg use wxMessageDialog" |
1e6feb95 | 379 | ac_help="$ac_help |
8168de4c | 380 | --enable-numberdlg use wxNumberEntryDialog" |
cbca9943 VZ |
381 | ac_help="$ac_help |
382 | --enable-splash use wxSplashScreen" | |
1e6feb95 | 383 | ac_help="$ac_help |
8168de4c | 384 | --enable-textdlg use wxTextDialog" |
698dcdb6 | 385 | ac_help="$ac_help |
8168de4c | 386 | --enable-tipdlg use startup tips" |
698dcdb6 | 387 | ac_help="$ac_help |
8168de4c | 388 | --enable-progressdlg use wxProgressDialog" |
b1f5d087 VZ |
389 | ac_help="$ac_help |
390 | --enable-wizarddlg use wxWizard" | |
698dcdb6 | 391 | ac_help="$ac_help |
8168de4c | 392 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes" |
1e6feb95 | 393 | ac_help="$ac_help |
8168de4c | 394 | --enable-miniframe use wxMiniFrame class" |
698dcdb6 | 395 | ac_help="$ac_help |
8168de4c | 396 | --enable-tooltips use wxToolTip class" |
698dcdb6 | 397 | ac_help="$ac_help |
8168de4c | 398 | --enable-splines use spline drawing code" |
698dcdb6 | 399 | ac_help="$ac_help |
8168de4c | 400 | --enable-validators use wxValidator and derived classes" |
698dcdb6 | 401 | ac_help="$ac_help |
8168de4c | 402 | --enable-busyinfo use wxBusyInfo" |
698dcdb6 | 403 | ac_help="$ac_help |
b3e8d00a | 404 | --enable-joystick use wxJoystick (Linux only)" |
698dcdb6 | 405 | ac_help="$ac_help |
8168de4c | 406 | --enable-metafiles use wxMetaFile (Windows only)" |
24fd6d87 VZ |
407 | ac_help="$ac_help |
408 | --enable-dragimage use wxDragImage" | |
edae8572 VZ |
409 | ac_help="$ac_help |
410 | --enable-palette use wxPalette class" | |
1e6feb95 | 411 | ac_help="$ac_help |
8168de4c | 412 | --enable-image use wxImage class" |
698dcdb6 | 413 | ac_help="$ac_help |
8168de4c | 414 | --enable-gif use gif images (GIF file format)" |
698dcdb6 | 415 | ac_help="$ac_help |
8168de4c | 416 | --enable-pcx use pcx images (PCX file format)" |
4b6b4dfc RR |
417 | ac_help="$ac_help |
418 | --enable-iff use iff images (IFF file format)" | |
698dcdb6 | 419 | ac_help="$ac_help |
8168de4c | 420 | --enable-pnm use pnm images (PNM file format)" |
698dcdb6 | 421 | ac_help="$ac_help |
8168de4c | 422 | --enable-xpm use xpm images (XPM file format)" |
658974ae VS |
423 | ac_help="$ac_help |
424 | --enable-icocur use Windows ICO and CUR formats" | |
90dd450c VZ |
425 | ac_help="$ac_help |
426 | --disable-largefile omit support for large files" | |
698dcdb6 | 427 | ac_help="$ac_help |
9e691f46 | 428 | --disable-gtktest do not try to compile and run a test GTK+ program" |
3f345b47 VZ |
429 | ac_help="$ac_help |
430 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
431 | ac_help="$ac_help | |
432 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
433 | ac_help="$ac_help | |
434 | --disable-gtktest Do not try to compile and run a test GTK program" | |
435 | ac_help="$ac_help | |
436 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
437 | ac_help="$ac_help | |
438 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
439 | ac_help="$ac_help | |
440 | --disable-gtktest Do not try to compile and run a test GTK program" | |
698dcdb6 VZ |
441 | ac_help="$ac_help |
442 | --with-x use the X Window System" | |
b040e242 VS |
443 | ac_help="$ac_help |
444 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib" | |
10f2d63a VZ |
445 | |
446 | # Initialize some variables set by options. | |
447 | # The variables have the same names as the options, with | |
448 | # dashes changed to underlines. | |
698dcdb6 VZ |
449 | build=NONE |
450 | cache_file=./config.cache | |
10f2d63a | 451 | exec_prefix=NONE |
698dcdb6 | 452 | host=NONE |
10f2d63a | 453 | no_create= |
698dcdb6 | 454 | nonopt=NONE |
10f2d63a VZ |
455 | no_recursion= |
456 | prefix=NONE | |
457 | program_prefix=NONE | |
458 | program_suffix=NONE | |
459 | program_transform_name=s,x,x, | |
460 | silent= | |
461 | site= | |
462 | srcdir= | |
698dcdb6 | 463 | target=NONE |
10f2d63a VZ |
464 | verbose= |
465 | x_includes=NONE | |
466 | x_libraries=NONE | |
467 | bindir='${exec_prefix}/bin' | |
468 | sbindir='${exec_prefix}/sbin' | |
469 | libexecdir='${exec_prefix}/libexec' | |
470 | datadir='${prefix}/share' | |
471 | sysconfdir='${prefix}/etc' | |
472 | sharedstatedir='${prefix}/com' | |
473 | localstatedir='${prefix}/var' | |
474 | libdir='${exec_prefix}/lib' | |
475 | includedir='${prefix}/include' | |
476 | oldincludedir='/usr/include' | |
477 | infodir='${prefix}/info' | |
478 | mandir='${prefix}/man' | |
479 | ||
698dcdb6 VZ |
480 | # Initialize some other variables. |
481 | subdirs= | |
482 | MFLAGS= MAKEFLAGS= | |
483 | SHELL=${CONFIG_SHELL-/bin/sh} | |
484 | # Maximum number of lines to put in a shell here document. | |
485 | ac_max_here_lines=12 | |
10f2d63a VZ |
486 | |
487 | ac_prev= | |
488 | for ac_option | |
489 | do | |
698dcdb6 | 490 | |
10f2d63a VZ |
491 | # If the previous option needs an argument, assign it. |
492 | if test -n "$ac_prev"; then | |
493 | eval "$ac_prev=\$ac_option" | |
494 | ac_prev= | |
495 | continue | |
496 | fi | |
497 | ||
698dcdb6 VZ |
498 | case "$ac_option" in |
499 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
500 | *) ac_optarg= ;; | |
501 | esac | |
10f2d63a VZ |
502 | |
503 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
504 | ||
698dcdb6 | 505 | case "$ac_option" in |
10f2d63a VZ |
506 | |
507 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
508 | ac_prev=bindir ;; | |
509 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
698dcdb6 | 510 | bindir="$ac_optarg" ;; |
10f2d63a VZ |
511 | |
512 | -build | --build | --buil | --bui | --bu) | |
698dcdb6 | 513 | ac_prev=build ;; |
10f2d63a | 514 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
698dcdb6 | 515 | build="$ac_optarg" ;; |
10f2d63a VZ |
516 | |
517 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
518 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
519 | ac_prev=cache_file ;; | |
520 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
521 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
698dcdb6 | 522 | cache_file="$ac_optarg" ;; |
10f2d63a VZ |
523 | |
524 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
525 | ac_prev=datadir ;; | |
526 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
527 | | --da=*) | |
698dcdb6 | 528 | datadir="$ac_optarg" ;; |
10f2d63a VZ |
529 | |
530 | -disable-* | --disable-*) | |
698dcdb6 | 531 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
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 | eval "enable_${ac_feature}=no" ;; | |
10f2d63a VZ |
538 | |
539 | -enable-* | --enable-*) | |
698dcdb6 | 540 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
10f2d63a | 541 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
542 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
543 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
544 | fi | |
545 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
546 | case "$ac_option" in | |
547 | *=*) ;; | |
10f2d63a VZ |
548 | *) ac_optarg=yes ;; |
549 | esac | |
698dcdb6 | 550 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
10f2d63a VZ |
551 | |
552 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
553 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
554 | | --exec | --exe | --ex) | |
555 | ac_prev=exec_prefix ;; | |
556 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
557 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
558 | | --exec=* | --exe=* | --ex=*) | |
698dcdb6 | 559 | exec_prefix="$ac_optarg" ;; |
10f2d63a VZ |
560 | |
561 | -gas | --gas | --ga | --g) | |
562 | # Obsolete; use --with-gas. | |
563 | with_gas=yes ;; | |
564 | ||
698dcdb6 VZ |
565 | -help | --help | --hel | --he) |
566 | # Omit some internal or obsolete options to make the list less imposing. | |
567 | # This message is too long to be a string in the A/UX 3.1 sh. | |
568 | cat << EOF | |
569 | Usage: configure [options] [host] | |
570 | Options: [defaults in brackets after descriptions] | |
571 | Configuration: | |
572 | --cache-file=FILE cache test results in FILE | |
573 | --help print this message | |
574 | --no-create do not create output files | |
575 | --quiet, --silent do not print \`checking...' messages | |
576 | --version print the version of autoconf that created configure | |
577 | Directory and file names: | |
578 | --prefix=PREFIX install architecture-independent files in PREFIX | |
579 | [$ac_default_prefix] | |
580 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
581 | [same as prefix] | |
582 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
583 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
584 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
585 | --datadir=DIR read-only architecture-independent data in DIR | |
586 | [PREFIX/share] | |
587 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
588 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
589 | [PREFIX/com] | |
590 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
591 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
592 | --includedir=DIR C header files in DIR [PREFIX/include] | |
593 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
594 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
595 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
596 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
597 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
598 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
599 | --program-transform-name=PROGRAM | |
600 | run sed PROGRAM on installed program names | |
601 | EOF | |
602 | cat << EOF | |
603 | Host type: | |
604 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
605 | --host=HOST configure for HOST [guessed] | |
606 | --target=TARGET configure for TARGET [TARGET=HOST] | |
607 | Features and packages: | |
608 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
609 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
610 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
611 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
612 | --x-includes=DIR X include files are in DIR | |
613 | --x-libraries=DIR X library files are in DIR | |
614 | EOF | |
615 | if test -n "$ac_help"; then | |
616 | echo "--enable and --with options recognized:$ac_help" | |
617 | fi | |
618 | exit 0 ;; | |
10f2d63a VZ |
619 | |
620 | -host | --host | --hos | --ho) | |
698dcdb6 | 621 | ac_prev=host ;; |
10f2d63a | 622 | -host=* | --host=* | --hos=* | --ho=*) |
698dcdb6 | 623 | host="$ac_optarg" ;; |
10f2d63a VZ |
624 | |
625 | -includedir | --includedir | --includedi | --included | --include \ | |
626 | | --includ | --inclu | --incl | --inc) | |
627 | ac_prev=includedir ;; | |
628 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
629 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
698dcdb6 | 630 | includedir="$ac_optarg" ;; |
10f2d63a VZ |
631 | |
632 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
633 | ac_prev=infodir ;; | |
634 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
698dcdb6 | 635 | infodir="$ac_optarg" ;; |
10f2d63a VZ |
636 | |
637 | -libdir | --libdir | --libdi | --libd) | |
638 | ac_prev=libdir ;; | |
639 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
698dcdb6 | 640 | libdir="$ac_optarg" ;; |
10f2d63a VZ |
641 | |
642 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
643 | | --libexe | --libex | --libe) | |
644 | ac_prev=libexecdir ;; | |
645 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
646 | | --libexe=* | --libex=* | --libe=*) | |
698dcdb6 | 647 | libexecdir="$ac_optarg" ;; |
10f2d63a VZ |
648 | |
649 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
650 | | --localstate | --localstat | --localsta | --localst \ | |
651 | | --locals | --local | --loca | --loc | --lo) | |
652 | ac_prev=localstatedir ;; | |
653 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
654 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
655 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
698dcdb6 | 656 | localstatedir="$ac_optarg" ;; |
10f2d63a VZ |
657 | |
658 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
659 | ac_prev=mandir ;; | |
660 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
698dcdb6 | 661 | mandir="$ac_optarg" ;; |
10f2d63a VZ |
662 | |
663 | -nfp | --nfp | --nf) | |
664 | # Obsolete; use --without-fp. | |
665 | with_fp=no ;; | |
666 | ||
667 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
668 | | --no-cr | --no-c) | |
669 | no_create=yes ;; | |
670 | ||
671 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
672 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
673 | no_recursion=yes ;; | |
674 | ||
675 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
676 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
677 | | --oldin | --oldi | --old | --ol | --o) | |
678 | ac_prev=oldincludedir ;; | |
679 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
680 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
681 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
698dcdb6 | 682 | oldincludedir="$ac_optarg" ;; |
10f2d63a VZ |
683 | |
684 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
685 | ac_prev=prefix ;; | |
686 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
698dcdb6 | 687 | prefix="$ac_optarg" ;; |
10f2d63a VZ |
688 | |
689 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
690 | | --program-pre | --program-pr | --program-p) | |
691 | ac_prev=program_prefix ;; | |
692 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
693 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
698dcdb6 | 694 | program_prefix="$ac_optarg" ;; |
10f2d63a VZ |
695 | |
696 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
697 | | --program-suf | --program-su | --program-s) | |
698 | ac_prev=program_suffix ;; | |
699 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
700 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
698dcdb6 | 701 | program_suffix="$ac_optarg" ;; |
10f2d63a VZ |
702 | |
703 | -program-transform-name | --program-transform-name \ | |
704 | | --program-transform-nam | --program-transform-na \ | |
705 | | --program-transform-n | --program-transform- \ | |
706 | | --program-transform | --program-transfor \ | |
707 | | --program-transfo | --program-transf \ | |
708 | | --program-trans | --program-tran \ | |
709 | | --progr-tra | --program-tr | --program-t) | |
710 | ac_prev=program_transform_name ;; | |
711 | -program-transform-name=* | --program-transform-name=* \ | |
712 | | --program-transform-nam=* | --program-transform-na=* \ | |
713 | | --program-transform-n=* | --program-transform-=* \ | |
714 | | --program-transform=* | --program-transfor=* \ | |
715 | | --program-transfo=* | --program-transf=* \ | |
716 | | --program-trans=* | --program-tran=* \ | |
717 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
698dcdb6 | 718 | program_transform_name="$ac_optarg" ;; |
10f2d63a VZ |
719 | |
720 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
721 | | -silent | --silent | --silen | --sile | --sil) | |
722 | silent=yes ;; | |
723 | ||
724 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
725 | ac_prev=sbindir ;; | |
726 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
727 | | --sbi=* | --sb=*) | |
698dcdb6 | 728 | sbindir="$ac_optarg" ;; |
10f2d63a VZ |
729 | |
730 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
731 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
732 | | --sharedst | --shareds | --shared | --share | --shar \ | |
733 | | --sha | --sh) | |
734 | ac_prev=sharedstatedir ;; | |
735 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
736 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
737 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
738 | | --sha=* | --sh=*) | |
698dcdb6 | 739 | sharedstatedir="$ac_optarg" ;; |
10f2d63a VZ |
740 | |
741 | -site | --site | --sit) | |
742 | ac_prev=site ;; | |
743 | -site=* | --site=* | --sit=*) | |
698dcdb6 | 744 | site="$ac_optarg" ;; |
10f2d63a VZ |
745 | |
746 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
747 | ac_prev=srcdir ;; | |
748 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
698dcdb6 | 749 | srcdir="$ac_optarg" ;; |
10f2d63a VZ |
750 | |
751 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
752 | | --syscon | --sysco | --sysc | --sys | --sy) | |
753 | ac_prev=sysconfdir ;; | |
754 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
755 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
698dcdb6 | 756 | sysconfdir="$ac_optarg" ;; |
10f2d63a VZ |
757 | |
758 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
698dcdb6 | 759 | ac_prev=target ;; |
10f2d63a | 760 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
698dcdb6 | 761 | target="$ac_optarg" ;; |
10f2d63a VZ |
762 | |
763 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
764 | verbose=yes ;; | |
765 | ||
698dcdb6 VZ |
766 | -version | --version | --versio | --versi | --vers) |
767 | echo "configure generated by autoconf version 2.13" | |
768 | exit 0 ;; | |
10f2d63a VZ |
769 | |
770 | -with-* | --with-*) | |
698dcdb6 | 771 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
10f2d63a | 772 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
773 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
774 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
775 | fi | |
10f2d63a | 776 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
698dcdb6 VZ |
777 | case "$ac_option" in |
778 | *=*) ;; | |
10f2d63a VZ |
779 | *) ac_optarg=yes ;; |
780 | esac | |
698dcdb6 | 781 | eval "with_${ac_package}='$ac_optarg'" ;; |
10f2d63a VZ |
782 | |
783 | -without-* | --without-*) | |
698dcdb6 | 784 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
10f2d63a | 785 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
786 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
787 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
788 | fi | |
789 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
790 | eval "with_${ac_package}=no" ;; | |
10f2d63a VZ |
791 | |
792 | --x) | |
793 | # Obsolete; use --with-x. | |
794 | with_x=yes ;; | |
795 | ||
796 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
797 | | --x-incl | --x-inc | --x-in | --x-i) | |
798 | ac_prev=x_includes ;; | |
799 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
800 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
698dcdb6 | 801 | x_includes="$ac_optarg" ;; |
10f2d63a VZ |
802 | |
803 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
804 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
805 | ac_prev=x_libraries ;; | |
806 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
807 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
698dcdb6 | 808 | x_libraries="$ac_optarg" ;; |
10f2d63a | 809 | |
698dcdb6 | 810 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
10f2d63a VZ |
811 | ;; |
812 | ||
813 | *) | |
698dcdb6 VZ |
814 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
815 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
816 | fi | |
817 | if test "x$nonopt" != xNONE; then | |
818 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
819 | fi | |
820 | nonopt="$ac_option" | |
10f2d63a VZ |
821 | ;; |
822 | ||
823 | esac | |
824 | done | |
825 | ||
826 | if test -n "$ac_prev"; then | |
698dcdb6 VZ |
827 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
828 | fi | |
829 | ||
830 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
831 | ||
832 | # File descriptor usage: | |
833 | # 0 standard input | |
834 | # 1 file creation | |
835 | # 2 errors and warnings | |
836 | # 3 some systems may open it to /dev/tty | |
837 | # 4 used on the Kubota Titan | |
838 | # 6 checking for... messages and results | |
839 | # 5 compiler messages saved in config.log | |
840 | if test "$silent" = yes; then | |
841 | exec 6>/dev/null | |
842 | else | |
843 | exec 6>&1 | |
10f2d63a | 844 | fi |
698dcdb6 VZ |
845 | exec 5>./config.log |
846 | ||
847 | echo "\ | |
848 | This file contains any messages produced by compilers while | |
849 | running configure, to aid debugging if configure makes a mistake. | |
850 | " 1>&5 | |
10f2d63a | 851 | |
698dcdb6 VZ |
852 | # Strip out --no-create and --no-recursion so they do not pile up. |
853 | # Also quote any args containing shell metacharacters. | |
854 | ac_configure_args= | |
855 | for ac_arg | |
10f2d63a | 856 | do |
698dcdb6 VZ |
857 | case "$ac_arg" in |
858 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
859 | | --no-cr | --no-c) ;; | |
860 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
861 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
862 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
863 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
864 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
10f2d63a VZ |
865 | esac |
866 | done | |
867 | ||
698dcdb6 VZ |
868 | # NLS nuisances. |
869 | # Only set these to C if already set. These must not be set unconditionally | |
870 | # because not all systems understand e.g. LANG=C (notably SCO). | |
871 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
872 | # Non-C LC_CTYPE values break the ctype check. | |
873 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
874 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
875 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
876 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
10f2d63a | 877 | |
698dcdb6 VZ |
878 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
879 | rm -rf conftest* confdefs.h | |
880 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
881 | echo > confdefs.h | |
10f2d63a | 882 | |
698dcdb6 VZ |
883 | # A filename unique to this package, relative to the directory that |
884 | # configure is in, which we can look for to find out if srcdir is correct. | |
885 | ac_unique_file=wx-config.in | |
10f2d63a VZ |
886 | |
887 | # Find the source files, if location was not specified. | |
888 | if test -z "$srcdir"; then | |
889 | ac_srcdir_defaulted=yes | |
890 | # Try the directory containing this script, then its parent. | |
891 | ac_prog=$0 | |
698dcdb6 | 892 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
10f2d63a VZ |
893 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
894 | srcdir=$ac_confdir | |
895 | if test ! -r $srcdir/$ac_unique_file; then | |
896 | srcdir=.. | |
897 | fi | |
898 | else | |
899 | ac_srcdir_defaulted=no | |
900 | fi | |
901 | if test ! -r $srcdir/$ac_unique_file; then | |
902 | if test "$ac_srcdir_defaulted" = yes; then | |
698dcdb6 | 903 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
10f2d63a | 904 | else |
698dcdb6 | 905 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
10f2d63a VZ |
906 | fi |
907 | fi | |
698dcdb6 | 908 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
10f2d63a VZ |
909 | |
910 | # Prefer explicitly selected file to automatically selected ones. | |
911 | if test -z "$CONFIG_SITE"; then | |
912 | if test "x$prefix" != xNONE; then | |
913 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
914 | else | |
915 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
916 | fi | |
917 | fi | |
918 | for ac_site_file in $CONFIG_SITE; do | |
919 | if test -r "$ac_site_file"; then | |
698dcdb6 | 920 | echo "loading site script $ac_site_file" |
10f2d63a VZ |
921 | . "$ac_site_file" |
922 | fi | |
923 | done | |
924 | ||
925 | if test -r "$cache_file"; then | |
698dcdb6 VZ |
926 | echo "loading cache $cache_file" |
927 | . $cache_file | |
10f2d63a | 928 | else |
698dcdb6 VZ |
929 | echo "creating cache $cache_file" |
930 | > $cache_file | |
10f2d63a VZ |
931 | fi |
932 | ||
933 | ac_ext=c | |
698dcdb6 | 934 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 935 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
936 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
937 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
938 | cross_compiling=$ac_cv_prog_cc_cross | |
939 | ||
940 | ac_exeext= | |
941 | ac_objext=o | |
942 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
943 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
944 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
945 | ac_n= ac_c=' | |
946 | ' ac_t=' ' | |
947 | else | |
948 | ac_n=-n ac_c= ac_t= | |
949 | fi | |
10f2d63a | 950 | else |
698dcdb6 | 951 | ac_n= ac_c='\c' ac_t= |
10f2d63a | 952 | fi |
698dcdb6 VZ |
953 | |
954 | ||
10f2d63a | 955 | |
7c66a493 VZ |
956 | ac_aux_dir= |
957 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
958 | if test -f $ac_dir/install-sh; then | |
959 | ac_aux_dir=$ac_dir | |
960 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
961 | break | |
962 | elif test -f $ac_dir/install.sh; then | |
963 | ac_aux_dir=$ac_dir | |
964 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
965 | break | |
966 | fi | |
967 | done | |
968 | if test -z "$ac_aux_dir"; then | |
698dcdb6 | 969 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
7c66a493 | 970 | fi |
698dcdb6 VZ |
971 | ac_config_guess=$ac_aux_dir/config.guess |
972 | ac_config_sub=$ac_aux_dir/config.sub | |
973 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
703e0a69 | 974 | |
698dcdb6 VZ |
975 | |
976 | # Do some error checking and defaulting for the host and target type. | |
977 | # The inputs are: | |
978 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
979 | # | |
980 | # The rules are: | |
981 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
982 | # same time. | |
983 | # 2. Host defaults to nonopt. | |
984 | # 3. If nonopt is not specified, then host defaults to the current host, | |
985 | # as determined by config.guess. | |
986 | # 4. Target and build default to nonopt. | |
987 | # 5. If nonopt is not specified, then target and build default to host. | |
7c66a493 VZ |
988 | |
989 | # The aliases save the names the user supplied, while $host etc. | |
990 | # will get canonicalized. | |
698dcdb6 VZ |
991 | case $host---$target---$nonopt in |
992 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
993 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
994 | esac | |
995 | ||
996 | ||
997 | # Make sure we can run config.sub. | |
998 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
999 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
1000 | fi | |
1001 | ||
1002 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
9e691f46 | 1003 | echo "configure:1004: checking host system type" >&5 |
698dcdb6 VZ |
1004 | |
1005 | host_alias=$host | |
1006 | case "$host_alias" in | |
1007 | NONE) | |
1008 | case $nonopt in | |
1009 | NONE) | |
1010 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
1011 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
1012 | fi ;; | |
1013 | *) host_alias=$nonopt ;; | |
1014 | esac ;; | |
1015 | esac | |
1016 | ||
1017 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
1018 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1019 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1020 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1021 | echo "$ac_t""$host" 1>&6 | |
1022 | ||
1023 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
9e691f46 | 1024 | echo "configure:1025: checking target system type" >&5 |
698dcdb6 VZ |
1025 | |
1026 | target_alias=$target | |
1027 | case "$target_alias" in | |
1028 | NONE) | |
1029 | case $nonopt in | |
1030 | NONE) target_alias=$host_alias ;; | |
1031 | *) target_alias=$nonopt ;; | |
1032 | esac ;; | |
1033 | esac | |
1034 | ||
1035 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
1036 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1037 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1038 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1039 | echo "$ac_t""$target" 1>&6 | |
1040 | ||
1041 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
9e691f46 | 1042 | echo "configure:1043: checking build system type" >&5 |
698dcdb6 VZ |
1043 | |
1044 | build_alias=$build | |
1045 | case "$build_alias" in | |
1046 | NONE) | |
1047 | case $nonopt in | |
1048 | NONE) build_alias=$host_alias ;; | |
1049 | *) build_alias=$nonopt ;; | |
1050 | esac ;; | |
1051 | esac | |
1052 | ||
1053 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
1054 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1055 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1056 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1057 | echo "$ac_t""$build" 1>&6 | |
1058 | ||
1059 | test "$host_alias" != "$target_alias" && | |
7c66a493 VZ |
1060 | test "$program_prefix$program_suffix$program_transform_name" = \ |
1061 | NONENONEs,x,x, && | |
1062 | program_prefix=${target_alias}- | |
1063 | ||
698dcdb6 VZ |
1064 | |
1065 | ||
10f2d63a | 1066 | WX_MAJOR_VERSION_NUMBER=2 |
37d403aa | 1067 | WX_MINOR_VERSION_NUMBER=3 |
a0d927d1 | 1068 | WX_RELEASE_NUMBER=3 |
10f2d63a | 1069 | |
10f2d63a | 1070 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER |
10f2d63a | 1071 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER |
6426998c | 1072 | |
978f1259 RL |
1073 | WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER |
1074 | ||
a0d927d1 | 1075 | WX_CURRENT=2 |
6426998c RL |
1076 | WX_REVISION=0 |
1077 | WX_AGE=0 | |
1078 | ||
698dcdb6 VZ |
1079 | |
1080 | ||
10f2d63a VZ |
1081 | USE_UNIX=1 |
1082 | USE_WIN32=0 | |
f9bc1684 | 1083 | USE_DOS=0 |
b12915c1 | 1084 | USE_BEOS=0 |
1216f52d | 1085 | USE_MAC=0 |
b12915c1 | 1086 | |
10f2d63a VZ |
1087 | USE_LINUX= |
1088 | USE_SGI= | |
1089 | USE_HPUX= | |
1090 | USE_SYSV= | |
1091 | USE_SVR4= | |
1092 | USE_AIX= | |
1093 | USE_SUN= | |
1094 | USE_SOLARIS= | |
1095 | USE_SUNOS= | |
1096 | USE_ALPHA= | |
1097 | USE_OSF= | |
1098 | USE_BSD= | |
f11bdd03 | 1099 | USE_DARWIN= |
10f2d63a | 1100 | USE_FREEBSD= |
95c8801c | 1101 | USE_OPENBSD= |
f6bcfd97 | 1102 | USE_NETBSD= |
10f2d63a VZ |
1103 | USE_VMS= |
1104 | USE_ULTRIX= | |
10f2d63a VZ |
1105 | USE_DATA_GENERAL= |
1106 | ||
ab9b9eab VZ |
1107 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
1108 | ||
f79bd02d | 1109 | ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE X11" |
10f2d63a VZ |
1110 | |
1111 | DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1112 | DEFAULT_wxUSE_MAC=0 |
1113 | DEFAULT_wxUSE_MGL=0 | |
1725144d | 1114 | DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1115 | DEFAULT_wxUSE_MOTIF=0 |
1116 | DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1117 | DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1118 | DEFAULT_wxUSE_WINE=0 |
f79bd02d | 1119 | DEFAULT_wxUSE_X11=0 |
10f2d63a VZ |
1120 | |
1121 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1122 | DEFAULT_DEFAULT_wxUSE_MAC=0 |
1123 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1725144d | 1124 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1125 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 |
1126 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1127 | DEFAULT_DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1128 | DEFAULT_DEFAULT_wxUSE_WINE=0 |
f79bd02d | 1129 | DEFAULT_DEFAULT_wxUSE_X11=0 |
10f2d63a | 1130 | |
d6a55c4b | 1131 | PROGRAM_EXT= |
3a922bb4 | 1132 | SO_SUFFIX=so |
d6a55c4b | 1133 | |
10f2d63a VZ |
1134 | case "${host}" in |
1135 | *-hp-hpux* ) | |
1136 | USE_HPUX=1 | |
1137 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1138 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
3a922bb4 | 1139 | SO_SUFFIX=sl |
698dcdb6 | 1140 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1141 | #define __HPUX__ 1 |
1142 | EOF | |
1143 | ||
1144 | ;; | |
1145 | *-*-linux* ) | |
1146 | USE_LINUX=1 | |
698dcdb6 | 1147 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1148 | #define __LINUX__ 1 |
1149 | EOF | |
1150 | ||
1151 | TMP=`uname -m` | |
1152 | if test "x$TMP" = "xalpha"; then | |
1153 | USE_ALPHA=1 | |
698dcdb6 | 1154 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1155 | #define __ALPHA__ 1 |
1156 | EOF | |
1157 | ||
1158 | fi | |
1159 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1160 | ;; | |
1161 | *-*-irix5* | *-*-irix6* ) | |
1162 | USE_SGI=1 | |
1163 | USE_SVR4=1 | |
698dcdb6 | 1164 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1165 | #define __SGI__ 1 |
1166 | EOF | |
1167 | ||
698dcdb6 | 1168 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1169 | #define __SVR4__ 1 |
1170 | EOF | |
1171 | ||
1172 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1173 | ;; | |
1174 | *-*-solaris2* ) | |
1175 | USE_SUN=1 | |
1176 | USE_SOLARIS=1 | |
1177 | USE_SVR4=1 | |
698dcdb6 | 1178 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1179 | #define __SUN__ 1 |
1180 | EOF | |
1181 | ||
698dcdb6 | 1182 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1183 | #define __SOLARIS__ 1 |
1184 | EOF | |
1185 | ||
698dcdb6 | 1186 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1187 | #define __SVR4__ 1 |
1188 | EOF | |
1189 | ||
1190 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1191 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1192 | ;; |
1193 | *-*-sunos4* ) | |
1194 | USE_SUN=1 | |
1195 | USE_SUNOS=1 | |
1196 | USE_BSD=1 | |
698dcdb6 | 1197 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1198 | #define __SUN__ 1 |
1199 | EOF | |
1200 | ||
698dcdb6 | 1201 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1202 | #define __SUNOS__ 1 |
1203 | EOF | |
1204 | ||
698dcdb6 | 1205 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1206 | #define __BSD__ 1 |
1207 | EOF | |
1208 | ||
1209 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1210 | ;; | |
f6bcfd97 | 1211 | *-*-freebsd*) |
10f2d63a VZ |
1212 | USE_BSD=1 |
1213 | USE_FREEBSD=1 | |
698dcdb6 | 1214 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1215 | #define __FREEBSD__ 1 |
1216 | EOF | |
1217 | ||
698dcdb6 | 1218 | cat >> confdefs.h <<\EOF |
10f2d63a | 1219 | #define __BSD__ 1 |
95c8801c VS |
1220 | EOF |
1221 | ||
1222 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1223 | ;; | |
1224 | *-*-openbsd*) | |
1225 | USE_BSD=1 | |
1226 | USE_OPENBSD=1 | |
698dcdb6 | 1227 | cat >> confdefs.h <<\EOF |
95c8801c VS |
1228 | #define __FREEBSD__ 1 |
1229 | EOF | |
1230 | ||
698dcdb6 | 1231 | cat >> confdefs.h <<\EOF |
95c8801c | 1232 | #define __OPENBSD__ 1 |
f6bcfd97 BP |
1233 | EOF |
1234 | ||
1235 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1236 | ;; | |
1237 | *-*-netbsd*) | |
1238 | USE_BSD=1 | |
1239 | USE_NETBSD=1 | |
698dcdb6 | 1240 | cat >> confdefs.h <<\EOF |
f6bcfd97 BP |
1241 | #define __FREEBSD__ 1 |
1242 | EOF | |
1243 | ||
698dcdb6 | 1244 | cat >> confdefs.h <<\EOF |
f6bcfd97 | 1245 | #define __NETBSD__ 1 |
10f2d63a VZ |
1246 | EOF |
1247 | ||
1248 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1249 | ;; | |
1250 | *-*-osf* ) | |
1251 | USE_ALPHA=1 | |
1252 | USE_OSF=1 | |
698dcdb6 | 1253 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1254 | #define __ALPHA__ 1 |
1255 | EOF | |
1256 | ||
698dcdb6 | 1257 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1258 | #define __OSF__ 1 |
1259 | EOF | |
1260 | ||
1261 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1262 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1263 | ;; |
1264 | *-*-dgux5* ) | |
1265 | USE_ALPHA=1 | |
1266 | USE_SVR4=1 | |
698dcdb6 | 1267 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1268 | #define __ALPHA__ 1 |
1269 | EOF | |
1270 | ||
698dcdb6 | 1271 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1272 | #define __SVR4__ 1 |
1273 | EOF | |
1274 | ||
1275 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1276 | ;; | |
1277 | *-*-sysv5* ) | |
1278 | USE_SYSV=1 | |
1279 | USE_SVR4=1 | |
698dcdb6 | 1280 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1281 | #define __SYSV__ 1 |
1282 | EOF | |
1283 | ||
698dcdb6 | 1284 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1285 | #define __SVR4__ 1 |
1286 | EOF | |
1287 | ||
1288 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1289 | ;; | |
1290 | *-*-aix* ) | |
1291 | USE_AIX=1 | |
1292 | USE_SYSV=1 | |
1293 | USE_SVR4=1 | |
698dcdb6 | 1294 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1295 | #define __AIX__ 1 |
1296 | EOF | |
1297 | ||
698dcdb6 | 1298 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1299 | #define __SYSV__ 1 |
1300 | EOF | |
1301 | ||
698dcdb6 | 1302 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1303 | #define __SVR4__ 1 |
1304 | EOF | |
1305 | ||
1306 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1307 | ;; | |
1308 | ||
1c8183e2 | 1309 | *-*-cygwin* | *-*-mingw32* ) |
10f2d63a VZ |
1310 | USE_UNIX=0 |
1311 | USE_WIN32=1 | |
3a922bb4 | 1312 | SO_SUFFIX=dll |
698dcdb6 | 1313 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1314 | #define __WIN32__ 1 |
1315 | EOF | |
1316 | ||
698dcdb6 | 1317 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1318 | #define __WIN95__ 1 |
1319 | EOF | |
1320 | ||
698dcdb6 | 1321 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1322 | #define __WINDOWS__ 1 |
1323 | EOF | |
1324 | ||
698dcdb6 | 1325 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1326 | #define __GNUWIN32__ 1 |
1327 | EOF | |
1328 | ||
698dcdb6 | 1329 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1330 | #define STRICT 1 |
1331 | EOF | |
1332 | ||
698dcdb6 | 1333 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1334 | #define WINVER 0x0400 |
1335 | EOF | |
1336 | ||
cf27ef00 | 1337 | PROGRAM_EXT=".exe" |
7b7a7637 | 1338 | RESCOMP=windres |
10f2d63a VZ |
1339 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1340 | ;; | |
1341 | ||
f9bc1684 VS |
1342 | *-pc-msdosdjgpp ) |
1343 | USE_UNIX=0 | |
1344 | USE_DOS=1 | |
1345 | cat >> confdefs.h <<\EOF | |
1346 | #define __DOS__ 1 | |
1347 | EOF | |
1348 | ||
1349 | PROGRAM_EXT=".exe" | |
1350 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
f9bc1684 VS |
1351 | ;; |
1352 | ||
6fa882bd | 1353 | *-pc-os2_emx | *-pc-os2-emx ) |
698dcdb6 | 1354 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1355 | #define __EMX__ 1 |
1356 | EOF | |
1357 | ||
cf27ef00 | 1358 | PROGRAM_EXT=".exe" |
e07802fc | 1359 | DEFAULT_DEFAULT_wxUSE_PM=1 |
d558c907 | 1360 | LIBS="$LIBS -lstdcpp" |
10f2d63a VZ |
1361 | ;; |
1362 | ||
d08b457b GD |
1363 | powerpc-*-darwin* ) |
1364 | USE_BSD=1 | |
f11bdd03 | 1365 | USE_DARWIN=1 |
3a922bb4 | 1366 | SO_SUFFIX=dylib |
698dcdb6 | 1367 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1368 | #define __BSD__ 1 |
b4085ce6 GD |
1369 | EOF |
1370 | ||
698dcdb6 | 1371 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1372 | #define __DARWIN__ 1 |
d08b457b GD |
1373 | EOF |
1374 | ||
1375 | cat >> confdefs.h <<\EOF | |
1376 | #define __POWERPC__ 1 | |
b4085ce6 GD |
1377 | EOF |
1378 | ||
1379 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1380 | ;; | |
1381 | ||
b12915c1 VZ |
1382 | *-*-beos* ) |
1383 | USE_BEOS=1 | |
698dcdb6 | 1384 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
1385 | #define __BEOS__ 1 |
1386 | EOF | |
1387 | ||
1388 | ;; | |
1389 | ||
10f2d63a | 1390 | *) |
698dcdb6 | 1391 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } |
10f2d63a VZ |
1392 | esac |
1393 | ||
1394 | if test "$USE_UNIX" = 1 ; then | |
b12915c1 | 1395 | wxUSE_UNIX=yes |
698dcdb6 | 1396 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1397 | #define __UNIX__ 1 |
1398 | EOF | |
1399 | ||
10f2d63a VZ |
1400 | fi |
1401 | ||
1e487827 | 1402 | |
1e487827 | 1403 | |
6232543b | 1404 | |
10f2d63a VZ |
1405 | wx_arg_cache_file="configarg.cache" |
1406 | echo "loading argument cache $wx_arg_cache_file" | |
1407 | rm -f ${wx_arg_cache_file}.tmp | |
1408 | touch ${wx_arg_cache_file}.tmp | |
1409 | touch ${wx_arg_cache_file} | |
698dcdb6 | 1410 | |
10f2d63a VZ |
1411 | |
1412 | DEBUG_CONFIGURE=0 | |
1413 | if test $DEBUG_CONFIGURE = 1; then | |
1e6feb95 VZ |
1414 | DEFAULT_wxUSE_UNIVERSAL=no |
1415 | ||
d8356fa3 VZ |
1416 | DEFAULT_wxUSE_NANOX=no |
1417 | ||
10f2d63a VZ |
1418 | DEFAULT_wxUSE_THREADS=yes |
1419 | ||
1420 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1421 | DEFAULT_wxUSE_SONAME=no |
1e6feb95 | 1422 | DEFAULT_wxUSE_OPTIMISE=no |
10f2d63a VZ |
1423 | DEFAULT_wxUSE_PROFILE=no |
1424 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
1425 | DEFAULT_wxUSE_NO_RTTI=no |
1426 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
1427 | DEFAULT_wxUSE_PERMISSIVE=no |
1428 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1429 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1430 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1431 | DEFAULT_wxUSE_MEM_TRACING=no | |
1432 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1433 | DEFAULT_wxUSE_DMALLOC=no | |
a7ae7112 | 1434 | DEFAULT_wxUSE_PRECOMP=no |
10f2d63a VZ |
1435 | DEFAULT_wxUSE_APPLE_IEEE=no |
1436 | ||
1437 | DEFAULT_wxUSE_LOG=yes | |
1e6feb95 VZ |
1438 | DEFAULT_wxUSE_LOGWINDOW=no |
1439 | DEFAULT_wxUSE_LOGGUI=no | |
69d27ff7 | 1440 | DEFAULT_wxUSE_LOGDIALOG=no |
10f2d63a VZ |
1441 | |
1442 | DEFAULT_wxUSE_GUI=yes | |
1e6feb95 | 1443 | DEFAULT_wxUSE_CONTROLS=no |
10f2d63a | 1444 | |
3e44f09d | 1445 | DEFAULT_wxUSE_REGEX=no |
10f2d63a VZ |
1446 | DEFAULT_wxUSE_ZLIB=no |
1447 | DEFAULT_wxUSE_LIBPNG=no | |
1448 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 1449 | DEFAULT_wxUSE_LIBTIFF=no |
10f2d63a | 1450 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 1451 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1452 | |
eb4efbdc | 1453 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
4f3c5f06 | 1454 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
10f2d63a | 1455 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1456 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
1457 | DEFAULT_wxUSE_DATETIME=no | |
1458 | DEFAULT_wxUSE_TIMEDATE=no | |
1459 | DEFAULT_wxUSE_TIMER=no | |
1460 | DEFAULT_wxUSE_STOPWATCH=no | |
10f2d63a | 1461 | DEFAULT_wxUSE_FILE=no |
1e6feb95 | 1462 | DEFAULT_wxUSE_FFILE=no |
a3a584a7 | 1463 | DEFAULT_wxUSE_TEXTBUFFER=no |
10f2d63a | 1464 | DEFAULT_wxUSE_TEXTFILE=no |
10f2d63a VZ |
1465 | DEFAULT_wxUSE_WAVE=no |
1466 | DEFAULT_wxUSE_INTL=no | |
1467 | DEFAULT_wxUSE_CONFIG=no | |
1e6feb95 | 1468 | DEFAULT_wxUSE_FONTMAP=no |
10f2d63a VZ |
1469 | DEFAULT_wxUSE_STREAMS=no |
1470 | DEFAULT_wxUSE_SOCKETS=no | |
1471 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
10f2d63a | 1472 | DEFAULT_wxUSE_JOYSTICK=no |
6bff71f8 | 1473 | DEFAULT_wxUSE_DYNLIB_CLASS=no |
0b9ab0bd | 1474 | DEFAULT_wxUSE_DYNAMIC_LOADER=no |
10f2d63a | 1475 | DEFAULT_wxUSE_LONGLONG=no |
e8f65ba6 | 1476 | DEFAULT_wxUSE_GEOMETRY=no |
10f2d63a VZ |
1477 | |
1478 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1479 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1480 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1481 | ||
1482 | DEFAULT_wxUSE_X_RESOURCES=no | |
1483 | DEFAULT_wxUSE_CLIPBOARD=no | |
1484 | DEFAULT_wxUSE_TOOLTIPS=no | |
1485 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
24fd6d87 | 1486 | DEFAULT_wxUSE_DRAGIMAGE=no |
10f2d63a VZ |
1487 | DEFAULT_wxUSE_SPLINES=no |
1488 | ||
1489 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1490 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1491 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1492 | ||
1493 | DEFAULT_wxUSE_PROLOGIO=no | |
1494 | DEFAULT_wxUSE_RESOURCES=no | |
1495 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1496 | DEFAULT_wxUSE_IPC=no | |
1497 | DEFAULT_wxUSE_HELP=no | |
29fd3c0c | 1498 | DEFAULT_wxUSE_MS_HTML_HELP=no |
3379ed37 | 1499 | DEFAULT_wxUSE_WXHTML_HELP=no |
24176f2c | 1500 | DEFAULT_wxUSE_TREELAYOUT=no |
10f2d63a | 1501 | DEFAULT_wxUSE_METAFILE=no |
1e6feb95 | 1502 | DEFAULT_wxUSE_MIMETYPE=no |
4cdb0ab0 VS |
1503 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no |
1504 | DEFAULT_wxUSE_PROTOCOL=no | |
1505 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
1506 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
1507 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
1508 | DEFAULT_wxUSE_URL=no | |
1509 | ||
10f2d63a | 1510 | DEFAULT_wxUSE_COMMONDLGS=no |
1e6feb95 VZ |
1511 | DEFAULT_wxUSE_CHOICEDLG=no |
1512 | DEFAULT_wxUSE_COLOURDLG=no | |
10f2d63a | 1513 | DEFAULT_wxUSE_DIRDLG=no |
1e6feb95 | 1514 | DEFAULT_wxUSE_FILEDLG=no |
8db37e06 | 1515 | DEFAULT_wxUSE_FINDREPLDLG=no |
1e6feb95 VZ |
1516 | DEFAULT_wxUSE_FONTDLG=no |
1517 | DEFAULT_wxUSE_MSGDLG=no | |
1518 | DEFAULT_wxUSE_NUMBERDLG=no | |
10f2d63a | 1519 | DEFAULT_wxUSE_TEXTDLG=no |
cbca9943 | 1520 | DEFAULT_wxUSE_SPLASH=no |
10f2d63a VZ |
1521 | DEFAULT_wxUSE_STARTUP_TIPS=no |
1522 | DEFAULT_wxUSE_PROGRESSDLG=no | |
b1f5d087 VZ |
1523 | DEFAULT_wxUSE_WIZARDDLG=no |
1524 | ||
1e6feb95 | 1525 | DEFAULT_wxUSE_MENUS=no |
10f2d63a VZ |
1526 | DEFAULT_wxUSE_MINIFRAME=no |
1527 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 1528 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
1529 | DEFAULT_wxUSE_FS_INET=no |
1530 | DEFAULT_wxUSE_FS_ZIP=no | |
1531 | DEFAULT_wxUSE_BUSYINFO=no | |
1532 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1e6feb95 | 1533 | DEFAULT_wxUSE_VALIDATORS=no |
10f2d63a VZ |
1534 | |
1535 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 | 1536 | DEFAULT_wxUSE_BUTTON=no |
10f2d63a | 1537 | DEFAULT_wxUSE_BMPBUTTON=no |
1e6feb95 VZ |
1538 | DEFAULT_wxUSE_CALCTRL=no |
1539 | DEFAULT_wxUSE_CARET=no | |
10f2d63a VZ |
1540 | DEFAULT_wxUSE_CHECKBOX=no |
1541 | DEFAULT_wxUSE_CHECKLST=no | |
1e6feb95 | 1542 | DEFAULT_wxUSE_CHOICE=no |
10f2d63a VZ |
1543 | DEFAULT_wxUSE_COMBOBOX=no |
1544 | DEFAULT_wxUSE_GAUGE=no | |
1545 | DEFAULT_wxUSE_GRID=no | |
1546 | DEFAULT_wxUSE_NEW_GRID=no | |
1547 | DEFAULT_wxUSE_IMAGLIST=no | |
1548 | DEFAULT_wxUSE_LISTBOX=no | |
1549 | DEFAULT_wxUSE_LISTCTRL=no | |
1550 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 1551 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
1552 | DEFAULT_wxUSE_RADIOBOX=no |
1553 | DEFAULT_wxUSE_RADIOBTN=no | |
1554 | DEFAULT_wxUSE_SASH=no | |
1555 | DEFAULT_wxUSE_SCROLLBAR=no | |
1556 | DEFAULT_wxUSE_SLIDER=no | |
1557 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 1558 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
1559 | DEFAULT_wxUSE_SPLITTER=no |
1560 | DEFAULT_wxUSE_STATBMP=no | |
1561 | DEFAULT_wxUSE_STATBOX=no | |
1562 | DEFAULT_wxUSE_STATLINE=no | |
1e6feb95 | 1563 | DEFAULT_wxUSE_STATTEXT=no |
10f2d63a VZ |
1564 | DEFAULT_wxUSE_STATUSBAR=yes |
1565 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1566 | DEFAULT_wxUSE_TEXTCTRL=no |
1db8dc4a | 1567 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 1568 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
1569 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
1570 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a | 1571 | DEFAULT_wxUSE_TREECTRL=no |
9f41d601 | 1572 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 1573 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
1574 | |
1575 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 1576 | DEFAULT_wxUSE_UNICODE_MSLU=no |
10f2d63a VZ |
1577 | DEFAULT_wxUSE_WCSRTOMBS=no |
1578 | ||
edae8572 | 1579 | DEFAULT_wxUSE_PALETTE=no |
0046ff7c | 1580 | DEFAULT_wxUSE_IMAGE=no |
10f2d63a VZ |
1581 | DEFAULT_wxUSE_GIF=no |
1582 | DEFAULT_wxUSE_PCX=no | |
1583 | DEFAULT_wxUSE_PNM=no | |
4b6b4dfc | 1584 | DEFAULT_wxUSE_IFF=no |
0046ff7c | 1585 | DEFAULT_wxUSE_XPM=no |
658974ae | 1586 | DEFAULT_wxUSE_ICO_CUR=no |
10f2d63a | 1587 | else |
1e6feb95 VZ |
1588 | DEFAULT_wxUSE_UNIVERSAL=no |
1589 | ||
d8356fa3 VZ |
1590 | DEFAULT_wxUSE_NANOX=no |
1591 | ||
10f2d63a VZ |
1592 | DEFAULT_wxUSE_THREADS=yes |
1593 | ||
1594 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1595 | DEFAULT_wxUSE_SONAME=no |
10f2d63a VZ |
1596 | DEFAULT_wxUSE_OPTIMISE=yes |
1597 | DEFAULT_wxUSE_PROFILE=no | |
1598 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
1599 | DEFAULT_wxUSE_NO_RTTI=no |
1600 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
1601 | DEFAULT_wxUSE_PERMISSIVE=no |
1602 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1603 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1604 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1605 | DEFAULT_wxUSE_MEM_TRACING=no | |
1606 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1607 | DEFAULT_wxUSE_DMALLOC=no | |
a7ae7112 | 1608 | DEFAULT_wxUSE_PRECOMP=no |
10f2d63a VZ |
1609 | DEFAULT_wxUSE_APPLE_IEEE=yes |
1610 | ||
1611 | DEFAULT_wxUSE_LOG=yes | |
d73be714 VZ |
1612 | DEFAULT_wxUSE_LOGWINDOW=yes |
1613 | DEFAULT_wxUSE_LOGGUI=yes | |
69d27ff7 | 1614 | DEFAULT_wxUSE_LOGDIALOG=yes |
10f2d63a VZ |
1615 | |
1616 | DEFAULT_wxUSE_GUI=yes | |
1617 | ||
831b3152 | 1618 | DEFAULT_wxUSE_REGEX=yes |
10f2d63a VZ |
1619 | DEFAULT_wxUSE_ZLIB=yes |
1620 | DEFAULT_wxUSE_LIBPNG=yes | |
1621 | DEFAULT_wxUSE_LIBJPEG=yes | |
b47c832e | 1622 | DEFAULT_wxUSE_LIBTIFF=yes |
16b52fa1 | 1623 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 1624 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1625 | |
eb4efbdc | 1626 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
4f3c5f06 | 1627 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
10f2d63a | 1628 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1629 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
1630 | DEFAULT_wxUSE_DATETIME=yes | |
1631 | DEFAULT_wxUSE_TIMEDATE=no | |
1632 | DEFAULT_wxUSE_TIMER=yes | |
1633 | DEFAULT_wxUSE_STOPWATCH=yes | |
10f2d63a | 1634 | DEFAULT_wxUSE_FILE=yes |
1e6feb95 | 1635 | DEFAULT_wxUSE_FFILE=yes |
a3a584a7 | 1636 | DEFAULT_wxUSE_TEXTBUFFER=yes |
10f2d63a | 1637 | DEFAULT_wxUSE_TEXTFILE=yes |
10f2d63a VZ |
1638 | DEFAULT_wxUSE_WAVE=no |
1639 | DEFAULT_wxUSE_INTL=yes | |
1640 | DEFAULT_wxUSE_CONFIG=yes | |
1e6feb95 | 1641 | DEFAULT_wxUSE_FONTMAP=yes |
10f2d63a VZ |
1642 | DEFAULT_wxUSE_STREAMS=yes |
1643 | DEFAULT_wxUSE_SOCKETS=yes | |
1644 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
10f2d63a | 1645 | DEFAULT_wxUSE_JOYSTICK=yes |
6bff71f8 | 1646 | DEFAULT_wxUSE_DYNLIB_CLASS=yes |
9337b578 | 1647 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes |
b685cd9b | 1648 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 1649 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
1650 | |
1651 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1652 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1653 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1654 | ||
1655 | DEFAULT_wxUSE_X_RESOURCES=no | |
1656 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1657 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1658 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
24fd6d87 | 1659 | DEFAULT_wxUSE_DRAGIMAGE=yes |
10f2d63a VZ |
1660 | DEFAULT_wxUSE_SPLINES=yes |
1661 | ||
1662 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1663 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1664 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1665 | ||
1666 | DEFAULT_wxUSE_PROLOGIO=yes | |
1667 | DEFAULT_wxUSE_RESOURCES=yes | |
1668 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
1669 | DEFAULT_wxUSE_IPC=yes | |
1670 | DEFAULT_wxUSE_HELP=yes | |
29fd3c0c | 1671 | DEFAULT_wxUSE_MS_HTML_HELP=yes |
3379ed37 | 1672 | DEFAULT_wxUSE_WXHTML_HELP=yes |
24176f2c | 1673 | DEFAULT_wxUSE_TREELAYOUT=yes |
10f2d63a | 1674 | DEFAULT_wxUSE_METAFILE=yes |
1e6feb95 | 1675 | DEFAULT_wxUSE_MIMETYPE=yes |
3e44f09d | 1676 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
4cdb0ab0 VS |
1677 | DEFAULT_wxUSE_PROTOCOL=yes |
1678 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
1679 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
1680 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
1681 | DEFAULT_wxUSE_URL=yes | |
10f2d63a VZ |
1682 | |
1683 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1e6feb95 VZ |
1684 | DEFAULT_wxUSE_CHOICEDLG=yes |
1685 | DEFAULT_wxUSE_COLOURDLG=yes | |
10f2d63a | 1686 | DEFAULT_wxUSE_DIRDLG=yes |
1e6feb95 | 1687 | DEFAULT_wxUSE_FILEDLG=yes |
8db37e06 | 1688 | DEFAULT_wxUSE_FINDREPLDLG=yes |
1e6feb95 VZ |
1689 | DEFAULT_wxUSE_FONTDLG=yes |
1690 | DEFAULT_wxUSE_MSGDLG=yes | |
1691 | DEFAULT_wxUSE_NUMBERDLG=yes | |
10f2d63a | 1692 | DEFAULT_wxUSE_TEXTDLG=yes |
cbca9943 | 1693 | DEFAULT_wxUSE_SPLASH=yes |
10f2d63a VZ |
1694 | DEFAULT_wxUSE_STARTUP_TIPS=yes |
1695 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
f33f19dd VZ |
1696 | DEFAULT_wxUSE_WIZARDDLG=yes |
1697 | ||
1e6feb95 | 1698 | DEFAULT_wxUSE_MENUS=yes |
10f2d63a VZ |
1699 | DEFAULT_wxUSE_MINIFRAME=yes |
1700 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 1701 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
1702 | DEFAULT_wxUSE_FS_INET=yes |
1703 | DEFAULT_wxUSE_FS_ZIP=yes | |
1704 | DEFAULT_wxUSE_BUSYINFO=yes | |
1705 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1706 | DEFAULT_wxUSE_VALIDATORS=yes | |
1707 | ||
1708 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 | 1709 | DEFAULT_wxUSE_BUTTON=yes |
10f2d63a | 1710 | DEFAULT_wxUSE_BMPBUTTON=yes |
1e6feb95 VZ |
1711 | DEFAULT_wxUSE_CALCTRL=yes |
1712 | DEFAULT_wxUSE_CARET=yes | |
10f2d63a VZ |
1713 | DEFAULT_wxUSE_CHECKBOX=yes |
1714 | DEFAULT_wxUSE_CHECKLST=yes | |
1715 | DEFAULT_wxUSE_CHOICE=yes | |
1716 | DEFAULT_wxUSE_COMBOBOX=yes | |
1717 | DEFAULT_wxUSE_GAUGE=yes | |
1718 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 1719 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
1720 | DEFAULT_wxUSE_IMAGLIST=yes |
1721 | DEFAULT_wxUSE_LISTBOX=yes | |
1722 | DEFAULT_wxUSE_LISTCTRL=yes | |
1723 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 1724 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
1725 | DEFAULT_wxUSE_RADIOBOX=yes |
1726 | DEFAULT_wxUSE_RADIOBTN=yes | |
1727 | DEFAULT_wxUSE_SASH=yes | |
1728 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1729 | DEFAULT_wxUSE_SLIDER=yes | |
1730 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 1731 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
1732 | DEFAULT_wxUSE_SPLITTER=yes |
1733 | DEFAULT_wxUSE_STATBMP=yes | |
1734 | DEFAULT_wxUSE_STATBOX=yes | |
1735 | DEFAULT_wxUSE_STATLINE=yes | |
1e6feb95 | 1736 | DEFAULT_wxUSE_STATTEXT=yes |
10f2d63a VZ |
1737 | DEFAULT_wxUSE_STATUSBAR=yes |
1738 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1739 | DEFAULT_wxUSE_TEXTCTRL=yes |
1db8dc4a | 1740 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 1741 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
1742 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
1743 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a | 1744 | DEFAULT_wxUSE_TREECTRL=yes |
9f41d601 | 1745 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 1746 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
1747 | |
1748 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 1749 | DEFAULT_wxUSE_UNICODE_MSLU=yes |
10f2d63a VZ |
1750 | DEFAULT_wxUSE_WCSRTOMBS=no |
1751 | ||
edae8572 | 1752 | DEFAULT_wxUSE_PALETTE=yes |
0046ff7c | 1753 | DEFAULT_wxUSE_IMAGE=yes |
10f2d63a VZ |
1754 | DEFAULT_wxUSE_GIF=yes |
1755 | DEFAULT_wxUSE_PCX=yes | |
cc0e8480 | 1756 | DEFAULT_wxUSE_IFF=no |
10f2d63a | 1757 | DEFAULT_wxUSE_PNM=yes |
0046ff7c | 1758 | DEFAULT_wxUSE_XPM=yes |
658974ae | 1759 | DEFAULT_wxUSE_ICO_CUR=yes |
10f2d63a VZ |
1760 | fi |
1761 | ||
698dcdb6 VZ |
1762 | |
1763 | ||
10f2d63a VZ |
1764 | for toolkit in `echo $ALL_TOOLKITS`; do |
1765 | LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}` | |
1766 | if test "x$LINE" != x ; then | |
1767 | has_toolkit_in_cache=1 | |
1768 | eval "DEFAULT_$LINE" | |
1769 | eval "CACHE_$toolkit=1" | |
1770 | fi | |
1771 | done | |
1772 | ||
698dcdb6 VZ |
1773 | |
1774 | ||
1775 | echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6 | |
19bc6aad | 1776 | echo "configure:1777: checking for --enable-gui" >&5 |
10f2d63a VZ |
1777 | no_cache=0 |
1778 | # Check whether --enable-gui or --disable-gui was given. | |
1779 | if test "${enable_gui+set}" = set; then | |
1780 | enableval="$enable_gui" | |
698dcdb6 | 1781 | |
10f2d63a VZ |
1782 | if test "$enableval" = yes; then |
1783 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1784 | else | |
1785 | ac_cv_use_gui='wxUSE_GUI=no' | |
1786 | fi | |
698dcdb6 | 1787 | |
10f2d63a | 1788 | else |
698dcdb6 | 1789 | |
10f2d63a VZ |
1790 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` |
1791 | if test "x$LINE" != x ; then | |
1792 | eval "DEFAULT_$LINE" | |
1793 | else | |
1794 | no_cache=1 | |
1795 | fi | |
1796 | ||
1797 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
698dcdb6 VZ |
1798 | |
1799 | fi | |
10f2d63a VZ |
1800 | |
1801 | ||
1802 | eval "$ac_cv_use_gui" | |
1803 | if test "$no_cache" != 1; then | |
1804 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1805 | fi | |
1806 | ||
1807 | if test "$wxUSE_GUI" = yes; then | |
698dcdb6 | 1808 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 1809 | else |
698dcdb6 | 1810 | echo "$ac_t""no" 1>&6 |
10f2d63a | 1811 | fi |
698dcdb6 | 1812 | |
10f2d63a | 1813 | |
b12915c1 | 1814 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a | 1815 | |
1e6feb95 VZ |
1816 | |
1817 | echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6 | |
19bc6aad | 1818 | echo "configure:1819: checking for --enable-universal" >&5 |
1e6feb95 VZ |
1819 | no_cache=0 |
1820 | # Check whether --enable-universal or --disable-universal was given. | |
1821 | if test "${enable_universal+set}" = set; then | |
1822 | enableval="$enable_universal" | |
1823 | ||
1824 | if test "$enableval" = yes; then | |
1825 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
1826 | else | |
1827 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
1828 | fi | |
1829 | ||
1830 | else | |
1831 | ||
1832 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
1833 | if test "x$LINE" != x ; then | |
1834 | eval "DEFAULT_$LINE" | |
1835 | else | |
1836 | no_cache=1 | |
1837 | fi | |
1838 | ||
1839 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
1840 | ||
1841 | fi | |
1842 | ||
1843 | ||
1844 | eval "$ac_cv_use_universal" | |
1845 | if test "$no_cache" != 1; then | |
1846 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
1847 | fi | |
1848 | ||
1849 | if test "$wxUSE_UNIVERSAL" = yes; then | |
1850 | echo "$ac_t""yes" 1>&6 | |
1851 | else | |
1852 | echo "$ac_t""no" 1>&6 | |
1853 | fi | |
1854 | ||
10f2d63a VZ |
1855 | # Check whether --with-gtk or --without-gtk was given. |
1856 | if test "${with_gtk+set}" = set; then | |
1857 | withval="$with_gtk" | |
1858 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1859 | fi |
10f2d63a VZ |
1860 | |
1861 | # Check whether --with-motif or --without-motif was given. | |
1862 | if test "${with_motif+set}" = set; then | |
1863 | withval="$with_motif" | |
1864 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1865 | fi |
10f2d63a | 1866 | |
b4085ce6 GD |
1867 | # Check whether --with-mac or --without-mac was given. |
1868 | if test "${with_mac+set}" = set; then | |
1869 | withval="$with_mac" | |
1870 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
698dcdb6 | 1871 | fi |
b4085ce6 | 1872 | |
10f2d63a VZ |
1873 | # Check whether --with-wine or --without-wine was given. |
1874 | if test "${with_wine+set}" = set; then | |
1875 | withval="$with_wine" | |
1876 | wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1877 | fi |
10f2d63a | 1878 | |
77e13408 RL |
1879 | # Check whether --with-msw or --without-msw was given. |
1880 | if test "${with_msw+set}" = set; then | |
1881 | withval="$with_msw" | |
b4efce5e | 1882 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 |
698dcdb6 | 1883 | fi |
10f2d63a | 1884 | |
e07802fc VZ |
1885 | # Check whether --with-pm or --without-pm was given. |
1886 | if test "${with_pm+set}" = set; then | |
1887 | withval="$with_pm" | |
1888 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
698dcdb6 VZ |
1889 | fi |
1890 | ||
1e6feb95 VZ |
1891 | # Check whether --with-mgl or --without-mgl was given. |
1892 | if test "${with_mgl+set}" = set; then | |
1893 | withval="$with_mgl" | |
1894 | wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
1895 | fi | |
1896 | ||
1725144d RR |
1897 | # Check whether --with-microwin or --without-microwin was given. |
1898 | if test "${with_microwin+set}" = set; then | |
1899 | withval="$with_microwin" | |
1900 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
1901 | fi | |
1902 | ||
f79bd02d JS |
1903 | # Check whether --with-x11 or --without-x11 was given. |
1904 | if test "${with_x11+set}" = set; then | |
1905 | withval="$with_x11" | |
3c011993 | 1906 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 |
f79bd02d JS |
1907 | fi |
1908 | ||
10f2d63a | 1909 | |
ba875e66 | 1910 | echo $ac_n "checking for --enable-nanox""... $ac_c" 1>&6 |
19bc6aad | 1911 | echo "configure:1912: checking for --enable-nanox" >&5 |
d8356fa3 | 1912 | no_cache=0 |
ba875e66 VZ |
1913 | # Check whether --enable-nanox or --disable-nanox was given. |
1914 | if test "${enable_nanox+set}" = set; then | |
1915 | enableval="$enable_nanox" | |
d8356fa3 VZ |
1916 | |
1917 | if test "$enableval" = yes; then | |
ba875e66 | 1918 | ac_cv_use_nanox='wxUSE_NANOX=yes' |
d8356fa3 | 1919 | else |
ba875e66 | 1920 | ac_cv_use_nanox='wxUSE_NANOX=no' |
d8356fa3 VZ |
1921 | fi |
1922 | ||
1923 | else | |
1924 | ||
1925 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` | |
1926 | if test "x$LINE" != x ; then | |
1927 | eval "DEFAULT_$LINE" | |
1928 | else | |
1929 | no_cache=1 | |
1930 | fi | |
1931 | ||
ba875e66 | 1932 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX |
d8356fa3 VZ |
1933 | |
1934 | fi | |
1935 | ||
1936 | ||
ba875e66 | 1937 | eval "$ac_cv_use_nanox" |
d8356fa3 | 1938 | if test "$no_cache" != 1; then |
ba875e66 | 1939 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp |
d8356fa3 VZ |
1940 | fi |
1941 | ||
1942 | if test "$wxUSE_NANOX" = yes; then | |
1943 | echo "$ac_t""yes" 1>&6 | |
1944 | else | |
1945 | echo "$ac_t""no" 1>&6 | |
1946 | fi | |
1947 | ||
1948 | ||
8168de4c VZ |
1949 | # Check whether --enable-gtk2 or --disable-gtk2 was given. |
1950 | if test "${enable_gtk2+set}" = set; then | |
1951 | enableval="$enable_gtk2" | |
9e691f46 | 1952 | wxUSE_GTK2="yes" |
10f2d63a | 1953 | else |
9e691f46 | 1954 | wxUSE_GTK2="no" |
698dcdb6 VZ |
1955 | fi |
1956 | ||
703e0a69 | 1957 | |
1e487827 | 1958 | |
698dcdb6 | 1959 | echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6 |
19bc6aad | 1960 | echo "configure:1961: checking for --with-libpng" >&5 |
698dcdb6 VZ |
1961 | no_cache=0 |
1962 | # Check whether --with-libpng or --without-libpng was given. | |
b12915c1 VZ |
1963 | if test "${with_libpng+set}" = set; then |
1964 | withval="$with_libpng" | |
698dcdb6 | 1965 | |
10f2d63a | 1966 | if test "$withval" = yes; then |
b12915c1 | 1967 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 1968 | elif test "$withval" = no; then |
b12915c1 | 1969 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
1970 | elif test "$withval" = sys; then |
1971 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
4f14bcd8 GD |
1972 | elif test "$withval" = builtin; then |
1973 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
422107f9 | 1974 | else |
4f14bcd8 | 1975 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 1976 | fi |
698dcdb6 | 1977 | |
10f2d63a | 1978 | else |
698dcdb6 | 1979 | |
b12915c1 | 1980 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1981 | if test "x$LINE" != x ; then |
1982 | eval "DEFAULT_$LINE" | |
1983 | else | |
1984 | no_cache=1 | |
1985 | fi | |
1986 | ||
b12915c1 | 1987 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
698dcdb6 VZ |
1988 | |
1989 | fi | |
10f2d63a VZ |
1990 | |
1991 | ||
b12915c1 | 1992 | eval "$ac_cv_use_libpng" |
10f2d63a | 1993 | if test "$no_cache" != 1; then |
b12915c1 | 1994 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1995 | fi |
1996 | ||
b12915c1 | 1997 | if test "$wxUSE_LIBPNG" = yes; then |
698dcdb6 | 1998 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1999 | elif test "$wxUSE_LIBPNG" = no; then |
698dcdb6 | 2000 | echo "$ac_t""no" 1>&6 |
422107f9 | 2001 | elif test "$wxUSE_LIBPNG" = sys; then |
698dcdb6 | 2002 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2003 | elif test "$wxUSE_LIBPNG" = builtin; then |
2004 | echo "$ac_t""builtin version" 1>&6 | |
422107f9 | 2005 | else |
4f14bcd8 | 2006 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2007 | fi |
698dcdb6 | 2008 | |
10f2d63a | 2009 | |
698dcdb6 | 2010 | echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6 |
19bc6aad | 2011 | echo "configure:2012: checking for --with-libjpeg" >&5 |
10f2d63a | 2012 | no_cache=0 |
698dcdb6 | 2013 | # Check whether --with-libjpeg or --without-libjpeg was given. |
b12915c1 VZ |
2014 | if test "${with_libjpeg+set}" = set; then |
2015 | withval="$with_libjpeg" | |
698dcdb6 | 2016 | |
10f2d63a | 2017 | if test "$withval" = yes; then |
b12915c1 | 2018 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 2019 | elif test "$withval" = no; then |
b12915c1 | 2020 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
2021 | elif test "$withval" = sys; then |
2022 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
4f14bcd8 GD |
2023 | elif test "$withval" = builtin; then |
2024 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
422107f9 | 2025 | else |
4f14bcd8 | 2026 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2027 | fi |
698dcdb6 | 2028 | |
10f2d63a | 2029 | else |
698dcdb6 | 2030 | |
b12915c1 | 2031 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2032 | if test "x$LINE" != x ; then |
2033 | eval "DEFAULT_$LINE" | |
2034 | else | |
2035 | no_cache=1 | |
2036 | fi | |
2037 | ||
b12915c1 | 2038 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
698dcdb6 VZ |
2039 | |
2040 | fi | |
10f2d63a VZ |
2041 | |
2042 | ||
b12915c1 | 2043 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 2044 | if test "$no_cache" != 1; then |
b12915c1 | 2045 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2046 | fi |
2047 | ||
b12915c1 | 2048 | if test "$wxUSE_LIBJPEG" = yes; then |
698dcdb6 | 2049 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2050 | elif test "$wxUSE_LIBJPEG" = no; then |
698dcdb6 | 2051 | echo "$ac_t""no" 1>&6 |
422107f9 | 2052 | elif test "$wxUSE_LIBJPEG" = sys; then |
698dcdb6 | 2053 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2054 | elif test "$wxUSE_LIBJPEG" = builtin; then |
2055 | echo "$ac_t""builtin version" 1>&6 | |
422107f9 | 2056 | else |
4f14bcd8 | 2057 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2058 | fi |
698dcdb6 | 2059 | |
10f2d63a | 2060 | |
698dcdb6 | 2061 | echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6 |
19bc6aad | 2062 | echo "configure:2063: checking for --with-libtiff" >&5 |
10f2d63a | 2063 | no_cache=0 |
698dcdb6 | 2064 | # Check whether --with-libtiff or --without-libtiff was given. |
b12915c1 VZ |
2065 | if test "${with_libtiff+set}" = set; then |
2066 | withval="$with_libtiff" | |
698dcdb6 | 2067 | |
10f2d63a | 2068 | if test "$withval" = yes; then |
b12915c1 | 2069 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 2070 | elif test "$withval" = no; then |
b12915c1 | 2071 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
2072 | elif test "$withval" = sys; then |
2073 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
4f14bcd8 GD |
2074 | elif test "$withval" = builtin; then |
2075 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
0dcf9893 | 2076 | else |
4f14bcd8 | 2077 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2078 | fi |
698dcdb6 | 2079 | |
10f2d63a | 2080 | else |
698dcdb6 | 2081 | |
b12915c1 | 2082 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
2083 | if test "x$LINE" != x ; then |
2084 | eval "DEFAULT_$LINE" | |
2085 | else | |
2086 | no_cache=1 | |
2087 | fi | |
2088 | ||
b12915c1 | 2089 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
698dcdb6 VZ |
2090 | |
2091 | fi | |
10f2d63a VZ |
2092 | |
2093 | ||
b12915c1 | 2094 | eval "$ac_cv_use_libtiff" |
10f2d63a | 2095 | if test "$no_cache" != 1; then |
b12915c1 | 2096 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2097 | fi |
2098 | ||
b12915c1 | 2099 | if test "$wxUSE_LIBTIFF" = yes; then |
698dcdb6 | 2100 | echo "$ac_t""yes" 1>&6 |
0dcf9893 | 2101 | elif test "$wxUSE_LIBTIFF" = no; then |
698dcdb6 | 2102 | echo "$ac_t""no" 1>&6 |
0dcf9893 | 2103 | elif test "$wxUSE_LIBTIFF" = sys; then |
698dcdb6 | 2104 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2105 | elif test "$wxUSE_LIBTIFF" = builtin; then |
2106 | echo "$ac_t""builtin version" 1>&6 | |
0dcf9893 | 2107 | else |
4f14bcd8 | 2108 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2109 | fi |
698dcdb6 | 2110 | |
10f2d63a | 2111 | |
698dcdb6 | 2112 | echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6 |
19bc6aad | 2113 | echo "configure:2114: checking for --with-opengl" >&5 |
10f2d63a | 2114 | no_cache=0 |
698dcdb6 | 2115 | # Check whether --with-opengl or --without-opengl was given. |
b12915c1 VZ |
2116 | if test "${with_opengl+set}" = set; then |
2117 | withval="$with_opengl" | |
698dcdb6 | 2118 | |
10f2d63a | 2119 | if test "$withval" = yes; then |
b12915c1 | 2120 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 2121 | else |
b12915c1 | 2122 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a | 2123 | fi |
698dcdb6 | 2124 | |
10f2d63a | 2125 | else |
698dcdb6 | 2126 | |
b12915c1 | 2127 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
2128 | if test "x$LINE" != x ; then |
2129 | eval "DEFAULT_$LINE" | |
2130 | else | |
2131 | no_cache=1 | |
2132 | fi | |
2133 | ||
b12915c1 | 2134 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
698dcdb6 VZ |
2135 | |
2136 | fi | |
10f2d63a VZ |
2137 | |
2138 | ||
b12915c1 | 2139 | eval "$ac_cv_use_opengl" |
10f2d63a | 2140 | if test "$no_cache" != 1; then |
b12915c1 | 2141 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2142 | fi |
2143 | ||
b12915c1 | 2144 | if test "$wxUSE_OPENGL" = yes; then |
698dcdb6 | 2145 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2146 | else |
698dcdb6 | 2147 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2148 | fi |
698dcdb6 | 2149 | |
10f2d63a | 2150 | |
b12915c1 VZ |
2151 | fi |
2152 | ||
1e487827 | 2153 | |
698dcdb6 | 2154 | echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6 |
19bc6aad | 2155 | echo "configure:2156: checking for --with-dmalloc" >&5 |
698dcdb6 VZ |
2156 | no_cache=0 |
2157 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
b12915c1 VZ |
2158 | if test "${with_dmalloc+set}" = set; then |
2159 | withval="$with_dmalloc" | |
698dcdb6 | 2160 | |
c7a2bf27 | 2161 | if test "$withval" = yes; then |
b12915c1 | 2162 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 2163 | else |
b12915c1 | 2164 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 | 2165 | fi |
698dcdb6 | 2166 | |
c7a2bf27 | 2167 | else |
698dcdb6 | 2168 | |
b12915c1 | 2169 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
2170 | if test "x$LINE" != x ; then |
2171 | eval "DEFAULT_$LINE" | |
2172 | else | |
2173 | no_cache=1 | |
2174 | fi | |
2175 | ||
b12915c1 | 2176 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
698dcdb6 VZ |
2177 | |
2178 | fi | |
c7a2bf27 RR |
2179 | |
2180 | ||
b12915c1 | 2181 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 2182 | if test "$no_cache" != 1; then |
b12915c1 | 2183 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
2184 | fi |
2185 | ||
b12915c1 | 2186 | if test "$wxUSE_DMALLOC" = yes; then |
698dcdb6 | 2187 | echo "$ac_t""yes" 1>&6 |
c7a2bf27 | 2188 | else |
698dcdb6 | 2189 | echo "$ac_t""no" 1>&6 |
c7a2bf27 | 2190 | fi |
698dcdb6 | 2191 | |
c7a2bf27 | 2192 | |
3e44f09d | 2193 | echo $ac_n "checking for --with-regex""... $ac_c" 1>&6 |
19bc6aad | 2194 | echo "configure:2195: checking for --with-regex" >&5 |
3e44f09d VZ |
2195 | no_cache=0 |
2196 | # Check whether --with-regex or --without-regex was given. | |
2197 | if test "${with_regex+set}" = set; then | |
2198 | withval="$with_regex" | |
2199 | ||
2200 | if test "$withval" = yes; then | |
2201 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
2202 | elif test "$withval" = no; then | |
2203 | ac_cv_use_regex='wxUSE_REGEX=no' | |
2204 | elif test "$withval" = sys; then | |
2205 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
4f14bcd8 GD |
2206 | elif test "$withval" = builtin; then |
2207 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3e44f09d | 2208 | else |
4f14bcd8 | 2209 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d VZ |
2210 | fi |
2211 | ||
2212 | else | |
2213 | ||
2214 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` | |
2215 | if test "x$LINE" != x ; then | |
2216 | eval "DEFAULT_$LINE" | |
2217 | else | |
2218 | no_cache=1 | |
2219 | fi | |
2220 | ||
2221 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
2222 | ||
2223 | fi | |
2224 | ||
2225 | ||
2226 | eval "$ac_cv_use_regex" | |
2227 | if test "$no_cache" != 1; then | |
2228 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
2229 | fi | |
2230 | ||
2231 | if test "$wxUSE_REGEX" = yes; then | |
2232 | echo "$ac_t""yes" 1>&6 | |
2233 | elif test "$wxUSE_REGEX" = no; then | |
2234 | echo "$ac_t""no" 1>&6 | |
2235 | elif test "$wxUSE_REGEX" = sys; then | |
2236 | echo "$ac_t""system version" 1>&6 | |
4f14bcd8 GD |
2237 | elif test "$wxUSE_REGEX" = builtin; then |
2238 | echo "$ac_t""builtin version" 1>&6 | |
3e44f09d | 2239 | else |
4f14bcd8 | 2240 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d VZ |
2241 | fi |
2242 | ||
2243 | ||
698dcdb6 | 2244 | echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6 |
19bc6aad | 2245 | echo "configure:2246: checking for --with-zlib" >&5 |
10f2d63a | 2246 | no_cache=0 |
698dcdb6 | 2247 | # Check whether --with-zlib or --without-zlib was given. |
b12915c1 VZ |
2248 | if test "${with_zlib+set}" = set; then |
2249 | withval="$with_zlib" | |
698dcdb6 | 2250 | |
10f2d63a | 2251 | if test "$withval" = yes; then |
b12915c1 | 2252 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 2253 | elif test "$withval" = no; then |
b12915c1 | 2254 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
2255 | elif test "$withval" = sys; then |
2256 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
4f14bcd8 GD |
2257 | elif test "$withval" = builtin; then |
2258 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
422107f9 | 2259 | else |
4f14bcd8 | 2260 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2261 | fi |
698dcdb6 | 2262 | |
10f2d63a | 2263 | else |
698dcdb6 | 2264 | |
b12915c1 | 2265 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
2266 | if test "x$LINE" != x ; then |
2267 | eval "DEFAULT_$LINE" | |
2268 | else | |
2269 | no_cache=1 | |
2270 | fi | |
2271 | ||
b12915c1 | 2272 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
698dcdb6 VZ |
2273 | |
2274 | fi | |
10f2d63a VZ |
2275 | |
2276 | ||
b12915c1 | 2277 | eval "$ac_cv_use_zlib" |
10f2d63a | 2278 | if test "$no_cache" != 1; then |
b12915c1 | 2279 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2280 | fi |
2281 | ||
b12915c1 | 2282 | if test "$wxUSE_ZLIB" = yes; then |
698dcdb6 | 2283 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2284 | elif test "$wxUSE_ZLIB" = no; then |
698dcdb6 | 2285 | echo "$ac_t""no" 1>&6 |
422107f9 | 2286 | elif test "$wxUSE_ZLIB" = sys; then |
698dcdb6 | 2287 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2288 | elif test "$wxUSE_ZLIB" = builtin; then |
2289 | echo "$ac_t""builtin version" 1>&6 | |
422107f9 | 2290 | else |
4f14bcd8 | 2291 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2292 | fi |
698dcdb6 | 2293 | |
10f2d63a | 2294 | |
698dcdb6 | 2295 | echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6 |
19bc6aad | 2296 | echo "configure:2297: checking for --with-odbc" >&5 |
10f2d63a | 2297 | no_cache=0 |
698dcdb6 | 2298 | # Check whether --with-odbc or --without-odbc was given. |
10f2d63a VZ |
2299 | if test "${with_odbc+set}" = set; then |
2300 | withval="$with_odbc" | |
698dcdb6 | 2301 | |
10f2d63a VZ |
2302 | if test "$withval" = yes; then |
2303 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
2304 | else | |
2305 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
2306 | fi | |
698dcdb6 | 2307 | |
10f2d63a | 2308 | else |
698dcdb6 | 2309 | |
10f2d63a VZ |
2310 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` |
2311 | if test "x$LINE" != x ; then | |
2312 | eval "DEFAULT_$LINE" | |
2313 | else | |
2314 | no_cache=1 | |
2315 | fi | |
2316 | ||
2317 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
698dcdb6 VZ |
2318 | |
2319 | fi | |
10f2d63a VZ |
2320 | |
2321 | ||
2322 | eval "$ac_cv_use_odbc" | |
2323 | if test "$no_cache" != 1; then | |
2324 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
2325 | fi | |
2326 | ||
2327 | if test "$wxUSE_ODBC" = yes; then | |
698dcdb6 | 2328 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2329 | else |
698dcdb6 | 2330 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2331 | fi |
698dcdb6 VZ |
2332 | |
2333 | ||
10f2d63a | 2334 | |
698dcdb6 | 2335 | |
698dcdb6 | 2336 | echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6 |
19bc6aad | 2337 | echo "configure:2338: checking for --enable-shared" >&5 |
10f2d63a VZ |
2338 | no_cache=0 |
2339 | # Check whether --enable-shared or --disable-shared was given. | |
2340 | if test "${enable_shared+set}" = set; then | |
2341 | enableval="$enable_shared" | |
698dcdb6 | 2342 | |
10f2d63a VZ |
2343 | if test "$enableval" = yes; then |
2344 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
2345 | else | |
2346 | ac_cv_use_shared='wxUSE_SHARED=no' | |
2347 | fi | |
698dcdb6 | 2348 | |
10f2d63a | 2349 | else |
698dcdb6 | 2350 | |
10f2d63a VZ |
2351 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` |
2352 | if test "x$LINE" != x ; then | |
2353 | eval "DEFAULT_$LINE" | |
2354 | else | |
2355 | no_cache=1 | |
2356 | fi | |
2357 | ||
2358 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
698dcdb6 VZ |
2359 | |
2360 | fi | |
10f2d63a VZ |
2361 | |
2362 | ||
2363 | eval "$ac_cv_use_shared" | |
2364 | if test "$no_cache" != 1; then | |
2365 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
2366 | fi | |
2367 | ||
2368 | if test "$wxUSE_SHARED" = yes; then | |
698dcdb6 | 2369 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2370 | else |
698dcdb6 | 2371 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2372 | fi |
698dcdb6 | 2373 | |
10f2d63a | 2374 | |
3a922bb4 | 2375 | echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6 |
19bc6aad | 2376 | echo "configure:2377: checking for --enable-soname" >&5 |
00cf1208 | 2377 | no_cache=0 |
3a922bb4 RL |
2378 | # Check whether --enable-soname or --disable-soname was given. |
2379 | if test "${enable_soname+set}" = set; then | |
2380 | enableval="$enable_soname" | |
698dcdb6 | 2381 | |
00cf1208 | 2382 | if test "$enableval" = yes; then |
3a922bb4 | 2383 | ac_cv_use_soname='wxUSE_SONAME=yes' |
00cf1208 | 2384 | else |
3a922bb4 | 2385 | ac_cv_use_soname='wxUSE_SONAME=no' |
00cf1208 | 2386 | fi |
698dcdb6 | 2387 | |
00cf1208 | 2388 | else |
698dcdb6 | 2389 | |
3a922bb4 | 2390 | LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}` |
00cf1208 RR |
2391 | if test "x$LINE" != x ; then |
2392 | eval "DEFAULT_$LINE" | |
2393 | else | |
2394 | no_cache=1 | |
2395 | fi | |
2396 | ||
3a922bb4 | 2397 | ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME |
698dcdb6 VZ |
2398 | |
2399 | fi | |
00cf1208 RR |
2400 | |
2401 | ||
3a922bb4 | 2402 | eval "$ac_cv_use_soname" |
00cf1208 | 2403 | if test "$no_cache" != 1; then |
3a922bb4 | 2404 | echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp |
00cf1208 RR |
2405 | fi |
2406 | ||
3a922bb4 | 2407 | if test "$wxUSE_SONAME" = yes; then |
698dcdb6 | 2408 | echo "$ac_t""yes" 1>&6 |
00cf1208 | 2409 | else |
698dcdb6 | 2410 | echo "$ac_t""no" 1>&6 |
00cf1208 | 2411 | fi |
698dcdb6 | 2412 | |
00cf1208 | 2413 | |
698dcdb6 | 2414 | echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6 |
19bc6aad | 2415 | echo "configure:2416: checking for --enable-optimise" >&5 |
10f2d63a VZ |
2416 | no_cache=0 |
2417 | # Check whether --enable-optimise or --disable-optimise was given. | |
2418 | if test "${enable_optimise+set}" = set; then | |
2419 | enableval="$enable_optimise" | |
698dcdb6 | 2420 | |
10f2d63a VZ |
2421 | if test "$enableval" = yes; then |
2422 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
2423 | else | |
2424 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
2425 | fi | |
698dcdb6 | 2426 | |
10f2d63a | 2427 | else |
698dcdb6 | 2428 | |
10f2d63a VZ |
2429 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` |
2430 | if test "x$LINE" != x ; then | |
2431 | eval "DEFAULT_$LINE" | |
2432 | else | |
2433 | no_cache=1 | |
2434 | fi | |
2435 | ||
2436 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
698dcdb6 VZ |
2437 | |
2438 | fi | |
10f2d63a VZ |
2439 | |
2440 | ||
2441 | eval "$ac_cv_use_optimise" | |
2442 | if test "$no_cache" != 1; then | |
2443 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
2444 | fi | |
2445 | ||
2446 | if test "$wxUSE_OPTIMISE" = yes; then | |
698dcdb6 | 2447 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2448 | else |
698dcdb6 | 2449 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2450 | fi |
698dcdb6 | 2451 | |
10f2d63a | 2452 | |
698dcdb6 | 2453 | echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6 |
19bc6aad | 2454 | echo "configure:2455: checking for --enable-debug" >&5 |
10f2d63a VZ |
2455 | no_cache=0 |
2456 | # Check whether --enable-debug or --disable-debug was given. | |
2457 | if test "${enable_debug+set}" = set; then | |
2458 | enableval="$enable_debug" | |
698dcdb6 | 2459 | |
10f2d63a VZ |
2460 | if test "$enableval" = yes; then |
2461 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
2462 | else | |
2463 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
2464 | fi | |
698dcdb6 | 2465 | |
10f2d63a | 2466 | else |
698dcdb6 | 2467 | |
10f2d63a VZ |
2468 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` |
2469 | if test "x$LINE" != x ; then | |
2470 | eval "DEFAULT_$LINE" | |
2471 | else | |
2472 | no_cache=1 | |
2473 | fi | |
2474 | ||
2475 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
698dcdb6 VZ |
2476 | |
2477 | fi | |
10f2d63a VZ |
2478 | |
2479 | ||
2480 | eval "$ac_cv_use_debug" | |
2481 | if test "$no_cache" != 1; then | |
2482 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
2483 | fi | |
2484 | ||
2485 | if test "$wxUSE_DEBUG" = yes; then | |
698dcdb6 | 2486 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2487 | else |
698dcdb6 | 2488 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2489 | fi |
698dcdb6 | 2490 | |
10f2d63a | 2491 | |
683dccda GD |
2492 | |
2493 | echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6 | |
19bc6aad | 2494 | echo "configure:2495: checking for --enable-precomp" >&5 |
683dccda GD |
2495 | no_cache=0 |
2496 | # Check whether --enable-precomp or --disable-precomp was given. | |
2497 | if test "${enable_precomp+set}" = set; then | |
2498 | enableval="$enable_precomp" | |
2499 | ||
2500 | if test "$enableval" = yes; then | |
2501 | ac_cv_use_precomp='wxUSE_PRECOMP=yes' | |
2502 | else | |
2503 | ac_cv_use_precomp='wxUSE_PRECOMP=no' | |
2504 | fi | |
2505 | ||
2506 | else | |
2507 | ||
2508 | LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}` | |
2509 | if test "x$LINE" != x ; then | |
2510 | eval "DEFAULT_$LINE" | |
2511 | else | |
2512 | no_cache=1 | |
2513 | fi | |
2514 | ||
2515 | ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP | |
2516 | ||
2517 | fi | |
2518 | ||
2519 | ||
2520 | eval "$ac_cv_use_precomp" | |
2521 | if test "$no_cache" != 1; then | |
2522 | echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp | |
2523 | fi | |
2524 | ||
2525 | if test "$wxUSE_PRECOMP" = yes; then | |
2526 | echo "$ac_t""yes" 1>&6 | |
2527 | else | |
2528 | echo "$ac_t""no" 1>&6 | |
2529 | fi | |
2530 | ||
2531 | ||
10f2d63a VZ |
2532 | if test "$wxUSE_DEBUG" = "yes"; then |
2533 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2534 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2535 | elif test "$wxUSE_DEBUG" = "no"; then | |
2536 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2537 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2538 | fi | |
2539 | ||
698dcdb6 VZ |
2540 | |
2541 | echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6 | |
19bc6aad | 2542 | echo "configure:2543: checking for --enable-debug_flag" >&5 |
10f2d63a VZ |
2543 | no_cache=0 |
2544 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
2545 | if test "${enable_debug_flag+set}" = set; then | |
2546 | enableval="$enable_debug_flag" | |
698dcdb6 | 2547 | |
10f2d63a VZ |
2548 | if test "$enableval" = yes; then |
2549 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
2550 | else | |
2551 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
2552 | fi | |
698dcdb6 | 2553 | |
10f2d63a | 2554 | else |
698dcdb6 | 2555 | |
10f2d63a VZ |
2556 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` |
2557 | if test "x$LINE" != x ; then | |
2558 | eval "DEFAULT_$LINE" | |
2559 | else | |
2560 | no_cache=1 | |
2561 | fi | |
2562 | ||
2563 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
698dcdb6 VZ |
2564 | |
2565 | fi | |
10f2d63a VZ |
2566 | |
2567 | ||
2568 | eval "$ac_cv_use_debug_flag" | |
2569 | if test "$no_cache" != 1; then | |
2570 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
2571 | fi | |
2572 | ||
2573 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
698dcdb6 | 2574 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2575 | else |
698dcdb6 | 2576 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2577 | fi |
698dcdb6 | 2578 | |
10f2d63a | 2579 | |
698dcdb6 | 2580 | echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6 |
19bc6aad | 2581 | echo "configure:2582: checking for --enable-debug_info" >&5 |
10f2d63a VZ |
2582 | no_cache=0 |
2583 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2584 | if test "${enable_debug_info+set}" = set; then | |
2585 | enableval="$enable_debug_info" | |
698dcdb6 | 2586 | |
10f2d63a VZ |
2587 | if test "$enableval" = yes; then |
2588 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2589 | else | |
2590 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2591 | fi | |
698dcdb6 | 2592 | |
10f2d63a | 2593 | else |
698dcdb6 | 2594 | |
10f2d63a VZ |
2595 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` |
2596 | if test "x$LINE" != x ; then | |
2597 | eval "DEFAULT_$LINE" | |
2598 | else | |
2599 | no_cache=1 | |
2600 | fi | |
2601 | ||
2602 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
698dcdb6 VZ |
2603 | |
2604 | fi | |
10f2d63a VZ |
2605 | |
2606 | ||
2607 | eval "$ac_cv_use_debug_info" | |
2608 | if test "$no_cache" != 1; then | |
2609 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2610 | fi | |
2611 | ||
2612 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
698dcdb6 | 2613 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2614 | else |
698dcdb6 | 2615 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2616 | fi |
698dcdb6 | 2617 | |
10f2d63a | 2618 | |
698dcdb6 | 2619 | echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6 |
19bc6aad | 2620 | echo "configure:2621: checking for --enable-debug_gdb" >&5 |
10f2d63a VZ |
2621 | no_cache=0 |
2622 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2623 | if test "${enable_debug_gdb+set}" = set; then | |
2624 | enableval="$enable_debug_gdb" | |
698dcdb6 | 2625 | |
10f2d63a VZ |
2626 | if test "$enableval" = yes; then |
2627 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2628 | else | |
2629 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2630 | fi | |
698dcdb6 | 2631 | |
10f2d63a | 2632 | else |
698dcdb6 | 2633 | |
10f2d63a VZ |
2634 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` |
2635 | if test "x$LINE" != x ; then | |
2636 | eval "DEFAULT_$LINE" | |
2637 | else | |
2638 | no_cache=1 | |
2639 | fi | |
2640 | ||
2641 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
698dcdb6 VZ |
2642 | |
2643 | fi | |
10f2d63a VZ |
2644 | |
2645 | ||
2646 | eval "$ac_cv_use_debug_gdb" | |
2647 | if test "$no_cache" != 1; then | |
2648 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2649 | fi | |
2650 | ||
2651 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
698dcdb6 | 2652 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2653 | else |
698dcdb6 | 2654 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2655 | fi |
698dcdb6 | 2656 | |
10f2d63a | 2657 | |
698dcdb6 | 2658 | echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6 |
19bc6aad | 2659 | echo "configure:2660: checking for --enable-debug_cntxt" >&5 |
10f2d63a VZ |
2660 | no_cache=0 |
2661 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2662 | if test "${enable_debug_cntxt+set}" = set; then | |
2663 | enableval="$enable_debug_cntxt" | |
698dcdb6 | 2664 | |
10f2d63a VZ |
2665 | if test "$enableval" = yes; then |
2666 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2667 | else | |
2668 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2669 | fi | |
698dcdb6 | 2670 | |
10f2d63a | 2671 | else |
698dcdb6 | 2672 | |
10f2d63a VZ |
2673 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` |
2674 | if test "x$LINE" != x ; then | |
2675 | eval "DEFAULT_$LINE" | |
2676 | else | |
2677 | no_cache=1 | |
2678 | fi | |
2679 | ||
2680 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
698dcdb6 VZ |
2681 | |
2682 | fi | |
10f2d63a VZ |
2683 | |
2684 | ||
2685 | eval "$ac_cv_use_debug_cntxt" | |
2686 | if test "$no_cache" != 1; then | |
2687 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2688 | fi | |
2689 | ||
2690 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
698dcdb6 | 2691 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2692 | else |
698dcdb6 | 2693 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2694 | fi |
698dcdb6 | 2695 | |
10f2d63a | 2696 | |
698dcdb6 | 2697 | echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6 |
19bc6aad | 2698 | echo "configure:2699: checking for --enable-mem_tracing" >&5 |
10f2d63a VZ |
2699 | no_cache=0 |
2700 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2701 | if test "${enable_mem_tracing+set}" = set; then | |
2702 | enableval="$enable_mem_tracing" | |
698dcdb6 | 2703 | |
10f2d63a VZ |
2704 | if test "$enableval" = yes; then |
2705 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2706 | else | |
2707 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2708 | fi | |
698dcdb6 | 2709 | |
10f2d63a | 2710 | else |
698dcdb6 | 2711 | |
10f2d63a VZ |
2712 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` |
2713 | if test "x$LINE" != x ; then | |
2714 | eval "DEFAULT_$LINE" | |
2715 | else | |
2716 | no_cache=1 | |
2717 | fi | |
2718 | ||
2719 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
698dcdb6 VZ |
2720 | |
2721 | fi | |
10f2d63a VZ |
2722 | |
2723 | ||
2724 | eval "$ac_cv_use_mem_tracing" | |
2725 | if test "$no_cache" != 1; then | |
2726 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2727 | fi | |
2728 | ||
2729 | if test "$wxUSE_MEM_TRACING" = yes; then | |
698dcdb6 | 2730 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2731 | else |
698dcdb6 | 2732 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2733 | fi |
698dcdb6 | 2734 | |
10f2d63a | 2735 | |
698dcdb6 | 2736 | echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6 |
19bc6aad | 2737 | echo "configure:2738: checking for --enable-profile" >&5 |
10f2d63a VZ |
2738 | no_cache=0 |
2739 | # Check whether --enable-profile or --disable-profile was given. | |
2740 | if test "${enable_profile+set}" = set; then | |
2741 | enableval="$enable_profile" | |
698dcdb6 | 2742 | |
10f2d63a VZ |
2743 | if test "$enableval" = yes; then |
2744 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2745 | else | |
2746 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2747 | fi | |
698dcdb6 | 2748 | |
10f2d63a | 2749 | else |
698dcdb6 | 2750 | |
10f2d63a VZ |
2751 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` |
2752 | if test "x$LINE" != x ; then | |
2753 | eval "DEFAULT_$LINE" | |
2754 | else | |
2755 | no_cache=1 | |
2756 | fi | |
2757 | ||
2758 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
698dcdb6 VZ |
2759 | |
2760 | fi | |
10f2d63a VZ |
2761 | |
2762 | ||
2763 | eval "$ac_cv_use_profile" | |
2764 | if test "$no_cache" != 1; then | |
2765 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2766 | fi | |
2767 | ||
2768 | if test "$wxUSE_PROFILE" = yes; then | |
698dcdb6 | 2769 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2770 | else |
698dcdb6 | 2771 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2772 | fi |
698dcdb6 | 2773 | |
10f2d63a | 2774 | |
698dcdb6 | 2775 | echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6 |
19bc6aad | 2776 | echo "configure:2777: checking for --enable-no_rtti" >&5 |
10f2d63a VZ |
2777 | no_cache=0 |
2778 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2779 | if test "${enable_no_rtti+set}" = set; then | |
2780 | enableval="$enable_no_rtti" | |
698dcdb6 | 2781 | |
10f2d63a VZ |
2782 | if test "$enableval" = yes; then |
2783 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2784 | else | |
2785 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2786 | fi | |
698dcdb6 | 2787 | |
10f2d63a | 2788 | else |
698dcdb6 | 2789 | |
10f2d63a VZ |
2790 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` |
2791 | if test "x$LINE" != x ; then | |
2792 | eval "DEFAULT_$LINE" | |
2793 | else | |
2794 | no_cache=1 | |
2795 | fi | |
2796 | ||
2797 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
698dcdb6 VZ |
2798 | |
2799 | fi | |
10f2d63a VZ |
2800 | |
2801 | ||
2802 | eval "$ac_cv_use_no_rtti" | |
2803 | if test "$no_cache" != 1; then | |
2804 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2805 | fi | |
2806 | ||
2807 | if test "$wxUSE_NO_RTTI" = yes; then | |
698dcdb6 | 2808 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2809 | else |
698dcdb6 | 2810 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2811 | fi |
698dcdb6 | 2812 | |
10f2d63a | 2813 | |
698dcdb6 | 2814 | echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6 |
19bc6aad | 2815 | echo "configure:2816: checking for --enable-no_exceptions" >&5 |
10f2d63a VZ |
2816 | no_cache=0 |
2817 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2818 | if test "${enable_no_exceptions+set}" = set; then | |
2819 | enableval="$enable_no_exceptions" | |
698dcdb6 | 2820 | |
10f2d63a VZ |
2821 | if test "$enableval" = yes; then |
2822 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2823 | else | |
2824 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2825 | fi | |
698dcdb6 | 2826 | |
10f2d63a | 2827 | else |
698dcdb6 | 2828 | |
10f2d63a VZ |
2829 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` |
2830 | if test "x$LINE" != x ; then | |
2831 | eval "DEFAULT_$LINE" | |
2832 | else | |
2833 | no_cache=1 | |
2834 | fi | |
2835 | ||
2836 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
698dcdb6 VZ |
2837 | |
2838 | fi | |
10f2d63a VZ |
2839 | |
2840 | ||
2841 | eval "$ac_cv_use_no_exceptions" | |
2842 | if test "$no_cache" != 1; then | |
2843 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2844 | fi | |
2845 | ||
2846 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
698dcdb6 | 2847 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2848 | else |
698dcdb6 | 2849 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2850 | fi |
698dcdb6 | 2851 | |
10f2d63a | 2852 | |
698dcdb6 | 2853 | echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6 |
19bc6aad | 2854 | echo "configure:2855: checking for --enable-permissive" >&5 |
10f2d63a VZ |
2855 | no_cache=0 |
2856 | # Check whether --enable-permissive or --disable-permissive was given. | |
2857 | if test "${enable_permissive+set}" = set; then | |
2858 | enableval="$enable_permissive" | |
698dcdb6 | 2859 | |
10f2d63a VZ |
2860 | if test "$enableval" = yes; then |
2861 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2862 | else | |
2863 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2864 | fi | |
698dcdb6 | 2865 | |
10f2d63a | 2866 | else |
698dcdb6 | 2867 | |
10f2d63a VZ |
2868 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` |
2869 | if test "x$LINE" != x ; then | |
2870 | eval "DEFAULT_$LINE" | |
2871 | else | |
2872 | no_cache=1 | |
2873 | fi | |
2874 | ||
2875 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
698dcdb6 VZ |
2876 | |
2877 | fi | |
10f2d63a VZ |
2878 | |
2879 | ||
2880 | eval "$ac_cv_use_permissive" | |
2881 | if test "$no_cache" != 1; then | |
2882 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2883 | fi | |
2884 | ||
2885 | if test "$wxUSE_PERMISSIVE" = yes; then | |
698dcdb6 | 2886 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2887 | else |
698dcdb6 | 2888 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2889 | fi |
698dcdb6 | 2890 | |
10f2d63a | 2891 | |
698dcdb6 | 2892 | echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6 |
19bc6aad | 2893 | echo "configure:2894: checking for --enable-no_deps" >&5 |
10f2d63a VZ |
2894 | no_cache=0 |
2895 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2896 | if test "${enable_no_deps+set}" = set; then | |
2897 | enableval="$enable_no_deps" | |
698dcdb6 | 2898 | |
10f2d63a VZ |
2899 | if test "$enableval" = yes; then |
2900 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2901 | else | |
2902 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2903 | fi | |
698dcdb6 | 2904 | |
10f2d63a | 2905 | else |
698dcdb6 | 2906 | |
10f2d63a VZ |
2907 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` |
2908 | if test "x$LINE" != x ; then | |
2909 | eval "DEFAULT_$LINE" | |
2910 | else | |
2911 | no_cache=1 | |
2912 | fi | |
2913 | ||
2914 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
698dcdb6 VZ |
2915 | |
2916 | fi | |
10f2d63a VZ |
2917 | |
2918 | ||
2919 | eval "$ac_cv_use_no_deps" | |
2920 | if test "$no_cache" != 1; then | |
2921 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2922 | fi | |
2923 | ||
2924 | if test "$wxUSE_NO_DEPS" = yes; then | |
698dcdb6 | 2925 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2926 | else |
698dcdb6 | 2927 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2928 | fi |
698dcdb6 VZ |
2929 | |
2930 | ||
10f2d63a | 2931 | |
54276ccf | 2932 | echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6 |
19bc6aad | 2933 | echo "configure:2934: checking for --enable-compat20" >&5 |
54276ccf VZ |
2934 | no_cache=0 |
2935 | # Check whether --enable-compat20 or --disable-compat20 was given. | |
2936 | if test "${enable_compat20+set}" = set; then | |
2937 | enableval="$enable_compat20" | |
2938 | ||
2939 | if test "$enableval" = yes; then | |
2940 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes' | |
2941 | else | |
2942 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no' | |
2943 | fi | |
2944 | ||
2945 | else | |
2946 | ||
2947 | LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}` | |
2948 | if test "x$LINE" != x ; then | |
2949 | eval "DEFAULT_$LINE" | |
2950 | else | |
2951 | no_cache=1 | |
2952 | fi | |
2953 | ||
2954 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2 | |
2955 | ||
2956 | fi | |
2957 | ||
2958 | ||
2959 | eval "$ac_cv_use_compat20" | |
2960 | if test "$no_cache" != 1; then | |
2961 | echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp | |
2962 | fi | |
2963 | ||
2964 | if test "$WXWIN_COMPATIBILITY_2" = yes; then | |
2965 | echo "$ac_t""yes" 1>&6 | |
2966 | else | |
2967 | echo "$ac_t""no" 1>&6 | |
2968 | fi | |
2969 | ||
2970 | ||
2971 | echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6 | |
19bc6aad | 2972 | echo "configure:2973: checking for --enable-compat22" >&5 |
54276ccf VZ |
2973 | no_cache=0 |
2974 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
2975 | if test "${enable_compat22+set}" = set; then | |
2976 | enableval="$enable_compat22" | |
2977 | ||
2978 | if test "$enableval" = yes; then | |
2979 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
2980 | else | |
2981 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
2982 | fi | |
2983 | ||
2984 | else | |
2985 | ||
2986 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` | |
2987 | if test "x$LINE" != x ; then | |
2988 | eval "DEFAULT_$LINE" | |
2989 | else | |
2990 | no_cache=1 | |
2991 | fi | |
2992 | ||
2993 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
2994 | ||
2995 | fi | |
2996 | ||
2997 | ||
2998 | eval "$ac_cv_use_compat22" | |
2999 | if test "$no_cache" != 1; then | |
3000 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
3001 | fi | |
3002 | ||
3003 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
3004 | echo "$ac_t""yes" 1>&6 | |
3005 | else | |
3006 | echo "$ac_t""no" 1>&6 | |
3007 | fi | |
3008 | ||
3009 | ||
3010 | ||
698dcdb6 VZ |
3011 | |
3012 | echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6 | |
19bc6aad | 3013 | echo "configure:3014: checking for --enable-intl" >&5 |
10f2d63a VZ |
3014 | no_cache=0 |
3015 | # Check whether --enable-intl or --disable-intl was given. | |
3016 | if test "${enable_intl+set}" = set; then | |
3017 | enableval="$enable_intl" | |
698dcdb6 | 3018 | |
10f2d63a VZ |
3019 | if test "$enableval" = yes; then |
3020 | ac_cv_use_intl='wxUSE_INTL=yes' | |
3021 | else | |
3022 | ac_cv_use_intl='wxUSE_INTL=no' | |
3023 | fi | |
698dcdb6 | 3024 | |
10f2d63a | 3025 | else |
698dcdb6 | 3026 | |
10f2d63a VZ |
3027 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` |
3028 | if test "x$LINE" != x ; then | |
3029 | eval "DEFAULT_$LINE" | |
3030 | else | |
3031 | no_cache=1 | |
3032 | fi | |
3033 | ||
3034 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
698dcdb6 VZ |
3035 | |
3036 | fi | |
10f2d63a VZ |
3037 | |
3038 | ||
3039 | eval "$ac_cv_use_intl" | |
3040 | if test "$no_cache" != 1; then | |
3041 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
3042 | fi | |
3043 | ||
3044 | if test "$wxUSE_INTL" = yes; then | |
698dcdb6 | 3045 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3046 | else |
698dcdb6 | 3047 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3048 | fi |
698dcdb6 | 3049 | |
10f2d63a | 3050 | |
698dcdb6 | 3051 | echo $ac_n "checking for --enable-config""... $ac_c" 1>&6 |
19bc6aad | 3052 | echo "configure:3053: checking for --enable-config" >&5 |
10f2d63a VZ |
3053 | no_cache=0 |
3054 | # Check whether --enable-config or --disable-config was given. | |
3055 | if test "${enable_config+set}" = set; then | |
3056 | enableval="$enable_config" | |
698dcdb6 | 3057 | |
10f2d63a VZ |
3058 | if test "$enableval" = yes; then |
3059 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
3060 | else | |
3061 | ac_cv_use_config='wxUSE_CONFIG=no' | |
3062 | fi | |
698dcdb6 | 3063 | |
10f2d63a | 3064 | else |
698dcdb6 | 3065 | |
10f2d63a VZ |
3066 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` |
3067 | if test "x$LINE" != x ; then | |
3068 | eval "DEFAULT_$LINE" | |
3069 | else | |
3070 | no_cache=1 | |
3071 | fi | |
3072 | ||
3073 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
698dcdb6 VZ |
3074 | |
3075 | fi | |
10f2d63a VZ |
3076 | |
3077 | ||
3078 | eval "$ac_cv_use_config" | |
3079 | if test "$no_cache" != 1; then | |
3080 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
3081 | fi | |
3082 | ||
3083 | if test "$wxUSE_CONFIG" = yes; then | |
698dcdb6 | 3084 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3085 | else |
698dcdb6 | 3086 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3087 | fi |
698dcdb6 VZ |
3088 | |
3089 | ||
b12915c1 | 3090 | |
a1622950 | 3091 | echo $ac_n "checking for --enable-protocols""... $ac_c" 1>&6 |
19bc6aad | 3092 | echo "configure:3093: checking for --enable-protocols" >&5 |
a1622950 VZ |
3093 | no_cache=0 |
3094 | # Check whether --enable-protocols or --disable-protocols was given. | |
3095 | if test "${enable_protocols+set}" = set; then | |
3096 | enableval="$enable_protocols" | |
3097 | ||
3098 | if test "$enableval" = yes; then | |
3099 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
3100 | else | |
3101 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
3102 | fi | |
3103 | ||
3104 | else | |
3105 | ||
3106 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
3107 | if test "x$LINE" != x ; then | |
3108 | eval "DEFAULT_$LINE" | |
3109 | else | |
3110 | no_cache=1 | |
3111 | fi | |
3112 | ||
3113 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
3114 | ||
3115 | fi | |
3116 | ||
3117 | ||
3118 | eval "$ac_cv_use_protocols" | |
3119 | if test "$no_cache" != 1; then | |
3120 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
3121 | fi | |
3122 | ||
3123 | if test "$wxUSE_PROTOCOL" = yes; then | |
3124 | echo "$ac_t""yes" 1>&6 | |
3125 | else | |
3126 | echo "$ac_t""no" 1>&6 | |
3127 | fi | |
3128 | ||
3129 | ||
3130 | echo $ac_n "checking for --enable-ftp""... $ac_c" 1>&6 | |
19bc6aad | 3131 | echo "configure:3132: checking for --enable-ftp" >&5 |
a1622950 VZ |
3132 | no_cache=0 |
3133 | # Check whether --enable-ftp or --disable-ftp was given. | |
3134 | if test "${enable_ftp+set}" = set; then | |
3135 | enableval="$enable_ftp" | |
3136 | ||
3137 | if test "$enableval" = yes; then | |
3138 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
3139 | else | |
3140 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
3141 | fi | |
3142 | ||
3143 | else | |
3144 | ||
3145 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
3146 | if test "x$LINE" != x ; then | |
3147 | eval "DEFAULT_$LINE" | |
3148 | else | |
3149 | no_cache=1 | |
3150 | fi | |
3151 | ||
3152 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
3153 | ||
3154 | fi | |
3155 | ||
3156 | ||
3157 | eval "$ac_cv_use_ftp" | |
3158 | if test "$no_cache" != 1; then | |
3159 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
3160 | fi | |
3161 | ||
3162 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
3163 | echo "$ac_t""yes" 1>&6 | |
3164 | else | |
3165 | echo "$ac_t""no" 1>&6 | |
3166 | fi | |
3167 | ||
3168 | ||
3169 | echo $ac_n "checking for --enable-http""... $ac_c" 1>&6 | |
19bc6aad | 3170 | echo "configure:3171: checking for --enable-http" >&5 |
a1622950 VZ |
3171 | no_cache=0 |
3172 | # Check whether --enable-http or --disable-http was given. | |
3173 | if test "${enable_http+set}" = set; then | |
3174 | enableval="$enable_http" | |
3175 | ||
3176 | if test "$enableval" = yes; then | |
3177 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
3178 | else | |
3179 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
3180 | fi | |
3181 | ||
3182 | else | |
3183 | ||
3184 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
3185 | if test "x$LINE" != x ; then | |
3186 | eval "DEFAULT_$LINE" | |
3187 | else | |
3188 | no_cache=1 | |
3189 | fi | |
3190 | ||
3191 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
3192 | ||
3193 | fi | |
3194 | ||
3195 | ||
3196 | eval "$ac_cv_use_http" | |
3197 | if test "$no_cache" != 1; then | |
3198 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
3199 | fi | |
3200 | ||
3201 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
3202 | echo "$ac_t""yes" 1>&6 | |
3203 | else | |
3204 | echo "$ac_t""no" 1>&6 | |
3205 | fi | |
3206 | ||
3207 | ||
3208 | echo $ac_n "checking for --enable-fileproto""... $ac_c" 1>&6 | |
19bc6aad | 3209 | echo "configure:3210: checking for --enable-fileproto" >&5 |
a1622950 VZ |
3210 | no_cache=0 |
3211 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
3212 | if test "${enable_fileproto+set}" = set; then | |
3213 | enableval="$enable_fileproto" | |
3214 | ||
3215 | if test "$enableval" = yes; then | |
3216 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
3217 | else | |
3218 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
3219 | fi | |
3220 | ||
3221 | else | |
3222 | ||
3223 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
3224 | if test "x$LINE" != x ; then | |
3225 | eval "DEFAULT_$LINE" | |
3226 | else | |
3227 | no_cache=1 | |
3228 | fi | |
3229 | ||
3230 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
3231 | ||
3232 | fi | |
3233 | ||
3234 | ||
3235 | eval "$ac_cv_use_fileproto" | |
3236 | if test "$no_cache" != 1; then | |
3237 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
3238 | fi | |
3239 | ||
3240 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
3241 | echo "$ac_t""yes" 1>&6 | |
3242 | else | |
3243 | echo "$ac_t""no" 1>&6 | |
3244 | fi | |
3245 | ||
3246 | ||
698dcdb6 | 3247 | echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6 |
19bc6aad | 3248 | echo "configure:3249: checking for --enable-sockets" >&5 |
10f2d63a VZ |
3249 | no_cache=0 |
3250 | # Check whether --enable-sockets or --disable-sockets was given. | |
3251 | if test "${enable_sockets+set}" = set; then | |
3252 | enableval="$enable_sockets" | |
698dcdb6 | 3253 | |
10f2d63a VZ |
3254 | if test "$enableval" = yes; then |
3255 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
3256 | else | |
3257 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
3258 | fi | |
698dcdb6 | 3259 | |
10f2d63a | 3260 | else |
698dcdb6 | 3261 | |
10f2d63a VZ |
3262 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` |
3263 | if test "x$LINE" != x ; then | |
3264 | eval "DEFAULT_$LINE" | |
3265 | else | |
3266 | no_cache=1 | |
3267 | fi | |
3268 | ||
3269 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
698dcdb6 VZ |
3270 | |
3271 | fi | |
10f2d63a VZ |
3272 | |
3273 | ||
3274 | eval "$ac_cv_use_sockets" | |
3275 | if test "$no_cache" != 1; then | |
3276 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
3277 | fi | |
3278 | ||
3279 | if test "$wxUSE_SOCKETS" = yes; then | |
698dcdb6 | 3280 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3281 | else |
698dcdb6 | 3282 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3283 | fi |
698dcdb6 | 3284 | |
b12915c1 | 3285 | |
698dcdb6 VZ |
3286 | |
3287 | echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6 | |
19bc6aad | 3288 | echo "configure:3289: checking for --enable-ipc" >&5 |
10f2d63a | 3289 | no_cache=0 |
eb4efbdc VZ |
3290 | # Check whether --enable-ipc or --disable-ipc was given. |
3291 | if test "${enable_ipc+set}" = set; then | |
3292 | enableval="$enable_ipc" | |
698dcdb6 | 3293 | |
10f2d63a | 3294 | if test "$enableval" = yes; then |
eb4efbdc | 3295 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 3296 | else |
eb4efbdc | 3297 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a | 3298 | fi |
698dcdb6 | 3299 | |
10f2d63a | 3300 | else |
698dcdb6 | 3301 | |
eb4efbdc | 3302 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
3303 | if test "x$LINE" != x ; then |
3304 | eval "DEFAULT_$LINE" | |
3305 | else | |
3306 | no_cache=1 | |
3307 | fi | |
3308 | ||
eb4efbdc | 3309 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
698dcdb6 VZ |
3310 | |
3311 | fi | |
10f2d63a VZ |
3312 | |
3313 | ||
eb4efbdc | 3314 | eval "$ac_cv_use_ipc" |
10f2d63a | 3315 | if test "$no_cache" != 1; then |
eb4efbdc | 3316 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3317 | fi |
3318 | ||
eb4efbdc | 3319 | if test "$wxUSE_IPC" = yes; then |
698dcdb6 | 3320 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3321 | else |
698dcdb6 | 3322 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3323 | fi |
698dcdb6 VZ |
3324 | |
3325 | ||
eb4efbdc | 3326 | |
1e6feb95 | 3327 | echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6 |
19bc6aad | 3328 | echo "configure:3329: checking for --enable-cmdline" >&5 |
1e6feb95 VZ |
3329 | no_cache=0 |
3330 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
3331 | if test "${enable_cmdline+set}" = set; then | |
3332 | enableval="$enable_cmdline" | |
3333 | ||
3334 | if test "$enableval" = yes; then | |
3335 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
3336 | else | |
3337 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
3338 | fi | |
3339 | ||
3340 | else | |
3341 | ||
3342 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
3343 | if test "x$LINE" != x ; then | |
3344 | eval "DEFAULT_$LINE" | |
3345 | else | |
3346 | no_cache=1 | |
3347 | fi | |
3348 | ||
3349 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
3350 | ||
3351 | fi | |
3352 | ||
3353 | ||
3354 | eval "$ac_cv_use_cmdline" | |
3355 | if test "$no_cache" != 1; then | |
3356 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
3357 | fi | |
3358 | ||
3359 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
3360 | echo "$ac_t""yes" 1>&6 | |
3361 | else | |
3362 | echo "$ac_t""no" 1>&6 | |
3363 | fi | |
3364 | ||
3365 | ||
3366 | echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6 | |
19bc6aad | 3367 | echo "configure:3368: checking for --enable-datetime" >&5 |
1e6feb95 VZ |
3368 | no_cache=0 |
3369 | # Check whether --enable-datetime or --disable-datetime was given. | |
3370 | if test "${enable_datetime+set}" = set; then | |
3371 | enableval="$enable_datetime" | |
3372 | ||
3373 | if test "$enableval" = yes; then | |
3374 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
3375 | else | |
3376 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
3377 | fi | |
3378 | ||
3379 | else | |
3380 | ||
3381 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
3382 | if test "x$LINE" != x ; then | |
3383 | eval "DEFAULT_$LINE" | |
3384 | else | |
3385 | no_cache=1 | |
3386 | fi | |
3387 | ||
3388 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
3389 | ||
3390 | fi | |
3391 | ||
3392 | ||
3393 | eval "$ac_cv_use_datetime" | |
3394 | if test "$no_cache" != 1; then | |
3395 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
3396 | fi | |
3397 | ||
3398 | if test "$wxUSE_DATETIME" = yes; then | |
3399 | echo "$ac_t""yes" 1>&6 | |
3400 | else | |
3401 | echo "$ac_t""no" 1>&6 | |
3402 | fi | |
3403 | ||
3404 | ||
3405 | echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6 | |
19bc6aad | 3406 | echo "configure:3407: checking for --enable-timedate" >&5 |
1e6feb95 VZ |
3407 | no_cache=0 |
3408 | # Check whether --enable-timedate or --disable-timedate was given. | |
3409 | if test "${enable_timedate+set}" = set; then | |
3410 | enableval="$enable_timedate" | |
3411 | ||
3412 | if test "$enableval" = yes; then | |
3413 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
3414 | else | |
3415 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
3416 | fi | |
3417 | ||
3418 | else | |
3419 | ||
3420 | LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}` | |
3421 | if test "x$LINE" != x ; then | |
3422 | eval "DEFAULT_$LINE" | |
3423 | else | |
3424 | no_cache=1 | |
3425 | fi | |
3426 | ||
3427 | ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
3428 | ||
3429 | fi | |
3430 | ||
3431 | ||
3432 | eval "$ac_cv_use_timedate" | |
3433 | if test "$no_cache" != 1; then | |
3434 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
3435 | fi | |
3436 | ||
3437 | if test "$wxUSE_TIMEDATE" = yes; then | |
3438 | echo "$ac_t""yes" 1>&6 | |
3439 | else | |
3440 | echo "$ac_t""no" 1>&6 | |
3441 | fi | |
3442 | ||
3443 | ||
3444 | echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6 | |
19bc6aad | 3445 | echo "configure:3446: checking for --enable-stopwatch" >&5 |
1e6feb95 VZ |
3446 | no_cache=0 |
3447 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
3448 | if test "${enable_stopwatch+set}" = set; then | |
3449 | enableval="$enable_stopwatch" | |
3450 | ||
3451 | if test "$enableval" = yes; then | |
3452 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
3453 | else | |
3454 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
3455 | fi | |
3456 | ||
3457 | else | |
3458 | ||
3459 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
3460 | if test "x$LINE" != x ; then | |
3461 | eval "DEFAULT_$LINE" | |
3462 | else | |
3463 | no_cache=1 | |
3464 | fi | |
3465 | ||
3466 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
3467 | ||
3468 | fi | |
3469 | ||
3470 | ||
3471 | eval "$ac_cv_use_stopwatch" | |
3472 | if test "$no_cache" != 1; then | |
3473 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
3474 | fi | |
3475 | ||
3476 | if test "$wxUSE_STOPWATCH" = yes; then | |
3477 | echo "$ac_t""yes" 1>&6 | |
3478 | else | |
3479 | echo "$ac_t""no" 1>&6 | |
3480 | fi | |
3481 | ||
3482 | ||
698dcdb6 | 3483 | echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6 |
19bc6aad | 3484 | echo "configure:3485: checking for --enable-dialupman" >&5 |
10f2d63a | 3485 | no_cache=0 |
eb4efbdc VZ |
3486 | # Check whether --enable-dialupman or --disable-dialupman was given. |
3487 | if test "${enable_dialupman+set}" = set; then | |
3488 | enableval="$enable_dialupman" | |
698dcdb6 | 3489 | |
10f2d63a | 3490 | if test "$enableval" = yes; then |
eb4efbdc | 3491 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 3492 | else |
eb4efbdc | 3493 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a | 3494 | fi |
698dcdb6 | 3495 | |
10f2d63a | 3496 | else |
698dcdb6 | 3497 | |
eb4efbdc | 3498 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3499 | if test "x$LINE" != x ; then |
3500 | eval "DEFAULT_$LINE" | |
3501 | else | |
3502 | no_cache=1 | |
3503 | fi | |
3504 | ||
eb4efbdc | 3505 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
698dcdb6 VZ |
3506 | |
3507 | fi | |
10f2d63a VZ |
3508 | |
3509 | ||
eb4efbdc | 3510 | eval "$ac_cv_use_dialupman" |
10f2d63a | 3511 | if test "$no_cache" != 1; then |
eb4efbdc | 3512 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3513 | fi |
3514 | ||
eb4efbdc | 3515 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
698dcdb6 | 3516 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3517 | else |
698dcdb6 | 3518 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3519 | fi |
698dcdb6 | 3520 | |
10f2d63a | 3521 | |
698dcdb6 | 3522 | echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6 |
19bc6aad | 3523 | echo "configure:3524: checking for --enable-apple_ieee" >&5 |
10f2d63a VZ |
3524 | no_cache=0 |
3525 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
3526 | if test "${enable_apple_ieee+set}" = set; then | |
3527 | enableval="$enable_apple_ieee" | |
698dcdb6 | 3528 | |
10f2d63a VZ |
3529 | if test "$enableval" = yes; then |
3530 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
3531 | else | |
3532 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
3533 | fi | |
698dcdb6 | 3534 | |
10f2d63a | 3535 | else |
698dcdb6 | 3536 | |
10f2d63a VZ |
3537 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` |
3538 | if test "x$LINE" != x ; then | |
3539 | eval "DEFAULT_$LINE" | |
3540 | else | |
3541 | no_cache=1 | |
3542 | fi | |
3543 | ||
3544 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
698dcdb6 VZ |
3545 | |
3546 | fi | |
10f2d63a VZ |
3547 | |
3548 | ||
3549 | eval "$ac_cv_use_apple_ieee" | |
3550 | if test "$no_cache" != 1; then | |
3551 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
3552 | fi | |
3553 | ||
3554 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
698dcdb6 | 3555 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3556 | else |
698dcdb6 | 3557 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3558 | fi |
698dcdb6 | 3559 | |
10f2d63a | 3560 | |
1e6feb95 | 3561 | echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6 |
19bc6aad | 3562 | echo "configure:3563: checking for --enable-timer" >&5 |
10f2d63a | 3563 | no_cache=0 |
1e6feb95 VZ |
3564 | # Check whether --enable-timer or --disable-timer was given. |
3565 | if test "${enable_timer+set}" = set; then | |
3566 | enableval="$enable_timer" | |
698dcdb6 | 3567 | |
10f2d63a | 3568 | if test "$enableval" = yes; then |
1e6feb95 | 3569 | ac_cv_use_timer='wxUSE_TIMER=yes' |
10f2d63a | 3570 | else |
1e6feb95 | 3571 | ac_cv_use_timer='wxUSE_TIMER=no' |
10f2d63a | 3572 | fi |
698dcdb6 | 3573 | |
10f2d63a | 3574 | else |
698dcdb6 | 3575 | |
1e6feb95 | 3576 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3577 | if test "x$LINE" != x ; then |
3578 | eval "DEFAULT_$LINE" | |
3579 | else | |
3580 | no_cache=1 | |
3581 | fi | |
3582 | ||
1e6feb95 | 3583 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER |
698dcdb6 VZ |
3584 | |
3585 | fi | |
10f2d63a VZ |
3586 | |
3587 | ||
1e6feb95 | 3588 | eval "$ac_cv_use_timer" |
10f2d63a | 3589 | if test "$no_cache" != 1; then |
1e6feb95 | 3590 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3591 | fi |
3592 | ||
1e6feb95 | 3593 | if test "$wxUSE_TIMER" = yes; then |
698dcdb6 | 3594 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3595 | else |
698dcdb6 | 3596 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3597 | fi |
698dcdb6 | 3598 | |
10f2d63a | 3599 | |
698dcdb6 | 3600 | echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6 |
19bc6aad | 3601 | echo "configure:3602: checking for --enable-wave" >&5 |
10f2d63a VZ |
3602 | no_cache=0 |
3603 | # Check whether --enable-wave or --disable-wave was given. | |
3604 | if test "${enable_wave+set}" = set; then | |
3605 | enableval="$enable_wave" | |
698dcdb6 | 3606 | |
10f2d63a VZ |
3607 | if test "$enableval" = yes; then |
3608 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
3609 | else | |
3610 | ac_cv_use_wave='wxUSE_WAVE=no' | |
3611 | fi | |
698dcdb6 | 3612 | |
10f2d63a | 3613 | else |
698dcdb6 | 3614 | |
10f2d63a VZ |
3615 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` |
3616 | if test "x$LINE" != x ; then | |
3617 | eval "DEFAULT_$LINE" | |
3618 | else | |
3619 | no_cache=1 | |
3620 | fi | |
3621 | ||
3622 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
698dcdb6 VZ |
3623 | |
3624 | fi | |
10f2d63a VZ |
3625 | |
3626 | ||
3627 | eval "$ac_cv_use_wave" | |
3628 | if test "$no_cache" != 1; then | |
3629 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
3630 | fi | |
3631 | ||
3632 | if test "$wxUSE_WAVE" = yes; then | |
698dcdb6 | 3633 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3634 | else |
698dcdb6 | 3635 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3636 | fi |
698dcdb6 | 3637 | |
10f2d63a | 3638 | |
698dcdb6 | 3639 | echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6 |
19bc6aad | 3640 | echo "configure:3641: checking for --enable-fraction" >&5 |
10f2d63a VZ |
3641 | no_cache=0 |
3642 | # Check whether --enable-fraction or --disable-fraction was given. | |
3643 | if test "${enable_fraction+set}" = set; then | |
3644 | enableval="$enable_fraction" | |
698dcdb6 | 3645 | |
10f2d63a VZ |
3646 | if test "$enableval" = yes; then |
3647 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
3648 | else | |
3649 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
3650 | fi | |
698dcdb6 | 3651 | |
10f2d63a | 3652 | else |
698dcdb6 | 3653 | |
10f2d63a VZ |
3654 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` |
3655 | if test "x$LINE" != x ; then | |
3656 | eval "DEFAULT_$LINE" | |
3657 | else | |
3658 | no_cache=1 | |
3659 | fi | |
3660 | ||
3661 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
698dcdb6 VZ |
3662 | |
3663 | fi | |
10f2d63a VZ |
3664 | |
3665 | ||
3666 | eval "$ac_cv_use_fraction" | |
3667 | if test "$no_cache" != 1; then | |
3668 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
3669 | fi | |
3670 | ||
3671 | if test "$wxUSE_FRACTION" = yes; then | |
698dcdb6 | 3672 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3673 | else |
698dcdb6 | 3674 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3675 | fi |
698dcdb6 | 3676 | |
10f2d63a | 3677 | |
698dcdb6 | 3678 | echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6 |
19bc6aad | 3679 | echo "configure:3680: checking for --enable-dynlib" >&5 |
10f2d63a VZ |
3680 | no_cache=0 |
3681 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
3682 | if test "${enable_dynlib+set}" = set; then | |
3683 | enableval="$enable_dynlib" | |
698dcdb6 | 3684 | |
10f2d63a VZ |
3685 | if test "$enableval" = yes; then |
3686 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
3687 | else | |
3688 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
3689 | fi | |
698dcdb6 | 3690 | |
10f2d63a | 3691 | else |
698dcdb6 | 3692 | |
10f2d63a VZ |
3693 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` |
3694 | if test "x$LINE" != x ; then | |
3695 | eval "DEFAULT_$LINE" | |
3696 | else | |
3697 | no_cache=1 | |
3698 | fi | |
3699 | ||
3700 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
698dcdb6 VZ |
3701 | |
3702 | fi | |
10f2d63a VZ |
3703 | |
3704 | ||
3705 | eval "$ac_cv_use_dynlib" | |
3706 | if test "$no_cache" != 1; then | |
3707 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
3708 | fi | |
3709 | ||
3710 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
698dcdb6 | 3711 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3712 | else |
698dcdb6 | 3713 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3714 | fi |
698dcdb6 | 3715 | |
10f2d63a | 3716 | |
0b9ab0bd | 3717 | echo $ac_n "checking for --enable-dynamicloader""... $ac_c" 1>&6 |
19bc6aad | 3718 | echo "configure:3719: checking for --enable-dynamicloader" >&5 |
0b9ab0bd RL |
3719 | no_cache=0 |
3720 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
3721 | if test "${enable_dynamicloader+set}" = set; then | |
3722 | enableval="$enable_dynamicloader" | |
3723 | ||
3724 | if test "$enableval" = yes; then | |
3725 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
3726 | else | |
3727 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
3728 | fi | |
3729 | ||
3730 | else | |
3731 | ||
3732 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` | |
3733 | if test "x$LINE" != x ; then | |
3734 | eval "DEFAULT_$LINE" | |
3735 | else | |
3736 | no_cache=1 | |
3737 | fi | |
3738 | ||
3739 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
3740 | ||
3741 | fi | |
3742 | ||
3743 | ||
3744 | eval "$ac_cv_use_dynamicloader" | |
3745 | if test "$no_cache" != 1; then | |
3746 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
3747 | fi | |
3748 | ||
3749 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
3750 | echo "$ac_t""yes" 1>&6 | |
3751 | else | |
3752 | echo "$ac_t""no" 1>&6 | |
3753 | fi | |
3754 | ||
3755 | ||
698dcdb6 | 3756 | echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6 |
19bc6aad | 3757 | echo "configure:3758: checking for --enable-longlong" >&5 |
10f2d63a VZ |
3758 | no_cache=0 |
3759 | # Check whether --enable-longlong or --disable-longlong was given. | |
3760 | if test "${enable_longlong+set}" = set; then | |
3761 | enableval="$enable_longlong" | |
698dcdb6 | 3762 | |
10f2d63a VZ |
3763 | if test "$enableval" = yes; then |
3764 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
3765 | else | |
3766 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
3767 | fi | |
698dcdb6 | 3768 | |
10f2d63a | 3769 | else |
698dcdb6 | 3770 | |
10f2d63a VZ |
3771 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` |
3772 | if test "x$LINE" != x ; then | |
3773 | eval "DEFAULT_$LINE" | |
3774 | else | |
3775 | no_cache=1 | |
3776 | fi | |
3777 | ||
3778 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
698dcdb6 VZ |
3779 | |
3780 | fi | |
10f2d63a VZ |
3781 | |
3782 | ||
3783 | eval "$ac_cv_use_longlong" | |
3784 | if test "$no_cache" != 1; then | |
3785 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
3786 | fi | |
3787 | ||
3788 | if test "$wxUSE_LONGLONG" = yes; then | |
698dcdb6 | 3789 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3790 | else |
698dcdb6 | 3791 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3792 | fi |
698dcdb6 | 3793 | |
10f2d63a | 3794 | |
698dcdb6 | 3795 | echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6 |
19bc6aad | 3796 | echo "configure:3797: checking for --enable-geometry" >&5 |
e8f65ba6 RR |
3797 | no_cache=0 |
3798 | # Check whether --enable-geometry or --disable-geometry was given. | |
3799 | if test "${enable_geometry+set}" = set; then | |
3800 | enableval="$enable_geometry" | |
698dcdb6 | 3801 | |
e8f65ba6 RR |
3802 | if test "$enableval" = yes; then |
3803 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
3804 | else | |
3805 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
3806 | fi | |
698dcdb6 | 3807 | |
e8f65ba6 | 3808 | else |
698dcdb6 | 3809 | |
e8f65ba6 RR |
3810 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` |
3811 | if test "x$LINE" != x ; then | |
3812 | eval "DEFAULT_$LINE" | |
3813 | else | |
3814 | no_cache=1 | |
3815 | fi | |
3816 | ||
3817 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
698dcdb6 VZ |
3818 | |
3819 | fi | |
e8f65ba6 RR |
3820 | |
3821 | ||
3822 | eval "$ac_cv_use_geometry" | |
3823 | if test "$no_cache" != 1; then | |
3824 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
3825 | fi | |
3826 | ||
3827 | if test "$wxUSE_GEOMETRY" = yes; then | |
698dcdb6 | 3828 | echo "$ac_t""yes" 1>&6 |
e8f65ba6 | 3829 | else |
698dcdb6 | 3830 | echo "$ac_t""no" 1>&6 |
e8f65ba6 | 3831 | fi |
698dcdb6 | 3832 | |
e8f65ba6 | 3833 | |
698dcdb6 | 3834 | echo $ac_n "checking for --enable-log""... $ac_c" 1>&6 |
19bc6aad | 3835 | echo "configure:3836: checking for --enable-log" >&5 |
10f2d63a VZ |
3836 | no_cache=0 |
3837 | # Check whether --enable-log or --disable-log was given. | |
3838 | if test "${enable_log+set}" = set; then | |
3839 | enableval="$enable_log" | |
698dcdb6 | 3840 | |
10f2d63a VZ |
3841 | if test "$enableval" = yes; then |
3842 | ac_cv_use_log='wxUSE_LOG=yes' | |
3843 | else | |
3844 | ac_cv_use_log='wxUSE_LOG=no' | |
3845 | fi | |
698dcdb6 | 3846 | |
10f2d63a | 3847 | else |
698dcdb6 | 3848 | |
10f2d63a VZ |
3849 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` |
3850 | if test "x$LINE" != x ; then | |
3851 | eval "DEFAULT_$LINE" | |
3852 | else | |
3853 | no_cache=1 | |
3854 | fi | |
3855 | ||
3856 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
698dcdb6 VZ |
3857 | |
3858 | fi | |
10f2d63a VZ |
3859 | |
3860 | ||
3861 | eval "$ac_cv_use_log" | |
3862 | if test "$no_cache" != 1; then | |
3863 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
3864 | fi | |
3865 | ||
3866 | if test "$wxUSE_LOG" = yes; then | |
698dcdb6 | 3867 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3868 | else |
698dcdb6 | 3869 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3870 | fi |
698dcdb6 | 3871 | |
10f2d63a | 3872 | |
698dcdb6 | 3873 | echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6 |
19bc6aad | 3874 | echo "configure:3875: checking for --enable-streams" >&5 |
10f2d63a VZ |
3875 | no_cache=0 |
3876 | # Check whether --enable-streams or --disable-streams was given. | |
3877 | if test "${enable_streams+set}" = set; then | |
3878 | enableval="$enable_streams" | |
698dcdb6 | 3879 | |
10f2d63a VZ |
3880 | if test "$enableval" = yes; then |
3881 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
3882 | else | |
3883 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
3884 | fi | |
698dcdb6 | 3885 | |
10f2d63a | 3886 | else |
698dcdb6 | 3887 | |
10f2d63a VZ |
3888 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` |
3889 | if test "x$LINE" != x ; then | |
3890 | eval "DEFAULT_$LINE" | |
3891 | else | |
3892 | no_cache=1 | |
3893 | fi | |
3894 | ||
3895 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
698dcdb6 VZ |
3896 | |
3897 | fi | |
10f2d63a VZ |
3898 | |
3899 | ||
3900 | eval "$ac_cv_use_streams" | |
3901 | if test "$no_cache" != 1; then | |
3902 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
3903 | fi | |
3904 | ||
3905 | if test "$wxUSE_STREAMS" = yes; then | |
698dcdb6 | 3906 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3907 | else |
698dcdb6 | 3908 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3909 | fi |
698dcdb6 | 3910 | |
10f2d63a | 3911 | |
698dcdb6 | 3912 | echo $ac_n "checking for --enable-file""... $ac_c" 1>&6 |
19bc6aad | 3913 | echo "configure:3914: checking for --enable-file" >&5 |
10f2d63a VZ |
3914 | no_cache=0 |
3915 | # Check whether --enable-file or --disable-file was given. | |
3916 | if test "${enable_file+set}" = set; then | |
3917 | enableval="$enable_file" | |
698dcdb6 | 3918 | |
10f2d63a VZ |
3919 | if test "$enableval" = yes; then |
3920 | ac_cv_use_file='wxUSE_FILE=yes' | |
3921 | else | |
3922 | ac_cv_use_file='wxUSE_FILE=no' | |
3923 | fi | |
698dcdb6 | 3924 | |
10f2d63a | 3925 | else |
698dcdb6 | 3926 | |
10f2d63a VZ |
3927 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` |
3928 | if test "x$LINE" != x ; then | |
3929 | eval "DEFAULT_$LINE" | |
3930 | else | |
3931 | no_cache=1 | |
3932 | fi | |
3933 | ||
3934 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
698dcdb6 VZ |
3935 | |
3936 | fi | |
10f2d63a VZ |
3937 | |
3938 | ||
3939 | eval "$ac_cv_use_file" | |
3940 | if test "$no_cache" != 1; then | |
3941 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
3942 | fi | |
3943 | ||
3944 | if test "$wxUSE_FILE" = yes; then | |
698dcdb6 | 3945 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3946 | else |
698dcdb6 | 3947 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3948 | fi |
698dcdb6 | 3949 | |
10f2d63a | 3950 | |
1e6feb95 | 3951 | echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6 |
19bc6aad | 3952 | echo "configure:3953: checking for --enable-ffile" >&5 |
10f2d63a | 3953 | no_cache=0 |
1e6feb95 VZ |
3954 | # Check whether --enable-ffile or --disable-ffile was given. |
3955 | if test "${enable_ffile+set}" = set; then | |
3956 | enableval="$enable_ffile" | |
698dcdb6 | 3957 | |
10f2d63a | 3958 | if test "$enableval" = yes; then |
1e6feb95 | 3959 | ac_cv_use_ffile='wxUSE_FFILE=yes' |
10f2d63a | 3960 | else |
1e6feb95 | 3961 | ac_cv_use_ffile='wxUSE_FFILE=no' |
10f2d63a | 3962 | fi |
698dcdb6 | 3963 | |
10f2d63a | 3964 | else |
698dcdb6 | 3965 | |
1e6feb95 | 3966 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
3967 | if test "x$LINE" != x ; then |
3968 | eval "DEFAULT_$LINE" | |
3969 | else | |
3970 | no_cache=1 | |
3971 | fi | |
3972 | ||
1e6feb95 | 3973 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE |
698dcdb6 VZ |
3974 | |
3975 | fi | |
10f2d63a VZ |
3976 | |
3977 | ||
1e6feb95 | 3978 | eval "$ac_cv_use_ffile" |
10f2d63a | 3979 | if test "$no_cache" != 1; then |
1e6feb95 | 3980 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3981 | fi |
3982 | ||
1e6feb95 | 3983 | if test "$wxUSE_FFILE" = yes; then |
698dcdb6 | 3984 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3985 | else |
698dcdb6 | 3986 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3987 | fi |
698dcdb6 | 3988 | |
10f2d63a | 3989 | |
a3a584a7 | 3990 | echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6 |
19bc6aad | 3991 | echo "configure:3992: checking for --enable-textbuf" >&5 |
a3a584a7 VZ |
3992 | no_cache=0 |
3993 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
3994 | if test "${enable_textbuf+set}" = set; then | |
3995 | enableval="$enable_textbuf" | |
3996 | ||
3997 | if test "$enableval" = yes; then | |
3998 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
3999 | else | |
4000 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
4001 | fi | |
4002 | ||
4003 | else | |
4004 | ||
4005 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` | |
4006 | if test "x$LINE" != x ; then | |
4007 | eval "DEFAULT_$LINE" | |
4008 | else | |
4009 | no_cache=1 | |
4010 | fi | |
4011 | ||
4012 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
4013 | ||
4014 | fi | |
4015 | ||
4016 | ||
4017 | eval "$ac_cv_use_textbuf" | |
4018 | if test "$no_cache" != 1; then | |
4019 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
4020 | fi | |
4021 | ||
4022 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
4023 | echo "$ac_t""yes" 1>&6 | |
4024 | else | |
4025 | echo "$ac_t""no" 1>&6 | |
4026 | fi | |
4027 | ||
4028 | ||
1e6feb95 | 4029 | echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6 |
19bc6aad | 4030 | echo "configure:4031: checking for --enable-textfile" >&5 |
10f2d63a | 4031 | no_cache=0 |
1e6feb95 VZ |
4032 | # Check whether --enable-textfile or --disable-textfile was given. |
4033 | if test "${enable_textfile+set}" = set; then | |
4034 | enableval="$enable_textfile" | |
698dcdb6 | 4035 | |
10f2d63a | 4036 | if test "$enableval" = yes; then |
1e6feb95 | 4037 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' |
10f2d63a | 4038 | else |
1e6feb95 | 4039 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' |
10f2d63a | 4040 | fi |
698dcdb6 | 4041 | |
10f2d63a | 4042 | else |
698dcdb6 | 4043 | |
1e6feb95 | 4044 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4045 | if test "x$LINE" != x ; then |
4046 | eval "DEFAULT_$LINE" | |
4047 | else | |
4048 | no_cache=1 | |
4049 | fi | |
4050 | ||
1e6feb95 | 4051 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE |
698dcdb6 VZ |
4052 | |
4053 | fi | |
10f2d63a VZ |
4054 | |
4055 | ||
1e6feb95 | 4056 | eval "$ac_cv_use_textfile" |
10f2d63a | 4057 | if test "$no_cache" != 1; then |
1e6feb95 | 4058 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4059 | fi |
4060 | ||
1e6feb95 | 4061 | if test "$wxUSE_TEXTFILE" = yes; then |
698dcdb6 | 4062 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4063 | else |
698dcdb6 | 4064 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4065 | fi |
698dcdb6 | 4066 | |
10f2d63a | 4067 | |
1e6feb95 | 4068 | echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6 |
19bc6aad | 4069 | echo "configure:4070: checking for --enable-fontmap" >&5 |
10f2d63a | 4070 | no_cache=0 |
1e6feb95 VZ |
4071 | # Check whether --enable-fontmap or --disable-fontmap was given. |
4072 | if test "${enable_fontmap+set}" = set; then | |
4073 | enableval="$enable_fontmap" | |
698dcdb6 | 4074 | |
10f2d63a | 4075 | if test "$enableval" = yes; then |
1e6feb95 | 4076 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' |
10f2d63a | 4077 | else |
1e6feb95 | 4078 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' |
10f2d63a | 4079 | fi |
698dcdb6 | 4080 | |
10f2d63a | 4081 | else |
698dcdb6 | 4082 | |
1e6feb95 | 4083 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` |
10f2d63a VZ |
4084 | if test "x$LINE" != x ; then |
4085 | eval "DEFAULT_$LINE" | |
4086 | else | |
4087 | no_cache=1 | |
4088 | fi | |
4089 | ||
1e6feb95 | 4090 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP |
698dcdb6 VZ |
4091 | |
4092 | fi | |
10f2d63a VZ |
4093 | |
4094 | ||
1e6feb95 | 4095 | eval "$ac_cv_use_fontmap" |
10f2d63a | 4096 | if test "$no_cache" != 1; then |
1e6feb95 | 4097 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4098 | fi |
4099 | ||
1e6feb95 | 4100 | if test "$wxUSE_FONTMAP" = yes; then |
698dcdb6 | 4101 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4102 | else |
698dcdb6 | 4103 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4104 | fi |
698dcdb6 | 4105 | |
10f2d63a | 4106 | |
1e6feb95 | 4107 | echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6 |
19bc6aad | 4108 | echo "configure:4109: checking for --enable-unicode" >&5 |
10f2d63a | 4109 | no_cache=0 |
1e6feb95 VZ |
4110 | # Check whether --enable-unicode or --disable-unicode was given. |
4111 | if test "${enable_unicode+set}" = set; then | |
4112 | enableval="$enable_unicode" | |
4113 | ||
4114 | if test "$enableval" = yes; then | |
4115 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
4116 | else | |
4117 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
4118 | fi | |
4119 | ||
4120 | else | |
4121 | ||
4122 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
4123 | if test "x$LINE" != x ; then | |
4124 | eval "DEFAULT_$LINE" | |
4125 | else | |
4126 | no_cache=1 | |
4127 | fi | |
4128 | ||
4129 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
4130 | ||
4131 | fi | |
4132 | ||
4133 | ||
4134 | eval "$ac_cv_use_unicode" | |
4135 | if test "$no_cache" != 1; then | |
4136 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
4137 | fi | |
4138 | ||
4139 | if test "$wxUSE_UNICODE" = yes; then | |
4140 | echo "$ac_t""yes" 1>&6 | |
4141 | else | |
4142 | echo "$ac_t""no" 1>&6 | |
4143 | fi | |
4144 | ||
4145 | ||
a72a4bfa | 4146 | echo $ac_n "checking for --enable-mslu""... $ac_c" 1>&6 |
19bc6aad | 4147 | echo "configure:4148: checking for --enable-mslu" >&5 |
a72a4bfa VS |
4148 | no_cache=0 |
4149 | # Check whether --enable-mslu or --disable-mslu was given. | |
4150 | if test "${enable_mslu+set}" = set; then | |
4151 | enableval="$enable_mslu" | |
4152 | ||
4153 | if test "$enableval" = yes; then | |
4154 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
4155 | else | |
4156 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
4157 | fi | |
4158 | ||
4159 | else | |
4160 | ||
4161 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` | |
4162 | if test "x$LINE" != x ; then | |
4163 | eval "DEFAULT_$LINE" | |
4164 | else | |
4165 | no_cache=1 | |
4166 | fi | |
4167 | ||
4168 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
4169 | ||
4170 | fi | |
4171 | ||
4172 | ||
4173 | eval "$ac_cv_use_mslu" | |
4174 | if test "$no_cache" != 1; then | |
4175 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
4176 | fi | |
4177 | ||
4178 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
4179 | echo "$ac_t""yes" 1>&6 | |
4180 | else | |
4181 | echo "$ac_t""no" 1>&6 | |
4182 | fi | |
4183 | ||
4184 | ||
1e6feb95 | 4185 | echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6 |
19bc6aad | 4186 | echo "configure:4187: checking for --enable-wxprintfv" >&5 |
1e6feb95 VZ |
4187 | no_cache=0 |
4188 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
4189 | if test "${enable_wxprintfv+set}" = set; then | |
4190 | enableval="$enable_wxprintfv" | |
4191 | ||
4192 | if test "$enableval" = yes; then | |
10f2d63a VZ |
4193 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' |
4194 | else | |
4195 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
4196 | fi | |
698dcdb6 | 4197 | |
10f2d63a | 4198 | else |
698dcdb6 | 4199 | |
10f2d63a VZ |
4200 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` |
4201 | if test "x$LINE" != x ; then | |
4202 | eval "DEFAULT_$LINE" | |
4203 | else | |
4204 | no_cache=1 | |
4205 | fi | |
4206 | ||
4207 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
698dcdb6 VZ |
4208 | |
4209 | fi | |
10f2d63a VZ |
4210 | |
4211 | ||
4212 | eval "$ac_cv_use_wxprintfv" | |
4213 | if test "$no_cache" != 1; then | |
4214 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
4215 | fi | |
4216 | ||
4217 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
698dcdb6 | 4218 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4219 | else |
698dcdb6 | 4220 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4221 | fi |
698dcdb6 | 4222 | |
10f2d63a | 4223 | |
698dcdb6 | 4224 | echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6 |
19bc6aad | 4225 | echo "configure:4226: checking for --enable-std_iostreams" >&5 |
10f2d63a VZ |
4226 | no_cache=0 |
4227 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
4228 | if test "${enable_std_iostreams+set}" = set; then | |
4229 | enableval="$enable_std_iostreams" | |
698dcdb6 | 4230 | |
10f2d63a VZ |
4231 | if test "$enableval" = yes; then |
4232 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
4233 | else | |
4234 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
4235 | fi | |
698dcdb6 | 4236 | |
10f2d63a | 4237 | else |
698dcdb6 | 4238 | |
10f2d63a VZ |
4239 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
4240 | if test "x$LINE" != x ; then | |
4241 | eval "DEFAULT_$LINE" | |
4242 | else | |
4243 | no_cache=1 | |
4244 | fi | |
4245 | ||
4246 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
698dcdb6 VZ |
4247 | |
4248 | fi | |
10f2d63a VZ |
4249 | |
4250 | ||
4251 | eval "$ac_cv_use_std_iostreams" | |
4252 | if test "$no_cache" != 1; then | |
4253 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
4254 | fi | |
4255 | ||
4256 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
698dcdb6 | 4257 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4258 | else |
698dcdb6 | 4259 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4260 | fi |
698dcdb6 | 4261 | |
10f2d63a | 4262 | |
698dcdb6 | 4263 | echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6 |
19bc6aad | 4264 | echo "configure:4265: checking for --enable-filesystem" >&5 |
24528b0c VS |
4265 | no_cache=0 |
4266 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
4267 | if test "${enable_filesystem+set}" = set; then | |
4268 | enableval="$enable_filesystem" | |
698dcdb6 | 4269 | |
24528b0c VS |
4270 | if test "$enableval" = yes; then |
4271 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
4272 | else | |
4273 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
4274 | fi | |
698dcdb6 | 4275 | |
24528b0c | 4276 | else |
698dcdb6 | 4277 | |
24528b0c VS |
4278 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` |
4279 | if test "x$LINE" != x ; then | |
4280 | eval "DEFAULT_$LINE" | |
4281 | else | |
4282 | no_cache=1 | |
4283 | fi | |
4284 | ||
4285 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
698dcdb6 VZ |
4286 | |
4287 | fi | |
24528b0c VS |
4288 | |
4289 | ||
4290 | eval "$ac_cv_use_filesystem" | |
4291 | if test "$no_cache" != 1; then | |
4292 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
4293 | fi | |
4294 | ||
4295 | if test "$wxUSE_FILESYSTEM" = yes; then | |
698dcdb6 | 4296 | echo "$ac_t""yes" 1>&6 |
24528b0c | 4297 | else |
698dcdb6 | 4298 | echo "$ac_t""no" 1>&6 |
24528b0c | 4299 | fi |
698dcdb6 | 4300 | |
24528b0c | 4301 | |
698dcdb6 | 4302 | echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6 |
19bc6aad | 4303 | echo "configure:4304: checking for --enable-fs_inet" >&5 |
10f2d63a VZ |
4304 | no_cache=0 |
4305 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
4306 | if test "${enable_fs_inet+set}" = set; then | |
4307 | enableval="$enable_fs_inet" | |
698dcdb6 | 4308 | |
10f2d63a VZ |
4309 | if test "$enableval" = yes; then |
4310 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
4311 | else | |
4312 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
4313 | fi | |
698dcdb6 | 4314 | |
10f2d63a | 4315 | else |
698dcdb6 | 4316 | |
10f2d63a VZ |
4317 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` |
4318 | if test "x$LINE" != x ; then | |
4319 | eval "DEFAULT_$LINE" | |
4320 | else | |
4321 | no_cache=1 | |
4322 | fi | |
4323 | ||
4324 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
698dcdb6 VZ |
4325 | |
4326 | fi | |
10f2d63a VZ |
4327 | |
4328 | ||
4329 | eval "$ac_cv_use_fs_inet" | |
4330 | if test "$no_cache" != 1; then | |
4331 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
4332 | fi | |
4333 | ||
4334 | if test "$wxUSE_FS_INET" = yes; then | |
698dcdb6 | 4335 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4336 | else |
698dcdb6 | 4337 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4338 | fi |
698dcdb6 | 4339 | |
10f2d63a | 4340 | |
698dcdb6 | 4341 | echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6 |
19bc6aad | 4342 | echo "configure:4343: checking for --enable-fs_zip" >&5 |
10f2d63a VZ |
4343 | no_cache=0 |
4344 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
4345 | if test "${enable_fs_zip+set}" = set; then | |
4346 | enableval="$enable_fs_zip" | |
698dcdb6 | 4347 | |
10f2d63a VZ |
4348 | if test "$enableval" = yes; then |
4349 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
4350 | else | |
4351 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
4352 | fi | |
698dcdb6 | 4353 | |
10f2d63a | 4354 | else |
698dcdb6 | 4355 | |
10f2d63a VZ |
4356 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` |
4357 | if test "x$LINE" != x ; then | |
4358 | eval "DEFAULT_$LINE" | |
4359 | else | |
4360 | no_cache=1 | |
4361 | fi | |
4362 | ||
4363 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
698dcdb6 VZ |
4364 | |
4365 | fi | |
10f2d63a VZ |
4366 | |
4367 | ||
4368 | eval "$ac_cv_use_fs_zip" | |
4369 | if test "$no_cache" != 1; then | |
4370 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
4371 | fi | |
4372 | ||
4373 | if test "$wxUSE_FS_ZIP" = yes; then | |
698dcdb6 | 4374 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4375 | else |
698dcdb6 | 4376 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4377 | fi |
698dcdb6 | 4378 | |
10f2d63a | 4379 | |
698dcdb6 | 4380 | echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6 |
19bc6aad | 4381 | echo "configure:4382: checking for --enable-zipstream" >&5 |
10f2d63a VZ |
4382 | no_cache=0 |
4383 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
4384 | if test "${enable_zipstream+set}" = set; then | |
4385 | enableval="$enable_zipstream" | |
698dcdb6 | 4386 | |
10f2d63a VZ |
4387 | if test "$enableval" = yes; then |
4388 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
4389 | else | |
4390 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
4391 | fi | |
698dcdb6 | 4392 | |
10f2d63a | 4393 | else |
698dcdb6 | 4394 | |
10f2d63a VZ |
4395 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` |
4396 | if test "x$LINE" != x ; then | |
4397 | eval "DEFAULT_$LINE" | |
4398 | else | |
4399 | no_cache=1 | |
4400 | fi | |
4401 | ||
4402 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
698dcdb6 VZ |
4403 | |
4404 | fi | |
10f2d63a VZ |
4405 | |
4406 | ||
4407 | eval "$ac_cv_use_zipstream" | |
4408 | if test "$no_cache" != 1; then | |
4409 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
4410 | fi | |
4411 | ||
4412 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
698dcdb6 | 4413 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4414 | else |
698dcdb6 | 4415 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4416 | fi |
698dcdb6 | 4417 | |
10f2d63a | 4418 | |
698dcdb6 VZ |
4419 | |
4420 | echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6 | |
19bc6aad | 4421 | echo "configure:4422: checking for --enable-catch_segvs" >&5 |
eb4efbdc VZ |
4422 | no_cache=0 |
4423 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
4424 | if test "${enable_catch_segvs+set}" = set; then | |
4425 | enableval="$enable_catch_segvs" | |
698dcdb6 | 4426 | |
eb4efbdc VZ |
4427 | if test "$enableval" = yes; then |
4428 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
4429 | else | |
4430 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
4431 | fi | |
698dcdb6 | 4432 | |
eb4efbdc | 4433 | else |
698dcdb6 | 4434 | |
eb4efbdc VZ |
4435 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
4436 | if test "x$LINE" != x ; then | |
4437 | eval "DEFAULT_$LINE" | |
4438 | else | |
4439 | no_cache=1 | |
4440 | fi | |
4441 | ||
4442 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
698dcdb6 VZ |
4443 | |
4444 | fi | |
eb4efbdc VZ |
4445 | |
4446 | ||
4447 | eval "$ac_cv_use_catch_segvs" | |
4448 | if test "$no_cache" != 1; then | |
4449 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4450 | fi | |
4451 | ||
4452 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
698dcdb6 | 4453 | echo "$ac_t""yes" 1>&6 |
eb4efbdc | 4454 | else |
698dcdb6 | 4455 | echo "$ac_t""no" 1>&6 |
eb4efbdc | 4456 | fi |
698dcdb6 | 4457 | |
eb4efbdc | 4458 | |
698dcdb6 | 4459 | echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6 |
19bc6aad | 4460 | echo "configure:4461: checking for --enable-snglinst" >&5 |
4f3c5f06 VZ |
4461 | no_cache=0 |
4462 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
4463 | if test "${enable_snglinst+set}" = set; then | |
4464 | enableval="$enable_snglinst" | |
698dcdb6 | 4465 | |
4f3c5f06 VZ |
4466 | if test "$enableval" = yes; then |
4467 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
4468 | else | |
4469 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
4470 | fi | |
698dcdb6 | 4471 | |
4f3c5f06 | 4472 | else |
698dcdb6 | 4473 | |
4f3c5f06 VZ |
4474 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` |
4475 | if test "x$LINE" != x ; then | |
4476 | eval "DEFAULT_$LINE" | |
4477 | else | |
4478 | no_cache=1 | |
4479 | fi | |
4480 | ||
4481 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
698dcdb6 VZ |
4482 | |
4483 | fi | |
4f3c5f06 VZ |
4484 | |
4485 | ||
4486 | eval "$ac_cv_use_snglinst" | |
4487 | if test "$no_cache" != 1; then | |
4488 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
4489 | fi | |
4490 | ||
4491 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
698dcdb6 | 4492 | echo "$ac_t""yes" 1>&6 |
4f3c5f06 | 4493 | else |
698dcdb6 | 4494 | echo "$ac_t""no" 1>&6 |
4f3c5f06 | 4495 | fi |
698dcdb6 VZ |
4496 | |
4497 | ||
eb4efbdc | 4498 | |
1e6feb95 | 4499 | echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6 |
19bc6aad | 4500 | echo "configure:4501: checking for --enable-mimetype" >&5 |
1e6feb95 VZ |
4501 | no_cache=0 |
4502 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
4503 | if test "${enable_mimetype+set}" = set; then | |
4504 | enableval="$enable_mimetype" | |
4505 | ||
4506 | if test "$enableval" = yes; then | |
4507 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
4508 | else | |
4509 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
4510 | fi | |
4511 | ||
4512 | else | |
4513 | ||
4514 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
4515 | if test "x$LINE" != x ; then | |
4516 | eval "DEFAULT_$LINE" | |
4517 | else | |
4518 | no_cache=1 | |
4519 | fi | |
4520 | ||
4521 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
4522 | ||
4523 | fi | |
4524 | ||
4525 | ||
4526 | eval "$ac_cv_use_mimetype" | |
4527 | if test "$no_cache" != 1; then | |
4528 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
4529 | fi | |
4530 | ||
4531 | if test "$wxUSE_MIMETYPE" = yes; then | |
4532 | echo "$ac_t""yes" 1>&6 | |
4533 | else | |
4534 | echo "$ac_t""no" 1>&6 | |
4535 | fi | |
4536 | ||
4537 | ||
3e44f09d | 4538 | echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6 |
19bc6aad | 4539 | echo "configure:4540: checking for --enable-system_options" >&5 |
3e44f09d VZ |
4540 | no_cache=0 |
4541 | # Check whether --enable-system_options or --disable-system_options was given. | |
4542 | if test "${enable_system_options+set}" = set; then | |
4543 | enableval="$enable_system_options" | |
4544 | ||
4545 | if test "$enableval" = yes; then | |
4546 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
4547 | else | |
4548 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
4549 | fi | |
4550 | ||
4551 | else | |
4552 | ||
4553 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` | |
4554 | if test "x$LINE" != x ; then | |
4555 | eval "DEFAULT_$LINE" | |
4556 | else | |
4557 | no_cache=1 | |
4558 | fi | |
4559 | ||
4560 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
4561 | ||
4562 | fi | |
4563 | ||
4564 | ||
4565 | eval "$ac_cv_use_system_options" | |
4566 | if test "$no_cache" != 1; then | |
4567 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
4568 | fi | |
4569 | ||
4570 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
4571 | echo "$ac_t""yes" 1>&6 | |
4572 | else | |
4573 | echo "$ac_t""no" 1>&6 | |
4574 | fi | |
4575 | ||
4576 | ||
1e6feb95 | 4577 | |
4cdb0ab0 | 4578 | echo $ac_n "checking for --enable-url""... $ac_c" 1>&6 |
19bc6aad | 4579 | echo "configure:4580: checking for --enable-url" >&5 |
4cdb0ab0 VS |
4580 | no_cache=0 |
4581 | # Check whether --enable-url or --disable-url was given. | |
4582 | if test "${enable_url+set}" = set; then | |
4583 | enableval="$enable_url" | |
4584 | ||
4585 | if test "$enableval" = yes; then | |
4586 | ac_cv_use_url='wxUSE_URL=yes' | |
4587 | else | |
4588 | ac_cv_use_url='wxUSE_URL=no' | |
4589 | fi | |
4590 | ||
4591 | else | |
4592 | ||
4593 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` | |
4594 | if test "x$LINE" != x ; then | |
4595 | eval "DEFAULT_$LINE" | |
4596 | else | |
4597 | no_cache=1 | |
4598 | fi | |
4599 | ||
4600 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
4601 | ||
4602 | fi | |
4603 | ||
4604 | ||
4605 | eval "$ac_cv_use_url" | |
4606 | if test "$no_cache" != 1; then | |
4607 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
4608 | fi | |
4609 | ||
4610 | if test "$wxUSE_URL" = yes; then | |
4611 | echo "$ac_t""yes" 1>&6 | |
4612 | else | |
4613 | echo "$ac_t""no" 1>&6 | |
4614 | fi | |
4615 | ||
4616 | ||
4617 | echo $ac_n "checking for --enable-protocol""... $ac_c" 1>&6 | |
19bc6aad | 4618 | echo "configure:4619: checking for --enable-protocol" >&5 |
4cdb0ab0 VS |
4619 | no_cache=0 |
4620 | # Check whether --enable-protocol or --disable-protocol was given. | |
4621 | if test "${enable_protocol+set}" = set; then | |
4622 | enableval="$enable_protocol" | |
4623 | ||
4624 | if test "$enableval" = yes; then | |
4625 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
4626 | else | |
4627 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
4628 | fi | |
4629 | ||
4630 | else | |
4631 | ||
4632 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
4633 | if test "x$LINE" != x ; then | |
4634 | eval "DEFAULT_$LINE" | |
4635 | else | |
4636 | no_cache=1 | |
4637 | fi | |
4638 | ||
4639 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
4640 | ||
4641 | fi | |
4642 | ||
4643 | ||
4644 | eval "$ac_cv_use_protocol" | |
4645 | if test "$no_cache" != 1; then | |
4646 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
4647 | fi | |
4648 | ||
4649 | if test "$wxUSE_PROTOCOL" = yes; then | |
4650 | echo "$ac_t""yes" 1>&6 | |
4651 | else | |
4652 | echo "$ac_t""no" 1>&6 | |
4653 | fi | |
4654 | ||
4655 | ||
4656 | echo $ac_n "checking for --enable-protocol_http""... $ac_c" 1>&6 | |
19bc6aad | 4657 | echo "configure:4658: checking for --enable-protocol_http" >&5 |
4cdb0ab0 VS |
4658 | no_cache=0 |
4659 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
4660 | if test "${enable_protocol_http+set}" = set; then | |
4661 | enableval="$enable_protocol_http" | |
4662 | ||
4663 | if test "$enableval" = yes; then | |
4664 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
4665 | else | |
4666 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
4667 | fi | |
4668 | ||
4669 | else | |
4670 | ||
4671 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
4672 | if test "x$LINE" != x ; then | |
4673 | eval "DEFAULT_$LINE" | |
4674 | else | |
4675 | no_cache=1 | |
4676 | fi | |
4677 | ||
4678 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
4679 | ||
4680 | fi | |
4681 | ||
4682 | ||
4683 | eval "$ac_cv_use_protocol_http" | |
4684 | if test "$no_cache" != 1; then | |
4685 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
4686 | fi | |
4687 | ||
4688 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
4689 | echo "$ac_t""yes" 1>&6 | |
4690 | else | |
4691 | echo "$ac_t""no" 1>&6 | |
4692 | fi | |
4693 | ||
4694 | ||
4695 | echo $ac_n "checking for --enable-protocol_ftp""... $ac_c" 1>&6 | |
19bc6aad | 4696 | echo "configure:4697: checking for --enable-protocol_ftp" >&5 |
4cdb0ab0 VS |
4697 | no_cache=0 |
4698 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
4699 | if test "${enable_protocol_ftp+set}" = set; then | |
4700 | enableval="$enable_protocol_ftp" | |
4701 | ||
4702 | if test "$enableval" = yes; then | |
4703 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4704 | else | |
4705 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
4706 | fi | |
4707 | ||
4708 | else | |
4709 | ||
4710 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
4711 | if test "x$LINE" != x ; then | |
4712 | eval "DEFAULT_$LINE" | |
4713 | else | |
4714 | no_cache=1 | |
4715 | fi | |
4716 | ||
4717 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
4718 | ||
4719 | fi | |
4720 | ||
4721 | ||
4722 | eval "$ac_cv_use_protocol_ftp" | |
4723 | if test "$no_cache" != 1; then | |
4724 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
4725 | fi | |
4726 | ||
4727 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
4728 | echo "$ac_t""yes" 1>&6 | |
4729 | else | |
4730 | echo "$ac_t""no" 1>&6 | |
4731 | fi | |
4732 | ||
4733 | ||
4734 | echo $ac_n "checking for --enable-protocol_file""... $ac_c" 1>&6 | |
19bc6aad | 4735 | echo "configure:4736: checking for --enable-protocol_file" >&5 |
4cdb0ab0 VS |
4736 | no_cache=0 |
4737 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
4738 | if test "${enable_protocol_file+set}" = set; then | |
4739 | enableval="$enable_protocol_file" | |
4740 | ||
4741 | if test "$enableval" = yes; then | |
4742 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
4743 | else | |
4744 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
4745 | fi | |
4746 | ||
4747 | else | |
4748 | ||
4749 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
4750 | if test "x$LINE" != x ; then | |
4751 | eval "DEFAULT_$LINE" | |
4752 | else | |
4753 | no_cache=1 | |
4754 | fi | |
4755 | ||
4756 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
4757 | ||
4758 | fi | |
4759 | ||
4760 | ||
4761 | eval "$ac_cv_use_protocol_file" | |
4762 | if test "$no_cache" != 1; then | |
4763 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
4764 | fi | |
4765 | ||
4766 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
4767 | echo "$ac_t""yes" 1>&6 | |
4768 | else | |
4769 | echo "$ac_t""no" 1>&6 | |
4770 | fi | |
4771 | ||
4772 | ||
4773 | ||
4774 | ||
698dcdb6 VZ |
4775 | |
4776 | echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6 | |
19bc6aad | 4777 | echo "configure:4778: checking for --enable-threads" >&5 |
10f2d63a VZ |
4778 | no_cache=0 |
4779 | # Check whether --enable-threads or --disable-threads was given. | |
4780 | if test "${enable_threads+set}" = set; then | |
4781 | enableval="$enable_threads" | |
698dcdb6 | 4782 | |
10f2d63a VZ |
4783 | if test "$enableval" = yes; then |
4784 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
4785 | else | |
4786 | ac_cv_use_threads='wxUSE_THREADS=no' | |
4787 | fi | |
698dcdb6 | 4788 | |
10f2d63a | 4789 | else |
698dcdb6 | 4790 | |
10f2d63a VZ |
4791 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` |
4792 | if test "x$LINE" != x ; then | |
4793 | eval "DEFAULT_$LINE" | |
4794 | else | |
4795 | no_cache=1 | |
4796 | fi | |
4797 | ||
4798 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
698dcdb6 VZ |
4799 | |
4800 | fi | |
10f2d63a VZ |
4801 | |
4802 | ||
4803 | eval "$ac_cv_use_threads" | |
4804 | if test "$no_cache" != 1; then | |
4805 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
4806 | fi | |
4807 | ||
4808 | if test "$wxUSE_THREADS" = yes; then | |
698dcdb6 | 4809 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4810 | else |
698dcdb6 | 4811 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4812 | fi |
698dcdb6 | 4813 | |
10f2d63a | 4814 | |
b12915c1 VZ |
4815 | if test "$wxUSE_GUI" = "yes"; then |
4816 | ||
698dcdb6 VZ |
4817 | |
4818 | ||
4819 | echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6 | |
19bc6aad | 4820 | echo "configure:4821: checking for --enable-docview" >&5 |
10f2d63a VZ |
4821 | no_cache=0 |
4822 | # Check whether --enable-docview or --disable-docview was given. | |
4823 | if test "${enable_docview+set}" = set; then | |
4824 | enableval="$enable_docview" | |
698dcdb6 | 4825 | |
10f2d63a VZ |
4826 | if test "$enableval" = yes; then |
4827 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
4828 | else | |
4829 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
4830 | fi | |
698dcdb6 | 4831 | |
10f2d63a | 4832 | else |
698dcdb6 | 4833 | |
10f2d63a VZ |
4834 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` |
4835 | if test "x$LINE" != x ; then | |
4836 | eval "DEFAULT_$LINE" | |
4837 | else | |
4838 | no_cache=1 | |
4839 | fi | |
4840 | ||
4841 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
698dcdb6 VZ |
4842 | |
4843 | fi | |
10f2d63a VZ |
4844 | |
4845 | ||
4846 | eval "$ac_cv_use_docview" | |
4847 | if test "$no_cache" != 1; then | |
4848 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
4849 | fi | |
4850 | ||
4851 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
698dcdb6 | 4852 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4853 | else |
698dcdb6 | 4854 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4855 | fi |
698dcdb6 | 4856 | |
10f2d63a | 4857 | |
698dcdb6 | 4858 | echo $ac_n "checking for --enable-help""... $ac_c" 1>&6 |
19bc6aad | 4859 | echo "configure:4860: checking for --enable-help" >&5 |
10f2d63a VZ |
4860 | no_cache=0 |
4861 | # Check whether --enable-help or --disable-help was given. | |
4862 | if test "${enable_help+set}" = set; then | |
4863 | enableval="$enable_help" | |
698dcdb6 | 4864 | |
10f2d63a VZ |
4865 | if test "$enableval" = yes; then |
4866 | ac_cv_use_help='wxUSE_HELP=yes' | |
4867 | else | |
4868 | ac_cv_use_help='wxUSE_HELP=no' | |
4869 | fi | |
698dcdb6 | 4870 | |
10f2d63a | 4871 | else |
698dcdb6 | 4872 | |
10f2d63a VZ |
4873 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` |
4874 | if test "x$LINE" != x ; then | |
4875 | eval "DEFAULT_$LINE" | |
4876 | else | |
4877 | no_cache=1 | |
4878 | fi | |
4879 | ||
4880 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
698dcdb6 VZ |
4881 | |
4882 | fi | |
10f2d63a VZ |
4883 | |
4884 | ||
4885 | eval "$ac_cv_use_help" | |
4886 | if test "$no_cache" != 1; then | |
4887 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
4888 | fi | |
4889 | ||
4890 | if test "$wxUSE_HELP" = yes; then | |
698dcdb6 | 4891 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4892 | else |
698dcdb6 | 4893 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4894 | fi |
698dcdb6 | 4895 | |
10f2d63a | 4896 | |
29fd3c0c | 4897 | echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6 |
19bc6aad | 4898 | echo "configure:4899: checking for --enable-mshtmlhelp" >&5 |
29fd3c0c VS |
4899 | no_cache=0 |
4900 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
4901 | if test "${enable_mshtmlhelp+set}" = set; then | |
4902 | enableval="$enable_mshtmlhelp" | |
4903 | ||
4904 | if test "$enableval" = yes; then | |
4905 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
4906 | else | |
4907 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
4908 | fi | |
4909 | ||
4910 | else | |
4911 | ||
4912 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` | |
4913 | if test "x$LINE" != x ; then | |
4914 | eval "DEFAULT_$LINE" | |
4915 | else | |
4916 | no_cache=1 | |
4917 | fi | |
4918 | ||
4919 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
4920 | ||
4921 | fi | |
4922 | ||
4923 | ||
4924 | eval "$ac_cv_use_mshtmlhelp" | |
4925 | if test "$no_cache" != 1; then | |
4926 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
4927 | fi | |
4928 | ||
4929 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
4930 | echo "$ac_t""yes" 1>&6 | |
4931 | else | |
4932 | echo "$ac_t""no" 1>&6 | |
4933 | fi | |
4934 | ||
4935 | ||
3379ed37 | 4936 | echo $ac_n "checking for --enable-html""... $ac_c" 1>&6 |
19bc6aad | 4937 | echo "configure:4938: checking for --enable-html" >&5 |
3379ed37 VZ |
4938 | no_cache=0 |
4939 | # Check whether --enable-html or --disable-html was given. | |
4940 | if test "${enable_html+set}" = set; then | |
4941 | enableval="$enable_html" | |
4942 | ||
4943 | if test "$enableval" = yes; then | |
4944 | ac_cv_use_html='wxUSE_HTML=yes' | |
4945 | else | |
4946 | ac_cv_use_html='wxUSE_HTML=no' | |
4947 | fi | |
4948 | ||
4949 | else | |
4950 | ||
4951 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
4952 | if test "x$LINE" != x ; then | |
4953 | eval "DEFAULT_$LINE" | |
4954 | else | |
4955 | no_cache=1 | |
4956 | fi | |
4957 | ||
4958 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
4959 | ||
4960 | fi | |
4961 | ||
4962 | ||
4963 | eval "$ac_cv_use_html" | |
4964 | if test "$no_cache" != 1; then | |
4965 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
4966 | fi | |
4967 | ||
4968 | if test "$wxUSE_HTML" = yes; then | |
4969 | echo "$ac_t""yes" 1>&6 | |
4970 | else | |
4971 | echo "$ac_t""no" 1>&6 | |
4972 | fi | |
4973 | ||
4974 | ||
4975 | echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6 | |
19bc6aad | 4976 | echo "configure:4977: checking for --enable-htmlhelp" >&5 |
3379ed37 VZ |
4977 | no_cache=0 |
4978 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
4979 | if test "${enable_htmlhelp+set}" = set; then | |
4980 | enableval="$enable_htmlhelp" | |
4981 | ||
4982 | if test "$enableval" = yes; then | |
4983 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
4984 | else | |
4985 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
4986 | fi | |
4987 | ||
4988 | else | |
4989 | ||
4990 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` | |
4991 | if test "x$LINE" != x ; then | |
4992 | eval "DEFAULT_$LINE" | |
4993 | else | |
4994 | no_cache=1 | |
4995 | fi | |
4996 | ||
4997 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
4998 | ||
4999 | fi | |
5000 | ||
5001 | ||
5002 | eval "$ac_cv_use_htmlhelp" | |
5003 | if test "$no_cache" != 1; then | |
5004 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
5005 | fi | |
5006 | ||
5007 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
5008 | echo "$ac_t""yes" 1>&6 | |
5009 | else | |
5010 | echo "$ac_t""no" 1>&6 | |
5011 | fi | |
5012 | ||
5013 | ||
698dcdb6 | 5014 | echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6 |
19bc6aad | 5015 | echo "configure:5016: checking for --enable-constraints" >&5 |
10f2d63a VZ |
5016 | no_cache=0 |
5017 | # Check whether --enable-constraints or --disable-constraints was given. | |
5018 | if test "${enable_constraints+set}" = set; then | |
5019 | enableval="$enable_constraints" | |
698dcdb6 | 5020 | |
10f2d63a VZ |
5021 | if test "$enableval" = yes; then |
5022 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
5023 | else | |
5024 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
5025 | fi | |
698dcdb6 | 5026 | |
10f2d63a | 5027 | else |
698dcdb6 | 5028 | |
10f2d63a VZ |
5029 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` |
5030 | if test "x$LINE" != x ; then | |
5031 | eval "DEFAULT_$LINE" | |
5032 | else | |
5033 | no_cache=1 | |
5034 | fi | |
5035 | ||
5036 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
698dcdb6 VZ |
5037 | |
5038 | fi | |
10f2d63a VZ |
5039 | |
5040 | ||
5041 | eval "$ac_cv_use_constraints" | |
5042 | if test "$no_cache" != 1; then | |
5043 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
5044 | fi | |
5045 | ||
5046 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
698dcdb6 | 5047 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5048 | else |
698dcdb6 | 5049 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5050 | fi |
698dcdb6 | 5051 | |
10f2d63a | 5052 | |
698dcdb6 | 5053 | echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6 |
19bc6aad | 5054 | echo "configure:5055: checking for --enable-printarch" >&5 |
10f2d63a VZ |
5055 | no_cache=0 |
5056 | # Check whether --enable-printarch or --disable-printarch was given. | |
5057 | if test "${enable_printarch+set}" = set; then | |
5058 | enableval="$enable_printarch" | |
698dcdb6 | 5059 | |
10f2d63a VZ |
5060 | if test "$enableval" = yes; then |
5061 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
5062 | else | |
5063 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
5064 | fi | |
698dcdb6 | 5065 | |
10f2d63a | 5066 | else |
698dcdb6 | 5067 | |
10f2d63a VZ |
5068 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` |
5069 | if test "x$LINE" != x ; then | |
5070 | eval "DEFAULT_$LINE" | |
5071 | else | |
5072 | no_cache=1 | |
5073 | fi | |
5074 | ||
5075 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
698dcdb6 VZ |
5076 | |
5077 | fi | |
10f2d63a VZ |
5078 | |
5079 | ||
5080 | eval "$ac_cv_use_printarch" | |
5081 | if test "$no_cache" != 1; then | |
5082 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
5083 | fi | |
5084 | ||
5085 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
698dcdb6 | 5086 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5087 | else |
698dcdb6 | 5088 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5089 | fi |
698dcdb6 | 5090 | |
10f2d63a | 5091 | |
698dcdb6 | 5092 | echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6 |
19bc6aad | 5093 | echo "configure:5094: checking for --enable-mdi" >&5 |
10f2d63a VZ |
5094 | no_cache=0 |
5095 | # Check whether --enable-mdi or --disable-mdi was given. | |
5096 | if test "${enable_mdi+set}" = set; then | |
5097 | enableval="$enable_mdi" | |
698dcdb6 | 5098 | |
10f2d63a VZ |
5099 | if test "$enableval" = yes; then |
5100 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
5101 | else | |
5102 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
5103 | fi | |
698dcdb6 | 5104 | |
10f2d63a | 5105 | else |
698dcdb6 | 5106 | |
10f2d63a VZ |
5107 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` |
5108 | if test "x$LINE" != x ; then | |
5109 | eval "DEFAULT_$LINE" | |
5110 | else | |
5111 | no_cache=1 | |
5112 | fi | |
5113 | ||
5114 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
698dcdb6 VZ |
5115 | |
5116 | fi | |
10f2d63a VZ |
5117 | |
5118 | ||
5119 | eval "$ac_cv_use_mdi" | |
5120 | if test "$no_cache" != 1; then | |
5121 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
5122 | fi | |
5123 | ||
5124 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
698dcdb6 | 5125 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5126 | else |
698dcdb6 | 5127 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5128 | fi |
698dcdb6 VZ |
5129 | |
5130 | ||
1e6feb95 | 5131 | echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6 |
19bc6aad | 5132 | echo "configure:5133: checking for --enable-loggui" >&5 |
1e6feb95 VZ |
5133 | no_cache=0 |
5134 | # Check whether --enable-loggui or --disable-loggui was given. | |
5135 | if test "${enable_loggui+set}" = set; then | |
5136 | enableval="$enable_loggui" | |
5137 | ||
5138 | if test "$enableval" = yes; then | |
5139 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
5140 | else | |
5141 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
5142 | fi | |
5143 | ||
5144 | else | |
5145 | ||
5146 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
5147 | if test "x$LINE" != x ; then | |
5148 | eval "DEFAULT_$LINE" | |
5149 | else | |
5150 | no_cache=1 | |
5151 | fi | |
5152 | ||
5153 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
5154 | ||
5155 | fi | |
5156 | ||
5157 | ||
5158 | eval "$ac_cv_use_loggui" | |
5159 | if test "$no_cache" != 1; then | |
5160 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
5161 | fi | |
5162 | ||
5163 | if test "$wxUSE_LOGGUI" = yes; then | |
5164 | echo "$ac_t""yes" 1>&6 | |
5165 | else | |
5166 | echo "$ac_t""no" 1>&6 | |
5167 | fi | |
5168 | ||
5169 | ||
5170 | echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6 | |
19bc6aad | 5171 | echo "configure:5172: checking for --enable-logwin" >&5 |
1e6feb95 VZ |
5172 | no_cache=0 |
5173 | # Check whether --enable-logwin or --disable-logwin was given. | |
5174 | if test "${enable_logwin+set}" = set; then | |
5175 | enableval="$enable_logwin" | |
5176 | ||
5177 | if test "$enableval" = yes; then | |
5178 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
5179 | else | |
5180 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
5181 | fi | |
5182 | ||
5183 | else | |
5184 | ||
5185 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
5186 | if test "x$LINE" != x ; then | |
5187 | eval "DEFAULT_$LINE" | |
5188 | else | |
5189 | no_cache=1 | |
5190 | fi | |
5191 | ||
5192 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
5193 | ||
5194 | fi | |
5195 | ||
5196 | ||
5197 | eval "$ac_cv_use_logwin" | |
5198 | if test "$no_cache" != 1; then | |
5199 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
5200 | fi | |
5201 | ||
5202 | if test "$wxUSE_LOGWINDOW" = yes; then | |
5203 | echo "$ac_t""yes" 1>&6 | |
5204 | else | |
5205 | echo "$ac_t""no" 1>&6 | |
5206 | fi | |
5207 | ||
5208 | ||
69d27ff7 | 5209 | echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6 |
19bc6aad | 5210 | echo "configure:5211: checking for --enable-logdialog" >&5 |
69d27ff7 MB |
5211 | no_cache=0 |
5212 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
5213 | if test "${enable_logdialog+set}" = set; then | |
5214 | enableval="$enable_logdialog" | |
5215 | ||
5216 | if test "$enableval" = yes; then | |
5217 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
5218 | else | |
5219 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
5220 | fi | |
5221 | ||
5222 | else | |
5223 | ||
5224 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` | |
5225 | if test "x$LINE" != x ; then | |
5226 | eval "DEFAULT_$LINE" | |
5227 | else | |
5228 | no_cache=1 | |
5229 | fi | |
5230 | ||
5231 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
5232 | ||
5233 | fi | |
5234 | ||
5235 | ||
5236 | eval "$ac_cv_use_logdialog" | |
5237 | if test "$no_cache" != 1; then | |
5238 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
5239 | fi | |
5240 | ||
5241 | if test "$wxUSE_LOGDIALOG" = yes; then | |
5242 | echo "$ac_t""yes" 1>&6 | |
5243 | else | |
5244 | echo "$ac_t""no" 1>&6 | |
5245 | fi | |
5246 | ||
5247 | ||
10f2d63a | 5248 | |
698dcdb6 | 5249 | echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6 |
19bc6aad | 5250 | echo "configure:5251: checking for --enable-postscript" >&5 |
10f2d63a VZ |
5251 | no_cache=0 |
5252 | # Check whether --enable-postscript or --disable-postscript was given. | |
5253 | if test "${enable_postscript+set}" = set; then | |
5254 | enableval="$enable_postscript" | |
698dcdb6 | 5255 | |
10f2d63a VZ |
5256 | if test "$enableval" = yes; then |
5257 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
5258 | else | |
5259 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
5260 | fi | |
698dcdb6 | 5261 | |
10f2d63a | 5262 | else |
698dcdb6 | 5263 | |
10f2d63a VZ |
5264 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` |
5265 | if test "x$LINE" != x ; then | |
5266 | eval "DEFAULT_$LINE" | |
5267 | else | |
5268 | no_cache=1 | |
5269 | fi | |
5270 | ||
5271 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
698dcdb6 VZ |
5272 | |
5273 | fi | |
10f2d63a VZ |
5274 | |
5275 | ||
5276 | eval "$ac_cv_use_postscript" | |
5277 | if test "$no_cache" != 1; then | |
5278 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
5279 | fi | |
5280 | ||
5281 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
698dcdb6 | 5282 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5283 | else |
698dcdb6 | 5284 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5285 | fi |
698dcdb6 VZ |
5286 | |
5287 | ||
5288 | ||
10f2d63a | 5289 | |
1e6feb95 | 5290 | |
698dcdb6 | 5291 | echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6 |
19bc6aad | 5292 | echo "configure:5293: checking for --enable-prologio" >&5 |
10f2d63a VZ |
5293 | no_cache=0 |
5294 | # Check whether --enable-prologio or --disable-prologio was given. | |
5295 | if test "${enable_prologio+set}" = set; then | |
5296 | enableval="$enable_prologio" | |
698dcdb6 | 5297 | |
10f2d63a VZ |
5298 | if test "$enableval" = yes; then |
5299 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
5300 | else | |
5301 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
5302 | fi | |
698dcdb6 | 5303 | |
10f2d63a | 5304 | else |
698dcdb6 | 5305 | |
10f2d63a VZ |
5306 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` |
5307 | if test "x$LINE" != x ; then | |
5308 | eval "DEFAULT_$LINE" | |
5309 | else | |
5310 | no_cache=1 | |
5311 | fi | |
5312 | ||
5313 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
698dcdb6 VZ |
5314 | |
5315 | fi | |
10f2d63a VZ |
5316 | |
5317 | ||
5318 | eval "$ac_cv_use_prologio" | |
5319 | if test "$no_cache" != 1; then | |
5320 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
5321 | fi | |
5322 | ||
5323 | if test "$wxUSE_PROLOGIO" = yes; then | |
698dcdb6 | 5324 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5325 | else |
698dcdb6 | 5326 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5327 | fi |
698dcdb6 | 5328 | |
10f2d63a | 5329 | |
698dcdb6 | 5330 | echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6 |
19bc6aad | 5331 | echo "configure:5332: checking for --enable-resources" >&5 |
10f2d63a VZ |
5332 | no_cache=0 |
5333 | # Check whether --enable-resources or --disable-resources was given. | |
5334 | if test "${enable_resources+set}" = set; then | |
5335 | enableval="$enable_resources" | |
698dcdb6 | 5336 | |
10f2d63a VZ |
5337 | if test "$enableval" = yes; then |
5338 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
5339 | else | |
5340 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
5341 | fi | |
698dcdb6 | 5342 | |
10f2d63a | 5343 | else |
698dcdb6 | 5344 | |
10f2d63a VZ |
5345 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` |
5346 | if test "x$LINE" != x ; then | |
5347 | eval "DEFAULT_$LINE" | |
5348 | else | |
5349 | no_cache=1 | |
5350 | fi | |
5351 | ||
5352 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
698dcdb6 VZ |
5353 | |
5354 | fi | |
10f2d63a VZ |
5355 | |
5356 | ||
5357 | eval "$ac_cv_use_resources" | |
5358 | if test "$no_cache" != 1; then | |
5359 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
5360 | fi | |
5361 | ||
5362 | if test "$wxUSE_RESOURCES" = yes; then | |
698dcdb6 | 5363 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5364 | else |
698dcdb6 | 5365 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5366 | fi |
698dcdb6 | 5367 | |
10f2d63a | 5368 | |
698dcdb6 VZ |
5369 | |
5370 | echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6 | |
19bc6aad | 5371 | echo "configure:5372: checking for --enable-xresources" >&5 |
10f2d63a VZ |
5372 | no_cache=0 |
5373 | # Check whether --enable-xresources or --disable-xresources was given. | |
5374 | if test "${enable_xresources+set}" = set; then | |
5375 | enableval="$enable_xresources" | |
698dcdb6 | 5376 | |
10f2d63a VZ |
5377 | if test "$enableval" = yes; then |
5378 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
5379 | else | |
5380 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
5381 | fi | |
698dcdb6 | 5382 | |
10f2d63a | 5383 | else |
698dcdb6 | 5384 | |
10f2d63a VZ |
5385 | LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}` |
5386 | if test "x$LINE" != x ; then | |
5387 | eval "DEFAULT_$LINE" | |
5388 | else | |
5389 | no_cache=1 | |
5390 | fi | |
5391 | ||
5392 | ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
698dcdb6 VZ |
5393 | |
5394 | fi | |
10f2d63a VZ |
5395 | |
5396 | ||
5397 | eval "$ac_cv_use_xresources" | |
5398 | if test "$no_cache" != 1; then | |
5399 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
5400 | fi | |
5401 | ||
5402 | if test "$wxUSE_X_RESOURCES" = yes; then | |
698dcdb6 | 5403 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5404 | else |
698dcdb6 | 5405 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5406 | fi |
698dcdb6 VZ |
5407 | |
5408 | ||
10f2d63a | 5409 | |
698dcdb6 VZ |
5410 | |
5411 | echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6 | |
19bc6aad | 5412 | echo "configure:5413: checking for --enable-clipboard" >&5 |
10f2d63a VZ |
5413 | no_cache=0 |
5414 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
5415 | if test "${enable_clipboard+set}" = set; then | |
5416 | enableval="$enable_clipboard" | |
698dcdb6 | 5417 | |
10f2d63a VZ |
5418 | if test "$enableval" = yes; then |
5419 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
5420 | else | |
5421 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
5422 | fi | |
698dcdb6 | 5423 | |
10f2d63a | 5424 | else |
698dcdb6 | 5425 | |
10f2d63a VZ |
5426 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` |
5427 | if test "x$LINE" != x ; then | |
5428 | eval "DEFAULT_$LINE" | |
5429 | else | |
5430 | no_cache=1 | |
5431 | fi | |
5432 | ||
5433 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
698dcdb6 VZ |
5434 | |
5435 | fi | |
10f2d63a VZ |
5436 | |
5437 | ||
5438 | eval "$ac_cv_use_clipboard" | |
5439 | if test "$no_cache" != 1; then | |
5440 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
5441 | fi | |
5442 | ||
5443 | if test "$wxUSE_CLIPBOARD" = yes; then | |
698dcdb6 | 5444 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5445 | else |
698dcdb6 | 5446 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5447 | fi |
698dcdb6 | 5448 | |
10f2d63a | 5449 | |
698dcdb6 | 5450 | echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6 |
19bc6aad | 5451 | echo "configure:5452: checking for --enable-dnd" >&5 |
10f2d63a VZ |
5452 | no_cache=0 |
5453 | # Check whether --enable-dnd or --disable-dnd was given. | |
5454 | if test "${enable_dnd+set}" = set; then | |
5455 | enableval="$enable_dnd" | |
698dcdb6 | 5456 | |
10f2d63a VZ |
5457 | if test "$enableval" = yes; then |
5458 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
5459 | else | |
5460 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
5461 | fi | |
698dcdb6 | 5462 | |
10f2d63a | 5463 | else |
698dcdb6 | 5464 | |
10f2d63a VZ |
5465 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` |
5466 | if test "x$LINE" != x ; then | |
5467 | eval "DEFAULT_$LINE" | |
5468 | else | |
5469 | no_cache=1 | |
5470 | fi | |
5471 | ||
5472 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
698dcdb6 VZ |
5473 | |
5474 | fi | |
10f2d63a VZ |
5475 | |
5476 | ||
5477 | eval "$ac_cv_use_dnd" | |
5478 | if test "$no_cache" != 1; then | |
5479 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
5480 | fi | |
5481 | ||
5482 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
698dcdb6 | 5483 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5484 | else |
698dcdb6 | 5485 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5486 | fi |
698dcdb6 | 5487 | |
10f2d63a | 5488 | |
698dcdb6 | 5489 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
19bc6aad | 5490 | echo "configure:5491: checking for --enable-metafile" >&5 |
b64f0a5f RL |
5491 | no_cache=0 |
5492 | # Check whether --enable-metafile or --disable-metafile was given. | |
5493 | if test "${enable_metafile+set}" = set; then | |
5494 | enableval="$enable_metafile" | |
698dcdb6 | 5495 | |
b64f0a5f RL |
5496 | if test "$enableval" = yes; then |
5497 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
5498 | else | |
5499 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
5500 | fi | |
698dcdb6 | 5501 | |
b64f0a5f | 5502 | else |
698dcdb6 | 5503 | |
b64f0a5f RL |
5504 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
5505 | if test "x$LINE" != x ; then | |
5506 | eval "DEFAULT_$LINE" | |
5507 | else | |
5508 | no_cache=1 | |
5509 | fi | |
5510 | ||
5511 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
698dcdb6 VZ |
5512 | |
5513 | fi | |
b64f0a5f RL |
5514 | |
5515 | ||
5516 | eval "$ac_cv_use_metafile" | |
5517 | if test "$no_cache" != 1; then | |
5518 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
5519 | fi | |
5520 | ||
5521 | if test "$wxUSE_METAFILE" = yes; then | |
698dcdb6 | 5522 | echo "$ac_t""yes" 1>&6 |
b64f0a5f | 5523 | else |
698dcdb6 | 5524 | echo "$ac_t""no" 1>&6 |
b64f0a5f | 5525 | fi |
698dcdb6 VZ |
5526 | |
5527 | ||
10f2d63a | 5528 | |
24176f2c | 5529 | echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6 |
19bc6aad | 5530 | echo "configure:5531: checking for --enable-treelayout" >&5 |
10f2d63a | 5531 | no_cache=0 |
24176f2c GD |
5532 | # Check whether --enable-treelayout or --disable-treelayout was given. |
5533 | if test "${enable_treelayout+set}" = set; then | |
5534 | enableval="$enable_treelayout" | |
698dcdb6 | 5535 | |
10f2d63a | 5536 | if test "$enableval" = yes; then |
24176f2c | 5537 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes' |
10f2d63a | 5538 | else |
24176f2c | 5539 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=no' |
10f2d63a | 5540 | fi |
698dcdb6 | 5541 | |
10f2d63a | 5542 | else |
698dcdb6 | 5543 | |
24176f2c | 5544 | LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}` |
10f2d63a VZ |
5545 | if test "x$LINE" != x ; then |
5546 | eval "DEFAULT_$LINE" | |
5547 | else | |
5548 | no_cache=1 | |
5549 | fi | |
5550 | ||
24176f2c | 5551 | ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT |
698dcdb6 VZ |
5552 | |
5553 | fi | |
10f2d63a VZ |
5554 | |
5555 | ||
24176f2c | 5556 | eval "$ac_cv_use_treelayout" |
10f2d63a | 5557 | if test "$no_cache" != 1; then |
24176f2c | 5558 | echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5559 | fi |
5560 | ||
24176f2c | 5561 | if test "$wxUSE_TREELAYOUT" = yes; then |
698dcdb6 | 5562 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5563 | else |
698dcdb6 | 5564 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5565 | fi |
698dcdb6 | 5566 | |
10f2d63a | 5567 | |
698dcdb6 VZ |
5568 | |
5569 | ||
5570 | echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6 | |
19bc6aad | 5571 | echo "configure:5572: checking for --enable-controls" >&5 |
10f2d63a VZ |
5572 | no_cache=0 |
5573 | # Check whether --enable-controls or --disable-controls was given. | |
5574 | if test "${enable_controls+set}" = set; then | |
5575 | enableval="$enable_controls" | |
698dcdb6 | 5576 | |
10f2d63a VZ |
5577 | if test "$enableval" = yes; then |
5578 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
5579 | else | |
5580 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
5581 | fi | |
698dcdb6 | 5582 | |
10f2d63a | 5583 | else |
698dcdb6 | 5584 | |
10f2d63a VZ |
5585 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` |
5586 | if test "x$LINE" != x ; then | |
5587 | eval "DEFAULT_$LINE" | |
5588 | else | |
5589 | no_cache=1 | |
5590 | fi | |
5591 | ||
5592 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
698dcdb6 VZ |
5593 | |
5594 | fi | |
10f2d63a VZ |
5595 | |
5596 | ||
5597 | eval "$ac_cv_use_controls" | |
5598 | if test "$no_cache" != 1; then | |
5599 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
5600 | fi | |
5601 | ||
5602 | if test "$wxUSE_CONTROLS" = yes; then | |
698dcdb6 | 5603 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5604 | else |
698dcdb6 | 5605 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5606 | fi |
698dcdb6 | 5607 | |
10f2d63a VZ |
5608 | |
5609 | if test "$wxUSE_CONTROLS" = "yes"; then | |
5610 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 VZ |
5611 | DEFAULT_wxUSE_BMPBUTTON=yes |
5612 | DEFAULT_wxUSE_BUTTON=yes | |
5613 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5614 | DEFAULT_wxUSE_CARET=yes |
5615 | DEFAULT_wxUSE_COMBOBOX=yes | |
10f2d63a VZ |
5616 | DEFAULT_wxUSE_CHECKBOX=yes |
5617 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
5618 | DEFAULT_wxUSE_CHOICE=yes | |
5619 | DEFAULT_wxUSE_GAUGE=yes | |
5620 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 5621 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
5622 | DEFAULT_wxUSE_IMAGLIST=yes |
5623 | DEFAULT_wxUSE_LISTBOX=yes | |
5624 | DEFAULT_wxUSE_LISTCTRL=yes | |
5625 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 5626 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
5627 | DEFAULT_wxUSE_RADIOBOX=yes |
5628 | DEFAULT_wxUSE_RADIOBTN=yes | |
5629 | DEFAULT_wxUSE_SASH=yes | |
5630 | DEFAULT_wxUSE_SCROLLBAR=yes | |
5631 | DEFAULT_wxUSE_SLIDER=yes | |
5632 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 5633 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
5634 | DEFAULT_wxUSE_SPLITTER=yes |
5635 | DEFAULT_wxUSE_STATBMP=yes | |
5636 | DEFAULT_wxUSE_STATBOX=yes | |
5637 | DEFAULT_wxUSE_STATLINE=yes | |
5638 | DEFAULT_wxUSE_STATUSBAR=yes | |
5639 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 5640 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 5641 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
5642 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
5643 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
5644 | DEFAULT_wxUSE_TOOLTIPS=yes |
5645 | DEFAULT_wxUSE_TREECTRL=yes | |
9f41d601 | 5646 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 5647 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
5648 | elif test "$wxUSE_CONTROLS" = "no"; then |
5649 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 VZ |
5650 | DEFAULT_wxUSE_BMPBUTTON=no |
5651 | DEFAULT_wxUSE_BUTTON=no | |
5652 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5653 | DEFAULT_wxUSE_CARET=no |
5654 | DEFAULT_wxUSE_COMBOBOX=no | |
10f2d63a VZ |
5655 | DEFAULT_wxUSE_CHECKBOX=no |
5656 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
5657 | DEFAULT_wxUSE_CHOICE=no | |
5658 | DEFAULT_wxUSE_GAUGE=no | |
5659 | DEFAULT_wxUSE_GRID=no | |
5660 | DEFAULT_wxUSE_NEW_GRID=no | |
5661 | DEFAULT_wxUSE_IMAGLIST=no | |
5662 | DEFAULT_wxUSE_LISTBOX=no | |
5663 | DEFAULT_wxUSE_LISTCTRL=no | |
5664 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 5665 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
5666 | DEFAULT_wxUSE_RADIOBOX=no |
5667 | DEFAULT_wxUSE_RADIOBTN=no | |
5668 | DEFAULT_wxUSE_SASH=no | |
5669 | DEFAULT_wxUSE_SCROLLBAR=no | |
5670 | DEFAULT_wxUSE_SLIDER=no | |
5671 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 5672 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
5673 | DEFAULT_wxUSE_SPLITTER=no |
5674 | DEFAULT_wxUSE_STATBMP=no | |
5675 | DEFAULT_wxUSE_STATBOX=no | |
5676 | DEFAULT_wxUSE_STATLINE=no | |
5677 | DEFAULT_wxUSE_STATUSBAR=no | |
5678 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 5679 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 5680 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
5681 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
5682 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
5683 | DEFAULT_wxUSE_TOOLTIPS=no |
5684 | DEFAULT_wxUSE_TREECTRL=no | |
9f41d601 | 5685 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 5686 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
5687 | fi |
5688 | ||
698dcdb6 VZ |
5689 | |
5690 | echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6 | |
19bc6aad | 5691 | echo "configure:5692: checking for --enable-accel" >&5 |
10f2d63a VZ |
5692 | no_cache=0 |
5693 | # Check whether --enable-accel or --disable-accel was given. | |
5694 | if test "${enable_accel+set}" = set; then | |
5695 | enableval="$enable_accel" | |
698dcdb6 | 5696 | |
10f2d63a VZ |
5697 | if test "$enableval" = yes; then |
5698 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
5699 | else | |
5700 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
5701 | fi | |
698dcdb6 | 5702 | |
10f2d63a | 5703 | else |
698dcdb6 | 5704 | |
10f2d63a VZ |
5705 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` |
5706 | if test "x$LINE" != x ; then | |
5707 | eval "DEFAULT_$LINE" | |
5708 | else | |
5709 | no_cache=1 | |
5710 | fi | |
5711 | ||
5712 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
698dcdb6 VZ |
5713 | |
5714 | fi | |
10f2d63a VZ |
5715 | |
5716 | ||
5717 | eval "$ac_cv_use_accel" | |
5718 | if test "$no_cache" != 1; then | |
5719 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
5720 | fi | |
5721 | ||
5722 | if test "$wxUSE_ACCEL" = yes; then | |
698dcdb6 | 5723 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5724 | else |
698dcdb6 | 5725 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5726 | fi |
698dcdb6 | 5727 | |
10f2d63a | 5728 | |
1e6feb95 | 5729 | echo $ac_n "checking for --enable-button""... $ac_c" 1>&6 |
19bc6aad | 5730 | echo "configure:5731: checking for --enable-button" >&5 |
10f2d63a | 5731 | no_cache=0 |
1e6feb95 VZ |
5732 | # Check whether --enable-button or --disable-button was given. |
5733 | if test "${enable_button+set}" = set; then | |
5734 | enableval="$enable_button" | |
698dcdb6 | 5735 | |
10f2d63a | 5736 | if test "$enableval" = yes; then |
1e6feb95 | 5737 | ac_cv_use_button='wxUSE_BUTTON=yes' |
10f2d63a | 5738 | else |
1e6feb95 | 5739 | ac_cv_use_button='wxUSE_BUTTON=no' |
10f2d63a | 5740 | fi |
698dcdb6 | 5741 | |
10f2d63a | 5742 | else |
698dcdb6 | 5743 | |
1e6feb95 | 5744 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` |
10f2d63a VZ |
5745 | if test "x$LINE" != x ; then |
5746 | eval "DEFAULT_$LINE" | |
5747 | else | |
5748 | no_cache=1 | |
5749 | fi | |
5750 | ||
1e6feb95 | 5751 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON |
698dcdb6 VZ |
5752 | |
5753 | fi | |
10f2d63a VZ |
5754 | |
5755 | ||
1e6feb95 | 5756 | eval "$ac_cv_use_button" |
10f2d63a | 5757 | if test "$no_cache" != 1; then |
1e6feb95 | 5758 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5759 | fi |
5760 | ||
1e6feb95 | 5761 | if test "$wxUSE_BUTTON" = yes; then |
698dcdb6 | 5762 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5763 | else |
698dcdb6 | 5764 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5765 | fi |
698dcdb6 | 5766 | |
10f2d63a | 5767 | |
698dcdb6 | 5768 | echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6 |
19bc6aad | 5769 | echo "configure:5770: checking for --enable-bmpbutton" >&5 |
10f2d63a VZ |
5770 | no_cache=0 |
5771 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
5772 | if test "${enable_bmpbutton+set}" = set; then | |
5773 | enableval="$enable_bmpbutton" | |
698dcdb6 | 5774 | |
10f2d63a VZ |
5775 | if test "$enableval" = yes; then |
5776 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
5777 | else | |
5778 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
5779 | fi | |
698dcdb6 | 5780 | |
10f2d63a | 5781 | else |
698dcdb6 | 5782 | |
10f2d63a VZ |
5783 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` |
5784 | if test "x$LINE" != x ; then | |
5785 | eval "DEFAULT_$LINE" | |
5786 | else | |
5787 | no_cache=1 | |
5788 | fi | |
5789 | ||
5790 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
698dcdb6 VZ |
5791 | |
5792 | fi | |
10f2d63a VZ |
5793 | |
5794 | ||
5795 | eval "$ac_cv_use_bmpbutton" | |
5796 | if test "$no_cache" != 1; then | |
5797 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
5798 | fi | |
5799 | ||
5800 | if test "$wxUSE_BMPBUTTON" = yes; then | |
698dcdb6 | 5801 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5802 | else |
698dcdb6 | 5803 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5804 | fi |
698dcdb6 | 5805 | |
10f2d63a | 5806 | |
1e6feb95 | 5807 | echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6 |
19bc6aad | 5808 | echo "configure:5809: checking for --enable-calendar" >&5 |
1e6feb95 VZ |
5809 | no_cache=0 |
5810 | # Check whether --enable-calendar or --disable-calendar was given. | |
5811 | if test "${enable_calendar+set}" = set; then | |
5812 | enableval="$enable_calendar" | |
5813 | ||
5814 | if test "$enableval" = yes; then | |
5815 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
5816 | else | |
5817 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
5818 | fi | |
5819 | ||
5820 | else | |
5821 | ||
5822 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
5823 | if test "x$LINE" != x ; then | |
5824 | eval "DEFAULT_$LINE" | |
5825 | else | |
5826 | no_cache=1 | |
5827 | fi | |
5828 | ||
5829 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
5830 | ||
5831 | fi | |
5832 | ||
5833 | ||
5834 | eval "$ac_cv_use_calendar" | |
5835 | if test "$no_cache" != 1; then | |
5836 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
5837 | fi | |
5838 | ||
5839 | if test "$wxUSE_CALCTRL" = yes; then | |
5840 | echo "$ac_t""yes" 1>&6 | |
5841 | else | |
5842 | echo "$ac_t""no" 1>&6 | |
5843 | fi | |
5844 | ||
5845 | ||
5846 | echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6 | |
19bc6aad | 5847 | echo "configure:5848: checking for --enable-caret" >&5 |
1e6feb95 VZ |
5848 | no_cache=0 |
5849 | # Check whether --enable-caret or --disable-caret was given. | |
5850 | if test "${enable_caret+set}" = set; then | |
5851 | enableval="$enable_caret" | |
5852 | ||
5853 | if test "$enableval" = yes; then | |
5854 | ac_cv_use_caret='wxUSE_CARET=yes' | |
5855 | else | |
5856 | ac_cv_use_caret='wxUSE_CARET=no' | |
5857 | fi | |
5858 | ||
5859 | else | |
5860 | ||
5861 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
5862 | if test "x$LINE" != x ; then | |
5863 | eval "DEFAULT_$LINE" | |
5864 | else | |
5865 | no_cache=1 | |
5866 | fi | |
5867 | ||
5868 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
5869 | ||
5870 | fi | |
5871 | ||
5872 | ||
5873 | eval "$ac_cv_use_caret" | |
5874 | if test "$no_cache" != 1; then | |
5875 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
5876 | fi | |
5877 | ||
5878 | if test "$wxUSE_CARET" = yes; then | |
5879 | echo "$ac_t""yes" 1>&6 | |
5880 | else | |
5881 | echo "$ac_t""no" 1>&6 | |
5882 | fi | |
5883 | ||
5884 | ||
698dcdb6 | 5885 | echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6 |
19bc6aad | 5886 | echo "configure:5887: checking for --enable-checkbox" >&5 |
10f2d63a VZ |
5887 | no_cache=0 |
5888 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
5889 | if test "${enable_checkbox+set}" = set; then | |
5890 | enableval="$enable_checkbox" | |
698dcdb6 | 5891 | |
10f2d63a VZ |
5892 | if test "$enableval" = yes; then |
5893 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
5894 | else | |
5895 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
5896 | fi | |
698dcdb6 | 5897 | |
10f2d63a | 5898 | else |
698dcdb6 | 5899 | |
10f2d63a VZ |
5900 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` |
5901 | if test "x$LINE" != x ; then | |
5902 | eval "DEFAULT_$LINE" | |
5903 | else | |
5904 | no_cache=1 | |
5905 | fi | |
5906 | ||
5907 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
698dcdb6 VZ |
5908 | |
5909 | fi | |
10f2d63a VZ |
5910 | |
5911 | ||
5912 | eval "$ac_cv_use_checkbox" | |
5913 | if test "$no_cache" != 1; then | |
5914 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
5915 | fi | |
5916 | ||
5917 | if test "$wxUSE_CHECKBOX" = yes; then | |
698dcdb6 | 5918 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5919 | else |
698dcdb6 | 5920 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5921 | fi |
698dcdb6 | 5922 | |
10f2d63a | 5923 | |
698dcdb6 | 5924 | echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6 |
19bc6aad | 5925 | echo "configure:5926: checking for --enable-checklst" >&5 |
10f2d63a VZ |
5926 | no_cache=0 |
5927 | # Check whether --enable-checklst or --disable-checklst was given. | |
5928 | if test "${enable_checklst+set}" = set; then | |
5929 | enableval="$enable_checklst" | |
698dcdb6 | 5930 | |
10f2d63a VZ |
5931 | if test "$enableval" = yes; then |
5932 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
5933 | else | |
5934 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
5935 | fi | |
698dcdb6 | 5936 | |
10f2d63a | 5937 | else |
698dcdb6 | 5938 | |
10f2d63a VZ |
5939 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` |
5940 | if test "x$LINE" != x ; then | |
5941 | eval "DEFAULT_$LINE" | |
5942 | else | |
5943 | no_cache=1 | |
5944 | fi | |
5945 | ||
5946 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
698dcdb6 VZ |
5947 | |
5948 | fi | |
10f2d63a VZ |
5949 | |
5950 | ||
5951 | eval "$ac_cv_use_checklst" | |
5952 | if test "$no_cache" != 1; then | |
5953 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
5954 | fi | |
5955 | ||
5956 | if test "$wxUSE_CHECKLST" = yes; then | |
698dcdb6 | 5957 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5958 | else |
698dcdb6 | 5959 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5960 | fi |
698dcdb6 | 5961 | |
10f2d63a | 5962 | |
698dcdb6 | 5963 | echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6 |
19bc6aad | 5964 | echo "configure:5965: checking for --enable-choice" >&5 |
10f2d63a VZ |
5965 | no_cache=0 |
5966 | # Check whether --enable-choice or --disable-choice was given. | |
5967 | if test "${enable_choice+set}" = set; then | |
5968 | enableval="$enable_choice" | |
698dcdb6 | 5969 | |
10f2d63a VZ |
5970 | if test "$enableval" = yes; then |
5971 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
5972 | else | |
5973 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
5974 | fi | |
698dcdb6 | 5975 | |
10f2d63a | 5976 | else |
698dcdb6 | 5977 | |
10f2d63a VZ |
5978 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` |
5979 | if test "x$LINE" != x ; then | |
5980 | eval "DEFAULT_$LINE" | |
5981 | else | |
5982 | no_cache=1 | |
5983 | fi | |
5984 | ||
5985 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
698dcdb6 VZ |
5986 | |
5987 | fi | |
10f2d63a VZ |
5988 | |
5989 | ||
5990 | eval "$ac_cv_use_choice" | |
5991 | if test "$no_cache" != 1; then | |
5992 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
5993 | fi | |
5994 | ||
5995 | if test "$wxUSE_CHOICE" = yes; then | |
698dcdb6 | 5996 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5997 | else |
698dcdb6 | 5998 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5999 | fi |
698dcdb6 | 6000 | |
10f2d63a | 6001 | |
698dcdb6 | 6002 | echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6 |
19bc6aad | 6003 | echo "configure:6004: checking for --enable-combobox" >&5 |
10f2d63a VZ |
6004 | no_cache=0 |
6005 | # Check whether --enable-combobox or --disable-combobox was given. | |
6006 | if test "${enable_combobox+set}" = set; then | |
6007 | enableval="$enable_combobox" | |
698dcdb6 | 6008 | |
10f2d63a VZ |
6009 | if test "$enableval" = yes; then |
6010 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
6011 | else | |
6012 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
6013 | fi | |
698dcdb6 | 6014 | |
10f2d63a | 6015 | else |
698dcdb6 | 6016 | |
10f2d63a VZ |
6017 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` |
6018 | if test "x$LINE" != x ; then | |
6019 | eval "DEFAULT_$LINE" | |
6020 | else | |
6021 | no_cache=1 | |
6022 | fi | |
6023 | ||
6024 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
698dcdb6 VZ |
6025 | |
6026 | fi | |
10f2d63a VZ |
6027 | |
6028 | ||
6029 | eval "$ac_cv_use_combobox" | |
6030 | if test "$no_cache" != 1; then | |
6031 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
6032 | fi | |
6033 | ||
6034 | if test "$wxUSE_COMBOBOX" = yes; then | |
698dcdb6 | 6035 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6036 | else |
698dcdb6 | 6037 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6038 | fi |
698dcdb6 | 6039 | |
10f2d63a | 6040 | |
698dcdb6 | 6041 | echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6 |
19bc6aad | 6042 | echo "configure:6043: checking for --enable-gauge" >&5 |
10f2d63a VZ |
6043 | no_cache=0 |
6044 | # Check whether --enable-gauge or --disable-gauge was given. | |
6045 | if test "${enable_gauge+set}" = set; then | |
6046 | enableval="$enable_gauge" | |
698dcdb6 | 6047 | |
10f2d63a VZ |
6048 | if test "$enableval" = yes; then |
6049 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
6050 | else | |
6051 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
6052 | fi | |
698dcdb6 | 6053 | |
10f2d63a | 6054 | else |
698dcdb6 | 6055 | |
10f2d63a VZ |
6056 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` |
6057 | if test "x$LINE" != x ; then | |
6058 | eval "DEFAULT_$LINE" | |
6059 | else | |
6060 | no_cache=1 | |
6061 | fi | |
6062 | ||
6063 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
698dcdb6 VZ |
6064 | |
6065 | fi | |
10f2d63a VZ |
6066 | |
6067 | ||
6068 | eval "$ac_cv_use_gauge" | |
6069 | if test "$no_cache" != 1; then | |
6070 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
6071 | fi | |
6072 | ||
6073 | if test "$wxUSE_GAUGE" = yes; then | |
698dcdb6 | 6074 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6075 | else |
698dcdb6 | 6076 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6077 | fi |
698dcdb6 | 6078 | |
10f2d63a | 6079 | |
698dcdb6 | 6080 | echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6 |
19bc6aad | 6081 | echo "configure:6082: checking for --enable-grid" >&5 |
10f2d63a VZ |
6082 | no_cache=0 |
6083 | # Check whether --enable-grid or --disable-grid was given. | |
6084 | if test "${enable_grid+set}" = set; then | |
6085 | enableval="$enable_grid" | |
698dcdb6 | 6086 | |
10f2d63a VZ |
6087 | if test "$enableval" = yes; then |
6088 | ac_cv_use_grid='wxUSE_GRID=yes' | |
6089 | else | |
6090 | ac_cv_use_grid='wxUSE_GRID=no' | |
6091 | fi | |
698dcdb6 | 6092 | |
10f2d63a | 6093 | else |
698dcdb6 | 6094 | |
10f2d63a VZ |
6095 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` |
6096 | if test "x$LINE" != x ; then | |
6097 | eval "DEFAULT_$LINE" | |
6098 | else | |
6099 | no_cache=1 | |
6100 | fi | |
6101 | ||
6102 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
698dcdb6 VZ |
6103 | |
6104 | fi | |
10f2d63a VZ |
6105 | |
6106 | ||
6107 | eval "$ac_cv_use_grid" | |
6108 | if test "$no_cache" != 1; then | |
6109 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
6110 | fi | |
6111 | ||
6112 | if test "$wxUSE_GRID" = yes; then | |
698dcdb6 | 6113 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6114 | else |
698dcdb6 | 6115 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6116 | fi |
698dcdb6 | 6117 | |
10f2d63a | 6118 | |
698dcdb6 | 6119 | echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6 |
19bc6aad | 6120 | echo "configure:6121: checking for --enable-newgrid" >&5 |
10f2d63a VZ |
6121 | no_cache=0 |
6122 | # Check whether --enable-newgrid or --disable-newgrid was given. | |
6123 | if test "${enable_newgrid+set}" = set; then | |
6124 | enableval="$enable_newgrid" | |
698dcdb6 | 6125 | |
10f2d63a VZ |
6126 | if test "$enableval" = yes; then |
6127 | ac_cv_use_newgrid='wxUSE_NEW_GRID=yes' | |
6128 | else | |
6129 | ac_cv_use_newgrid='wxUSE_NEW_GRID=no' | |
6130 | fi | |
698dcdb6 | 6131 | |
10f2d63a | 6132 | else |
698dcdb6 | 6133 | |
10f2d63a VZ |
6134 | LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}` |
6135 | if test "x$LINE" != x ; then | |
6136 | eval "DEFAULT_$LINE" | |
6137 | else | |
6138 | no_cache=1 | |
6139 | fi | |
6140 | ||
6141 | ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID | |
698dcdb6 VZ |
6142 | |
6143 | fi | |
10f2d63a VZ |
6144 | |
6145 | ||
6146 | eval "$ac_cv_use_newgrid" | |
6147 | if test "$no_cache" != 1; then | |
6148 | echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp | |
6149 | fi | |
6150 | ||
6151 | if test "$wxUSE_NEW_GRID" = yes; then | |
698dcdb6 | 6152 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6153 | else |
698dcdb6 | 6154 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6155 | fi |
698dcdb6 | 6156 | |
10f2d63a | 6157 | |
698dcdb6 | 6158 | echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6 |
19bc6aad | 6159 | echo "configure:6160: checking for --enable-imaglist" >&5 |
10f2d63a VZ |
6160 | no_cache=0 |
6161 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
6162 | if test "${enable_imaglist+set}" = set; then | |
6163 | enableval="$enable_imaglist" | |
698dcdb6 | 6164 | |
10f2d63a VZ |
6165 | if test "$enableval" = yes; then |
6166 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
6167 | else | |
6168 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
6169 | fi | |
698dcdb6 | 6170 | |
10f2d63a | 6171 | else |
698dcdb6 | 6172 | |
10f2d63a VZ |
6173 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` |
6174 | if test "x$LINE" != x ; then | |
6175 | eval "DEFAULT_$LINE" | |
6176 | else | |
6177 | no_cache=1 | |
6178 | fi | |
6179 | ||
6180 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
698dcdb6 VZ |
6181 | |
6182 | fi | |
10f2d63a VZ |
6183 | |
6184 | ||
6185 | eval "$ac_cv_use_imaglist" | |
6186 | if test "$no_cache" != 1; then | |
6187 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
6188 | fi | |
6189 | ||
6190 | if test "$wxUSE_IMAGLIST" = yes; then | |
698dcdb6 | 6191 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6192 | else |
698dcdb6 | 6193 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6194 | fi |
698dcdb6 | 6195 | |
10f2d63a | 6196 | |
698dcdb6 | 6197 | echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6 |
19bc6aad | 6198 | echo "configure:6199: checking for --enable-listbox" >&5 |
10f2d63a VZ |
6199 | no_cache=0 |
6200 | # Check whether --enable-listbox or --disable-listbox was given. | |
6201 | if test "${enable_listbox+set}" = set; then | |
6202 | enableval="$enable_listbox" | |
698dcdb6 | 6203 | |
10f2d63a VZ |
6204 | if test "$enableval" = yes; then |
6205 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
6206 | else | |
6207 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
6208 | fi | |
698dcdb6 | 6209 | |
10f2d63a | 6210 | else |
698dcdb6 | 6211 | |
10f2d63a VZ |
6212 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` |
6213 | if test "x$LINE" != x ; then | |
6214 | eval "DEFAULT_$LINE" | |
6215 | else | |
6216 | no_cache=1 | |
6217 | fi | |
6218 | ||
6219 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
698dcdb6 VZ |
6220 | |
6221 | fi | |
10f2d63a VZ |
6222 | |
6223 | ||
6224 | eval "$ac_cv_use_listbox" | |
6225 | if test "$no_cache" != 1; then | |
6226 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
6227 | fi | |
6228 | ||
6229 | if test "$wxUSE_LISTBOX" = yes; then | |
698dcdb6 | 6230 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6231 | else |
698dcdb6 | 6232 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6233 | fi |
698dcdb6 | 6234 | |
10f2d63a | 6235 | |
698dcdb6 | 6236 | echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6 |
19bc6aad | 6237 | echo "configure:6238: checking for --enable-listctrl" >&5 |
10f2d63a VZ |
6238 | no_cache=0 |
6239 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
6240 | if test "${enable_listctrl+set}" = set; then | |
6241 | enableval="$enable_listctrl" | |
698dcdb6 | 6242 | |
10f2d63a VZ |
6243 | if test "$enableval" = yes; then |
6244 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
6245 | else | |
6246 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
6247 | fi | |
698dcdb6 | 6248 | |
10f2d63a | 6249 | else |
698dcdb6 | 6250 | |
10f2d63a VZ |
6251 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` |
6252 | if test "x$LINE" != x ; then | |
6253 | eval "DEFAULT_$LINE" | |
6254 | else | |
6255 | no_cache=1 | |
6256 | fi | |
6257 | ||
6258 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
698dcdb6 VZ |
6259 | |
6260 | fi | |
10f2d63a VZ |
6261 | |
6262 | ||
6263 | eval "$ac_cv_use_listctrl" | |
6264 | if test "$no_cache" != 1; then | |
6265 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
6266 | fi | |
6267 | ||
6268 | if test "$wxUSE_LISTCTRL" = yes; then | |
698dcdb6 | 6269 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6270 | else |
698dcdb6 | 6271 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6272 | fi |
698dcdb6 | 6273 | |
10f2d63a | 6274 | |
698dcdb6 | 6275 | echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6 |
19bc6aad | 6276 | echo "configure:6277: checking for --enable-notebook" >&5 |
10f2d63a VZ |
6277 | no_cache=0 |
6278 | # Check whether --enable-notebook or --disable-notebook was given. | |
6279 | if test "${enable_notebook+set}" = set; then | |
6280 | enableval="$enable_notebook" | |
698dcdb6 | 6281 | |
10f2d63a VZ |
6282 | if test "$enableval" = yes; then |
6283 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
6284 | else | |
6285 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
6286 | fi | |
698dcdb6 | 6287 | |
10f2d63a | 6288 | else |
698dcdb6 | 6289 | |
10f2d63a VZ |
6290 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` |
6291 | if test "x$LINE" != x ; then | |
6292 | eval "DEFAULT_$LINE" | |
6293 | else | |
6294 | no_cache=1 | |
6295 | fi | |
6296 | ||
6297 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
698dcdb6 VZ |
6298 | |
6299 | fi | |
10f2d63a VZ |
6300 | |
6301 | ||
6302 | eval "$ac_cv_use_notebook" | |
6303 | if test "$no_cache" != 1; then | |
6304 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
6305 | fi | |
6306 | ||
6307 | if test "$wxUSE_NOTEBOOK" = yes; then | |
698dcdb6 | 6308 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6309 | else |
698dcdb6 | 6310 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6311 | fi |
698dcdb6 | 6312 | |
10f2d63a | 6313 | |
24176f2c | 6314 | echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6 |
19bc6aad | 6315 | echo "configure:6316: checking for --enable-propsheet" >&5 |
24176f2c GD |
6316 | no_cache=0 |
6317 | # Check whether --enable-propsheet or --disable-propsheet was given. | |
6318 | if test "${enable_propsheet+set}" = set; then | |
6319 | enableval="$enable_propsheet" | |
6320 | ||
6321 | if test "$enableval" = yes; then | |
6322 | ac_cv_use_propsheet='wxUSE_PROPSHEET=yes' | |
6323 | else | |
6324 | ac_cv_use_propsheet='wxUSE_PROPSHEET=no' | |
6325 | fi | |
6326 | ||
6327 | else | |
6328 | ||
6329 | LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}` | |
6330 | if test "x$LINE" != x ; then | |
6331 | eval "DEFAULT_$LINE" | |
6332 | else | |
6333 | no_cache=1 | |
6334 | fi | |
6335 | ||
6336 | ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET | |
6337 | ||
6338 | fi | |
6339 | ||
6340 | ||
6341 | eval "$ac_cv_use_propsheet" | |
6342 | if test "$no_cache" != 1; then | |
6343 | echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp | |
6344 | fi | |
6345 | ||
6346 | if test "$wxUSE_PROPSHEET" = yes; then | |
6347 | echo "$ac_t""yes" 1>&6 | |
6348 | else | |
6349 | echo "$ac_t""no" 1>&6 | |
6350 | fi | |
6351 | ||
6352 | ||
698dcdb6 | 6353 | echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6 |
19bc6aad | 6354 | echo "configure:6355: checking for --enable-radiobox" >&5 |
10f2d63a VZ |
6355 | no_cache=0 |
6356 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
6357 | if test "${enable_radiobox+set}" = set; then | |
6358 | enableval="$enable_radiobox" | |
698dcdb6 | 6359 | |
10f2d63a VZ |
6360 | if test "$enableval" = yes; then |
6361 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
6362 | else | |
6363 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
6364 | fi | |
698dcdb6 | 6365 | |
10f2d63a | 6366 | else |
698dcdb6 | 6367 | |
10f2d63a VZ |
6368 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` |
6369 | if test "x$LINE" != x ; then | |
6370 | eval "DEFAULT_$LINE" | |
6371 | else | |
6372 | no_cache=1 | |
6373 | fi | |
6374 | ||
6375 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
698dcdb6 VZ |
6376 | |
6377 | fi | |
10f2d63a VZ |
6378 | |
6379 | ||
6380 | eval "$ac_cv_use_radiobox" | |
6381 | if test "$no_cache" != 1; then | |
6382 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
6383 | fi | |
6384 | ||
6385 | if test "$wxUSE_RADIOBOX" = yes; then | |
698dcdb6 | 6386 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6387 | else |
698dcdb6 | 6388 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6389 | fi |
698dcdb6 | 6390 | |
10f2d63a | 6391 | |
698dcdb6 | 6392 | echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6 |
19bc6aad | 6393 | echo "configure:6394: checking for --enable-radiobtn" >&5 |
10f2d63a VZ |
6394 | no_cache=0 |
6395 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
6396 | if test "${enable_radiobtn+set}" = set; then | |
6397 | enableval="$enable_radiobtn" | |
698dcdb6 | 6398 | |
10f2d63a VZ |
6399 | if test "$enableval" = yes; then |
6400 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
6401 | else | |
6402 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
6403 | fi | |
698dcdb6 | 6404 | |
10f2d63a | 6405 | else |
698dcdb6 | 6406 | |
10f2d63a VZ |
6407 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` |
6408 | if test "x$LINE" != x ; then | |
6409 | eval "DEFAULT_$LINE" | |
6410 | else | |
6411 | no_cache=1 | |
6412 | fi | |
6413 | ||
6414 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
698dcdb6 VZ |
6415 | |
6416 | fi | |
10f2d63a VZ |
6417 | |
6418 | ||
6419 | eval "$ac_cv_use_radiobtn" | |
6420 | if test "$no_cache" != 1; then | |
6421 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
6422 | fi | |
6423 | ||
6424 | if test "$wxUSE_RADIOBTN" = yes; then | |
698dcdb6 | 6425 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6426 | else |
698dcdb6 | 6427 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6428 | fi |
698dcdb6 | 6429 | |
10f2d63a | 6430 | |
698dcdb6 | 6431 | echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6 |
19bc6aad | 6432 | echo "configure:6433: checking for --enable-sash" >&5 |
10f2d63a VZ |
6433 | no_cache=0 |
6434 | # Check whether --enable-sash or --disable-sash was given. | |
6435 | if test "${enable_sash+set}" = set; then | |
6436 | enableval="$enable_sash" | |
698dcdb6 | 6437 | |
10f2d63a VZ |
6438 | if test "$enableval" = yes; then |
6439 | ac_cv_use_sash='wxUSE_SASH=yes' | |
6440 | else | |
6441 | ac_cv_use_sash='wxUSE_SASH=no' | |
6442 | fi | |
698dcdb6 | 6443 | |
10f2d63a | 6444 | else |
698dcdb6 | 6445 | |
10f2d63a VZ |
6446 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` |
6447 | if test "x$LINE" != x ; then | |
6448 | eval "DEFAULT_$LINE" | |
6449 | else | |
6450 | no_cache=1 | |
6451 | fi | |
6452 | ||
6453 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
698dcdb6 VZ |
6454 | |
6455 | fi | |
10f2d63a VZ |
6456 | |
6457 | ||
6458 | eval "$ac_cv_use_sash" | |
6459 | if test "$no_cache" != 1; then | |
6460 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
6461 | fi | |
6462 | ||
6463 | if test "$wxUSE_SASH" = yes; then | |
698dcdb6 | 6464 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6465 | else |
698dcdb6 | 6466 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6467 | fi |
698dcdb6 | 6468 | |
10f2d63a | 6469 | |
698dcdb6 | 6470 | echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6 |
19bc6aad | 6471 | echo "configure:6472: checking for --enable-scrollbar" >&5 |
10f2d63a VZ |
6472 | no_cache=0 |
6473 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
6474 | if test "${enable_scrollbar+set}" = set; then | |
6475 | enableval="$enable_scrollbar" | |
698dcdb6 | 6476 | |
10f2d63a VZ |
6477 | if test "$enableval" = yes; then |
6478 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
6479 | else | |
6480 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
6481 | fi | |
698dcdb6 | 6482 | |
10f2d63a | 6483 | else |
698dcdb6 | 6484 | |
10f2d63a VZ |
6485 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` |
6486 | if test "x$LINE" != x ; then | |
6487 | eval "DEFAULT_$LINE" | |
6488 | else | |
6489 | no_cache=1 | |
6490 | fi | |
6491 | ||
6492 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
698dcdb6 VZ |
6493 | |
6494 | fi | |
10f2d63a VZ |
6495 | |
6496 | ||
6497 | eval "$ac_cv_use_scrollbar" | |
6498 | if test "$no_cache" != 1; then | |
6499 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
6500 | fi | |
6501 | ||
6502 | if test "$wxUSE_SCROLLBAR" = yes; then | |
698dcdb6 | 6503 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6504 | else |
698dcdb6 | 6505 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6506 | fi |
698dcdb6 | 6507 | |
10f2d63a | 6508 | |
698dcdb6 | 6509 | echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6 |
19bc6aad | 6510 | echo "configure:6511: checking for --enable-slider" >&5 |
10f2d63a VZ |
6511 | no_cache=0 |
6512 | # Check whether --enable-slider or --disable-slider was given. | |
6513 | if test "${enable_slider+set}" = set; then | |
6514 | enableval="$enable_slider" | |
698dcdb6 | 6515 | |
10f2d63a VZ |
6516 | if test "$enableval" = yes; then |
6517 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
6518 | else | |
6519 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
6520 | fi | |
698dcdb6 | 6521 | |
10f2d63a | 6522 | else |
698dcdb6 | 6523 | |
10f2d63a VZ |
6524 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` |
6525 | if test "x$LINE" != x ; then | |
6526 | eval "DEFAULT_$LINE" | |
6527 | else | |
6528 | no_cache=1 | |
6529 | fi | |
6530 | ||
6531 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
698dcdb6 VZ |
6532 | |
6533 | fi | |
10f2d63a VZ |
6534 | |
6535 | ||
6536 | eval "$ac_cv_use_slider" | |
6537 | if test "$no_cache" != 1; then | |
6538 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
6539 | fi | |
6540 | ||
6541 | if test "$wxUSE_SLIDER" = yes; then | |
698dcdb6 | 6542 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6543 | else |
698dcdb6 | 6544 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6545 | fi |
698dcdb6 | 6546 | |
10f2d63a | 6547 | |
698dcdb6 | 6548 | echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6 |
19bc6aad | 6549 | echo "configure:6550: checking for --enable-spinbtn" >&5 |
10f2d63a VZ |
6550 | no_cache=0 |
6551 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
6552 | if test "${enable_spinbtn+set}" = set; then | |
6553 | enableval="$enable_spinbtn" | |
698dcdb6 | 6554 | |
10f2d63a VZ |
6555 | if test "$enableval" = yes; then |
6556 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
6557 | else | |
6558 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
6559 | fi | |
698dcdb6 | 6560 | |
10f2d63a | 6561 | else |
698dcdb6 | 6562 | |
10f2d63a VZ |
6563 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` |
6564 | if test "x$LINE" != x ; then | |
6565 | eval "DEFAULT_$LINE" | |
6566 | else | |
6567 | no_cache=1 | |
6568 | fi | |
6569 | ||
6570 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
698dcdb6 VZ |
6571 | |
6572 | fi | |
10f2d63a VZ |
6573 | |
6574 | ||
6575 | eval "$ac_cv_use_spinbtn" | |
6576 | if test "$no_cache" != 1; then | |
6577 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
6578 | fi | |
6579 | ||
6580 | if test "$wxUSE_SPINBTN" = yes; then | |
698dcdb6 | 6581 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6582 | else |
698dcdb6 | 6583 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6584 | fi |
698dcdb6 | 6585 | |
10f2d63a | 6586 | |
698dcdb6 | 6587 | echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6 |
19bc6aad | 6588 | echo "configure:6589: checking for --enable-spinctrl" >&5 |
56cfaa52 RR |
6589 | no_cache=0 |
6590 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
6591 | if test "${enable_spinctrl+set}" = set; then | |
6592 | enableval="$enable_spinctrl" | |
698dcdb6 | 6593 | |
56cfaa52 RR |
6594 | if test "$enableval" = yes; then |
6595 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
6596 | else | |
6597 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
6598 | fi | |
698dcdb6 | 6599 | |
56cfaa52 | 6600 | else |
698dcdb6 | 6601 | |
56cfaa52 RR |
6602 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` |
6603 | if test "x$LINE" != x ; then | |
6604 | eval "DEFAULT_$LINE" | |
6605 | else | |
6606 | no_cache=1 | |
6607 | fi | |
6608 | ||
6609 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
698dcdb6 VZ |
6610 | |
6611 | fi | |
56cfaa52 RR |
6612 | |
6613 | ||
6614 | eval "$ac_cv_use_spinctrl" | |
6615 | if test "$no_cache" != 1; then | |
6616 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
6617 | fi | |
6618 | ||
6619 | if test "$wxUSE_SPINCTRL" = yes; then | |
698dcdb6 | 6620 | echo "$ac_t""yes" 1>&6 |
56cfaa52 | 6621 | else |
698dcdb6 | 6622 | echo "$ac_t""no" 1>&6 |
56cfaa52 | 6623 | fi |
698dcdb6 | 6624 | |
56cfaa52 | 6625 | |
698dcdb6 | 6626 | echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6 |
19bc6aad | 6627 | echo "configure:6628: checking for --enable-splitter" >&5 |
10f2d63a VZ |
6628 | no_cache=0 |
6629 | # Check whether --enable-splitter or --disable-splitter was given. | |
6630 | if test "${enable_splitter+set}" = set; then | |
6631 | enableval="$enable_splitter" | |
698dcdb6 | 6632 | |
10f2d63a VZ |
6633 | if test "$enableval" = yes; then |
6634 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
6635 | else | |
6636 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
6637 | fi | |
698dcdb6 | 6638 | |
10f2d63a | 6639 | else |
698dcdb6 | 6640 | |
10f2d63a VZ |
6641 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` |
6642 | if test "x$LINE" != x ; then | |
6643 | eval "DEFAULT_$LINE" | |
6644 | else | |
6645 | no_cache=1 | |
6646 | fi | |
6647 | ||
6648 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
698dcdb6 VZ |
6649 | |
6650 | fi | |
10f2d63a VZ |
6651 | |
6652 | ||
6653 | eval "$ac_cv_use_splitter" | |
6654 | if test "$no_cache" != 1; then | |
6655 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
6656 | fi | |
6657 | ||
6658 | if test "$wxUSE_SPLITTER" = yes; then | |
698dcdb6 | 6659 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6660 | else |
698dcdb6 | 6661 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6662 | fi |
698dcdb6 | 6663 | |
10f2d63a | 6664 | |
698dcdb6 | 6665 | echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6 |
19bc6aad | 6666 | echo "configure:6667: checking for --enable-statbmp" >&5 |
10f2d63a VZ |
6667 | no_cache=0 |
6668 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
6669 | if test "${enable_statbmp+set}" = set; then | |
6670 | enableval="$enable_statbmp" | |
698dcdb6 | 6671 | |
10f2d63a VZ |
6672 | if test "$enableval" = yes; then |
6673 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
6674 | else | |
6675 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
6676 | fi | |
698dcdb6 | 6677 | |
10f2d63a | 6678 | else |
698dcdb6 | 6679 | |
10f2d63a VZ |
6680 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` |
6681 | if test "x$LINE" != x ; then | |
6682 | eval "DEFAULT_$LINE" | |
6683 | else | |
6684 | no_cache=1 | |
6685 | fi | |
6686 | ||
6687 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
698dcdb6 VZ |
6688 | |
6689 | fi | |
10f2d63a VZ |
6690 | |
6691 | ||
6692 | eval "$ac_cv_use_statbmp" | |
6693 | if test "$no_cache" != 1; then | |
6694 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
6695 | fi | |
6696 | ||
6697 | if test "$wxUSE_STATBMP" = yes; then | |
698dcdb6 | 6698 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6699 | else |
698dcdb6 | 6700 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6701 | fi |
698dcdb6 | 6702 | |
10f2d63a | 6703 | |
698dcdb6 | 6704 | echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6 |
19bc6aad | 6705 | echo "configure:6706: checking for --enable-statbox" >&5 |
10f2d63a VZ |
6706 | no_cache=0 |
6707 | # Check whether --enable-statbox or --disable-statbox was given. | |
6708 | if test "${enable_statbox+set}" = set; then | |
6709 | enableval="$enable_statbox" | |
698dcdb6 | 6710 | |
10f2d63a VZ |
6711 | if test "$enableval" = yes; then |
6712 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
6713 | else | |
6714 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
6715 | fi | |
698dcdb6 | 6716 | |
10f2d63a | 6717 | else |
698dcdb6 | 6718 | |
10f2d63a VZ |
6719 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` |
6720 | if test "x$LINE" != x ; then | |
6721 | eval "DEFAULT_$LINE" | |
6722 | else | |
6723 | no_cache=1 | |
6724 | fi | |
6725 | ||
6726 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
698dcdb6 VZ |
6727 | |
6728 | fi | |
10f2d63a VZ |
6729 | |
6730 | ||
6731 | eval "$ac_cv_use_statbox" | |
6732 | if test "$no_cache" != 1; then | |
6733 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
6734 | fi | |
6735 | ||
6736 | if test "$wxUSE_STATBOX" = yes; then | |
698dcdb6 | 6737 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6738 | else |
698dcdb6 | 6739 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6740 | fi |
698dcdb6 | 6741 | |
10f2d63a | 6742 | |
698dcdb6 | 6743 | echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6 |
19bc6aad | 6744 | echo "configure:6745: checking for --enable-statline" >&5 |
10f2d63a VZ |
6745 | no_cache=0 |
6746 | # Check whether --enable-statline or --disable-statline was given. | |
6747 | if test "${enable_statline+set}" = set; then | |
6748 | enableval="$enable_statline" | |
698dcdb6 | 6749 | |
10f2d63a VZ |
6750 | if test "$enableval" = yes; then |
6751 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
6752 | else | |
6753 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
6754 | fi | |
698dcdb6 | 6755 | |
10f2d63a | 6756 | else |
698dcdb6 | 6757 | |
10f2d63a VZ |
6758 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` |
6759 | if test "x$LINE" != x ; then | |
6760 | eval "DEFAULT_$LINE" | |
6761 | else | |
6762 | no_cache=1 | |
6763 | fi | |
6764 | ||
6765 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
698dcdb6 VZ |
6766 | |
6767 | fi | |
10f2d63a VZ |
6768 | |
6769 | ||
6770 | eval "$ac_cv_use_statline" | |
6771 | if test "$no_cache" != 1; then | |
6772 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
6773 | fi | |
6774 | ||
6775 | if test "$wxUSE_STATLINE" = yes; then | |
698dcdb6 | 6776 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6777 | else |
698dcdb6 | 6778 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6779 | fi |
698dcdb6 | 6780 | |
10f2d63a | 6781 | |
1e6feb95 | 6782 | echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6 |
19bc6aad | 6783 | echo "configure:6784: checking for --enable-stattext" >&5 |
1e6feb95 VZ |
6784 | no_cache=0 |
6785 | # Check whether --enable-stattext or --disable-stattext was given. | |
6786 | if test "${enable_stattext+set}" = set; then | |
6787 | enableval="$enable_stattext" | |
6788 | ||
6789 | if test "$enableval" = yes; then | |
6790 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
6791 | else | |
6792 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
6793 | fi | |
6794 | ||
6795 | else | |
6796 | ||
6797 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
6798 | if test "x$LINE" != x ; then | |
6799 | eval "DEFAULT_$LINE" | |
6800 | else | |
6801 | no_cache=1 | |
6802 | fi | |
6803 | ||
6804 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
6805 | ||
6806 | fi | |
6807 | ||
6808 | ||
6809 | eval "$ac_cv_use_stattext" | |
6810 | if test "$no_cache" != 1; then | |
6811 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
6812 | fi | |
6813 | ||
6814 | if test "$wxUSE_STATTEXT" = yes; then | |
6815 | echo "$ac_t""yes" 1>&6 | |
6816 | else | |
6817 | echo "$ac_t""no" 1>&6 | |
6818 | fi | |
6819 | ||
6820 | ||
698dcdb6 | 6821 | echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6 |
19bc6aad | 6822 | echo "configure:6823: checking for --enable-statusbar" >&5 |
10f2d63a VZ |
6823 | no_cache=0 |
6824 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
6825 | if test "${enable_statusbar+set}" = set; then | |
6826 | enableval="$enable_statusbar" | |
698dcdb6 | 6827 | |
10f2d63a VZ |
6828 | if test "$enableval" = yes; then |
6829 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
6830 | else | |
6831 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
6832 | fi | |
698dcdb6 | 6833 | |
10f2d63a | 6834 | else |
698dcdb6 | 6835 | |
10f2d63a VZ |
6836 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` |
6837 | if test "x$LINE" != x ; then | |
6838 | eval "DEFAULT_$LINE" | |
6839 | else | |
6840 | no_cache=1 | |
6841 | fi | |
6842 | ||
6843 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
698dcdb6 VZ |
6844 | |
6845 | fi | |
10f2d63a VZ |
6846 | |
6847 | ||
6848 | eval "$ac_cv_use_statusbar" | |
6849 | if test "$no_cache" != 1; then | |
6850 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
6851 | fi | |
6852 | ||
6853 | if test "$wxUSE_STATUSBAR" = yes; then | |
698dcdb6 | 6854 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6855 | else |
698dcdb6 | 6856 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6857 | fi |
698dcdb6 | 6858 | |
10f2d63a | 6859 | |
698dcdb6 | 6860 | echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6 |
19bc6aad | 6861 | echo "configure:6862: checking for --enable-tabdialog" >&5 |
10f2d63a VZ |
6862 | no_cache=0 |
6863 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
6864 | if test "${enable_tabdialog+set}" = set; then | |
6865 | enableval="$enable_tabdialog" | |
698dcdb6 | 6866 | |
10f2d63a VZ |
6867 | if test "$enableval" = yes; then |
6868 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
6869 | else | |
6870 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
6871 | fi | |
698dcdb6 | 6872 | |
10f2d63a | 6873 | else |
698dcdb6 | 6874 | |
10f2d63a VZ |
6875 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` |
6876 | if test "x$LINE" != x ; then | |
6877 | eval "DEFAULT_$LINE" | |
6878 | else | |
6879 | no_cache=1 | |
6880 | fi | |
6881 | ||
6882 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
698dcdb6 VZ |
6883 | |
6884 | fi | |
10f2d63a VZ |
6885 | |
6886 | ||
6887 | eval "$ac_cv_use_tabdialog" | |
6888 | if test "$no_cache" != 1; then | |
6889 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
6890 | fi | |
6891 | ||
6892 | if test "$wxUSE_TABDIALOG" = yes; then | |
698dcdb6 | 6893 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6894 | else |
698dcdb6 | 6895 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6896 | fi |
698dcdb6 | 6897 | |
10f2d63a | 6898 | |
1e6feb95 | 6899 | echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6 |
19bc6aad | 6900 | echo "configure:6901: checking for --enable-textctrl" >&5 |
1e6feb95 VZ |
6901 | no_cache=0 |
6902 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
6903 | if test "${enable_textctrl+set}" = set; then | |
6904 | enableval="$enable_textctrl" | |
6905 | ||
6906 | if test "$enableval" = yes; then | |
6907 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
6908 | else | |
6909 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
6910 | fi | |
6911 | ||
6912 | else | |
6913 | ||
6914 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
6915 | if test "x$LINE" != x ; then | |
6916 | eval "DEFAULT_$LINE" | |
6917 | else | |
6918 | no_cache=1 | |
6919 | fi | |
6920 | ||
6921 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
6922 | ||
6923 | fi | |
6924 | ||
6925 | ||
6926 | eval "$ac_cv_use_textctrl" | |
6927 | if test "$no_cache" != 1; then | |
6928 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
6929 | fi | |
6930 | ||
6931 | if test "$wxUSE_TEXTCTRL" = yes; then | |
6932 | echo "$ac_t""yes" 1>&6 | |
6933 | else | |
6934 | echo "$ac_t""no" 1>&6 | |
6935 | fi | |
6936 | ||
6937 | ||
698dcdb6 | 6938 | echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6 |
19bc6aad | 6939 | echo "configure:6940: checking for --enable-togglebtn" >&5 |
1db8dc4a VZ |
6940 | no_cache=0 |
6941 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
6942 | if test "${enable_togglebtn+set}" = set; then | |
6943 | enableval="$enable_togglebtn" | |
698dcdb6 | 6944 | |
1db8dc4a VZ |
6945 | if test "$enableval" = yes; then |
6946 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
6947 | else | |
6948 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
6949 | fi | |
698dcdb6 | 6950 | |
1db8dc4a | 6951 | else |
698dcdb6 | 6952 | |
1db8dc4a VZ |
6953 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` |
6954 | if test "x$LINE" != x ; then | |
6955 | eval "DEFAULT_$LINE" | |
6956 | else | |
6957 | no_cache=1 | |
6958 | fi | |
6959 | ||
6960 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
698dcdb6 VZ |
6961 | |
6962 | fi | |
1db8dc4a VZ |
6963 | |
6964 | ||
6965 | eval "$ac_cv_use_togglebtn" | |
6966 | if test "$no_cache" != 1; then | |
6967 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
6968 | fi | |
6969 | ||
6970 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
698dcdb6 | 6971 | echo "$ac_t""yes" 1>&6 |
1db8dc4a | 6972 | else |
698dcdb6 | 6973 | echo "$ac_t""no" 1>&6 |
1db8dc4a | 6974 | fi |
698dcdb6 | 6975 | |
1db8dc4a | 6976 | |
698dcdb6 | 6977 | echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6 |
19bc6aad | 6978 | echo "configure:6979: checking for --enable-toolbar" >&5 |
10f2d63a VZ |
6979 | no_cache=0 |
6980 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
6981 | if test "${enable_toolbar+set}" = set; then | |
6982 | enableval="$enable_toolbar" | |
698dcdb6 | 6983 | |
10f2d63a VZ |
6984 | if test "$enableval" = yes; then |
6985 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
6986 | else | |
6987 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
6988 | fi | |
698dcdb6 | 6989 | |
10f2d63a | 6990 | else |
698dcdb6 | 6991 | |
10f2d63a VZ |
6992 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` |
6993 | if test "x$LINE" != x ; then | |
6994 | eval "DEFAULT_$LINE" | |
6995 | else | |
6996 | no_cache=1 | |
6997 | fi | |
6998 | ||
6999 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
698dcdb6 VZ |
7000 | |
7001 | fi | |
10f2d63a VZ |
7002 | |
7003 | ||
7004 | eval "$ac_cv_use_toolbar" | |
7005 | if test "$no_cache" != 1; then | |
7006 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
7007 | fi | |
7008 | ||
7009 | if test "$wxUSE_TOOLBAR" = yes; then | |
698dcdb6 | 7010 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7011 | else |
698dcdb6 | 7012 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7013 | fi |
698dcdb6 | 7014 | |
10f2d63a | 7015 | |
698dcdb6 | 7016 | echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6 |
19bc6aad | 7017 | echo "configure:7018: checking for --enable-tbarnative" >&5 |
360d6699 VZ |
7018 | no_cache=0 |
7019 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
7020 | if test "${enable_tbarnative+set}" = set; then | |
7021 | enableval="$enable_tbarnative" | |
698dcdb6 | 7022 | |
360d6699 VZ |
7023 | if test "$enableval" = yes; then |
7024 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
7025 | else | |
7026 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
7027 | fi | |
698dcdb6 | 7028 | |
360d6699 | 7029 | else |
698dcdb6 | 7030 | |
360d6699 VZ |
7031 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` |
7032 | if test "x$LINE" != x ; then | |
7033 | eval "DEFAULT_$LINE" | |
7034 | else | |
7035 | no_cache=1 | |
7036 | fi | |
7037 | ||
7038 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
698dcdb6 VZ |
7039 | |
7040 | fi | |
360d6699 VZ |
7041 | |
7042 | ||
7043 | eval "$ac_cv_use_tbarnative" | |
7044 | if test "$no_cache" != 1; then | |
7045 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
7046 | fi | |
7047 | ||
7048 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
698dcdb6 | 7049 | echo "$ac_t""yes" 1>&6 |
360d6699 | 7050 | else |
698dcdb6 | 7051 | echo "$ac_t""no" 1>&6 |
360d6699 | 7052 | fi |
698dcdb6 | 7053 | |
360d6699 | 7054 | |
698dcdb6 | 7055 | echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6 |
19bc6aad | 7056 | echo "configure:7057: checking for --enable-tbarsmpl" >&5 |
360d6699 VZ |
7057 | no_cache=0 |
7058 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
7059 | if test "${enable_tbarsmpl+set}" = set; then | |
7060 | enableval="$enable_tbarsmpl" | |
698dcdb6 | 7061 | |
360d6699 VZ |
7062 | if test "$enableval" = yes; then |
7063 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
7064 | else | |
7065 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
7066 | fi | |
698dcdb6 | 7067 | |
360d6699 | 7068 | else |
698dcdb6 | 7069 | |
360d6699 VZ |
7070 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` |
7071 | if test "x$LINE" != x ; then | |
7072 | eval "DEFAULT_$LINE" | |
7073 | else | |
7074 | no_cache=1 | |
7075 | fi | |
7076 | ||
7077 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
698dcdb6 VZ |
7078 | |
7079 | fi | |
360d6699 VZ |
7080 | |
7081 | ||
7082 | eval "$ac_cv_use_tbarsmpl" | |
7083 | if test "$no_cache" != 1; then | |
7084 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
7085 | fi | |
7086 | ||
7087 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
698dcdb6 | 7088 | echo "$ac_t""yes" 1>&6 |
360d6699 | 7089 | else |
698dcdb6 | 7090 | echo "$ac_t""no" 1>&6 |
360d6699 | 7091 | fi |
698dcdb6 | 7092 | |
360d6699 | 7093 | |
698dcdb6 | 7094 | echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6 |
19bc6aad | 7095 | echo "configure:7096: checking for --enable-treectrl" >&5 |
10f2d63a VZ |
7096 | no_cache=0 |
7097 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
7098 | if test "${enable_treectrl+set}" = set; then | |
7099 | enableval="$enable_treectrl" | |
698dcdb6 | 7100 | |
10f2d63a VZ |
7101 | if test "$enableval" = yes; then |
7102 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
7103 | else | |
7104 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
7105 | fi | |
698dcdb6 | 7106 | |
10f2d63a | 7107 | else |
698dcdb6 | 7108 | |
10f2d63a VZ |
7109 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` |
7110 | if test "x$LINE" != x ; then | |
7111 | eval "DEFAULT_$LINE" | |
7112 | else | |
7113 | no_cache=1 | |
7114 | fi | |
7115 | ||
7116 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
698dcdb6 VZ |
7117 | |
7118 | fi | |
10f2d63a VZ |
7119 | |
7120 | ||
1e6feb95 VZ |
7121 | eval "$ac_cv_use_treectrl" |
7122 | if test "$no_cache" != 1; then | |
7123 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
7124 | fi | |
7125 | ||
7126 | if test "$wxUSE_TREECTRL" = yes; then | |
7127 | echo "$ac_t""yes" 1>&6 | |
7128 | else | |
7129 | echo "$ac_t""no" 1>&6 | |
7130 | fi | |
7131 | ||
7132 | ||
9926e4a4 | 7133 | echo $ac_n "checking for --enable-tipwindow""... $ac_c" 1>&6 |
19bc6aad | 7134 | echo "configure:7135: checking for --enable-tipwindow" >&5 |
9926e4a4 VZ |
7135 | no_cache=0 |
7136 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
7137 | if test "${enable_tipwindow+set}" = set; then | |
7138 | enableval="$enable_tipwindow" | |
7139 | ||
7140 | if test "$enableval" = yes; then | |
7141 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
7142 | else | |
7143 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
7144 | fi | |
7145 | ||
7146 | else | |
7147 | ||
7148 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` | |
7149 | if test "x$LINE" != x ; then | |
7150 | eval "DEFAULT_$LINE" | |
7151 | else | |
7152 | no_cache=1 | |
7153 | fi | |
7154 | ||
7155 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
7156 | ||
7157 | fi | |
7158 | ||
7159 | ||
7160 | eval "$ac_cv_use_tipwindow" | |
7161 | if test "$no_cache" != 1; then | |
7162 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
7163 | fi | |
7164 | ||
7165 | if test "$wxUSE_TIPWINDOW" = yes; then | |
7166 | echo "$ac_t""yes" 1>&6 | |
7167 | else | |
7168 | echo "$ac_t""no" 1>&6 | |
7169 | fi | |
7170 | ||
7171 | ||
9f41d601 | 7172 | echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6 |
19bc6aad | 7173 | echo "configure:7174: checking for --enable-popupwin" >&5 |
9f41d601 RR |
7174 | no_cache=0 |
7175 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
7176 | if test "${enable_popupwin+set}" = set; then | |
7177 | enableval="$enable_popupwin" | |
7178 | ||
7179 | if test "$enableval" = yes; then | |
7180 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
7181 | else | |
7182 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
7183 | fi | |
7184 | ||
7185 | else | |
7186 | ||
7187 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` | |
7188 | if test "x$LINE" != x ; then | |
7189 | eval "DEFAULT_$LINE" | |
7190 | else | |
7191 | no_cache=1 | |
7192 | fi | |
7193 | ||
7194 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
7195 | ||
7196 | fi | |
7197 | ||
7198 | ||
7199 | eval "$ac_cv_use_popupwin" | |
7200 | if test "$no_cache" != 1; then | |
7201 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
7202 | fi | |
7203 | ||
7204 | if test "$wxUSE_POPUPWIN" = yes; then | |
7205 | echo "$ac_t""yes" 1>&6 | |
7206 | else | |
7207 | echo "$ac_t""no" 1>&6 | |
7208 | fi | |
7209 | ||
7210 | ||
1e6feb95 VZ |
7211 | |
7212 | ||
7213 | echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6 | |
19bc6aad | 7214 | echo "configure:7215: checking for --enable-commondlg" >&5 |
1e6feb95 VZ |
7215 | no_cache=0 |
7216 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
7217 | if test "${enable_commondlg+set}" = set; then | |
7218 | enableval="$enable_commondlg" | |
7219 | ||
7220 | if test "$enableval" = yes; then | |
7221 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
7222 | else | |
7223 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
7224 | fi | |
7225 | ||
7226 | else | |
7227 | ||
7228 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
7229 | if test "x$LINE" != x ; then | |
7230 | eval "DEFAULT_$LINE" | |
7231 | else | |
7232 | no_cache=1 | |
7233 | fi | |
7234 | ||
7235 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
7236 | ||
7237 | fi | |
7238 | ||
7239 | ||
7240 | eval "$ac_cv_use_commondlg" | |
7241 | if test "$no_cache" != 1; then | |
7242 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
7243 | fi | |
7244 | ||
7245 | if test "$wxUSE_COMMONDLGS" = yes; then | |
7246 | echo "$ac_t""yes" 1>&6 | |
7247 | else | |
7248 | echo "$ac_t""no" 1>&6 | |
7249 | fi | |
7250 | ||
7251 | ||
7252 | echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6 | |
19bc6aad | 7253 | echo "configure:7254: checking for --enable-choicedlg" >&5 |
1e6feb95 VZ |
7254 | no_cache=0 |
7255 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
7256 | if test "${enable_choicedlg+set}" = set; then | |
7257 | enableval="$enable_choicedlg" | |
7258 | ||
7259 | if test "$enableval" = yes; then | |
7260 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
7261 | else | |
7262 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
7263 | fi | |
7264 | ||
7265 | else | |
7266 | ||
7267 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
7268 | if test "x$LINE" != x ; then | |
7269 | eval "DEFAULT_$LINE" | |
7270 | else | |
7271 | no_cache=1 | |
7272 | fi | |
7273 | ||
7274 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
7275 | ||
7276 | fi | |
7277 | ||
7278 | ||
7279 | eval "$ac_cv_use_choicedlg" | |
7280 | if test "$no_cache" != 1; then | |
7281 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
7282 | fi | |
7283 | ||
7284 | if test "$wxUSE_CHOICEDLG" = yes; then | |
7285 | echo "$ac_t""yes" 1>&6 | |
7286 | else | |
7287 | echo "$ac_t""no" 1>&6 | |
7288 | fi | |
7289 | ||
7290 | ||
7291 | echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6 | |
19bc6aad | 7292 | echo "configure:7293: checking for --enable-coldlg" >&5 |
1e6feb95 VZ |
7293 | no_cache=0 |
7294 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
7295 | if test "${enable_coldlg+set}" = set; then | |
7296 | enableval="$enable_coldlg" | |
7297 | ||
7298 | if test "$enableval" = yes; then | |
7299 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
7300 | else | |
7301 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
7302 | fi | |
7303 | ||
7304 | else | |
7305 | ||
7306 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
7307 | if test "x$LINE" != x ; then | |
7308 | eval "DEFAULT_$LINE" | |
7309 | else | |
7310 | no_cache=1 | |
7311 | fi | |
7312 | ||
7313 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
7314 | ||
7315 | fi | |
7316 | ||
7317 | ||
7318 | eval "$ac_cv_use_coldlg" | |
7319 | if test "$no_cache" != 1; then | |
7320 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
7321 | fi | |
7322 | ||
7323 | if test "$wxUSE_COLOURDLG" = yes; then | |
7324 | echo "$ac_t""yes" 1>&6 | |
7325 | else | |
7326 | echo "$ac_t""no" 1>&6 | |
7327 | fi | |
7328 | ||
7329 | ||
7330 | echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6 | |
19bc6aad | 7331 | echo "configure:7332: checking for --enable-filedlg" >&5 |
1e6feb95 VZ |
7332 | no_cache=0 |
7333 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
7334 | if test "${enable_filedlg+set}" = set; then | |
7335 | enableval="$enable_filedlg" | |
7336 | ||
7337 | if test "$enableval" = yes; then | |
7338 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
7339 | else | |
7340 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
7341 | fi | |
7342 | ||
7343 | else | |
7344 | ||
7345 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
7346 | if test "x$LINE" != x ; then | |
7347 | eval "DEFAULT_$LINE" | |
7348 | else | |
7349 | no_cache=1 | |
7350 | fi | |
7351 | ||
7352 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
7353 | ||
7354 | fi | |
7355 | ||
7356 | ||
7357 | eval "$ac_cv_use_filedlg" | |
7358 | if test "$no_cache" != 1; then | |
7359 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
7360 | fi | |
7361 | ||
7362 | if test "$wxUSE_FILEDLG" = yes; then | |
7363 | echo "$ac_t""yes" 1>&6 | |
7364 | else | |
7365 | echo "$ac_t""no" 1>&6 | |
7366 | fi | |
7367 | ||
7368 | ||
69d27ff7 | 7369 | echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6 |
19bc6aad | 7370 | echo "configure:7371: checking for --enable-finddlg" >&5 |
8db37e06 | 7371 | no_cache=0 |
69d27ff7 MB |
7372 | # Check whether --enable-finddlg or --disable-finddlg was given. |
7373 | if test "${enable_finddlg+set}" = set; then | |
7374 | enableval="$enable_finddlg" | |
8db37e06 VZ |
7375 | |
7376 | if test "$enableval" = yes; then | |
69d27ff7 | 7377 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' |
8db37e06 | 7378 | else |
69d27ff7 | 7379 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' |
8db37e06 VZ |
7380 | fi |
7381 | ||
7382 | else | |
7383 | ||
7384 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` | |
7385 | if test "x$LINE" != x ; then | |
7386 | eval "DEFAULT_$LINE" | |
7387 | else | |
7388 | no_cache=1 | |
7389 | fi | |
7390 | ||
69d27ff7 | 7391 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG |
8db37e06 VZ |
7392 | |
7393 | fi | |
7394 | ||
7395 | ||
69d27ff7 | 7396 | eval "$ac_cv_use_finddlg" |
8db37e06 | 7397 | if test "$no_cache" != 1; then |
69d27ff7 | 7398 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp |
8db37e06 VZ |
7399 | fi |
7400 | ||
7401 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
7402 | echo "$ac_t""yes" 1>&6 | |
7403 | else | |
7404 | echo "$ac_t""no" 1>&6 | |
7405 | fi | |
7406 | ||
7407 | ||
1e6feb95 | 7408 | echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6 |
19bc6aad | 7409 | echo "configure:7410: checking for --enable-fontdlg" >&5 |
1e6feb95 VZ |
7410 | no_cache=0 |
7411 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
7412 | if test "${enable_fontdlg+set}" = set; then | |
7413 | enableval="$enable_fontdlg" | |
7414 | ||
7415 | if test "$enableval" = yes; then | |
7416 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
7417 | else | |
7418 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
7419 | fi | |
7420 | ||
7421 | else | |
7422 | ||
7423 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
7424 | if test "x$LINE" != x ; then | |
7425 | eval "DEFAULT_$LINE" | |
7426 | else | |
7427 | no_cache=1 | |
7428 | fi | |
7429 | ||
7430 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
7431 | ||
7432 | fi | |
7433 | ||
7434 | ||
7435 | eval "$ac_cv_use_fontdlg" | |
7436 | if test "$no_cache" != 1; then | |
7437 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
7438 | fi | |
7439 | ||
7440 | if test "$wxUSE_FONTDLG" = yes; then | |
7441 | echo "$ac_t""yes" 1>&6 | |
7442 | else | |
7443 | echo "$ac_t""no" 1>&6 | |
7444 | fi | |
7445 | ||
7446 | ||
7447 | echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6 | |
19bc6aad | 7448 | echo "configure:7449: checking for --enable-dirdlg" >&5 |
1e6feb95 VZ |
7449 | no_cache=0 |
7450 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
7451 | if test "${enable_dirdlg+set}" = set; then | |
7452 | enableval="$enable_dirdlg" | |
7453 | ||
7454 | if test "$enableval" = yes; then | |
7455 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
7456 | else | |
7457 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
7458 | fi | |
7459 | ||
7460 | else | |
7461 | ||
7462 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
7463 | if test "x$LINE" != x ; then | |
7464 | eval "DEFAULT_$LINE" | |
7465 | else | |
7466 | no_cache=1 | |
7467 | fi | |
7468 | ||
7469 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
7470 | ||
7471 | fi | |
7472 | ||
7473 | ||
7474 | eval "$ac_cv_use_dirdlg" | |
10f2d63a | 7475 | if test "$no_cache" != 1; then |
1e6feb95 | 7476 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7477 | fi |
7478 | ||
1e6feb95 | 7479 | if test "$wxUSE_DIRDLG" = yes; then |
698dcdb6 | 7480 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7481 | else |
698dcdb6 | 7482 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7483 | fi |
698dcdb6 VZ |
7484 | |
7485 | ||
1e6feb95 | 7486 | echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6 |
19bc6aad | 7487 | echo "configure:7488: checking for --enable-msgdlg" >&5 |
10f2d63a | 7488 | no_cache=0 |
1e6feb95 VZ |
7489 | # Check whether --enable-msgdlg or --disable-msgdlg was given. |
7490 | if test "${enable_msgdlg+set}" = set; then | |
7491 | enableval="$enable_msgdlg" | |
698dcdb6 | 7492 | |
10f2d63a | 7493 | if test "$enableval" = yes; then |
1e6feb95 | 7494 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' |
10f2d63a | 7495 | else |
1e6feb95 | 7496 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' |
10f2d63a | 7497 | fi |
698dcdb6 | 7498 | |
10f2d63a | 7499 | else |
698dcdb6 | 7500 | |
1e6feb95 | 7501 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
7502 | if test "x$LINE" != x ; then |
7503 | eval "DEFAULT_$LINE" | |
7504 | else | |
7505 | no_cache=1 | |
7506 | fi | |
7507 | ||
1e6feb95 | 7508 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG |
698dcdb6 VZ |
7509 | |
7510 | fi | |
10f2d63a VZ |
7511 | |
7512 | ||
1e6feb95 | 7513 | eval "$ac_cv_use_msgdlg" |
10f2d63a | 7514 | if test "$no_cache" != 1; then |
1e6feb95 | 7515 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7516 | fi |
7517 | ||
1e6feb95 | 7518 | if test "$wxUSE_MSGDLG" = yes; then |
698dcdb6 | 7519 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7520 | else |
698dcdb6 | 7521 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7522 | fi |
698dcdb6 | 7523 | |
10f2d63a | 7524 | |
1e6feb95 | 7525 | echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6 |
19bc6aad | 7526 | echo "configure:7527: checking for --enable-numberdlg" >&5 |
10f2d63a | 7527 | no_cache=0 |
1e6feb95 VZ |
7528 | # Check whether --enable-numberdlg or --disable-numberdlg was given. |
7529 | if test "${enable_numberdlg+set}" = set; then | |
7530 | enableval="$enable_numberdlg" | |
698dcdb6 | 7531 | |
10f2d63a | 7532 | if test "$enableval" = yes; then |
1e6feb95 | 7533 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' |
10f2d63a | 7534 | else |
1e6feb95 | 7535 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' |
10f2d63a | 7536 | fi |
698dcdb6 | 7537 | |
10f2d63a | 7538 | else |
698dcdb6 | 7539 | |
1e6feb95 | 7540 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
7541 | if test "x$LINE" != x ; then |
7542 | eval "DEFAULT_$LINE" | |
7543 | else | |
7544 | no_cache=1 | |
7545 | fi | |
7546 | ||
1e6feb95 | 7547 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG |
698dcdb6 VZ |
7548 | |
7549 | fi | |
10f2d63a VZ |
7550 | |
7551 | ||
1e6feb95 | 7552 | eval "$ac_cv_use_numberdlg" |
10f2d63a | 7553 | if test "$no_cache" != 1; then |
1e6feb95 | 7554 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7555 | fi |
7556 | ||
1e6feb95 | 7557 | if test "$wxUSE_NUMBERDLG" = yes; then |
698dcdb6 | 7558 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7559 | else |
698dcdb6 | 7560 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7561 | fi |
698dcdb6 | 7562 | |
10f2d63a | 7563 | |
cbca9943 | 7564 | echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6 |
19bc6aad | 7565 | echo "configure:7566: checking for --enable-splash" >&5 |
cbca9943 VZ |
7566 | no_cache=0 |
7567 | # Check whether --enable-splash or --disable-splash was given. | |
7568 | if test "${enable_splash+set}" = set; then | |
7569 | enableval="$enable_splash" | |
7570 | ||
7571 | if test "$enableval" = yes; then | |
7572 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
7573 | else | |
7574 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
7575 | fi | |
7576 | ||
7577 | else | |
7578 | ||
7579 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` | |
7580 | if test "x$LINE" != x ; then | |
7581 | eval "DEFAULT_$LINE" | |
7582 | else | |
7583 | no_cache=1 | |
7584 | fi | |
7585 | ||
7586 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
7587 | ||
7588 | fi | |
7589 | ||
7590 | ||
7591 | eval "$ac_cv_use_splash" | |
7592 | if test "$no_cache" != 1; then | |
7593 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
7594 | fi | |
7595 | ||
7596 | if test "$wxUSE_SPLASH" = yes; then | |
7597 | echo "$ac_t""yes" 1>&6 | |
7598 | else | |
7599 | echo "$ac_t""no" 1>&6 | |
7600 | fi | |
7601 | ||
7602 | ||
698dcdb6 | 7603 | echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6 |
19bc6aad | 7604 | echo "configure:7605: checking for --enable-textdlg" >&5 |
10f2d63a VZ |
7605 | no_cache=0 |
7606 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
7607 | if test "${enable_textdlg+set}" = set; then | |
7608 | enableval="$enable_textdlg" | |
698dcdb6 | 7609 | |
10f2d63a VZ |
7610 | if test "$enableval" = yes; then |
7611 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
7612 | else | |
7613 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
7614 | fi | |
698dcdb6 | 7615 | |
10f2d63a | 7616 | else |
698dcdb6 | 7617 | |
10f2d63a VZ |
7618 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` |
7619 | if test "x$LINE" != x ; then | |
7620 | eval "DEFAULT_$LINE" | |
7621 | else | |
7622 | no_cache=1 | |
7623 | fi | |
7624 | ||
7625 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
698dcdb6 VZ |
7626 | |
7627 | fi | |
10f2d63a VZ |
7628 | |
7629 | ||
7630 | eval "$ac_cv_use_textdlg" | |
7631 | if test "$no_cache" != 1; then | |
7632 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
7633 | fi | |
7634 | ||
7635 | if test "$wxUSE_TEXTDLG" = yes; then | |
698dcdb6 | 7636 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7637 | else |
698dcdb6 | 7638 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7639 | fi |
698dcdb6 | 7640 | |
10f2d63a | 7641 | |
698dcdb6 | 7642 | echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6 |
19bc6aad | 7643 | echo "configure:7644: checking for --enable-tipdlg" >&5 |
10f2d63a VZ |
7644 | no_cache=0 |
7645 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
7646 | if test "${enable_tipdlg+set}" = set; then | |
7647 | enableval="$enable_tipdlg" | |
698dcdb6 | 7648 | |
10f2d63a VZ |
7649 | if test "$enableval" = yes; then |
7650 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
7651 | else | |
7652 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
7653 | fi | |
698dcdb6 | 7654 | |
10f2d63a | 7655 | else |
698dcdb6 | 7656 | |
10f2d63a VZ |
7657 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` |
7658 | if test "x$LINE" != x ; then | |
7659 | eval "DEFAULT_$LINE" | |
7660 | else | |
7661 | no_cache=1 | |
7662 | fi | |
7663 | ||
7664 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
698dcdb6 VZ |
7665 | |
7666 | fi | |
10f2d63a VZ |
7667 | |
7668 | ||
7669 | eval "$ac_cv_use_tipdlg" | |
7670 | if test "$no_cache" != 1; then | |
7671 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
7672 | fi | |
7673 | ||
7674 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
698dcdb6 | 7675 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7676 | else |
698dcdb6 | 7677 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7678 | fi |
698dcdb6 | 7679 | |
10f2d63a | 7680 | |
698dcdb6 | 7681 | echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6 |
19bc6aad | 7682 | echo "configure:7683: checking for --enable-progressdlg" >&5 |
10f2d63a VZ |
7683 | no_cache=0 |
7684 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
7685 | if test "${enable_progressdlg+set}" = set; then | |
7686 | enableval="$enable_progressdlg" | |
698dcdb6 | 7687 | |
10f2d63a VZ |
7688 | if test "$enableval" = yes; then |
7689 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
7690 | else | |
7691 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
7692 | fi | |
698dcdb6 | 7693 | |
10f2d63a | 7694 | else |
698dcdb6 | 7695 | |
10f2d63a VZ |
7696 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` |
7697 | if test "x$LINE" != x ; then | |
7698 | eval "DEFAULT_$LINE" | |
7699 | else | |
7700 | no_cache=1 | |
7701 | fi | |
7702 | ||
7703 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
698dcdb6 VZ |
7704 | |
7705 | fi | |
10f2d63a VZ |
7706 | |
7707 | ||
7708 | eval "$ac_cv_use_progressdlg" | |
7709 | if test "$no_cache" != 1; then | |
7710 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
7711 | fi | |
7712 | ||
7713 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
698dcdb6 | 7714 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7715 | else |
698dcdb6 | 7716 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7717 | fi |
698dcdb6 | 7718 | |
10f2d63a | 7719 | |
b1f5d087 | 7720 | echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6 |
19bc6aad | 7721 | echo "configure:7722: checking for --enable-wizarddlg" >&5 |
b1f5d087 VZ |
7722 | no_cache=0 |
7723 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
7724 | if test "${enable_wizarddlg+set}" = set; then | |
7725 | enableval="$enable_wizarddlg" | |
7726 | ||
7727 | if test "$enableval" = yes; then | |
7728 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
7729 | else | |
7730 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
7731 | fi | |
7732 | ||
7733 | else | |
7734 | ||
7735 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
7736 | if test "x$LINE" != x ; then | |
7737 | eval "DEFAULT_$LINE" | |
7738 | else | |
7739 | no_cache=1 | |
7740 | fi | |
7741 | ||
7742 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
7743 | ||
7744 | fi | |
7745 | ||
7746 | ||
7747 | eval "$ac_cv_use_wizarddlg" | |
7748 | if test "$no_cache" != 1; then | |
7749 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
7750 | fi | |
7751 | ||
7752 | if test "$wxUSE_WIZARDDLG" = yes; then | |
7753 | echo "$ac_t""yes" 1>&6 | |
7754 | else | |
7755 | echo "$ac_t""no" 1>&6 | |
7756 | fi | |
7757 | ||
7758 | ||
7759 | ||
7760 | ||
1e6feb95 | 7761 | echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6 |
19bc6aad | 7762 | echo "configure:7763: checking for --enable-menus" >&5 |
1e6feb95 VZ |
7763 | no_cache=0 |
7764 | # Check whether --enable-menus or --disable-menus was given. | |
7765 | if test "${enable_menus+set}" = set; then | |
7766 | enableval="$enable_menus" | |
7767 | ||
7768 | if test "$enableval" = yes; then | |
7769 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
7770 | else | |
7771 | ac_cv_use_menus='wxUSE_MENUS=no' | |
7772 | fi | |
7773 | ||
7774 | else | |
7775 | ||
7776 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
7777 | if test "x$LINE" != x ; then | |
7778 | eval "DEFAULT_$LINE" | |
7779 | else | |
7780 | no_cache=1 | |
7781 | fi | |
7782 | ||
7783 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
7784 | ||
7785 | fi | |
7786 | ||
7787 | ||
7788 | eval "$ac_cv_use_menus" | |
7789 | if test "$no_cache" != 1; then | |
7790 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
7791 | fi | |
7792 | ||
7793 | if test "$wxUSE_MENUS" = yes; then | |
7794 | echo "$ac_t""yes" 1>&6 | |
7795 | else | |
7796 | echo "$ac_t""no" 1>&6 | |
7797 | fi | |
7798 | ||
7799 | ||
698dcdb6 | 7800 | echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6 |
19bc6aad | 7801 | echo "configure:7802: checking for --enable-miniframe" >&5 |
10f2d63a VZ |
7802 | no_cache=0 |
7803 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
7804 | if test "${enable_miniframe+set}" = set; then | |
7805 | enableval="$enable_miniframe" | |
698dcdb6 | 7806 | |
10f2d63a VZ |
7807 | if test "$enableval" = yes; then |
7808 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
7809 | else | |
7810 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
7811 | fi | |
698dcdb6 | 7812 | |
10f2d63a | 7813 | else |
698dcdb6 | 7814 | |
10f2d63a VZ |
7815 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` |
7816 | if test "x$LINE" != x ; then | |
7817 | eval "DEFAULT_$LINE" | |
7818 | else | |
7819 | no_cache=1 | |
7820 | fi | |
7821 | ||
7822 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
698dcdb6 VZ |
7823 | |
7824 | fi | |
10f2d63a VZ |
7825 | |
7826 | ||
7827 | eval "$ac_cv_use_miniframe" | |
7828 | if test "$no_cache" != 1; then | |
7829 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
7830 | fi | |
7831 | ||
7832 | if test "$wxUSE_MINIFRAME" = yes; then | |
698dcdb6 | 7833 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7834 | else |
698dcdb6 | 7835 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7836 | fi |
698dcdb6 | 7837 | |
10f2d63a | 7838 | |
698dcdb6 | 7839 | echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6 |
19bc6aad | 7840 | echo "configure:7841: checking for --enable-tooltips" >&5 |
10f2d63a VZ |
7841 | no_cache=0 |
7842 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
7843 | if test "${enable_tooltips+set}" = set; then | |
7844 | enableval="$enable_tooltips" | |
698dcdb6 | 7845 | |
10f2d63a VZ |
7846 | if test "$enableval" = yes; then |
7847 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
7848 | else | |
7849 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
7850 | fi | |
698dcdb6 | 7851 | |
10f2d63a | 7852 | else |
698dcdb6 | 7853 | |
10f2d63a VZ |
7854 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` |
7855 | if test "x$LINE" != x ; then | |
7856 | eval "DEFAULT_$LINE" | |
7857 | else | |
7858 | no_cache=1 | |
7859 | fi | |
7860 | ||
7861 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
698dcdb6 VZ |
7862 | |
7863 | fi | |
10f2d63a VZ |
7864 | |
7865 | ||
7866 | eval "$ac_cv_use_tooltips" | |
7867 | if test "$no_cache" != 1; then | |
7868 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
7869 | fi | |
7870 | ||
7871 | if test "$wxUSE_TOOLTIPS" = yes; then | |
698dcdb6 | 7872 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7873 | else |
698dcdb6 | 7874 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7875 | fi |
698dcdb6 | 7876 | |
10f2d63a | 7877 | |
698dcdb6 | 7878 | echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6 |
19bc6aad | 7879 | echo "configure:7880: checking for --enable-splines" >&5 |
10f2d63a VZ |
7880 | no_cache=0 |
7881 | # Check whether --enable-splines or --disable-splines was given. | |
7882 | if test "${enable_splines+set}" = set; then | |
7883 | enableval="$enable_splines" | |
698dcdb6 | 7884 | |
10f2d63a VZ |
7885 | if test "$enableval" = yes; then |
7886 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
7887 | else | |
7888 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
7889 | fi | |
698dcdb6 | 7890 | |
10f2d63a | 7891 | else |
698dcdb6 | 7892 | |
10f2d63a VZ |
7893 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` |
7894 | if test "x$LINE" != x ; then | |
7895 | eval "DEFAULT_$LINE" | |
7896 | else | |
7897 | no_cache=1 | |
7898 | fi | |
7899 | ||
7900 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
698dcdb6 VZ |
7901 | |
7902 | fi | |
10f2d63a VZ |
7903 | |
7904 | ||
7905 | eval "$ac_cv_use_splines" | |
7906 | if test "$no_cache" != 1; then | |
7907 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
7908 | fi | |
7909 | ||
7910 | if test "$wxUSE_SPLINES" = yes; then | |
698dcdb6 | 7911 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7912 | else |
698dcdb6 | 7913 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7914 | fi |
698dcdb6 | 7915 | |
10f2d63a | 7916 | |
698dcdb6 | 7917 | echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6 |
19bc6aad | 7918 | echo "configure:7919: checking for --enable-validators" >&5 |
10f2d63a VZ |
7919 | no_cache=0 |
7920 | # Check whether --enable-validators or --disable-validators was given. | |
7921 | if test "${enable_validators+set}" = set; then | |
7922 | enableval="$enable_validators" | |
698dcdb6 | 7923 | |
10f2d63a VZ |
7924 | if test "$enableval" = yes; then |
7925 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
7926 | else | |
7927 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
7928 | fi | |
698dcdb6 | 7929 | |
10f2d63a | 7930 | else |
698dcdb6 | 7931 | |
10f2d63a VZ |
7932 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` |
7933 | if test "x$LINE" != x ; then | |
7934 | eval "DEFAULT_$LINE" | |
7935 | else | |
7936 | no_cache=1 | |
7937 | fi | |
7938 | ||
7939 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
698dcdb6 VZ |
7940 | |
7941 | fi | |
10f2d63a VZ |
7942 | |
7943 | ||
7944 | eval "$ac_cv_use_validators" | |
7945 | if test "$no_cache" != 1; then | |
7946 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
7947 | fi | |
7948 | ||
7949 | if test "$wxUSE_VALIDATORS" = yes; then | |
698dcdb6 | 7950 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7951 | else |
698dcdb6 | 7952 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7953 | fi |
698dcdb6 | 7954 | |
10f2d63a | 7955 | |
698dcdb6 | 7956 | echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6 |
19bc6aad | 7957 | echo "configure:7958: checking for --enable-busyinfo" >&5 |
10f2d63a VZ |
7958 | no_cache=0 |
7959 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
7960 | if test "${enable_busyinfo+set}" = set; then | |
7961 | enableval="$enable_busyinfo" | |
698dcdb6 | 7962 | |
10f2d63a VZ |
7963 | if test "$enableval" = yes; then |
7964 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
7965 | else | |
7966 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
7967 | fi | |
698dcdb6 | 7968 | |
10f2d63a | 7969 | else |
698dcdb6 | 7970 | |
10f2d63a VZ |
7971 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` |
7972 | if test "x$LINE" != x ; then | |
7973 | eval "DEFAULT_$LINE" | |
7974 | else | |
7975 | no_cache=1 | |
7976 | fi | |
7977 | ||
7978 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
698dcdb6 VZ |
7979 | |
7980 | fi | |
10f2d63a VZ |
7981 | |
7982 | ||
7983 | eval "$ac_cv_use_busyinfo" | |
7984 | if test "$no_cache" != 1; then | |
7985 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
7986 | fi | |
7987 | ||
7988 | if test "$wxUSE_BUSYINFO" = yes; then | |
698dcdb6 | 7989 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7990 | else |
698dcdb6 | 7991 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7992 | fi |
698dcdb6 | 7993 | |
10f2d63a | 7994 | |
698dcdb6 | 7995 | echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6 |
19bc6aad | 7996 | echo "configure:7997: checking for --enable-joystick" >&5 |
f6bcfd97 BP |
7997 | no_cache=0 |
7998 | # Check whether --enable-joystick or --disable-joystick was given. | |
7999 | if test "${enable_joystick+set}" = set; then | |
8000 | enableval="$enable_joystick" | |
698dcdb6 | 8001 | |
f6bcfd97 BP |
8002 | if test "$enableval" = yes; then |
8003 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
8004 | else | |
8005 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
8006 | fi | |
698dcdb6 | 8007 | |
f6bcfd97 | 8008 | else |
698dcdb6 | 8009 | |
f6bcfd97 BP |
8010 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` |
8011 | if test "x$LINE" != x ; then | |
8012 | eval "DEFAULT_$LINE" | |
8013 | else | |
8014 | no_cache=1 | |
8015 | fi | |
8016 | ||
8017 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
698dcdb6 VZ |
8018 | |
8019 | fi | |
f6bcfd97 BP |
8020 | |
8021 | ||
8022 | eval "$ac_cv_use_joystick" | |
8023 | if test "$no_cache" != 1; then | |
8024 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
8025 | fi | |
8026 | ||
8027 | if test "$wxUSE_JOYSTICK" = yes; then | |
698dcdb6 | 8028 | echo "$ac_t""yes" 1>&6 |
f6bcfd97 | 8029 | else |
698dcdb6 | 8030 | echo "$ac_t""no" 1>&6 |
f6bcfd97 | 8031 | fi |
698dcdb6 VZ |
8032 | |
8033 | ||
1e6feb95 | 8034 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
19bc6aad | 8035 | echo "configure:8036: checking for --enable-metafile" >&5 |
1e6feb95 VZ |
8036 | no_cache=0 |
8037 | # Check whether --enable-metafile or --disable-metafile was given. | |
8038 | if test "${enable_metafile+set}" = set; then | |
8039 | enableval="$enable_metafile" | |
8040 | ||
8041 | if test "$enableval" = yes; then | |
8042 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
8043 | else | |
8044 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
8045 | fi | |
8046 | ||
8047 | else | |
8048 | ||
8049 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
8050 | if test "x$LINE" != x ; then | |
8051 | eval "DEFAULT_$LINE" | |
8052 | else | |
8053 | no_cache=1 | |
8054 | fi | |
8055 | ||
8056 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
8057 | ||
8058 | fi | |
8059 | ||
8060 | ||
8061 | eval "$ac_cv_use_metafile" | |
8062 | if test "$no_cache" != 1; then | |
8063 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
8064 | fi | |
8065 | ||
8066 | if test "$wxUSE_METAFILE" = yes; then | |
8067 | echo "$ac_t""yes" 1>&6 | |
8068 | else | |
8069 | echo "$ac_t""no" 1>&6 | |
8070 | fi | |
8071 | ||
8072 | ||
24fd6d87 | 8073 | echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6 |
19bc6aad | 8074 | echo "configure:8075: checking for --enable-dragimage" >&5 |
24fd6d87 VZ |
8075 | no_cache=0 |
8076 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
8077 | if test "${enable_dragimage+set}" = set; then | |
8078 | enableval="$enable_dragimage" | |
8079 | ||
8080 | if test "$enableval" = yes; then | |
8081 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
8082 | else | |
8083 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
8084 | fi | |
8085 | ||
8086 | else | |
8087 | ||
8088 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
8089 | if test "x$LINE" != x ; then | |
8090 | eval "DEFAULT_$LINE" | |
8091 | else | |
8092 | no_cache=1 | |
8093 | fi | |
8094 | ||
8095 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
8096 | ||
8097 | fi | |
8098 | ||
8099 | ||
8100 | eval "$ac_cv_use_dragimage" | |
8101 | if test "$no_cache" != 1; then | |
8102 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
8103 | fi | |
8104 | ||
8105 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
8106 | echo "$ac_t""yes" 1>&6 | |
8107 | else | |
8108 | echo "$ac_t""no" 1>&6 | |
8109 | fi | |
8110 | ||
8111 | ||
10f2d63a | 8112 | |
698dcdb6 | 8113 | |
edae8572 | 8114 | echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6 |
19bc6aad | 8115 | echo "configure:8116: checking for --enable-palette" >&5 |
edae8572 VZ |
8116 | no_cache=0 |
8117 | # Check whether --enable-palette or --disable-palette was given. | |
8118 | if test "${enable_palette+set}" = set; then | |
8119 | enableval="$enable_palette" | |
8120 | ||
8121 | if test "$enableval" = yes; then | |
8122 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
8123 | else | |
8124 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
8125 | fi | |
8126 | ||
8127 | else | |
8128 | ||
8129 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` | |
8130 | if test "x$LINE" != x ; then | |
8131 | eval "DEFAULT_$LINE" | |
8132 | else | |
8133 | no_cache=1 | |
8134 | fi | |
8135 | ||
8136 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
8137 | ||
8138 | fi | |
8139 | ||
8140 | ||
8141 | eval "$ac_cv_use_palette" | |
8142 | if test "$no_cache" != 1; then | |
8143 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
8144 | fi | |
8145 | ||
8146 | if test "$wxUSE_PALETTE" = yes; then | |
8147 | echo "$ac_t""yes" 1>&6 | |
8148 | else | |
8149 | echo "$ac_t""no" 1>&6 | |
8150 | fi | |
8151 | ||
8152 | ||
698dcdb6 | 8153 | echo $ac_n "checking for --enable-image""... $ac_c" 1>&6 |
19bc6aad | 8154 | echo "configure:8155: checking for --enable-image" >&5 |
0046ff7c VS |
8155 | no_cache=0 |
8156 | # Check whether --enable-image or --disable-image was given. | |
8157 | if test "${enable_image+set}" = set; then | |
8158 | enableval="$enable_image" | |
698dcdb6 | 8159 | |
0046ff7c VS |
8160 | if test "$enableval" = yes; then |
8161 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
8162 | else | |
8163 | ac_cv_use_image='wxUSE_IMAGE=no' | |
8164 | fi | |
698dcdb6 | 8165 | |
0046ff7c | 8166 | else |
698dcdb6 | 8167 | |
0046ff7c VS |
8168 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` |
8169 | if test "x$LINE" != x ; then | |
8170 | eval "DEFAULT_$LINE" | |
8171 | else | |
8172 | no_cache=1 | |
8173 | fi | |
8174 | ||
8175 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
698dcdb6 VZ |
8176 | |
8177 | fi | |
0046ff7c VS |
8178 | |
8179 | ||
8180 | eval "$ac_cv_use_image" | |
8181 | if test "$no_cache" != 1; then | |
8182 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
8183 | fi | |
8184 | ||
8185 | if test "$wxUSE_IMAGE" = yes; then | |
698dcdb6 | 8186 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 8187 | else |
698dcdb6 | 8188 | echo "$ac_t""no" 1>&6 |
0046ff7c | 8189 | fi |
698dcdb6 | 8190 | |
0046ff7c | 8191 | |
698dcdb6 | 8192 | echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6 |
19bc6aad | 8193 | echo "configure:8194: checking for --enable-gif" >&5 |
10f2d63a VZ |
8194 | no_cache=0 |
8195 | # Check whether --enable-gif or --disable-gif was given. | |
8196 | if test "${enable_gif+set}" = set; then | |
8197 | enableval="$enable_gif" | |
698dcdb6 | 8198 | |
10f2d63a VZ |
8199 | if test "$enableval" = yes; then |
8200 | ac_cv_use_gif='wxUSE_GIF=yes' | |
8201 | else | |
8202 | ac_cv_use_gif='wxUSE_GIF=no' | |
8203 | fi | |
698dcdb6 | 8204 | |
10f2d63a | 8205 | else |
698dcdb6 | 8206 | |
10f2d63a VZ |
8207 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` |
8208 | if test "x$LINE" != x ; then | |
8209 | eval "DEFAULT_$LINE" | |
8210 | else | |
8211 | no_cache=1 | |
8212 | fi | |
8213 | ||
8214 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
698dcdb6 VZ |
8215 | |
8216 | fi | |
10f2d63a VZ |
8217 | |
8218 | ||
8219 | eval "$ac_cv_use_gif" | |
8220 | if test "$no_cache" != 1; then | |
8221 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
8222 | fi | |
8223 | ||
8224 | if test "$wxUSE_GIF" = yes; then | |
698dcdb6 | 8225 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8226 | else |
698dcdb6 | 8227 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8228 | fi |
698dcdb6 | 8229 | |
10f2d63a | 8230 | |
698dcdb6 | 8231 | echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6 |
19bc6aad | 8232 | echo "configure:8233: checking for --enable-pcx" >&5 |
10f2d63a VZ |
8233 | no_cache=0 |
8234 | # Check whether --enable-pcx or --disable-pcx was given. | |
8235 | if test "${enable_pcx+set}" = set; then | |
8236 | enableval="$enable_pcx" | |
698dcdb6 | 8237 | |
10f2d63a VZ |
8238 | if test "$enableval" = yes; then |
8239 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
8240 | else | |
8241 | ac_cv_use_pcx='wxUSE_PCX=no' | |
8242 | fi | |
698dcdb6 | 8243 | |
10f2d63a | 8244 | else |
698dcdb6 | 8245 | |
10f2d63a VZ |
8246 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` |
8247 | if test "x$LINE" != x ; then | |
8248 | eval "DEFAULT_$LINE" | |
8249 | else | |
8250 | no_cache=1 | |
8251 | fi | |
8252 | ||
8253 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
698dcdb6 VZ |
8254 | |
8255 | fi | |
10f2d63a VZ |
8256 | |
8257 | ||
8258 | eval "$ac_cv_use_pcx" | |
8259 | if test "$no_cache" != 1; then | |
8260 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
8261 | fi | |
8262 | ||
8263 | if test "$wxUSE_PCX" = yes; then | |
698dcdb6 | 8264 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8265 | else |
698dcdb6 | 8266 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8267 | fi |
698dcdb6 | 8268 | |
10f2d63a | 8269 | |
4b6b4dfc | 8270 | echo $ac_n "checking for --enable-iff""... $ac_c" 1>&6 |
19bc6aad | 8271 | echo "configure:8272: checking for --enable-iff" >&5 |
4b6b4dfc RR |
8272 | no_cache=0 |
8273 | # Check whether --enable-iff or --disable-iff was given. | |
8274 | if test "${enable_iff+set}" = set; then | |
8275 | enableval="$enable_iff" | |
8276 | ||
8277 | if test "$enableval" = yes; then | |
8278 | ac_cv_use_iff='wxUSE_IFF=yes' | |
8279 | else | |
8280 | ac_cv_use_iff='wxUSE_IFF=no' | |
8281 | fi | |
8282 | ||
8283 | else | |
8284 | ||
8285 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` | |
8286 | if test "x$LINE" != x ; then | |
8287 | eval "DEFAULT_$LINE" | |
8288 | else | |
8289 | no_cache=1 | |
8290 | fi | |
8291 | ||
8292 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
8293 | ||
8294 | fi | |
8295 | ||
8296 | ||
8297 | eval "$ac_cv_use_iff" | |
8298 | if test "$no_cache" != 1; then | |
8299 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
8300 | fi | |
8301 | ||
8302 | if test "$wxUSE_IFF" = yes; then | |
8303 | echo "$ac_t""yes" 1>&6 | |
8304 | else | |
8305 | echo "$ac_t""no" 1>&6 | |
8306 | fi | |
8307 | ||
8308 | ||
698dcdb6 | 8309 | echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6 |
19bc6aad | 8310 | echo "configure:8311: checking for --enable-pnm" >&5 |
10f2d63a VZ |
8311 | no_cache=0 |
8312 | # Check whether --enable-pnm or --disable-pnm was given. | |
8313 | if test "${enable_pnm+set}" = set; then | |
8314 | enableval="$enable_pnm" | |
698dcdb6 | 8315 | |
10f2d63a VZ |
8316 | if test "$enableval" = yes; then |
8317 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
8318 | else | |
8319 | ac_cv_use_pnm='wxUSE_PNM=no' | |
8320 | fi | |
698dcdb6 | 8321 | |
10f2d63a | 8322 | else |
698dcdb6 | 8323 | |
10f2d63a VZ |
8324 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` |
8325 | if test "x$LINE" != x ; then | |
8326 | eval "DEFAULT_$LINE" | |
8327 | else | |
8328 | no_cache=1 | |
8329 | fi | |
8330 | ||
8331 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
698dcdb6 VZ |
8332 | |
8333 | fi | |
10f2d63a VZ |
8334 | |
8335 | ||
8336 | eval "$ac_cv_use_pnm" | |
8337 | if test "$no_cache" != 1; then | |
8338 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
8339 | fi | |
8340 | ||
8341 | if test "$wxUSE_PNM" = yes; then | |
698dcdb6 | 8342 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8343 | else |
698dcdb6 | 8344 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8345 | fi |
698dcdb6 | 8346 | |
10f2d63a | 8347 | |
69d27ff7 | 8348 | echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6 |
19bc6aad | 8349 | echo "configure:8350: checking for --enable-xpm" >&5 |
0046ff7c | 8350 | no_cache=0 |
69d27ff7 MB |
8351 | # Check whether --enable-xpm or --disable-xpm was given. |
8352 | if test "${enable_xpm+set}" = set; then | |
8353 | enableval="$enable_xpm" | |
698dcdb6 | 8354 | |
0046ff7c | 8355 | if test "$enableval" = yes; then |
69d27ff7 | 8356 | ac_cv_use_xpm='wxUSE_XPM=yes' |
0046ff7c | 8357 | else |
69d27ff7 | 8358 | ac_cv_use_xpm='wxUSE_XPM=no' |
0046ff7c | 8359 | fi |
698dcdb6 | 8360 | |
0046ff7c | 8361 | else |
698dcdb6 | 8362 | |
0046ff7c VS |
8363 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` |
8364 | if test "x$LINE" != x ; then | |
8365 | eval "DEFAULT_$LINE" | |
8366 | else | |
8367 | no_cache=1 | |
8368 | fi | |
8369 | ||
69d27ff7 | 8370 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM |
698dcdb6 VZ |
8371 | |
8372 | fi | |
0046ff7c VS |
8373 | |
8374 | ||
69d27ff7 | 8375 | eval "$ac_cv_use_xpm" |
0046ff7c | 8376 | if test "$no_cache" != 1; then |
69d27ff7 | 8377 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp |
0046ff7c VS |
8378 | fi |
8379 | ||
8380 | if test "$wxUSE_XPM" = yes; then | |
698dcdb6 | 8381 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 8382 | else |
698dcdb6 | 8383 | echo "$ac_t""no" 1>&6 |
0046ff7c | 8384 | fi |
698dcdb6 | 8385 | |
0046ff7c | 8386 | |
c7206e64 | 8387 | echo $ac_n "checking for --enable-ico_cur""... $ac_c" 1>&6 |
19bc6aad | 8388 | echo "configure:8389: checking for --enable-ico_cur" >&5 |
658974ae | 8389 | no_cache=0 |
c7206e64 VS |
8390 | # Check whether --enable-ico_cur or --disable-ico_cur was given. |
8391 | if test "${enable_ico_cur+set}" = set; then | |
8392 | enableval="$enable_ico_cur" | |
658974ae VS |
8393 | |
8394 | if test "$enableval" = yes; then | |
c7206e64 | 8395 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' |
658974ae | 8396 | else |
c7206e64 | 8397 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' |
658974ae VS |
8398 | fi |
8399 | ||
8400 | else | |
8401 | ||
8402 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` | |
8403 | if test "x$LINE" != x ; then | |
8404 | eval "DEFAULT_$LINE" | |
8405 | else | |
8406 | no_cache=1 | |
8407 | fi | |
8408 | ||
c7206e64 | 8409 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR |
658974ae VS |
8410 | |
8411 | fi | |
8412 | ||
8413 | ||
c7206e64 | 8414 | eval "$ac_cv_use_ico_cur" |
658974ae | 8415 | if test "$no_cache" != 1; then |
c7206e64 | 8416 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp |
658974ae VS |
8417 | fi |
8418 | ||
8419 | if test "$wxUSE_ICO_CUR" = yes; then | |
8420 | echo "$ac_t""yes" 1>&6 | |
8421 | else | |
8422 | echo "$ac_t""no" 1>&6 | |
8423 | fi | |
8424 | ||
8425 | ||
b12915c1 VZ |
8426 | fi |
8427 | ||
d558c907 VS |
8428 | case "${host}" in |
8429 | *-pc-os2_emx | *-pc-os2-emx ) | |
8430 | LEX_STEM="lexyy" | |
8431 | ;; | |
8432 | *) | |
8433 | PATH_IFS=':' | |
8434 | LEX_STEM="lex.yy" | |
8435 | ;; | |
8436 | esac | |
8437 | ||
8438 | ||
698dcdb6 | 8439 | |
10f2d63a VZ |
8440 | echo "saving argument cache $wx_arg_cache_file" |
8441 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
698dcdb6 | 8442 | |
10f2d63a | 8443 | |
698dcdb6 VZ |
8444 | |
8445 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 | |
19bc6aad | 8446 | echo "configure:8447: checking for toolkit" >&5 |
10f2d63a VZ |
8447 | |
8448 | if test "$wxUSE_GUI" = "yes"; then | |
8449 | ||
3a922bb4 RL |
8450 | if test "$USE_BEOS" = 1; then |
8451 | { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; } | |
8452 | fi | |
b12915c1 | 8453 | |
3a922bb4 RL |
8454 | if test "$TOOLKIT_GIVEN" = 1; then |
8455 | for toolkit in `echo $ALL_TOOLKITS`; do | |
8456 | var=wxUSE_$toolkit | |
8457 | eval "value=\$${var}" | |
8458 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
8459 | done | |
10f2d63a | 8460 | else |
3a922bb4 RL |
8461 | for toolkit in `echo $ALL_TOOLKITS`; do |
8462 | if test "$has_toolkit_in_cache" != 1; then | |
8463 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
8464 | else | |
8465 | var=DEFAULT_wxUSE_$toolkit | |
8466 | fi | |
8467 | eval "wxUSE_$toolkit=\$${var}" | |
8468 | done | |
10f2d63a | 8469 | fi |
10f2d63a | 8470 | |
3a922bb4 | 8471 | NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \ |
f79bd02d | 8472 | + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}` |
10f2d63a | 8473 | |
d558c907 | 8474 | case "${host}" in |
6fa882bd | 8475 | *-pc-os2_emx | *-pc-os2-emx ) |
3a922bb4 | 8476 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` |
3a922bb4 | 8477 | esac |
10f2d63a | 8478 | |
3a922bb4 RL |
8479 | case "$NUM_TOOLKITS" in |
8480 | 1) | |
8481 | ;; | |
8482 | 0) | |
8483 | { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; } | |
8484 | ;; | |
8485 | *) | |
8486 | { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; } | |
8487 | esac | |
10f2d63a | 8488 | |
3a922bb4 RL |
8489 | for toolkit in `echo $ALL_TOOLKITS`; do |
8490 | var=wxUSE_$toolkit | |
8491 | eval "value=\$${var}" | |
8492 | if test "x$value" != x; then | |
8493 | cache_var=CACHE_$toolkit | |
8494 | eval "cache=\$${cache_var}" | |
8495 | if test "$cache" = 1; then | |
8496 | echo "$var=$value" >> ${wx_arg_cache_file} | |
8497 | fi | |
8498 | if test "$value" = 1; then | |
8499 | toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]` | |
8500 | echo "$ac_t""$toolkit_echo" 1>&6 | |
8501 | fi | |
8502 | fi | |
8503 | done | |
10f2d63a | 8504 | else |
3a922bb4 | 8505 | echo "$ac_t""base ($host_alias hosted) only" 1>&6 |
10f2d63a VZ |
8506 | fi |
8507 | ||
698dcdb6 VZ |
8508 | |
8509 | cat > confcache <<\EOF | |
10f2d63a VZ |
8510 | # This file is a shell script that caches the results of configure |
8511 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
8512 | # scripts and configure runs. It is not useful on other systems. |
8513 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 8514 | # |
698dcdb6 VZ |
8515 | # By default, configure uses ./config.cache as the cache file, |
8516 | # creating it if it does not exist already. You can give configure | |
8517 | # the --cache-file=FILE option to use a different cache file; that is | |
8518 | # what configure does when it calls configure scripts in | |
8519 | # subdirectories, so they share the cache. | |
8520 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
8521 | # config.status only pays attention to the cache file if you give it the | |
8522 | # --recheck option to rerun configure. | |
10f2d63a | 8523 | # |
698dcdb6 | 8524 | EOF |
10f2d63a VZ |
8525 | # The following way of writing the cache mishandles newlines in values, |
8526 | # but we know of no workaround that is simple, portable, and efficient. | |
8527 | # So, don't put newlines in cache variables' values. | |
8528 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
8529 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
8530 | (set) 2>&1 | |
8531 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
8532 | *ac_space=\ *) | |
8533 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
8534 | # turns \\\\ into \\, and sed turns \\ into \). | |
8535 | sed -n \ | |
8536 | -e "s/'/'\\\\''/g" \ | |
8537 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
8538 | ;; | |
8539 | *) | |
8540 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
8541 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
8542 | ;; | |
8543 | esac >> confcache | |
8544 | if cmp -s $cache_file confcache; then | |
8545 | : | |
8546 | else | |
10f2d63a | 8547 | if test -w $cache_file; then |
698dcdb6 VZ |
8548 | echo "updating cache $cache_file" |
8549 | cat confcache > $cache_file | |
10f2d63a VZ |
8550 | else |
8551 | echo "not updating unwritable cache $cache_file" | |
8552 | fi | |
8553 | fi | |
8554 | rm -f confcache | |
8555 | ||
698dcdb6 | 8556 | |
e59890c3 | 8557 | if test "$build" != "$host" ; then |
9d353d4a | 8558 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then |
3a922bb4 RL |
8559 | CC=$host_alias-gcc |
8560 | CXX=$host_alias-c++ | |
8561 | AR=$host_alias-ar | |
8562 | RANLIB=$host_alias-ranlib | |
8563 | DLLTOOL=$host_alias-dlltool | |
8564 | RESCOMP=$host_alias-windres | |
8565 | LD=$host_alias-ld | |
8566 | NM=$host_alias-nm | |
8567 | STRIP=$host_alias-strip | |
8568 | else | |
8569 | { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; } | |
8570 | fi | |
10f2d63a VZ |
8571 | fi |
8572 | ||
ec603395 | 8573 | CFLAGS=${CFLAGS:=} |
698dcdb6 | 8574 | # Extract the first word of "gcc", so it can be a program name with args. |
1e487827 | 8575 | set dummy gcc; ac_word=$2 |
698dcdb6 | 8576 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
19bc6aad | 8577 | echo "configure:8578: checking for $ac_word" >&5 |
698dcdb6 VZ |
8578 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8579 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6232543b VS |
8580 | else |
8581 | if test -n "$CC"; then | |
8582 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10f2d63a | 8583 | else |
698dcdb6 VZ |
8584 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8585 | ac_dummy="$PATH" | |
8586 | for ac_dir in $ac_dummy; do | |
8587 | test -z "$ac_dir" && ac_dir=. | |
8588 | if test -f $ac_dir/$ac_word; then | |
8589 | ac_cv_prog_CC="gcc" | |
8590 | break | |
8591 | fi | |
8592 | done | |
8593 | IFS="$ac_save_ifs" | |
10f2d63a | 8594 | fi |
6232543b | 8595 | fi |
698dcdb6 | 8596 | CC="$ac_cv_prog_CC" |
6232543b | 8597 | if test -n "$CC"; then |
698dcdb6 | 8598 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 8599 | else |
698dcdb6 | 8600 | echo "$ac_t""no" 1>&6 |
1e487827 | 8601 | fi |
6232543b | 8602 | |
1e487827 VS |
8603 | if test -z "$CC"; then |
8604 | # Extract the first word of "cc", so it can be a program name with args. | |
8605 | set dummy cc; ac_word=$2 | |
698dcdb6 | 8606 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
19bc6aad | 8607 | echo "configure:8608: checking for $ac_word" >&5 |
698dcdb6 VZ |
8608 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8609 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 VS |
8610 | else |
8611 | if test -n "$CC"; then | |
8612 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
8613 | else | |
698dcdb6 | 8614 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1e487827 | 8615 | ac_prog_rejected=no |
698dcdb6 VZ |
8616 | ac_dummy="$PATH" |
8617 | for ac_dir in $ac_dummy; do | |
8618 | test -z "$ac_dir" && ac_dir=. | |
8619 | if test -f $ac_dir/$ac_word; then | |
8620 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
8621 | ac_prog_rejected=yes | |
8622 | continue | |
8623 | fi | |
8624 | ac_cv_prog_CC="cc" | |
8625 | break | |
8626 | fi | |
8627 | done | |
8628 | IFS="$ac_save_ifs" | |
1e487827 VS |
8629 | if test $ac_prog_rejected = yes; then |
8630 | # We found a bogon in the path, so make sure we never use it. | |
8631 | set dummy $ac_cv_prog_CC | |
8632 | shift | |
698dcdb6 | 8633 | if test $# -gt 0; then |
1e487827 VS |
8634 | # We chose a different compiler from the bogus one. |
8635 | # However, it has the same basename, so the bogon will be chosen | |
8636 | # first if we set CC to just the basename; use the full file name. | |
8637 | shift | |
698dcdb6 | 8638 | set dummy "$ac_dir/$ac_word" "$@" |
1e487827 VS |
8639 | shift |
8640 | ac_cv_prog_CC="$@" | |
703e0a69 | 8641 | fi |
1e487827 VS |
8642 | fi |
8643 | fi | |
8644 | fi | |
698dcdb6 | 8645 | CC="$ac_cv_prog_CC" |
1e487827 | 8646 | if test -n "$CC"; then |
698dcdb6 | 8647 | echo "$ac_t""$CC" 1>&6 |
703e0a69 | 8648 | else |
698dcdb6 | 8649 | echo "$ac_t""no" 1>&6 |
703e0a69 | 8650 | fi |
1e487827 | 8651 | |
698dcdb6 VZ |
8652 | if test -z "$CC"; then |
8653 | case "`uname -s`" in | |
8654 | *win32* | *WIN32*) | |
8655 | # Extract the first word of "cl", so it can be a program name with args. | |
8656 | set dummy cl; ac_word=$2 | |
8657 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
19bc6aad | 8658 | echo "configure:8659: checking for $ac_word" >&5 |
698dcdb6 VZ |
8659 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8660 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 VS |
8661 | else |
8662 | if test -n "$CC"; then | |
8663 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
703e0a69 | 8664 | else |
698dcdb6 VZ |
8665 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8666 | ac_dummy="$PATH" | |
8667 | for ac_dir in $ac_dummy; do | |
8668 | test -z "$ac_dir" && ac_dir=. | |
8669 | if test -f $ac_dir/$ac_word; then | |
8670 | ac_cv_prog_CC="cl" | |
8671 | break | |
8672 | fi | |
8673 | done | |
8674 | IFS="$ac_save_ifs" | |
703e0a69 | 8675 | fi |
1e487827 | 8676 | fi |
698dcdb6 | 8677 | CC="$ac_cv_prog_CC" |
1e487827 | 8678 | if test -n "$CC"; then |
698dcdb6 | 8679 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 8680 | else |
698dcdb6 | 8681 | echo "$ac_t""no" 1>&6 |
1e487827 | 8682 | fi |
698dcdb6 VZ |
8683 | ;; |
8684 | esac | |
8685 | fi | |
8686 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
1e487827 VS |
8687 | fi |
8688 | ||
698dcdb6 | 8689 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
19bc6aad | 8690 | echo "configure:8691: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
1e487827 | 8691 | |
698dcdb6 VZ |
8692 | ac_ext=c |
8693 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8694 | ac_cpp='$CPP $CPPFLAGS' | |
8695 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8696 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8697 | cross_compiling=$ac_cv_prog_cc_cross | |
6232543b | 8698 | |
698dcdb6 | 8699 | cat > conftest.$ac_ext << EOF |
1e487827 | 8700 | |
19bc6aad | 8701 | #line 8702 "configure" |
1e487827 VS |
8702 | #include "confdefs.h" |
8703 | ||
698dcdb6 VZ |
8704 | main(){return(0);} |
8705 | EOF | |
19bc6aad | 8706 | if { (eval echo configure:8707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
8707 | ac_cv_prog_cc_works=yes |
8708 | # If we can't run a trivial program, we are probably using a cross compiler. | |
8709 | if (./conftest; exit) 2>/dev/null; then | |
8710 | ac_cv_prog_cc_cross=no | |
8711 | else | |
8712 | ac_cv_prog_cc_cross=yes | |
8713 | fi | |
8714 | else | |
8715 | echo "configure: failed program was:" >&5 | |
8716 | cat conftest.$ac_ext >&5 | |
8717 | ac_cv_prog_cc_works=no | |
8718 | fi | |
8719 | rm -fr conftest* | |
8720 | ac_ext=c | |
8721 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8722 | ac_cpp='$CPP $CPPFLAGS' | |
8723 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8724 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8725 | cross_compiling=$ac_cv_prog_cc_cross | |
8726 | ||
8727 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
8728 | if test $ac_cv_prog_cc_works = no; then | |
8729 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
8730 | fi | |
8731 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
19bc6aad | 8732 | echo "configure:8733: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
698dcdb6 VZ |
8733 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
8734 | cross_compiling=$ac_cv_prog_cc_cross | |
8735 | ||
8736 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
19bc6aad | 8737 | echo "configure:8738: checking whether we are using GNU C" >&5 |
698dcdb6 VZ |
8738 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
8739 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8740 | else | |
8741 | cat > conftest.c <<EOF | |
8742 | #ifdef __GNUC__ | |
8743 | yes; | |
1e487827 | 8744 | #endif |
698dcdb6 | 8745 | EOF |
19bc6aad | 8746 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8747: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
698dcdb6 VZ |
8747 | ac_cv_prog_gcc=yes |
8748 | else | |
8749 | ac_cv_prog_gcc=no | |
8750 | fi | |
8751 | fi | |
1e487827 | 8752 | |
698dcdb6 | 8753 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
1e487827 | 8754 | |
698dcdb6 VZ |
8755 | if test $ac_cv_prog_gcc = yes; then |
8756 | GCC=yes | |
8757 | else | |
8758 | GCC= | |
8759 | fi | |
1e487827 | 8760 | |
698dcdb6 VZ |
8761 | ac_test_CFLAGS="${CFLAGS+set}" |
8762 | ac_save_CFLAGS="$CFLAGS" | |
8763 | CFLAGS= | |
8764 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
19bc6aad | 8765 | echo "configure:8766: checking whether ${CC-cc} accepts -g" >&5 |
698dcdb6 VZ |
8766 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
8767 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8768 | else | |
8769 | echo 'void f(){}' > conftest.c | |
8770 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
10f2d63a VZ |
8771 | ac_cv_prog_cc_g=yes |
8772 | else | |
698dcdb6 | 8773 | ac_cv_prog_cc_g=no |
10f2d63a | 8774 | fi |
698dcdb6 VZ |
8775 | rm -f conftest* |
8776 | ||
10f2d63a | 8777 | fi |
698dcdb6 VZ |
8778 | |
8779 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
10f2d63a | 8780 | if test "$ac_test_CFLAGS" = set; then |
698dcdb6 | 8781 | CFLAGS="$ac_save_CFLAGS" |
10f2d63a VZ |
8782 | elif test $ac_cv_prog_cc_g = yes; then |
8783 | if test "$GCC" = yes; then | |
8784 | CFLAGS="-g -O2" | |
8785 | else | |
8786 | CFLAGS="-g" | |
8787 | fi | |
8788 | else | |
8789 | if test "$GCC" = yes; then | |
8790 | CFLAGS="-O2" | |
8791 | else | |
8792 | CFLAGS= | |
8793 | fi | |
8794 | fi | |
8795 | ||
8796 | ||
698dcdb6 | 8797 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
19bc6aad | 8798 | echo "configure:8799: checking how to run the C preprocessor" >&5 |
10f2d63a VZ |
8799 | # On Suns, sometimes $CPP names a directory. |
8800 | if test -n "$CPP" && test -d "$CPP"; then | |
8801 | CPP= | |
8802 | fi | |
8803 | if test -z "$CPP"; then | |
698dcdb6 VZ |
8804 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
8805 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8806 | else | |
8807 | # This must be in double quotes, not single quotes, because CPP may get | |
8808 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
8809 | CPP="${CC-cc} -E" | |
10f2d63a | 8810 | # On the NeXT, cc -E runs the code through the compiler's parser, |
698dcdb6 VZ |
8811 | # not just through cpp. |
8812 | cat > conftest.$ac_ext <<EOF | |
19bc6aad | 8813 | #line 8814 "configure" |
10f2d63a VZ |
8814 | #include "confdefs.h" |
8815 | #include <assert.h> | |
698dcdb6 VZ |
8816 | Syntax Error |
8817 | EOF | |
8818 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
19bc6aad | 8819 | { (eval echo configure:8820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8820 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8821 | if test -z "$ac_err"; then | |
10f2d63a VZ |
8822 | : |
8823 | else | |
698dcdb6 VZ |
8824 | echo "$ac_err" >&5 |
8825 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8826 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8827 | rm -rf conftest* |
8828 | CPP="${CC-cc} -E -traditional-cpp" | |
8829 | cat > conftest.$ac_ext <<EOF | |
19bc6aad | 8830 | #line 8831 "configure" |
10f2d63a | 8831 | #include "confdefs.h" |
698dcdb6 VZ |
8832 | #include <assert.h> |
8833 | Syntax Error | |
8834 | EOF | |
8835 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
19bc6aad | 8836 | { (eval echo configure:8837: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8837 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8838 | if test -z "$ac_err"; then | |
8839 | : | |
10f2d63a | 8840 | else |
698dcdb6 VZ |
8841 | echo "$ac_err" >&5 |
8842 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8843 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8844 | rm -rf conftest* |
8845 | CPP="${CC-cc} -nologo -E" | |
8846 | cat > conftest.$ac_ext <<EOF | |
19bc6aad | 8847 | #line 8848 "configure" |
10f2d63a VZ |
8848 | #include "confdefs.h" |
8849 | #include <assert.h> | |
698dcdb6 VZ |
8850 | Syntax Error |
8851 | EOF | |
8852 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
19bc6aad | 8853 | { (eval echo configure:8854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8854 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8855 | if test -z "$ac_err"; then | |
10f2d63a VZ |
8856 | : |
8857 | else | |
698dcdb6 VZ |
8858 | echo "$ac_err" >&5 |
8859 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8860 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8861 | rm -rf conftest* |
8862 | CPP=/lib/cpp | |
10f2d63a | 8863 | fi |
698dcdb6 | 8864 | rm -f conftest* |
10f2d63a | 8865 | fi |
698dcdb6 | 8866 | rm -f conftest* |
703e0a69 | 8867 | fi |
698dcdb6 VZ |
8868 | rm -f conftest* |
8869 | ac_cv_prog_CPP="$CPP" | |
8870 | fi | |
8871 | CPP="$ac_cv_prog_CPP" | |
10f2d63a | 8872 | else |
698dcdb6 | 8873 | ac_cv_prog_CPP="$CPP" |
10f2d63a | 8874 | fi |
698dcdb6 | 8875 | echo "$ac_t""$CPP" 1>&6 |
10f2d63a | 8876 | |
698dcdb6 VZ |
8877 | if test $ac_cv_prog_gcc = yes; then |
8878 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
19bc6aad | 8879 | echo "configure:8880: checking whether ${CC-cc} needs -traditional" >&5 |
698dcdb6 VZ |
8880 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
8881 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8882 | else |
8883 | ac_pattern="Autoconf.*'x'" | |
698dcdb6 | 8884 | cat > conftest.$ac_ext <<EOF |
19bc6aad | 8885 | #line 8886 "configure" |
10f2d63a VZ |
8886 | #include "confdefs.h" |
8887 | #include <sgtty.h> | |
8888 | Autoconf TIOCGETP | |
698dcdb6 | 8889 | EOF |
10f2d63a VZ |
8890 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8891 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
698dcdb6 | 8892 | rm -rf conftest* |
10f2d63a VZ |
8893 | ac_cv_prog_gcc_traditional=yes |
8894 | else | |
698dcdb6 | 8895 | rm -rf conftest* |
10f2d63a VZ |
8896 | ac_cv_prog_gcc_traditional=no |
8897 | fi | |
8898 | rm -f conftest* | |
8899 | ||
698dcdb6 | 8900 | |
10f2d63a | 8901 | if test $ac_cv_prog_gcc_traditional = no; then |
698dcdb6 | 8902 | cat > conftest.$ac_ext <<EOF |
19bc6aad | 8903 | #line 8904 "configure" |
10f2d63a VZ |
8904 | #include "confdefs.h" |
8905 | #include <termio.h> | |
8906 | Autoconf TCGETA | |
698dcdb6 | 8907 | EOF |
10f2d63a VZ |
8908 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8909 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
698dcdb6 | 8910 | rm -rf conftest* |
10f2d63a VZ |
8911 | ac_cv_prog_gcc_traditional=yes |
8912 | fi | |
8913 | rm -f conftest* | |
8914 | ||
8915 | fi | |
8916 | fi | |
698dcdb6 VZ |
8917 | |
8918 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
10f2d63a VZ |
8919 | if test $ac_cv_prog_gcc_traditional = yes; then |
8920 | CC="$CC -traditional" | |
8921 | fi | |
8922 | fi | |
8923 | ||
703e0a69 | 8924 | |
698dcdb6 VZ |
8925 | |
8926 | ac_ext=C | |
8927 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 8928 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
8929 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
8930 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8931 | cross_compiling=$ac_cv_prog_cxx_cross | |
8932 | ||
8933 | ||
ec603395 | 8934 | CXXFLAGS=${CXXFLAGS:=} |
698dcdb6 VZ |
8935 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
8936 | do | |
8937 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
8938 | set dummy $ac_prog; ac_word=$2 | |
8939 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
19bc6aad | 8940 | echo "configure:8941: checking for $ac_word" >&5 |
698dcdb6 VZ |
8941 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
8942 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8943 | else |
8944 | if test -n "$CXX"; then | |
8945 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
8946 | else | |
698dcdb6 VZ |
8947 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8948 | ac_dummy="$PATH" | |
8949 | for ac_dir in $ac_dummy; do | |
8950 | test -z "$ac_dir" && ac_dir=. | |
8951 | if test -f $ac_dir/$ac_word; then | |
8952 | ac_cv_prog_CXX="$ac_prog" | |
8953 | break | |
8954 | fi | |
8955 | done | |
8956 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8957 | fi |
8958 | fi | |
698dcdb6 | 8959 | CXX="$ac_cv_prog_CXX" |
10f2d63a | 8960 | if test -n "$CXX"; then |
698dcdb6 | 8961 | echo "$ac_t""$CXX" 1>&6 |
10f2d63a | 8962 | else |
698dcdb6 | 8963 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8964 | fi |
8965 | ||
698dcdb6 | 8966 | test -n "$CXX" && break |
10f2d63a | 8967 | done |
698dcdb6 | 8968 | test -n "$CXX" || CXX="gcc" |
10f2d63a VZ |
8969 | |
8970 | ||
698dcdb6 | 8971 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
19bc6aad | 8972 | echo "configure:8973: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
10f2d63a | 8973 | |
698dcdb6 VZ |
8974 | ac_ext=C |
8975 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8976 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8977 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8978 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8979 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 8980 | |
698dcdb6 VZ |
8981 | cat > conftest.$ac_ext << EOF |
8982 | ||
19bc6aad | 8983 | #line 8984 "configure" |
10f2d63a VZ |
8984 | #include "confdefs.h" |
8985 | ||
698dcdb6 VZ |
8986 | int main(){return(0);} |
8987 | EOF | |
19bc6aad | 8988 | if { (eval echo configure:8989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
8989 | ac_cv_prog_cxx_works=yes |
8990 | # If we can't run a trivial program, we are probably using a cross compiler. | |
8991 | if (./conftest; exit) 2>/dev/null; then | |
8992 | ac_cv_prog_cxx_cross=no | |
8993 | else | |
8994 | ac_cv_prog_cxx_cross=yes | |
8995 | fi | |
8996 | else | |
8997 | echo "configure: failed program was:" >&5 | |
8998 | cat conftest.$ac_ext >&5 | |
8999 | ac_cv_prog_cxx_works=no | |
9000 | fi | |
9001 | rm -fr conftest* | |
9002 | ac_ext=C | |
9003 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9004 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9005 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9006 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9007 | cross_compiling=$ac_cv_prog_cxx_cross | |
9008 | ||
9009 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 | |
9010 | if test $ac_cv_prog_cxx_works = no; then | |
9011 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
9012 | fi | |
9013 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
19bc6aad | 9014 | echo "configure:9015: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
698dcdb6 VZ |
9015 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
9016 | cross_compiling=$ac_cv_prog_cxx_cross | |
9017 | ||
9018 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | |
19bc6aad | 9019 | echo "configure:9020: checking whether we are using GNU C++" >&5 |
698dcdb6 VZ |
9020 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
9021 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9022 | else | |
9023 | cat > conftest.C <<EOF | |
9024 | #ifdef __GNUC__ | |
9025 | yes; | |
10f2d63a | 9026 | #endif |
698dcdb6 | 9027 | EOF |
19bc6aad | 9028 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9029: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
698dcdb6 VZ |
9029 | ac_cv_prog_gxx=yes |
9030 | else | |
9031 | ac_cv_prog_gxx=no | |
9032 | fi | |
9033 | fi | |
10f2d63a | 9034 | |
698dcdb6 | 9035 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
10f2d63a | 9036 | |
698dcdb6 VZ |
9037 | if test $ac_cv_prog_gxx = yes; then |
9038 | GXX=yes | |
9039 | else | |
9040 | GXX= | |
9041 | fi | |
10f2d63a | 9042 | |
698dcdb6 VZ |
9043 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
9044 | ac_save_CXXFLAGS="$CXXFLAGS" | |
9045 | CXXFLAGS= | |
9046 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
19bc6aad | 9047 | echo "configure:9048: checking whether ${CXX-g++} accepts -g" >&5 |
698dcdb6 VZ |
9048 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
9049 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9050 | else | |
9051 | echo 'void f(){}' > conftest.cc | |
9052 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
10f2d63a VZ |
9053 | ac_cv_prog_cxx_g=yes |
9054 | else | |
698dcdb6 | 9055 | ac_cv_prog_cxx_g=no |
10f2d63a | 9056 | fi |
698dcdb6 VZ |
9057 | rm -f conftest* |
9058 | ||
10f2d63a | 9059 | fi |
698dcdb6 VZ |
9060 | |
9061 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
10f2d63a | 9062 | if test "$ac_test_CXXFLAGS" = set; then |
698dcdb6 | 9063 | CXXFLAGS="$ac_save_CXXFLAGS" |
10f2d63a VZ |
9064 | elif test $ac_cv_prog_cxx_g = yes; then |
9065 | if test "$GXX" = yes; then | |
9066 | CXXFLAGS="-g -O2" | |
9067 | else | |
9068 | CXXFLAGS="-g" | |
9069 | fi | |
9070 | else | |
9071 | if test "$GXX" = yes; then | |
9072 | CXXFLAGS="-O2" | |
9073 | else | |
9074 | CXXFLAGS= | |
9075 | fi | |
9076 | fi | |
9077 | ||
9078 | ||
10f2d63a | 9079 | ac_ext=c |
698dcdb6 | 9080 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 9081 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
9082 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
9083 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9084 | cross_compiling=$ac_cv_prog_cc_cross | |
9085 | ||
9086 | ||
9087 | # Extract the first word of "ranlib", so it can be a program name with args. | |
9088 | set dummy ranlib; ac_word=$2 | |
9089 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
19bc6aad | 9090 | echo "configure:9091: checking for $ac_word" >&5 |
698dcdb6 VZ |
9091 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
9092 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9093 | else |
9094 | if test -n "$RANLIB"; then | |
9095 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
9096 | else | |
698dcdb6 VZ |
9097 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9098 | ac_dummy="$PATH" | |
9099 | for ac_dir in $ac_dummy; do | |
9100 | test -z "$ac_dir" && ac_dir=. | |
9101 | if test -f $ac_dir/$ac_word; then | |
9102 | ac_cv_prog_RANLIB="ranlib" | |
9103 | break | |
9104 | fi | |
9105 | done | |
9106 | IFS="$ac_save_ifs" | |
9107 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
10f2d63a VZ |
9108 | fi |
9109 | fi | |
698dcdb6 | 9110 | RANLIB="$ac_cv_prog_RANLIB" |
10f2d63a | 9111 | if test -n "$RANLIB"; then |
698dcdb6 | 9112 | echo "$ac_t""$RANLIB" 1>&6 |
10f2d63a | 9113 | else |
698dcdb6 | 9114 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9115 | fi |
9116 | ||
9117 | ||
9118 | # Extract the first word of "ar", so it can be a program name with args. | |
9119 | set dummy ar; ac_word=$2 | |
698dcdb6 | 9120 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
19bc6aad | 9121 | echo "configure:9122: checking for $ac_word" >&5 |
698dcdb6 VZ |
9122 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
9123 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9124 | else |
9125 | if test -n "$AR"; then | |
9126 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
9127 | else | |
698dcdb6 VZ |
9128 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9129 | ac_dummy="$PATH" | |
9130 | for ac_dir in $ac_dummy; do | |
9131 | test -z "$ac_dir" && ac_dir=. | |
9132 | if test -f $ac_dir/$ac_word; then | |
9133 | ac_cv_prog_AR="ar" | |
9134 | break | |
9135 | fi | |
9136 | done | |
9137 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9138 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
9139 | fi | |
9140 | fi | |
698dcdb6 | 9141 | AR="$ac_cv_prog_AR" |
10f2d63a | 9142 | if test -n "$AR"; then |
698dcdb6 | 9143 | echo "$ac_t""$AR" 1>&6 |
10f2d63a | 9144 | else |
698dcdb6 | 9145 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9146 | fi |
9147 | ||
698dcdb6 | 9148 | |
6054113a | 9149 | # Find a good install program. We prefer a C program (faster), |
10f2d63a VZ |
9150 | # so one script is as good as another. But avoid the broken or |
9151 | # incompatible versions: | |
9152 | # SysV /etc/install, /usr/sbin/install | |
9153 | # SunOS /usr/etc/install | |
9154 | # IRIX /sbin/install | |
9155 | # AIX /bin/install | |
9156 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
9157 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
9158 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
9159 | # ./install, which can be erroneously created by make from ./install.sh. | |
698dcdb6 | 9160 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
19bc6aad | 9161 | echo "configure:9162: checking for a BSD compatible install" >&5 |
10f2d63a | 9162 | if test -z "$INSTALL"; then |
698dcdb6 VZ |
9163 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
9164 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 9165 | else |
698dcdb6 | 9166 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
10f2d63a VZ |
9167 | for ac_dir in $PATH; do |
9168 | # Account for people who put trailing slashes in PATH elements. | |
698dcdb6 VZ |
9169 | case "$ac_dir/" in |
9170 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
10f2d63a VZ |
9171 | *) |
9172 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
9173 | # Don't use installbsd from OSF since it installs stuff as root | |
9174 | # by default. | |
9175 | for ac_prog in ginstall scoinst install; do | |
698dcdb6 | 9176 | if test -f $ac_dir/$ac_prog; then |
10f2d63a | 9177 | if test $ac_prog = install && |
698dcdb6 | 9178 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
10f2d63a VZ |
9179 | # AIX install. It has an incompatible calling convention. |
9180 | : | |
9181 | else | |
9182 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
9183 | break 2 | |
9184 | fi | |
9185 | fi | |
9186 | done | |
9187 | ;; | |
9188 | esac | |
9189 | done | |
698dcdb6 | 9190 | IFS="$ac_save_IFS" |
10f2d63a VZ |
9191 | |
9192 | fi | |
9193 | if test "${ac_cv_path_install+set}" = set; then | |
698dcdb6 | 9194 | INSTALL="$ac_cv_path_install" |
10f2d63a VZ |
9195 | else |
9196 | # As a last resort, use the slow shell script. We don't cache a | |
9197 | # path for INSTALL within a source directory, because that will | |
9198 | # break other packages using the cache if that directory is | |
9199 | # removed, or if the path is relative. | |
698dcdb6 | 9200 | INSTALL="$ac_install_sh" |
10f2d63a VZ |
9201 | fi |
9202 | fi | |
698dcdb6 | 9203 | echo "$ac_t""$INSTALL" 1>&6 |
10f2d63a VZ |
9204 | |
9205 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
9206 | # It thinks the first close brace ends the variable substitution. | |
9207 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
9208 | ||
698dcdb6 | 9209 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
10f2d63a VZ |
9210 | |
9211 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
9212 | ||
6054113a GD |
9213 | case "${host}" in |
9214 | ||
b5853384 | 9215 | powerpc-*-darwin* ) |
eb99ae0b GD |
9216 | INSTALL_PROGRAM="cp -fp" |
9217 | INSTALL_DATA="cp -fp" | |
6054113a GD |
9218 | ;; |
9219 | *) | |
9220 | ;; | |
d6853540 | 9221 | esac |
698dcdb6 | 9222 | |
10f2d63a VZ |
9223 | # Extract the first word of "strip", so it can be a program name with args. |
9224 | set dummy strip; ac_word=$2 | |
698dcdb6 | 9225 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
19bc6aad | 9226 | echo "configure:9227: checking for $ac_word" >&5 |
698dcdb6 VZ |
9227 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
9228 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9229 | else |
9230 | if test -n "$STRIP"; then | |
9231 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9232 | else | |
698dcdb6 VZ |
9233 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9234 | ac_dummy="$PATH" | |
9235 | for ac_dir in $ac_dummy; do | |
9236 | test -z "$ac_dir" && ac_dir=. | |
9237 | if test -f $ac_dir/$ac_word; then | |
9238 | ac_cv_prog_STRIP="strip" | |
9239 | break | |
9240 | fi | |
9241 | done | |
9242 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9243 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
9244 | fi | |
9245 | fi | |
698dcdb6 | 9246 | STRIP="$ac_cv_prog_STRIP" |
10f2d63a | 9247 | if test -n "$STRIP"; then |
698dcdb6 | 9248 | echo "$ac_t""$STRIP" 1>&6 |
10f2d63a | 9249 | else |
698dcdb6 | 9250 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9251 | fi |
9252 | ||
698dcdb6 | 9253 | |
414eab6d | 9254 | echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6 |
19bc6aad | 9255 | echo "configure:9256: checking if make is GNU make" >&5 |
414eab6d VZ |
9256 | if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then |
9257 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9258 | else | |
9259 | ||
9260 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
d558c907 | 9261 | egrep -s GNU > /dev/null); then |
414eab6d VZ |
9262 | wx_cv_prog_makeisgnu="yes" |
9263 | else | |
9264 | wx_cv_prog_makeisgnu="no" | |
9265 | fi | |
9266 | ||
9267 | fi | |
9268 | ||
9269 | echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6 | |
9270 | ||
9271 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
9272 | IF_GNU_MAKE="" | |
9273 | else | |
9274 | IF_GNU_MAKE="#" | |
9275 | fi | |
9276 | ||
9277 | ||
9278 | ||
9279 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then | |
04e7a216 | 9280 | echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6 |
19bc6aad | 9281 | echo "configure:9282: checking if make supports VPATH" >&5 |
04e7a216 VZ |
9282 | if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then |
9283 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9284 | else | |
9285 | ||
10f2d63a VZ |
9286 | cat - << EOF > confMake |
9287 | check : file | |
9288 | cp \$? \$@ | |
9289 | cp \$? final_file | |
9290 | EOF | |
9291 | ||
9292 | if test ! -d sub ; then | |
9293 | mkdir sub | |
9294 | fi | |
9295 | echo dummy > sub/file | |
f6bcfd97 | 9296 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
9297 | RESULT=$? |
9298 | rm -f sub/file check final_file confMake | |
9299 | rmdir sub | |
9300 | if test "$RESULT" = 0; then | |
04e7a216 | 9301 | wx_cv_prog_makevpath="yes" |
10f2d63a | 9302 | else |
04e7a216 VZ |
9303 | wx_cv_prog_makevpath="no" |
9304 | fi | |
9305 | ||
9306 | fi | |
9307 | ||
9308 | echo "$ac_t""$wx_cv_prog_makevpath" 1>&6 | |
9309 | ||
9310 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
9311 | { echo "configure: error: | |
1e487827 VS |
9312 | You need a make-utility that is able to use the variable |
9313 | VPATH correctly. | |
9314 | If your version of make does not support VPATH correctly, | |
9315 | please install GNU-make (possibly as gmake), and start | |
9316 | configure with the following command: | |
9317 | export MAKE=gmake; ./configure for sh-type shells | |
9318 | setenv MAKE gmake; ./configure for csh-type shells | |
9319 | Also please do remember to use gmake in this case every time | |
9320 | you are trying to compile. | |
698dcdb6 | 9321 | " 1>&2; exit 1; } |
414eab6d | 9322 | fi fi |
10f2d63a VZ |
9323 | for ac_prog in 'bison -y' byacc |
9324 | do | |
698dcdb6 | 9325 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
10f2d63a | 9326 | set dummy $ac_prog; ac_word=$2 |
698dcdb6 | 9327 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
19bc6aad | 9328 | echo "configure:9329: checking for $ac_word" >&5 |
698dcdb6 VZ |
9329 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
9330 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9331 | else |
9332 | if test -n "$YACC"; then | |
9333 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
9334 | else | |
698dcdb6 VZ |
9335 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9336 | ac_dummy="$PATH" | |
9337 | for ac_dir in $ac_dummy; do | |
9338 | test -z "$ac_dir" && ac_dir=. | |
9339 | if test -f $ac_dir/$ac_word; then | |
9340 | ac_cv_prog_YACC="$ac_prog" | |
9341 | break | |
9342 | fi | |
9343 | done | |
9344 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9345 | fi |
9346 | fi | |
698dcdb6 | 9347 | YACC="$ac_cv_prog_YACC" |
10f2d63a | 9348 | if test -n "$YACC"; then |
698dcdb6 | 9349 | echo "$ac_t""$YACC" 1>&6 |
10f2d63a | 9350 | else |
698dcdb6 | 9351 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9352 | fi |
9353 | ||
698dcdb6 | 9354 | test -n "$YACC" && break |
10f2d63a VZ |
9355 | done |
9356 | test -n "$YACC" || YACC="yacc" | |
9357 | ||
698dcdb6 VZ |
9358 | |
9359 | # Extract the first word of "flex", so it can be a program name with args. | |
9360 | set dummy flex; ac_word=$2 | |
9361 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
19bc6aad | 9362 | echo "configure:9363: checking for $ac_word" >&5 |
698dcdb6 VZ |
9363 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
9364 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9365 | else |
9366 | if test -n "$LEX"; then | |
9367 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
9368 | else | |
698dcdb6 VZ |
9369 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9370 | ac_dummy="$PATH" | |
9371 | for ac_dir in $ac_dummy; do | |
9372 | test -z "$ac_dir" && ac_dir=. | |
9373 | if test -f $ac_dir/$ac_word; then | |
9374 | ac_cv_prog_LEX="flex" | |
9375 | break | |
9376 | fi | |
9377 | done | |
9378 | IFS="$ac_save_ifs" | |
9379 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
10f2d63a VZ |
9380 | fi |
9381 | fi | |
698dcdb6 | 9382 | LEX="$ac_cv_prog_LEX" |
10f2d63a | 9383 | if test -n "$LEX"; then |
698dcdb6 | 9384 | echo "$ac_t""$LEX" 1>&6 |
10f2d63a | 9385 | else |
698dcdb6 | 9386 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9387 | fi |
9388 | ||
9389 | if test -z "$LEXLIB" | |
9390 | then | |
698dcdb6 VZ |
9391 | case "$LEX" in |
9392 | flex*) ac_lib=fl ;; | |
9393 | *) ac_lib=l ;; | |
9394 | esac | |
9395 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
19bc6aad | 9396 | echo "configure:9397: checking for yywrap in -l$ac_lib" >&5 |
698dcdb6 VZ |
9397 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
9398 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9399 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9400 | else | |
9401 | ac_save_LIBS="$LIBS" | |
9402 | LIBS="-l$ac_lib $LIBS" | |
9403 | cat > conftest.$ac_ext <<EOF | |
19bc6aad | 9404 | #line 9405 "configure" |
10f2d63a VZ |
9405 | #include "confdefs.h" |
9406 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9407 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9408 | builtin and then its argument prototype would still apply. */ |
9409 | char yywrap(); | |
10f2d63a | 9410 | |
698dcdb6 VZ |
9411 | int main() { |
9412 | yywrap() | |
9413 | ; return 0; } | |
9414 | EOF | |
19bc6aad | 9415 | if { (eval echo configure:9416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9416 | rm -rf conftest* |
9417 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 9418 | else |
698dcdb6 VZ |
9419 | echo "configure: failed program was:" >&5 |
9420 | cat conftest.$ac_ext >&5 | |
9421 | rm -rf conftest* | |
9422 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 9423 | fi |
698dcdb6 VZ |
9424 | rm -f conftest* |
9425 | LIBS="$ac_save_LIBS" | |
9426 | ||
10f2d63a | 9427 | fi |
698dcdb6 VZ |
9428 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
9429 | echo "$ac_t""yes" 1>&6 | |
9430 | LEXLIB="-l$ac_lib" | |
9431 | else | |
9432 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
9433 | fi |
9434 | ||
9435 | fi | |
9436 | ||
9437 | ||
698dcdb6 | 9438 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
19bc6aad | 9439 | echo "configure:9440: checking whether ln -s works" >&5 |
698dcdb6 VZ |
9440 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
9441 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 9442 | else |
698dcdb6 VZ |
9443 | rm -f conftestdata |
9444 | if ln -s X conftestdata 2>/dev/null | |
9445 | then | |
9446 | rm -f conftestdata | |
9447 | ac_cv_prog_LN_S="ln -s" | |
10f2d63a | 9448 | else |
698dcdb6 | 9449 | ac_cv_prog_LN_S=ln |
10f2d63a VZ |
9450 | fi |
9451 | fi | |
698dcdb6 VZ |
9452 | LN_S="$ac_cv_prog_LN_S" |
9453 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
9454 | echo "$ac_t""yes" 1>&6 | |
10f2d63a | 9455 | else |
698dcdb6 | 9456 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9457 | fi |
9458 | ||
9459 | ||
9460 | ||
90dd450c VZ |
9461 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
9462 | echo "configure:9463: checking for working const" >&5 | |
9463 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then | |
19bc6aad VZ |
9464 | echo $ac_n "(cached) $ac_c" 1>&6 |
9465 | else | |
90dd450c VZ |
9466 | cat > conftest.$ac_ext <<EOF |
9467 | #line 9468 "configure" | |
19bc6aad | 9468 | #include "confdefs.h" |
90dd450c | 9469 | |
19bc6aad VZ |
9470 | int main() { |
9471 | ||
90dd450c VZ |
9472 | /* Ultrix mips cc rejects this. */ |
9473 | typedef int charset[2]; const charset x; | |
9474 | /* SunOS 4.1.1 cc rejects this. */ | |
9475 | char const *const *ccp; | |
9476 | char **p; | |
9477 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
9478 | struct point {int x, y;}; | |
9479 | static struct point const zero = {0,0}; | |
9480 | /* AIX XL C 1.02.0.0 rejects this. | |
9481 | It does not let you subtract one const X* pointer from another in an arm | |
9482 | of an if-expression whose if-part is not a constant expression */ | |
9483 | const char *g = "string"; | |
9484 | ccp = &g + (g ? g-g : 0); | |
9485 | /* HPUX 7.0 cc rejects these. */ | |
9486 | ++ccp; | |
9487 | p = (char**) ccp; | |
9488 | ccp = (char const *const *) p; | |
9489 | { /* SCO 3.2v4 cc rejects this. */ | |
9490 | char *t; | |
9491 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
9492 | ||
9493 | *t++ = 0; | |
9494 | } | |
9495 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
9496 | int x[] = {25, 17}; | |
9497 | const int *foo = &x[0]; | |
9498 | ++foo; | |
9499 | } | |
9500 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
9501 | typedef const int *iptr; | |
9502 | iptr p = 0; | |
9503 | ++p; | |
9504 | } | |
9505 | { /* AIX XL C 1.02.0.0 rejects this saying | |
9506 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
9507 | struct s { int j; const int *ap[3]; }; | |
9508 | struct s *b; b->j = 5; | |
9509 | } | |
9510 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
9511 | const int foo = 10; | |
9512 | } | |
9513 | ||
19bc6aad VZ |
9514 | ; return 0; } |
9515 | EOF | |
90dd450c | 9516 | if { (eval echo configure:9517: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
19bc6aad | 9517 | rm -rf conftest* |
90dd450c | 9518 | ac_cv_c_const=yes |
19bc6aad VZ |
9519 | else |
9520 | echo "configure: failed program was:" >&5 | |
9521 | cat conftest.$ac_ext >&5 | |
9522 | rm -rf conftest* | |
90dd450c | 9523 | ac_cv_c_const=no |
19bc6aad VZ |
9524 | fi |
9525 | rm -f conftest* | |
19bc6aad VZ |
9526 | fi |
9527 | ||
90dd450c VZ |
9528 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
9529 | if test $ac_cv_c_const = no; then | |
9530 | cat >> confdefs.h <<\EOF | |
9531 | #define const | |
19bc6aad VZ |
9532 | EOF |
9533 | ||
19bc6aad VZ |
9534 | fi |
9535 | ||
90dd450c VZ |
9536 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
9537 | echo "configure:9538: checking for inline" >&5 | |
9538 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then | |
18dbb1f6 VZ |
9539 | echo $ac_n "(cached) $ac_c" 1>&6 |
9540 | else | |
90dd450c VZ |
9541 | ac_cv_c_inline=no |
9542 | for ac_kw in inline __inline__ __inline; do | |
18dbb1f6 | 9543 | cat > conftest.$ac_ext <<EOF |
90dd450c | 9544 | #line 9545 "configure" |
18dbb1f6 | 9545 | #include "confdefs.h" |
90dd450c VZ |
9546 | |
9547 | int main() { | |
9548 | } $ac_kw foo() { | |
9549 | ; return 0; } | |
18dbb1f6 | 9550 | EOF |
90dd450c | 9551 | if { (eval echo configure:9552: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
18dbb1f6 | 9552 | rm -rf conftest* |
90dd450c | 9553 | ac_cv_c_inline=$ac_kw; break |
18dbb1f6 | 9554 | else |
18dbb1f6 VZ |
9555 | echo "configure: failed program was:" >&5 |
9556 | cat conftest.$ac_ext >&5 | |
18dbb1f6 VZ |
9557 | fi |
9558 | rm -f conftest* | |
90dd450c | 9559 | done |
18dbb1f6 | 9560 | |
90dd450c | 9561 | fi |
18dbb1f6 | 9562 | |
90dd450c VZ |
9563 | echo "$ac_t""$ac_cv_c_inline" 1>&6 |
9564 | case "$ac_cv_c_inline" in | |
9565 | inline | yes) ;; | |
9566 | no) cat >> confdefs.h <<\EOF | |
9567 | #define inline | |
9568 | EOF | |
9569 | ;; | |
9570 | *) cat >> confdefs.h <<EOF | |
9571 | #define inline $ac_cv_c_inline | |
9572 | EOF | |
9573 | ;; | |
9574 | esac | |
18dbb1f6 | 9575 | |
90dd450c VZ |
9576 | |
9577 | echo $ac_n "checking size of char""... $ac_c" 1>&6 | |
9578 | echo "configure:9579: checking size of char" >&5 | |
9579 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then | |
9580 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9581 | else | |
9582 | if test "$cross_compiling" = yes; then | |
9583 | ac_cv_sizeof_char=1 | |
9584 | else | |
9585 | cat > conftest.$ac_ext <<EOF | |
9586 | #line 9587 "configure" | |
9587 | #include "confdefs.h" | |
9588 | #include <stdio.h> | |
9589 | main() | |
9590 | { | |
9591 | FILE *f=fopen("conftestval", "w"); | |
9592 | if (!f) exit(1); | |
9593 | fprintf(f, "%d\n", sizeof(char)); | |
9594 | exit(0); | |
9595 | } | |
18dbb1f6 | 9596 | EOF |
90dd450c VZ |
9597 | if { (eval echo configure:9598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
9598 | then | |
9599 | ac_cv_sizeof_char=`cat conftestval` | |
18dbb1f6 VZ |
9600 | else |
9601 | echo "configure: failed program was:" >&5 | |
9602 | cat conftest.$ac_ext >&5 | |
90dd450c VZ |
9603 | rm -fr conftest* |
9604 | ac_cv_sizeof_char=0 | |
18dbb1f6 | 9605 | fi |
90dd450c | 9606 | rm -fr conftest* |
18dbb1f6 VZ |
9607 | fi |
9608 | ||
18dbb1f6 | 9609 | fi |
90dd450c VZ |
9610 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
9611 | cat >> confdefs.h <<EOF | |
9612 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
4f14bcd8 | 9613 | EOF |
dad6c0ea | 9614 | |
10f2d63a | 9615 | |
90dd450c VZ |
9616 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
9617 | echo "configure:9618: checking size of short" >&5 | |
9618 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then | |
3a922bb4 | 9619 | echo $ac_n "(cached) $ac_c" 1>&6 |
90dd450c VZ |
9620 | else |
9621 | if test "$cross_compiling" = yes; then | |
9622 | ac_cv_sizeof_short=2 | |
3a922bb4 RL |
9623 | else |
9624 | cat > conftest.$ac_ext <<EOF | |
90dd450c | 9625 | #line 9626 "configure" |
3a922bb4 | 9626 | #include "confdefs.h" |
90dd450c VZ |
9627 | #include <stdio.h> |
9628 | main() | |
9629 | { | |
9630 | FILE *f=fopen("conftestval", "w"); | |
9631 | if (!f) exit(1); | |
9632 | fprintf(f, "%d\n", sizeof(short)); | |
9633 | exit(0); | |
9634 | } | |
3a922bb4 | 9635 | EOF |
90dd450c VZ |
9636 | if { (eval echo configure:9637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
9637 | then | |
9638 | ac_cv_sizeof_short=`cat conftestval` | |
3a922bb4 | 9639 | else |
3a922bb4 RL |
9640 | echo "configure: failed program was:" >&5 |
9641 | cat conftest.$ac_ext >&5 | |
90dd450c VZ |
9642 | rm -fr conftest* |
9643 | ac_cv_sizeof_short=0 | |
3a922bb4 | 9644 | fi |
90dd450c | 9645 | rm -fr conftest* |
3a922bb4 | 9646 | fi |
90dd450c VZ |
9647 | |
9648 | fi | |
9649 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 | |
9650 | cat >> confdefs.h <<EOF | |
9651 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
9652 | EOF | |
9653 | ||
9654 | ||
9655 | echo $ac_n "checking size of void *""... $ac_c" 1>&6 | |
9656 | echo "configure:9657: checking size of void *" >&5 | |
9657 | if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then | |
4f14bcd8 GD |
9658 | echo $ac_n "(cached) $ac_c" 1>&6 |
9659 | else | |
90dd450c VZ |
9660 | if test "$cross_compiling" = yes; then |
9661 | ac_cv_sizeof_void_p=4 | |
9662 | else | |
9663 | cat > conftest.$ac_ext <<EOF | |
9664 | #line 9665 "configure" | |
4f14bcd8 | 9665 | #include "confdefs.h" |
90dd450c VZ |
9666 | #include <stdio.h> |
9667 | main() | |
9668 | { | |
9669 | FILE *f=fopen("conftestval", "w"); | |
9670 | if (!f) exit(1); | |
9671 | fprintf(f, "%d\n", sizeof(void *)); | |
9672 | exit(0); | |
9673 | } | |
3a922bb4 | 9674 | EOF |
90dd450c VZ |
9675 | if { (eval echo configure:9676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
9676 | then | |
9677 | ac_cv_sizeof_void_p=`cat conftestval` | |
4f14bcd8 GD |
9678 | else |
9679 | echo "configure: failed program was:" >&5 | |
9680 | cat conftest.$ac_ext >&5 | |
90dd450c VZ |
9681 | rm -fr conftest* |
9682 | ac_cv_sizeof_void_p=0 | |
3a922bb4 | 9683 | fi |
90dd450c | 9684 | rm -fr conftest* |
4f14bcd8 GD |
9685 | fi |
9686 | ||
4f14bcd8 | 9687 | fi |
90dd450c VZ |
9688 | echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6 |
9689 | cat >> confdefs.h <<EOF | |
9690 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
4f14bcd8 GD |
9691 | EOF |
9692 | ||
4f14bcd8 | 9693 | |
90dd450c VZ |
9694 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
9695 | echo "configure:9696: checking size of int" >&5 | |
9696 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then | |
d4158b5d | 9697 | echo $ac_n "(cached) $ac_c" 1>&6 |
90dd450c VZ |
9698 | else |
9699 | if test "$cross_compiling" = yes; then | |
9700 | ac_cv_sizeof_int=4 | |
d4158b5d VS |
9701 | else |
9702 | cat > conftest.$ac_ext <<EOF | |
90dd450c | 9703 | #line 9704 "configure" |
d4158b5d | 9704 | #include "confdefs.h" |
90dd450c VZ |
9705 | #include <stdio.h> |
9706 | main() | |
9707 | { | |
9708 | FILE *f=fopen("conftestval", "w"); | |
9709 | if (!f) exit(1); | |
9710 | fprintf(f, "%d\n", sizeof(int)); | |
9711 | exit(0); | |
9712 | } | |
d4158b5d | 9713 | EOF |
90dd450c VZ |
9714 | if { (eval echo configure:9715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
9715 | then | |
9716 | ac_cv_sizeof_int=`cat conftestval` | |
d4158b5d | 9717 | else |
d4158b5d VS |
9718 | echo "configure: failed program was:" >&5 |
9719 | cat conftest.$ac_ext >&5 | |
90dd450c VZ |
9720 | rm -fr conftest* |
9721 | ac_cv_sizeof_int=0 | |
d4158b5d | 9722 | fi |
90dd450c | 9723 | rm -fr conftest* |
d4158b5d | 9724 | fi |
f6bcfd97 | 9725 | |
90dd450c VZ |
9726 | fi |
9727 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | |
9728 | cat >> confdefs.h <<EOF | |
9729 | #define SIZEOF_INT $ac_cv_sizeof_int | |
3a922bb4 | 9730 | EOF |
90dd450c VZ |
9731 | |
9732 | ||
9733 | echo $ac_n "checking size of long""... $ac_c" 1>&6 | |
9734 | echo "configure:9735: checking size of long" >&5 | |
9735 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then | |
9736 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9737 | else | |
9738 | if test "$cross_compiling" = yes; then | |
9739 | ac_cv_sizeof_long=4 | |
9740 | else | |
9741 | cat > conftest.$ac_ext <<EOF | |
9742 | #line 9743 "configure" | |
9743 | #include "confdefs.h" | |
9744 | #include <stdio.h> | |
9745 | main() | |
9746 | { | |
9747 | FILE *f=fopen("conftestval", "w"); | |
9748 | if (!f) exit(1); | |
9749 | fprintf(f, "%d\n", sizeof(long)); | |
9750 | exit(0); | |
9751 | } | |
9752 | EOF | |
9753 | if { (eval echo configure:9754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
9754 | then | |
9755 | ac_cv_sizeof_long=`cat conftestval` | |
3a922bb4 RL |
9756 | else |
9757 | echo "configure: failed program was:" >&5 | |
9758 | cat conftest.$ac_ext >&5 | |
90dd450c VZ |
9759 | rm -fr conftest* |
9760 | ac_cv_sizeof_long=0 | |
9761 | fi | |
9762 | rm -fr conftest* | |
3a922bb4 | 9763 | fi |
10f2d63a | 9764 | |
4f14bcd8 | 9765 | fi |
90dd450c VZ |
9766 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 |
9767 | cat >> confdefs.h <<EOF | |
9768 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
9769 | EOF | |
9770 | ||
9771 | ||
9772 | ||
9773 | case "${host}" in | |
9774 | arm-*-linux* ) | |
9775 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
9776 | echo "configure:9777: checking size of long long" >&5 | |
9777 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then | |
9778 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 9779 | else |
90dd450c VZ |
9780 | if test "$cross_compiling" = yes; then |
9781 | ac_cv_sizeof_long_long=8 | |
9782 | else | |
9783 | cat > conftest.$ac_ext <<EOF | |
9784 | #line 9785 "configure" | |
9785 | #include "confdefs.h" | |
9786 | #include <stdio.h> | |
9787 | main() | |
9788 | { | |
9789 | FILE *f=fopen("conftestval", "w"); | |
9790 | if (!f) exit(1); | |
9791 | fprintf(f, "%d\n", sizeof(long long)); | |
9792 | exit(0); | |
9793 | } | |
9794 | EOF | |
9795 | if { (eval echo configure:9796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
9796 | then | |
9797 | ac_cv_sizeof_long_long=`cat conftestval` | |
9798 | else | |
9799 | echo "configure: failed program was:" >&5 | |
9800 | cat conftest.$ac_ext >&5 | |
9801 | rm -fr conftest* | |
9802 | ac_cv_sizeof_long_long=0 | |
9803 | fi | |
9804 | rm -fr conftest* | |
4f14bcd8 | 9805 | fi |
32832908 | 9806 | |
90dd450c VZ |
9807 | fi |
9808 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 | |
9809 | cat >> confdefs.h <<EOF | |
9810 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
9811 | EOF | |
9812 | ||
9813 | ||
9814 | ;; | |
9815 | * ) | |
9816 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
9817 | echo "configure:9818: checking size of long long" >&5 | |
9818 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then | |
9819 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 9820 | else |
90dd450c VZ |
9821 | if test "$cross_compiling" = yes; then |
9822 | ac_cv_sizeof_long_long=0 | |
9823 | else | |
9824 | cat > conftest.$ac_ext <<EOF | |
9825 | #line 9826 "configure" | |
9826 | #include "confdefs.h" | |
9827 | #include <stdio.h> | |
9828 | main() | |
9829 | { | |
9830 | FILE *f=fopen("conftestval", "w"); | |
9831 | if (!f) exit(1); | |
9832 | fprintf(f, "%d\n", sizeof(long long)); | |
9833 | exit(0); | |
9834 | } | |
9835 | EOF | |
9836 | if { (eval echo configure:9837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
9837 | then | |
9838 | ac_cv_sizeof_long_long=`cat conftestval` | |
9839 | else | |
9840 | echo "configure: failed program was:" >&5 | |
9841 | cat conftest.$ac_ext >&5 | |
9842 | rm -fr conftest* | |
9843 | ac_cv_sizeof_long_long=0 | |
9844 | fi | |
9845 | rm -fr conftest* | |
9846 | fi | |
9847 | ||
4f14bcd8 | 9848 | fi |
90dd450c VZ |
9849 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
9850 | cat >> confdefs.h <<EOF | |
9851 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
9852 | EOF | |
3a922bb4 | 9853 | |
7b7a7637 | 9854 | |
90dd450c | 9855 | esac |
3a922bb4 | 9856 | |
3a922bb4 | 9857 | |
90dd450c VZ |
9858 | echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 |
9859 | echo "configure:9860: checking size of wchar_t" >&5 | |
9860 | if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then | |
9861 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9862 | else | |
9863 | ||
9864 | if test "$cross_compiling" = yes; then | |
9865 | wx_cv_sizeof_wchar_t=4 | |
9866 | ||
9867 | else | |
9868 | cat > conftest.$ac_ext <<EOF | |
9869 | #line 9870 "configure" | |
9870 | #include "confdefs.h" | |
9871 | ||
9872 | #ifdef HAVE_WCHAR_H | |
9873 | # ifdef __CYGWIN__ | |
9874 | # include <stddef.h> | |
9875 | # endif | |
9876 | # include <wchar.h> | |
9877 | #endif | |
9878 | #ifdef HAVE_STDLIB_H | |
9879 | # include <stdlib.h> | |
9880 | #endif | |
9881 | #include <stdio.h> | |
9882 | int main() | |
9883 | { | |
9884 | FILE *f=fopen("conftestval", "w"); | |
9885 | if (!f) exit(1); | |
9886 | fprintf(f, "%i", sizeof(wchar_t)); | |
9887 | exit(0); | |
9888 | } | |
9889 | ||
9890 | EOF | |
9891 | if { (eval echo configure:9892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
9892 | then | |
9893 | wx_cv_sizeof_wchar_t=`cat conftestval` | |
9894 | else | |
9895 | echo "configure: failed program was:" >&5 | |
9896 | cat conftest.$ac_ext >&5 | |
9897 | rm -fr conftest* | |
9898 | wx_cv_sizeof_wchar_t=0 | |
9899 | fi | |
9900 | rm -fr conftest* | |
3a922bb4 RL |
9901 | fi |
9902 | ||
32832908 | 9903 | |
90dd450c VZ |
9904 | fi |
9905 | ||
9906 | echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6 | |
9907 | ||
9908 | cat >> confdefs.h <<EOF | |
9909 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t | |
4f14bcd8 | 9910 | EOF |
10f2d63a | 9911 | |
8168de4c | 9912 | |
90dd450c VZ |
9913 | # Check whether --enable-largefile or --disable-largefile was given. |
9914 | if test "${enable_largefile+set}" = set; then | |
9915 | enableval="$enable_largefile" | |
9916 | : | |
9917 | fi | |
81809c07 | 9918 | |
90dd450c | 9919 | if test "$enable_largefile" != no; then |
5a5d3c08 VZ |
9920 | wx_largefile=no |
9921 | ||
90dd450c | 9922 | echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6 |
5a5d3c08 | 9923 | echo "configure:9924: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
90dd450c | 9924 | if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then |
8168de4c VZ |
9925 | echo $ac_n "(cached) $ac_c" 1>&6 |
9926 | else | |
90dd450c VZ |
9927 | |
9928 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 9929 | #line 9930 "configure" |
4f14bcd8 | 9930 | #include "confdefs.h" |
90dd450c VZ |
9931 | #define _FILE_OFFSET_BITS 64 |
9932 | #include <sys/types.h> | |
4f14bcd8 | 9933 | int main() { |
90dd450c VZ |
9934 | typedef struct { |
9935 | unsigned int field: sizeof(off_t) == 8; | |
9936 | } wxlf; | |
4f14bcd8 | 9937 | |
4f14bcd8 GD |
9938 | ; return 0; } |
9939 | EOF | |
5a5d3c08 | 9940 | if { (eval echo configure:9941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 | 9941 | rm -rf conftest* |
90dd450c | 9942 | ac_cv_sys_file_offset_bits=64 |
6f72b082 | 9943 | else |
4f14bcd8 GD |
9944 | echo "configure: failed program was:" >&5 |
9945 | cat conftest.$ac_ext >&5 | |
9946 | rm -rf conftest* | |
90dd450c | 9947 | ac_cv_sys_file_offset_bits=no |
4f14bcd8 GD |
9948 | fi |
9949 | rm -f conftest* | |
90dd450c VZ |
9950 | |
9951 | ||
698dcdb6 | 9952 | fi |
6f72b082 | 9953 | |
90dd450c | 9954 | echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6 |
4f14bcd8 | 9955 | |
90dd450c | 9956 | if test "$ac_cv_sys_file_offset_bits" != no; then |
5a5d3c08 | 9957 | wx_largefile=yes |
90dd450c VZ |
9958 | cat >> confdefs.h <<EOF |
9959 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
9960 | EOF | |
9961 | ||
9962 | fi | |
9963 | ||
9964 | if test "x$wx_largefile" != "xyes"; then | |
9965 | ||
9966 | echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6 | |
5a5d3c08 | 9967 | echo "configure:9968: checking for _LARGE_FILES value needed for large files" >&5 |
90dd450c | 9968 | if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then |
4f14bcd8 | 9969 | echo $ac_n "(cached) $ac_c" 1>&6 |
6f72b082 | 9970 | else |
90dd450c VZ |
9971 | |
9972 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 9973 | #line 9974 "configure" |
4f14bcd8 | 9974 | #include "confdefs.h" |
90dd450c VZ |
9975 | #define _LARGE_FILES 1 |
9976 | #include <sys/types.h> | |
4f14bcd8 | 9977 | int main() { |
90dd450c VZ |
9978 | typedef struct { |
9979 | unsigned int field: sizeof(off_t) == 8; | |
9980 | } wxlf; | |
9981 | ||
4f14bcd8 GD |
9982 | ; return 0; } |
9983 | EOF | |
5a5d3c08 | 9984 | if { (eval echo configure:9985: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 | 9985 | rm -rf conftest* |
90dd450c | 9986 | ac_cv_sys_large_files=1 |
6f72b082 | 9987 | else |
4f14bcd8 GD |
9988 | echo "configure: failed program was:" >&5 |
9989 | cat conftest.$ac_ext >&5 | |
9990 | rm -rf conftest* | |
90dd450c | 9991 | ac_cv_sys_large_files=no |
698dcdb6 | 9992 | fi |
4f14bcd8 | 9993 | rm -f conftest* |
90dd450c VZ |
9994 | |
9995 | ||
4f14bcd8 GD |
9996 | fi |
9997 | ||
90dd450c | 9998 | echo "$ac_t""$ac_cv_sys_large_files" 1>&6 |
4f14bcd8 | 9999 | |
90dd450c | 10000 | if test "$ac_cv_sys_large_files" != no; then |
5a5d3c08 | 10001 | wx_largefile=yes |
90dd450c VZ |
10002 | cat >> confdefs.h <<EOF |
10003 | #define _LARGE_FILES $ac_cv_sys_large_files | |
10004 | EOF | |
4f14bcd8 | 10005 | |
4f14bcd8 | 10006 | fi |
4f14bcd8 | 10007 | |
90dd450c | 10008 | fi |
4f14bcd8 | 10009 | |
5a5d3c08 VZ |
10010 | echo $ac_n "checking if large file support is available""... $ac_c" 1>&6 |
10011 | echo "configure:10012: checking if large file support is available" >&5 | |
90dd450c VZ |
10012 | if test "x$wx_largefile" = "xyes"; then |
10013 | cat >> confdefs.h <<\EOF | |
10014 | #define HAVE_LARGEFILE_SUPPORT 1 | |
4f14bcd8 GD |
10015 | EOF |
10016 | ||
90dd450c | 10017 | fi |
5a5d3c08 | 10018 | echo "$ac_t""$wx_largefile" 1>&6 |
90dd450c | 10019 | fi |
4f14bcd8 | 10020 | |
90dd450c VZ |
10021 | |
10022 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 | |
5a5d3c08 | 10023 | echo "configure:10024: checking whether byte ordering is bigendian" >&5 |
90dd450c | 10024 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
4f14bcd8 GD |
10025 | echo $ac_n "(cached) $ac_c" 1>&6 |
10026 | else | |
90dd450c VZ |
10027 | ac_cv_c_bigendian=unknown |
10028 | # See if sys/param.h defines the BYTE_ORDER macro. | |
10029 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 10030 | #line 10031 "configure" |
4f14bcd8 | 10031 | #include "confdefs.h" |
90dd450c VZ |
10032 | #include <sys/types.h> |
10033 | #include <sys/param.h> | |
10034 | int main() { | |
10035 | ||
10036 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
10037 | bogus endian macros | |
10038 | #endif | |
10039 | ; return 0; } | |
4f14bcd8 | 10040 | EOF |
5a5d3c08 | 10041 | if { (eval echo configure:10042: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 | 10042 | rm -rf conftest* |
90dd450c VZ |
10043 | # It does; now see whether it defined to BIG_ENDIAN or not. |
10044 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 10045 | #line 10046 "configure" |
90dd450c VZ |
10046 | #include "confdefs.h" |
10047 | #include <sys/types.h> | |
10048 | #include <sys/param.h> | |
10049 | int main() { | |
10050 | ||
10051 | #if BYTE_ORDER != BIG_ENDIAN | |
10052 | not big endian | |
10053 | #endif | |
10054 | ; return 0; } | |
10055 | EOF | |
5a5d3c08 | 10056 | if { (eval echo configure:10057: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
90dd450c VZ |
10057 | rm -rf conftest* |
10058 | ac_cv_c_bigendian=yes | |
4f14bcd8 | 10059 | else |
4f14bcd8 GD |
10060 | echo "configure: failed program was:" >&5 |
10061 | cat conftest.$ac_ext >&5 | |
10062 | rm -rf conftest* | |
90dd450c | 10063 | ac_cv_c_bigendian=no |
4f14bcd8 GD |
10064 | fi |
10065 | rm -f conftest* | |
90dd450c VZ |
10066 | else |
10067 | echo "configure: failed program was:" >&5 | |
10068 | cat conftest.$ac_ext >&5 | |
4f14bcd8 | 10069 | fi |
90dd450c VZ |
10070 | rm -f conftest* |
10071 | if test $ac_cv_c_bigendian = unknown; then | |
10072 | if test "$cross_compiling" = yes; then | |
10073 | ac_cv_c_bigendian=unknown | |
4f14bcd8 | 10074 | else |
90dd450c | 10075 | cat > conftest.$ac_ext <<EOF |
5a5d3c08 | 10076 | #line 10077 "configure" |
4f14bcd8 | 10077 | #include "confdefs.h" |
90dd450c VZ |
10078 | main () { |
10079 | /* Are we little or big endian? From Harbison&Steele. */ | |
10080 | union | |
10081 | { | |
10082 | long l; | |
10083 | char c[sizeof (long)]; | |
10084 | } u; | |
10085 | u.l = 1; | |
10086 | exit (u.c[sizeof (long) - 1] == 1); | |
10087 | } | |
4f14bcd8 | 10088 | EOF |
5a5d3c08 | 10089 | if { (eval echo configure:10090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
90dd450c VZ |
10090 | then |
10091 | ac_cv_c_bigendian=no | |
4f14bcd8 GD |
10092 | else |
10093 | echo "configure: failed program was:" >&5 | |
10094 | cat conftest.$ac_ext >&5 | |
90dd450c VZ |
10095 | rm -fr conftest* |
10096 | ac_cv_c_bigendian=yes | |
10097 | fi | |
10098 | rm -fr conftest* | |
4f14bcd8 | 10099 | fi |
4f14bcd8 GD |
10100 | |
10101 | fi | |
4f14bcd8 GD |
10102 | fi |
10103 | ||
90dd450c VZ |
10104 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 |
10105 | if test $ac_cv_c_bigendian = unknown; then | |
10106 | 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 | |
4f14bcd8 | 10107 | fi |
90dd450c VZ |
10108 | if test $ac_cv_c_bigendian = yes; then |
10109 | cat >> confdefs.h <<\EOF | |
10110 | #define WORDS_BIGENDIAN 1 | |
10111 | EOF | |
4f14bcd8 | 10112 | |
4f14bcd8 GD |
10113 | fi |
10114 | ||
10115 | ||
90dd450c | 10116 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 |
5a5d3c08 | 10117 | echo "configure:10118: checking how to run the C++ preprocessor" >&5 |
90dd450c VZ |
10118 | if test -z "$CXXCPP"; then |
10119 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then | |
4f14bcd8 GD |
10120 | echo $ac_n "(cached) $ac_c" 1>&6 |
10121 | else | |
90dd450c VZ |
10122 | ac_ext=C |
10123 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10124 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10125 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10126 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10127 | cross_compiling=$ac_cv_prog_cxx_cross | |
10128 | CXXCPP="${CXX-g++} -E" | |
4f14bcd8 | 10129 | cat > conftest.$ac_ext <<EOF |
5a5d3c08 | 10130 | #line 10131 "configure" |
4f14bcd8 | 10131 | #include "confdefs.h" |
90dd450c | 10132 | #include <stdlib.h> |
4f14bcd8 GD |
10133 | EOF |
10134 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5a5d3c08 | 10135 | { (eval echo configure:10136: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
10136 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10137 | if test -z "$ac_err"; then | |
90dd450c | 10138 | : |
4f14bcd8 GD |
10139 | else |
10140 | echo "$ac_err" >&5 | |
10141 | echo "configure: failed program was:" >&5 | |
10142 | cat conftest.$ac_ext >&5 | |
10143 | rm -rf conftest* | |
90dd450c | 10144 | CXXCPP=/lib/cpp |
4f14bcd8 GD |
10145 | fi |
10146 | rm -f conftest* | |
90dd450c VZ |
10147 | ac_cv_prog_CXXCPP="$CXXCPP" |
10148 | ac_ext=C | |
10149 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10150 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10151 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10152 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10153 | cross_compiling=$ac_cv_prog_cxx_cross | |
4f14bcd8 | 10154 | fi |
4f14bcd8 | 10155 | fi |
90dd450c VZ |
10156 | CXXCPP="$ac_cv_prog_CXXCPP" |
10157 | echo "$ac_t""$CXXCPP" 1>&6 | |
4f14bcd8 | 10158 | |
90dd450c VZ |
10159 | |
10160 | if test "$cross_compiling" = "yes"; then | |
10161 | cat >> confdefs.h <<\EOF | |
10162 | #define wxUSE_IOSTREAMH 1 | |
10163 | EOF | |
10164 | ||
10165 | else | |
10166 | ||
10167 | ac_ext=C | |
10168 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10169 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10170 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10171 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10172 | cross_compiling=$ac_cv_prog_cxx_cross | |
10173 | ||
10174 | ||
10175 | for ac_hdr in iostream | |
10176 | do | |
10177 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
10178 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
5a5d3c08 | 10179 | echo "configure:10180: checking for $ac_hdr" >&5 |
4f14bcd8 GD |
10180 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10181 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10182 | else | |
10183 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 10184 | #line 10185 "configure" |
4f14bcd8 | 10185 | #include "confdefs.h" |
90dd450c | 10186 | #include <$ac_hdr> |
4f14bcd8 GD |
10187 | EOF |
10188 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5a5d3c08 | 10189 | { (eval echo configure:10190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
10190 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10191 | if test -z "$ac_err"; then | |
10192 | rm -rf conftest* | |
10193 | eval "ac_cv_header_$ac_safe=yes" | |
10194 | else | |
10195 | echo "$ac_err" >&5 | |
10196 | echo "configure: failed program was:" >&5 | |
10197 | cat conftest.$ac_ext >&5 | |
10198 | rm -rf conftest* | |
10199 | eval "ac_cv_header_$ac_safe=no" | |
10200 | fi | |
10201 | rm -f conftest* | |
10202 | fi | |
10203 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10204 | echo "$ac_t""yes" 1>&6 | |
90dd450c VZ |
10205 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
10206 | cat >> confdefs.h <<EOF | |
10207 | #define $ac_tr_hdr 1 | |
10208 | EOF | |
10209 | ||
4f14bcd8 GD |
10210 | else |
10211 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 | 10212 | fi |
90dd450c | 10213 | done |
4f14bcd8 GD |
10214 | |
10215 | ||
90dd450c VZ |
10216 | if test "$ac_cv_header_iostream" = "yes" ; then |
10217 | : | |
10218 | else | |
10219 | cat >> confdefs.h <<\EOF | |
10220 | #define wxUSE_IOSTREAMH 1 | |
10221 | EOF | |
10222 | ||
10223 | fi | |
10224 | ||
10225 | ac_ext=c | |
10226 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10227 | ac_cpp='$CPP $CPPFLAGS' | |
10228 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10229 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10230 | cross_compiling=$ac_cv_prog_cc_cross | |
10231 | ||
10232 | fi | |
10233 | ||
10234 | ||
10235 | ||
10236 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 | |
5a5d3c08 | 10237 | echo "configure:10238: checking if C++ compiler supports bool" >&5 |
90dd450c | 10238 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then |
4f14bcd8 GD |
10239 | echo $ac_n "(cached) $ac_c" 1>&6 |
10240 | else | |
10241 | ||
90dd450c VZ |
10242 | |
10243 | ac_ext=C | |
10244 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10245 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10246 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10247 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10248 | cross_compiling=$ac_cv_prog_cxx_cross | |
10249 | ||
10250 | ||
10251 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 10252 | #line 10253 "configure" |
90dd450c VZ |
10253 | #include "confdefs.h" |
10254 | ||
10255 | ||
4f14bcd8 GD |
10256 | int main() { |
10257 | ||
90dd450c | 10258 | bool b = true; |
4f14bcd8 | 10259 | |
90dd450c VZ |
10260 | return 0; |
10261 | ||
4f14bcd8 GD |
10262 | ; return 0; } |
10263 | EOF | |
5a5d3c08 | 10264 | if { (eval echo configure:10265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
10265 | rm -rf conftest* |
10266 | ||
90dd450c VZ |
10267 | wx_cv_cpp_bool=yes |
10268 | ||
4f14bcd8 GD |
10269 | else |
10270 | echo "configure: failed program was:" >&5 | |
10271 | cat conftest.$ac_ext >&5 | |
10272 | rm -rf conftest* | |
10273 | ||
90dd450c VZ |
10274 | wx_cv_cpp_bool=no |
10275 | ||
4f14bcd8 GD |
10276 | |
10277 | fi | |
90dd450c | 10278 | rm -f conftest* |
4f14bcd8 | 10279 | |
90dd450c VZ |
10280 | ac_ext=c |
10281 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10282 | ac_cpp='$CPP $CPPFLAGS' | |
10283 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10284 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10285 | cross_compiling=$ac_cv_prog_cc_cross | |
4f14bcd8 | 10286 | |
90dd450c VZ |
10287 | |
10288 | fi | |
4f14bcd8 | 10289 | |
90dd450c | 10290 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 |
4f14bcd8 | 10291 | |
90dd450c VZ |
10292 | if test "$wx_cv_cpp_bool" = "yes"; then |
10293 | cat >> confdefs.h <<\EOF | |
10294 | #define HAVE_BOOL 1 | |
10295 | EOF | |
4f14bcd8 | 10296 | |
90dd450c | 10297 | fi |
4f14bcd8 | 10298 | |
4f14bcd8 | 10299 | |
4f14bcd8 | 10300 | |
90dd450c VZ |
10301 | SEARCH_INCLUDE="\ |
10302 | /usr/local/include \ | |
10303 | \ | |
10304 | /usr/Motif-1.2/include \ | |
10305 | /usr/Motif-2.1/include \ | |
10306 | \ | |
10307 | /usr/include/Motif1.2 \ | |
10308 | /opt/xpm/include/X11 \ | |
10309 | /opt/GBxpm/include/ \ | |
10310 | /opt/GBxpm/X11/include/ \ | |
10311 | \ | |
10312 | /usr/Motif1.2/include \ | |
10313 | /usr/dt/include \ | |
10314 | /usr/openwin/include \ | |
10315 | \ | |
10316 | /usr/include/Xm \ | |
10317 | \ | |
10318 | /usr/X11R6/include \ | |
10319 | /usr/X11R6.4/include \ | |
10320 | /usr/X11R5/include \ | |
10321 | /usr/X11R4/include \ | |
10322 | \ | |
10323 | /usr/include/X11R6 \ | |
10324 | /usr/include/X11R5 \ | |
10325 | /usr/include/X11R4 \ | |
10326 | \ | |
10327 | /usr/local/X11R6/include \ | |
10328 | /usr/local/X11R5/include \ | |
10329 | /usr/local/X11R4/include \ | |
10330 | \ | |
10331 | /usr/local/include/X11R6 \ | |
10332 | /usr/local/include/X11R5 \ | |
10333 | /usr/local/include/X11R4 \ | |
10334 | \ | |
10335 | /usr/X11/include \ | |
10336 | /usr/include/X11 \ | |
10337 | /usr/local/X11/include \ | |
10338 | /usr/local/include/X11 \ | |
10339 | \ | |
10340 | /usr/X386/include \ | |
10341 | /usr/x386/include \ | |
10342 | /usr/XFree86/include/X11 \ | |
10343 | \ | |
10344 | X:/XFree86/include \ | |
10345 | X:/XFree86/include/X11 \ | |
10346 | \ | |
10347 | /usr/include/gtk \ | |
10348 | /usr/local/include/gtk \ | |
10349 | /usr/include/glib \ | |
10350 | /usr/local/include/glib \ | |
10351 | \ | |
10352 | /usr/include/qt \ | |
10353 | /usr/local/include/qt \ | |
10354 | \ | |
10355 | /usr/include/windows \ | |
10356 | /usr/include/wine \ | |
10357 | /usr/local/include/wine \ | |
10358 | \ | |
10359 | /usr/unsupported/include \ | |
10360 | /usr/athena/include \ | |
10361 | /usr/local/x11r5/include \ | |
10362 | /usr/lpp/Xamples/include \ | |
10363 | \ | |
10364 | /usr/openwin/share/include \ | |
10365 | \ | |
10366 | /usr/include" | |
4f14bcd8 | 10367 | |
90dd450c | 10368 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " |
77e13408 | 10369 | |
4f14bcd8 | 10370 | |
90dd450c VZ |
10371 | cat > confcache <<\EOF |
10372 | # This file is a shell script that caches the results of configure | |
10373 | # tests run on this system so they can be shared between configure | |
10374 | # scripts and configure runs. It is not useful on other systems. | |
10375 | # If it contains results you don't want to keep, you may remove or edit it. | |
10376 | # | |
10377 | # By default, configure uses ./config.cache as the cache file, | |
10378 | # creating it if it does not exist already. You can give configure | |
10379 | # the --cache-file=FILE option to use a different cache file; that is | |
10380 | # what configure does when it calls configure scripts in | |
10381 | # subdirectories, so they share the cache. | |
10382 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
10383 | # config.status only pays attention to the cache file if you give it the | |
10384 | # --recheck option to rerun configure. | |
10385 | # | |
10386 | EOF | |
10387 | # The following way of writing the cache mishandles newlines in values, | |
10388 | # but we know of no workaround that is simple, portable, and efficient. | |
10389 | # So, don't put newlines in cache variables' values. | |
10390 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
10391 | # and sets the high bit in the cache file unless we assign to the vars. | |
10392 | (set) 2>&1 | | |
10393 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
10394 | *ac_space=\ *) | |
10395 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
10396 | # turns \\\\ into \\, and sed turns \\ into \). | |
10397 | sed -n \ | |
10398 | -e "s/'/'\\\\''/g" \ | |
10399 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
10400 | ;; | |
10401 | *) | |
10402 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
10403 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
10404 | ;; | |
10405 | esac >> confcache | |
10406 | if cmp -s $cache_file confcache; then | |
10407 | : | |
10408 | else | |
10409 | if test -w $cache_file; then | |
10410 | echo "updating cache $cache_file" | |
10411 | cat confcache > $cache_file | |
10412 | else | |
10413 | echo "not updating unwritable cache $cache_file" | |
10414 | fi | |
10415 | fi | |
10416 | rm -f confcache | |
4f14bcd8 | 10417 | |
90dd450c VZ |
10418 | |
10419 | if test "$USE_LINUX" = 1; then | |
10420 | echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6 | |
5a5d3c08 | 10421 | echo "configure:10422: checking for glibc 2.1 or later" >&5 |
90dd450c | 10422 | if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then |
4f14bcd8 GD |
10423 | echo $ac_n "(cached) $ac_c" 1>&6 |
10424 | else | |
10425 | ||
90dd450c | 10426 | cat > conftest.$ac_ext <<EOF |
5a5d3c08 | 10427 | #line 10428 "configure" |
90dd450c VZ |
10428 | #include "confdefs.h" |
10429 | #include <features.h> | |
10430 | int main() { | |
3f345b47 | 10431 | |
90dd450c VZ |
10432 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) |
10433 | #error not glibc2.1 | |
10434 | #endif | |
10435 | ||
10436 | ; return 0; } | |
10437 | EOF | |
5a5d3c08 | 10438 | if { (eval echo configure:10439: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
90dd450c VZ |
10439 | rm -rf conftest* |
10440 | ||
10441 | wx_cv_lib_glibc21=yes | |
10442 | ||
4f14bcd8 | 10443 | else |
90dd450c VZ |
10444 | echo "configure: failed program was:" >&5 |
10445 | cat conftest.$ac_ext >&5 | |
10446 | rm -rf conftest* | |
10447 | ||
10448 | wx_cv_lib_glibc21=no | |
10449 | ||
10450 | ||
10451 | fi | |
10452 | rm -f conftest* | |
10453 | ||
4f14bcd8 GD |
10454 | fi |
10455 | ||
90dd450c VZ |
10456 | echo "$ac_t""$wx_cv_lib_glibc21" 1>&6 |
10457 | if test "$wx_cv_lib_glibc21" = "yes"; then | |
10458 | cat >> confdefs.h <<\EOF | |
10459 | #define wxHAVE_GLIBC2 1 | |
10460 | EOF | |
4f14bcd8 | 10461 | |
90dd450c VZ |
10462 | fi |
10463 | fi | |
6f72b082 | 10464 | |
6f72b082 | 10465 | |
9e691f46 | 10466 | |
90dd450c VZ |
10467 | REGEX_INCLUDE= |
10468 | if test "$wxUSE_REGEX" != "no"; then | |
10469 | cat >> confdefs.h <<\EOF | |
10470 | #define wxUSE_REGEX 1 | |
10471 | EOF | |
9e691f46 | 10472 | |
9e691f46 | 10473 | |
90dd450c VZ |
10474 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then |
10475 | ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'` | |
10476 | echo $ac_n "checking for regex.h""... $ac_c" 1>&6 | |
5a5d3c08 | 10477 | echo "configure:10478: checking for regex.h" >&5 |
90dd450c VZ |
10478 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10479 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6f72b082 | 10480 | else |
698dcdb6 | 10481 | cat > conftest.$ac_ext <<EOF |
5a5d3c08 | 10482 | #line 10483 "configure" |
6f72b082 | 10483 | #include "confdefs.h" |
90dd450c | 10484 | #include <regex.h> |
698dcdb6 | 10485 | EOF |
90dd450c | 10486 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5a5d3c08 | 10487 | { (eval echo configure:10488: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
90dd450c VZ |
10488 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10489 | if test -z "$ac_err"; then | |
10490 | rm -rf conftest* | |
10491 | eval "ac_cv_header_$ac_safe=yes" | |
6f72b082 | 10492 | else |
90dd450c | 10493 | echo "$ac_err" >&5 |
698dcdb6 VZ |
10494 | echo "configure: failed program was:" >&5 |
10495 | cat conftest.$ac_ext >&5 | |
90dd450c VZ |
10496 | rm -rf conftest* |
10497 | eval "ac_cv_header_$ac_safe=no" | |
6f72b082 | 10498 | fi |
90dd450c | 10499 | rm -f conftest* |
6f72b082 | 10500 | fi |
90dd450c VZ |
10501 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10502 | echo "$ac_t""yes" 1>&6 | |
10503 | for ac_func in regcomp | |
10504 | do | |
10505 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
5a5d3c08 | 10506 | echo "configure:10507: checking for $ac_func" >&5 |
90dd450c VZ |
10507 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10508 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10509 | else | |
10510 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 10511 | #line 10512 "configure" |
6f72b082 | 10512 | #include "confdefs.h" |
90dd450c VZ |
10513 | /* System header to define __stub macros and hopefully few prototypes, |
10514 | which can conflict with char $ac_func(); below. */ | |
10515 | #include <assert.h> | |
10516 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10517 | /* We use char because int might match the return type of a gcc2 | |
10518 | builtin and then its argument prototype would still apply. */ | |
10519 | char $ac_func(); | |
6f72b082 | 10520 | |
698dcdb6 | 10521 | int main() { |
90dd450c VZ |
10522 | |
10523 | /* The GNU C library defines this for functions which it implements | |
10524 | to always fail with ENOSYS. Some functions are actually named | |
10525 | something starting with __ and the normal name is an alias. */ | |
10526 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10527 | choke me | |
10528 | #else | |
10529 | $ac_func(); | |
10530 | #endif | |
10531 | ||
698dcdb6 VZ |
10532 | ; return 0; } |
10533 | EOF | |
5a5d3c08 | 10534 | if { (eval echo configure:10535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 10535 | rm -rf conftest* |
90dd450c | 10536 | eval "ac_cv_func_$ac_func=yes" |
6f72b082 | 10537 | else |
698dcdb6 VZ |
10538 | echo "configure: failed program was:" >&5 |
10539 | cat conftest.$ac_ext >&5 | |
10540 | rm -rf conftest* | |
90dd450c | 10541 | eval "ac_cv_func_$ac_func=no" |
6f72b082 | 10542 | fi |
698dcdb6 | 10543 | rm -f conftest* |
90dd450c | 10544 | fi |
8168de4c | 10545 | |
90dd450c VZ |
10546 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
10547 | echo "$ac_t""yes" 1>&6 | |
10548 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10549 | cat >> confdefs.h <<EOF | |
10550 | #define $ac_tr_func 1 | |
10551 | EOF | |
10552 | ||
3f345b47 | 10553 | else |
90dd450c | 10554 | echo "$ac_t""no" 1>&6 |
3f345b47 | 10555 | fi |
90dd450c | 10556 | done |
3f345b47 | 10557 | |
3f345b47 | 10558 | else |
90dd450c | 10559 | echo "$ac_t""no" 1>&6 |
3f345b47 VZ |
10560 | fi |
10561 | ||
90dd450c VZ |
10562 | |
10563 | if test "x$ac_cv_func_regcomp" != "xyes"; then | |
10564 | if test "$wxUSE_REGEX" = "sys" ; then | |
10565 | { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; } | |
10566 | else | |
10567 | echo "configure: warning: system regex library not found, will use built-in instead" 1>&2 | |
10568 | wxUSE_REGEX=builtin | |
10569 | fi | |
10570 | else | |
10571 | wxUSE_REGEX=sys | |
10572 | fi | |
10573 | fi | |
10574 | ||
10575 | if test "$wxUSE_REGEX" = "builtin" ; then | |
10576 | REGEX_INCLUDE="-I\${top_srcdir}/src/regex" | |
10577 | fi | |
3f345b47 VZ |
10578 | fi |
10579 | ||
10580 | ||
90dd450c VZ |
10581 | ZLIB_INCLUDE= |
10582 | ZLIB_LINK= | |
10583 | if test "$wxUSE_ZLIB" != "no" ; then | |
10584 | cat >> confdefs.h <<\EOF | |
10585 | #define wxUSE_ZLIB 1 | |
10586 | EOF | |
3f345b47 | 10587 | |
10f2d63a | 10588 | |
90dd450c VZ |
10589 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then |
10590 | ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'` | |
10591 | echo $ac_n "checking for zlib.h""... $ac_c" 1>&6 | |
5a5d3c08 | 10592 | echo "configure:10593: checking for zlib.h" >&5 |
90dd450c | 10593 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
698dcdb6 | 10594 | echo $ac_n "(cached) $ac_c" 1>&6 |
f6bcfd97 | 10595 | else |
90dd450c | 10596 | cat > conftest.$ac_ext <<EOF |
5a5d3c08 | 10597 | #line 10598 "configure" |
90dd450c VZ |
10598 | #include "confdefs.h" |
10599 | #include <zlib.h> | |
10600 | EOF | |
10601 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5a5d3c08 | 10602 | { (eval echo configure:10603: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
90dd450c VZ |
10603 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10604 | if test -z "$ac_err"; then | |
10605 | rm -rf conftest* | |
10606 | eval "ac_cv_header_$ac_safe=yes" | |
f6bcfd97 | 10607 | else |
90dd450c VZ |
10608 | echo "$ac_err" >&5 |
10609 | echo "configure: failed program was:" >&5 | |
10610 | cat conftest.$ac_ext >&5 | |
10611 | rm -rf conftest* | |
10612 | eval "ac_cv_header_$ac_safe=no" | |
f6bcfd97 | 10613 | fi |
90dd450c VZ |
10614 | rm -f conftest* |
10615 | fi | |
10616 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10617 | echo "$ac_t""yes" 1>&6 | |
10618 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6 | |
5a5d3c08 | 10619 | echo "configure:10620: checking for deflate in -lz" >&5 |
90dd450c VZ |
10620 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'` |
10621 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10622 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 10623 | else |
90dd450c VZ |
10624 | ac_save_LIBS="$LIBS" |
10625 | LIBS="-lz $LIBS" | |
10626 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 10627 | #line 10628 "configure" |
f6bcfd97 | 10628 | #include "confdefs.h" |
90dd450c VZ |
10629 | /* Override any gcc2 internal prototype to avoid an error. */ |
10630 | /* We use char because int might match the return type of a gcc2 | |
10631 | builtin and then its argument prototype would still apply. */ | |
10632 | char deflate(); | |
f6bcfd97 | 10633 | |
90dd450c VZ |
10634 | int main() { |
10635 | deflate() | |
10636 | ; return 0; } | |
698dcdb6 | 10637 | EOF |
5a5d3c08 | 10638 | if { (eval echo configure:10639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
10639 | rm -rf conftest* |
10640 | eval "ac_cv_lib_$ac_lib_var=yes" | |
f6bcfd97 | 10641 | else |
698dcdb6 VZ |
10642 | echo "configure: failed program was:" >&5 |
10643 | cat conftest.$ac_ext >&5 | |
90dd450c VZ |
10644 | rm -rf conftest* |
10645 | eval "ac_cv_lib_$ac_lib_var=no" | |
f6bcfd97 | 10646 | fi |
90dd450c VZ |
10647 | rm -f conftest* |
10648 | LIBS="$ac_save_LIBS" | |
10649 | ||
10650 | fi | |
10651 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10652 | echo "$ac_t""yes" 1>&6 | |
10653 | ZLIB_LINK=" -lz" | |
10654 | else | |
10655 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 | 10656 | fi |
698dcdb6 | 10657 | |
90dd450c VZ |
10658 | else |
10659 | echo "$ac_t""no" 1>&6 | |
10660 | fi | |
3f345b47 | 10661 | |
90dd450c VZ |
10662 | |
10663 | if test "x$ZLIB_LINK" = "x" ; then | |
10664 | if test "$wxUSE_ZLIB" = "sys" ; then | |
10665 | { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; } | |
10666 | else | |
10667 | echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2 | |
10668 | wxUSE_ZLIB=builtin | |
10669 | fi | |
10670 | else | |
10671 | wxUSE_ZLIB=sys | |
10672 | fi | |
10673 | fi | |
10674 | ||
10675 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
10676 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
10677 | fi | |
10678 | fi | |
10679 | ||
10680 | ||
10681 | PNG_INCLUDE= | |
10682 | PNG_LINK= | |
10683 | if test "$wxUSE_LIBPNG" != "no" ; then | |
10684 | cat >> confdefs.h <<\EOF | |
10685 | #define wxUSE_LIBPNG 1 | |
10686 | EOF | |
10687 | ||
10688 | ||
10689 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then | |
10690 | echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2 | |
10691 | wxUSE_LIBPNG=sys | |
10692 | fi | |
10693 | ||
10694 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then | |
10695 | echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2 | |
10696 | wxUSE_LIBPNG=builtin | |
10697 | fi | |
10698 | ||
10699 | if test "$wxUSE_MGL" != 1 ; then | |
10700 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
10701 | ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` | |
10702 | echo $ac_n "checking for png.h""... $ac_c" 1>&6 | |
5a5d3c08 | 10703 | echo "configure:10704: checking for png.h" >&5 |
90dd450c VZ |
10704 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10705 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10706 | else | |
10707 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 10708 | #line 10709 "configure" |
90dd450c VZ |
10709 | #include "confdefs.h" |
10710 | #include <png.h> | |
10711 | EOF | |
10712 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5a5d3c08 | 10713 | { (eval echo configure:10714: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
90dd450c VZ |
10714 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10715 | if test -z "$ac_err"; then | |
10716 | rm -rf conftest* | |
10717 | eval "ac_cv_header_$ac_safe=yes" | |
10718 | else | |
10719 | echo "$ac_err" >&5 | |
10720 | echo "configure: failed program was:" >&5 | |
10721 | cat conftest.$ac_ext >&5 | |
10722 | rm -rf conftest* | |
10723 | eval "ac_cv_header_$ac_safe=no" | |
10724 | fi | |
10725 | rm -f conftest* | |
10726 | fi | |
10727 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10728 | echo "$ac_t""yes" 1>&6 | |
10729 | echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6 | |
5a5d3c08 | 10730 | echo "configure:10731: checking for png_check_sig in -lpng" >&5 |
90dd450c VZ |
10731 | ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'` |
10732 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10733 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10734 | else | |
10735 | ac_save_LIBS="$LIBS" | |
10736 | LIBS="-lpng -lz -lm $LIBS" | |
10737 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 10738 | #line 10739 "configure" |
90dd450c VZ |
10739 | #include "confdefs.h" |
10740 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10741 | /* We use char because int might match the return type of a gcc2 | |
10742 | builtin and then its argument prototype would still apply. */ | |
10743 | char png_check_sig(); | |
3f345b47 VZ |
10744 | |
10745 | int main() { | |
90dd450c | 10746 | png_check_sig() |
3f345b47 VZ |
10747 | ; return 0; } |
10748 | EOF | |
5a5d3c08 | 10749 | if { (eval echo configure:10750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3f345b47 | 10750 | rm -rf conftest* |
90dd450c | 10751 | eval "ac_cv_lib_$ac_lib_var=yes" |
3f345b47 VZ |
10752 | else |
10753 | echo "configure: failed program was:" >&5 | |
10754 | cat conftest.$ac_ext >&5 | |
10755 | rm -rf conftest* | |
90dd450c | 10756 | eval "ac_cv_lib_$ac_lib_var=no" |
3f345b47 VZ |
10757 | fi |
10758 | rm -f conftest* | |
90dd450c | 10759 | LIBS="$ac_save_LIBS" |
8168de4c | 10760 | |
90dd450c VZ |
10761 | fi |
10762 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10763 | echo "$ac_t""yes" 1>&6 | |
10764 | PNG_LINK=" -lpng" | |
3f345b47 | 10765 | else |
90dd450c | 10766 | echo "$ac_t""no" 1>&6 |
3f345b47 VZ |
10767 | fi |
10768 | ||
90dd450c | 10769 | |
3f345b47 | 10770 | else |
90dd450c | 10771 | echo "$ac_t""no" 1>&6 |
3f345b47 VZ |
10772 | fi |
10773 | ||
90dd450c VZ |
10774 | |
10775 | if test "x$PNG_LINK" = "x" ; then | |
10776 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
10777 | { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; } | |
10778 | else | |
10779 | echo "configure: warning: system png library not found, will use built-in instead" 1>&2 | |
10780 | wxUSE_LIBPNG=builtin | |
10781 | fi | |
10782 | else | |
10783 | wxUSE_LIBPNG=yes | |
10784 | fi | |
10785 | fi | |
10786 | fi | |
10787 | ||
10788 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
10789 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
10790 | fi | |
10791 | ||
10792 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" | |
3f345b47 VZ |
10793 | fi |
10794 | ||
10795 | ||
90dd450c VZ |
10796 | JPEG_INCLUDE= |
10797 | JPEG_LINK= | |
10798 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
10799 | cat >> confdefs.h <<\EOF | |
10800 | #define wxUSE_LIBJPEG 1 | |
10801 | EOF | |
3f345b47 | 10802 | |
f6bcfd97 | 10803 | |
90dd450c VZ |
10804 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then |
10805 | echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2 | |
10806 | wxUSE_LIBJPEG=sys | |
698dcdb6 | 10807 | fi |
90dd450c VZ |
10808 | |
10809 | if test "$wxUSE_MGL" != 1 ; then | |
10810 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
10811 | echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 | |
5a5d3c08 | 10812 | echo "configure:10813: checking for jpeglib.h" >&5 |
90dd450c VZ |
10813 | if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then |
10814 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 10815 | else |
90dd450c | 10816 | cat > conftest.$ac_ext <<EOF |
5a5d3c08 | 10817 | #line 10818 "configure" |
90dd450c | 10818 | #include "confdefs.h" |
3f345b47 | 10819 | |
90dd450c VZ |
10820 | #undef HAVE_STDLIB_H |
10821 | #include <stdio.h> | |
10822 | #include <jpeglib.h> | |
10823 | ||
3f345b47 | 10824 | int main() { |
90dd450c VZ |
10825 | |
10826 | ||
3f345b47 VZ |
10827 | ; return 0; } |
10828 | EOF | |
5a5d3c08 | 10829 | if { (eval echo configure:10830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
3f345b47 | 10830 | rm -rf conftest* |
90dd450c | 10831 | ac_cv_header_jpeglib_h=yes |
3f345b47 VZ |
10832 | else |
10833 | echo "configure: failed program was:" >&5 | |
10834 | cat conftest.$ac_ext >&5 | |
10835 | rm -rf conftest* | |
90dd450c VZ |
10836 | ac_cv_header_jpeglib_h=no |
10837 | ||
3f345b47 VZ |
10838 | fi |
10839 | rm -f conftest* | |
8168de4c | 10840 | |
8168de4c | 10841 | fi |
703e0a69 | 10842 | |
90dd450c | 10843 | echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6 |
698dcdb6 | 10844 | |
90dd450c VZ |
10845 | if test "$ac_cv_header_jpeglib_h" = "yes"; then |
10846 | echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6 | |
5a5d3c08 | 10847 | echo "configure:10848: checking for jpeg_read_header in -ljpeg" >&5 |
90dd450c | 10848 | ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
10849 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
10850 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7ec2881a | 10851 | else |
698dcdb6 | 10852 | ac_save_LIBS="$LIBS" |
90dd450c | 10853 | LIBS="-ljpeg $LIBS" |
698dcdb6 | 10854 | cat > conftest.$ac_ext <<EOF |
5a5d3c08 | 10855 | #line 10856 "configure" |
7ec2881a RR |
10856 | #include "confdefs.h" |
10857 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10858 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 10859 | builtin and then its argument prototype would still apply. */ |
90dd450c | 10860 | char jpeg_read_header(); |
698dcdb6 VZ |
10861 | |
10862 | int main() { | |
90dd450c | 10863 | jpeg_read_header() |
698dcdb6 VZ |
10864 | ; return 0; } |
10865 | EOF | |
5a5d3c08 | 10866 | if { (eval echo configure:10867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10867 | rm -rf conftest* |
10868 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10869 | else | |
10870 | echo "configure: failed program was:" >&5 | |
10871 | cat conftest.$ac_ext >&5 | |
10872 | rm -rf conftest* | |
10873 | eval "ac_cv_lib_$ac_lib_var=no" | |
10874 | fi | |
10875 | rm -f conftest* | |
10876 | LIBS="$ac_save_LIBS" | |
10877 | ||
10878 | fi | |
10879 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10880 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 10881 | JPEG_LINK=" -ljpeg" |
698dcdb6 VZ |
10882 | else |
10883 | echo "$ac_t""no" 1>&6 | |
7ec2881a RR |
10884 | fi |
10885 | ||
90dd450c | 10886 | fi |
10f2d63a | 10887 | |
90dd450c VZ |
10888 | if test "x$JPEG_LINK" = "x" ; then |
10889 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
10890 | { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; } | |
10891 | else | |
10892 | echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2 | |
10893 | wxUSE_LIBJPEG=builtin | |
10894 | fi | |
10895 | else | |
10896 | wxUSE_LIBJPEG=sys | |
10897 | fi | |
1e6feb95 | 10898 | fi |
90dd450c | 10899 | fi |
1e6feb95 | 10900 | |
90dd450c VZ |
10901 | if test "$wxUSE_LIBJPEG" = "builtin" ; then |
10902 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
1e6feb95 | 10903 | fi |
90dd450c | 10904 | fi |
1e6feb95 | 10905 | |
1725144d | 10906 | |
90dd450c VZ |
10907 | TIFF_INCLUDE= |
10908 | TIFF_LINK= | |
10909 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
10910 | cat >> confdefs.h <<\EOF | |
10911 | #define wxUSE_LIBTIFF 1 | |
10912 | EOF | |
ab9b9eab | 10913 | |
ba337fe7 | 10914 | |
90dd450c VZ |
10915 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then |
10916 | ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` | |
10917 | echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | |
5a5d3c08 | 10918 | echo "configure:10919: checking for tiffio.h" >&5 |
90dd450c | 10919 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
698dcdb6 | 10920 | echo $ac_n "(cached) $ac_c" 1>&6 |
ab9b9eab | 10921 | else |
90dd450c | 10922 | cat > conftest.$ac_ext <<EOF |
5a5d3c08 | 10923 | #line 10924 "configure" |
ab9b9eab | 10924 | #include "confdefs.h" |
90dd450c | 10925 | #include <tiffio.h> |
698dcdb6 VZ |
10926 | EOF |
10927 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5a5d3c08 | 10928 | { (eval echo configure:10929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
10929 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10930 | if test -z "$ac_err"; then | |
10931 | rm -rf conftest* | |
90dd450c | 10932 | eval "ac_cv_header_$ac_safe=yes" |
ab9b9eab | 10933 | else |
698dcdb6 VZ |
10934 | echo "$ac_err" >&5 |
10935 | echo "configure: failed program was:" >&5 | |
ab9b9eab | 10936 | cat conftest.$ac_ext >&5 |
698dcdb6 | 10937 | rm -rf conftest* |
90dd450c | 10938 | eval "ac_cv_header_$ac_safe=no" |
ab9b9eab | 10939 | fi |
698dcdb6 | 10940 | rm -f conftest* |
90dd450c VZ |
10941 | fi |
10942 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10943 | echo "$ac_t""yes" 1>&6 | |
10944 | echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6 | |
5a5d3c08 | 10945 | echo "configure:10946: checking for TIFFError in -ltiff" >&5 |
90dd450c VZ |
10946 | ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'` |
10947 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10948 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10949 | else | |
698dcdb6 | 10950 | ac_save_LIBS="$LIBS" |
90dd450c | 10951 | LIBS="-ltiff -lm $LIBS" |
698dcdb6 | 10952 | cat > conftest.$ac_ext <<EOF |
5a5d3c08 | 10953 | #line 10954 "configure" |
ab9b9eab | 10954 | #include "confdefs.h" |
90dd450c VZ |
10955 | /* Override any gcc2 internal prototype to avoid an error. */ |
10956 | /* We use char because int might match the return type of a gcc2 | |
10957 | builtin and then its argument prototype would still apply. */ | |
10958 | char TIFFError(); | |
698dcdb6 VZ |
10959 | |
10960 | int main() { | |
90dd450c | 10961 | TIFFError() |
698dcdb6 VZ |
10962 | ; return 0; } |
10963 | EOF | |
5a5d3c08 | 10964 | if { (eval echo configure:10965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 10965 | rm -rf conftest* |
90dd450c | 10966 | eval "ac_cv_lib_$ac_lib_var=yes" |
ab9b9eab | 10967 | else |
698dcdb6 VZ |
10968 | echo "configure: failed program was:" >&5 |
10969 | cat conftest.$ac_ext >&5 | |
10970 | rm -rf conftest* | |
90dd450c | 10971 | eval "ac_cv_lib_$ac_lib_var=no" |
ab9b9eab | 10972 | fi |
698dcdb6 | 10973 | rm -f conftest* |
90dd450c | 10974 | LIBS="$ac_save_LIBS" |
10f2d63a | 10975 | |
ab9b9eab | 10976 | fi |
90dd450c VZ |
10977 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
10978 | echo "$ac_t""yes" 1>&6 | |
10979 | TIFF_LINK=" -ltiff" | |
ab9b9eab | 10980 | else |
90dd450c | 10981 | echo "$ac_t""no" 1>&6 |
ab9b9eab | 10982 | fi |
10f2d63a | 10983 | |
90dd450c | 10984 | |
ab9b9eab | 10985 | else |
90dd450c VZ |
10986 | echo "$ac_t""no" 1>&6 |
10987 | fi | |
10f2d63a | 10988 | |
10f2d63a | 10989 | |
90dd450c VZ |
10990 | if test "x$TIFF_LINK" = "x" ; then |
10991 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
10992 | { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; } | |
10993 | else | |
10994 | echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2 | |
10995 | wxUSE_LIBTIFF=builtin | |
10996 | fi | |
10997 | else | |
10998 | wxUSE_LIBTIFF=sys | |
10999 | fi | |
11000 | fi | |
788deba1 | 11001 | |
90dd450c VZ |
11002 | if test "$wxUSE_LIBTIFF" = "builtin" ; then |
11003 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" | |
11004 | fi | |
ab9b9eab | 11005 | fi |
788deba1 | 11006 | |
ab9b9eab | 11007 | |
90dd450c | 11008 | AFMINSTALL= |
ab9b9eab | 11009 | |
90dd450c VZ |
11010 | TOOLKIT= |
11011 | TOOLKIT_INCLUDE= | |
11012 | WIDGET_SET= | |
ab9b9eab | 11013 | |
90dd450c VZ |
11014 | if test "$USE_WIN32" = 1 ; then |
11015 | for ac_hdr in w32api.h | |
11016 | do | |
11017 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
11018 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
5a5d3c08 | 11019 | echo "configure:11020: checking for $ac_hdr" >&5 |
90dd450c | 11020 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
698dcdb6 | 11021 | echo $ac_n "(cached) $ac_c" 1>&6 |
ab9b9eab | 11022 | else |
90dd450c | 11023 | cat > conftest.$ac_ext <<EOF |
5a5d3c08 | 11024 | #line 11025 "configure" |
ab9b9eab | 11025 | #include "confdefs.h" |
90dd450c | 11026 | #include <$ac_hdr> |
698dcdb6 | 11027 | EOF |
90dd450c | 11028 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5a5d3c08 | 11029 | { (eval echo configure:11030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
90dd450c VZ |
11030 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11031 | if test -z "$ac_err"; then | |
698dcdb6 | 11032 | rm -rf conftest* |
90dd450c | 11033 | eval "ac_cv_header_$ac_safe=yes" |
698dcdb6 | 11034 | else |
90dd450c | 11035 | echo "$ac_err" >&5 |
698dcdb6 VZ |
11036 | echo "configure: failed program was:" >&5 |
11037 | cat conftest.$ac_ext >&5 | |
11038 | rm -rf conftest* | |
90dd450c | 11039 | eval "ac_cv_header_$ac_safe=no" |
698dcdb6 VZ |
11040 | fi |
11041 | rm -f conftest* | |
698dcdb6 | 11042 | fi |
90dd450c | 11043 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
698dcdb6 | 11044 | echo "$ac_t""yes" 1>&6 |
90dd450c VZ |
11045 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
11046 | cat >> confdefs.h <<EOF | |
11047 | #define $ac_tr_hdr 1 | |
11048 | EOF | |
11049 | ||
698dcdb6 VZ |
11050 | else |
11051 | echo "$ac_t""no" 1>&6 | |
ab9b9eab | 11052 | fi |
90dd450c | 11053 | done |
ab9b9eab | 11054 | |
90dd450c VZ |
11055 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` |
11056 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
5a5d3c08 | 11057 | echo "configure:11058: checking for windows.h" >&5 |
90dd450c | 11058 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
698dcdb6 | 11059 | echo $ac_n "(cached) $ac_c" 1>&6 |
ab9b9eab | 11060 | else |
90dd450c | 11061 | cat > conftest.$ac_ext <<EOF |
5a5d3c08 | 11062 | #line 11063 "configure" |
ab9b9eab | 11063 | #include "confdefs.h" |
90dd450c | 11064 | #include <windows.h> |
698dcdb6 | 11065 | EOF |
90dd450c | 11066 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5a5d3c08 | 11067 | { (eval echo configure:11068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
90dd450c VZ |
11068 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11069 | if test -z "$ac_err"; then | |
698dcdb6 | 11070 | rm -rf conftest* |
90dd450c | 11071 | eval "ac_cv_header_$ac_safe=yes" |
698dcdb6 | 11072 | else |
90dd450c | 11073 | echo "$ac_err" >&5 |
698dcdb6 VZ |
11074 | echo "configure: failed program was:" >&5 |
11075 | cat conftest.$ac_ext >&5 | |
11076 | rm -rf conftest* | |
90dd450c | 11077 | eval "ac_cv_header_$ac_safe=no" |
698dcdb6 VZ |
11078 | fi |
11079 | rm -f conftest* | |
698dcdb6 | 11080 | fi |
90dd450c | 11081 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
698dcdb6 | 11082 | echo "$ac_t""yes" 1>&6 |
90dd450c | 11083 | : |
698dcdb6 VZ |
11084 | else |
11085 | echo "$ac_t""no" 1>&6 | |
90dd450c VZ |
11086 | |
11087 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
11088 | ||
ab9b9eab VZ |
11089 | fi |
11090 | ||
ab9b9eab | 11091 | |
90dd450c | 11092 | echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6 |
5a5d3c08 | 11093 | echo "configure:11094: checking if w32api has good enough MSIE support" >&5 |
90dd450c | 11094 | if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then |
698dcdb6 VZ |
11095 | echo $ac_n "(cached) $ac_c" 1>&6 |
11096 | else | |
90dd450c VZ |
11097 | |
11098 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 11099 | #line 11100 "configure" |
ab9b9eab | 11100 | #include "confdefs.h" |
90dd450c | 11101 | #include <w32api.h> |
698dcdb6 | 11102 | int main() { |
ab9b9eab | 11103 | |
90dd450c VZ |
11104 | #define wxCHECK_W32API_VERSION( major, minor ) \ |
11105 | ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \ | |
11106 | && ( ( __W32API_MAJOR_VERSION > (major) ) \ | |
11107 | || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor)))) | |
ab9b9eab | 11108 | |
90dd450c VZ |
11109 | #if !wxCHECK_W32API_VERSION(1,1) |
11110 | #error You need w32api 1.1 or newer | |
11111 | #endif | |
11112 | ||
698dcdb6 VZ |
11113 | ; return 0; } |
11114 | EOF | |
5a5d3c08 | 11115 | if { (eval echo configure:11116: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 11116 | rm -rf conftest* |
90dd450c VZ |
11117 | |
11118 | wx_cv_w32api_win32_ie=yes | |
11119 | ||
698dcdb6 VZ |
11120 | else |
11121 | echo "configure: failed program was:" >&5 | |
11122 | cat conftest.$ac_ext >&5 | |
11123 | rm -rf conftest* | |
90dd450c VZ |
11124 | |
11125 | wx_cv_w32api_win32_ie=no | |
11126 | ||
698dcdb6 VZ |
11127 | fi |
11128 | rm -f conftest* | |
90dd450c | 11129 | |
698dcdb6 VZ |
11130 | fi |
11131 | ||
90dd450c VZ |
11132 | echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6 |
11133 | if test "$wx_cv_w32api_win32_ie" = "yes" ; then | |
11134 | CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400" | |
11135 | fi | |
ab9b9eab | 11136 | |
90dd450c | 11137 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32" |
6232543b | 11138 | |
90dd450c VZ |
11139 | case "${host}" in |
11140 | *-*-cygwin* ) | |
11141 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32" | |
11142 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
11143 | esac | |
1e487827 | 11144 | |
90dd450c VZ |
11145 | if test "$wxUSE_ODBC" = "yes" ; then |
11146 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
11147 | fi | |
11148 | ||
11149 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" | |
11150 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
ab9b9eab VZ |
11151 | fi |
11152 | ||
90dd450c VZ |
11153 | if test "$wxUSE_GUI" = "yes"; then |
11154 | USE_GUI=1 | |
ab9b9eab | 11155 | |
90dd450c | 11156 | GUI_TK_LIBRARY= |
698dcdb6 | 11157 | |
90dd450c VZ |
11158 | WXGTK12= |
11159 | WXGTK127= | |
11160 | WXGTK20= | |
ab9b9eab | 11161 | |
90dd450c VZ |
11162 | if test "$wxUSE_MSW" = 1 ; then |
11163 | TOOLKIT=MSW | |
11164 | GUIDIST=MSW_DIST | |
ab9b9eab | 11165 | |
90dd450c VZ |
11166 | case "${host}" in |
11167 | *-*-mingw32* ) | |
11168 | LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows" | |
11169 | esac | |
11170 | fi | |
698dcdb6 | 11171 | |
90dd450c VZ |
11172 | if test "$wxUSE_GTK" = 1; then |
11173 | echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6 | |
5a5d3c08 | 11174 | echo "configure:11175: checking for GTK+ version" >&5 |
ab9b9eab | 11175 | |
90dd450c VZ |
11176 | gtk_version_cached=1 |
11177 | if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then | |
698dcdb6 | 11178 | echo $ac_n "(cached) $ac_c" 1>&6 |
ab9b9eab | 11179 | else |
90dd450c VZ |
11180 | |
11181 | gtk_version_cached=0 | |
11182 | echo "$ac_t""" 1>&6 | |
698dcdb6 | 11183 | |
90dd450c VZ |
11184 | GTK_MODULES= |
11185 | if test "$wxUSE_THREADS" = "yes"; then | |
11186 | GTK_MODULES=gthread | |
11187 | fi | |
11188 | ||
11189 | wx_cv_lib_gtk= | |
11190 | if test "x$wxUSE_GTK2" = "xyes"; then | |
11191 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
11192 | if test "${enable_gtktest+set}" = set; then | |
11193 | enableval="$enable_gtktest" | |
11194 | : | |
698dcdb6 | 11195 | else |
90dd450c | 11196 | enable_gtktest=yes |
698dcdb6 | 11197 | fi |
698dcdb6 | 11198 | |
90dd450c VZ |
11199 | |
11200 | pkg_config_args=gtk+-2.0 | |
11201 | for module in . $GTK_MODULES | |
11202 | do | |
11203 | case "$module" in | |
11204 | gthread) | |
11205 | pkg_config_args="$pkg_config_args gthread-2.0" | |
11206 | ;; | |
11207 | esac | |
11208 | done | |
11209 | ||
11210 | no_gtk="" | |
11211 | ||
11212 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
11213 | set dummy pkg-config; ac_word=$2 | |
11214 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
5a5d3c08 | 11215 | echo "configure:11216: checking for $ac_word" >&5 |
90dd450c VZ |
11216 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
11217 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11218 | else | |
11219 | case "$PKG_CONFIG" in | |
11220 | /*) | |
11221 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
11222 | ;; | |
11223 | ?:/*) | |
11224 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
11225 | ;; | |
11226 | *) | |
11227 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
11228 | ac_dummy="$PATH" | |
11229 | for ac_dir in $ac_dummy; do | |
11230 | test -z "$ac_dir" && ac_dir=. | |
11231 | if test -f $ac_dir/$ac_word; then | |
11232 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
11233 | break | |
11234 | fi | |
11235 | done | |
11236 | IFS="$ac_save_ifs" | |
11237 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
11238 | ;; | |
11239 | esac | |
698dcdb6 | 11240 | fi |
90dd450c VZ |
11241 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
11242 | if test -n "$PKG_CONFIG"; then | |
11243 | echo "$ac_t""$PKG_CONFIG" 1>&6 | |
698dcdb6 VZ |
11244 | else |
11245 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11246 | fi |
11247 | ||
90dd450c VZ |
11248 | |
11249 | if test x$PKG_CONFIG != xno ; then | |
11250 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
11251 | : | |
11252 | else | |
11253 | echo *** pkg-config too old; version 0.7 or better required. | |
11254 | no_gtk=yes | |
11255 | PKG_CONFIG=no | |
ab9b9eab | 11256 | fi |
90dd450c VZ |
11257 | else |
11258 | no_gtk=yes | |
11259 | fi | |
ab9b9eab | 11260 | |
90dd450c VZ |
11261 | min_gtk_version=2.0.0 |
11262 | echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6 | |
5a5d3c08 | 11263 | echo "configure:11264: checking for GTK+ - version >= $min_gtk_version" >&5 |
90dd450c VZ |
11264 | |
11265 | if test x$PKG_CONFIG != xno ; then | |
11266 | ## don't try to run the test against uninstalled libtool libs | |
11267 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
11268 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
11269 | enable_gtktest=no | |
11270 | fi | |
11271 | ||
11272 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then | |
11273 | : | |
11274 | else | |
11275 | no_gtk=yes | |
11276 | fi | |
11277 | fi | |
11278 | ||
11279 | if test x"$no_gtk" = x ; then | |
11280 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
11281 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
11282 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
11283 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
11284 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
11285 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
11286 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
11287 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
11288 | if test "x$enable_gtktest" = "xyes" ; then | |
11289 | ac_save_CFLAGS="$CFLAGS" | |
11290 | ac_save_LIBS="$LIBS" | |
11291 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
11292 | LIBS="$GTK_LIBS $LIBS" | |
11293 | rm -f conf.gtktest | |
11294 | if test "$cross_compiling" = yes; then | |
11295 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
ab9b9eab | 11296 | else |
698dcdb6 | 11297 | cat > conftest.$ac_ext <<EOF |
5a5d3c08 | 11298 | #line 11299 "configure" |
ab9b9eab | 11299 | #include "confdefs.h" |
698dcdb6 | 11300 | |
90dd450c VZ |
11301 | #include <gtk/gtk.h> |
11302 | #include <stdio.h> | |
11303 | #include <stdlib.h> | |
ab9b9eab | 11304 | |
90dd450c VZ |
11305 | int |
11306 | main () | |
11307 | { | |
11308 | int major, minor, micro; | |
11309 | char *tmp_version; | |
ab9b9eab | 11310 | |
90dd450c | 11311 | system ("touch conf.gtktest"); |
698dcdb6 | 11312 | |
90dd450c VZ |
11313 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
11314 | tmp_version = g_strdup("$min_gtk_version"); | |
11315 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
11316 | printf("%s, bad version string\n", "$min_gtk_version"); | |
11317 | exit(1); | |
11318 | } | |
ab9b9eab | 11319 | |
90dd450c VZ |
11320 | if ((gtk_major_version != $gtk_config_major_version) || |
11321 | (gtk_minor_version != $gtk_config_minor_version) || | |
11322 | (gtk_micro_version != $gtk_config_micro_version)) | |
11323 | { | |
11324 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
11325 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
11326 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
11327 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
11328 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
11329 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
11330 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
11331 | printf("*** required on your system.\n"); | |
11332 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
11333 | printf("*** to point to the correct configuration files\n"); | |
11334 | } | |
11335 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
11336 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
11337 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
11338 | { | |
11339 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
11340 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
11341 | printf("*** library (version %d.%d.%d)\n", | |
11342 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
11343 | } | |
11344 | else | |
11345 | { | |
11346 | if ((gtk_major_version > major) || | |
11347 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
11348 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
11349 | { | |
11350 | return 0; | |
11351 | } | |
11352 | else | |
11353 | { | |
11354 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
11355 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
11356 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
11357 | major, minor, micro); | |
11358 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
11359 | printf("***\n"); | |
11360 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
11361 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
11362 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
11363 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
11364 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
11365 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
11366 | printf("*** so that the correct libraries are found at run-time))\n"); | |
11367 | } | |
11368 | } | |
11369 | return 1; | |
11370 | } | |
698dcdb6 | 11371 | |
698dcdb6 | 11372 | EOF |
5a5d3c08 | 11373 | if { (eval echo configure:11374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
90dd450c VZ |
11374 | then |
11375 | : | |
698dcdb6 VZ |
11376 | else |
11377 | echo "configure: failed program was:" >&5 | |
11378 | cat conftest.$ac_ext >&5 | |
90dd450c VZ |
11379 | rm -fr conftest* |
11380 | no_gtk=yes | |
698dcdb6 | 11381 | fi |
90dd450c | 11382 | rm -fr conftest* |
ab9b9eab VZ |
11383 | fi |
11384 | ||
90dd450c VZ |
11385 | CFLAGS="$ac_save_CFLAGS" |
11386 | LIBS="$ac_save_LIBS" | |
11387 | fi | |
11388 | fi | |
11389 | if test "x$no_gtk" = x ; then | |
11390 | echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6 | |
11391 | wx_cv_lib_gtk=2.0 | |
11392 | else | |
11393 | echo "$ac_t""no" 1>&6 | |
11394 | if test "$PKG_CONFIG" = "no" ; then | |
11395 | echo "*** A new enough version of pkg-config was not found." | |
11396 | echo "*** See http://pkgconfig.sourceforge.net" | |
11397 | else | |
11398 | if test -f conf.gtktest ; then | |
11399 | : | |
11400 | else | |
11401 | echo "*** Could not run GTK+ test program, checking why..." | |
11402 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
11403 | LIBS="$LIBS $GTK_LIBS" | |
11404 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 11405 | #line 11406 "configure" |
ab9b9eab | 11406 | #include "confdefs.h" |
ab9b9eab | 11407 | |
90dd450c VZ |
11408 | #include <gtk/gtk.h> |
11409 | #include <stdio.h> | |
ab9b9eab | 11410 | |
90dd450c VZ |
11411 | int main() { |
11412 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
698dcdb6 VZ |
11413 | ; return 0; } |
11414 | EOF | |
5a5d3c08 | 11415 | if { (eval echo configure:11416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 11416 | rm -rf conftest* |
90dd450c VZ |
11417 | echo "*** The test program compiled, but did not run. This usually means" |
11418 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
11419 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
11420 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
11421 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
11422 | echo "*** is required on your system" | |
11423 | echo "***" | |
11424 | echo "*** If you have an old version installed, it is best to remove it, although" | |
11425 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
698dcdb6 VZ |
11426 | else |
11427 | echo "configure: failed program was:" >&5 | |
11428 | cat conftest.$ac_ext >&5 | |
11429 | rm -rf conftest* | |
90dd450c VZ |
11430 | echo "*** The test program failed to compile or link. See the file config.log for the" |
11431 | echo "*** exact error that occured. This usually means GTK+ was incorrectly installed" | |
11432 | echo "*** or that you have moved GTK+ since it was installed. In the latter case, you" | |
11433 | echo "*** may want to edit the pkg-config script: $PKG_CONFIG" | |
698dcdb6 VZ |
11434 | fi |
11435 | rm -f conftest* | |
90dd450c VZ |
11436 | CFLAGS="$ac_save_CFLAGS" |
11437 | LIBS="$ac_save_LIBS" | |
11438 | fi | |
11439 | fi | |
11440 | GTK_CFLAGS="" | |
11441 | GTK_LIBS="" | |
11442 | : | |
11443 | fi | |
11444 | ||
11445 | ||
11446 | rm -f conf.gtktest | |
698dcdb6 | 11447 | |
90dd450c | 11448 | fi |
ab9b9eab | 11449 | |
90dd450c VZ |
11450 | if test -z "$wx_cv_lib_gtk"; then |
11451 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
11452 | if test "${with_gtk_prefix+set}" = set; then | |
11453 | withval="$with_gtk_prefix" | |
11454 | gtk_config_prefix="$withval" | |
ab9b9eab | 11455 | else |
90dd450c VZ |
11456 | gtk_config_prefix="" |
11457 | fi | |
698dcdb6 | 11458 | |
90dd450c VZ |
11459 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
11460 | if test "${with_gtk_exec_prefix+set}" = set; then | |
11461 | withval="$with_gtk_exec_prefix" | |
11462 | gtk_config_exec_prefix="$withval" | |
698dcdb6 | 11463 | else |
90dd450c | 11464 | gtk_config_exec_prefix="" |
698dcdb6 | 11465 | fi |
698dcdb6 | 11466 | |
90dd450c VZ |
11467 | # Check whether --enable-gtktest or --disable-gtktest was given. |
11468 | if test "${enable_gtktest+set}" = set; then | |
11469 | enableval="$enable_gtktest" | |
11470 | : | |
698dcdb6 | 11471 | else |
90dd450c | 11472 | enable_gtktest=yes |
ab9b9eab VZ |
11473 | fi |
11474 | ||
ab9b9eab | 11475 | |
90dd450c VZ |
11476 | for module in . $GTK_MODULES |
11477 | do | |
11478 | case "$module" in | |
11479 | gthread) | |
11480 | gtk_config_args="$gtk_config_args gthread" | |
11481 | ;; | |
11482 | esac | |
11483 | done | |
11484 | ||
11485 | if test x$gtk_config_exec_prefix != x ; then | |
11486 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
11487 | if test x${GTK_CONFIG+set} != xset ; then | |
11488 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
11489 | fi | |
11490 | fi | |
11491 | if test x$gtk_config_prefix != x ; then | |
11492 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
11493 | if test x${GTK_CONFIG+set} != xset ; then | |
11494 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
11495 | fi | |
11496 | fi | |
11497 | ||
11498 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
11499 | set dummy gtk-config; ac_word=$2 | |
11500 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
5a5d3c08 | 11501 | echo "configure:11502: checking for $ac_word" >&5 |
90dd450c VZ |
11502 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
11503 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11504 | else | |
11505 | case "$GTK_CONFIG" in | |
11506 | /*) | |
11507 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
11508 | ;; | |
11509 | ?:/*) | |
11510 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
11511 | ;; | |
11512 | *) | |
11513 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
11514 | ac_dummy="$PATH" | |
11515 | for ac_dir in $ac_dummy; do | |
11516 | test -z "$ac_dir" && ac_dir=. | |
11517 | if test -f $ac_dir/$ac_word; then | |
11518 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
11519 | break | |
11520 | fi | |
11521 | done | |
11522 | IFS="$ac_save_ifs" | |
11523 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
11524 | ;; | |
11525 | esac | |
11526 | fi | |
11527 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" | |
11528 | if test -n "$GTK_CONFIG"; then | |
11529 | echo "$ac_t""$GTK_CONFIG" 1>&6 | |
11530 | else | |
11531 | echo "$ac_t""no" 1>&6 | |
11532 | fi | |
11533 | ||
11534 | min_gtk_version=1.2.7 | |
11535 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 | |
5a5d3c08 | 11536 | echo "configure:11537: checking for GTK - version >= $min_gtk_version" >&5 |
90dd450c VZ |
11537 | no_gtk="" |
11538 | if test "$GTK_CONFIG" = "no" ; then | |
11539 | no_gtk=yes | |
11540 | else | |
11541 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
11542 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
11543 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
11544 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
11545 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
11546 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
11547 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
11548 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
11549 | if test "x$enable_gtktest" = "xyes" ; then | |
11550 | ac_save_CFLAGS="$CFLAGS" | |
11551 | ac_save_LIBS="$LIBS" | |
11552 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
11553 | LIBS="$GTK_LIBS $LIBS" | |
11554 | rm -f conf.gtktest | |
11555 | if test "$cross_compiling" = yes; then | |
11556 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
11557 | else | |
11558 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 11559 | #line 11560 "configure" |
90dd450c VZ |
11560 | #include "confdefs.h" |
11561 | ||
11562 | #include <gtk/gtk.h> | |
11563 | #include <stdio.h> | |
11564 | #include <stdlib.h> | |
11565 | ||
11566 | int | |
11567 | main () | |
11568 | { | |
11569 | int major, minor, micro; | |
11570 | char *tmp_version; | |
11571 | ||
11572 | system ("touch conf.gtktest"); | |
11573 | ||
11574 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
11575 | tmp_version = g_strdup("$min_gtk_version"); | |
11576 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
11577 | printf("%s, bad version string\n", "$min_gtk_version"); | |
11578 | exit(1); | |
11579 | } | |
11580 | ||
11581 | if ((gtk_major_version != $gtk_config_major_version) || | |
11582 | (gtk_minor_version != $gtk_config_minor_version) || | |
11583 | (gtk_micro_version != $gtk_config_micro_version)) | |
11584 | { | |
11585 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
11586 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
11587 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
11588 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
11589 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
11590 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
11591 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
11592 | printf("*** required on your system.\n"); | |
11593 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
11594 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
11595 | printf("*** before re-running configure\n"); | |
11596 | } | |
11597 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
11598 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
11599 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
11600 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
11601 | { | |
11602 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
11603 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
11604 | printf("*** library (version %d.%d.%d)\n", | |
11605 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
11606 | } | |
11607 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
11608 | else | |
11609 | { | |
11610 | if ((gtk_major_version > major) || | |
11611 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
11612 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
11613 | { | |
11614 | return 0; | |
11615 | } | |
11616 | else | |
11617 | { | |
11618 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
11619 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
11620 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
11621 | major, minor, micro); | |
11622 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
11623 | printf("***\n"); | |
11624 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
11625 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
11626 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
11627 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
11628 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
11629 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
11630 | printf("*** so that the correct libraries are found at run-time))\n"); | |
11631 | } | |
11632 | } | |
11633 | return 1; | |
11634 | } | |
11635 | ||
11636 | EOF | |
5a5d3c08 | 11637 | if { (eval echo configure:11638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
90dd450c VZ |
11638 | then |
11639 | : | |
11640 | else | |
11641 | echo "configure: failed program was:" >&5 | |
11642 | cat conftest.$ac_ext >&5 | |
11643 | rm -fr conftest* | |
11644 | no_gtk=yes | |
11645 | fi | |
11646 | rm -fr conftest* | |
11647 | fi | |
11648 | ||
11649 | CFLAGS="$ac_save_CFLAGS" | |
11650 | LIBS="$ac_save_LIBS" | |
11651 | fi | |
11652 | fi | |
11653 | if test "x$no_gtk" = x ; then | |
11654 | echo "$ac_t""yes" 1>&6 | |
11655 | wx_cv_lib_gtk=1.2.7 | |
11656 | else | |
11657 | echo "$ac_t""no" 1>&6 | |
11658 | if test "$GTK_CONFIG" = "no" ; then | |
11659 | echo "*** The gtk-config script installed by GTK could not be found" | |
11660 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
11661 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
11662 | echo "*** full path to gtk-config." | |
11663 | else | |
11664 | if test -f conf.gtktest ; then | |
11665 | : | |
11666 | else | |
11667 | echo "*** Could not run GTK test program, checking why..." | |
11668 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
11669 | LIBS="$LIBS $GTK_LIBS" | |
11670 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 11671 | #line 11672 "configure" |
90dd450c VZ |
11672 | #include "confdefs.h" |
11673 | ||
11674 | #include <gtk/gtk.h> | |
11675 | #include <stdio.h> | |
11676 | ||
11677 | int main() { | |
11678 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
11679 | ; return 0; } | |
11680 | EOF | |
5a5d3c08 | 11681 | if { (eval echo configure:11682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
11682 | rm -rf conftest* |
11683 | echo "*** The test program compiled, but did not run. This usually means" | |
11684 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
11685 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
11686 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
11687 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
11688 | echo "*** is required on your system" | |
11689 | echo "***" | |
11690 | echo "*** If you have an old version installed, it is best to remove it, although" | |
11691 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
11692 | echo "***" | |
11693 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
11694 | echo "*** came with the system with the command" | |
11695 | echo "***" | |
11696 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
11697 | else | |
11698 | echo "configure: failed program was:" >&5 | |
11699 | cat conftest.$ac_ext >&5 | |
11700 | rm -rf conftest* | |
11701 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
11702 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
11703 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
11704 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
11705 | fi | |
11706 | rm -f conftest* | |
11707 | CFLAGS="$ac_save_CFLAGS" | |
11708 | LIBS="$ac_save_LIBS" | |
11709 | fi | |
11710 | fi | |
11711 | GTK_CFLAGS="" | |
11712 | GTK_LIBS="" | |
11713 | : | |
11714 | fi | |
11715 | ||
11716 | ||
11717 | rm -f conf.gtktest | |
11718 | ||
11719 | fi | |
11720 | ||
11721 | if test -z "$wx_cv_lib_gtk"; then | |
11722 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
11723 | if test "${with_gtk_prefix+set}" = set; then | |
11724 | withval="$with_gtk_prefix" | |
11725 | gtk_config_prefix="$withval" | |
11726 | else | |
11727 | gtk_config_prefix="" | |
11728 | fi | |
11729 | ||
11730 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
11731 | if test "${with_gtk_exec_prefix+set}" = set; then | |
11732 | withval="$with_gtk_exec_prefix" | |
11733 | gtk_config_exec_prefix="$withval" | |
11734 | else | |
11735 | gtk_config_exec_prefix="" | |
11736 | fi | |
11737 | ||
11738 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
11739 | if test "${enable_gtktest+set}" = set; then | |
11740 | enableval="$enable_gtktest" | |
11741 | : | |
11742 | else | |
11743 | enable_gtktest=yes | |
11744 | fi | |
11745 | ||
11746 | ||
11747 | for module in . $GTK_MODULES | |
11748 | do | |
11749 | case "$module" in | |
11750 | gthread) | |
11751 | gtk_config_args="$gtk_config_args gthread" | |
11752 | ;; | |
11753 | esac | |
11754 | done | |
11755 | ||
11756 | if test x$gtk_config_exec_prefix != x ; then | |
11757 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
11758 | if test x${GTK_CONFIG+set} != xset ; then | |
11759 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
11760 | fi | |
11761 | fi | |
11762 | if test x$gtk_config_prefix != x ; then | |
11763 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
11764 | if test x${GTK_CONFIG+set} != xset ; then | |
11765 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
11766 | fi | |
11767 | fi | |
11768 | ||
11769 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
11770 | set dummy gtk-config; ac_word=$2 | |
11771 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
5a5d3c08 | 11772 | echo "configure:11773: checking for $ac_word" >&5 |
90dd450c VZ |
11773 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
11774 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11775 | else | |
11776 | case "$GTK_CONFIG" in | |
11777 | /*) | |
11778 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
11779 | ;; | |
11780 | ?:/*) | |
11781 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
11782 | ;; | |
11783 | *) | |
11784 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
11785 | ac_dummy="$PATH" | |
11786 | for ac_dir in $ac_dummy; do | |
11787 | test -z "$ac_dir" && ac_dir=. | |
11788 | if test -f $ac_dir/$ac_word; then | |
11789 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
11790 | break | |
11791 | fi | |
11792 | done | |
11793 | IFS="$ac_save_ifs" | |
11794 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
11795 | ;; | |
11796 | esac | |
11797 | fi | |
11798 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" | |
11799 | if test -n "$GTK_CONFIG"; then | |
11800 | echo "$ac_t""$GTK_CONFIG" 1>&6 | |
11801 | else | |
11802 | echo "$ac_t""no" 1>&6 | |
11803 | fi | |
11804 | ||
11805 | min_gtk_version=1.2.3 | |
11806 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 | |
5a5d3c08 | 11807 | echo "configure:11808: checking for GTK - version >= $min_gtk_version" >&5 |
90dd450c VZ |
11808 | no_gtk="" |
11809 | if test "$GTK_CONFIG" = "no" ; then | |
11810 | no_gtk=yes | |
11811 | else | |
11812 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
11813 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
11814 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
11815 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
11816 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
11817 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
11818 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
11819 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
11820 | if test "x$enable_gtktest" = "xyes" ; then | |
11821 | ac_save_CFLAGS="$CFLAGS" | |
11822 | ac_save_LIBS="$LIBS" | |
11823 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
11824 | LIBS="$GTK_LIBS $LIBS" | |
11825 | rm -f conf.gtktest | |
11826 | if test "$cross_compiling" = yes; then | |
11827 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
11828 | else | |
11829 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 11830 | #line 11831 "configure" |
90dd450c VZ |
11831 | #include "confdefs.h" |
11832 | ||
11833 | #include <gtk/gtk.h> | |
11834 | #include <stdio.h> | |
11835 | #include <stdlib.h> | |
11836 | ||
11837 | int | |
11838 | main () | |
11839 | { | |
11840 | int major, minor, micro; | |
11841 | char *tmp_version; | |
11842 | ||
11843 | system ("touch conf.gtktest"); | |
11844 | ||
11845 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
11846 | tmp_version = g_strdup("$min_gtk_version"); | |
11847 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
11848 | printf("%s, bad version string\n", "$min_gtk_version"); | |
11849 | exit(1); | |
11850 | } | |
11851 | ||
11852 | if ((gtk_major_version != $gtk_config_major_version) || | |
11853 | (gtk_minor_version != $gtk_config_minor_version) || | |
11854 | (gtk_micro_version != $gtk_config_micro_version)) | |
11855 | { | |
11856 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
11857 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
11858 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
11859 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
11860 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
11861 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
11862 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
11863 | printf("*** required on your system.\n"); | |
11864 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
11865 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
11866 | printf("*** before re-running configure\n"); | |
11867 | } | |
11868 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
11869 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
11870 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
11871 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
11872 | { | |
11873 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
11874 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
11875 | printf("*** library (version %d.%d.%d)\n", | |
11876 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
11877 | } | |
11878 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
11879 | else | |
11880 | { | |
11881 | if ((gtk_major_version > major) || | |
11882 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
11883 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
11884 | { | |
11885 | return 0; | |
11886 | } | |
11887 | else | |
11888 | { | |
11889 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
11890 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
11891 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
11892 | major, minor, micro); | |
11893 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
11894 | printf("***\n"); | |
11895 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
11896 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
11897 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
11898 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
11899 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
11900 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
11901 | printf("*** so that the correct libraries are found at run-time))\n"); | |
11902 | } | |
11903 | } | |
11904 | return 1; | |
11905 | } | |
11906 | ||
11907 | EOF | |
5a5d3c08 | 11908 | if { (eval echo configure:11909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
90dd450c VZ |
11909 | then |
11910 | : | |
11911 | else | |
11912 | echo "configure: failed program was:" >&5 | |
11913 | cat conftest.$ac_ext >&5 | |
11914 | rm -fr conftest* | |
11915 | no_gtk=yes | |
11916 | fi | |
11917 | rm -fr conftest* | |
11918 | fi | |
11919 | ||
11920 | CFLAGS="$ac_save_CFLAGS" | |
11921 | LIBS="$ac_save_LIBS" | |
11922 | fi | |
11923 | fi | |
11924 | if test "x$no_gtk" = x ; then | |
11925 | echo "$ac_t""yes" 1>&6 | |
11926 | wx_cv_lib_gtk=1.2.3 | |
11927 | else | |
11928 | echo "$ac_t""no" 1>&6 | |
11929 | if test "$GTK_CONFIG" = "no" ; then | |
11930 | echo "*** The gtk-config script installed by GTK could not be found" | |
11931 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
11932 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
11933 | echo "*** full path to gtk-config." | |
11934 | else | |
11935 | if test -f conf.gtktest ; then | |
11936 | : | |
11937 | else | |
11938 | echo "*** Could not run GTK test program, checking why..." | |
11939 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
11940 | LIBS="$LIBS $GTK_LIBS" | |
11941 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 11942 | #line 11943 "configure" |
90dd450c VZ |
11943 | #include "confdefs.h" |
11944 | ||
11945 | #include <gtk/gtk.h> | |
11946 | #include <stdio.h> | |
11947 | ||
11948 | int main() { | |
11949 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
11950 | ; return 0; } | |
11951 | EOF | |
5a5d3c08 | 11952 | if { (eval echo configure:11953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
11953 | rm -rf conftest* |
11954 | echo "*** The test program compiled, but did not run. This usually means" | |
11955 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
11956 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
11957 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
11958 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
11959 | echo "*** is required on your system" | |
11960 | echo "***" | |
11961 | echo "*** If you have an old version installed, it is best to remove it, although" | |
11962 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
11963 | echo "***" | |
11964 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
11965 | echo "*** came with the system with the command" | |
11966 | echo "***" | |
11967 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
11968 | else | |
11969 | echo "configure: failed program was:" >&5 | |
11970 | cat conftest.$ac_ext >&5 | |
11971 | rm -rf conftest* | |
11972 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
11973 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
11974 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
11975 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
11976 | fi | |
11977 | rm -f conftest* | |
11978 | CFLAGS="$ac_save_CFLAGS" | |
11979 | LIBS="$ac_save_LIBS" | |
11980 | fi | |
11981 | fi | |
11982 | GTK_CFLAGS="" | |
11983 | GTK_LIBS="" | |
11984 | : | |
11985 | fi | |
11986 | ||
11987 | ||
11988 | rm -f conf.gtktest | |
11989 | ||
11990 | fi | |
11991 | ||
11992 | if test -z "$wx_cv_lib_gtk"; then | |
11993 | wx_cv_lib_gtk=none | |
11994 | else | |
11995 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
11996 | wx_cv_libs_gtk=$GTK_LIBS | |
11997 | fi | |
11998 | ||
11999 | ||
12000 | fi | |
12001 | ||
12002 | ||
12003 | if test "$gtk_version_cached" = 1; then | |
12004 | echo "$ac_t""$wx_cv_lib_gtk" 1>&6 | |
12005 | fi | |
12006 | ||
12007 | case "$wx_cv_lib_gtk" in | |
12008 | 2.0) WXGTK20=1 | |
12009 | ;; | |
12010 | 1.2.7) WXGTK127=1 | |
12011 | WXGTK12=1 | |
12012 | ;; | |
12013 | 1.2.3) WXGTK12=1 | |
12014 | ;; | |
12015 | *) { echo "configure: error: | |
12016 | Please check that gtk-config is in path, the directory | |
12017 | where GTK+ libraries are installed (returned by | |
12018 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
12019 | equivalent variable and GTK+ is version 1.2.3 or above. | |
12020 | " 1>&2; exit 1; } | |
12021 | ;; | |
12022 | esac | |
12023 | ||
12024 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" | |
12025 | GUI_TK_LIBRARY="$wx_cv_libs_gtk" | |
12026 | ||
12027 | AFMINSTALL=afminstall | |
12028 | TOOLKIT=GTK | |
12029 | GUIDIST=GTK_DIST | |
12030 | ||
12031 | echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6 | |
5a5d3c08 | 12032 | echo "configure:12033: checking for gdk_im_open in -lgdk" >&5 |
90dd450c | 12033 | ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
12034 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
12035 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12036 | else | |
12037 | ac_save_LIBS="$LIBS" | |
90dd450c | 12038 | LIBS="-lgdk $LIBS" |
698dcdb6 | 12039 | cat > conftest.$ac_ext <<EOF |
5a5d3c08 | 12040 | #line 12041 "configure" |
ab9b9eab VZ |
12041 | #include "confdefs.h" |
12042 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12043 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 12044 | builtin and then its argument prototype would still apply. */ |
90dd450c | 12045 | char gdk_im_open(); |
698dcdb6 VZ |
12046 | |
12047 | int main() { | |
90dd450c | 12048 | gdk_im_open() |
698dcdb6 VZ |
12049 | ; return 0; } |
12050 | EOF | |
5a5d3c08 | 12051 | if { (eval echo configure:12052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12052 | rm -rf conftest* |
12053 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12054 | else | |
12055 | echo "configure: failed program was:" >&5 | |
12056 | cat conftest.$ac_ext >&5 | |
12057 | rm -rf conftest* | |
12058 | eval "ac_cv_lib_$ac_lib_var=no" | |
12059 | fi | |
12060 | rm -f conftest* | |
12061 | LIBS="$ac_save_LIBS" | |
12062 | ||
12063 | fi | |
12064 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12065 | echo "$ac_t""yes" 1>&6 | |
90dd450c VZ |
12066 | cat >> confdefs.h <<\EOF |
12067 | #define HAVE_XIM 1 | |
12068 | EOF | |
12069 | ||
698dcdb6 VZ |
12070 | else |
12071 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
12072 | fi |
12073 | ||
90dd450c | 12074 | fi |
ab9b9eab | 12075 | |
90dd450c VZ |
12076 | if test "$wxUSE_MGL" = 1; then |
12077 | echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6 | |
5a5d3c08 | 12078 | echo "configure:12079: checking for SciTech MGL library" >&5 |
90dd450c VZ |
12079 | if test "x$MGL_ROOT" = x ; then |
12080 | echo "$ac_t""not found" 1>&6 | |
12081 | { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; } | |
12082 | else | |
12083 | echo "$ac_t""$MGL_ROOT" 1>&6 | |
1e6feb95 | 12084 | fi |
ab9b9eab | 12085 | |
90dd450c VZ |
12086 | case "${host}" in |
12087 | *-*-linux* ) | |
12088 | mgl_os=linux/gcc/glibc | |
12089 | ;; | |
12090 | *-pc-msdosdjgpp ) | |
12091 | mgl_os=dos32/dj2 | |
12092 | ;; | |
12093 | *) | |
12094 | { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; } | |
12095 | esac | |
cd6d6d5b | 12096 | |
90dd450c | 12097 | mgl_lib_type="" |
c79a329d | 12098 | |
90dd450c VZ |
12099 | if test "$wxUSE_DEBUG_FLAG" = yes ; then |
12100 | if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \ | |
12101 | -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then | |
12102 | mgl_lib_type=debug | |
12103 | fi | |
12104 | fi | |
12105 | if test "x$mgl_lib_type" = x ; then | |
12106 | if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \ | |
12107 | -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then | |
12108 | mgl_lib_type=release | |
12109 | else | |
12110 | { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; } | |
d8356fa3 VZ |
12111 | fi |
12112 | fi | |
12113 | ||
90dd450c VZ |
12114 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" |
12115 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
ab9b9eab | 12116 | |
90dd450c VZ |
12117 | AFMINSTALL=afminstall |
12118 | TOOLKIT=MGL | |
12119 | GUIDIST=MGL_DIST | |
12120 | fi | |
ab9b9eab | 12121 | |
90dd450c VZ |
12122 | if test "$wxUSE_MICROWIN" = 1; then |
12123 | echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6 | |
5a5d3c08 | 12124 | echo "configure:12125: checking for MicroWindows" >&5 |
90dd450c VZ |
12125 | if test "x$MICROWINDOWS" = x ; then |
12126 | echo "$ac_t""not found" 1>&6 | |
12127 | { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; } | |
1e6feb95 | 12128 | else |
90dd450c | 12129 | echo "$ac_t""$MICROWINDOWS" 1>&6 |
1e6feb95 VZ |
12130 | fi |
12131 | ||
90dd450c VZ |
12132 | if test -f $MICROWINDOWS/lib/libmwin.a; then |
12133 | echo "$ac_t""MicroWindows' libraries found." 1>&6 | |
d8356fa3 | 12134 | else |
90dd450c | 12135 | { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; } |
d8356fa3 VZ |
12136 | fi |
12137 | ||
90dd450c VZ |
12138 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" |
12139 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
12140 | ||
12141 | AFMINSTALL=afminstall | |
12142 | TOOLKIT=MICROWIN | |
12143 | GUIDIST=MICROWIN_DIST | |
12144 | ||
12145 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__ -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
1e6feb95 | 12146 | fi |
10f2d63a | 12147 | |
90dd450c VZ |
12148 | if test "$wxUSE_X11" = 1; then |
12149 | # If we find X, set shell vars x_includes and x_libraries to the | |
12150 | # paths, otherwise set no_x=yes. | |
12151 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
12152 | # --without-x overrides everything else, but does not touch the cache. | |
12153 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
5a5d3c08 | 12154 | echo "configure:12155: checking for X" >&5 |
90dd450c VZ |
12155 | |
12156 | # Check whether --with-x or --without-x was given. | |
12157 | if test "${with_x+set}" = set; then | |
12158 | withval="$with_x" | |
12159 | : | |
12160 | fi | |
12161 | ||
12162 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
12163 | if test "x$with_x" = xno; then | |
12164 | # The user explicitly disabled X. | |
12165 | have_x=disabled | |
12166 | else | |
12167 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
12168 | # Both variables are already set. | |
12169 | have_x=yes | |
12170 | else | |
12171 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then | |
f79bd02d JS |
12172 | echo $ac_n "(cached) $ac_c" 1>&6 |
12173 | else | |
90dd450c VZ |
12174 | # One or both of the vars are not set, and there is no cached value. |
12175 | ac_x_includes=NO ac_x_libraries=NO | |
12176 | rm -fr conftestdir | |
12177 | if mkdir conftestdir; then | |
12178 | cd conftestdir | |
12179 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
12180 | cat > Imakefile <<'EOF' | |
12181 | acfindx: | |
12182 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
12183 | EOF | |
12184 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
12185 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
12186 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
12187 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
12188 | for ac_extension in a so sl; do | |
12189 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
12190 | test -f $ac_im_libdir/libX11.$ac_extension; then | |
12191 | ac_im_usrlibdir=$ac_im_libdir; break | |
12192 | fi | |
12193 | done | |
12194 | # Screen out bogus values from the imake configuration. They are | |
12195 | # bogus both because they are the default anyway, and because | |
12196 | # using them would break gcc on systems where it needs fixed includes. | |
12197 | case "$ac_im_incroot" in | |
12198 | /usr/include) ;; | |
12199 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; | |
12200 | esac | |
12201 | case "$ac_im_usrlibdir" in | |
12202 | /usr/lib | /lib) ;; | |
12203 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; | |
12204 | esac | |
12205 | fi | |
12206 | cd .. | |
12207 | rm -fr conftestdir | |
12208 | fi | |
12209 | ||
12210 | if test "$ac_x_includes" = NO; then | |
12211 | # Guess where to find include files, by looking for this one X11 .h file. | |
12212 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
12213 | ||
12214 | # First, try using that file with no special directory specified. | |
12215 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 12216 | #line 12217 "configure" |
f79bd02d | 12217 | #include "confdefs.h" |
90dd450c | 12218 | #include <$x_direct_test_include> |
f79bd02d JS |
12219 | EOF |
12220 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5a5d3c08 | 12221 | { (eval echo configure:12222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
f79bd02d JS |
12222 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12223 | if test -z "$ac_err"; then | |
12224 | rm -rf conftest* | |
90dd450c VZ |
12225 | # We can compile using X headers with no special include directory. |
12226 | ac_x_includes= | |
f79bd02d JS |
12227 | else |
12228 | echo "$ac_err" >&5 | |
12229 | echo "configure: failed program was:" >&5 | |
12230 | cat conftest.$ac_ext >&5 | |
12231 | rm -rf conftest* | |
90dd450c VZ |
12232 | # Look for the header file in a standard set of common directories. |
12233 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
12234 | for ac_dir in \ | |
12235 | /usr/X11/include \ | |
12236 | /usr/X11R6/include \ | |
12237 | /usr/X11R5/include \ | |
12238 | /usr/X11R4/include \ | |
12239 | \ | |
12240 | /usr/include/X11 \ | |
12241 | /usr/include/X11R6 \ | |
12242 | /usr/include/X11R5 \ | |
12243 | /usr/include/X11R4 \ | |
12244 | \ | |
12245 | /usr/local/X11/include \ | |
12246 | /usr/local/X11R6/include \ | |
12247 | /usr/local/X11R5/include \ | |
12248 | /usr/local/X11R4/include \ | |
12249 | \ | |
12250 | /usr/local/include/X11 \ | |
12251 | /usr/local/include/X11R6 \ | |
12252 | /usr/local/include/X11R5 \ | |
12253 | /usr/local/include/X11R4 \ | |
12254 | \ | |
12255 | /usr/X386/include \ | |
12256 | /usr/x386/include \ | |
12257 | /usr/XFree86/include/X11 \ | |
12258 | \ | |
12259 | /usr/include \ | |
12260 | /usr/local/include \ | |
12261 | /usr/unsupported/include \ | |
12262 | /usr/athena/include \ | |
12263 | /usr/local/x11r5/include \ | |
12264 | /usr/lpp/Xamples/include \ | |
12265 | \ | |
12266 | /usr/openwin/include \ | |
12267 | /usr/openwin/share/include \ | |
12268 | ; \ | |
12269 | do | |
12270 | if test -r "$ac_dir/$x_direct_test_include"; then | |
12271 | ac_x_includes=$ac_dir | |
12272 | break | |
12273 | fi | |
12274 | done | |
f79bd02d JS |
12275 | fi |
12276 | rm -f conftest* | |
90dd450c | 12277 | fi # $ac_x_includes = NO |
f79bd02d | 12278 | |
90dd450c VZ |
12279 | if test "$ac_x_libraries" = NO; then |
12280 | # Check for the libraries. | |
f79bd02d | 12281 | |
90dd450c VZ |
12282 | test -z "$x_direct_test_library" && x_direct_test_library=Xt |
12283 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
f79bd02d | 12284 | |
90dd450c VZ |
12285 | # See if we find them without any special options. |
12286 | # Don't add to $LIBS permanently. | |
12287 | ac_save_LIBS="$LIBS" | |
12288 | LIBS="-l$x_direct_test_library $LIBS" | |
12289 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 12290 | #line 12291 "configure" |
90dd450c | 12291 | #include "confdefs.h" |
f79bd02d | 12292 | |
90dd450c VZ |
12293 | int main() { |
12294 | ${x_direct_test_function}() | |
12295 | ; return 0; } | |
f79bd02d | 12296 | EOF |
5a5d3c08 | 12297 | if { (eval echo configure:12298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
12298 | rm -rf conftest* |
12299 | LIBS="$ac_save_LIBS" | |
12300 | # We can link X programs with no special library path. | |
12301 | ac_x_libraries= | |
12302 | else | |
12303 | echo "configure: failed program was:" >&5 | |
12304 | cat conftest.$ac_ext >&5 | |
12305 | rm -rf conftest* | |
12306 | LIBS="$ac_save_LIBS" | |
12307 | # First see if replacing the include by lib works. | |
12308 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
12309 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
12310 | /usr/X11/lib \ | |
12311 | /usr/X11R6/lib \ | |
12312 | /usr/X11R5/lib \ | |
12313 | /usr/X11R4/lib \ | |
12314 | \ | |
12315 | /usr/lib/X11 \ | |
12316 | /usr/lib/X11R6 \ | |
12317 | /usr/lib/X11R5 \ | |
12318 | /usr/lib/X11R4 \ | |
12319 | \ | |
12320 | /usr/local/X11/lib \ | |
12321 | /usr/local/X11R6/lib \ | |
12322 | /usr/local/X11R5/lib \ | |
12323 | /usr/local/X11R4/lib \ | |
12324 | \ | |
12325 | /usr/local/lib/X11 \ | |
12326 | /usr/local/lib/X11R6 \ | |
12327 | /usr/local/lib/X11R5 \ | |
12328 | /usr/local/lib/X11R4 \ | |
12329 | \ | |
12330 | /usr/X386/lib \ | |
12331 | /usr/x386/lib \ | |
12332 | /usr/XFree86/lib/X11 \ | |
12333 | \ | |
12334 | /usr/lib \ | |
12335 | /usr/local/lib \ | |
12336 | /usr/unsupported/lib \ | |
12337 | /usr/athena/lib \ | |
12338 | /usr/local/x11r5/lib \ | |
12339 | /usr/lpp/Xamples/lib \ | |
12340 | /lib/usr/lib/X11 \ | |
12341 | \ | |
12342 | /usr/openwin/lib \ | |
12343 | /usr/openwin/share/lib \ | |
12344 | ; \ | |
12345 | do | |
12346 | for ac_extension in a so sl; do | |
12347 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then | |
12348 | ac_x_libraries=$ac_dir | |
12349 | break 2 | |
12350 | fi | |
f79bd02d | 12351 | done |
90dd450c VZ |
12352 | done |
12353 | fi | |
12354 | rm -f conftest* | |
12355 | fi # $ac_x_libraries = NO | |
f79bd02d | 12356 | |
90dd450c VZ |
12357 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
12358 | # Didn't find X anywhere. Cache the known absence of X. | |
12359 | ac_cv_have_x="have_x=no" | |
12360 | else | |
12361 | # Record where we found X for the cache. | |
12362 | ac_cv_have_x="have_x=yes \ | |
12363 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
12364 | fi | |
12365 | fi | |
12366 | fi | |
12367 | eval "$ac_cv_have_x" | |
12368 | fi # $with_x != no | |
f79bd02d | 12369 | |
90dd450c VZ |
12370 | if test "$have_x" != yes; then |
12371 | echo "$ac_t""$have_x" 1>&6 | |
12372 | no_x=yes | |
12373 | else | |
12374 | # If each of the values was on the command line, it overrides each guess. | |
12375 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
12376 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
12377 | # Update the cache value to reflect the command line values. | |
12378 | ac_cv_have_x="have_x=yes \ | |
12379 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
12380 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 | |
12381 | fi | |
f79bd02d | 12382 | |
90dd450c | 12383 | if test "$no_x" = yes; then |
f79bd02d JS |
12384 | # Not all programs may use this symbol, but it does not hurt to define it. |
12385 | cat >> confdefs.h <<\EOF | |
12386 | #define X_DISPLAY_MISSING 1 | |
12387 | EOF | |
12388 | ||
12389 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
12390 | else | |
12391 | if test -n "$x_includes"; then | |
12392 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
12393 | fi | |
12394 | ||
12395 | # It would also be nice to do this for all -L options, not just this one. | |
12396 | if test -n "$x_libraries"; then | |
12397 | X_LIBS="$X_LIBS -L$x_libraries" | |
12398 | # For Solaris; some versions of Sun CC require a space after -R and | |
12399 | # others require no space. Words are not sufficient . . . . | |
12400 | case "`(uname -sr) 2>/dev/null`" in | |
12401 | "SunOS 5"*) | |
12402 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 | |
5a5d3c08 | 12403 | echo "configure:12404: checking whether -R must be followed by a space" >&5 |
f79bd02d JS |
12404 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
12405 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 12406 | #line 12407 "configure" |
f79bd02d JS |
12407 | #include "confdefs.h" |
12408 | ||
12409 | int main() { | |
12410 | ||
12411 | ; return 0; } | |
12412 | EOF | |
5a5d3c08 | 12413 | if { (eval echo configure:12414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12414 | rm -rf conftest* |
12415 | ac_R_nospace=yes | |
12416 | else | |
12417 | echo "configure: failed program was:" >&5 | |
12418 | cat conftest.$ac_ext >&5 | |
12419 | rm -rf conftest* | |
12420 | ac_R_nospace=no | |
12421 | fi | |
12422 | rm -f conftest* | |
12423 | if test $ac_R_nospace = yes; then | |
12424 | echo "$ac_t""no" 1>&6 | |
12425 | X_LIBS="$X_LIBS -R$x_libraries" | |
12426 | else | |
12427 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
12428 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 12429 | #line 12430 "configure" |
f79bd02d JS |
12430 | #include "confdefs.h" |
12431 | ||
12432 | int main() { | |
12433 | ||
12434 | ; return 0; } | |
12435 | EOF | |
5a5d3c08 | 12436 | if { (eval echo configure:12437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12437 | rm -rf conftest* |
12438 | ac_R_space=yes | |
12439 | else | |
12440 | echo "configure: failed program was:" >&5 | |
12441 | cat conftest.$ac_ext >&5 | |
12442 | rm -rf conftest* | |
12443 | ac_R_space=no | |
12444 | fi | |
12445 | rm -f conftest* | |
12446 | if test $ac_R_space = yes; then | |
12447 | echo "$ac_t""yes" 1>&6 | |
12448 | X_LIBS="$X_LIBS -R $x_libraries" | |
12449 | else | |
12450 | echo "$ac_t""neither works" 1>&6 | |
12451 | fi | |
12452 | fi | |
12453 | LIBS="$ac_xsave_LIBS" | |
12454 | esac | |
12455 | fi | |
12456 | ||
12457 | # Check for system-dependent libraries X programs must link with. | |
12458 | # Do this before checking for the system-independent R6 libraries | |
12459 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
12460 | ||
12461 | if test "$ISC" = yes; then | |
12462 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
12463 | else | |
12464 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X | |
12465 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
12466 | # the Alpha needs dnet_stub (dnet does not exist). | |
12467 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 | |
5a5d3c08 | 12468 | echo "configure:12469: checking for dnet_ntoa in -ldnet" >&5 |
f79bd02d JS |
12469 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
12470 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12471 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12472 | else | |
12473 | ac_save_LIBS="$LIBS" | |
12474 | LIBS="-ldnet $LIBS" | |
12475 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 12476 | #line 12477 "configure" |
f79bd02d JS |
12477 | #include "confdefs.h" |
12478 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12479 | /* We use char because int might match the return type of a gcc2 | |
12480 | builtin and then its argument prototype would still apply. */ | |
12481 | char dnet_ntoa(); | |
12482 | ||
12483 | int main() { | |
12484 | dnet_ntoa() | |
12485 | ; return 0; } | |
12486 | EOF | |
5a5d3c08 | 12487 | if { (eval echo configure:12488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12488 | rm -rf conftest* |
12489 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12490 | else | |
12491 | echo "configure: failed program was:" >&5 | |
12492 | cat conftest.$ac_ext >&5 | |
12493 | rm -rf conftest* | |
12494 | eval "ac_cv_lib_$ac_lib_var=no" | |
12495 | fi | |
12496 | rm -f conftest* | |
12497 | LIBS="$ac_save_LIBS" | |
12498 | ||
12499 | fi | |
12500 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12501 | echo "$ac_t""yes" 1>&6 | |
12502 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
12503 | else | |
12504 | echo "$ac_t""no" 1>&6 | |
12505 | fi | |
12506 | ||
12507 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
12508 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 | |
5a5d3c08 | 12509 | echo "configure:12510: checking for dnet_ntoa in -ldnet_stub" >&5 |
f79bd02d JS |
12510 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
12511 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12512 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12513 | else | |
12514 | ac_save_LIBS="$LIBS" | |
12515 | LIBS="-ldnet_stub $LIBS" | |
12516 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 12517 | #line 12518 "configure" |
f79bd02d JS |
12518 | #include "confdefs.h" |
12519 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12520 | /* We use char because int might match the return type of a gcc2 | |
12521 | builtin and then its argument prototype would still apply. */ | |
12522 | char dnet_ntoa(); | |
12523 | ||
12524 | int main() { | |
12525 | dnet_ntoa() | |
12526 | ; return 0; } | |
12527 | EOF | |
5a5d3c08 | 12528 | if { (eval echo configure:12529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12529 | rm -rf conftest* |
12530 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12531 | else | |
12532 | echo "configure: failed program was:" >&5 | |
12533 | cat conftest.$ac_ext >&5 | |
12534 | rm -rf conftest* | |
12535 | eval "ac_cv_lib_$ac_lib_var=no" | |
12536 | fi | |
12537 | rm -f conftest* | |
12538 | LIBS="$ac_save_LIBS" | |
12539 | ||
12540 | fi | |
12541 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12542 | echo "$ac_t""yes" 1>&6 | |
12543 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
12544 | else | |
12545 | echo "$ac_t""no" 1>&6 | |
12546 | fi | |
12547 | ||
12548 | fi | |
12549 | ||
12550 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
12551 | # to get the SysV transport functions. | |
12552 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) | |
12553 | # needs -lnsl. | |
12554 | # The nsl library prevents programs from opening the X display | |
12555 | # on Irix 5.2, according to dickey@clark.net. | |
12556 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
5a5d3c08 | 12557 | echo "configure:12558: checking for gethostbyname" >&5 |
f79bd02d JS |
12558 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
12559 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12560 | else | |
12561 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 12562 | #line 12563 "configure" |
f79bd02d JS |
12563 | #include "confdefs.h" |
12564 | /* System header to define __stub macros and hopefully few prototypes, | |
12565 | which can conflict with char gethostbyname(); below. */ | |
12566 | #include <assert.h> | |
12567 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12568 | /* We use char because int might match the return type of a gcc2 | |
12569 | builtin and then its argument prototype would still apply. */ | |
12570 | char gethostbyname(); | |
12571 | ||
12572 | int main() { | |
12573 | ||
12574 | /* The GNU C library defines this for functions which it implements | |
12575 | to always fail with ENOSYS. Some functions are actually named | |
12576 | something starting with __ and the normal name is an alias. */ | |
12577 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
12578 | choke me | |
12579 | #else | |
12580 | gethostbyname(); | |
12581 | #endif | |
12582 | ||
12583 | ; return 0; } | |
12584 | EOF | |
5a5d3c08 | 12585 | if { (eval echo configure:12586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12586 | rm -rf conftest* |
12587 | eval "ac_cv_func_gethostbyname=yes" | |
12588 | else | |
12589 | echo "configure: failed program was:" >&5 | |
12590 | cat conftest.$ac_ext >&5 | |
12591 | rm -rf conftest* | |
12592 | eval "ac_cv_func_gethostbyname=no" | |
12593 | fi | |
12594 | rm -f conftest* | |
12595 | fi | |
12596 | ||
12597 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
12598 | echo "$ac_t""yes" 1>&6 | |
12599 | : | |
12600 | else | |
12601 | echo "$ac_t""no" 1>&6 | |
12602 | fi | |
12603 | ||
12604 | if test $ac_cv_func_gethostbyname = no; then | |
12605 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 | |
5a5d3c08 | 12606 | echo "configure:12607: checking for gethostbyname in -lnsl" >&5 |
f79bd02d JS |
12607 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
12608 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12609 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12610 | else | |
12611 | ac_save_LIBS="$LIBS" | |
12612 | LIBS="-lnsl $LIBS" | |
12613 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 12614 | #line 12615 "configure" |
f79bd02d JS |
12615 | #include "confdefs.h" |
12616 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12617 | /* We use char because int might match the return type of a gcc2 | |
12618 | builtin and then its argument prototype would still apply. */ | |
12619 | char gethostbyname(); | |
12620 | ||
12621 | int main() { | |
12622 | gethostbyname() | |
12623 | ; return 0; } | |
12624 | EOF | |
5a5d3c08 | 12625 | if { (eval echo configure:12626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12626 | rm -rf conftest* |
12627 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12628 | else | |
12629 | echo "configure: failed program was:" >&5 | |
12630 | cat conftest.$ac_ext >&5 | |
12631 | rm -rf conftest* | |
12632 | eval "ac_cv_lib_$ac_lib_var=no" | |
12633 | fi | |
12634 | rm -f conftest* | |
12635 | LIBS="$ac_save_LIBS" | |
12636 | ||
12637 | fi | |
12638 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12639 | echo "$ac_t""yes" 1>&6 | |
12640 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
12641 | else | |
12642 | echo "$ac_t""no" 1>&6 | |
12643 | fi | |
12644 | ||
12645 | fi | |
12646 | ||
12647 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
12648 | # socket/setsockopt and other routines are undefined under SCO ODT | |
12649 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
12650 | # on later versions), says simon@lia.di.epfl.ch: it contains | |
12651 | # gethostby* variants that don't use the nameserver (or something). | |
12652 | # -lsocket must be given before -lnsl if both are needed. | |
12653 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
12654 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
5a5d3c08 | 12655 | echo "configure:12656: checking for connect" >&5 |
f79bd02d JS |
12656 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
12657 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12658 | else | |
12659 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 12660 | #line 12661 "configure" |
f79bd02d JS |
12661 | #include "confdefs.h" |
12662 | /* System header to define __stub macros and hopefully few prototypes, | |
12663 | which can conflict with char connect(); below. */ | |
12664 | #include <assert.h> | |
12665 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12666 | /* We use char because int might match the return type of a gcc2 | |
12667 | builtin and then its argument prototype would still apply. */ | |
12668 | char connect(); | |
12669 | ||
12670 | int main() { | |
12671 | ||
12672 | /* The GNU C library defines this for functions which it implements | |
12673 | to always fail with ENOSYS. Some functions are actually named | |
12674 | something starting with __ and the normal name is an alias. */ | |
12675 | #if defined (__stub_connect) || defined (__stub___connect) | |
12676 | choke me | |
12677 | #else | |
12678 | connect(); | |
12679 | #endif | |
12680 | ||
12681 | ; return 0; } | |
12682 | EOF | |
5a5d3c08 | 12683 | if { (eval echo configure:12684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12684 | rm -rf conftest* |
12685 | eval "ac_cv_func_connect=yes" | |
12686 | else | |
12687 | echo "configure: failed program was:" >&5 | |
12688 | cat conftest.$ac_ext >&5 | |
12689 | rm -rf conftest* | |
12690 | eval "ac_cv_func_connect=no" | |
12691 | fi | |
12692 | rm -f conftest* | |
12693 | fi | |
12694 | ||
12695 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
12696 | echo "$ac_t""yes" 1>&6 | |
12697 | : | |
12698 | else | |
12699 | echo "$ac_t""no" 1>&6 | |
12700 | fi | |
12701 | ||
12702 | if test $ac_cv_func_connect = no; then | |
12703 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 | |
5a5d3c08 | 12704 | echo "configure:12705: checking for connect in -lsocket" >&5 |
f79bd02d JS |
12705 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
12706 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12707 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12708 | else | |
12709 | ac_save_LIBS="$LIBS" | |
12710 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
12711 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 12712 | #line 12713 "configure" |
f79bd02d JS |
12713 | #include "confdefs.h" |
12714 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12715 | /* We use char because int might match the return type of a gcc2 | |
12716 | builtin and then its argument prototype would still apply. */ | |
12717 | char connect(); | |
12718 | ||
12719 | int main() { | |
12720 | connect() | |
12721 | ; return 0; } | |
12722 | EOF | |
5a5d3c08 | 12723 | if { (eval echo configure:12724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12724 | rm -rf conftest* |
12725 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12726 | else | |
12727 | echo "configure: failed program was:" >&5 | |
12728 | cat conftest.$ac_ext >&5 | |
12729 | rm -rf conftest* | |
12730 | eval "ac_cv_lib_$ac_lib_var=no" | |
12731 | fi | |
12732 | rm -f conftest* | |
12733 | LIBS="$ac_save_LIBS" | |
12734 | ||
12735 | fi | |
12736 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12737 | echo "$ac_t""yes" 1>&6 | |
12738 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
12739 | else | |
12740 | echo "$ac_t""no" 1>&6 | |
12741 | fi | |
12742 | ||
12743 | fi | |
12744 | ||
12745 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. | |
12746 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
5a5d3c08 | 12747 | echo "configure:12748: checking for remove" >&5 |
f79bd02d JS |
12748 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
12749 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12750 | else | |
12751 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 12752 | #line 12753 "configure" |
f79bd02d JS |
12753 | #include "confdefs.h" |
12754 | /* System header to define __stub macros and hopefully few prototypes, | |
12755 | which can conflict with char remove(); below. */ | |
12756 | #include <assert.h> | |
12757 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12758 | /* We use char because int might match the return type of a gcc2 | |
12759 | builtin and then its argument prototype would still apply. */ | |
12760 | char remove(); | |
12761 | ||
12762 | int main() { | |
12763 | ||
12764 | /* The GNU C library defines this for functions which it implements | |
12765 | to always fail with ENOSYS. Some functions are actually named | |
12766 | something starting with __ and the normal name is an alias. */ | |
12767 | #if defined (__stub_remove) || defined (__stub___remove) | |
12768 | choke me | |
12769 | #else | |
12770 | remove(); | |
12771 | #endif | |
12772 | ||
12773 | ; return 0; } | |
12774 | EOF | |
5a5d3c08 | 12775 | if { (eval echo configure:12776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12776 | rm -rf conftest* |
12777 | eval "ac_cv_func_remove=yes" | |
12778 | else | |
12779 | echo "configure: failed program was:" >&5 | |
12780 | cat conftest.$ac_ext >&5 | |
12781 | rm -rf conftest* | |
12782 | eval "ac_cv_func_remove=no" | |
12783 | fi | |
12784 | rm -f conftest* | |
12785 | fi | |
12786 | ||
12787 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
12788 | echo "$ac_t""yes" 1>&6 | |
12789 | : | |
12790 | else | |
12791 | echo "$ac_t""no" 1>&6 | |
12792 | fi | |
12793 | ||
12794 | if test $ac_cv_func_remove = no; then | |
12795 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 | |
5a5d3c08 | 12796 | echo "configure:12797: checking for remove in -lposix" >&5 |
f79bd02d JS |
12797 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
12798 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12799 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12800 | else | |
12801 | ac_save_LIBS="$LIBS" | |
12802 | LIBS="-lposix $LIBS" | |
12803 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 12804 | #line 12805 "configure" |
f79bd02d JS |
12805 | #include "confdefs.h" |
12806 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12807 | /* We use char because int might match the return type of a gcc2 | |
12808 | builtin and then its argument prototype would still apply. */ | |
12809 | char remove(); | |
12810 | ||
12811 | int main() { | |
12812 | remove() | |
12813 | ; return 0; } | |
12814 | EOF | |
5a5d3c08 | 12815 | if { (eval echo configure:12816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12816 | rm -rf conftest* |
12817 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12818 | else | |
12819 | echo "configure: failed program was:" >&5 | |
12820 | cat conftest.$ac_ext >&5 | |
12821 | rm -rf conftest* | |
12822 | eval "ac_cv_lib_$ac_lib_var=no" | |
12823 | fi | |
12824 | rm -f conftest* | |
12825 | LIBS="$ac_save_LIBS" | |
12826 | ||
12827 | fi | |
12828 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12829 | echo "$ac_t""yes" 1>&6 | |
12830 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
12831 | else | |
12832 | echo "$ac_t""no" 1>&6 | |
12833 | fi | |
12834 | ||
12835 | fi | |
12836 | ||
12837 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
12838 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 | |
5a5d3c08 | 12839 | echo "configure:12840: checking for shmat" >&5 |
f79bd02d JS |
12840 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
12841 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12842 | else | |
90dd450c | 12843 | cat > conftest.$ac_ext <<EOF |
5a5d3c08 | 12844 | #line 12845 "configure" |
f79bd02d | 12845 | #include "confdefs.h" |
90dd450c VZ |
12846 | /* System header to define __stub macros and hopefully few prototypes, |
12847 | which can conflict with char shmat(); below. */ | |
12848 | #include <assert.h> | |
12849 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12850 | /* We use char because int might match the return type of a gcc2 | |
12851 | builtin and then its argument prototype would still apply. */ | |
12852 | char shmat(); | |
f79bd02d | 12853 | |
f79bd02d JS |
12854 | int main() { |
12855 | ||
90dd450c VZ |
12856 | /* The GNU C library defines this for functions which it implements |
12857 | to always fail with ENOSYS. Some functions are actually named | |
12858 | something starting with __ and the normal name is an alias. */ | |
12859 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
12860 | choke me | |
12861 | #else | |
12862 | shmat(); | |
12863 | #endif | |
12864 | ||
f79bd02d JS |
12865 | ; return 0; } |
12866 | EOF | |
5a5d3c08 | 12867 | if { (eval echo configure:12868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d | 12868 | rm -rf conftest* |
90dd450c | 12869 | eval "ac_cv_func_shmat=yes" |
f79bd02d JS |
12870 | else |
12871 | echo "configure: failed program was:" >&5 | |
12872 | cat conftest.$ac_ext >&5 | |
12873 | rm -rf conftest* | |
90dd450c | 12874 | eval "ac_cv_func_shmat=no" |
f79bd02d JS |
12875 | fi |
12876 | rm -f conftest* | |
90dd450c | 12877 | fi |
f79bd02d | 12878 | |
90dd450c VZ |
12879 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then |
12880 | echo "$ac_t""yes" 1>&6 | |
12881 | : | |
12882 | else | |
12883 | echo "$ac_t""no" 1>&6 | |
12884 | fi | |
f79bd02d | 12885 | |
90dd450c VZ |
12886 | if test $ac_cv_func_shmat = no; then |
12887 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 | |
5a5d3c08 | 12888 | echo "configure:12889: checking for shmat in -lipc" >&5 |
90dd450c VZ |
12889 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
12890 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12891 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12892 | else | |
12893 | ac_save_LIBS="$LIBS" | |
12894 | LIBS="-lipc $LIBS" | |
12895 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 12896 | #line 12897 "configure" |
f79bd02d | 12897 | #include "confdefs.h" |
90dd450c VZ |
12898 | /* Override any gcc2 internal prototype to avoid an error. */ |
12899 | /* We use char because int might match the return type of a gcc2 | |
12900 | builtin and then its argument prototype would still apply. */ | |
12901 | char shmat(); | |
f79bd02d | 12902 | |
f79bd02d | 12903 | int main() { |
90dd450c | 12904 | shmat() |
f79bd02d JS |
12905 | ; return 0; } |
12906 | EOF | |
5a5d3c08 | 12907 | if { (eval echo configure:12908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d | 12908 | rm -rf conftest* |
90dd450c | 12909 | eval "ac_cv_lib_$ac_lib_var=yes" |
f79bd02d JS |
12910 | else |
12911 | echo "configure: failed program was:" >&5 | |
12912 | cat conftest.$ac_ext >&5 | |
12913 | rm -rf conftest* | |
90dd450c | 12914 | eval "ac_cv_lib_$ac_lib_var=no" |
f79bd02d JS |
12915 | fi |
12916 | rm -f conftest* | |
90dd450c | 12917 | LIBS="$ac_save_LIBS" |
f79bd02d | 12918 | |
90dd450c VZ |
12919 | fi |
12920 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12921 | echo "$ac_t""yes" 1>&6 | |
12922 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
12923 | else | |
12924 | echo "$ac_t""no" 1>&6 | |
12925 | fi | |
b4085ce6 | 12926 | |
1e6feb95 | 12927 | fi |
90dd450c | 12928 | fi |
e07802fc | 12929 | |
90dd450c VZ |
12930 | # Check for libraries that X11R6 Xt/Xaw programs need. |
12931 | ac_save_LDFLAGS="$LDFLAGS" | |
12932 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
12933 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
12934 | # check for ICE first), but we must link in the order -lSM -lICE or | |
12935 | # we get undefined symbols. So assume we have SM if we have ICE. | |
12936 | # These have to be linked with before -lX11, unlike the other | |
12937 | # libraries we check for below, so use a different variable. | |
12938 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. | |
12939 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
5a5d3c08 | 12940 | echo "configure:12941: checking for IceConnectionNumber in -lICE" >&5 |
90dd450c VZ |
12941 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
12942 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12943 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12944 | else | |
12945 | ac_save_LIBS="$LIBS" | |
12946 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
12947 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 12948 | #line 12949 "configure" |
90dd450c VZ |
12949 | #include "confdefs.h" |
12950 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12951 | /* We use char because int might match the return type of a gcc2 | |
12952 | builtin and then its argument prototype would still apply. */ | |
12953 | char IceConnectionNumber(); | |
9b695262 | 12954 | |
90dd450c VZ |
12955 | int main() { |
12956 | IceConnectionNumber() | |
12957 | ; return 0; } | |
12958 | EOF | |
5a5d3c08 | 12959 | if { (eval echo configure:12960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
12960 | rm -rf conftest* |
12961 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12962 | else | |
12963 | echo "configure: failed program was:" >&5 | |
12964 | cat conftest.$ac_ext >&5 | |
12965 | rm -rf conftest* | |
12966 | eval "ac_cv_lib_$ac_lib_var=no" | |
12967 | fi | |
12968 | rm -f conftest* | |
12969 | LIBS="$ac_save_LIBS" | |
9b695262 | 12970 | |
90dd450c VZ |
12971 | fi |
12972 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12973 | echo "$ac_t""yes" 1>&6 | |
12974 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
12975 | else | |
12976 | echo "$ac_t""no" 1>&6 | |
12977 | fi | |
1e6feb95 | 12978 | |
90dd450c | 12979 | LDFLAGS="$ac_save_LDFLAGS" |
1e6feb95 | 12980 | |
90dd450c | 12981 | fi |
1e6feb95 | 12982 | |
3fcdd07b | 12983 | |
90dd450c VZ |
12984 | if test "$no_x" = "yes"; then |
12985 | { echo "configure: error: X11 not found" 1>&2; exit 1; } | |
12986 | fi | |
2224580a | 12987 | |
90dd450c VZ |
12988 | GUI_TK_LIBRARY="$X_LIBS" |
12989 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
12990 | AFMINSTALL=afminstall | |
12991 | COMPILED_X_PROGRAM=0 | |
dad6c0ea | 12992 | |
90dd450c VZ |
12993 | if test "$wxUSE_NANOX" = "yes"; then |
12994 | echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6 | |
5a5d3c08 | 12995 | echo "configure:12996: checking for MicroWindows/NanoX distribution" >&5 |
90dd450c VZ |
12996 | if test "x$MICROWIN" = x ; then |
12997 | echo "$ac_t""not found" 1>&6 | |
12998 | { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; } | |
12999 | else | |
13000 | echo "$ac_t""$MICROWIN" 1>&6 | |
13001 | cat >> confdefs.h <<\EOF | |
13002 | #define wxUSE_NANOX 1 | |
13003 | EOF | |
f6bcfd97 | 13004 | |
90dd450c VZ |
13005 | fi |
13006 | fi | |
0b2effe9 | 13007 | |
90dd450c VZ |
13008 | xpm_link= |
13009 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
5a5d3c08 | 13010 | echo "configure:13011: checking for Xpm library" >&5 |
90dd450c VZ |
13011 | |
13012 | ac_find_libraries= | |
13013 | for ac_dir in $SEARCH_LIB; | |
13014 | do | |
13015 | for ac_extension in a so sl dylib; do | |
13016 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
13017 | ac_find_libraries=$ac_dir | |
13018 | break 2 | |
13019 | fi | |
13020 | done | |
13021 | done | |
f6bcfd97 | 13022 | |
90dd450c VZ |
13023 | if test "$ac_find_libraries" != "" ; then |
13024 | ||
13025 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
13026 | result=$? | |
13027 | if test $result = 0; then | |
13028 | ac_path_to_link="" | |
13029 | else | |
13030 | ac_path_to_link=" -L$ac_find_libraries" | |
13031 | fi | |
d8356fa3 | 13032 | |
90dd450c VZ |
13033 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
13034 | xpm_link=" -lXpm" | |
13035 | cat >> confdefs.h <<\EOF | |
13036 | #define wxHAVE_LIB_XPM 1 | |
13037 | EOF | |
2224580a | 13038 | |
90dd450c VZ |
13039 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
13040 | else | |
13041 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 13042 | #line 13043 "configure" |
90dd450c | 13043 | #include "confdefs.h" |
10f2d63a | 13044 | |
90dd450c VZ |
13045 | #include <X11/xpm.h> |
13046 | ||
13047 | int main() { | |
e45387bf | 13048 | |
90dd450c VZ |
13049 | int version; |
13050 | version = XpmLibraryVersion(); | |
13051 | ||
13052 | ; return 0; } | |
13053 | EOF | |
5a5d3c08 | 13054 | if { (eval echo configure:13055: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
90dd450c VZ |
13055 | rm -rf conftest* |
13056 | ||
13057 | xpm_link=" -lXpm" | |
13058 | cat >> confdefs.h <<\EOF | |
13059 | #define wxHAVE_LIB_XPM 1 | |
13060 | EOF | |
e45387bf | 13061 | |
90dd450c VZ |
13062 | echo "$ac_t""found in default search path" 1>&6 |
13063 | COMPILED_X_PROGRAM=0 | |
13064 | ||
13065 | else | |
13066 | echo "configure: failed program was:" >&5 | |
13067 | cat conftest.$ac_ext >&5 | |
13068 | rm -rf conftest* | |
13069 | ||
13070 | echo "$ac_t""no" 1>&6 | |
13071 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
13072 | ||
13073 | ||
3a922bb4 | 13074 | fi |
90dd450c VZ |
13075 | rm -f conftest* |
13076 | fi | |
10f2d63a | 13077 | |
90dd450c VZ |
13078 | if test "$wxUSE_NANOX" = "yes"; then |
13079 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
13080 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__NANOX__ -DMWPIXEL_FORMAT=MWPF_TRUECOLOR0888 -DHAVE_FILEIO -DHAVE_BMP_SUPPORT=1 -DHAVE_GIF_SUPPORT=1 -DHAVE_PNM_SUPPORT=1 -DHAVE_XPM_SUPPORT=1 -DLINUX=1 -DUNIX=1 -DUSE_EXPOSURE -DSCREEN_HEIGHT=480 -DSCREEN_WIDTH=640 -DSCREEN_DEPTH=4 -DX11=1" | |
13081 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" | |
13082 | else | |
13083 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link" | |
13084 | fi | |
be505a65 | 13085 | |
90dd450c VZ |
13086 | TOOLKIT_VPATH="\${top_srcdir}/src/x11" |
13087 | TOOLKIT=X11 | |
13088 | GUIDIST=X11_DIST | |
13089 | fi | |
13090 | ||
13091 | if test "$wxUSE_WINE" = 1; then | |
13092 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` | |
13093 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
5a5d3c08 | 13094 | echo "configure:13095: checking for windows.h" >&5 |
3a922bb4 RL |
13095 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13096 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13097 | else | |
13098 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 13099 | #line 13100 "configure" |
3a922bb4 | 13100 | #include "confdefs.h" |
90dd450c | 13101 | #include <windows.h> |
3a922bb4 RL |
13102 | EOF |
13103 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5a5d3c08 | 13104 | { (eval echo configure:13105: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3a922bb4 RL |
13105 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13106 | if test -z "$ac_err"; then | |
13107 | rm -rf conftest* | |
13108 | eval "ac_cv_header_$ac_safe=yes" | |
13109 | else | |
13110 | echo "$ac_err" >&5 | |
13111 | echo "configure: failed program was:" >&5 | |
13112 | cat conftest.$ac_ext >&5 | |
13113 | rm -rf conftest* | |
13114 | eval "ac_cv_header_$ac_safe=no" | |
13115 | fi | |
13116 | rm -f conftest* | |
13117 | fi | |
13118 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
13119 | echo "$ac_t""yes" 1>&6 | |
90dd450c VZ |
13120 | : |
13121 | else | |
13122 | echo "$ac_t""no" 1>&6 | |
13123 | ||
13124 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
13125 | ||
13126 | fi | |
13127 | ||
13128 | ||
13129 | xpm_link= | |
13130 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
5a5d3c08 | 13131 | echo "configure:13132: checking for Xpm library" >&5 |
90dd450c | 13132 | |
62d0491b RL |
13133 | ac_find_libraries= |
13134 | for ac_dir in $SEARCH_LIB; | |
13135 | do | |
13136 | for ac_extension in a so sl dylib; do | |
90dd450c | 13137 | if test -f "$ac_dir/libXpm.$ac_extension"; then |
62d0491b RL |
13138 | ac_find_libraries=$ac_dir |
13139 | break 2 | |
13140 | fi | |
13141 | done | |
13142 | done | |
3a922bb4 | 13143 | |
90dd450c VZ |
13144 | if test "$ac_find_libraries" != "" ; then |
13145 | GUI_TK_LIBRARY="-L$ac_find_libraries" | |
13146 | xpm_link=" -lXpm" | |
13147 | cat >> confdefs.h <<\EOF | |
13148 | #define wxHAVE_LIB_XPM 1 | |
13149 | EOF | |
3a922bb4 | 13150 | |
90dd450c VZ |
13151 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
13152 | else | |
13153 | echo "$ac_t""no" 1>&6 | |
13154 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
13155 | fi | |
13156 | ||
13157 | mesa_link= | |
13158 | echo $ac_n "checking for Mesa library""... $ac_c" 1>&6 | |
5a5d3c08 | 13159 | echo "configure:13160: checking for Mesa library" >&5 |
90dd450c | 13160 | |
62d0491b RL |
13161 | ac_find_libraries= |
13162 | for ac_dir in $SEARCH_LIB; | |
13163 | do | |
13164 | for ac_extension in a so sl dylib; do | |
13165 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
13166 | ac_find_libraries=$ac_dir | |
13167 | break 2 | |
13168 | fi | |
13169 | done | |
13170 | done | |
3a922bb4 | 13171 | |
90dd450c VZ |
13172 | if test "$ac_find_libraries" != "" ; then |
13173 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries" | |
13174 | mesa_link=" -lMesaGL" | |
13175 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
13176 | else | |
13177 | { echo "configure: error: no" 1>&2; exit 1; } | |
13178 | fi | |
13179 | ||
13180 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses" | |
13181 | TOOLKIT=MSW | |
13182 | GUIDIST=MSW_DIST | |
13183 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__" | |
13184 | fi | |
13185 | ||
13186 | if test "$wxUSE_MOTIF" = 1; then | |
13187 | if test "$no_x" = yes; then | |
13188 | # Not all programs may use this symbol, but it does not hurt to define it. | |
13189 | cat >> confdefs.h <<\EOF | |
13190 | #define X_DISPLAY_MISSING 1 | |
13191 | EOF | |
13192 | ||
13193 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
13194 | else | |
13195 | if test -n "$x_includes"; then | |
13196 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
62d0491b | 13197 | fi |
3a922bb4 | 13198 | |
90dd450c VZ |
13199 | # It would also be nice to do this for all -L options, not just this one. |
13200 | if test -n "$x_libraries"; then | |
13201 | X_LIBS="$X_LIBS -L$x_libraries" | |
13202 | # For Solaris; some versions of Sun CC require a space after -R and | |
13203 | # others require no space. Words are not sufficient . . . . | |
13204 | case "`(uname -sr) 2>/dev/null`" in | |
13205 | "SunOS 5"*) | |
13206 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 | |
5a5d3c08 | 13207 | echo "configure:13208: checking whether -R must be followed by a space" >&5 |
90dd450c VZ |
13208 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
13209 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 13210 | #line 13211 "configure" |
90dd450c VZ |
13211 | #include "confdefs.h" |
13212 | ||
13213 | int main() { | |
13214 | ||
13215 | ; return 0; } | |
13216 | EOF | |
5a5d3c08 | 13217 | if { (eval echo configure:13218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
13218 | rm -rf conftest* |
13219 | ac_R_nospace=yes | |
3a922bb4 | 13220 | else |
90dd450c VZ |
13221 | echo "configure: failed program was:" >&5 |
13222 | cat conftest.$ac_ext >&5 | |
13223 | rm -rf conftest* | |
13224 | ac_R_nospace=no | |
3a922bb4 | 13225 | fi |
90dd450c VZ |
13226 | rm -f conftest* |
13227 | if test $ac_R_nospace = yes; then | |
13228 | echo "$ac_t""no" 1>&6 | |
13229 | X_LIBS="$X_LIBS -R$x_libraries" | |
13230 | else | |
13231 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
13232 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 13233 | #line 13234 "configure" |
90dd450c | 13234 | #include "confdefs.h" |
3a922bb4 | 13235 | |
90dd450c | 13236 | int main() { |
6f754473 | 13237 | |
90dd450c VZ |
13238 | ; return 0; } |
13239 | EOF | |
5a5d3c08 | 13240 | if { (eval echo configure:13241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
13241 | rm -rf conftest* |
13242 | ac_R_space=yes | |
13243 | else | |
13244 | echo "configure: failed program was:" >&5 | |
13245 | cat conftest.$ac_ext >&5 | |
13246 | rm -rf conftest* | |
13247 | ac_R_space=no | |
13248 | fi | |
13249 | rm -f conftest* | |
13250 | if test $ac_R_space = yes; then | |
13251 | echo "$ac_t""yes" 1>&6 | |
13252 | X_LIBS="$X_LIBS -R $x_libraries" | |
13253 | else | |
13254 | echo "$ac_t""neither works" 1>&6 | |
13255 | fi | |
13256 | fi | |
13257 | LIBS="$ac_xsave_LIBS" | |
13258 | esac | |
13259 | fi | |
13260 | ||
13261 | # Check for system-dependent libraries X programs must link with. | |
13262 | # Do this before checking for the system-independent R6 libraries | |
13263 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
6f754473 | 13264 | |
90dd450c VZ |
13265 | if test "$ISC" = yes; then |
13266 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
13267 | else | |
13268 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X | |
13269 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
13270 | # the Alpha needs dnet_stub (dnet does not exist). | |
13271 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 | |
5a5d3c08 | 13272 | echo "configure:13273: checking for dnet_ntoa in -ldnet" >&5 |
90dd450c VZ |
13273 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
13274 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13275 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13276 | else | |
13277 | ac_save_LIBS="$LIBS" | |
13278 | LIBS="-ldnet $LIBS" | |
13279 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 13280 | #line 13281 "configure" |
90dd450c VZ |
13281 | #include "confdefs.h" |
13282 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13283 | /* We use char because int might match the return type of a gcc2 | |
13284 | builtin and then its argument prototype would still apply. */ | |
13285 | char dnet_ntoa(); | |
6f754473 | 13286 | |
90dd450c VZ |
13287 | int main() { |
13288 | dnet_ntoa() | |
13289 | ; return 0; } | |
6f754473 | 13290 | EOF |
5a5d3c08 | 13291 | if { (eval echo configure:13292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
13292 | rm -rf conftest* |
13293 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13294 | else | |
13295 | echo "configure: failed program was:" >&5 | |
13296 | cat conftest.$ac_ext >&5 | |
13297 | rm -rf conftest* | |
13298 | eval "ac_cv_lib_$ac_lib_var=no" | |
3a922bb4 | 13299 | fi |
90dd450c VZ |
13300 | rm -f conftest* |
13301 | LIBS="$ac_save_LIBS" | |
3a922bb4 | 13302 | |
3a922bb4 | 13303 | fi |
90dd450c VZ |
13304 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
13305 | echo "$ac_t""yes" 1>&6 | |
13306 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
13307 | else | |
13308 | echo "$ac_t""no" 1>&6 | |
3a922bb4 RL |
13309 | fi |
13310 | ||
90dd450c VZ |
13311 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
13312 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 | |
5a5d3c08 | 13313 | echo "configure:13314: checking for dnet_ntoa in -ldnet_stub" >&5 |
90dd450c VZ |
13314 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
13315 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13316 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13317 | else | |
13318 | ac_save_LIBS="$LIBS" | |
13319 | LIBS="-ldnet_stub $LIBS" | |
13320 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 13321 | #line 13322 "configure" |
90dd450c VZ |
13322 | #include "confdefs.h" |
13323 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13324 | /* We use char because int might match the return type of a gcc2 | |
13325 | builtin and then its argument prototype would still apply. */ | |
13326 | char dnet_ntoa(); | |
f676c7ff | 13327 | |
90dd450c VZ |
13328 | int main() { |
13329 | dnet_ntoa() | |
13330 | ; return 0; } | |
13331 | EOF | |
5a5d3c08 | 13332 | if { (eval echo configure:13333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
13333 | rm -rf conftest* |
13334 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13335 | else | |
13336 | echo "configure: failed program was:" >&5 | |
13337 | cat conftest.$ac_ext >&5 | |
13338 | rm -rf conftest* | |
13339 | eval "ac_cv_lib_$ac_lib_var=no" | |
3a922bb4 | 13340 | fi |
90dd450c VZ |
13341 | rm -f conftest* |
13342 | LIBS="$ac_save_LIBS" | |
3a922bb4 | 13343 | |
90dd450c VZ |
13344 | fi |
13345 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13346 | echo "$ac_t""yes" 1>&6 | |
13347 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
13348 | else | |
13349 | echo "$ac_t""no" 1>&6 | |
3a922bb4 RL |
13350 | fi |
13351 | ||
90dd450c | 13352 | fi |
978f1259 | 13353 | |
90dd450c VZ |
13354 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
13355 | # to get the SysV transport functions. | |
13356 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) | |
13357 | # needs -lnsl. | |
13358 | # The nsl library prevents programs from opening the X display | |
13359 | # on Irix 5.2, according to dickey@clark.net. | |
13360 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
5a5d3c08 | 13361 | echo "configure:13362: checking for gethostbyname" >&5 |
90dd450c VZ |
13362 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
13363 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13364 | else | |
13365 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 13366 | #line 13367 "configure" |
90dd450c VZ |
13367 | #include "confdefs.h" |
13368 | /* System header to define __stub macros and hopefully few prototypes, | |
13369 | which can conflict with char gethostbyname(); below. */ | |
13370 | #include <assert.h> | |
13371 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13372 | /* We use char because int might match the return type of a gcc2 | |
13373 | builtin and then its argument prototype would still apply. */ | |
13374 | char gethostbyname(); | |
978f1259 | 13375 | |
90dd450c | 13376 | int main() { |
978f1259 | 13377 | |
90dd450c VZ |
13378 | /* The GNU C library defines this for functions which it implements |
13379 | to always fail with ENOSYS. Some functions are actually named | |
13380 | something starting with __ and the normal name is an alias. */ | |
13381 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
13382 | choke me | |
13383 | #else | |
13384 | gethostbyname(); | |
13385 | #endif | |
978f1259 | 13386 | |
90dd450c VZ |
13387 | ; return 0; } |
13388 | EOF | |
5a5d3c08 | 13389 | if { (eval echo configure:13390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
13390 | rm -rf conftest* |
13391 | eval "ac_cv_func_gethostbyname=yes" | |
13392 | else | |
13393 | echo "configure: failed program was:" >&5 | |
13394 | cat conftest.$ac_ext >&5 | |
13395 | rm -rf conftest* | |
13396 | eval "ac_cv_func_gethostbyname=no" | |
978f1259 | 13397 | fi |
90dd450c | 13398 | rm -f conftest* |
4222829b VS |
13399 | fi |
13400 | ||
90dd450c VZ |
13401 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then |
13402 | echo "$ac_t""yes" 1>&6 | |
13403 | : | |
13404 | else | |
13405 | echo "$ac_t""no" 1>&6 | |
13406 | fi | |
698dcdb6 | 13407 | |
90dd450c VZ |
13408 | if test $ac_cv_func_gethostbyname = no; then |
13409 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 | |
5a5d3c08 | 13410 | echo "configure:13411: checking for gethostbyname in -lnsl" >&5 |
90dd450c VZ |
13411 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
13412 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13413 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13414 | else | |
13415 | ac_save_LIBS="$LIBS" | |
13416 | LIBS="-lnsl $LIBS" | |
13417 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 13418 | #line 13419 "configure" |
90dd450c VZ |
13419 | #include "confdefs.h" |
13420 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13421 | /* We use char because int might match the return type of a gcc2 | |
13422 | builtin and then its argument prototype would still apply. */ | |
13423 | char gethostbyname(); | |
f6bcfd97 | 13424 | |
90dd450c VZ |
13425 | int main() { |
13426 | gethostbyname() | |
13427 | ; return 0; } | |
13428 | EOF | |
5a5d3c08 | 13429 | if { (eval echo configure:13430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
13430 | rm -rf conftest* |
13431 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13432 | else | |
13433 | echo "configure: failed program was:" >&5 | |
13434 | cat conftest.$ac_ext >&5 | |
13435 | rm -rf conftest* | |
13436 | eval "ac_cv_lib_$ac_lib_var=no" | |
13437 | fi | |
13438 | rm -f conftest* | |
13439 | LIBS="$ac_save_LIBS" | |
55e80573 | 13440 | |
90dd450c VZ |
13441 | fi |
13442 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13443 | echo "$ac_t""yes" 1>&6 | |
13444 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
13445 | else | |
13446 | echo "$ac_t""no" 1>&6 | |
13447 | fi | |
b12915c1 | 13448 | |
90dd450c VZ |
13449 | fi |
13450 | ||
13451 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
13452 | # socket/setsockopt and other routines are undefined under SCO ODT | |
13453 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
13454 | # on later versions), says simon@lia.di.epfl.ch: it contains | |
13455 | # gethostby* variants that don't use the nameserver (or something). | |
13456 | # -lsocket must be given before -lnsl if both are needed. | |
13457 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
13458 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
5a5d3c08 | 13459 | echo "configure:13460: checking for connect" >&5 |
90dd450c | 13460 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
55e80573 VZ |
13461 | echo $ac_n "(cached) $ac_c" 1>&6 |
13462 | else | |
90dd450c | 13463 | cat > conftest.$ac_ext <<EOF |
5a5d3c08 | 13464 | #line 13465 "configure" |
55e80573 | 13465 | #include "confdefs.h" |
90dd450c VZ |
13466 | /* System header to define __stub macros and hopefully few prototypes, |
13467 | which can conflict with char connect(); below. */ | |
13468 | #include <assert.h> | |
13469 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13470 | /* We use char because int might match the return type of a gcc2 | |
13471 | builtin and then its argument prototype would still apply. */ | |
13472 | char connect(); | |
55e80573 VZ |
13473 | |
13474 | int main() { | |
13475 | ||
90dd450c VZ |
13476 | /* The GNU C library defines this for functions which it implements |
13477 | to always fail with ENOSYS. Some functions are actually named | |
13478 | something starting with __ and the normal name is an alias. */ | |
13479 | #if defined (__stub_connect) || defined (__stub___connect) | |
13480 | choke me | |
13481 | #else | |
13482 | connect(); | |
13483 | #endif | |
13484 | ||
55e80573 VZ |
13485 | ; return 0; } |
13486 | EOF | |
5a5d3c08 | 13487 | if { (eval echo configure:13488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
55e80573 | 13488 | rm -rf conftest* |
90dd450c | 13489 | eval "ac_cv_func_connect=yes" |
55e80573 VZ |
13490 | else |
13491 | echo "configure: failed program was:" >&5 | |
13492 | cat conftest.$ac_ext >&5 | |
13493 | rm -rf conftest* | |
90dd450c | 13494 | eval "ac_cv_func_connect=no" |
55e80573 VZ |
13495 | fi |
13496 | rm -f conftest* | |
55e80573 VZ |
13497 | fi |
13498 | ||
90dd450c VZ |
13499 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then |
13500 | echo "$ac_t""yes" 1>&6 | |
13501 | : | |
13502 | else | |
13503 | echo "$ac_t""no" 1>&6 | |
13504 | fi | |
55e80573 | 13505 | |
90dd450c VZ |
13506 | if test $ac_cv_func_connect = no; then |
13507 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 | |
5a5d3c08 | 13508 | echo "configure:13509: checking for connect in -lsocket" >&5 |
90dd450c VZ |
13509 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
13510 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13511 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13512 | else | |
13513 | ac_save_LIBS="$LIBS" | |
13514 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
13515 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 13516 | #line 13517 "configure" |
90dd450c VZ |
13517 | #include "confdefs.h" |
13518 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13519 | /* We use char because int might match the return type of a gcc2 | |
13520 | builtin and then its argument prototype would still apply. */ | |
13521 | char connect(); | |
55e80573 | 13522 | |
90dd450c VZ |
13523 | int main() { |
13524 | connect() | |
13525 | ; return 0; } | |
13526 | EOF | |
5a5d3c08 | 13527 | if { (eval echo configure:13528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
13528 | rm -rf conftest* |
13529 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13530 | else | |
13531 | echo "configure: failed program was:" >&5 | |
13532 | cat conftest.$ac_ext >&5 | |
13533 | rm -rf conftest* | |
13534 | eval "ac_cv_lib_$ac_lib_var=no" | |
13535 | fi | |
13536 | rm -f conftest* | |
13537 | LIBS="$ac_save_LIBS" | |
77e13408 | 13538 | |
90dd450c VZ |
13539 | fi |
13540 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13541 | echo "$ac_t""yes" 1>&6 | |
13542 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
13543 | else | |
13544 | echo "$ac_t""no" 1>&6 | |
13545 | fi | |
77e13408 | 13546 | |
90dd450c | 13547 | fi |
25d0687a | 13548 | |
90dd450c VZ |
13549 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
13550 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
5a5d3c08 | 13551 | echo "configure:13552: checking for remove" >&5 |
90dd450c VZ |
13552 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
13553 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13554 | else | |
13555 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 13556 | #line 13557 "configure" |
90dd450c VZ |
13557 | #include "confdefs.h" |
13558 | /* System header to define __stub macros and hopefully few prototypes, | |
13559 | which can conflict with char remove(); below. */ | |
13560 | #include <assert.h> | |
13561 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13562 | /* We use char because int might match the return type of a gcc2 | |
13563 | builtin and then its argument prototype would still apply. */ | |
13564 | char remove(); | |
7b7a7637 | 13565 | |
90dd450c | 13566 | int main() { |
55e80573 | 13567 | |
90dd450c VZ |
13568 | /* The GNU C library defines this for functions which it implements |
13569 | to always fail with ENOSYS. Some functions are actually named | |
13570 | something starting with __ and the normal name is an alias. */ | |
13571 | #if defined (__stub_remove) || defined (__stub___remove) | |
13572 | choke me | |
13573 | #else | |
13574 | remove(); | |
13575 | #endif | |
55e80573 | 13576 | |
90dd450c VZ |
13577 | ; return 0; } |
13578 | EOF | |
5a5d3c08 | 13579 | if { (eval echo configure:13580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
13580 | rm -rf conftest* |
13581 | eval "ac_cv_func_remove=yes" | |
13582 | else | |
13583 | echo "configure: failed program was:" >&5 | |
13584 | cat conftest.$ac_ext >&5 | |
13585 | rm -rf conftest* | |
13586 | eval "ac_cv_func_remove=no" | |
13587 | fi | |
13588 | rm -f conftest* | |
13589 | fi | |
55e80573 | 13590 | |
90dd450c VZ |
13591 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then |
13592 | echo "$ac_t""yes" 1>&6 | |
13593 | : | |
13594 | else | |
13595 | echo "$ac_t""no" 1>&6 | |
13596 | fi | |
10f2d63a | 13597 | |
90dd450c VZ |
13598 | if test $ac_cv_func_remove = no; then |
13599 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 | |
5a5d3c08 | 13600 | echo "configure:13601: checking for remove in -lposix" >&5 |
90dd450c VZ |
13601 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
13602 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13603 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13604 | else | |
13605 | ac_save_LIBS="$LIBS" | |
13606 | LIBS="-lposix $LIBS" | |
13607 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 13608 | #line 13609 "configure" |
90dd450c VZ |
13609 | #include "confdefs.h" |
13610 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13611 | /* We use char because int might match the return type of a gcc2 | |
13612 | builtin and then its argument prototype would still apply. */ | |
13613 | char remove(); | |
55e80573 | 13614 | |
90dd450c VZ |
13615 | int main() { |
13616 | remove() | |
13617 | ; return 0; } | |
13618 | EOF | |
5a5d3c08 | 13619 | if { (eval echo configure:13620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
13620 | rm -rf conftest* |
13621 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13622 | else | |
13623 | echo "configure: failed program was:" >&5 | |
13624 | cat conftest.$ac_ext >&5 | |
13625 | rm -rf conftest* | |
13626 | eval "ac_cv_lib_$ac_lib_var=no" | |
3a922bb4 | 13627 | fi |
90dd450c VZ |
13628 | rm -f conftest* |
13629 | LIBS="$ac_save_LIBS" | |
f6bcfd97 | 13630 | |
90dd450c VZ |
13631 | fi |
13632 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13633 | echo "$ac_t""yes" 1>&6 | |
13634 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
13635 | else | |
13636 | echo "$ac_t""no" 1>&6 | |
13637 | fi | |
f6bcfd97 | 13638 | |
6fa882bd RR |
13639 | fi |
13640 | ||
90dd450c VZ |
13641 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
13642 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 | |
5a5d3c08 | 13643 | echo "configure:13644: checking for shmat" >&5 |
90dd450c VZ |
13644 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
13645 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13646 | else | |
13647 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 13648 | #line 13649 "configure" |
90dd450c VZ |
13649 | #include "confdefs.h" |
13650 | /* System header to define __stub macros and hopefully few prototypes, | |
13651 | which can conflict with char shmat(); below. */ | |
13652 | #include <assert.h> | |
13653 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13654 | /* We use char because int might match the return type of a gcc2 | |
13655 | builtin and then its argument prototype would still apply. */ | |
13656 | char shmat(); | |
698dcdb6 | 13657 | |
90dd450c | 13658 | int main() { |
3a922bb4 | 13659 | |
90dd450c VZ |
13660 | /* The GNU C library defines this for functions which it implements |
13661 | to always fail with ENOSYS. Some functions are actually named | |
13662 | something starting with __ and the normal name is an alias. */ | |
13663 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
13664 | choke me | |
13665 | #else | |
13666 | shmat(); | |
13667 | #endif | |
10f2d63a | 13668 | |
90dd450c VZ |
13669 | ; return 0; } |
13670 | EOF | |
5a5d3c08 | 13671 | if { (eval echo configure:13672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
13672 | rm -rf conftest* |
13673 | eval "ac_cv_func_shmat=yes" | |
d08b457b | 13674 | else |
90dd450c VZ |
13675 | echo "configure: failed program was:" >&5 |
13676 | cat conftest.$ac_ext >&5 | |
13677 | rm -rf conftest* | |
13678 | eval "ac_cv_func_shmat=no" | |
d08b457b | 13679 | fi |
90dd450c | 13680 | rm -f conftest* |
d08b457b | 13681 | fi |
90dd450c VZ |
13682 | |
13683 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
13684 | echo "$ac_t""yes" 1>&6 | |
13685 | : | |
d08b457b GD |
13686 | else |
13687 | echo "$ac_t""no" 1>&6 | |
13688 | fi | |
13689 | ||
90dd450c VZ |
13690 | if test $ac_cv_func_shmat = no; then |
13691 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 | |
5a5d3c08 | 13692 | echo "configure:13693: checking for shmat in -lipc" >&5 |
90dd450c VZ |
13693 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
13694 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
d08b457b GD |
13695 | echo $ac_n "(cached) $ac_c" 1>&6 |
13696 | else | |
90dd450c VZ |
13697 | ac_save_LIBS="$LIBS" |
13698 | LIBS="-lipc $LIBS" | |
13699 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 13700 | #line 13701 "configure" |
90dd450c VZ |
13701 | #include "confdefs.h" |
13702 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13703 | /* We use char because int might match the return type of a gcc2 | |
13704 | builtin and then its argument prototype would still apply. */ | |
13705 | char shmat(); | |
13706 | ||
13707 | int main() { | |
13708 | shmat() | |
13709 | ; return 0; } | |
13710 | EOF | |
5a5d3c08 | 13711 | if { (eval echo configure:13712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
13712 | rm -rf conftest* |
13713 | eval "ac_cv_lib_$ac_lib_var=yes" | |
d08b457b | 13714 | else |
90dd450c VZ |
13715 | echo "configure: failed program was:" >&5 |
13716 | cat conftest.$ac_ext >&5 | |
13717 | rm -rf conftest* | |
13718 | eval "ac_cv_lib_$ac_lib_var=no" | |
d08b457b | 13719 | fi |
90dd450c VZ |
13720 | rm -f conftest* |
13721 | LIBS="$ac_save_LIBS" | |
13722 | ||
d08b457b | 13723 | fi |
90dd450c VZ |
13724 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
13725 | echo "$ac_t""yes" 1>&6 | |
13726 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
d08b457b GD |
13727 | else |
13728 | echo "$ac_t""no" 1>&6 | |
13729 | fi | |
13730 | ||
d558c907 | 13731 | fi |
90dd450c | 13732 | fi |
3a922bb4 | 13733 | |
90dd450c VZ |
13734 | # Check for libraries that X11R6 Xt/Xaw programs need. |
13735 | ac_save_LDFLAGS="$LDFLAGS" | |
13736 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
13737 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
13738 | # check for ICE first), but we must link in the order -lSM -lICE or | |
13739 | # we get undefined symbols. So assume we have SM if we have ICE. | |
13740 | # These have to be linked with before -lX11, unlike the other | |
13741 | # libraries we check for below, so use a different variable. | |
13742 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. | |
13743 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
5a5d3c08 | 13744 | echo "configure:13745: checking for IceConnectionNumber in -lICE" >&5 |
90dd450c VZ |
13745 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
13746 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 VZ |
13747 | echo $ac_n "(cached) $ac_c" 1>&6 |
13748 | else | |
90dd450c VZ |
13749 | ac_save_LIBS="$LIBS" |
13750 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
13751 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 13752 | #line 13753 "configure" |
9cfadba2 | 13753 | #include "confdefs.h" |
90dd450c VZ |
13754 | /* Override any gcc2 internal prototype to avoid an error. */ |
13755 | /* We use char because int might match the return type of a gcc2 | |
13756 | builtin and then its argument prototype would still apply. */ | |
13757 | char IceConnectionNumber(); | |
13758 | ||
13759 | int main() { | |
13760 | IceConnectionNumber() | |
13761 | ; return 0; } | |
698dcdb6 | 13762 | EOF |
5a5d3c08 | 13763 | if { (eval echo configure:13764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 13764 | rm -rf conftest* |
90dd450c | 13765 | eval "ac_cv_lib_$ac_lib_var=yes" |
6232543b | 13766 | else |
698dcdb6 | 13767 | echo "configure: failed program was:" >&5 |
9cfadba2 | 13768 | cat conftest.$ac_ext >&5 |
698dcdb6 | 13769 | rm -rf conftest* |
90dd450c | 13770 | eval "ac_cv_lib_$ac_lib_var=no" |
9cfadba2 | 13771 | fi |
698dcdb6 | 13772 | rm -f conftest* |
90dd450c VZ |
13773 | LIBS="$ac_save_LIBS" |
13774 | ||
9cfadba2 | 13775 | fi |
90dd450c | 13776 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
698dcdb6 | 13777 | echo "$ac_t""yes" 1>&6 |
90dd450c | 13778 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
698dcdb6 VZ |
13779 | else |
13780 | echo "$ac_t""no" 1>&6 | |
9cfadba2 | 13781 | fi |
10f2d63a | 13782 | |
90dd450c VZ |
13783 | LDFLAGS="$ac_save_LDFLAGS" |
13784 | ||
13785 | fi | |
13786 | ||
13787 | ||
13788 | if test "$no_x" = "yes"; then | |
13789 | { echo "configure: error: X11 not found" 1>&2; exit 1; } | |
13790 | fi | |
13791 | ||
13792 | GUI_TK_LIBRARY="$X_LIBS" | |
13793 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
13794 | AFMINSTALL=afminstall | |
13795 | COMPILED_X_PROGRAM=0 | |
13796 | ||
13797 | echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6 | |
5a5d3c08 | 13798 | echo "configure:13799: checking for Motif/Lesstif headers" >&5 |
90dd450c VZ |
13799 | |
13800 | ac_find_includes= | |
13801 | for ac_dir in $SEARCH_INCLUDE; | |
13802 | do | |
13803 | if test -f "$ac_dir/Xm/Xm.h"; then | |
13804 | ac_find_includes=$ac_dir | |
13805 | break | |
13806 | fi | |
13807 | done | |
13808 | ||
13809 | if test "$ac_find_includes" != "" ; then | |
13810 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
13811 | else | |
13812 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 13813 | #line 13814 "configure" |
90dd450c VZ |
13814 | #include "confdefs.h" |
13815 | ||
13816 | #include <Xm/Xm.h> | |
13817 | ||
13818 | int main() { | |
13819 | ||
13820 | int version; | |
13821 | version = xmUseVersion; | |
13822 | ||
13823 | ; return 0; } | |
13824 | EOF | |
5a5d3c08 | 13825 | if { (eval echo configure:13826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
90dd450c VZ |
13826 | rm -rf conftest* |
13827 | ||
13828 | echo "$ac_t""found in default search path" 1>&6 | |
13829 | COMPILED_X_PROGRAM=1 | |
13830 | ||
13831 | else | |
13832 | echo "configure: failed program was:" >&5 | |
13833 | cat conftest.$ac_ext >&5 | |
13834 | rm -rf conftest* | |
13835 | ||
13836 | echo "$ac_t""no" 1>&6 | |
13837 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
13838 | ||
13839 | ||
13840 | fi | |
13841 | rm -f conftest* | |
13842 | fi | |
13843 | ||
13844 | if test "$COMPILED_X_PROGRAM" = 0; then | |
13845 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 | |
5a5d3c08 | 13846 | echo "configure:13847: checking for Motif/Lesstif library" >&5 |
90dd450c VZ |
13847 | |
13848 | ac_find_libraries= | |
13849 | for ac_dir in $SEARCH_LIB; | |
13850 | do | |
13851 | for ac_extension in a so sl dylib; do | |
13852 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
13853 | ac_find_libraries=$ac_dir | |
13854 | break 2 | |
13855 | fi | |
13856 | done | |
13857 | done | |
13858 | ||
13859 | if test "$ac_find_libraries" != "" ; then | |
13860 | ||
13861 | ac_path_to_include=$ac_find_includes | |
13862 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
13863 | result=$? | |
13864 | if test $result = 0; then | |
13865 | ac_path_to_include="" | |
13866 | else | |
13867 | ac_path_to_include=" -I$ac_find_includes" | |
13868 | fi | |
13869 | ||
13870 | ||
13871 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
13872 | result=$? | |
13873 | if test $result = 0; then | |
13874 | ac_path_to_link="" | |
13875 | else | |
13876 | ac_path_to_link=" -L$ac_find_libraries" | |
13877 | fi | |
13878 | ||
13c0541d | 13879 | |
90dd450c VZ |
13880 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
13881 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" | |
13882 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
13883 | else | |
13884 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 13885 | #line 13886 "configure" |
10f2d63a | 13886 | #include "confdefs.h" |
90dd450c VZ |
13887 | |
13888 | #include <Xm/Xm.h> | |
13889 | ||
13890 | int main() { | |
13891 | ||
13892 | int version; | |
13893 | version = xmUseVersion; | |
13894 | ||
13895 | ; return 0; } | |
698dcdb6 | 13896 | EOF |
5a5d3c08 | 13897 | if { (eval echo configure:13898: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 13898 | rm -rf conftest* |
90dd450c VZ |
13899 | |
13900 | echo "$ac_t""found in default search path" 1>&6 | |
13901 | COMPILED_X_PROGRAM=1 | |
13902 | ||
6232543b | 13903 | else |
698dcdb6 | 13904 | echo "configure: failed program was:" >&5 |
10f2d63a | 13905 | cat conftest.$ac_ext >&5 |
698dcdb6 | 13906 | rm -rf conftest* |
90dd450c VZ |
13907 | |
13908 | echo "$ac_t""no" 1>&6 | |
13909 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
13910 | ||
13911 | ||
10f2d63a | 13912 | fi |
698dcdb6 | 13913 | rm -f conftest* |
90dd450c VZ |
13914 | fi |
13915 | fi | |
13916 | ||
13917 | xpm_link= | |
13918 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
5a5d3c08 | 13919 | echo "configure:13920: checking for Xpm library" >&5 |
90dd450c VZ |
13920 | |
13921 | ac_find_libraries= | |
13922 | for ac_dir in $SEARCH_LIB; | |
13923 | do | |
13924 | for ac_extension in a so sl dylib; do | |
13925 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
13926 | ac_find_libraries=$ac_dir | |
13927 | break 2 | |
13928 | fi | |
13929 | done | |
13930 | done | |
13931 | ||
13932 | if test "$ac_find_libraries" != "" ; then | |
13933 | ||
13934 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
13935 | result=$? | |
13936 | if test $result = 0; then | |
13937 | ac_path_to_link="" | |
13938 | else | |
13939 | ac_path_to_link=" -L$ac_find_libraries" | |
13940 | fi | |
13941 | ||
13942 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
13943 | xpm_link=" -lXpm" | |
13944 | cat >> confdefs.h <<\EOF | |
13945 | #define wxHAVE_LIB_XPM 1 | |
10f2d63a | 13946 | EOF |
10f2d63a | 13947 | |
90dd450c VZ |
13948 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
13949 | else | |
13950 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 13951 | #line 13952 "configure" |
10f2d63a | 13952 | #include "confdefs.h" |
90dd450c VZ |
13953 | |
13954 | #include <X11/xpm.h> | |
13955 | ||
13956 | int main() { | |
13957 | ||
13958 | int version; | |
13959 | version = XpmLibraryVersion(); | |
13960 | ||
13961 | ; return 0; } | |
698dcdb6 | 13962 | EOF |
5a5d3c08 | 13963 | if { (eval echo configure:13964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 13964 | rm -rf conftest* |
90dd450c VZ |
13965 | |
13966 | xpm_link=" -lXpm" | |
13967 | cat >> confdefs.h <<\EOF | |
13968 | #define wxHAVE_LIB_XPM 1 | |
13969 | EOF | |
13970 | ||
13971 | echo "$ac_t""found in default search path" 1>&6 | |
13972 | COMPILED_X_PROGRAM=0 | |
13973 | ||
6f72b082 | 13974 | else |
698dcdb6 | 13975 | echo "configure: failed program was:" >&5 |
6f72b082 | 13976 | cat conftest.$ac_ext >&5 |
698dcdb6 | 13977 | rm -rf conftest* |
90dd450c VZ |
13978 | |
13979 | echo "$ac_t""no" 1>&6 | |
13980 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
13981 | ||
13982 | ||
6f72b082 | 13983 | fi |
698dcdb6 | 13984 | rm -f conftest* |
90dd450c VZ |
13985 | fi |
13986 | ||
13987 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link -lXmu -lXext -lXt -lX11" | |
13988 | TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo" | |
13989 | TOOLKIT=MOTIF | |
13990 | GUIDIST=MOTIF_DIST | |
13991 | fi | |
13992 | ||
13993 | if test "$wxUSE_MAC" = 1; then | |
13994 | if test "$wxUSE_PRECOMP" = "yes"; then | |
13995 | CPPFLAGS="$CPPFLAGS -cpp-precomp" | |
13996 | else | |
13997 | CPPFLAGS="$CPPFLAGS -no-cpp-precomp" | |
13998 | fi | |
13999 | CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile" | |
14000 | CFLAGS="$CFLAGS -fpascal-strings" | |
14001 | CXXFLAGS="$CXXFLAGS -fpascal-strings" | |
14002 | ||
14003 | TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile" | |
14004 | TOOLKIT=MAC | |
14005 | GUIDIST=MACX_DIST | |
14006 | fi | |
14007 | ||
14008 | if test "$wxUSE_PM" = 1; then | |
14009 | TOOLKIT=PM | |
14010 | GUIDIST=GTK_DIST | |
14011 | fi | |
14012 | ||
14013 | if test "$TOOLKIT" = "PM" ; then | |
14014 | TOOLKIT_DIR="os2" | |
14015 | else | |
14016 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
14017 | fi | |
14018 | ||
14019 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" | |
14020 | ||
14021 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
14022 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
14023 | ||
14024 | ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}" | |
14025 | ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}" | |
14026 | ||
14027 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" | |
14028 | if test "$wxUSE_X11" = 1; then | |
14029 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes" | |
14030 | else | |
14031 | TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}" | |
14032 | fi | |
14033 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" | |
14034 | WIDGET_SET=univ | |
14035 | else | |
14036 | ALL_OBJECTS="\$(GUIOBJS)" | |
14037 | ALL_SOURCES="\$(ALL_SOURCES)" | |
14038 | ALL_HEADERS="\$(ALL_HEADERS)" | |
14039 | fi | |
14040 | ||
14041 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" | |
14042 | ||
14043 | if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then | |
14044 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" | |
14045 | fi | |
14046 | ||
14047 | if test "$wxUSE_HTML" = "yes"; then | |
14048 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
14049 | fi | |
14050 | ||
14051 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
14052 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" | |
14053 | fi | |
14054 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
14055 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
14056 | fi | |
14057 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
14058 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
14059 | fi | |
14060 | ||
14061 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
14062 | DISTDIR="wx\$(TOOLKIT)" | |
698dcdb6 | 14063 | else |
90dd450c VZ |
14064 | USE_GUI=0 |
14065 | ||
14066 | TOOLKIT_DIR="base" | |
14067 | ||
14068 | if test "$USE_WIN32" = 1 ; then | |
14069 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}" | |
14070 | TOOLKIT_VPATH="\${top_srcdir}/src/msw" | |
14071 | ||
14072 | TOOLKIT="MSW" | |
14073 | else | |
14074 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}" | |
14075 | TOOLKIT_VPATH="\${top_srcdir}/src/unix" | |
14076 | fi | |
14077 | ||
14078 | ALL_SOURCES="\$(ALL_SOURCES)" | |
14079 | ALL_HEADERS="\$(ALL_HEADERS)" | |
14080 | ||
14081 | PORT_FILES="\${top_srcdir}/src/files.lst" | |
14082 | ||
14083 | GUIDIST="BASE_DIST" | |
14084 | DISTDIR="wxBase" | |
6f72b082 | 14085 | fi |
6f72b082 | 14086 | |
90dd450c VZ |
14087 | |
14088 | if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then | |
14089 | ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)" | |
6f72b082 | 14090 | fi |
90dd450c VZ |
14091 | |
14092 | if test "$wxUSE_REGEX" = "builtin" ; then | |
14093 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" | |
6f72b082 | 14094 | fi |
90dd450c VZ |
14095 | if test "$wxUSE_ZLIB" = "builtin" ; then |
14096 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
6f72b082 | 14097 | fi |
6f72b082 | 14098 | |
90dd450c VZ |
14099 | |
14100 | if test "$wxUSE_OPENGL" = "yes"; then | |
14101 | if test "$wxUSE_MAC" = 1; then | |
14102 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
14103 | elif test "$wxUSE_MSW" = 1; then | |
14104 | OPENGL_LIBS="-lopengl32 -lglu32" | |
14105 | else | |
14106 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` | |
14107 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 | |
5a5d3c08 | 14108 | echo "configure:14109: checking for GL/gl.h" >&5 |
698dcdb6 VZ |
14109 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14110 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14111 | else | |
14112 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 14113 | #line 14114 "configure" |
6f72b082 | 14114 | #include "confdefs.h" |
90dd450c | 14115 | #include <GL/gl.h> |
698dcdb6 VZ |
14116 | EOF |
14117 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5a5d3c08 | 14118 | { (eval echo configure:14119: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
14119 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14120 | if test -z "$ac_err"; then | |
14121 | rm -rf conftest* | |
14122 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 14123 | else |
698dcdb6 VZ |
14124 | echo "$ac_err" >&5 |
14125 | echo "configure: failed program was:" >&5 | |
10f2d63a | 14126 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
14127 | rm -rf conftest* |
14128 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 14129 | fi |
698dcdb6 | 14130 | rm -f conftest* |
10f2d63a | 14131 | fi |
698dcdb6 VZ |
14132 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
14133 | echo "$ac_t""yes" 1>&6 | |
90dd450c VZ |
14134 | |
14135 | echo $ac_n "checking for -lGL""... $ac_c" 1>&6 | |
5a5d3c08 | 14136 | echo "configure:14137: checking for -lGL" >&5 |
90dd450c VZ |
14137 | |
14138 | ac_find_libraries= | |
14139 | for ac_dir in $SEARCH_LIB; | |
14140 | do | |
14141 | for ac_extension in a so sl dylib; do | |
14142 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
14143 | ac_find_libraries=$ac_dir | |
14144 | break 2 | |
14145 | fi | |
14146 | done | |
14147 | done | |
14148 | ||
14149 | if test "$ac_find_libraries" != "" ; then | |
14150 | ||
14151 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
14152 | result=$? | |
14153 | if test $result = 0; then | |
14154 | ac_path_to_link="" | |
14155 | else | |
14156 | ac_path_to_link=" -L$ac_find_libraries" | |
14157 | fi | |
14158 | ||
14159 | if test "$ac_path_to_link" = " -L/usr/lib" ; then | |
14160 | LDFLAGS_GL="$LDFLAGS" | |
14161 | else | |
14162 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
14163 | fi | |
14164 | OPENGL_LIBS="-lGL -lGLU" | |
14165 | echo "$ac_t""yes" 1>&6 | |
14166 | else | |
14167 | echo "$ac_t""no" 1>&6 | |
14168 | echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6 | |
5a5d3c08 | 14169 | echo "configure:14170: checking for -lMesaGL" >&5 |
90dd450c VZ |
14170 | |
14171 | ac_find_libraries= | |
14172 | for ac_dir in $SEARCH_LIB; | |
14173 | do | |
14174 | for ac_extension in a so sl dylib; do | |
14175 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
14176 | ac_find_libraries=$ac_dir | |
14177 | break 2 | |
14178 | fi | |
14179 | done | |
14180 | done | |
14181 | ||
14182 | if test "$ac_find_libraries" != "" ; then | |
14183 | ||
14184 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
14185 | result=$? | |
14186 | if test $result = 0; then | |
14187 | ac_path_to_link="" | |
14188 | else | |
14189 | ac_path_to_link=" -L$ac_find_libraries" | |
14190 | fi | |
14191 | ||
14192 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
14193 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
14194 | echo "$ac_t""yes" 1>&6 | |
14195 | else | |
14196 | echo "$ac_t""no" 1>&6 | |
14197 | fi | |
14198 | fi | |
14199 | ||
698dcdb6 VZ |
14200 | else |
14201 | echo "$ac_t""no" 1>&6 | |
10f2d63a | 14202 | fi |
10f2d63a | 14203 | |
f0c87536 | 14204 | |
90dd450c VZ |
14205 | if test "x$OPENGL_LIBS" = "x"; then |
14206 | { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; } | |
14207 | fi | |
14208 | fi | |
14209 | ||
14210 | if test "$wxUSE_OPENGL" = "yes"; then | |
14211 | cat >> confdefs.h <<\EOF | |
14212 | #define wxUSE_OPENGL 1 | |
698dcdb6 | 14213 | EOF |
90dd450c VZ |
14214 | |
14215 | cat >> confdefs.h <<\EOF | |
14216 | #define wxUSE_GLCANVAS 1 | |
14217 | EOF | |
14218 | ||
14219 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl" | |
14220 | fi | |
0fb0dd83 | 14221 | fi |
90dd450c VZ |
14222 | |
14223 | if test -z "$TOOLKIT_VPATH" ; then | |
14224 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" | |
0fb0dd83 | 14225 | fi |
90dd450c VZ |
14226 | |
14227 | if test -n "$TOOLKIT" ; then | |
14228 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
0fb0dd83 | 14229 | fi |
0fb0dd83 | 14230 | |
90dd450c VZ |
14231 | lib_unicode_suffix= |
14232 | if test "$wxUSE_UNICODE" = "yes"; then | |
14233 | lib_unicode_suffix=u | |
14234 | fi | |
14235 | ||
14236 | lib_debug_suffix= | |
14237 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
14238 | lib_debug_suffix=d | |
14239 | fi | |
14240 | ||
14241 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}" | |
14242 | TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}" | |
14243 | ||
14244 | if test "$cross_compiling" = "yes"; then | |
14245 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}" | |
14246 | TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}" | |
14247 | fi | |
14248 | ||
14249 | WX_LIBRARY="wx_${TOOLCHAIN_NAME}" | |
14250 | WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}" | |
14251 | ||
14252 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
14253 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
14254 | ||
14255 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}" | |
14256 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
14257 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}" | |
14258 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
14259 | ||
14260 | case "${host}" in | |
14261 | *-*-cygwin* | *-*-mingw32* ) | |
14262 | ||
14263 | ||
14264 | ||
14265 | if test "$cross_compiling" != "yes"; then | |
14266 | WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" | |
14267 | WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" | |
14268 | WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}" | |
14269 | WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
14270 | else | |
14271 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
14272 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
14273 | fi | |
14274 | ;; | |
14275 | ||
14276 | *-*-darwin* ) | |
14277 | if test "$wxUSE_MAC" = 1; then | |
14278 | WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.r" | |
14279 | WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.rsrc" | |
14280 | fi | |
14281 | ;; | |
14282 | esac | |
14283 | ||
14284 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
14285 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a" | |
14286 | ||
14287 | WXCONFIG_LIBS="-l${WX_LIBRARY}" | |
14288 | WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a" | |
14289 | ||
14290 | if test "$wxUSE_OPENGL" = "yes"; then | |
14291 | WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}" | |
14292 | WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}" | |
14293 | fi | |
14294 | ||
14295 | ||
14296 | ||
14297 | if test "$wxUSE_SHARED" = "yes"; then | |
14298 | case "${host}" in | |
14299 | *-pc-os2_emx | *-pc-os2-emx | \ | |
14300 | *-pc-msdosdjgpp ) | |
14301 | wxUSE_SHARED=no | |
14302 | echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2 | |
14303 | ;; | |
14304 | esac | |
1f8ae82f | 14305 | fi |
f0c87536 | 14306 | |
90dd450c VZ |
14307 | if test "$wxUSE_SHARED" = "yes"; then |
14308 | ||
14309 | if test "$wxUSE_OPENGL" = "yes"; then | |
14310 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
14311 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}" | |
14312 | else | |
14313 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
14314 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}" | |
14315 | fi | |
14316 | ||
14317 | if test "$GCC" = "yes"; then | |
14318 | PIC_FLAG="-fPIC" | |
14319 | fi | |
14320 | ||
14321 | SHARED_LD="${CXX} -shared -o" | |
14322 | ||
14323 | case "${host}" in | |
14324 | *-hp-hpux* ) | |
14325 | if test "$GCC" == "yes"; then | |
14326 | SHARED_LD="${SHARED_LD} ${PIC_FLAG}" | |
14327 | else | |
14328 | LDFLAGS="$LDFLAGS -L/usr/lib" | |
14329 | ||
14330 | SHARED_LD="${CXX} -b -o" | |
14331 | PIC_FLAG="+Z" | |
14332 | fi | |
14333 | ||
14334 | if test "$wxUSE_OPENGL" = "yes"; then | |
14335 | WX_ALL_INSTALLED="preinstall_gl" | |
14336 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" | |
14337 | else | |
14338 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" | |
14339 | fi | |
14340 | ;; | |
1f8ae82f | 14341 | |
90dd450c VZ |
14342 | *-*-linux* ) |
14343 | if test "$GCC" != "yes"; then | |
14344 | echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6 | |
5a5d3c08 | 14345 | echo "configure:14346: checking for Intel compiler" >&5 |
90dd450c | 14346 | if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then |
0fbb762e MB |
14347 | echo $ac_n "(cached) $ac_c" 1>&6 |
14348 | else | |
90dd450c VZ |
14349 | |
14350 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 14351 | #line 14352 "configure" |
0fbb762e | 14352 | #include "confdefs.h" |
90dd450c VZ |
14353 | |
14354 | int main() { | |
14355 | ||
14356 | #ifndef __INTEL_COMPILER | |
14357 | #error Not icc | |
14358 | #endif | |
14359 | ||
14360 | ; return 0; } | |
0fbb762e | 14361 | EOF |
5a5d3c08 | 14362 | if { (eval echo configure:14363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
0fbb762e | 14363 | rm -rf conftest* |
90dd450c | 14364 | wx_cv_prog_icc=yes |
0fbb762e | 14365 | else |
0fbb762e MB |
14366 | echo "configure: failed program was:" >&5 |
14367 | cat conftest.$ac_ext >&5 | |
14368 | rm -rf conftest* | |
90dd450c VZ |
14369 | wx_cv_prog_icc=no |
14370 | ||
0fbb762e MB |
14371 | fi |
14372 | rm -f conftest* | |
90dd450c | 14373 | |
0fbb762e | 14374 | fi |
90dd450c VZ |
14375 | |
14376 | echo "$ac_t""$wx_cv_prog_icc" 1>&6 | |
14377 | if test "$wx_cv_prog_icc" = "yes"; then | |
14378 | PIC_FLAG="-KPIC" | |
14379 | fi | |
14380 | fi | |
14381 | ||
14382 | if test "$wxUSE_SONAME" = "yes" ; then | |
14383 | SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}" | |
14384 | SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}" | |
14385 | WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)" | |
14386 | fi | |
14387 | ;; | |
14388 | ||
14389 | *-*-solaris2* ) | |
14390 | if test "$GCC" = yes ; then | |
14391 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
14392 | else | |
14393 | SHARED_LD="${CXX} -G -o" | |
14394 | PIC_FLAG="-KPIC" | |
14395 | SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}" | |
14396 | SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}" | |
14397 | fi | |
14398 | ;; | |
14399 | ||
14400 | *-*-darwin* ) | |
14401 | CFLAGS="$CFLAGS -fno-common -DWXMAKINGDLL" | |
14402 | CXXFLAGS="$CXXFLAGS -fno-common -DWXMAKINGDLL" | |
14403 | SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o" | |
14404 | PIC_FLAG="-dynamic -fPIC" | |
14405 | SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION}" | |
14406 | SONAME_FLAGS_GL=${SONAME_FLAGS} | |
14407 | ;; | |
14408 | ||
14409 | *-*-aix* ) | |
14410 | SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o" | |
14411 | ;; | |
14412 | ||
14413 | *-*-cygwin* | *-*-mingw32* ) | |
14414 | ||
14415 | WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a" | |
14416 | ||
14417 | SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o" | |
14418 | TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1" | |
14419 | ||
14420 | PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1" | |
14421 | ||
14422 | if test "$wxUSE_OPENGL" = "yes"; then | |
14423 | WX_ALL_INSTALLED="preinstall_gl" | |
14424 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" | |
14425 | else | |
14426 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" | |
14427 | fi | |
14428 | ;; | |
14429 | ||
14430 | *-*-beos* ) | |
14431 | SHARED_LD="${LD} -shared -o" | |
14432 | ;; | |
14433 | ||
14434 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ | |
14435 | *-*-sunos4* | \ | |
14436 | *-*-irix5* | *-*-irix6* | \ | |
14437 | *-*-osf* | \ | |
14438 | *-*-dgux5* | \ | |
14439 | *-*-sysv5* ) | |
14440 | ;; | |
14441 | ||
14442 | *) | |
14443 | { echo "configure: error: unknown system type $host." 1>&2; exit 1; } | |
14444 | esac | |
14445 | ||
14446 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
14447 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
14448 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" | |
14449 | fi | |
14450 | ||
14451 | WX_TARGET_LIBRARY_TYPE="so" | |
14452 | INSTALL_LIBRARY='$(INSTALL_PROGRAM)' | |
0fbb762e | 14453 | fi |
0fbb762e | 14454 | |
90dd450c | 14455 | if test "$wxUSE_SHARED" = "no"; then |
19bc6aad | 14456 | |
90dd450c VZ |
14457 | if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then |
14458 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
14459 | fi | |
19bc6aad | 14460 | |
90dd450c VZ |
14461 | if test "$wxUSE_MAC" = 1; then |
14462 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
14463 | fi | |
19bc6aad | 14464 | |
90dd450c VZ |
14465 | if test "$wxUSE_OPENGL" = "yes"; then |
14466 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl" | |
14467 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}" | |
14468 | else | |
14469 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}" | |
14470 | fi | |
19bc6aad | 14471 | |
90dd450c VZ |
14472 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
14473 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" | |
14474 | ||
14475 | WX_TARGET_LIBRARY_TYPE="a" | |
14476 | INSTALL_LIBRARY='$(INSTALL_DATA)' | |
14477 | fi | |
14478 | ||
14479 | if test "$wxUSE_MAC" = 1; then | |
14480 | LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}" | |
14481 | WX_ALL="${WX_ALL} ${LIBWXMACRES}" | |
14482 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res" | |
14483 | # Extract the first word of "Rez", so it can be a program name with args. | |
14484 | set dummy Rez; ac_word=$2 | |
14485 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
5a5d3c08 | 14486 | echo "configure:14487: checking for $ac_word" >&5 |
90dd450c VZ |
14487 | if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then |
14488 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19bc6aad | 14489 | else |
90dd450c VZ |
14490 | if test -n "$RESCOMP"; then |
14491 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
14492 | else | |
14493 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
14494 | ac_dummy="$PATH" | |
14495 | for ac_dir in $ac_dummy; do | |
14496 | test -z "$ac_dir" && ac_dir=. | |
14497 | if test -f $ac_dir/$ac_word; then | |
14498 | ac_cv_prog_RESCOMP="Rez" | |
14499 | break | |
14500 | fi | |
14501 | done | |
14502 | IFS="$ac_save_ifs" | |
14503 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
19bc6aad | 14504 | fi |
19bc6aad | 14505 | fi |
90dd450c VZ |
14506 | RESCOMP="$ac_cv_prog_RESCOMP" |
14507 | if test -n "$RESCOMP"; then | |
14508 | echo "$ac_t""$RESCOMP" 1>&6 | |
19bc6aad VZ |
14509 | else |
14510 | echo "$ac_t""no" 1>&6 | |
14511 | fi | |
19bc6aad | 14512 | |
90dd450c VZ |
14513 | # Extract the first word of "DeRez", so it can be a program name with args. |
14514 | set dummy DeRez; ac_word=$2 | |
14515 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
5a5d3c08 | 14516 | echo "configure:14517: checking for $ac_word" >&5 |
90dd450c | 14517 | if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then |
9f8148b1 GD |
14518 | echo $ac_n "(cached) $ac_c" 1>&6 |
14519 | else | |
90dd450c VZ |
14520 | if test -n "$DEREZ"; then |
14521 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
9f8148b1 | 14522 | else |
90dd450c VZ |
14523 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
14524 | ac_dummy="$PATH" | |
14525 | for ac_dir in $ac_dummy; do | |
14526 | test -z "$ac_dir" && ac_dir=. | |
14527 | if test -f $ac_dir/$ac_word; then | |
14528 | ac_cv_prog_DEREZ="DeRez" | |
14529 | break | |
14530 | fi | |
14531 | done | |
14532 | IFS="$ac_save_ifs" | |
14533 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" | |
9f8148b1 | 14534 | fi |
9f8148b1 | 14535 | fi |
90dd450c VZ |
14536 | DEREZ="$ac_cv_prog_DEREZ" |
14537 | if test -n "$DEREZ"; then | |
14538 | echo "$ac_t""$DEREZ" 1>&6 | |
9f8148b1 GD |
14539 | else |
14540 | echo "$ac_t""no" 1>&6 | |
14541 | fi | |
90dd450c VZ |
14542 | |
14543 | MACOSX_BUNDLE="bundle" | |
14544 | if test "$wxUSE_SHARED" = "yes"; then | |
14545 | LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r -o \$(BIN_PROGRAM)" | |
14546 | LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r -o" | |
14547 | else | |
14548 | LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r ${LIBWXMACRES} -o \$(BIN_PROGRAM)" | |
14549 | LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r \${prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
14550 | fi | |
14551 | else | |
14552 | if test "$wxUSE_PM" = 1; then | |
14553 | LIBWXMACRESCOMP="emxbind -ep \$(BIN_PROGRAM)" | |
14554 | fi | |
14555 | fi | |
9f8148b1 | 14556 | |
10f2d63a | 14557 | |
90dd450c VZ |
14558 | if test "$wxUSE_MAC" != 1; then |
14559 | for ac_hdr in strings.h | |
29fd3c0c VS |
14560 | do |
14561 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
14562 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
5a5d3c08 | 14563 | echo "configure:14564: checking for $ac_hdr" >&5 |
29fd3c0c VS |
14564 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14565 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14566 | else | |
14567 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 14568 | #line 14569 "configure" |
29fd3c0c VS |
14569 | #include "confdefs.h" |
14570 | #include <$ac_hdr> | |
14571 | EOF | |
14572 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5a5d3c08 | 14573 | { (eval echo configure:14574: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
29fd3c0c VS |
14574 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14575 | if test -z "$ac_err"; then | |
14576 | rm -rf conftest* | |
14577 | eval "ac_cv_header_$ac_safe=yes" | |
14578 | else | |
14579 | echo "$ac_err" >&5 | |
14580 | echo "configure: failed program was:" >&5 | |
14581 | cat conftest.$ac_ext >&5 | |
14582 | rm -rf conftest* | |
14583 | eval "ac_cv_header_$ac_safe=no" | |
14584 | fi | |
14585 | rm -f conftest* | |
14586 | fi | |
14587 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
14588 | echo "$ac_t""yes" 1>&6 | |
14589 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
14590 | cat >> confdefs.h <<EOF | |
14591 | #define $ac_tr_hdr 1 | |
14592 | EOF | |
14593 | ||
14594 | else | |
14595 | echo "$ac_t""no" 1>&6 | |
14596 | fi | |
14597 | done | |
14598 | ||
10f2d63a VZ |
14599 | fi |
14600 | ||
90dd450c VZ |
14601 | for ac_hdr in stdlib.h |
14602 | do | |
14603 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
14604 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
5a5d3c08 | 14605 | echo "configure:14606: checking for $ac_hdr" >&5 |
90dd450c | 14606 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
698dcdb6 | 14607 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 14608 | else |
698dcdb6 | 14609 | cat > conftest.$ac_ext <<EOF |
5a5d3c08 | 14610 | #line 14611 "configure" |
10f2d63a | 14611 | #include "confdefs.h" |
90dd450c | 14612 | #include <$ac_hdr> |
698dcdb6 | 14613 | EOF |
90dd450c | 14614 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5a5d3c08 | 14615 | { (eval echo configure:14616: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
90dd450c VZ |
14616 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14617 | if test -z "$ac_err"; then | |
698dcdb6 | 14618 | rm -rf conftest* |
90dd450c | 14619 | eval "ac_cv_header_$ac_safe=yes" |
10f2d63a | 14620 | else |
90dd450c VZ |
14621 | echo "$ac_err" >&5 |
14622 | echo "configure: failed program was:" >&5 | |
14623 | cat conftest.$ac_ext >&5 | |
698dcdb6 | 14624 | rm -rf conftest* |
90dd450c | 14625 | eval "ac_cv_header_$ac_safe=no" |
10f2d63a VZ |
14626 | fi |
14627 | rm -f conftest* | |
10f2d63a | 14628 | fi |
90dd450c VZ |
14629 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
14630 | echo "$ac_t""yes" 1>&6 | |
14631 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
14632 | cat >> confdefs.h <<EOF | |
14633 | #define $ac_tr_hdr 1 | |
10f2d63a | 14634 | EOF |
90dd450c VZ |
14635 | |
14636 | else | |
14637 | echo "$ac_t""no" 1>&6 | |
10f2d63a | 14638 | fi |
90dd450c | 14639 | done |
10f2d63a | 14640 | |
90dd450c VZ |
14641 | for ac_hdr in malloc.h |
14642 | do | |
14643 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
14644 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
5a5d3c08 | 14645 | echo "configure:14646: checking for $ac_hdr" >&5 |
90dd450c | 14646 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
d836ee96 VZ |
14647 | echo $ac_n "(cached) $ac_c" 1>&6 |
14648 | else | |
90dd450c | 14649 | cat > conftest.$ac_ext <<EOF |
5a5d3c08 | 14650 | #line 14651 "configure" |
d836ee96 | 14651 | #include "confdefs.h" |
90dd450c | 14652 | #include <$ac_hdr> |
d836ee96 | 14653 | EOF |
90dd450c | 14654 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5a5d3c08 | 14655 | { (eval echo configure:14656: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
90dd450c VZ |
14656 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14657 | if test -z "$ac_err"; then | |
d836ee96 | 14658 | rm -rf conftest* |
90dd450c | 14659 | eval "ac_cv_header_$ac_safe=yes" |
d836ee96 | 14660 | else |
90dd450c | 14661 | echo "$ac_err" >&5 |
d836ee96 VZ |
14662 | echo "configure: failed program was:" >&5 |
14663 | cat conftest.$ac_ext >&5 | |
14664 | rm -rf conftest* | |
90dd450c | 14665 | eval "ac_cv_header_$ac_safe=no" |
d836ee96 VZ |
14666 | fi |
14667 | rm -f conftest* | |
d836ee96 | 14668 | fi |
90dd450c VZ |
14669 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
14670 | echo "$ac_t""yes" 1>&6 | |
14671 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
14672 | cat >> confdefs.h <<EOF | |
14673 | #define $ac_tr_hdr 1 | |
d836ee96 | 14674 | EOF |
90dd450c | 14675 | |
d836ee96 | 14676 | else |
90dd450c VZ |
14677 | echo "$ac_t""no" 1>&6 |
14678 | fi | |
14679 | done | |
14680 | ||
14681 | for ac_hdr in unistd.h | |
14682 | do | |
14683 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
14684 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
5a5d3c08 | 14685 | echo "configure:14686: checking for $ac_hdr" >&5 |
90dd450c | 14686 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
d836ee96 VZ |
14687 | echo $ac_n "(cached) $ac_c" 1>&6 |
14688 | else | |
14689 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 14690 | #line 14691 "configure" |
d836ee96 | 14691 | #include "confdefs.h" |
90dd450c | 14692 | #include <$ac_hdr> |
d836ee96 | 14693 | EOF |
90dd450c | 14694 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5a5d3c08 | 14695 | { (eval echo configure:14696: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
90dd450c VZ |
14696 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14697 | if test -z "$ac_err"; then | |
d836ee96 | 14698 | rm -rf conftest* |
90dd450c | 14699 | eval "ac_cv_header_$ac_safe=yes" |
d836ee96 | 14700 | else |
90dd450c | 14701 | echo "$ac_err" >&5 |
d836ee96 VZ |
14702 | echo "configure: failed program was:" >&5 |
14703 | cat conftest.$ac_ext >&5 | |
14704 | rm -rf conftest* | |
90dd450c | 14705 | eval "ac_cv_header_$ac_safe=no" |
d836ee96 VZ |
14706 | fi |
14707 | rm -f conftest* | |
d836ee96 | 14708 | fi |
90dd450c VZ |
14709 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
14710 | echo "$ac_t""yes" 1>&6 | |
14711 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
14712 | cat >> confdefs.h <<EOF | |
14713 | #define $ac_tr_hdr 1 | |
d836ee96 | 14714 | EOF |
90dd450c VZ |
14715 | |
14716 | else | |
14717 | echo "$ac_t""no" 1>&6 | |
d836ee96 | 14718 | fi |
90dd450c | 14719 | done |
d836ee96 | 14720 | |
90dd450c VZ |
14721 | for ac_hdr in wchar.h |
14722 | do | |
14723 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
14724 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
5a5d3c08 | 14725 | echo "configure:14726: checking for $ac_hdr" >&5 |
90dd450c | 14726 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
698dcdb6 VZ |
14727 | echo $ac_n "(cached) $ac_c" 1>&6 |
14728 | else | |
90dd450c | 14729 | cat > conftest.$ac_ext <<EOF |
5a5d3c08 | 14730 | #line 14731 "configure" |
b12915c1 | 14731 | #include "confdefs.h" |
90dd450c | 14732 | #include <$ac_hdr> |
698dcdb6 | 14733 | EOF |
90dd450c | 14734 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5a5d3c08 | 14735 | { (eval echo configure:14736: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
90dd450c VZ |
14736 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14737 | if test -z "$ac_err"; then | |
698dcdb6 | 14738 | rm -rf conftest* |
90dd450c | 14739 | eval "ac_cv_header_$ac_safe=yes" |
b12915c1 | 14740 | else |
90dd450c | 14741 | echo "$ac_err" >&5 |
698dcdb6 VZ |
14742 | echo "configure: failed program was:" >&5 |
14743 | cat conftest.$ac_ext >&5 | |
14744 | rm -rf conftest* | |
90dd450c | 14745 | eval "ac_cv_header_$ac_safe=no" |
6232543b | 14746 | fi |
698dcdb6 | 14747 | rm -f conftest* |
1e487827 | 14748 | fi |
90dd450c VZ |
14749 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
14750 | echo "$ac_t""yes" 1>&6 | |
14751 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
14752 | cat >> confdefs.h <<EOF | |
14753 | #define $ac_tr_hdr 1 | |
bd3277fe | 14754 | EOF |
90dd450c VZ |
14755 | |
14756 | else | |
14757 | echo "$ac_t""no" 1>&6 | |
bd3277fe | 14758 | fi |
90dd450c | 14759 | done |
bd3277fe | 14760 | |
698dcdb6 | 14761 | |
90dd450c VZ |
14762 | if test "$ac_cv_header_wchar_h" != "yes"; then |
14763 | for ac_hdr in wcstr.h | |
14764 | do | |
14765 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
14766 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
5a5d3c08 | 14767 | echo "configure:14768: checking for $ac_hdr" >&5 |
90dd450c | 14768 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
698dcdb6 | 14769 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 14770 | else |
698dcdb6 | 14771 | cat > conftest.$ac_ext <<EOF |
5a5d3c08 | 14772 | #line 14773 "configure" |
10f2d63a | 14773 | #include "confdefs.h" |
90dd450c | 14774 | #include <$ac_hdr> |
698dcdb6 | 14775 | EOF |
90dd450c | 14776 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5a5d3c08 | 14777 | { (eval echo configure:14778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
90dd450c VZ |
14778 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14779 | if test -z "$ac_err"; then | |
4f14bcd8 | 14780 | rm -rf conftest* |
90dd450c | 14781 | eval "ac_cv_header_$ac_safe=yes" |
698dcdb6 | 14782 | else |
90dd450c | 14783 | echo "$ac_err" >&5 |
698dcdb6 VZ |
14784 | echo "configure: failed program was:" >&5 |
14785 | cat conftest.$ac_ext >&5 | |
4f14bcd8 | 14786 | rm -rf conftest* |
90dd450c | 14787 | eval "ac_cv_header_$ac_safe=no" |
703e0a69 | 14788 | fi |
4f14bcd8 | 14789 | rm -f conftest* |
698dcdb6 | 14790 | fi |
90dd450c VZ |
14791 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
14792 | echo "$ac_t""yes" 1>&6 | |
14793 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
14794 | cat >> confdefs.h <<EOF | |
14795 | #define $ac_tr_hdr 1 | |
698dcdb6 | 14796 | EOF |
90dd450c VZ |
14797 | |
14798 | else | |
14799 | echo "$ac_t""no" 1>&6 | |
14800 | fi | |
14801 | done | |
698dcdb6 | 14802 | |
4f14bcd8 | 14803 | fi |
698dcdb6 | 14804 | |
90dd450c VZ |
14805 | |
14806 | for ac_hdr in fnmatch.h | |
14807 | do | |
14808 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
14809 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
5a5d3c08 | 14810 | echo "configure:14811: checking for $ac_hdr" >&5 |
90dd450c | 14811 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
698dcdb6 | 14812 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 14813 | else |
698dcdb6 | 14814 | cat > conftest.$ac_ext <<EOF |
5a5d3c08 | 14815 | #line 14816 "configure" |
10f2d63a | 14816 | #include "confdefs.h" |
90dd450c | 14817 | #include <$ac_hdr> |
698dcdb6 | 14818 | EOF |
90dd450c | 14819 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5a5d3c08 | 14820 | { (eval echo configure:14821: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
90dd450c VZ |
14821 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14822 | if test -z "$ac_err"; then | |
4f14bcd8 | 14823 | rm -rf conftest* |
90dd450c | 14824 | eval "ac_cv_header_$ac_safe=yes" |
10f2d63a | 14825 | else |
90dd450c | 14826 | echo "$ac_err" >&5 |
698dcdb6 VZ |
14827 | echo "configure: failed program was:" >&5 |
14828 | cat conftest.$ac_ext >&5 | |
90dd450c VZ |
14829 | rm -rf conftest* |
14830 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 14831 | fi |
4f14bcd8 | 14832 | rm -f conftest* |
10f2d63a | 14833 | fi |
90dd450c VZ |
14834 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
14835 | echo "$ac_t""yes" 1>&6 | |
14836 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
14837 | cat >> confdefs.h <<EOF | |
14838 | #define $ac_tr_hdr 1 | |
698dcdb6 | 14839 | EOF |
90dd450c VZ |
14840 | |
14841 | else | |
14842 | echo "$ac_t""no" 1>&6 | |
14843 | fi | |
14844 | done | |
698dcdb6 VZ |
14845 | |
14846 | ||
90dd450c VZ |
14847 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then |
14848 | for ac_func in fnmatch | |
14849 | do | |
14850 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
5a5d3c08 | 14851 | echo "configure:14852: checking for $ac_func" >&5 |
90dd450c | 14852 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 | 14853 | echo $ac_n "(cached) $ac_c" 1>&6 |
698dcdb6 VZ |
14854 | else |
14855 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 14856 | #line 14857 "configure" |
698dcdb6 | 14857 | #include "confdefs.h" |
90dd450c VZ |
14858 | /* System header to define __stub macros and hopefully few prototypes, |
14859 | which can conflict with char $ac_func(); below. */ | |
14860 | #include <assert.h> | |
14861 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14862 | /* We use char because int might match the return type of a gcc2 | |
14863 | builtin and then its argument prototype would still apply. */ | |
14864 | char $ac_func(); | |
14865 | ||
14866 | int main() { | |
14867 | ||
14868 | /* The GNU C library defines this for functions which it implements | |
14869 | to always fail with ENOSYS. Some functions are actually named | |
14870 | something starting with __ and the normal name is an alias. */ | |
14871 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14872 | choke me | |
14873 | #else | |
14874 | $ac_func(); | |
14875 | #endif | |
14876 | ||
14877 | ; return 0; } | |
698dcdb6 | 14878 | EOF |
5a5d3c08 | 14879 | if { (eval echo configure:14880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
14880 | rm -rf conftest* |
14881 | eval "ac_cv_func_$ac_func=yes" | |
6232543b | 14882 | else |
698dcdb6 VZ |
14883 | echo "configure: failed program was:" >&5 |
14884 | cat conftest.$ac_ext >&5 | |
90dd450c VZ |
14885 | rm -rf conftest* |
14886 | eval "ac_cv_func_$ac_func=no" | |
6232543b | 14887 | fi |
90dd450c | 14888 | rm -f conftest* |
698dcdb6 VZ |
14889 | fi |
14890 | ||
90dd450c VZ |
14891 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
14892 | echo "$ac_t""yes" 1>&6 | |
14893 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14894 | cat >> confdefs.h <<EOF | |
14895 | #define $ac_tr_func 1 | |
10f2d63a | 14896 | EOF |
90dd450c VZ |
14897 | |
14898 | else | |
14899 | echo "$ac_t""no" 1>&6 | |
14900 | fi | |
14901 | done | |
10f2d63a | 14902 | |
90dd450c | 14903 | fi |
1e487827 | 14904 | |
90dd450c VZ |
14905 | for ac_hdr in langinfo.h |
14906 | do | |
14907 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
14908 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
5a5d3c08 | 14909 | echo "configure:14910: checking for $ac_hdr" >&5 |
90dd450c | 14910 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
698dcdb6 | 14911 | echo $ac_n "(cached) $ac_c" 1>&6 |
b93d0d08 | 14912 | else |
698dcdb6 | 14913 | cat > conftest.$ac_ext <<EOF |
5a5d3c08 | 14914 | #line 14915 "configure" |
b93d0d08 | 14915 | #include "confdefs.h" |
90dd450c | 14916 | #include <$ac_hdr> |
698dcdb6 | 14917 | EOF |
90dd450c | 14918 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5a5d3c08 | 14919 | { (eval echo configure:14920: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
90dd450c VZ |
14920 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14921 | if test -z "$ac_err"; then | |
14922 | rm -rf conftest* | |
14923 | eval "ac_cv_header_$ac_safe=yes" | |
b93d0d08 | 14924 | else |
90dd450c | 14925 | echo "$ac_err" >&5 |
698dcdb6 VZ |
14926 | echo "configure: failed program was:" >&5 |
14927 | cat conftest.$ac_ext >&5 | |
90dd450c VZ |
14928 | rm -rf conftest* |
14929 | eval "ac_cv_header_$ac_safe=no" | |
b93d0d08 | 14930 | fi |
90dd450c | 14931 | rm -f conftest* |
b93d0d08 | 14932 | fi |
90dd450c VZ |
14933 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
14934 | echo "$ac_t""yes" 1>&6 | |
14935 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
14936 | cat >> confdefs.h <<EOF | |
14937 | #define $ac_tr_hdr 1 | |
b93d0d08 | 14938 | EOF |
90dd450c VZ |
14939 | |
14940 | else | |
14941 | echo "$ac_t""no" 1>&6 | |
14942 | fi | |
14943 | done | |
b93d0d08 | 14944 | |
698dcdb6 | 14945 | |
90dd450c VZ |
14946 | if test "$wxUSE_GUI" = "yes"; then |
14947 | if test "$wxUSE_UNIX" = "yes"; then | |
14948 | for ac_hdr in X11/XKBlib.h | |
14949 | do | |
14950 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
14951 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
5a5d3c08 | 14952 | echo "configure:14953: checking for $ac_hdr" >&5 |
90dd450c | 14953 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
698dcdb6 | 14954 | echo $ac_n "(cached) $ac_c" 1>&6 |
3a922bb4 | 14955 | else |
3a922bb4 | 14956 | cat > conftest.$ac_ext <<EOF |
5a5d3c08 | 14957 | #line 14958 "configure" |
3a922bb4 | 14958 | #include "confdefs.h" |
90dd450c | 14959 | #include <$ac_hdr> |
4f14bcd8 | 14960 | EOF |
90dd450c | 14961 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5a5d3c08 | 14962 | { (eval echo configure:14963: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
90dd450c VZ |
14963 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14964 | if test -z "$ac_err"; then | |
14965 | rm -rf conftest* | |
14966 | eval "ac_cv_header_$ac_safe=yes" | |
4f14bcd8 | 14967 | else |
90dd450c | 14968 | echo "$ac_err" >&5 |
4f14bcd8 GD |
14969 | echo "configure: failed program was:" >&5 |
14970 | cat conftest.$ac_ext >&5 | |
90dd450c VZ |
14971 | rm -rf conftest* |
14972 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 14973 | fi |
90dd450c VZ |
14974 | rm -f conftest* |
14975 | fi | |
14976 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
14977 | echo "$ac_t""yes" 1>&6 | |
14978 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
14979 | cat >> confdefs.h <<EOF | |
14980 | #define $ac_tr_hdr 1 | |
14981 | EOF | |
14982 | ||
14983 | else | |
14984 | echo "$ac_t""no" 1>&6 | |
3a922bb4 | 14985 | fi |
90dd450c | 14986 | done |
698dcdb6 | 14987 | |
90dd450c | 14988 | fi |
4f14bcd8 | 14989 | fi |
10f2d63a | 14990 | |
703e0a69 | 14991 | |
90dd450c | 14992 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
5a5d3c08 | 14993 | echo "configure:14994: checking for ANSI C header files" >&5 |
90dd450c | 14994 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
698dcdb6 VZ |
14995 | echo $ac_n "(cached) $ac_c" 1>&6 |
14996 | else | |
14997 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 14998 | #line 14999 "configure" |
10f2d63a | 14999 | #include "confdefs.h" |
90dd450c VZ |
15000 | #include <stdlib.h> |
15001 | #include <stdarg.h> | |
15002 | #include <string.h> | |
15003 | #include <float.h> | |
698dcdb6 | 15004 | EOF |
90dd450c | 15005 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5a5d3c08 | 15006 | { (eval echo configure:15007: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
90dd450c VZ |
15007 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15008 | if test -z "$ac_err"; then | |
15009 | rm -rf conftest* | |
15010 | ac_cv_header_stdc=yes | |
10f2d63a | 15011 | else |
90dd450c | 15012 | echo "$ac_err" >&5 |
698dcdb6 | 15013 | echo "configure: failed program was:" >&5 |
10f2d63a | 15014 | cat conftest.$ac_ext >&5 |
90dd450c VZ |
15015 | rm -rf conftest* |
15016 | ac_cv_header_stdc=no | |
10f2d63a | 15017 | fi |
90dd450c VZ |
15018 | rm -f conftest* |
15019 | ||
15020 | if test $ac_cv_header_stdc = yes; then | |
15021 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
15022 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 15023 | #line 15024 "configure" |
90dd450c VZ |
15024 | #include "confdefs.h" |
15025 | #include <string.h> | |
15026 | EOF | |
15027 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15028 | egrep "memchr" >/dev/null 2>&1; then | |
15029 | : | |
15030 | else | |
15031 | rm -rf conftest* | |
15032 | ac_cv_header_stdc=no | |
10f2d63a | 15033 | fi |
90dd450c | 15034 | rm -f conftest* |
10f2d63a | 15035 | |
4f14bcd8 | 15036 | fi |
90dd450c VZ |
15037 | |
15038 | if test $ac_cv_header_stdc = yes; then | |
15039 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
15040 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 15041 | #line 15042 "configure" |
90dd450c VZ |
15042 | #include "confdefs.h" |
15043 | #include <stdlib.h> | |
10f2d63a | 15044 | EOF |
90dd450c VZ |
15045 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
15046 | egrep "free" >/dev/null 2>&1; then | |
15047 | : | |
15048 | else | |
15049 | rm -rf conftest* | |
15050 | ac_cv_header_stdc=no | |
15051 | fi | |
15052 | rm -f conftest* | |
10f2d63a | 15053 | |
90dd450c | 15054 | fi |
698dcdb6 | 15055 | |
90dd450c VZ |
15056 | if test $ac_cv_header_stdc = yes; then |
15057 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
15058 | if test "$cross_compiling" = yes; then | |
15059 | : | |
4f14bcd8 GD |
15060 | else |
15061 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 15062 | #line 15063 "configure" |
10f2d63a | 15063 | #include "confdefs.h" |
90dd450c VZ |
15064 | #include <ctype.h> |
15065 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
15066 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
15067 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
15068 | int main () { int i; for (i = 0; i < 256; i++) | |
15069 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
15070 | exit (0); } | |
15071 | ||
698dcdb6 | 15072 | EOF |
5a5d3c08 | 15073 | if { (eval echo configure:15074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 | 15074 | then |
90dd450c | 15075 | : |
10f2d63a | 15076 | else |
698dcdb6 VZ |
15077 | echo "configure: failed program was:" >&5 |
15078 | cat conftest.$ac_ext >&5 | |
4f14bcd8 | 15079 | rm -fr conftest* |
90dd450c | 15080 | ac_cv_header_stdc=no |
10f2d63a | 15081 | fi |
4f14bcd8 | 15082 | rm -fr conftest* |
10f2d63a | 15083 | fi |
698dcdb6 | 15084 | |
4f14bcd8 | 15085 | fi |
90dd450c | 15086 | fi |
10f2d63a | 15087 | |
90dd450c VZ |
15088 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
15089 | if test $ac_cv_header_stdc = yes; then | |
15090 | cat >> confdefs.h <<\EOF | |
15091 | #define STDC_HEADERS 1 | |
15092 | EOF | |
698dcdb6 | 15093 | |
90dd450c | 15094 | fi |
9d353d4a | 15095 | |
90dd450c | 15096 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
5a5d3c08 | 15097 | echo "configure:15098: checking for mode_t" >&5 |
90dd450c | 15098 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
9d353d4a | 15099 | echo $ac_n "(cached) $ac_c" 1>&6 |
9d353d4a RR |
15100 | else |
15101 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 15102 | #line 15103 "configure" |
9d353d4a | 15103 | #include "confdefs.h" |
90dd450c VZ |
15104 | #include <sys/types.h> |
15105 | #if STDC_HEADERS | |
15106 | #include <stdlib.h> | |
15107 | #include <stddef.h> | |
15108 | #endif | |
9d353d4a | 15109 | EOF |
90dd450c VZ |
15110 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
15111 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
15112 | rm -rf conftest* | |
15113 | ac_cv_type_mode_t=yes | |
9d353d4a | 15114 | else |
90dd450c VZ |
15115 | rm -rf conftest* |
15116 | ac_cv_type_mode_t=no | |
9d353d4a | 15117 | fi |
90dd450c | 15118 | rm -f conftest* |
9d353d4a RR |
15119 | |
15120 | fi | |
90dd450c VZ |
15121 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 |
15122 | if test $ac_cv_type_mode_t = no; then | |
15123 | cat >> confdefs.h <<\EOF | |
15124 | #define mode_t int | |
9d353d4a RR |
15125 | EOF |
15126 | ||
90dd450c | 15127 | fi |
9d353d4a | 15128 | |
90dd450c | 15129 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
5a5d3c08 | 15130 | echo "configure:15131: checking for off_t" >&5 |
90dd450c | 15131 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
698dcdb6 | 15132 | echo $ac_n "(cached) $ac_c" 1>&6 |
4f14bcd8 GD |
15133 | else |
15134 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 15135 | #line 15136 "configure" |
10f2d63a | 15136 | #include "confdefs.h" |
90dd450c VZ |
15137 | #include <sys/types.h> |
15138 | #if STDC_HEADERS | |
15139 | #include <stdlib.h> | |
15140 | #include <stddef.h> | |
15141 | #endif | |
698dcdb6 | 15142 | EOF |
90dd450c VZ |
15143 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
15144 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
15145 | rm -rf conftest* | |
15146 | ac_cv_type_off_t=yes | |
698dcdb6 | 15147 | else |
90dd450c VZ |
15148 | rm -rf conftest* |
15149 | ac_cv_type_off_t=no | |
698dcdb6 | 15150 | fi |
90dd450c | 15151 | rm -f conftest* |
698dcdb6 VZ |
15152 | |
15153 | fi | |
90dd450c VZ |
15154 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 |
15155 | if test $ac_cv_type_off_t = no; then | |
15156 | cat >> confdefs.h <<\EOF | |
15157 | #define off_t long | |
10f2d63a VZ |
15158 | EOF |
15159 | ||
90dd450c | 15160 | fi |
10f2d63a | 15161 | |
90dd450c | 15162 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
5a5d3c08 | 15163 | echo "configure:15164: checking for pid_t" >&5 |
90dd450c | 15164 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
698dcdb6 | 15165 | echo $ac_n "(cached) $ac_c" 1>&6 |
4f14bcd8 GD |
15166 | else |
15167 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 15168 | #line 15169 "configure" |
10f2d63a | 15169 | #include "confdefs.h" |
90dd450c VZ |
15170 | #include <sys/types.h> |
15171 | #if STDC_HEADERS | |
15172 | #include <stdlib.h> | |
15173 | #include <stddef.h> | |
15174 | #endif | |
698dcdb6 | 15175 | EOF |
90dd450c VZ |
15176 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
15177 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
15178 | rm -rf conftest* | |
15179 | ac_cv_type_pid_t=yes | |
698dcdb6 | 15180 | else |
90dd450c VZ |
15181 | rm -rf conftest* |
15182 | ac_cv_type_pid_t=no | |
4f14bcd8 | 15183 | fi |
90dd450c | 15184 | rm -f conftest* |
698dcdb6 VZ |
15185 | |
15186 | fi | |
90dd450c VZ |
15187 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 |
15188 | if test $ac_cv_type_pid_t = no; then | |
15189 | cat >> confdefs.h <<\EOF | |
15190 | #define pid_t int | |
10f2d63a VZ |
15191 | EOF |
15192 | ||
90dd450c | 15193 | fi |
18dbb1f6 | 15194 | |
90dd450c | 15195 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
5a5d3c08 | 15196 | echo "configure:15197: checking for size_t" >&5 |
90dd450c | 15197 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
18dbb1f6 | 15198 | echo $ac_n "(cached) $ac_c" 1>&6 |
90dd450c VZ |
15199 | else |
15200 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 15201 | #line 15202 "configure" |
4f14bcd8 GD |
15202 | #include "confdefs.h" |
15203 | #include <sys/types.h> | |
90dd450c VZ |
15204 | #if STDC_HEADERS |
15205 | #include <stdlib.h> | |
15206 | #include <stddef.h> | |
4f14bcd8 | 15207 | #endif |
18dbb1f6 | 15208 | EOF |
90dd450c VZ |
15209 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
15210 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
18dbb1f6 | 15211 | rm -rf conftest* |
90dd450c | 15212 | ac_cv_type_size_t=yes |
18dbb1f6 | 15213 | else |
18dbb1f6 | 15214 | rm -rf conftest* |
90dd450c | 15215 | ac_cv_type_size_t=no |
18dbb1f6 VZ |
15216 | fi |
15217 | rm -f conftest* | |
90dd450c | 15218 | |
1e487827 | 15219 | fi |
90dd450c VZ |
15220 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 |
15221 | if test $ac_cv_type_size_t = no; then | |
15222 | cat >> confdefs.h <<\EOF | |
15223 | #define size_t unsigned | |
15224 | EOF | |
15225 | ||
15226 | fi | |
15227 | ||
15228 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 | |
5a5d3c08 | 15229 | echo "configure:15230: checking for uid_t in sys/types.h" >&5 |
90dd450c VZ |
15230 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
15231 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b3e8d00a VZ |
15232 | else |
15233 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 15234 | #line 15235 "configure" |
b3e8d00a | 15235 | #include "confdefs.h" |
90dd450c | 15236 | #include <sys/types.h> |
b3e8d00a | 15237 | EOF |
90dd450c VZ |
15238 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
15239 | egrep "uid_t" >/dev/null 2>&1; then | |
15240 | rm -rf conftest* | |
15241 | ac_cv_type_uid_t=yes | |
b3e8d00a | 15242 | else |
90dd450c VZ |
15243 | rm -rf conftest* |
15244 | ac_cv_type_uid_t=no | |
b3e8d00a | 15245 | fi |
90dd450c | 15246 | rm -f conftest* |
b3e8d00a | 15247 | |
4f14bcd8 GD |
15248 | fi |
15249 | ||
90dd450c VZ |
15250 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
15251 | if test $ac_cv_type_uid_t = no; then | |
4f14bcd8 | 15252 | cat >> confdefs.h <<\EOF |
90dd450c VZ |
15253 | #define uid_t int |
15254 | EOF | |
15255 | ||
15256 | cat >> confdefs.h <<\EOF | |
15257 | #define gid_t int | |
b3e8d00a | 15258 | EOF |
4f14bcd8 | 15259 | |
b3e8d00a | 15260 | fi |
b3e8d00a VZ |
15261 | |
15262 | ||
90dd450c VZ |
15263 | |
15264 | ac_ext=C | |
4f14bcd8 GD |
15265 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
15266 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15267 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15268 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15269 | cross_compiling=$ac_cv_prog_cxx_cross | |
90dd450c VZ |
15270 | |
15271 | echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6 | |
5a5d3c08 | 15272 | echo "configure:15273: checking if size_t is unsigned int" >&5 |
90dd450c VZ |
15273 | if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then |
15274 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15275 | else | |
15276 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 15277 | #line 15278 "configure" |
10f2d63a | 15278 | #include "confdefs.h" |
90dd450c VZ |
15279 | #include <stddef.h> |
15280 | int main() { | |
15281 | ||
15282 | return 0; } | |
15283 | ||
15284 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
15285 | ||
15286 | int bar() { | |
15287 | ||
15288 | ; return 0; } | |
698dcdb6 | 15289 | EOF |
5a5d3c08 | 15290 | if { (eval echo configure:15291: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
90dd450c VZ |
15291 | rm -rf conftest* |
15292 | wx_cv_size_t_is_uint=no | |
698dcdb6 VZ |
15293 | else |
15294 | echo "configure: failed program was:" >&5 | |
15295 | cat conftest.$ac_ext >&5 | |
15296 | rm -rf conftest* | |
90dd450c VZ |
15297 | wx_cv_size_t_is_uint=yes |
15298 | ||
698dcdb6 VZ |
15299 | fi |
15300 | rm -f conftest* | |
90dd450c | 15301 | |
698dcdb6 VZ |
15302 | fi |
15303 | ||
90dd450c | 15304 | echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6 |
4f14bcd8 | 15305 | |
90dd450c | 15306 | if test "$wx_cv_size_t_is_uint" = "yes"; then |
4f14bcd8 | 15307 | cat >> confdefs.h <<\EOF |
90dd450c | 15308 | #define wxSIZE_T_IS_UINT 1 |
698dcdb6 VZ |
15309 | EOF |
15310 | ||
90dd450c VZ |
15311 | else |
15312 | echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6 | |
5a5d3c08 | 15313 | echo "configure:15314: checking if size_t is unsigned long" >&5 |
90dd450c | 15314 | if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then |
698dcdb6 VZ |
15315 | echo $ac_n "(cached) $ac_c" 1>&6 |
15316 | else | |
15317 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 15318 | #line 15319 "configure" |
10f2d63a | 15319 | #include "confdefs.h" |
90dd450c VZ |
15320 | #include <stddef.h> |
15321 | int main() { | |
15322 | ||
15323 | return 0; } | |
15324 | ||
15325 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
15326 | ||
15327 | int bar() { | |
15328 | ||
15329 | ; return 0; } | |
698dcdb6 | 15330 | EOF |
5a5d3c08 | 15331 | if { (eval echo configure:15332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 15332 | rm -rf conftest* |
90dd450c | 15333 | wx_cv_size_t_is_ulong=no |
698dcdb6 VZ |
15334 | else |
15335 | echo "configure: failed program was:" >&5 | |
15336 | cat conftest.$ac_ext >&5 | |
15337 | rm -rf conftest* | |
90dd450c VZ |
15338 | wx_cv_size_t_is_ulong=yes |
15339 | ||
698dcdb6 VZ |
15340 | fi |
15341 | rm -f conftest* | |
90dd450c | 15342 | |
698dcdb6 | 15343 | fi |
10f2d63a | 15344 | |
90dd450c | 15345 | echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6 |
10f2d63a | 15346 | |
90dd450c VZ |
15347 | if test "$wx_cv_size_t_is_ulong" = "yes"; then |
15348 | cat >> confdefs.h <<\EOF | |
15349 | #define wxSIZE_T_IS_ULONG 1 | |
4f14bcd8 GD |
15350 | EOF |
15351 | ||
15352 | fi | |
90dd450c | 15353 | fi |
1e487827 | 15354 | |
90dd450c | 15355 | ac_ext=c |
4f14bcd8 GD |
15356 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
15357 | ac_cpp='$CPP $CPPFLAGS' | |
15358 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15359 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15360 | cross_compiling=$ac_cv_prog_cc_cross | |
698dcdb6 | 15361 | |
698dcdb6 VZ |
15362 | |
15363 | ||
90dd450c | 15364 | echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6 |
5a5d3c08 | 15365 | echo "configure:15366: checking for pw_gecos in struct passwd" >&5 |
90dd450c | 15366 | if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then |
698dcdb6 VZ |
15367 | echo $ac_n "(cached) $ac_c" 1>&6 |
15368 | else | |
15369 | ||
90dd450c | 15370 | cat > conftest.$ac_ext <<EOF |
5a5d3c08 | 15371 | #line 15372 "configure" |
4f14bcd8 | 15372 | #include "confdefs.h" |
90dd450c | 15373 | #include <pwd.h> |
4f14bcd8 | 15374 | int main() { |
f6bcfd97 | 15375 | |
90dd450c VZ |
15376 | char *p; |
15377 | struct passwd *pw; | |
15378 | p = pw->pw_gecos; | |
15379 | ||
698dcdb6 VZ |
15380 | ; return 0; } |
15381 | EOF | |
5a5d3c08 | 15382 | if { (eval echo configure:15383: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
15383 | rm -rf conftest* |
15384 | ||
90dd450c VZ |
15385 | wx_cv_struct_pw_gecos=yes |
15386 | ||
10f2d63a | 15387 | else |
698dcdb6 VZ |
15388 | echo "configure: failed program was:" >&5 |
15389 | cat conftest.$ac_ext >&5 | |
15390 | rm -rf conftest* | |
15391 | ||
90dd450c VZ |
15392 | wx_cv_struct_pw_gecos=no |
15393 | ||
15394 | ||
4f14bcd8 GD |
15395 | fi |
15396 | rm -f conftest* | |
90dd450c | 15397 | |
c521c494 | 15398 | |
4f14bcd8 | 15399 | fi |
c521c494 | 15400 | |
90dd450c | 15401 | echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6 |
c521c494 | 15402 | |
90dd450c | 15403 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
4f14bcd8 | 15404 | cat >> confdefs.h <<\EOF |
90dd450c | 15405 | #define HAVE_PW_GECOS 1 |
4f14bcd8 | 15406 | EOF |
c521c494 | 15407 | |
90dd450c | 15408 | fi |
4f14bcd8 GD |
15409 | |
15410 | ||
d29b553b VZ |
15411 | WCHAR_OK=0 |
15412 | if test "$wx_cv_sizeof_wchar_t" != "0"; then | |
15413 | WCHAR_LINK= | |
7a30264c VZ |
15414 | for ac_func in wcslen |
15415 | do | |
15416 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
5a5d3c08 | 15417 | echo "configure:15418: checking for $ac_func" >&5 |
7a30264c | 15418 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
4f14bcd8 GD |
15419 | echo $ac_n "(cached) $ac_c" 1>&6 |
15420 | else | |
7a30264c | 15421 | cat > conftest.$ac_ext <<EOF |
5a5d3c08 | 15422 | #line 15423 "configure" |
4f14bcd8 | 15423 | #include "confdefs.h" |
7a30264c VZ |
15424 | /* System header to define __stub macros and hopefully few prototypes, |
15425 | which can conflict with char $ac_func(); below. */ | |
15426 | #include <assert.h> | |
4f14bcd8 GD |
15427 | /* Override any gcc2 internal prototype to avoid an error. */ |
15428 | /* We use char because int might match the return type of a gcc2 | |
15429 | builtin and then its argument prototype would still apply. */ | |
7a30264c | 15430 | char $ac_func(); |
4f14bcd8 GD |
15431 | |
15432 | int main() { | |
7a30264c VZ |
15433 | |
15434 | /* The GNU C library defines this for functions which it implements | |
15435 | to always fail with ENOSYS. Some functions are actually named | |
15436 | something starting with __ and the normal name is an alias. */ | |
15437 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15438 | choke me | |
15439 | #else | |
15440 | $ac_func(); | |
15441 | #endif | |
15442 | ||
698dcdb6 VZ |
15443 | ; return 0; } |
15444 | EOF | |
5a5d3c08 | 15445 | if { (eval echo configure:15446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15446 | rm -rf conftest* |
7a30264c | 15447 | eval "ac_cv_func_$ac_func=yes" |
c521c494 | 15448 | else |
698dcdb6 VZ |
15449 | echo "configure: failed program was:" >&5 |
15450 | cat conftest.$ac_ext >&5 | |
15451 | rm -rf conftest* | |
7a30264c | 15452 | eval "ac_cv_func_$ac_func=no" |
6232543b | 15453 | fi |
698dcdb6 | 15454 | rm -f conftest* |
1e487827 | 15455 | fi |
7a30264c VZ |
15456 | |
15457 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
4f14bcd8 | 15458 | echo "$ac_t""yes" 1>&6 |
7a30264c VZ |
15459 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
15460 | cat >> confdefs.h <<EOF | |
15461 | #define $ac_tr_func 1 | |
15462 | EOF | |
15463 | ||
15464 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 15465 | #define HAVE_WCSLEN 1 |
9d8deca0 VZ |
15466 | EOF |
15467 | ||
7a30264c VZ |
15468 | WCHAR_OK=1 |
15469 | ||
9d8deca0 | 15470 | else |
4f14bcd8 | 15471 | echo "$ac_t""no" 1>&6 |
7a30264c VZ |
15472 | fi |
15473 | done | |
9d8deca0 | 15474 | |
7a30264c VZ |
15475 | |
15476 | if test "$WCHAR_OK" = 0; then | |
15477 | if test "$TOOLKIT" = "MSW"; then | |
15478 | echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6 | |
5a5d3c08 | 15479 | echo "configure:15480: checking for wcslen in -lmsvcrt" >&5 |
7a30264c | 15480 | ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'` |
4f14bcd8 | 15481 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
698dcdb6 | 15482 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 15483 | else |
4f14bcd8 | 15484 | ac_save_LIBS="$LIBS" |
7a30264c | 15485 | LIBS="-lmsvcrt $LIBS" |
4f14bcd8 | 15486 | cat > conftest.$ac_ext <<EOF |
5a5d3c08 | 15487 | #line 15488 "configure" |
10f2d63a | 15488 | #include "confdefs.h" |
4f14bcd8 GD |
15489 | /* Override any gcc2 internal prototype to avoid an error. */ |
15490 | /* We use char because int might match the return type of a gcc2 | |
15491 | builtin and then its argument prototype would still apply. */ | |
15492 | char wcslen(); | |
10f2d63a | 15493 | |
698dcdb6 | 15494 | int main() { |
4f14bcd8 | 15495 | wcslen() |
698dcdb6 VZ |
15496 | ; return 0; } |
15497 | EOF | |
5a5d3c08 | 15498 | if { (eval echo configure:15499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15499 | rm -rf conftest* |
4f14bcd8 | 15500 | eval "ac_cv_lib_$ac_lib_var=yes" |
10f2d63a | 15501 | else |
698dcdb6 VZ |
15502 | echo "configure: failed program was:" >&5 |
15503 | cat conftest.$ac_ext >&5 | |
15504 | rm -rf conftest* | |
4f14bcd8 | 15505 | eval "ac_cv_lib_$ac_lib_var=no" |
6232543b | 15506 | fi |
698dcdb6 | 15507 | rm -f conftest* |
4f14bcd8 | 15508 | LIBS="$ac_save_LIBS" |
703e0a69 | 15509 | |
1e487827 | 15510 | fi |
4f14bcd8 GD |
15511 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
15512 | echo "$ac_t""yes" 1>&6 | |
15513 | ||
7a30264c | 15514 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 15515 | #define HAVE_WCSLEN 1 |
9d8deca0 VZ |
15516 | EOF |
15517 | ||
7a30264c VZ |
15518 | WCHAR_OK=1 |
15519 | ||
4f14bcd8 GD |
15520 | else |
15521 | echo "$ac_t""no" 1>&6 | |
d29b553b | 15522 | fi |
698dcdb6 | 15523 | |
7a30264c VZ |
15524 | else |
15525 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 | |
5a5d3c08 | 15526 | echo "configure:15527: checking for wcslen in -lw" >&5 |
7a30264c | 15527 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` |
4f14bcd8 | 15528 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
698dcdb6 VZ |
15529 | echo $ac_n "(cached) $ac_c" 1>&6 |
15530 | else | |
4f14bcd8 | 15531 | ac_save_LIBS="$LIBS" |
7a30264c | 15532 | LIBS="-lw $LIBS" |
4f14bcd8 | 15533 | cat > conftest.$ac_ext <<EOF |
5a5d3c08 | 15534 | #line 15535 "configure" |
95c8801c | 15535 | #include "confdefs.h" |
4f14bcd8 GD |
15536 | /* Override any gcc2 internal prototype to avoid an error. */ |
15537 | /* We use char because int might match the return type of a gcc2 | |
15538 | builtin and then its argument prototype would still apply. */ | |
15539 | char wcslen(); | |
95c8801c | 15540 | |
4f14bcd8 GD |
15541 | int main() { |
15542 | wcslen() | |
698dcdb6 VZ |
15543 | ; return 0; } |
15544 | EOF | |
5a5d3c08 | 15545 | if { (eval echo configure:15546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15546 | rm -rf conftest* |
4f14bcd8 | 15547 | eval "ac_cv_lib_$ac_lib_var=yes" |
95c8801c | 15548 | else |
698dcdb6 VZ |
15549 | echo "configure: failed program was:" >&5 |
15550 | cat conftest.$ac_ext >&5 | |
15551 | rm -rf conftest* | |
4f14bcd8 | 15552 | eval "ac_cv_lib_$ac_lib_var=no" |
95c8801c | 15553 | fi |
698dcdb6 | 15554 | rm -f conftest* |
4f14bcd8 | 15555 | LIBS="$ac_save_LIBS" |
95c8801c VS |
15556 | |
15557 | fi | |
4f14bcd8 GD |
15558 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
15559 | echo "$ac_t""yes" 1>&6 | |
15560 | ||
7a30264c | 15561 | cat >> confdefs.h <<\EOF |
4f14bcd8 GD |
15562 | #define HAVE_WCSLEN 1 |
15563 | EOF | |
698dcdb6 | 15564 | |
7a30264c VZ |
15565 | WCHAR_LINK=" -lw" |
15566 | WCHAR_OK=1 | |
15567 | ||
4f14bcd8 GD |
15568 | else |
15569 | echo "$ac_t""no" 1>&6 | |
15570 | fi | |
10f2d63a | 15571 | |
7a30264c | 15572 | fi |
d29b553b | 15573 | fi |
4f14bcd8 | 15574 | fi |
95c8801c | 15575 | |
d29b553b VZ |
15576 | if test "$WCHAR_OK" = 1; then |
15577 | cat >> confdefs.h <<\EOF | |
15578 | #define wxUSE_WCHAR_T 1 | |
15579 | EOF | |
10f2d63a | 15580 | |
1e487827 | 15581 | |
d29b553b | 15582 | for ac_func in wcsrtombs |
eb4efbdc | 15583 | do |
698dcdb6 | 15584 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5a5d3c08 | 15585 | echo "configure:15586: checking for $ac_func" >&5 |
698dcdb6 VZ |
15586 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15587 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15588 | else | |
15589 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 15590 | #line 15591 "configure" |
eb4efbdc VZ |
15591 | #include "confdefs.h" |
15592 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 15593 | which can conflict with char $ac_func(); below. */ |
eb4efbdc VZ |
15594 | #include <assert.h> |
15595 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15596 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15597 | builtin and then its argument prototype would still apply. */ |
15598 | char $ac_func(); | |
15599 | ||
15600 | int main() { | |
eb4efbdc VZ |
15601 | |
15602 | /* The GNU C library defines this for functions which it implements | |
15603 | to always fail with ENOSYS. Some functions are actually named | |
15604 | something starting with __ and the normal name is an alias. */ | |
15605 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15606 | choke me | |
15607 | #else | |
698dcdb6 | 15608 | $ac_func(); |
eb4efbdc VZ |
15609 | #endif |
15610 | ||
698dcdb6 | 15611 | ; return 0; } |
eb4efbdc | 15612 | EOF |
5a5d3c08 | 15613 | if { (eval echo configure:15614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15614 | rm -rf conftest* |
15615 | eval "ac_cv_func_$ac_func=yes" | |
15616 | else | |
15617 | echo "configure: failed program was:" >&5 | |
15618 | cat conftest.$ac_ext >&5 | |
15619 | rm -rf conftest* | |
15620 | eval "ac_cv_func_$ac_func=no" | |
15621 | fi | |
15622 | rm -f conftest* | |
15623 | fi | |
eb4efbdc | 15624 | |
698dcdb6 VZ |
15625 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
15626 | echo "$ac_t""yes" 1>&6 | |
15627 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15628 | cat >> confdefs.h <<EOF | |
15629 | #define $ac_tr_func 1 | |
15630 | EOF | |
15631 | ||
15632 | else | |
15633 | echo "$ac_t""no" 1>&6 | |
eb4efbdc VZ |
15634 | fi |
15635 | done | |
15636 | ||
d29b553b | 15637 | else |
a1ea5055 GD |
15638 | if test "$USE_DARWIN" = 1; then |
15639 | cat >> confdefs.h <<\EOF | |
15640 | #define wxUSE_WCHAR_T 1 | |
15641 | EOF | |
15642 | ||
15643 | else | |
15644 | echo "configure: warning: Wide character support is unavailable" 1>&2 | |
15645 | fi | |
d29b553b | 15646 | fi |
698dcdb6 | 15647 | |
4f14bcd8 | 15648 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
5a5d3c08 | 15649 | echo "configure:15650: checking for vprintf" >&5 |
4f14bcd8 | 15650 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
698dcdb6 VZ |
15651 | echo $ac_n "(cached) $ac_c" 1>&6 |
15652 | else | |
4f14bcd8 | 15653 | cat > conftest.$ac_ext <<EOF |
5a5d3c08 | 15654 | #line 15655 "configure" |
f6bcfd97 | 15655 | #include "confdefs.h" |
4f14bcd8 GD |
15656 | /* System header to define __stub macros and hopefully few prototypes, |
15657 | which can conflict with char vprintf(); below. */ | |
15658 | #include <assert.h> | |
15659 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15660 | /* We use char because int might match the return type of a gcc2 | |
15661 | builtin and then its argument prototype would still apply. */ | |
15662 | char vprintf(); | |
15663 | ||
698dcdb6 | 15664 | int main() { |
f6bcfd97 | 15665 | |
4f14bcd8 GD |
15666 | /* The GNU C library defines this for functions which it implements |
15667 | to always fail with ENOSYS. Some functions are actually named | |
15668 | something starting with __ and the normal name is an alias. */ | |
15669 | #if defined (__stub_vprintf) || defined (__stub___vprintf) | |
15670 | choke me | |
15671 | #else | |
15672 | vprintf(); | |
15673 | #endif | |
f6bcfd97 | 15674 | |
698dcdb6 VZ |
15675 | ; return 0; } |
15676 | EOF | |
5a5d3c08 | 15677 | if { (eval echo configure:15678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15678 | rm -rf conftest* |
4f14bcd8 | 15679 | eval "ac_cv_func_vprintf=yes" |
f6bcfd97 | 15680 | else |
698dcdb6 VZ |
15681 | echo "configure: failed program was:" >&5 |
15682 | cat conftest.$ac_ext >&5 | |
15683 | rm -rf conftest* | |
4f14bcd8 | 15684 | eval "ac_cv_func_vprintf=no" |
6232543b | 15685 | fi |
698dcdb6 | 15686 | rm -f conftest* |
1e487827 | 15687 | fi |
698dcdb6 | 15688 | |
4f14bcd8 GD |
15689 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then |
15690 | echo "$ac_t""yes" 1>&6 | |
15691 | cat >> confdefs.h <<\EOF | |
15692 | #define HAVE_VPRINTF 1 | |
f6bcfd97 BP |
15693 | EOF |
15694 | ||
4f14bcd8 GD |
15695 | else |
15696 | echo "$ac_t""no" 1>&6 | |
eb4efbdc VZ |
15697 | fi |
15698 | ||
4f14bcd8 GD |
15699 | if test "$ac_cv_func_vprintf" != yes; then |
15700 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
5a5d3c08 | 15701 | echo "configure:15702: checking for _doprnt" >&5 |
4f14bcd8 | 15702 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
698dcdb6 VZ |
15703 | echo $ac_n "(cached) $ac_c" 1>&6 |
15704 | else | |
15705 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 15706 | #line 15707 "configure" |
10f2d63a VZ |
15707 | #include "confdefs.h" |
15708 | /* System header to define __stub macros and hopefully few prototypes, | |
4f14bcd8 | 15709 | which can conflict with char _doprnt(); below. */ |
10f2d63a VZ |
15710 | #include <assert.h> |
15711 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15712 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 15713 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 15714 | char _doprnt(); |
698dcdb6 VZ |
15715 | |
15716 | int main() { | |
10f2d63a VZ |
15717 | |
15718 | /* The GNU C library defines this for functions which it implements | |
15719 | to always fail with ENOSYS. Some functions are actually named | |
15720 | something starting with __ and the normal name is an alias. */ | |
4f14bcd8 | 15721 | #if defined (__stub__doprnt) || defined (__stub____doprnt) |
10f2d63a VZ |
15722 | choke me |
15723 | #else | |
4f14bcd8 | 15724 | _doprnt(); |
10f2d63a VZ |
15725 | #endif |
15726 | ||
698dcdb6 | 15727 | ; return 0; } |
10f2d63a | 15728 | EOF |
5a5d3c08 | 15729 | if { (eval echo configure:15730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15730 | rm -rf conftest* |
4f14bcd8 | 15731 | eval "ac_cv_func__doprnt=yes" |
698dcdb6 VZ |
15732 | else |
15733 | echo "configure: failed program was:" >&5 | |
15734 | cat conftest.$ac_ext >&5 | |
15735 | rm -rf conftest* | |
4f14bcd8 | 15736 | eval "ac_cv_func__doprnt=no" |
698dcdb6 VZ |
15737 | fi |
15738 | rm -f conftest* | |
15739 | fi | |
270a909e | 15740 | |
4f14bcd8 | 15741 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then |
698dcdb6 | 15742 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
15743 | cat >> confdefs.h <<\EOF |
15744 | #define HAVE_DOPRNT 1 | |
698dcdb6 | 15745 | EOF |
4f14bcd8 | 15746 | |
698dcdb6 VZ |
15747 | else |
15748 | echo "$ac_t""no" 1>&6 | |
270a909e | 15749 | fi |
270a909e | 15750 | |
4f14bcd8 | 15751 | fi |
1e487827 | 15752 | |
52e8b690 | 15753 | |
52e8b690 | 15754 | |
52e8b690 | 15755 | |
52e8b690 | 15756 | |
52e8b690 | 15757 | |
4f14bcd8 | 15758 | echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6 |
5a5d3c08 | 15759 | echo "configure:15760: checking for vsnprintf" >&5 |
4f14bcd8 | 15760 | if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then |
698dcdb6 | 15761 | echo $ac_n "(cached) $ac_c" 1>&6 |
c63c7106 | 15762 | else |
4f14bcd8 | 15763 | |
af15babd | 15764 | cat > conftest.$ac_ext <<EOF |
5a5d3c08 | 15765 | #line 15766 "configure" |
c63c7106 | 15766 | #include "confdefs.h" |
698dcdb6 | 15767 | |
4f14bcd8 GD |
15768 | #include <stdio.h> |
15769 | #include <stdarg.h> | |
15770 | ||
af15babd VZ |
15771 | int main() { |
15772 | ||
4f14bcd8 GD |
15773 | int wx_test_vsnprintf(const char *, ...); |
15774 | ||
15775 | wx_test_vsnprintf("%s"); | |
15776 | return 0; | |
15777 | } | |
15778 | ||
15779 | int wx_test_vsnprintf(const char *fmt, ...) | |
15780 | { | |
15781 | char *s; | |
15782 | ||
15783 | va_list argp; | |
15784 | va_start(argp, fmt); | |
15785 | vsnprintf(s, 42, fmt, argp); | |
15786 | va_end(argp); | |
15787 | ||
af15babd VZ |
15788 | ; return 0; } |
15789 | EOF | |
5a5d3c08 | 15790 | if { (eval echo configure:15791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
15791 | rm -rf conftest* |
15792 | ||
4f14bcd8 GD |
15793 | wx_cv_func_vsnprintf=yes |
15794 | ||
af15babd VZ |
15795 | else |
15796 | echo "configure: failed program was:" >&5 | |
15797 | cat conftest.$ac_ext >&5 | |
15798 | rm -rf conftest* | |
15799 | ||
4f14bcd8 | 15800 | cat > conftest.$ac_ext <<EOF |
5a5d3c08 | 15801 | #line 15802 "configure" |
af15babd | 15802 | #include "confdefs.h" |
af15babd | 15803 | |
4f14bcd8 GD |
15804 | #include <stdio.h> |
15805 | #include <stdarg.h> | |
15806 | ||
af15babd VZ |
15807 | int main() { |
15808 | ||
4f14bcd8 GD |
15809 | int wx_test_vsnprintf(const char *, ...); |
15810 | ||
15811 | wx_test_vsnprintf("%s"); | |
15812 | return 0; | |
15813 | } | |
15814 | ||
15815 | int wx_test_vsnprintf(const char *fmt, ...) | |
15816 | { | |
15817 | char *s; | |
af15babd | 15818 | |
4f14bcd8 GD |
15819 | va_list argp; |
15820 | va_start(argp, fmt); | |
15821 | _vsnprintf(s, 42, fmt, argp); | |
15822 | va_end(argp); | |
15823 | ||
af15babd VZ |
15824 | ; return 0; } |
15825 | EOF | |
5a5d3c08 | 15826 | if { (eval echo configure:15827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd | 15827 | rm -rf conftest* |
4f14bcd8 GD |
15828 | |
15829 | wx_cv_func_vsnprintf=yes | |
15830 | ||
af15babd VZ |
15831 | else |
15832 | echo "configure: failed program was:" >&5 | |
15833 | cat conftest.$ac_ext >&5 | |
15834 | rm -rf conftest* | |
4f14bcd8 GD |
15835 | |
15836 | wx_cv_func_vsnprintf=no | |
15837 | ||
af15babd VZ |
15838 | fi |
15839 | rm -f conftest* | |
4f14bcd8 | 15840 | |
af15babd | 15841 | fi |
4f14bcd8 | 15842 | rm -f conftest* |
af15babd | 15843 | |
af15babd | 15844 | fi |
af15babd | 15845 | |
4f14bcd8 | 15846 | echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6 |
af15babd | 15847 | |
4f14bcd8 GD |
15848 | if test "$wx_cv_func_vsnprintf" = yes; then |
15849 | cat >> confdefs.h <<\EOF | |
15850 | #define HAVE_VSNPRINTF 1 | |
15851 | EOF | |
15852 | ||
15853 | else | |
f9bc1684 | 15854 | echo "configure: warning: unsafe function vsprintf will be used instead of vsnprintf" 1>&2 |
af15babd VZ |
15855 | fi |
15856 | ||
4f14bcd8 | 15857 | echo $ac_n "checking for vsscanf""... $ac_c" 1>&6 |
5a5d3c08 | 15858 | echo "configure:15859: checking for vsscanf" >&5 |
4f14bcd8 | 15859 | if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then |
af15babd VZ |
15860 | echo $ac_n "(cached) $ac_c" 1>&6 |
15861 | else | |
4f14bcd8 | 15862 | |
af15babd | 15863 | cat > conftest.$ac_ext <<EOF |
5a5d3c08 | 15864 | #line 15865 "configure" |
af15babd | 15865 | #include "confdefs.h" |
af15babd | 15866 | |
4f14bcd8 GD |
15867 | #include <stdio.h> |
15868 | #include <stdarg.h> | |
15869 | ||
af15babd VZ |
15870 | int main() { |
15871 | ||
4f14bcd8 GD |
15872 | int wx_test_vsscanf(const char *, ...); |
15873 | ||
15874 | wx_test_vsscanf("%d"); | |
15875 | return 0; | |
15876 | } | |
af15babd | 15877 | |
4f14bcd8 GD |
15878 | int wx_test_vsscanf(const char *fmt, ...) |
15879 | { | |
15880 | va_list argp; | |
15881 | va_start(argp, fmt); | |
15882 | vsscanf("42", fmt, argp); | |
15883 | va_end(argp); | |
15884 | ||
af15babd VZ |
15885 | ; return 0; } |
15886 | EOF | |
5a5d3c08 | 15887 | if { (eval echo configure:15888: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 15888 | rm -rf conftest* |
4f14bcd8 GD |
15889 | |
15890 | wx_cv_func_vsscanf=yes | |
15891 | ||
af15babd VZ |
15892 | else |
15893 | echo "configure: failed program was:" >&5 | |
15894 | cat conftest.$ac_ext >&5 | |
15895 | rm -rf conftest* | |
4f14bcd8 GD |
15896 | |
15897 | wx_cv_func_vsscanf=no | |
15898 | ||
af15babd VZ |
15899 | fi |
15900 | rm -f conftest* | |
4f14bcd8 | 15901 | |
af15babd VZ |
15902 | fi |
15903 | ||
4f14bcd8 GD |
15904 | echo "$ac_t""$wx_cv_func_vsscanf" 1>&6 |
15905 | ||
15906 | if test "$wx_cv_func_vsscanf" = yes; then | |
15907 | cat >> confdefs.h <<\EOF | |
15908 | #define HAVE_VSSCANF 1 | |
af15babd | 15909 | EOF |
4f14bcd8 | 15910 | |
af15babd | 15911 | fi |
af15babd | 15912 | |
4f14bcd8 | 15913 | if test "$TOOLKIT" != "MSW"; then |
af15babd | 15914 | |
4f14bcd8 GD |
15915 | |
15916 | ||
15917 | ac_ext=C | |
15918 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15919 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15920 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15921 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15922 | cross_compiling=$ac_cv_prog_cxx_cross | |
15923 | ||
b040e242 VS |
15924 | |
15925 | ||
15926 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
15927 | if test "${with_libiconv_prefix+set}" = set; then | |
15928 | withval="$with_libiconv_prefix" | |
15929 | ||
15930 | for dir in `echo "$withval" | tr : ' '`; do | |
15931 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
15932 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
15933 | done | |
15934 | ||
15935 | fi | |
15936 | ||
15937 | ||
15938 | echo $ac_n "checking for iconv""... $ac_c" 1>&6 | |
5a5d3c08 | 15939 | echo "configure:15940: checking for iconv" >&5 |
b040e242 | 15940 | if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then |
af15babd VZ |
15941 | echo $ac_n "(cached) $ac_c" 1>&6 |
15942 | else | |
4f14bcd8 | 15943 | |
b040e242 VS |
15944 | am_cv_func_iconv="no, consider installing GNU libiconv" |
15945 | am_cv_lib_iconv=no | |
4f14bcd8 | 15946 | cat > conftest.$ac_ext <<EOF |
5a5d3c08 | 15947 | #line 15948 "configure" |
af15babd | 15948 | #include "confdefs.h" |
b040e242 | 15949 | #include <stdlib.h> |
4f14bcd8 | 15950 | #include <iconv.h> |
af15babd | 15951 | int main() { |
b040e242 VS |
15952 | iconv_t cd = iconv_open("",""); |
15953 | iconv(cd,NULL,NULL,NULL,NULL); | |
15954 | iconv_close(cd); | |
af15babd VZ |
15955 | ; return 0; } |
15956 | EOF | |
5a5d3c08 | 15957 | if { (eval echo configure:15958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd | 15958 | rm -rf conftest* |
b040e242 | 15959 | am_cv_func_iconv=yes |
af15babd VZ |
15960 | else |
15961 | echo "configure: failed program was:" >&5 | |
15962 | cat conftest.$ac_ext >&5 | |
b040e242 VS |
15963 | fi |
15964 | rm -f conftest* | |
15965 | if test "$am_cv_func_iconv" != yes; then | |
15966 | am_save_LIBS="$LIBS" | |
15967 | LIBS="$LIBS -liconv" | |
15968 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 15969 | #line 15970 "configure" |
b040e242 VS |
15970 | #include "confdefs.h" |
15971 | #include <stdlib.h> | |
15972 | #include <iconv.h> | |
15973 | int main() { | |
15974 | iconv_t cd = iconv_open("",""); | |
15975 | iconv(cd,NULL,NULL,NULL,NULL); | |
15976 | iconv_close(cd); | |
15977 | ; return 0; } | |
15978 | EOF | |
5a5d3c08 | 15979 | if { (eval echo configure:15980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd | 15980 | rm -rf conftest* |
b040e242 VS |
15981 | am_cv_lib_iconv=yes |
15982 | am_cv_func_iconv=yes | |
15983 | else | |
15984 | echo "configure: failed program was:" >&5 | |
15985 | cat conftest.$ac_ext >&5 | |
af15babd VZ |
15986 | fi |
15987 | rm -f conftest* | |
b040e242 VS |
15988 | LIBS="$am_save_LIBS" |
15989 | fi | |
15990 | ||
15991 | fi | |
15992 | ||
15993 | echo "$ac_t""$am_cv_func_iconv" 1>&6 | |
15994 | if test "$am_cv_func_iconv" = yes; then | |
15995 | cat >> confdefs.h <<\EOF | |
15996 | #define HAVE_ICONV 1 | |
15997 | EOF | |
15998 | ||
b7043674 | 15999 | echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6 |
5a5d3c08 | 16000 | echo "configure:16001: checking if iconv needs const" >&5 |
b7043674 | 16001 | if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then |
b040e242 VS |
16002 | echo $ac_n "(cached) $ac_c" 1>&6 |
16003 | else | |
b7043674 | 16004 | cat > conftest.$ac_ext <<EOF |
5a5d3c08 | 16005 | #line 16006 "configure" |
b040e242 VS |
16006 | #include "confdefs.h" |
16007 | ||
16008 | #include <stdlib.h> | |
16009 | #include <iconv.h> | |
16010 | extern | |
16011 | #ifdef __cplusplus | |
16012 | "C" | |
16013 | #endif | |
16014 | #if defined(__STDC__) || defined(__cplusplus) | |
16015 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
16016 | #else | |
16017 | size_t iconv(); | |
16018 | #endif | |
b7043674 | 16019 | |
b040e242 | 16020 | int main() { |
af15babd | 16021 | |
b040e242 VS |
16022 | ; return 0; } |
16023 | EOF | |
5a5d3c08 | 16024 | if { (eval echo configure:16025: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
b040e242 | 16025 | rm -rf conftest* |
b7043674 | 16026 | wx_cv_func_iconv_const="no" |
b040e242 VS |
16027 | else |
16028 | echo "configure: failed program was:" >&5 | |
16029 | cat conftest.$ac_ext >&5 | |
16030 | rm -rf conftest* | |
b7043674 VZ |
16031 | wx_cv_func_iconv_const="yes" |
16032 | ||
b040e242 VS |
16033 | fi |
16034 | rm -f conftest* | |
b7043674 | 16035 | |
af15babd | 16036 | fi |
af15babd | 16037 | |
b7043674 VZ |
16038 | echo "$ac_t""$wx_cv_func_iconv_const" 1>&6 |
16039 | ||
16040 | iconv_const= | |
1c405bb5 | 16041 | if test "x$wx_cv_func_iconv_const" = "xyes"; then |
b7043674 VZ |
16042 | iconv_const="const" |
16043 | fi | |
16044 | ||
b040e242 | 16045 | cat >> confdefs.h <<EOF |
b7043674 | 16046 | #define ICONV_CONST $iconv_const |
b040e242 VS |
16047 | EOF |
16048 | ||
16049 | fi | |
16050 | LIBICONV= | |
16051 | if test "$am_cv_lib_iconv" = yes; then | |
16052 | LIBICONV="-liconv" | |
16053 | fi | |
16054 | ||
16055 | ||
16056 | LIBS="$LIBICONV $LIBS" | |
4f14bcd8 GD |
16057 | ac_ext=c |
16058 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
16059 | ac_cpp='$CPP $CPPFLAGS' | |
16060 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16061 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16062 | cross_compiling=$ac_cv_prog_cc_cross | |
af15babd | 16063 | |
af15babd | 16064 | |
4f14bcd8 GD |
16065 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
16066 | for ac_func in sigaction | |
af15babd VZ |
16067 | do |
16068 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
5a5d3c08 | 16069 | echo "configure:16070: checking for $ac_func" >&5 |
af15babd VZ |
16070 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16071 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16072 | else | |
16073 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 16074 | #line 16075 "configure" |
af15babd VZ |
16075 | #include "confdefs.h" |
16076 | /* System header to define __stub macros and hopefully few prototypes, | |
16077 | which can conflict with char $ac_func(); below. */ | |
16078 | #include <assert.h> | |
16079 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16080 | /* We use char because int might match the return type of a gcc2 | |
16081 | builtin and then its argument prototype would still apply. */ | |
16082 | char $ac_func(); | |
16083 | ||
16084 | int main() { | |
16085 | ||
16086 | /* The GNU C library defines this for functions which it implements | |
16087 | to always fail with ENOSYS. Some functions are actually named | |
16088 | something starting with __ and the normal name is an alias. */ | |
16089 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16090 | choke me | |
16091 | #else | |
16092 | $ac_func(); | |
16093 | #endif | |
16094 | ||
16095 | ; return 0; } | |
16096 | EOF | |
5a5d3c08 | 16097 | if { (eval echo configure:16098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
16098 | rm -rf conftest* |
16099 | eval "ac_cv_func_$ac_func=yes" | |
16100 | else | |
16101 | echo "configure: failed program was:" >&5 | |
16102 | cat conftest.$ac_ext >&5 | |
16103 | rm -rf conftest* | |
16104 | eval "ac_cv_func_$ac_func=no" | |
16105 | fi | |
16106 | rm -f conftest* | |
16107 | fi | |
16108 | ||
16109 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16110 | echo "$ac_t""yes" 1>&6 | |
16111 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16112 | cat >> confdefs.h <<EOF | |
16113 | #define $ac_tr_func 1 | |
16114 | EOF | |
4f14bcd8 | 16115 | |
af15babd VZ |
16116 | else |
16117 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 GD |
16118 | fi |
16119 | done | |
16120 | ||
16121 | ||
16122 | if test "$ac_cv_func_sigaction" = "no"; then | |
16123 | echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2 | |
16124 | wxUSE_ON_FATAL_EXCEPTION=no | |
16125 | fi | |
16126 | ||
16127 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
16128 | ||
16129 | ac_ext=C | |
16130 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
16131 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16132 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16133 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16134 | cross_compiling=$ac_cv_prog_cxx_cross | |
16135 | ||
16136 | ||
16137 | echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6 | |
5a5d3c08 | 16138 | echo "configure:16139: checking for sa_handler type" >&5 |
4f14bcd8 | 16139 | if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then |
af15babd VZ |
16140 | echo $ac_n "(cached) $ac_c" 1>&6 |
16141 | else | |
4f14bcd8 GD |
16142 | |
16143 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 16144 | #line 16145 "configure" |
af15babd | 16145 | #include "confdefs.h" |
4f14bcd8 | 16146 | #include <signal.h> |
af15babd | 16147 | int main() { |
4f14bcd8 GD |
16148 | |
16149 | extern void testSigHandler(int); | |
16150 | ||
16151 | struct sigaction sa; | |
16152 | sa.sa_handler = testSigHandler; | |
16153 | ||
af15babd VZ |
16154 | ; return 0; } |
16155 | EOF | |
5a5d3c08 | 16156 | if { (eval echo configure:16157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 16157 | rm -rf conftest* |
4f14bcd8 GD |
16158 | |
16159 | wx_cv_type_sa_handler=int | |
16160 | ||
af15babd VZ |
16161 | else |
16162 | echo "configure: failed program was:" >&5 | |
16163 | cat conftest.$ac_ext >&5 | |
16164 | rm -rf conftest* | |
4f14bcd8 GD |
16165 | |
16166 | wx_cv_type_sa_handler=void | |
16167 | ||
af15babd VZ |
16168 | fi |
16169 | rm -f conftest* | |
4f14bcd8 GD |
16170 | |
16171 | fi | |
16172 | ||
16173 | echo "$ac_t""$wx_cv_type_sa_handler" 1>&6 | |
16174 | ||
16175 | ac_ext=c | |
16176 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
16177 | ac_cpp='$CPP $CPPFLAGS' | |
16178 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16179 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16180 | cross_compiling=$ac_cv_prog_cc_cross | |
af15babd | 16181 | |
4f14bcd8 GD |
16182 | |
16183 | cat >> confdefs.h <<EOF | |
16184 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
af15babd VZ |
16185 | EOF |
16186 | ||
4f14bcd8 GD |
16187 | fi |
16188 | fi | |
af15babd | 16189 | |
4f14bcd8 | 16190 | for ac_func in vfork |
af15babd VZ |
16191 | do |
16192 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
5a5d3c08 | 16193 | echo "configure:16194: checking for $ac_func" >&5 |
af15babd VZ |
16194 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16195 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16196 | else | |
16197 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 16198 | #line 16199 "configure" |
af15babd VZ |
16199 | #include "confdefs.h" |
16200 | /* System header to define __stub macros and hopefully few prototypes, | |
16201 | which can conflict with char $ac_func(); below. */ | |
16202 | #include <assert.h> | |
16203 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16204 | /* We use char because int might match the return type of a gcc2 | |
16205 | builtin and then its argument prototype would still apply. */ | |
16206 | char $ac_func(); | |
16207 | ||
16208 | int main() { | |
16209 | ||
16210 | /* The GNU C library defines this for functions which it implements | |
16211 | to always fail with ENOSYS. Some functions are actually named | |
16212 | something starting with __ and the normal name is an alias. */ | |
16213 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16214 | choke me | |
16215 | #else | |
16216 | $ac_func(); | |
16217 | #endif | |
16218 | ||
16219 | ; return 0; } | |
16220 | EOF | |
5a5d3c08 | 16221 | if { (eval echo configure:16222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
16222 | rm -rf conftest* |
16223 | eval "ac_cv_func_$ac_func=yes" | |
16224 | else | |
16225 | echo "configure: failed program was:" >&5 | |
16226 | cat conftest.$ac_ext >&5 | |
16227 | rm -rf conftest* | |
16228 | eval "ac_cv_func_$ac_func=no" | |
16229 | fi | |
16230 | rm -f conftest* | |
16231 | fi | |
16232 | ||
16233 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16234 | echo "$ac_t""yes" 1>&6 | |
16235 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16236 | cat >> confdefs.h <<EOF | |
16237 | #define $ac_tr_func 1 | |
16238 | EOF | |
4f14bcd8 | 16239 | |
af15babd VZ |
16240 | else |
16241 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
16242 | fi |
16243 | done | |
16244 | ||
af15babd | 16245 | |
ade35f11 VZ |
16246 | for ac_func in mkstemp mktemp |
16247 | do | |
16248 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
5a5d3c08 | 16249 | echo "configure:16250: checking for $ac_func" >&5 |
ade35f11 VZ |
16250 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16251 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16252 | else | |
16253 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 16254 | #line 16255 "configure" |
ade35f11 VZ |
16255 | #include "confdefs.h" |
16256 | /* System header to define __stub macros and hopefully few prototypes, | |
16257 | which can conflict with char $ac_func(); below. */ | |
16258 | #include <assert.h> | |
16259 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16260 | /* We use char because int might match the return type of a gcc2 | |
16261 | builtin and then its argument prototype would still apply. */ | |
16262 | char $ac_func(); | |
16263 | ||
16264 | int main() { | |
16265 | ||
16266 | /* The GNU C library defines this for functions which it implements | |
16267 | to always fail with ENOSYS. Some functions are actually named | |
16268 | something starting with __ and the normal name is an alias. */ | |
16269 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16270 | choke me | |
16271 | #else | |
16272 | $ac_func(); | |
16273 | #endif | |
16274 | ||
16275 | ; return 0; } | |
16276 | EOF | |
5a5d3c08 | 16277 | if { (eval echo configure:16278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ade35f11 VZ |
16278 | rm -rf conftest* |
16279 | eval "ac_cv_func_$ac_func=yes" | |
16280 | else | |
16281 | echo "configure: failed program was:" >&5 | |
16282 | cat conftest.$ac_ext >&5 | |
16283 | rm -rf conftest* | |
16284 | eval "ac_cv_func_$ac_func=no" | |
16285 | fi | |
16286 | rm -f conftest* | |
16287 | fi | |
16288 | ||
16289 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16290 | echo "$ac_t""yes" 1>&6 | |
16291 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16292 | cat >> confdefs.h <<EOF | |
16293 | #define $ac_tr_func 1 | |
16294 | EOF | |
16295 | break | |
16296 | else | |
16297 | echo "$ac_t""no" 1>&6 | |
16298 | fi | |
16299 | done | |
16300 | ||
16301 | ||
4f14bcd8 | 16302 | echo $ac_n "checking for statfs""... $ac_c" 1>&6 |
5a5d3c08 | 16303 | echo "configure:16304: checking for statfs" >&5 |
4f14bcd8 GD |
16304 | if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then |
16305 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16306 | else | |
16307 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 16308 | #line 16309 "configure" |
4f14bcd8 GD |
16309 | #include "confdefs.h" |
16310 | ||
16311 | #if defined(__BSD__) | |
16312 | #include <sys/param.h> | |
16313 | #include <sys/mount.h> | |
16314 | #else | |
16315 | #include <sys/vfs.h> | |
16316 | #endif | |
16317 | ||
16318 | int main() { | |
16319 | ||
16320 | long l; | |
16321 | struct statfs fs; | |
16322 | statfs("/", &fs); | |
16323 | l = fs.f_bsize; | |
16324 | l += fs.f_blocks; | |
16325 | l += fs.f_bavail; | |
16326 | ||
16327 | ; return 0; } | |
16328 | EOF | |
5a5d3c08 | 16329 | if { (eval echo configure:16330: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
16330 | rm -rf conftest* |
16331 | ||
16332 | wx_cv_func_statfs=yes | |
16333 | ||
16334 | else | |
16335 | echo "configure: failed program was:" >&5 | |
16336 | cat conftest.$ac_ext >&5 | |
16337 | rm -rf conftest* | |
16338 | ||
16339 | wx_cv_func_statfs=no | |
af15babd VZ |
16340 | |
16341 | ||
16342 | fi | |
4f14bcd8 | 16343 | rm -f conftest* |
af15babd VZ |
16344 | |
16345 | fi | |
16346 | ||
4f14bcd8 GD |
16347 | echo "$ac_t""$wx_cv_func_statfs" 1>&6 |
16348 | ||
16349 | if test "$wx_cv_func_statfs" = "yes"; then | |
16350 | cat >> confdefs.h <<\EOF | |
16351 | #define HAVE_STATFS 1 | |
16352 | EOF | |
16353 | ||
16354 | else | |
16355 | echo $ac_n "checking for statvfs""... $ac_c" 1>&6 | |
5a5d3c08 | 16356 | echo "configure:16357: checking for statvfs" >&5 |
4f14bcd8 | 16357 | if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then |
af15babd VZ |
16358 | echo $ac_n "(cached) $ac_c" 1>&6 |
16359 | else | |
16360 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 16361 | #line 16362 "configure" |
af15babd | 16362 | #include "confdefs.h" |
af15babd | 16363 | |
4f14bcd8 GD |
16364 | #include <sys/statvfs.h> |
16365 | ||
af15babd VZ |
16366 | int main() { |
16367 | ||
4f14bcd8 GD |
16368 | long l; |
16369 | struct statvfs fs; | |
16370 | statvfs("/", &fs); | |
16371 | l = fs.f_bsize; | |
16372 | l += fs.f_blocks; | |
16373 | l += fs.f_bavail; | |
16374 | ||
af15babd VZ |
16375 | ; return 0; } |
16376 | EOF | |
5a5d3c08 | 16377 | if { (eval echo configure:16378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 16378 | rm -rf conftest* |
4f14bcd8 GD |
16379 | |
16380 | wx_cv_func_statvfs=yes | |
16381 | ||
af15babd VZ |
16382 | else |
16383 | echo "configure: failed program was:" >&5 | |
16384 | cat conftest.$ac_ext >&5 | |
16385 | rm -rf conftest* | |
4f14bcd8 GD |
16386 | |
16387 | wx_cv_func_statvfs=no | |
16388 | ||
16389 | ||
af15babd VZ |
16390 | fi |
16391 | rm -f conftest* | |
4f14bcd8 | 16392 | |
af15babd VZ |
16393 | fi |
16394 | ||
4f14bcd8 | 16395 | echo "$ac_t""$wx_cv_func_statvfs" 1>&6 |
af15babd | 16396 | |
4f14bcd8 GD |
16397 | if test "$wx_cv_func_statvfs" = "yes"; then |
16398 | cat >> confdefs.h <<\EOF | |
16399 | #define HAVE_STATVFS 1 | |
16400 | EOF | |
af15babd | 16401 | |
4f14bcd8 GD |
16402 | else |
16403 | echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2 | |
16404 | fi | |
16405 | fi | |
af15babd | 16406 | |
4f14bcd8 GD |
16407 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
16408 | for ac_func in fcntl flock | |
af15babd VZ |
16409 | do |
16410 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
5a5d3c08 | 16411 | echo "configure:16412: checking for $ac_func" >&5 |
af15babd VZ |
16412 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16413 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16414 | else | |
16415 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 16416 | #line 16417 "configure" |
af15babd VZ |
16417 | #include "confdefs.h" |
16418 | /* System header to define __stub macros and hopefully few prototypes, | |
16419 | which can conflict with char $ac_func(); below. */ | |
16420 | #include <assert.h> | |
16421 | /* Override any gcc2 internal prototype to avoid an error. */ | |
af15babd VZ |
16422 | /* We use char because int might match the return type of a gcc2 |
16423 | builtin and then its argument prototype would still apply. */ | |
16424 | char $ac_func(); | |
16425 | ||
16426 | int main() { | |
16427 | ||
16428 | /* The GNU C library defines this for functions which it implements | |
16429 | to always fail with ENOSYS. Some functions are actually named | |
16430 | something starting with __ and the normal name is an alias. */ | |
16431 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16432 | choke me | |
16433 | #else | |
16434 | $ac_func(); | |
16435 | #endif | |
16436 | ||
16437 | ; return 0; } | |
16438 | EOF | |
5a5d3c08 | 16439 | if { (eval echo configure:16440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
16440 | rm -rf conftest* |
16441 | eval "ac_cv_func_$ac_func=yes" | |
16442 | else | |
16443 | echo "configure: failed program was:" >&5 | |
16444 | cat conftest.$ac_ext >&5 | |
16445 | rm -rf conftest* | |
16446 | eval "ac_cv_func_$ac_func=no" | |
16447 | fi | |
16448 | rm -f conftest* | |
16449 | fi | |
16450 | ||
16451 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16452 | echo "$ac_t""yes" 1>&6 | |
16453 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16454 | cat >> confdefs.h <<EOF | |
16455 | #define $ac_tr_func 1 | |
16456 | EOF | |
4f14bcd8 | 16457 | break |
af15babd VZ |
16458 | else |
16459 | echo "$ac_t""no" 1>&6 | |
16460 | fi | |
16461 | done | |
16462 | ||
16463 | ||
4f14bcd8 GD |
16464 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then |
16465 | echo "configure: warning: wxSingleInstanceChecker not available" 1>&2 | |
16466 | wxUSE_SNGLINST_CHECKER=no | |
16467 | fi | |
16468 | fi | |
af15babd | 16469 | |
4f14bcd8 | 16470 | for ac_func in timegm |
af15babd VZ |
16471 | do |
16472 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
5a5d3c08 | 16473 | echo "configure:16474: checking for $ac_func" >&5 |
af15babd VZ |
16474 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16475 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16476 | else | |
16477 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 16478 | #line 16479 "configure" |
af15babd VZ |
16479 | #include "confdefs.h" |
16480 | /* System header to define __stub macros and hopefully few prototypes, | |
16481 | which can conflict with char $ac_func(); below. */ | |
16482 | #include <assert.h> | |
16483 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16484 | /* We use char because int might match the return type of a gcc2 | |
16485 | builtin and then its argument prototype would still apply. */ | |
16486 | char $ac_func(); | |
16487 | ||
698dcdb6 | 16488 | int main() { |
698dcdb6 | 16489 | |
af15babd VZ |
16490 | /* The GNU C library defines this for functions which it implements |
16491 | to always fail with ENOSYS. Some functions are actually named | |
16492 | something starting with __ and the normal name is an alias. */ | |
16493 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16494 | choke me | |
16495 | #else | |
16496 | $ac_func(); | |
16497 | #endif | |
16498 | ||
698dcdb6 VZ |
16499 | ; return 0; } |
16500 | EOF | |
5a5d3c08 | 16501 | if { (eval echo configure:16502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16502 | rm -rf conftest* |
af15babd | 16503 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
16504 | else |
16505 | echo "configure: failed program was:" >&5 | |
16506 | cat conftest.$ac_ext >&5 | |
16507 | rm -rf conftest* | |
af15babd | 16508 | eval "ac_cv_func_$ac_func=no" |
1e487827 | 16509 | fi |
9952adac | 16510 | rm -f conftest* |
af15babd | 16511 | fi |
703e0a69 | 16512 | |
af15babd VZ |
16513 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16514 | echo "$ac_t""yes" 1>&6 | |
16515 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
4f14bcd8 GD |
16516 | cat >> confdefs.h <<EOF |
16517 | #define $ac_tr_func 1 | |
16518 | EOF | |
16519 | ||
16520 | else | |
16521 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
16522 | fi |
16523 | done | |
16524 | ||
16525 | ||
4f14bcd8 | 16526 | for ac_func in putenv setenv |
10f2d63a | 16527 | do |
698dcdb6 | 16528 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5a5d3c08 | 16529 | echo "configure:16530: checking for $ac_func" >&5 |
698dcdb6 VZ |
16530 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16531 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16532 | else | |
16533 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 16534 | #line 16535 "configure" |
af15babd VZ |
16535 | #include "confdefs.h" |
16536 | /* System header to define __stub macros and hopefully few prototypes, | |
16537 | which can conflict with char $ac_func(); below. */ | |
16538 | #include <assert.h> | |
16539 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16540 | /* We use char because int might match the return type of a gcc2 | |
16541 | builtin and then its argument prototype would still apply. */ | |
16542 | char $ac_func(); | |
16543 | ||
16544 | int main() { | |
16545 | ||
16546 | /* The GNU C library defines this for functions which it implements | |
16547 | to always fail with ENOSYS. Some functions are actually named | |
16548 | something starting with __ and the normal name is an alias. */ | |
16549 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16550 | choke me | |
16551 | #else | |
16552 | $ac_func(); | |
16553 | #endif | |
16554 | ||
16555 | ; return 0; } | |
16556 | EOF | |
5a5d3c08 | 16557 | if { (eval echo configure:16558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
16558 | rm -rf conftest* |
16559 | eval "ac_cv_func_$ac_func=yes" | |
16560 | else | |
16561 | echo "configure: failed program was:" >&5 | |
16562 | cat conftest.$ac_ext >&5 | |
16563 | rm -rf conftest* | |
16564 | eval "ac_cv_func_$ac_func=no" | |
16565 | fi | |
16566 | rm -f conftest* | |
16567 | fi | |
16568 | ||
16569 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16570 | echo "$ac_t""yes" 1>&6 | |
16571 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16572 | cat >> confdefs.h <<EOF | |
16573 | #define $ac_tr_func 1 | |
16574 | EOF | |
4f14bcd8 | 16575 | break |
af15babd VZ |
16576 | else |
16577 | echo "$ac_t""no" 1>&6 | |
16578 | fi | |
af15babd VZ |
16579 | done |
16580 | ||
16581 | ||
4f14bcd8 GD |
16582 | HAVE_SOME_SLEEP_FUNC=0 |
16583 | if test "$USE_BEOS" = 1; then | |
16584 | cat >> confdefs.h <<\EOF | |
16585 | #define HAVE_SLEEP 1 | |
af15babd VZ |
16586 | EOF |
16587 | ||
4f14bcd8 | 16588 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
16589 | fi |
16590 | ||
4f14bcd8 GD |
16591 | if test "$USE_DARWIN" = 1; then |
16592 | cat >> confdefs.h <<\EOF | |
16593 | #define HAVE_USLEEP 1 | |
af15babd | 16594 | EOF |
10f2d63a | 16595 | |
4f14bcd8 | 16596 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
16597 | fi |
16598 | ||
4f14bcd8 GD |
16599 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
16600 | POSIX4_LINK= | |
16601 | for ac_func in nanosleep | |
16602 | do | |
16603 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
5a5d3c08 | 16604 | echo "configure:16605: checking for $ac_func" >&5 |
4f14bcd8 | 16605 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 | 16606 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 16607 | else |
4f14bcd8 | 16608 | cat > conftest.$ac_ext <<EOF |
5a5d3c08 | 16609 | #line 16610 "configure" |
10f2d63a | 16610 | #include "confdefs.h" |
4f14bcd8 GD |
16611 | /* System header to define __stub macros and hopefully few prototypes, |
16612 | which can conflict with char $ac_func(); below. */ | |
16613 | #include <assert.h> | |
10f2d63a VZ |
16614 | /* Override any gcc2 internal prototype to avoid an error. */ |
16615 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16616 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16617 | char $ac_func(); |
698dcdb6 VZ |
16618 | |
16619 | int main() { | |
4f14bcd8 GD |
16620 | |
16621 | /* The GNU C library defines this for functions which it implements | |
16622 | to always fail with ENOSYS. Some functions are actually named | |
16623 | something starting with __ and the normal name is an alias. */ | |
16624 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16625 | choke me | |
16626 | #else | |
16627 | $ac_func(); | |
16628 | #endif | |
16629 | ||
698dcdb6 VZ |
16630 | ; return 0; } |
16631 | EOF | |
5a5d3c08 | 16632 | if { (eval echo configure:16633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16633 | rm -rf conftest* |
4f14bcd8 | 16634 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
16635 | else |
16636 | echo "configure: failed program was:" >&5 | |
16637 | cat conftest.$ac_ext >&5 | |
16638 | rm -rf conftest* | |
4f14bcd8 | 16639 | eval "ac_cv_func_$ac_func=no" |
698dcdb6 VZ |
16640 | fi |
16641 | rm -f conftest* | |
698dcdb6 | 16642 | fi |
4f14bcd8 GD |
16643 | |
16644 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 16645 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
16646 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
16647 | cat >> confdefs.h <<EOF | |
16648 | #define $ac_tr_func 1 | |
16649 | EOF | |
16650 | cat >> confdefs.h <<\EOF | |
16651 | #define HAVE_NANOSLEEP 1 | |
16652 | EOF | |
16653 | ||
10f2d63a | 16654 | else |
698dcdb6 | 16655 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 16656 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 |
5a5d3c08 | 16657 | echo "configure:16658: checking for nanosleep in -lposix4" >&5 |
4f14bcd8 | 16658 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
16659 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
16660 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 16661 | else |
698dcdb6 | 16662 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 16663 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 16664 | cat > conftest.$ac_ext <<EOF |
5a5d3c08 | 16665 | #line 16666 "configure" |
10f2d63a VZ |
16666 | #include "confdefs.h" |
16667 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16668 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16669 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16670 | char nanosleep(); |
698dcdb6 VZ |
16671 | |
16672 | int main() { | |
4f14bcd8 | 16673 | nanosleep() |
698dcdb6 VZ |
16674 | ; return 0; } |
16675 | EOF | |
5a5d3c08 | 16676 | if { (eval echo configure:16677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16677 | rm -rf conftest* |
16678 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16679 | else | |
16680 | echo "configure: failed program was:" >&5 | |
16681 | cat conftest.$ac_ext >&5 | |
16682 | rm -rf conftest* | |
16683 | eval "ac_cv_lib_$ac_lib_var=no" | |
16684 | fi | |
16685 | rm -f conftest* | |
16686 | LIBS="$ac_save_LIBS" | |
10f2d63a | 16687 | |
698dcdb6 VZ |
16688 | fi |
16689 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16690 | echo "$ac_t""yes" 1>&6 | |
16691 | ||
4f14bcd8 GD |
16692 | cat >> confdefs.h <<\EOF |
16693 | #define HAVE_NANOSLEEP 1 | |
16694 | EOF | |
16695 | ||
3d63bc3a | 16696 | POSIX4_LINK=" -lposix4" |
4f14bcd8 | 16697 | |
10f2d63a | 16698 | else |
698dcdb6 | 16699 | echo "$ac_t""no" 1>&6 |
10f2d63a | 16700 | |
4f14bcd8 GD |
16701 | for ac_func in usleep |
16702 | do | |
16703 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
5a5d3c08 | 16704 | echo "configure:16705: checking for $ac_func" >&5 |
4f14bcd8 | 16705 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 | 16706 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 16707 | else |
698dcdb6 | 16708 | cat > conftest.$ac_ext <<EOF |
5a5d3c08 | 16709 | #line 16710 "configure" |
10f2d63a | 16710 | #include "confdefs.h" |
4f14bcd8 GD |
16711 | /* System header to define __stub macros and hopefully few prototypes, |
16712 | which can conflict with char $ac_func(); below. */ | |
16713 | #include <assert.h> | |
16714 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16715 | /* We use char because int might match the return type of a gcc2 | |
16716 | builtin and then its argument prototype would still apply. */ | |
16717 | char $ac_func(); | |
16718 | ||
16719 | int main() { | |
16720 | ||
16721 | /* The GNU C library defines this for functions which it implements | |
16722 | to always fail with ENOSYS. Some functions are actually named | |
16723 | something starting with __ and the normal name is an alias. */ | |
16724 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16725 | choke me | |
16726 | #else | |
16727 | $ac_func(); | |
16728 | #endif | |
16729 | ||
16730 | ; return 0; } | |
698dcdb6 | 16731 | EOF |
5a5d3c08 | 16732 | if { (eval echo configure:16733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16733 | rm -rf conftest* |
4f14bcd8 | 16734 | eval "ac_cv_func_$ac_func=yes" |
1e487827 | 16735 | else |
698dcdb6 | 16736 | echo "configure: failed program was:" >&5 |
10f2d63a | 16737 | cat conftest.$ac_ext >&5 |
698dcdb6 | 16738 | rm -rf conftest* |
4f14bcd8 | 16739 | eval "ac_cv_func_$ac_func=no" |
10f2d63a | 16740 | fi |
698dcdb6 | 16741 | rm -f conftest* |
10f2d63a | 16742 | fi |
4f14bcd8 GD |
16743 | |
16744 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 16745 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
16746 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
16747 | cat >> confdefs.h <<EOF | |
16748 | #define $ac_tr_func 1 | |
16749 | EOF | |
16750 | cat >> confdefs.h <<\EOF | |
16751 | #define HAVE_USLEEP 1 | |
16752 | EOF | |
16753 | ||
698dcdb6 VZ |
16754 | else |
16755 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 GD |
16756 | echo "configure: warning: wxSleep() function will not work" 1>&2 |
16757 | ||
10f2d63a | 16758 | fi |
4f14bcd8 | 16759 | done |
10f2d63a | 16760 | |
4f14bcd8 | 16761 | |
698dcdb6 | 16762 | |
6232543b | 16763 | fi |
10f2d63a | 16764 | |
698dcdb6 | 16765 | |
4f14bcd8 | 16766 | |
1e487827 | 16767 | fi |
4f14bcd8 | 16768 | done |
703e0a69 | 16769 | |
10f2d63a VZ |
16770 | fi |
16771 | ||
4f14bcd8 | 16772 | for ac_func in uname gethostname |
70846f0a | 16773 | do |
698dcdb6 | 16774 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5a5d3c08 | 16775 | echo "configure:16776: checking for $ac_func" >&5 |
698dcdb6 VZ |
16776 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16777 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16778 | else | |
16779 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 16780 | #line 16781 "configure" |
70846f0a VZ |
16781 | #include "confdefs.h" |
16782 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16783 | which can conflict with char $ac_func(); below. */ |
70846f0a VZ |
16784 | #include <assert.h> |
16785 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16786 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16787 | builtin and then its argument prototype would still apply. */ |
16788 | char $ac_func(); | |
16789 | ||
16790 | int main() { | |
70846f0a VZ |
16791 | |
16792 | /* The GNU C library defines this for functions which it implements | |
16793 | to always fail with ENOSYS. Some functions are actually named | |
16794 | something starting with __ and the normal name is an alias. */ | |
16795 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16796 | choke me | |
16797 | #else | |
698dcdb6 | 16798 | $ac_func(); |
70846f0a VZ |
16799 | #endif |
16800 | ||
698dcdb6 | 16801 | ; return 0; } |
70846f0a | 16802 | EOF |
5a5d3c08 | 16803 | if { (eval echo configure:16804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16804 | rm -rf conftest* |
16805 | eval "ac_cv_func_$ac_func=yes" | |
16806 | else | |
16807 | echo "configure: failed program was:" >&5 | |
16808 | cat conftest.$ac_ext >&5 | |
16809 | rm -rf conftest* | |
16810 | eval "ac_cv_func_$ac_func=no" | |
16811 | fi | |
16812 | rm -f conftest* | |
16813 | fi | |
70846f0a | 16814 | |
698dcdb6 VZ |
16815 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16816 | echo "$ac_t""yes" 1>&6 | |
16817 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16818 | cat >> confdefs.h <<EOF | |
16819 | #define $ac_tr_func 1 | |
16820 | EOF | |
4f14bcd8 | 16821 | break |
698dcdb6 VZ |
16822 | else |
16823 | echo "$ac_t""no" 1>&6 | |
70846f0a VZ |
16824 | fi |
16825 | done | |
16826 | ||
698dcdb6 | 16827 | |
4f14bcd8 GD |
16828 | |
16829 | ac_ext=C | |
16830 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
16831 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16832 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16833 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16834 | cross_compiling=$ac_cv_prog_cxx_cross | |
16835 | ||
16836 | ||
16837 | for ac_func in strtok_r | |
10f2d63a | 16838 | do |
4f14bcd8 | 16839 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5a5d3c08 | 16840 | echo "configure:16841: checking for $ac_func" >&5 |
4f14bcd8 | 16841 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 VZ |
16842 | echo $ac_n "(cached) $ac_c" 1>&6 |
16843 | else | |
16844 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 16845 | #line 16846 "configure" |
10f2d63a | 16846 | #include "confdefs.h" |
4f14bcd8 GD |
16847 | /* System header to define __stub macros and hopefully few prototypes, |
16848 | which can conflict with char $ac_func(); below. */ | |
16849 | #include <assert.h> | |
16850 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16851 | #ifdef __cplusplus | |
16852 | extern "C" | |
16853 | #endif | |
16854 | /* We use char because int might match the return type of a gcc2 | |
16855 | builtin and then its argument prototype would still apply. */ | |
16856 | char $ac_func(); | |
16857 | ||
16858 | int main() { | |
16859 | ||
16860 | /* The GNU C library defines this for functions which it implements | |
16861 | to always fail with ENOSYS. Some functions are actually named | |
16862 | something starting with __ and the normal name is an alias. */ | |
16863 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16864 | choke me | |
16865 | #else | |
16866 | $ac_func(); | |
16867 | #endif | |
16868 | ||
16869 | ; return 0; } | |
698dcdb6 | 16870 | EOF |
5a5d3c08 | 16871 | if { (eval echo configure:16872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16872 | rm -rf conftest* |
4f14bcd8 | 16873 | eval "ac_cv_func_$ac_func=yes" |
1e487827 | 16874 | else |
698dcdb6 | 16875 | echo "configure: failed program was:" >&5 |
10f2d63a | 16876 | cat conftest.$ac_ext >&5 |
698dcdb6 | 16877 | rm -rf conftest* |
4f14bcd8 | 16878 | eval "ac_cv_func_$ac_func=no" |
10f2d63a | 16879 | fi |
698dcdb6 | 16880 | rm -f conftest* |
10f2d63a | 16881 | fi |
4f14bcd8 GD |
16882 | |
16883 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 16884 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 | 16885 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
698dcdb6 | 16886 | cat >> confdefs.h <<EOF |
4f14bcd8 | 16887 | #define $ac_tr_func 1 |
10f2d63a | 16888 | EOF |
698dcdb6 VZ |
16889 | |
16890 | else | |
16891 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
16892 | fi |
16893 | done | |
16894 | ||
698dcdb6 | 16895 | |
4f14bcd8 GD |
16896 | ac_ext=c |
16897 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
16898 | ac_cpp='$CPP $CPPFLAGS' | |
16899 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16900 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16901 | cross_compiling=$ac_cv_prog_cc_cross | |
16902 | ||
16903 | ||
16904 | INET_LINK= | |
16905 | for ac_func in inet_addr | |
16906 | do | |
16907 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
5a5d3c08 | 16908 | echo "configure:16909: checking for $ac_func" >&5 |
4f14bcd8 | 16909 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 | 16910 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 16911 | else |
4f14bcd8 | 16912 | cat > conftest.$ac_ext <<EOF |
5a5d3c08 | 16913 | #line 16914 "configure" |
10f2d63a | 16914 | #include "confdefs.h" |
4f14bcd8 GD |
16915 | /* System header to define __stub macros and hopefully few prototypes, |
16916 | which can conflict with char $ac_func(); below. */ | |
16917 | #include <assert.h> | |
10f2d63a VZ |
16918 | /* Override any gcc2 internal prototype to avoid an error. */ |
16919 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16920 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16921 | char $ac_func(); |
698dcdb6 VZ |
16922 | |
16923 | int main() { | |
4f14bcd8 GD |
16924 | |
16925 | /* The GNU C library defines this for functions which it implements | |
16926 | to always fail with ENOSYS. Some functions are actually named | |
16927 | something starting with __ and the normal name is an alias. */ | |
16928 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16929 | choke me | |
16930 | #else | |
16931 | $ac_func(); | |
16932 | #endif | |
16933 | ||
698dcdb6 VZ |
16934 | ; return 0; } |
16935 | EOF | |
5a5d3c08 | 16936 | if { (eval echo configure:16937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16937 | rm -rf conftest* |
4f14bcd8 | 16938 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
16939 | else |
16940 | echo "configure: failed program was:" >&5 | |
16941 | cat conftest.$ac_ext >&5 | |
16942 | rm -rf conftest* | |
4f14bcd8 | 16943 | eval "ac_cv_func_$ac_func=no" |
698dcdb6 VZ |
16944 | fi |
16945 | rm -f conftest* | |
698dcdb6 | 16946 | fi |
4f14bcd8 GD |
16947 | |
16948 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 16949 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
16950 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
16951 | cat >> confdefs.h <<EOF | |
16952 | #define $ac_tr_func 1 | |
16953 | EOF | |
16954 | cat >> confdefs.h <<\EOF | |
16955 | #define HAVE_INET_ADDR 1 | |
10f2d63a VZ |
16956 | EOF |
16957 | ||
16958 | else | |
698dcdb6 | 16959 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 16960 | echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6 |
5a5d3c08 | 16961 | echo "configure:16962: checking for inet_addr in -lnsl" >&5 |
4f14bcd8 | 16962 | ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
16963 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
16964 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 16965 | else |
698dcdb6 | 16966 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 16967 | LIBS="-lnsl $LIBS" |
698dcdb6 | 16968 | cat > conftest.$ac_ext <<EOF |
5a5d3c08 | 16969 | #line 16970 "configure" |
10f2d63a VZ |
16970 | #include "confdefs.h" |
16971 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16972 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16973 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16974 | char inet_addr(); |
698dcdb6 VZ |
16975 | |
16976 | int main() { | |
4f14bcd8 | 16977 | inet_addr() |
698dcdb6 VZ |
16978 | ; return 0; } |
16979 | EOF | |
5a5d3c08 | 16980 | if { (eval echo configure:16981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16981 | rm -rf conftest* |
16982 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16983 | else | |
16984 | echo "configure: failed program was:" >&5 | |
16985 | cat conftest.$ac_ext >&5 | |
16986 | rm -rf conftest* | |
16987 | eval "ac_cv_lib_$ac_lib_var=no" | |
16988 | fi | |
16989 | rm -f conftest* | |
16990 | LIBS="$ac_save_LIBS" | |
16991 | ||
16992 | fi | |
16993 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16994 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 16995 | INET_LINK="nsl" |
10f2d63a | 16996 | else |
698dcdb6 | 16997 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 16998 | echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6 |
5a5d3c08 | 16999 | echo "configure:17000: checking for inet_addr in -lresolv" >&5 |
4f14bcd8 | 17000 | ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
17001 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
17002 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 17003 | else |
698dcdb6 | 17004 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17005 | LIBS="-lresolv $LIBS" |
698dcdb6 | 17006 | cat > conftest.$ac_ext <<EOF |
5a5d3c08 | 17007 | #line 17008 "configure" |
10f2d63a VZ |
17008 | #include "confdefs.h" |
17009 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17010 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 17011 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 17012 | char inet_addr(); |
698dcdb6 VZ |
17013 | |
17014 | int main() { | |
4f14bcd8 | 17015 | inet_addr() |
698dcdb6 VZ |
17016 | ; return 0; } |
17017 | EOF | |
5a5d3c08 | 17018 | if { (eval echo configure:17019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17019 | rm -rf conftest* |
17020 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17021 | else | |
17022 | echo "configure: failed program was:" >&5 | |
17023 | cat conftest.$ac_ext >&5 | |
17024 | rm -rf conftest* | |
17025 | eval "ac_cv_lib_$ac_lib_var=no" | |
17026 | fi | |
17027 | rm -f conftest* | |
17028 | LIBS="$ac_save_LIBS" | |
17029 | ||
17030 | fi | |
17031 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17032 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 17033 | INET_LINK="resolv" |
698dcdb6 | 17034 | else |
4f14bcd8 | 17035 | echo "$ac_t""no" 1>&6 |
3c011993 | 17036 | echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6 |
5a5d3c08 | 17037 | echo "configure:17038: checking for inet_addr in -lsocket" >&5 |
3c011993 VZ |
17038 | ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'` |
17039 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17040 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17041 | else | |
17042 | ac_save_LIBS="$LIBS" | |
17043 | LIBS="-lsocket $LIBS" | |
17044 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 17045 | #line 17046 "configure" |
3c011993 VZ |
17046 | #include "confdefs.h" |
17047 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17048 | /* We use char because int might match the return type of a gcc2 | |
17049 | builtin and then its argument prototype would still apply. */ | |
17050 | char inet_addr(); | |
17051 | ||
17052 | int main() { | |
17053 | inet_addr() | |
17054 | ; return 0; } | |
17055 | EOF | |
5a5d3c08 | 17056 | if { (eval echo configure:17057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3c011993 VZ |
17057 | rm -rf conftest* |
17058 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17059 | else | |
17060 | echo "configure: failed program was:" >&5 | |
17061 | cat conftest.$ac_ext >&5 | |
17062 | rm -rf conftest* | |
17063 | eval "ac_cv_lib_$ac_lib_var=no" | |
17064 | fi | |
17065 | rm -f conftest* | |
17066 | LIBS="$ac_save_LIBS" | |
17067 | ||
17068 | fi | |
17069 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17070 | echo "$ac_t""yes" 1>&6 | |
17071 | INET_LINK="socket" | |
17072 | ||
17073 | else | |
17074 | echo "$ac_t""no" 1>&6 | |
17075 | fi | |
17076 | ||
17077 | ||
4f14bcd8 | 17078 | fi |
698dcdb6 | 17079 | |
4f14bcd8 | 17080 | |
698dcdb6 | 17081 | fi |
4f14bcd8 GD |
17082 | |
17083 | ||
698dcdb6 VZ |
17084 | |
17085 | fi | |
4f14bcd8 GD |
17086 | done |
17087 | ||
17088 | ||
17089 | for ac_func in inet_aton | |
17090 | do | |
17091 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
5a5d3c08 | 17092 | echo "configure:17093: checking for $ac_func" >&5 |
4f14bcd8 | 17093 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 VZ |
17094 | echo $ac_n "(cached) $ac_c" 1>&6 |
17095 | else | |
4f14bcd8 | 17096 | cat > conftest.$ac_ext <<EOF |
5a5d3c08 | 17097 | #line 17098 "configure" |
f6bcfd97 | 17098 | #include "confdefs.h" |
4f14bcd8 GD |
17099 | /* System header to define __stub macros and hopefully few prototypes, |
17100 | which can conflict with char $ac_func(); below. */ | |
17101 | #include <assert.h> | |
f6bcfd97 BP |
17102 | /* Override any gcc2 internal prototype to avoid an error. */ |
17103 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 17104 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 17105 | char $ac_func(); |
698dcdb6 VZ |
17106 | |
17107 | int main() { | |
4f14bcd8 GD |
17108 | |
17109 | /* The GNU C library defines this for functions which it implements | |
17110 | to always fail with ENOSYS. Some functions are actually named | |
17111 | something starting with __ and the normal name is an alias. */ | |
17112 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17113 | choke me | |
17114 | #else | |
17115 | $ac_func(); | |
17116 | #endif | |
17117 | ||
698dcdb6 VZ |
17118 | ; return 0; } |
17119 | EOF | |
5a5d3c08 | 17120 | if { (eval echo configure:17121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17121 | rm -rf conftest* |
4f14bcd8 | 17122 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
17123 | else |
17124 | echo "configure: failed program was:" >&5 | |
17125 | cat conftest.$ac_ext >&5 | |
17126 | rm -rf conftest* | |
4f14bcd8 | 17127 | eval "ac_cv_func_$ac_func=no" |
698dcdb6 VZ |
17128 | fi |
17129 | rm -f conftest* | |
698dcdb6 | 17130 | fi |
4f14bcd8 GD |
17131 | |
17132 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 17133 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
17134 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
17135 | cat >> confdefs.h <<EOF | |
17136 | #define $ac_tr_func 1 | |
17137 | EOF | |
17138 | cat >> confdefs.h <<\EOF | |
17139 | #define HAVE_INET_ATON 1 | |
17140 | EOF | |
17141 | ||
10f2d63a | 17142 | else |
698dcdb6 | 17143 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 17144 | echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6 |
5a5d3c08 | 17145 | echo "configure:17146: checking for inet_aton in -l$INET_LINK" >&5 |
4f14bcd8 | 17146 | ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
17147 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
17148 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 17149 | else |
698dcdb6 | 17150 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17151 | LIBS="-l$INET_LINK $LIBS" |
698dcdb6 | 17152 | cat > conftest.$ac_ext <<EOF |
5a5d3c08 | 17153 | #line 17154 "configure" |
10f2d63a | 17154 | #include "confdefs.h" |
6232543b | 17155 | /* Override any gcc2 internal prototype to avoid an error. */ |
6232543b | 17156 | /* We use char because int might match the return type of a gcc2 |
698dcdb6 | 17157 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 17158 | char inet_aton(); |
698dcdb6 VZ |
17159 | |
17160 | int main() { | |
4f14bcd8 | 17161 | inet_aton() |
698dcdb6 VZ |
17162 | ; return 0; } |
17163 | EOF | |
5a5d3c08 | 17164 | if { (eval echo configure:17165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17165 | rm -rf conftest* |
17166 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17167 | else | |
17168 | echo "configure: failed program was:" >&5 | |
17169 | cat conftest.$ac_ext >&5 | |
17170 | rm -rf conftest* | |
17171 | eval "ac_cv_lib_$ac_lib_var=no" | |
17172 | fi | |
17173 | rm -f conftest* | |
17174 | LIBS="$ac_save_LIBS" | |
10f2d63a | 17175 | |
698dcdb6 VZ |
17176 | fi |
17177 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17178 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 GD |
17179 | cat >> confdefs.h <<\EOF |
17180 | #define HAVE_INET_ATON 1 | |
17181 | EOF | |
17182 | ||
698dcdb6 VZ |
17183 | else |
17184 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
17185 | fi |
17186 | ||
4f14bcd8 | 17187 | |
10f2d63a | 17188 | fi |
4f14bcd8 | 17189 | done |
10f2d63a | 17190 | |
4f14bcd8 GD |
17191 | |
17192 | if test "x$INET_LINK" != "x"; then | |
17193 | cat >> confdefs.h <<\EOF | |
17194 | #define HAVE_INET_ADDR 1 | |
17195 | EOF | |
17196 | ||
3d63bc3a | 17197 | INET_LINK=" -l$INET_LINK" |
6232543b | 17198 | fi |
10f2d63a | 17199 | |
1e487827 | 17200 | fi |
703e0a69 | 17201 | |
698dcdb6 | 17202 | |
4f14bcd8 GD |
17203 | cat > confcache <<\EOF |
17204 | # This file is a shell script that caches the results of configure | |
17205 | # tests run on this system so they can be shared between configure | |
17206 | # scripts and configure runs. It is not useful on other systems. | |
17207 | # If it contains results you don't want to keep, you may remove or edit it. | |
17208 | # | |
17209 | # By default, configure uses ./config.cache as the cache file, | |
17210 | # creating it if it does not exist already. You can give configure | |
17211 | # the --cache-file=FILE option to use a different cache file; that is | |
17212 | # what configure does when it calls configure scripts in | |
17213 | # subdirectories, so they share the cache. | |
17214 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
17215 | # config.status only pays attention to the cache file if you give it the | |
17216 | # --recheck option to rerun configure. | |
17217 | # | |
f6bcfd97 | 17218 | EOF |
4f14bcd8 GD |
17219 | # The following way of writing the cache mishandles newlines in values, |
17220 | # but we know of no workaround that is simple, portable, and efficient. | |
17221 | # So, don't put newlines in cache variables' values. | |
17222 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
17223 | # and sets the high bit in the cache file unless we assign to the vars. | |
17224 | (set) 2>&1 | | |
17225 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
17226 | *ac_space=\ *) | |
17227 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
17228 | # turns \\\\ into \\, and sed turns \\ into \). | |
17229 | sed -n \ | |
17230 | -e "s/'/'\\\\''/g" \ | |
17231 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
17232 | ;; | |
17233 | *) | |
17234 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
17235 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
17236 | ;; | |
17237 | esac >> confcache | |
17238 | if cmp -s $cache_file confcache; then | |
17239 | : | |
17240 | else | |
17241 | if test -w $cache_file; then | |
17242 | echo "updating cache $cache_file" | |
17243 | cat confcache > $cache_file | |
f6bcfd97 | 17244 | else |
4f14bcd8 | 17245 | echo "not updating unwritable cache $cache_file" |
f6bcfd97 | 17246 | fi |
4f14bcd8 GD |
17247 | fi |
17248 | rm -f confcache | |
f6bcfd97 | 17249 | |
4f14bcd8 GD |
17250 | |
17251 | ||
009fead0 | 17252 | CPP_MT_FLAG= |
4f14bcd8 GD |
17253 | if test "$TOOLKIT" != "MSW"; then |
17254 | ||
009fead0 | 17255 | |
7274f1c7 | 17256 | THREADS_LINK= |
009fead0 | 17257 | THREADS_CFLAGS= |
7274f1c7 RL |
17258 | |
17259 | if test "$wxUSE_THREADS" = "yes" ; then | |
17260 | if test "$wxUSE_WINE" = 1 ; then | |
156b2523 | 17261 | echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2 |
7274f1c7 RL |
17262 | wxUSE_THREADS="no" |
17263 | elif test "$USE_BEOS" = 1; then | |
156b2523 | 17264 | echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2 |
7274f1c7 RL |
17265 | wxUSE_THREADS="no" |
17266 | fi | |
4f14bcd8 | 17267 | fi |
4f14bcd8 | 17268 | |
7274f1c7 | 17269 | if test "$wxUSE_THREADS" = "yes" ; then |
009fead0 | 17270 | |
3010d50a | 17271 | |
009fead0 VZ |
17272 | THREAD_OPTS="-pthread" |
17273 | case "${host}" in | |
17274 | *-*-solaris2* | *-*-sunos4* ) | |
17275 | if test "x$GCC" = "xyes"; then | |
126be6b4 | 17276 | THREAD_OPTS="-pthreads $THREAD_OPTS" |
009fead0 VZ |
17277 | else |
17278 | THREAD_OPTS="-mt $THREAD_OPTS" | |
17279 | fi | |
17280 | ;; | |
17281 | *-*-freebsd*) | |
17282 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
17283 | ;; | |
4101db81 | 17284 | *-*-darwin*) |
8f4a9a10 | 17285 | THREAD_OPTS="" |
4101db81 | 17286 | ;; |
8f4a9a10 | 17287 | *-*-aix*) |
009fead0 VZ |
17288 | THREAD_OPTS="pthreads" |
17289 | ;; | |
009fead0 | 17290 | esac |
4f14bcd8 | 17291 | |
02a1dfba | 17292 | THREAD_OPTS="$THREAD_OPTS pthread none" |
595e0e44 | 17293 | |
009fead0 VZ |
17294 | THREADS_OK=no |
17295 | for flag in $THREAD_OPTS; do | |
17296 | case $flag in | |
17297 | none) | |
17298 | echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6 | |
5a5d3c08 | 17299 | echo "configure:17300: checking whether pthreads work without any flags" >&5 |
009fead0 | 17300 | ;; |
698dcdb6 | 17301 | |
009fead0 VZ |
17302 | -*) |
17303 | echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6 | |
5a5d3c08 | 17304 | echo "configure:17305: checking whether pthreads work with $flag" >&5 |
009fead0 VZ |
17305 | THREADS_CFLAGS="$flag" |
17306 | ;; | |
698dcdb6 | 17307 | |
009fead0 VZ |
17308 | *) |
17309 | echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6 | |
5a5d3c08 | 17310 | echo "configure:17311: checking for the pthreads library -l$flag" >&5 |
009fead0 VZ |
17311 | THREADS_LINK="-l$flag" |
17312 | ;; | |
17313 | esac | |
10f2d63a | 17314 | |
009fead0 VZ |
17315 | save_LIBS="$LIBS" |
17316 | save_CFLAGS="$CFLAGS" | |
17317 | LIBS="$THREADS_LINK $LIBS" | |
04727afd | 17318 | CFLAGS="$THREADS_CFLAGS $CFLAGS" |
10f2d63a | 17319 | |
009fead0 | 17320 | cat > conftest.$ac_ext <<EOF |
5a5d3c08 | 17321 | #line 17322 "configure" |
009fead0 VZ |
17322 | #include "confdefs.h" |
17323 | #include <pthread.h> | |
4f14bcd8 | 17324 | int main() { |
009fead0 | 17325 | pthread_create(0,0,0,0); |
698dcdb6 VZ |
17326 | ; return 0; } |
17327 | EOF | |
5a5d3c08 | 17328 | if { (eval echo configure:17329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17329 | rm -rf conftest* |
009fead0 | 17330 | THREADS_OK=yes |
10f2d63a | 17331 | else |
698dcdb6 VZ |
17332 | echo "configure: failed program was:" >&5 |
17333 | cat conftest.$ac_ext >&5 | |
6232543b | 17334 | fi |
698dcdb6 | 17335 | rm -f conftest* |
698dcdb6 | 17336 | |
009fead0 VZ |
17337 | LIBS="$save_LIBS" |
17338 | CFLAGS="$save_CFLAGS" | |
d9b9876f | 17339 | |
009fead0 VZ |
17340 | echo "$ac_t""$THREADS_OK" 1>&6 |
17341 | if test "x$THREADS_OK" = "xyes"; then | |
17342 | break; | |
17343 | fi | |
d9b9876f | 17344 | |
009fead0 VZ |
17345 | THREADS_LINK="" |
17346 | THREADS_CFLAGS="" | |
17347 | done | |
4f14bcd8 | 17348 | |
009fead0 VZ |
17349 | if test "x$THREADS_OK" != "xyes"; then |
17350 | wxUSE_THREADS=no | |
17351 | echo "configure: warning: No thread support on this system... disabled" 1>&2 | |
17352 | else | |
fe5a9cab VZ |
17353 | LIBS="$THREADS_LINK $THREADS_CFLAGS $LIBS" |
17354 | ||
009fead0 | 17355 | echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6 |
5a5d3c08 | 17356 | echo "configure:17357: checking if more special flags are required for pthreads" >&5 |
009fead0 VZ |
17357 | flag=no |
17358 | case "${host}" in | |
17359 | *-aix* | *-freebsd*) | |
17360 | flag="-D_THREAD_SAFE" | |
17361 | ;; | |
17362 | *solaris* | alpha*-osf*) | |
17363 | flag="-D_REENTRANT" | |
17364 | ;; | |
17365 | esac | |
17366 | echo "$ac_t""${flag}" 1>&6 | |
17367 | if test "x$flag" != xno; then | |
04727afd | 17368 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" |
009fead0 VZ |
17369 | fi |
17370 | ||
009fead0 | 17371 | if test "x$THREADS_CFLAGS" != "x"; then |
04727afd | 17372 | CFLAGS="$CFLAGS $THREADS_CFLAGS" |
009fead0 VZ |
17373 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" |
17374 | fi | |
17375 | fi | |
4f14bcd8 | 17376 | fi |
4f14bcd8 | 17377 | |
7274f1c7 RL |
17378 | if test "$wxUSE_THREADS" = "yes" ; then |
17379 | for ac_func in thr_setconcurrency | |
4f14bcd8 GD |
17380 | do |
17381 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
5a5d3c08 | 17382 | echo "configure:17383: checking for $ac_func" >&5 |
4f14bcd8 | 17383 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 VZ |
17384 | echo $ac_n "(cached) $ac_c" 1>&6 |
17385 | else | |
4f14bcd8 | 17386 | cat > conftest.$ac_ext <<EOF |
5a5d3c08 | 17387 | #line 17388 "configure" |
d9b9876f | 17388 | #include "confdefs.h" |
4f14bcd8 GD |
17389 | /* System header to define __stub macros and hopefully few prototypes, |
17390 | which can conflict with char $ac_func(); below. */ | |
17391 | #include <assert.h> | |
17392 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17393 | /* We use char because int might match the return type of a gcc2 | |
17394 | builtin and then its argument prototype would still apply. */ | |
17395 | char $ac_func(); | |
17396 | ||
698dcdb6 | 17397 | int main() { |
d9b9876f | 17398 | |
4f14bcd8 GD |
17399 | /* The GNU C library defines this for functions which it implements |
17400 | to always fail with ENOSYS. Some functions are actually named | |
17401 | something starting with __ and the normal name is an alias. */ | |
17402 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17403 | choke me | |
17404 | #else | |
17405 | $ac_func(); | |
17406 | #endif | |
17407 | ||
698dcdb6 VZ |
17408 | ; return 0; } |
17409 | EOF | |
5a5d3c08 | 17410 | if { (eval echo configure:17411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17411 | rm -rf conftest* |
4f14bcd8 | 17412 | eval "ac_cv_func_$ac_func=yes" |
d9b9876f | 17413 | else |
698dcdb6 VZ |
17414 | echo "configure: failed program was:" >&5 |
17415 | cat conftest.$ac_ext >&5 | |
17416 | rm -rf conftest* | |
4f14bcd8 | 17417 | eval "ac_cv_func_$ac_func=no" |
6232543b | 17418 | fi |
698dcdb6 | 17419 | rm -f conftest* |
1e487827 | 17420 | fi |
698dcdb6 | 17421 | |
4f14bcd8 GD |
17422 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17423 | echo "$ac_t""yes" 1>&6 | |
17424 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17425 | cat >> confdefs.h <<EOF | |
17426 | #define $ac_tr_func 1 | |
d9b9876f | 17427 | EOF |
4f14bcd8 GD |
17428 | |
17429 | else | |
17430 | echo "$ac_t""no" 1>&6 | |
10f2d63a | 17431 | fi |
4f14bcd8 | 17432 | done |
10f2d63a | 17433 | |
10f2d63a | 17434 | |
7274f1c7 | 17435 | for ac_hdr in sched.h |
4f14bcd8 GD |
17436 | do |
17437 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
17438 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
5a5d3c08 | 17439 | echo "configure:17440: checking for $ac_hdr" >&5 |
4f14bcd8 GD |
17440 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
17441 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 17442 | else |
4f14bcd8 | 17443 | cat > conftest.$ac_ext <<EOF |
5a5d3c08 | 17444 | #line 17445 "configure" |
4f14bcd8 GD |
17445 | #include "confdefs.h" |
17446 | #include <$ac_hdr> | |
13111b2a | 17447 | EOF |
4f14bcd8 | 17448 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5a5d3c08 | 17449 | { (eval echo configure:17450: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
17450 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
17451 | if test -z "$ac_err"; then | |
17452 | rm -rf conftest* | |
17453 | eval "ac_cv_header_$ac_safe=yes" | |
17454 | else | |
17455 | echo "$ac_err" >&5 | |
17456 | echo "configure: failed program was:" >&5 | |
17457 | cat conftest.$ac_ext >&5 | |
17458 | rm -rf conftest* | |
17459 | eval "ac_cv_header_$ac_safe=no" | |
13111b2a | 17460 | fi |
4f14bcd8 | 17461 | rm -f conftest* |
10f2d63a | 17462 | fi |
4f14bcd8 GD |
17463 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
17464 | echo "$ac_t""yes" 1>&6 | |
17465 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
698dcdb6 | 17466 | cat >> confdefs.h <<EOF |
4f14bcd8 | 17467 | #define $ac_tr_hdr 1 |
f6bcfd97 | 17468 | EOF |
4f14bcd8 GD |
17469 | |
17470 | else | |
17471 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 | 17472 | fi |
4f14bcd8 | 17473 | done |
f6bcfd97 | 17474 | |
009fead0 VZ |
17475 | if test "$ac_cv_header_sched_h" = "yes"; then |
17476 | echo $ac_n "checking for sched_yield""... $ac_c" 1>&6 | |
5a5d3c08 | 17477 | echo "configure:17478: checking for sched_yield" >&5 |
009fead0 | 17478 | if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then |
4f14bcd8 GD |
17479 | echo $ac_n "(cached) $ac_c" 1>&6 |
17480 | else | |
009fead0 | 17481 | cat > conftest.$ac_ext <<EOF |
5a5d3c08 | 17482 | #line 17483 "configure" |
4f14bcd8 | 17483 | #include "confdefs.h" |
009fead0 VZ |
17484 | /* System header to define __stub macros and hopefully few prototypes, |
17485 | which can conflict with char sched_yield(); below. */ | |
17486 | #include <assert.h> | |
4f14bcd8 GD |
17487 | /* Override any gcc2 internal prototype to avoid an error. */ |
17488 | /* We use char because int might match the return type of a gcc2 | |
17489 | builtin and then its argument prototype would still apply. */ | |
17490 | char sched_yield(); | |
10f2d63a | 17491 | |
4f14bcd8 | 17492 | int main() { |
009fead0 VZ |
17493 | |
17494 | /* The GNU C library defines this for functions which it implements | |
17495 | to always fail with ENOSYS. Some functions are actually named | |
17496 | something starting with __ and the normal name is an alias. */ | |
17497 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
17498 | choke me | |
17499 | #else | |
17500 | sched_yield(); | |
17501 | #endif | |
17502 | ||
4f14bcd8 | 17503 | ; return 0; } |
10f2d63a | 17504 | EOF |
5a5d3c08 | 17505 | if { (eval echo configure:17506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 | 17506 | rm -rf conftest* |
009fead0 | 17507 | eval "ac_cv_func_sched_yield=yes" |
10f2d63a | 17508 | else |
4f14bcd8 GD |
17509 | echo "configure: failed program was:" >&5 |
17510 | cat conftest.$ac_ext >&5 | |
17511 | rm -rf conftest* | |
009fead0 | 17512 | eval "ac_cv_func_sched_yield=no" |
10f2d63a | 17513 | fi |
4f14bcd8 | 17514 | rm -f conftest* |
4f14bcd8 | 17515 | fi |
009fead0 VZ |
17516 | |
17517 | if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then | |
4f14bcd8 GD |
17518 | echo "$ac_t""yes" 1>&6 |
17519 | cat >> confdefs.h <<\EOF | |
17520 | #define HAVE_SCHED_YIELD 1 | |
10f2d63a VZ |
17521 | EOF |
17522 | ||
4f14bcd8 GD |
17523 | else |
17524 | echo "$ac_t""no" 1>&6 | |
009fead0 VZ |
17525 | |
17526 | echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6 | |
5a5d3c08 | 17527 | echo "configure:17528: checking for sched_yield in -lposix4" >&5 |
4f14bcd8 GD |
17528 | ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'` |
17529 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17530 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17531 | else | |
17532 | ac_save_LIBS="$LIBS" | |
17533 | LIBS="-lposix4 $LIBS" | |
17534 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 17535 | #line 17536 "configure" |
4f14bcd8 GD |
17536 | #include "confdefs.h" |
17537 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17538 | /* We use char because int might match the return type of a gcc2 | |
17539 | builtin and then its argument prototype would still apply. */ | |
17540 | char sched_yield(); | |
47c13eb7 | 17541 | |
4f14bcd8 GD |
17542 | int main() { |
17543 | sched_yield() | |
17544 | ; return 0; } | |
10f2d63a | 17545 | EOF |
5a5d3c08 | 17546 | if { (eval echo configure:17547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
17547 | rm -rf conftest* |
17548 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 17549 | else |
4f14bcd8 GD |
17550 | echo "configure: failed program was:" >&5 |
17551 | cat conftest.$ac_ext >&5 | |
17552 | rm -rf conftest* | |
17553 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 17554 | fi |
4f14bcd8 GD |
17555 | rm -f conftest* |
17556 | LIBS="$ac_save_LIBS" | |
10f2d63a | 17557 | |
54276ccf | 17558 | fi |
4f14bcd8 GD |
17559 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
17560 | echo "$ac_t""yes" 1>&6 | |
17561 | cat >> confdefs.h <<\EOF | |
17562 | #define HAVE_SCHED_YIELD 1 | |
54276ccf | 17563 | EOF |
3d63bc3a | 17564 | POSIX4_LINK=" -lposix4" |
4f14bcd8 GD |
17565 | else |
17566 | echo "$ac_t""no" 1>&6 | |
17567 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
009fead0 | 17568 | |
54276ccf VZ |
17569 | fi |
17570 | ||
009fead0 VZ |
17571 | |
17572 | ||
4f14bcd8 | 17573 | fi |
698dcdb6 | 17574 | |
009fead0 | 17575 | fi |
10f2d63a | 17576 | |
7274f1c7 | 17577 | HAVE_PRIOR_FUNCS=0 |
009fead0 | 17578 | echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6 |
5a5d3c08 | 17579 | echo "configure:17580: checking for pthread_attr_getschedpolicy" >&5 |
009fead0 | 17580 | if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then |
698dcdb6 VZ |
17581 | echo $ac_n "(cached) $ac_c" 1>&6 |
17582 | else | |
009fead0 | 17583 | cat > conftest.$ac_ext <<EOF |
5a5d3c08 | 17584 | #line 17585 "configure" |
422107f9 | 17585 | #include "confdefs.h" |
009fead0 VZ |
17586 | /* System header to define __stub macros and hopefully few prototypes, |
17587 | which can conflict with char pthread_attr_getschedpolicy(); below. */ | |
17588 | #include <assert.h> | |
4f14bcd8 GD |
17589 | /* Override any gcc2 internal prototype to avoid an error. */ |
17590 | /* We use char because int might match the return type of a gcc2 | |
17591 | builtin and then its argument prototype would still apply. */ | |
17592 | char pthread_attr_getschedpolicy(); | |
17593 | ||
17594 | int main() { | |
009fead0 VZ |
17595 | |
17596 | /* The GNU C library defines this for functions which it implements | |
17597 | to always fail with ENOSYS. Some functions are actually named | |
17598 | something starting with __ and the normal name is an alias. */ | |
17599 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
17600 | choke me | |
17601 | #else | |
17602 | pthread_attr_getschedpolicy(); | |
17603 | #endif | |
17604 | ||
4f14bcd8 | 17605 | ; return 0; } |
698dcdb6 | 17606 | EOF |
5a5d3c08 | 17607 | if { (eval echo configure:17608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17608 | rm -rf conftest* |
009fead0 | 17609 | eval "ac_cv_func_pthread_attr_getschedpolicy=yes" |
422107f9 | 17610 | else |
698dcdb6 | 17611 | echo "configure: failed program was:" >&5 |
422107f9 | 17612 | cat conftest.$ac_ext >&5 |
698dcdb6 | 17613 | rm -rf conftest* |
009fead0 | 17614 | eval "ac_cv_func_pthread_attr_getschedpolicy=no" |
422107f9 | 17615 | fi |
698dcdb6 | 17616 | rm -f conftest* |
422107f9 | 17617 | fi |
009fead0 VZ |
17618 | |
17619 | if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then | |
698dcdb6 | 17620 | echo "$ac_t""yes" 1>&6 |
009fead0 | 17621 | echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6 |
5a5d3c08 | 17622 | echo "configure:17623: checking for pthread_attr_setschedparam" >&5 |
009fead0 | 17623 | if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then |
698dcdb6 | 17624 | echo $ac_n "(cached) $ac_c" 1>&6 |
422107f9 | 17625 | else |
009fead0 | 17626 | cat > conftest.$ac_ext <<EOF |
5a5d3c08 | 17627 | #line 17628 "configure" |
422107f9 | 17628 | #include "confdefs.h" |
009fead0 VZ |
17629 | /* System header to define __stub macros and hopefully few prototypes, |
17630 | which can conflict with char pthread_attr_setschedparam(); below. */ | |
17631 | #include <assert.h> | |
422107f9 VZ |
17632 | /* Override any gcc2 internal prototype to avoid an error. */ |
17633 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 17634 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 17635 | char pthread_attr_setschedparam(); |
698dcdb6 VZ |
17636 | |
17637 | int main() { | |
009fead0 VZ |
17638 | |
17639 | /* The GNU C library defines this for functions which it implements | |
17640 | to always fail with ENOSYS. Some functions are actually named | |
17641 | something starting with __ and the normal name is an alias. */ | |
17642 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
17643 | choke me | |
17644 | #else | |
17645 | pthread_attr_setschedparam(); | |
17646 | #endif | |
17647 | ||
698dcdb6 VZ |
17648 | ; return 0; } |
17649 | EOF | |
5a5d3c08 | 17650 | if { (eval echo configure:17651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17651 | rm -rf conftest* |
009fead0 | 17652 | eval "ac_cv_func_pthread_attr_setschedparam=yes" |
698dcdb6 VZ |
17653 | else |
17654 | echo "configure: failed program was:" >&5 | |
17655 | cat conftest.$ac_ext >&5 | |
17656 | rm -rf conftest* | |
009fead0 | 17657 | eval "ac_cv_func_pthread_attr_setschedparam=no" |
698dcdb6 VZ |
17658 | fi |
17659 | rm -f conftest* | |
698dcdb6 | 17660 | fi |
009fead0 VZ |
17661 | |
17662 | if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then | |
698dcdb6 | 17663 | echo "$ac_t""yes" 1>&6 |
009fead0 | 17664 | echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6 |
5a5d3c08 | 17665 | echo "configure:17666: checking for sched_get_priority_max" >&5 |
009fead0 | 17666 | if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then |
698dcdb6 VZ |
17667 | echo $ac_n "(cached) $ac_c" 1>&6 |
17668 | else | |
009fead0 | 17669 | cat > conftest.$ac_ext <<EOF |
5a5d3c08 | 17670 | #line 17671 "configure" |
422107f9 | 17671 | #include "confdefs.h" |
009fead0 VZ |
17672 | /* System header to define __stub macros and hopefully few prototypes |
17673 | else | |
17674 | echo "$ac_t""no" 1>&6 | |
17675 | which can conflict with char sched_get_priority_max(); below. */ | |
17676 | #include <assert.h> | |
4f14bcd8 GD |
17677 | /* Override any gcc2 internal prototype to avoid an error. */ |
17678 | /* We use char because int might match the return type of a gcc2 | |
17679 | builtin and then its argument prototype would still apply. */ | |
17680 | char sched_get_priority_max(); | |
17681 | ||
17682 | int main() { | |
009fead0 VZ |
17683 | |
17684 | /* The GNU C library defines this for functions which it implements | |
17685 | to always fail with ENOSYS. Some functions are actually named | |
17686 | something starting with __ and the normal name is an alias. */ | |
17687 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
17688 | choke me | |
17689 | #else | |
17690 | sched_get_priority_max(); | |
17691 | #endif | |
17692 | ||
4f14bcd8 | 17693 | ; return 0; } |
698dcdb6 | 17694 | EOF |
5a5d3c08 | 17695 | if { (eval echo configure:17696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17696 | rm -rf conftest* |
009fead0 | 17697 | eval "ac_cv_func_sched_get_priority_max=yes" |
422107f9 | 17698 | else |
698dcdb6 | 17699 | echo "configure: failed program was:" >&5 |
422107f9 | 17700 | cat conftest.$ac_ext >&5 |
698dcdb6 | 17701 | rm -rf conftest* |
009fead0 | 17702 | eval "ac_cv_func_sched_get_priority_max=no" |
422107f9 | 17703 | fi |
698dcdb6 | 17704 | rm -f conftest* |
422107f9 | 17705 | fi |
009fead0 VZ |
17706 | |
17707 | if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then | |
698dcdb6 | 17708 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
17709 | HAVE_PRIOR_FUNCS=1 |
17710 | else | |
17711 | echo "$ac_t""no" 1>&6 | |
17712 | echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6 | |
5a5d3c08 | 17713 | echo "configure:17714: checking for sched_get_priority_max in -lposix4" >&5 |
4f14bcd8 | 17714 | ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
17715 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
17716 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 17717 | else |
698dcdb6 | 17718 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17719 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 17720 | cat > conftest.$ac_ext <<EOF |
5a5d3c08 | 17721 | #line 17722 "configure" |
422107f9 VZ |
17722 | #include "confdefs.h" |
17723 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17724 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 17725 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 17726 | char sched_get_priority_max(); |
698dcdb6 VZ |
17727 | |
17728 | int main() { | |
4f14bcd8 | 17729 | sched_get_priority_max() |
698dcdb6 VZ |
17730 | ; return 0; } |
17731 | EOF | |
5a5d3c08 | 17732 | if { (eval echo configure:17733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17733 | rm -rf conftest* |
17734 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17735 | else | |
17736 | echo "configure: failed program was:" >&5 | |
17737 | cat conftest.$ac_ext >&5 | |
17738 | rm -rf conftest* | |
17739 | eval "ac_cv_lib_$ac_lib_var=no" | |
17740 | fi | |
17741 | rm -f conftest* | |
17742 | LIBS="$ac_save_LIBS" | |
17743 | ||
17744 | fi | |
17745 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17746 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 17747 | |
7274f1c7 RL |
17748 | HAVE_PRIOR_FUNCS=1 |
17749 | POSIX4_LINK=" -lposix4" | |
17750 | ||
698dcdb6 VZ |
17751 | else |
17752 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
17753 | fi |
17754 | ||
7274f1c7 | 17755 | |
422107f9 VZ |
17756 | fi |
17757 | ||
7274f1c7 | 17758 | |
4f14bcd8 GD |
17759 | else |
17760 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
17761 | fi |
17762 | ||
7274f1c7 | 17763 | |
4f14bcd8 | 17764 | fi |
463abc64 | 17765 | |
463abc64 | 17766 | |
7274f1c7 RL |
17767 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
17768 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 17769 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 |
698dcdb6 | 17770 | EOF |
463abc64 | 17771 | |
7274f1c7 RL |
17772 | else |
17773 | echo "configure: warning: Setting thread priority will not work" 1>&2 | |
17774 | fi | |
463abc64 | 17775 | |
009fead0 | 17776 | echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6 |
5a5d3c08 | 17777 | echo "configure:17778: checking for pthread_cancel" >&5 |
009fead0 | 17778 | if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then |
698dcdb6 | 17779 | echo $ac_n "(cached) $ac_c" 1>&6 |
422107f9 | 17780 | else |
009fead0 | 17781 | cat > conftest.$ac_ext <<EOF |
5a5d3c08 | 17782 | #line 17783 "configure" |
422107f9 | 17783 | #include "confdefs.h" |
009fead0 VZ |
17784 | /* System header to define __stub macros and hopefully few prototypes, |
17785 | which can conflict with char pthread_cancel(); below. */ | |
17786 | #include <assert.h> | |
422107f9 VZ |
17787 | /* Override any gcc2 internal prototype to avoid an error. */ |
17788 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 17789 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 17790 | char pthread_cancel(); |
698dcdb6 VZ |
17791 | |
17792 | int main() { | |
009fead0 VZ |
17793 | |
17794 | /* The GNU C library defines this for functions which it implements | |
17795 | to always fail with ENOSYS. Some functions are actually named | |
17796 | something starting with __ and the normal name is an alias. */ | |
17797 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
17798 | choke me | |
17799 | #else | |
17800 | pthread_cancel(); | |
17801 | #endif | |
17802 | ||
698dcdb6 VZ |
17803 | ; return 0; } |
17804 | EOF | |
5a5d3c08 | 17805 | if { (eval echo configure:17806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17806 | rm -rf conftest* |
009fead0 | 17807 | eval "ac_cv_func_pthread_cancel=yes" |
698dcdb6 VZ |
17808 | else |
17809 | echo "configure: failed program was:" >&5 | |
17810 | cat conftest.$ac_ext >&5 | |
17811 | rm -rf conftest* | |
009fead0 | 17812 | eval "ac_cv_func_pthread_cancel=no" |
698dcdb6 VZ |
17813 | fi |
17814 | rm -f conftest* | |
698dcdb6 | 17815 | fi |
009fead0 VZ |
17816 | |
17817 | if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then | |
698dcdb6 | 17818 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
17819 | cat >> confdefs.h <<\EOF |
17820 | #define HAVE_PTHREAD_CANCEL 1 | |
17821 | EOF | |
17822 | ||
698dcdb6 VZ |
17823 | else |
17824 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 | 17825 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 |
422107f9 VZ |
17826 | fi |
17827 | ||
422107f9 | 17828 | |
7274f1c7 | 17829 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 |
5a5d3c08 | 17830 | echo "configure:17831: checking for pthread_cleanup_push/pop" >&5 |
4f14bcd8 GD |
17831 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then |
17832 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17833 | else | |
17834 | ||
7274f1c7 | 17835 | cat > conftest.$ac_ext <<EOF |
5a5d3c08 | 17836 | #line 17837 "configure" |
4f14bcd8 GD |
17837 | #include "confdefs.h" |
17838 | #include <pthread.h> | |
17839 | int main() { | |
17840 | ||
7274f1c7 RL |
17841 | pthread_cleanup_push(NULL, NULL); |
17842 | pthread_cleanup_pop(0); | |
17843 | ||
4f14bcd8 GD |
17844 | ; return 0; } |
17845 | EOF | |
5a5d3c08 | 17846 | if { (eval echo configure:17847: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
17847 | rm -rf conftest* |
17848 | ||
7274f1c7 RL |
17849 | wx_cv_func_pthread_cleanup_push=yes |
17850 | ||
4f14bcd8 GD |
17851 | else |
17852 | echo "configure: failed program was:" >&5 | |
17853 | cat conftest.$ac_ext >&5 | |
17854 | rm -rf conftest* | |
17855 | ||
7274f1c7 RL |
17856 | wx_cv_func_pthread_cleanup_push=no |
17857 | ||
4f14bcd8 GD |
17858 | fi |
17859 | rm -f conftest* | |
7274f1c7 | 17860 | |
10f2d63a VZ |
17861 | fi |
17862 | ||
4f14bcd8 GD |
17863 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 |
17864 | ||
7274f1c7 RL |
17865 | if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then |
17866 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 17867 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 |
c7a2bf27 RR |
17868 | EOF |
17869 | ||
7274f1c7 | 17870 | fi |
4f14bcd8 | 17871 | |
7274f1c7 | 17872 | |
19bc6aad | 17873 | if test "x$wx_cv_lib_glibc21" = "xyes"; then |
7274f1c7 RL |
17874 | CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" |
17875 | fi | |
4f14bcd8 | 17876 | |
7274f1c7 | 17877 | echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6 |
5a5d3c08 | 17878 | echo "configure:17879: checking for pthread_mutexattr_t" >&5 |
4f14bcd8 | 17879 | if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then |
698dcdb6 VZ |
17880 | echo $ac_n "(cached) $ac_c" 1>&6 |
17881 | else | |
4f14bcd8 | 17882 | |
7274f1c7 | 17883 | cat > conftest.$ac_ext <<EOF |
5a5d3c08 | 17884 | #line 17885 "configure" |
0dcf9893 | 17885 | #include "confdefs.h" |
4f14bcd8 GD |
17886 | #include <pthread.h> |
17887 | int main() { | |
17888 | ||
7274f1c7 RL |
17889 | pthread_mutexattr_t attr; |
17890 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
17891 | ||
4f14bcd8 | 17892 | ; return 0; } |
698dcdb6 | 17893 | EOF |
5a5d3c08 | 17894 | if { (eval echo configure:17895: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 17895 | rm -rf conftest* |
4f14bcd8 | 17896 | |
7274f1c7 RL |
17897 | wx_cv_type_pthread_mutexattr_t=yes |
17898 | ||
3fed1840 | 17899 | else |
698dcdb6 | 17900 | echo "configure: failed program was:" >&5 |
3fed1840 | 17901 | cat conftest.$ac_ext >&5 |
698dcdb6 | 17902 | rm -rf conftest* |
4f14bcd8 | 17903 | |
7274f1c7 RL |
17904 | wx_cv_type_pthread_mutexattr_t=no |
17905 | ||
4f14bcd8 | 17906 | |
3fed1840 | 17907 | fi |
698dcdb6 | 17908 | rm -f conftest* |
7274f1c7 | 17909 | |
3fed1840 | 17910 | fi |
4f14bcd8 GD |
17911 | |
17912 | echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6 | |
17913 | ||
7274f1c7 RL |
17914 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then |
17915 | cat >> confdefs.h <<\EOF | |
4f14bcd8 GD |
17916 | #define HAVE_PTHREAD_MUTEXATTR_T 1 |
17917 | EOF | |
17918 | ||
7274f1c7 RL |
17919 | else |
17920 | echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6 | |
5a5d3c08 | 17921 | echo "configure:17922: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 |
4f14bcd8 | 17922 | if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then |
698dcdb6 | 17923 | echo $ac_n "(cached) $ac_c" 1>&6 |
3fed1840 | 17924 | else |
4f14bcd8 | 17925 | |
7274f1c7 | 17926 | cat > conftest.$ac_ext <<EOF |
5a5d3c08 | 17927 | #line 17928 "configure" |
3fed1840 | 17928 | #include "confdefs.h" |
4f14bcd8 | 17929 | #include <pthread.h> |
698dcdb6 | 17930 | int main() { |
4f14bcd8 | 17931 | |
7274f1c7 RL |
17932 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; |
17933 | ||
698dcdb6 VZ |
17934 | ; return 0; } |
17935 | EOF | |
5a5d3c08 | 17936 | if { (eval echo configure:17937: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 17937 | rm -rf conftest* |
4f14bcd8 | 17938 | |
7274f1c7 RL |
17939 | wx_cv_type_pthread_rec_mutex_init=yes |
17940 | ||
698dcdb6 VZ |
17941 | else |
17942 | echo "configure: failed program was:" >&5 | |
17943 | cat conftest.$ac_ext >&5 | |
17944 | rm -rf conftest* | |
4f14bcd8 | 17945 | |
7274f1c7 RL |
17946 | wx_cv_type_pthread_rec_mutex_init=no |
17947 | ||
4f14bcd8 | 17948 | |
698dcdb6 VZ |
17949 | fi |
17950 | rm -f conftest* | |
7274f1c7 | 17951 | |
3fed1840 RR |
17952 | fi |
17953 | ||
4f14bcd8 | 17954 | echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6 |
7274f1c7 RL |
17955 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then |
17956 | cat >> confdefs.h <<\EOF | |
4f14bcd8 GD |
17957 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 |
17958 | EOF | |
3fed1840 | 17959 | |
7274f1c7 RL |
17960 | else |
17961 | echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2 | |
17962 | fi | |
17963 | fi | |
7274f1c7 | 17964 | fi |
3fed1840 | 17965 | |
4f14bcd8 GD |
17966 | fi |
17967 | ||
17968 | if test "$wxUSE_THREADS" = "yes"; then | |
3a922bb4 | 17969 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 17970 | #define wxUSE_THREADS 1 |
7b6058cd GD |
17971 | EOF |
17972 | ||
4f14bcd8 | 17973 | |
4f14bcd8 | 17974 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" |
698dcdb6 | 17975 | else |
4f14bcd8 GD |
17976 | if test "$ac_cv_func_strtok_r" = "yes"; then |
17977 | echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6 | |
5a5d3c08 | 17978 | echo "configure:17979: checking if -D_REENTRANT is needed" >&5 |
4f14bcd8 GD |
17979 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
17980 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
17981 | echo "$ac_t""yes" 1>&6 | |
17982 | else | |
17983 | echo "$ac_t""no" 1>&6 | |
17984 | fi | |
17985 | fi | |
17986 | fi | |
17987 | ||
17988 | if test "$WXGTK20" = 1 ; then | |
17989 | cat >> confdefs.h <<EOF | |
17990 | #define __WXGTK20__ $WXGTK20 | |
698dcdb6 | 17991 | EOF |
4f14bcd8 GD |
17992 | |
17993 | WXGTK12=1 | |
10f2d63a | 17994 | fi |
4f14bcd8 GD |
17995 | |
17996 | if test "$WXGTK12" = 1 ; then | |
17997 | cat >> confdefs.h <<EOF | |
17998 | #define __WXGTK12__ $WXGTK12 | |
17999 | EOF | |
18000 | ||
10f2d63a | 18001 | fi |
698dcdb6 | 18002 | |
4f14bcd8 GD |
18003 | if test "$WXGTK127" = 1 ; then |
18004 | cat >> confdefs.h <<EOF | |
18005 | #define __WXGTK127__ $WXGTK127 | |
698dcdb6 | 18006 | EOF |
4f14bcd8 | 18007 | |
698dcdb6 | 18008 | fi |
10f2d63a | 18009 | |
4f14bcd8 GD |
18010 | WXDEBUG= |
18011 | ||
18012 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
18013 | WXDEBUG="-g" | |
18014 | wxUSE_OPTIMISE=no | |
698dcdb6 | 18015 | fi |
4f14bcd8 GD |
18016 | |
18017 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
18018 | wxUSE_DEBUG_INFO=yes | |
18019 | WXDEBUG="-ggdb" | |
10f2d63a VZ |
18020 | fi |
18021 | ||
4f14bcd8 GD |
18022 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then |
18023 | cat >> confdefs.h <<\EOF | |
18024 | #define WXDEBUG 1 | |
18025 | EOF | |
18026 | ||
18027 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
10f2d63a | 18028 | else |
4f14bcd8 GD |
18029 | if test "$wxUSE_GTK" = 1 ; then |
18030 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
18031 | fi | |
18032 | fi | |
18033 | ||
18034 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
18035 | cat >> confdefs.h <<\EOF | |
18036 | #define wxUSE_MEMORY_TRACING 1 | |
18037 | EOF | |
18038 | ||
18039 | cat >> confdefs.h <<\EOF | |
18040 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
18041 | EOF | |
18042 | ||
18043 | cat >> confdefs.h <<\EOF | |
18044 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
18045 | EOF | |
18046 | ||
18047 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
18048 | fi | |
18049 | ||
18050 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
3d63bc3a | 18051 | DMALLOC_LIBS="-ldmalloc" |
4f14bcd8 GD |
18052 | fi |
18053 | ||
18054 | PROFILE= | |
18055 | if test "$wxUSE_PROFILE" = "yes" ; then | |
3d63bc3a | 18056 | PROFILE=" -pg" |
10f2d63a VZ |
18057 | fi |
18058 | ||
009fead0 VZ |
18059 | CODE_GEN_FLAGS= |
18060 | CODE_GEN_FLAGS_CXX= | |
88e30f2b | 18061 | if test "$GCC" = "yes" ; then |
4f14bcd8 GD |
18062 | if test "$wxUSE_NO_RTTI" = "yes" ; then |
18063 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
3a922bb4 | 18064 | fi |
4f14bcd8 GD |
18065 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
18066 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
18067 | fi | |
18068 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
18069 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
18070 | fi | |
4f14bcd8 GD |
18071 | if test "$USE_WIN32" = 1 ; then |
18072 | # I'm not even really sure what this was ever added to solve, | |
18073 | # but someone added it for mingw native builds, so I guess | |
18074 | # they had a reason, right?? | |
18075 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return" | |
18076 | fi | |
18077 | fi | |
18078 | ||
4f14bcd8 GD |
18079 | if test "$wxUSE_OPTIMISE" = "no" ; then |
18080 | OPTIMISE= | |
18081 | else | |
18082 | if test "$GCC" = yes ; then | |
18083 | OPTIMISE="-O2" | |
18084 | case "${host}" in | |
18085 | i586-*-*|i686-*-* ) | |
18086 | OPTIMISE="${OPTIMISE} " | |
18087 | ;; | |
18088 | esac | |
18089 | else | |
18090 | OPTIMISE="-O" | |
18091 | fi | |
18092 | fi | |
18093 | ||
18094 | if test "$WXWIN_COMPATIBILITY_2" = "yes"; then | |
18095 | cat >> confdefs.h <<\EOF | |
18096 | #define WXWIN_COMPATIBILITY_2 1 | |
18097 | EOF | |
18098 | ||
18099 | ||
18100 | WXWIN_COMPATIBILITY_2_2="yes" | |
18101 | fi | |
18102 | ||
0c9a1c32 | 18103 | if test "x$WXWIN_COMPATIBILITY_2_2" != "xno"; then |
4f14bcd8 GD |
18104 | cat >> confdefs.h <<\EOF |
18105 | #define WXWIN_COMPATIBILITY_2_2 1 | |
18106 | EOF | |
18107 | ||
10f2d63a VZ |
18108 | fi |
18109 | ||
698dcdb6 | 18110 | |
10f2d63a | 18111 | if test "$wxUSE_GUI" = "yes"; then |
698dcdb6 | 18112 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18113 | #define wxUSE_GUI 1 |
18114 | EOF | |
18115 | ||
698dcdb6 | 18116 | |
10f2d63a | 18117 | else |
698dcdb6 | 18118 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18119 | #define wxUSE_NOGUI 1 |
18120 | EOF | |
18121 | ||
18122 | fi | |
18123 | ||
698dcdb6 | 18124 | |
10f2d63a | 18125 | if test "$wxUSE_UNIX" = "yes"; then |
698dcdb6 | 18126 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18127 | #define wxUSE_UNIX 1 |
18128 | EOF | |
18129 | ||
18130 | fi | |
18131 | ||
698dcdb6 | 18132 | |
10f2d63a | 18133 | if test "$wxUSE_APPLE_IEEE" = "yes"; then |
698dcdb6 | 18134 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18135 | #define wxUSE_APPLE_IEEE 1 |
18136 | EOF | |
18137 | ||
18138 | fi | |
18139 | ||
1e6feb95 VZ |
18140 | if test "$wxUSE_TIMER" = "yes"; then |
18141 | cat >> confdefs.h <<\EOF | |
18142 | #define wxUSE_TIMER 1 | |
18143 | EOF | |
18144 | ||
18145 | fi | |
18146 | ||
10f2d63a | 18147 | if test "$wxUSE_WAVE" = "yes"; then |
698dcdb6 | 18148 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18149 | #define wxUSE_WAVE 1 |
18150 | EOF | |
18151 | ||
18152 | fi | |
18153 | ||
1e6feb95 VZ |
18154 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
18155 | cat >> confdefs.h <<\EOF | |
18156 | #define wxUSE_CMDLINE_PARSER 1 | |
18157 | EOF | |
18158 | ||
18159 | fi | |
18160 | ||
18161 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
18162 | cat >> confdefs.h <<\EOF | |
18163 | #define wxUSE_STOPWATCH 1 | |
18164 | EOF | |
18165 | ||
18166 | fi | |
18167 | ||
18168 | if test "$wxUSE_DATETIME" = "yes"; then | |
18169 | cat >> confdefs.h <<\EOF | |
18170 | #define wxUSE_DATETIME 1 | |
18171 | EOF | |
18172 | ||
18173 | fi | |
18174 | ||
18175 | if test "$wxUSE_TIMEDATE" = "yes"; then | |
18176 | cat >> confdefs.h <<\EOF | |
18177 | #define wxUSE_TIMEDATE 1 | |
18178 | EOF | |
18179 | ||
18180 | fi | |
18181 | ||
10f2d63a | 18182 | if test "$wxUSE_FILE" = "yes"; then |
698dcdb6 | 18183 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18184 | #define wxUSE_FILE 1 |
18185 | EOF | |
18186 | ||
18187 | fi | |
18188 | ||
1e6feb95 VZ |
18189 | if test "$wxUSE_FFILE" = "yes"; then |
18190 | cat >> confdefs.h <<\EOF | |
18191 | #define wxUSE_FFILE 1 | |
18192 | EOF | |
18193 | ||
18194 | fi | |
18195 | ||
24528b0c | 18196 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
698dcdb6 | 18197 | cat >> confdefs.h <<\EOF |
24528b0c VS |
18198 | #define wxUSE_FILESYSTEM 1 |
18199 | EOF | |
18200 | ||
18201 | fi | |
18202 | ||
10f2d63a | 18203 | if test "$wxUSE_FS_INET" = "yes"; then |
698dcdb6 | 18204 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18205 | #define wxUSE_FS_INET 1 |
18206 | EOF | |
18207 | ||
18208 | fi | |
18209 | ||
18210 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
698dcdb6 | 18211 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18212 | #define wxUSE_FS_ZIP 1 |
18213 | EOF | |
18214 | ||
18215 | fi | |
18216 | ||
18217 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
698dcdb6 | 18218 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18219 | #define wxUSE_ZIPSTREAM 1 |
18220 | EOF | |
18221 | ||
18222 | fi | |
18223 | ||
eb4efbdc | 18224 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
698dcdb6 | 18225 | cat >> confdefs.h <<\EOF |
eb4efbdc VZ |
18226 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
18227 | EOF | |
18228 | ||
18229 | fi | |
18230 | ||
4f3c5f06 | 18231 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
698dcdb6 | 18232 | cat >> confdefs.h <<\EOF |
4f3c5f06 VZ |
18233 | #define wxUSE_SNGLINST_CHECKER 1 |
18234 | EOF | |
18235 | ||
18236 | fi | |
18237 | ||
10f2d63a | 18238 | if test "$wxUSE_BUSYINFO" = "yes"; then |
698dcdb6 | 18239 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18240 | #define wxUSE_BUSYINFO 1 |
18241 | EOF | |
18242 | ||
18243 | fi | |
18244 | ||
18245 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
698dcdb6 | 18246 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18247 | #define wxUSE_STD_IOSTREAM 1 |
18248 | EOF | |
18249 | ||
18250 | fi | |
18251 | ||
a3a584a7 VZ |
18252 | if test "$wxUSE_TEXTBUFFER" = "yes"; then |
18253 | cat >> confdefs.h <<\EOF | |
18254 | #define wxUSE_TEXTBUFFER 1 | |
18255 | EOF | |
18256 | ||
18257 | fi | |
18258 | ||
10f2d63a | 18259 | if test "$wxUSE_TEXTFILE" = "yes"; then |
a3a584a7 | 18260 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then |
156b2523 | 18261 | echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2 |
10f2d63a | 18262 | else |
698dcdb6 | 18263 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18264 | #define wxUSE_TEXTFILE 1 |
18265 | EOF | |
18266 | ||
18267 | fi | |
18268 | fi | |
18269 | ||
18270 | if test "$wxUSE_CONFIG" = "yes" ; then | |
18271 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
156b2523 | 18272 | echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2 |
10f2d63a | 18273 | else |
698dcdb6 | 18274 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18275 | #define wxUSE_CONFIG 1 |
18276 | EOF | |
18277 | ||
18278 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
18279 | fi | |
18280 | fi | |
18281 | ||
18282 | if test "$wxUSE_INTL" = "yes" ; then | |
18283 | if test "$wxUSE_FILE" != "yes"; then | |
156b2523 | 18284 | echo "configure: warning: I18n code requires wxFile... disabled" 1>&2 |
10f2d63a | 18285 | else |
698dcdb6 | 18286 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18287 | #define wxUSE_INTL 1 |
18288 | EOF | |
18289 | ||
18290 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
f6bcfd97 | 18291 | GUIDIST="$GUIDIST INTL_DIST" |
10f2d63a VZ |
18292 | fi |
18293 | fi | |
18294 | ||
18295 | if test "$wxUSE_LOG" = "yes"; then | |
698dcdb6 | 18296 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18297 | #define wxUSE_LOG 1 |
18298 | EOF | |
18299 | ||
d73be714 VZ |
18300 | |
18301 | if test "$wxUSE_LOGGUI" = "yes"; then | |
18302 | cat >> confdefs.h <<\EOF | |
18303 | #define wxUSE_LOGGUI 1 | |
18304 | EOF | |
18305 | ||
18306 | fi | |
18307 | ||
18308 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
18309 | cat >> confdefs.h <<\EOF | |
18310 | #define wxUSE_LOGWINDOW 1 | |
69d27ff7 MB |
18311 | EOF |
18312 | ||
18313 | fi | |
18314 | ||
18315 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
18316 | cat >> confdefs.h <<\EOF | |
18317 | #define wxUSE_LOG_DIALOG 1 | |
d73be714 VZ |
18318 | EOF |
18319 | ||
18320 | fi | |
10f2d63a VZ |
18321 | fi |
18322 | ||
18323 | if test "$wxUSE_LONGLONG" = "yes"; then | |
698dcdb6 | 18324 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18325 | #define wxUSE_LONGLONG 1 |
18326 | EOF | |
18327 | ||
18328 | fi | |
18329 | ||
e8f65ba6 | 18330 | if test "$wxUSE_GEOMETRY" = "yes"; then |
698dcdb6 | 18331 | cat >> confdefs.h <<\EOF |
e8f65ba6 RR |
18332 | #define wxUSE_GEOMETRY 1 |
18333 | EOF | |
18334 | ||
18335 | fi | |
18336 | ||
10f2d63a | 18337 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
698dcdb6 | 18338 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18339 | #define wxUSE_DIALUP_MANAGER 1 |
18340 | EOF | |
18341 | ||
70f7a477 | 18342 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
10f2d63a VZ |
18343 | fi |
18344 | ||
18345 | if test "$wxUSE_STREAMS" = "yes" ; then | |
698dcdb6 | 18346 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18347 | #define wxUSE_STREAMS 1 |
18348 | EOF | |
18349 | ||
18350 | fi | |
18351 | ||
1e487827 | 18352 | |
1e6feb95 | 18353 | if test "$wxUSE_DATETIME" = "yes"; then |
698dcdb6 | 18354 | for ac_func in strptime |
83307f33 | 18355 | do |
698dcdb6 | 18356 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5a5d3c08 | 18357 | echo "configure:18358: checking for $ac_func" >&5 |
698dcdb6 VZ |
18358 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18359 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18360 | else | |
18361 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 18362 | #line 18363 "configure" |
83307f33 VZ |
18363 | #include "confdefs.h" |
18364 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 18365 | which can conflict with char $ac_func(); below. */ |
83307f33 VZ |
18366 | #include <assert.h> |
18367 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18368 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18369 | builtin and then its argument prototype would still apply. */ |
18370 | char $ac_func(); | |
18371 | ||
18372 | int main() { | |
83307f33 VZ |
18373 | |
18374 | /* The GNU C library defines this for functions which it implements | |
18375 | to always fail with ENOSYS. Some functions are actually named | |
18376 | something starting with __ and the normal name is an alias. */ | |
18377 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18378 | choke me | |
18379 | #else | |
698dcdb6 | 18380 | $ac_func(); |
83307f33 VZ |
18381 | #endif |
18382 | ||
698dcdb6 | 18383 | ; return 0; } |
83307f33 | 18384 | EOF |
5a5d3c08 | 18385 | if { (eval echo configure:18386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18386 | rm -rf conftest* |
18387 | eval "ac_cv_func_$ac_func=yes" | |
18388 | else | |
18389 | echo "configure: failed program was:" >&5 | |
18390 | cat conftest.$ac_ext >&5 | |
18391 | rm -rf conftest* | |
18392 | eval "ac_cv_func_$ac_func=no" | |
18393 | fi | |
18394 | rm -f conftest* | |
18395 | fi | |
83307f33 | 18396 | |
698dcdb6 VZ |
18397 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
18398 | echo "$ac_t""yes" 1>&6 | |
18399 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18400 | cat >> confdefs.h <<EOF | |
18401 | #define $ac_tr_func 1 | |
18402 | EOF | |
18403 | ||
18404 | else | |
18405 | echo "$ac_t""no" 1>&6 | |
83307f33 VZ |
18406 | fi |
18407 | done | |
18408 | ||
1e487827 | 18409 | |
62cc730f | 18410 | echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6 |
5a5d3c08 | 18411 | echo "configure:18412: checking for timezone variable in <time.h>" >&5 |
698dcdb6 VZ |
18412 | if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then |
18413 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18414 | else | |
18415 | ||
18416 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 18417 | #line 18418 "configure" |
360d6699 VZ |
18418 | #include "confdefs.h" |
18419 | ||
b4085ce6 | 18420 | #include <time.h> |
698dcdb6 VZ |
18421 | |
18422 | int main() { | |
360d6699 VZ |
18423 | |
18424 | int tz; | |
4f11a343 | 18425 | tz = timezone; |
698dcdb6 VZ |
18426 | |
18427 | ; return 0; } | |
18428 | EOF | |
5a5d3c08 | 18429 | if { (eval echo configure:18430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
18430 | rm -rf conftest* |
18431 | ||
4f11a343 | 18432 | wx_cv_var_timezone=timezone |
698dcdb6 | 18433 | |
360d6699 | 18434 | else |
698dcdb6 VZ |
18435 | echo "configure: failed program was:" >&5 |
18436 | cat conftest.$ac_ext >&5 | |
18437 | rm -rf conftest* | |
18438 | ||
18439 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 18440 | #line 18441 "configure" |
360d6699 VZ |
18441 | #include "confdefs.h" |
18442 | ||
b4085ce6 | 18443 | #include <time.h> |
698dcdb6 VZ |
18444 | |
18445 | int main() { | |
360d6699 VZ |
18446 | |
18447 | int tz; | |
18448 | tz = _timezone; | |
698dcdb6 VZ |
18449 | |
18450 | ; return 0; } | |
18451 | EOF | |
5a5d3c08 | 18452 | if { (eval echo configure:18453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
18453 | rm -rf conftest* |
18454 | ||
360d6699 | 18455 | wx_cv_var_timezone=_timezone |
698dcdb6 | 18456 | |
5357c8e8 | 18457 | else |
698dcdb6 VZ |
18458 | echo "configure: failed program was:" >&5 |
18459 | cat conftest.$ac_ext >&5 | |
18460 | rm -rf conftest* | |
18461 | ||
18462 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 18463 | #line 18464 "configure" |
5357c8e8 VZ |
18464 | #include "confdefs.h" |
18465 | ||
b4085ce6 | 18466 | #include <time.h> |
698dcdb6 VZ |
18467 | |
18468 | int main() { | |
5357c8e8 VZ |
18469 | |
18470 | int tz; | |
4f11a343 | 18471 | tz = __timezone; |
698dcdb6 VZ |
18472 | |
18473 | ; return 0; } | |
18474 | EOF | |
5a5d3c08 | 18475 | if { (eval echo configure:18476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
18476 | rm -rf conftest* |
18477 | ||
4f11a343 | 18478 | wx_cv_var_timezone=__timezone |
698dcdb6 | 18479 | |
360d6699 | 18480 | else |
698dcdb6 VZ |
18481 | echo "configure: failed program was:" >&5 |
18482 | cat conftest.$ac_ext >&5 | |
18483 | rm -rf conftest* | |
f9bc1684 VS |
18484 | |
18485 | if test "$USE_DOS" = 0 ; then | |
62cc730f | 18486 | echo "configure: warning: no timezone variable" 1>&2 |
f9bc1684 VS |
18487 | fi |
18488 | ||
698dcdb6 | 18489 | |
360d6699 | 18490 | fi |
698dcdb6 VZ |
18491 | rm -f conftest* |
18492 | ||
18493 | ||
360d6699 | 18494 | fi |
698dcdb6 VZ |
18495 | rm -f conftest* |
18496 | ||
18497 | ||
6232543b | 18498 | fi |
698dcdb6 VZ |
18499 | rm -f conftest* |
18500 | ||
18501 | ||
1e487827 | 18502 | fi |
703e0a69 | 18503 | |
698dcdb6 VZ |
18504 | echo "$ac_t""$wx_cv_var_timezone" 1>&6 |
18505 | ||
f9bc1684 | 18506 | if test "x$wx_cv_var_timezone" != x ; then |
698dcdb6 | 18507 | cat >> confdefs.h <<EOF |
360d6699 VZ |
18508 | #define WX_TIMEZONE $wx_cv_var_timezone |
18509 | EOF | |
18510 | ||
f9bc1684 | 18511 | fi |
698dcdb6 VZ |
18512 | |
18513 | for ac_func in localtime | |
afc31813 | 18514 | do |
698dcdb6 | 18515 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5a5d3c08 | 18516 | echo "configure:18517: checking for $ac_func" >&5 |
698dcdb6 VZ |
18517 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18518 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18519 | else | |
18520 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 18521 | #line 18522 "configure" |
10f2d63a | 18522 | #include "confdefs.h" |
afc31813 | 18523 | /* System header to define __stub macros and hopefully few prototypes, |
698dcdb6 | 18524 | which can conflict with char $ac_func(); below. */ |
afc31813 VZ |
18525 | #include <assert.h> |
18526 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18527 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18528 | builtin and then its argument prototype would still apply. */ |
18529 | char $ac_func(); | |
18530 | ||
18531 | int main() { | |
afc31813 VZ |
18532 | |
18533 | /* The GNU C library defines this for functions which it implements | |
18534 | to always fail with ENOSYS. Some functions are actually named | |
18535 | something starting with __ and the normal name is an alias. */ | |
18536 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18537 | choke me | |
18538 | #else | |
698dcdb6 | 18539 | $ac_func(); |
afc31813 VZ |
18540 | #endif |
18541 | ||
698dcdb6 | 18542 | ; return 0; } |
10f2d63a | 18543 | EOF |
5a5d3c08 | 18544 | if { (eval echo configure:18545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18545 | rm -rf conftest* |
18546 | eval "ac_cv_func_$ac_func=yes" | |
18547 | else | |
18548 | echo "configure: failed program was:" >&5 | |
18549 | cat conftest.$ac_ext >&5 | |
18550 | rm -rf conftest* | |
18551 | eval "ac_cv_func_$ac_func=no" | |
18552 | fi | |
18553 | rm -f conftest* | |
18554 | fi | |
afc31813 | 18555 | |
698dcdb6 VZ |
18556 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
18557 | echo "$ac_t""yes" 1>&6 | |
18558 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18559 | cat >> confdefs.h <<EOF | |
18560 | #define $ac_tr_func 1 | |
18561 | EOF | |
18562 | ||
18563 | else | |
18564 | echo "$ac_t""no" 1>&6 | |
afc31813 VZ |
18565 | fi |
18566 | done | |
18567 | ||
1e487827 | 18568 | |
698dcdb6 VZ |
18569 | if test "$ac_cv_func_localtime" = "yes"; then |
18570 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 | |
5a5d3c08 | 18571 | echo "configure:18572: checking for tm_gmtoff in struct tm" >&5 |
698dcdb6 VZ |
18572 | if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then |
18573 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18574 | else | |
18575 | ||
18576 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 18577 | #line 18578 "configure" |
0470b1e6 VZ |
18578 | #include "confdefs.h" |
18579 | ||
b4085ce6 | 18580 | #include <time.h> |
698dcdb6 VZ |
18581 | |
18582 | int main() { | |
0470b1e6 VZ |
18583 | |
18584 | struct tm tm; | |
18585 | tm.tm_gmtoff++; | |
698dcdb6 VZ |
18586 | |
18587 | ; return 0; } | |
18588 | EOF | |
5a5d3c08 | 18589 | if { (eval echo configure:18590: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
18590 | rm -rf conftest* |
18591 | ||
f03a98d8 | 18592 | wx_cv_struct_tm_has_gmtoff=yes |
698dcdb6 | 18593 | |
0470b1e6 | 18594 | else |
698dcdb6 VZ |
18595 | echo "configure: failed program was:" >&5 |
18596 | cat conftest.$ac_ext >&5 | |
18597 | rm -rf conftest* | |
18598 | wx_cv_struct_tm_has_gmtoff=no | |
18599 | ||
0470b1e6 | 18600 | fi |
698dcdb6 VZ |
18601 | rm -f conftest* |
18602 | ||
1e487827 | 18603 | fi |
698dcdb6 VZ |
18604 | |
18605 | echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6 | |
6232543b VS |
18606 | fi |
18607 | ||
18608 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
698dcdb6 | 18609 | cat >> confdefs.h <<\EOF |
6232543b VS |
18610 | #define WX_GMTOFF_IN_TM 1 |
18611 | EOF | |
0470b1e6 | 18612 | |
3fcdd07b VZ |
18613 | fi |
18614 | ||
698dcdb6 | 18615 | for ac_func in gettimeofday ftime |
3fcdd07b | 18616 | do |
698dcdb6 | 18617 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5a5d3c08 | 18618 | echo "configure:18619: checking for $ac_func" >&5 |
698dcdb6 VZ |
18619 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18620 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18621 | else | |
18622 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 18623 | #line 18624 "configure" |
3fcdd07b VZ |
18624 | #include "confdefs.h" |
18625 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 18626 | which can conflict with char $ac_func(); below. */ |
3fcdd07b VZ |
18627 | #include <assert.h> |
18628 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18629 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18630 | builtin and then its argument prototype would still apply. */ |
18631 | char $ac_func(); | |
18632 | ||
18633 | int main() { | |
3fcdd07b VZ |
18634 | |
18635 | /* The GNU C library defines this for functions which it implements | |
18636 | to always fail with ENOSYS. Some functions are actually named | |
18637 | something starting with __ and the normal name is an alias. */ | |
18638 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18639 | choke me | |
18640 | #else | |
698dcdb6 | 18641 | $ac_func(); |
3fcdd07b VZ |
18642 | #endif |
18643 | ||
698dcdb6 VZ |
18644 | ; return 0; } |
18645 | EOF | |
5a5d3c08 | 18646 | if { (eval echo configure:18647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18647 | rm -rf conftest* |
18648 | eval "ac_cv_func_$ac_func=yes" | |
18649 | else | |
18650 | echo "configure: failed program was:" >&5 | |
18651 | cat conftest.$ac_ext >&5 | |
18652 | rm -rf conftest* | |
18653 | eval "ac_cv_func_$ac_func=no" | |
18654 | fi | |
18655 | rm -f conftest* | |
18656 | fi | |
18657 | ||
18658 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18659 | echo "$ac_t""yes" 1>&6 | |
18660 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18661 | cat >> confdefs.h <<EOF | |
18662 | #define $ac_tr_func 1 | |
3fcdd07b VZ |
18663 | EOF |
18664 | break | |
698dcdb6 VZ |
18665 | else |
18666 | echo "$ac_t""no" 1>&6 | |
3fcdd07b VZ |
18667 | fi |
18668 | done | |
18669 | ||
afc31813 | 18670 | |
698dcdb6 VZ |
18671 | if test "$ac_cv_func_gettimeofday" = "yes"; then |
18672 | echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6 | |
5a5d3c08 | 18673 | echo "configure:18674: checking whether gettimeofday takes two arguments" >&5 |
698dcdb6 VZ |
18674 | if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then |
18675 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18676 | else | |
18677 | ||
18678 | ||
18679 | ac_ext=C | |
18680 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 18681 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
18682 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
18683 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
18684 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 18685 | |
698dcdb6 VZ |
18686 | |
18687 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 18688 | #line 18689 "configure" |
10f2d63a | 18689 | #include "confdefs.h" |
afc31813 VZ |
18690 | |
18691 | #include <sys/time.h> | |
18692 | #include <unistd.h> | |
698dcdb6 VZ |
18693 | |
18694 | int main() { | |
afc31813 VZ |
18695 | |
18696 | struct timeval tv; | |
776862b4 | 18697 | gettimeofday(&tv, NULL); |
698dcdb6 VZ |
18698 | |
18699 | ; return 0; } | |
18700 | EOF | |
5a5d3c08 | 18701 | if { (eval echo configure:18702: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 18702 | rm -rf conftest* |
afc31813 | 18703 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a | 18704 | else |
698dcdb6 VZ |
18705 | echo "configure: failed program was:" >&5 |
18706 | cat conftest.$ac_ext >&5 | |
18707 | rm -rf conftest* | |
18708 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 18709 | #line 18710 "configure" |
10f2d63a | 18710 | #include "confdefs.h" |
afc31813 VZ |
18711 | |
18712 | #include <sys/time.h> | |
18713 | #include <unistd.h> | |
698dcdb6 VZ |
18714 | |
18715 | int main() { | |
afc31813 VZ |
18716 | |
18717 | struct timeval tv; | |
18718 | gettimeofday(&tv); | |
698dcdb6 VZ |
18719 | |
18720 | ; return 0; } | |
18721 | EOF | |
5a5d3c08 | 18722 | if { (eval echo configure:18723: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 18723 | rm -rf conftest* |
afc31813 | 18724 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a | 18725 | else |
698dcdb6 VZ |
18726 | echo "configure: failed program was:" >&5 |
18727 | cat conftest.$ac_ext >&5 | |
18728 | rm -rf conftest* | |
776862b4 VZ |
18729 | |
18730 | echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2 | |
18731 | wx_cv_func_gettimeofday_has_2_args=unknown | |
18732 | ||
698dcdb6 | 18733 | |
10f2d63a | 18734 | fi |
698dcdb6 VZ |
18735 | rm -f conftest* |
18736 | ||
10f2d63a | 18737 | fi |
698dcdb6 | 18738 | rm -f conftest* |
afc31813 | 18739 | ac_ext=c |
698dcdb6 | 18740 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 18741 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
18742 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
18743 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
18744 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a | 18745 | |
698dcdb6 | 18746 | |
afc31813 | 18747 | fi |
698dcdb6 VZ |
18748 | |
18749 | echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6 | |
c63c7106 | 18750 | |
afc31813 | 18751 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
698dcdb6 | 18752 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
18753 | #define WX_GETTIMEOFDAY_NO_TZ 1 |
18754 | EOF | |
18755 | ||
18756 | fi | |
18757 | fi | |
18758 | ||
698dcdb6 | 18759 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
18760 | #define wxUSE_TIMEDATE 1 |
18761 | EOF | |
18762 | ||
18763 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
18764 | fi | |
18765 | ||
698dcdb6 | 18766 | |
0feee163 VZ |
18767 | if test "$wxUSE_SOCKETS" = "yes"; then |
18768 | if test "$TOOLKIT" = "X11"; then | |
18769 | echo "configure: warning: wxSocket not yet supported under X11... disabled" 1>&2 | |
18770 | wxUSE_SOCKETS="no" | |
18771 | fi | |
18772 | fi | |
b089607b | 18773 | |
0feee163 VZ |
18774 | if test "$wxUSE_SOCKETS" = "yes"; then |
18775 | if test "$TOOLKIT" != "MSW"; then | |
3a922bb4 | 18776 | echo $ac_n "checking for socket""... $ac_c" 1>&6 |
5a5d3c08 | 18777 | echo "configure:18778: checking for socket" >&5 |
698dcdb6 VZ |
18778 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
18779 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 18780 | else |
698dcdb6 | 18781 | cat > conftest.$ac_ext <<EOF |
5a5d3c08 | 18782 | #line 18783 "configure" |
c63c7106 VZ |
18783 | #include "confdefs.h" |
18784 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 18785 | which can conflict with char socket(); below. */ |
c63c7106 VZ |
18786 | #include <assert.h> |
18787 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18788 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18789 | builtin and then its argument prototype would still apply. */ |
18790 | char socket(); | |
18791 | ||
18792 | int main() { | |
c63c7106 VZ |
18793 | |
18794 | /* The GNU C library defines this for functions which it implements | |
18795 | to always fail with ENOSYS. Some functions are actually named | |
18796 | something starting with __ and the normal name is an alias. */ | |
18797 | #if defined (__stub_socket) || defined (__stub___socket) | |
18798 | choke me | |
18799 | #else | |
698dcdb6 | 18800 | socket(); |
c63c7106 VZ |
18801 | #endif |
18802 | ||
698dcdb6 VZ |
18803 | ; return 0; } |
18804 | EOF | |
5a5d3c08 | 18805 | if { (eval echo configure:18806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18806 | rm -rf conftest* |
18807 | eval "ac_cv_func_socket=yes" | |
18808 | else | |
18809 | echo "configure: failed program was:" >&5 | |
18810 | cat conftest.$ac_ext >&5 | |
18811 | rm -rf conftest* | |
18812 | eval "ac_cv_func_socket=no" | |
18813 | fi | |
18814 | rm -f conftest* | |
18815 | fi | |
18816 | ||
18817 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
18818 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
18819 | : |
18820 | else | |
698dcdb6 VZ |
18821 | echo "$ac_t""no" 1>&6 |
18822 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
5a5d3c08 | 18823 | echo "configure:18824: checking for socket in -lsocket" >&5 |
698dcdb6 VZ |
18824 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
18825 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18826 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 18827 | else |
698dcdb6 | 18828 | ac_save_LIBS="$LIBS" |
c63c7106 | 18829 | LIBS="-lsocket $LIBS" |
698dcdb6 | 18830 | cat > conftest.$ac_ext <<EOF |
5a5d3c08 | 18831 | #line 18832 "configure" |
c63c7106 VZ |
18832 | #include "confdefs.h" |
18833 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18834 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18835 | builtin and then its argument prototype would still apply. */ |
18836 | char socket(); | |
18837 | ||
18838 | int main() { | |
18839 | socket() | |
18840 | ; return 0; } | |
18841 | EOF | |
5a5d3c08 | 18842 | if { (eval echo configure:18843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18843 | rm -rf conftest* |
18844 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18845 | else | |
18846 | echo "configure: failed program was:" >&5 | |
18847 | cat conftest.$ac_ext >&5 | |
18848 | rm -rf conftest* | |
18849 | eval "ac_cv_lib_$ac_lib_var=no" | |
18850 | fi | |
18851 | rm -f conftest* | |
18852 | LIBS="$ac_save_LIBS" | |
18853 | ||
18854 | fi | |
18855 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18856 | echo "$ac_t""yes" 1>&6 | |
d558c907 VS |
18857 | if test "$INET_LINK" != " -lsocket"; then |
18858 | INET_LINK="$INET_LINK -lsocket" | |
18859 | fi | |
c63c7106 | 18860 | else |
698dcdb6 | 18861 | echo "$ac_t""no" 1>&6 |
afc31813 | 18862 | |
3a922bb4 RL |
18863 | echo "configure: warning: socket library not found - sockets will be disabled" 1>&2 |
18864 | wxUSE_SOCKETS=no | |
18865 | ||
698dcdb6 | 18866 | |
6232543b | 18867 | fi |
b089607b | 18868 | |
3a922bb4 | 18869 | |
1e487827 | 18870 | fi |
afc31813 | 18871 | |
3a922bb4 | 18872 | fi |
0feee163 | 18873 | fi |
51a9faba | 18874 | |
0feee163 VZ |
18875 | if test "$wxUSE_SOCKETS" = "yes" ; then |
18876 | if test "$TOOLKIT" != "MSW"; then | |
3a922bb4 | 18877 | echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6 |
5a5d3c08 | 18878 | echo "configure:18879: checking what is the type of the third argument of getsockname" >&5 |
698dcdb6 VZ |
18879 | if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then |
18880 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18881 | else | |
18882 | ||
3a922bb4 RL |
18883 | |
18884 | ac_ext=C | |
698dcdb6 | 18885 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
1e487827 | 18886 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
18887 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
18888 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
18889 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 18890 | |
698dcdb6 | 18891 | |
3a922bb4 | 18892 | cat > conftest.$ac_ext <<EOF |
5a5d3c08 | 18893 | #line 18894 "configure" |
afc31813 | 18894 | #include "confdefs.h" |
51a9faba | 18895 | |
3a922bb4 RL |
18896 | #include <sys/types.h> |
18897 | #include <sys/socket.h> | |
18898 | ||
698dcdb6 | 18899 | int main() { |
51a9faba | 18900 | |
3a922bb4 RL |
18901 | socklen_t len; |
18902 | getsockname(0, 0, &len); | |
18903 | ||
698dcdb6 VZ |
18904 | ; return 0; } |
18905 | EOF | |
5a5d3c08 | 18906 | if { (eval echo configure:18907: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 18907 | rm -rf conftest* |
51a9faba | 18908 | wx_cv_type_getsockname3=socklen_t |
afc31813 | 18909 | else |
698dcdb6 VZ |
18910 | echo "configure: failed program was:" >&5 |
18911 | cat conftest.$ac_ext >&5 | |
18912 | rm -rf conftest* | |
18913 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 18914 | #line 18915 "configure" |
afc31813 | 18915 | #include "confdefs.h" |
51a9faba | 18916 | |
3a922bb4 RL |
18917 | #include <sys/types.h> |
18918 | #include <sys/socket.h> | |
18919 | ||
698dcdb6 | 18920 | int main() { |
51a9faba | 18921 | |
3a922bb4 RL |
18922 | size_t len; |
18923 | getsockname(0, 0, &len); | |
18924 | ||
698dcdb6 VZ |
18925 | ; return 0; } |
18926 | EOF | |
5a5d3c08 | 18927 | if { (eval echo configure:18928: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 18928 | rm -rf conftest* |
51a9faba | 18929 | wx_cv_type_getsockname3=size_t |
afc31813 | 18930 | else |
698dcdb6 VZ |
18931 | echo "configure: failed program was:" >&5 |
18932 | cat conftest.$ac_ext >&5 | |
18933 | rm -rf conftest* | |
18934 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 18935 | #line 18936 "configure" |
afc31813 | 18936 | #include "confdefs.h" |
51a9faba | 18937 | |
3a922bb4 RL |
18938 | #include <sys/types.h> |
18939 | #include <sys/socket.h> | |
18940 | ||
698dcdb6 | 18941 | int main() { |
51a9faba | 18942 | |
3a922bb4 RL |
18943 | int len; |
18944 | getsockname(0, 0, &len); | |
18945 | ||
698dcdb6 VZ |
18946 | ; return 0; } |
18947 | EOF | |
5a5d3c08 | 18948 | if { (eval echo configure:18949: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 18949 | rm -rf conftest* |
51a9faba | 18950 | wx_cv_type_getsockname3=int |
afc31813 | 18951 | else |
698dcdb6 VZ |
18952 | echo "configure: failed program was:" >&5 |
18953 | cat conftest.$ac_ext >&5 | |
18954 | rm -rf conftest* | |
18955 | wx_cv_type_getsockname3=unknown | |
3a922bb4 | 18956 | |
afc31813 | 18957 | fi |
698dcdb6 | 18958 | rm -f conftest* |
3a922bb4 | 18959 | |
afc31813 | 18960 | fi |
698dcdb6 | 18961 | rm -f conftest* |
3a922bb4 | 18962 | |
afc31813 | 18963 | fi |
698dcdb6 | 18964 | rm -f conftest* |
51a9faba | 18965 | |
3a922bb4 | 18966 | ac_ext=c |
698dcdb6 | 18967 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
afc31813 | 18968 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
18969 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
18970 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
18971 | cross_compiling=$ac_cv_prog_cc_cross | |
afc31813 | 18972 | |
3a922bb4 | 18973 | |
51a9faba | 18974 | fi |
698dcdb6 VZ |
18975 | |
18976 | echo "$ac_t""$wx_cv_type_getsockname3" 1>&6 | |
51a9faba | 18977 | |
3a922bb4 RL |
18978 | if test "$wx_cv_type_getsockname3" = "unknown"; then |
18979 | wxUSE_SOCKETS=no | |
18980 | echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2 | |
18981 | else | |
18982 | cat >> confdefs.h <<EOF | |
51a9faba VZ |
18983 | #define SOCKLEN_T $wx_cv_type_getsockname3 |
18984 | EOF | |
18985 | ||
3a922bb4 | 18986 | fi |
51a9faba VZ |
18987 | fi |
18988 | fi | |
afc31813 | 18989 | |
51a9faba | 18990 | if test "$wxUSE_SOCKETS" = "yes" ; then |
698dcdb6 | 18991 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
18992 | #define wxUSE_SOCKETS 1 |
18993 | EOF | |
18994 | ||
70f7a477 | 18995 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
afc31813 VZ |
18996 | fi |
18997 | ||
698dcdb6 | 18998 | |
dc3d889d VZ |
18999 | if test "$wxUSE_GUI" = "yes"; then |
19000 | ||
156b2523 GD |
19001 | if test "$TOOLKIT" = "MAC"; then |
19002 | echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2 | |
19003 | wxUSE_JOYSTICK=no | |
19004 | fi | |
19005 | if test "$TOOLKIT" = "MOTIF"; then | |
19006 | echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2 | |
19007 | wxUSE_JOYSTICK=no | |
f79bd02d JS |
19008 | fi |
19009 | if test "$TOOLKIT" = "X11"; then | |
19010 | echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2 | |
19011 | wxUSE_JOYSTICK=no | |
156b2523 GD |
19012 | fi |
19013 | ||
3a922bb4 RL |
19014 | if test "$TOOLKIT" != "MSW"; then |
19015 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
19016 | for ac_hdr in linux/joystick.h | |
10f2d63a | 19017 | do |
698dcdb6 VZ |
19018 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
19019 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
5a5d3c08 | 19020 | echo "configure:19021: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
19021 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
19022 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19023 | else | |
19024 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 19025 | #line 19026 "configure" |
10f2d63a | 19026 | #include "confdefs.h" |
698dcdb6 VZ |
19027 | #include <$ac_hdr> |
19028 | EOF | |
19029 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5a5d3c08 | 19030 | { (eval echo configure:19031: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
19031 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
19032 | if test -z "$ac_err"; then | |
19033 | rm -rf conftest* | |
19034 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 19035 | else |
698dcdb6 VZ |
19036 | echo "$ac_err" >&5 |
19037 | echo "configure: failed program was:" >&5 | |
10f2d63a | 19038 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
19039 | rm -rf conftest* |
19040 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 19041 | fi |
698dcdb6 | 19042 | rm -f conftest* |
10f2d63a | 19043 | fi |
698dcdb6 VZ |
19044 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
19045 | echo "$ac_t""yes" 1>&6 | |
19046 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
19047 | cat >> confdefs.h <<EOF | |
19048 | #define $ac_tr_hdr 1 | |
10f2d63a | 19049 | EOF |
698dcdb6 VZ |
19050 | |
19051 | else | |
19052 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
19053 | fi |
19054 | done | |
19055 | ||
3a922bb4 RL |
19056 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then |
19057 | wxUSE_JOYSTICK=no | |
156b2523 | 19058 | echo "configure: warning: Joystick not supported by this system... disabled" 1>&2 |
3a922bb4 RL |
19059 | fi |
19060 | fi | |
19061 | fi | |
b089607b | 19062 | |
3a922bb4 RL |
19063 | if test "$wxUSE_JOYSTICK" = "yes"; then |
19064 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
19065 | #define wxUSE_JOYSTICK 1 |
19066 | EOF | |
19067 | ||
3a922bb4 RL |
19068 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
19069 | fi | |
dc3d889d VZ |
19070 | fi |
19071 | ||
698dcdb6 | 19072 | |
b089607b VZ |
19073 | if test "$TOOLKIT" != "MSW"; then |
19074 | ||
3a922bb4 RL |
19075 | HAVE_DL_FUNCS=0 |
19076 | HAVE_SHL_FUNCS=0 | |
0b9ab0bd | 19077 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then |
3a922bb4 RL |
19078 | if test "$USE_DARWIN" = 1; then |
19079 | HAVE_DL_FUNCS=1 | |
19080 | else | |
19081 | for ac_func in dlopen | |
10f2d63a | 19082 | do |
698dcdb6 | 19083 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5a5d3c08 | 19084 | echo "configure:19085: checking for $ac_func" >&5 |
698dcdb6 VZ |
19085 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
19086 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19087 | else | |
19088 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 19089 | #line 19090 "configure" |
10f2d63a VZ |
19090 | #include "confdefs.h" |
19091 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 19092 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
19093 | #include <assert.h> |
19094 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19095 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
19096 | builtin and then its argument prototype would still apply. */ |
19097 | char $ac_func(); | |
19098 | ||
19099 | int main() { | |
10f2d63a VZ |
19100 | |
19101 | /* The GNU C library defines this for functions which it implements | |
19102 | to always fail with ENOSYS. Some functions are actually named | |
19103 | something starting with __ and the normal name is an alias. */ | |
19104 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19105 | choke me | |
19106 | #else | |
698dcdb6 | 19107 | $ac_func(); |
10f2d63a VZ |
19108 | #endif |
19109 | ||
698dcdb6 VZ |
19110 | ; return 0; } |
19111 | EOF | |
5a5d3c08 | 19112 | if { (eval echo configure:19113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
19113 | rm -rf conftest* |
19114 | eval "ac_cv_func_$ac_func=yes" | |
19115 | else | |
19116 | echo "configure: failed program was:" >&5 | |
19117 | cat conftest.$ac_ext >&5 | |
19118 | rm -rf conftest* | |
19119 | eval "ac_cv_func_$ac_func=no" | |
19120 | fi | |
19121 | rm -f conftest* | |
19122 | fi | |
19123 | ||
19124 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
19125 | echo "$ac_t""yes" 1>&6 | |
19126 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19127 | cat >> confdefs.h <<EOF | |
19128 | #define $ac_tr_func 1 | |
19129 | EOF | |
19130 | ||
3a922bb4 | 19131 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19132 | #define HAVE_DLOPEN 1 |
19133 | EOF | |
19134 | ||
3a922bb4 RL |
19135 | HAVE_DL_FUNCS=1 |
19136 | ||
10f2d63a | 19137 | else |
698dcdb6 VZ |
19138 | echo "$ac_t""no" 1>&6 |
19139 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
5a5d3c08 | 19140 | echo "configure:19141: checking for dlopen in -ldl" >&5 |
698dcdb6 VZ |
19141 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
19142 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19143 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 19144 | else |
698dcdb6 | 19145 | ac_save_LIBS="$LIBS" |
10f2d63a | 19146 | LIBS="-ldl $LIBS" |
698dcdb6 | 19147 | cat > conftest.$ac_ext <<EOF |
5a5d3c08 | 19148 | #line 19149 "configure" |
10f2d63a VZ |
19149 | #include "confdefs.h" |
19150 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19151 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
19152 | builtin and then its argument prototype would still apply. */ |
19153 | char dlopen(); | |
19154 | ||
19155 | int main() { | |
19156 | dlopen() | |
19157 | ; return 0; } | |
19158 | EOF | |
5a5d3c08 | 19159 | if { (eval echo configure:19160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
19160 | rm -rf conftest* |
19161 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19162 | else | |
19163 | echo "configure: failed program was:" >&5 | |
19164 | cat conftest.$ac_ext >&5 | |
19165 | rm -rf conftest* | |
19166 | eval "ac_cv_lib_$ac_lib_var=no" | |
19167 | fi | |
19168 | rm -f conftest* | |
19169 | LIBS="$ac_save_LIBS" | |
19170 | ||
19171 | fi | |
19172 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19173 | echo "$ac_t""yes" 1>&6 | |
19174 | ||
3a922bb4 | 19175 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19176 | #define HAVE_DLOPEN 1 |
19177 | EOF | |
19178 | ||
3a922bb4 | 19179 | HAVE_DL_FUNCS=1 |
3d63bc3a | 19180 | DL_LINK=" -ldl$DL_LINK" |
3a922bb4 | 19181 | |
10f2d63a | 19182 | else |
698dcdb6 | 19183 | echo "$ac_t""no" 1>&6 |
10f2d63a | 19184 | |
3a922bb4 | 19185 | for ac_func in shl_load |
10f2d63a | 19186 | do |
698dcdb6 | 19187 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5a5d3c08 | 19188 | echo "configure:19189: checking for $ac_func" >&5 |
698dcdb6 VZ |
19189 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
19190 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19191 | else | |
19192 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 19193 | #line 19194 "configure" |
10f2d63a VZ |
19194 | #include "confdefs.h" |
19195 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 19196 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
19197 | #include <assert.h> |
19198 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19199 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
19200 | builtin and then its argument prototype would still apply. */ |
19201 | char $ac_func(); | |
19202 | ||
19203 | int main() { | |
10f2d63a VZ |
19204 | |
19205 | /* The GNU C library defines this for functions which it implements | |
19206 | to always fail with ENOSYS. Some functions are actually named | |
19207 | something starting with __ and the normal name is an alias. */ | |
19208 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19209 | choke me | |
19210 | #else | |
698dcdb6 | 19211 | $ac_func(); |
10f2d63a VZ |
19212 | #endif |
19213 | ||
698dcdb6 VZ |
19214 | ; return 0; } |
19215 | EOF | |
5a5d3c08 | 19216 | if { (eval echo configure:19217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
19217 | rm -rf conftest* |
19218 | eval "ac_cv_func_$ac_func=yes" | |
19219 | else | |
19220 | echo "configure: failed program was:" >&5 | |
19221 | cat conftest.$ac_ext >&5 | |
19222 | rm -rf conftest* | |
19223 | eval "ac_cv_func_$ac_func=no" | |
19224 | fi | |
19225 | rm -f conftest* | |
19226 | fi | |
19227 | ||
19228 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
19229 | echo "$ac_t""yes" 1>&6 | |
19230 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19231 | cat >> confdefs.h <<EOF | |
19232 | #define $ac_tr_func 1 | |
19233 | EOF | |
19234 | ||
3a922bb4 | 19235 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19236 | #define HAVE_SHL_LOAD 1 |
19237 | EOF | |
19238 | ||
3a922bb4 RL |
19239 | HAVE_SHL_FUNCS=1 |
19240 | ||
10f2d63a | 19241 | else |
698dcdb6 VZ |
19242 | echo "$ac_t""no" 1>&6 |
19243 | echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6 | |
5a5d3c08 | 19244 | echo "configure:19245: checking for dld in -lshl_load" >&5 |
698dcdb6 VZ |
19245 | ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'` |
19246 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19247 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 19248 | else |
698dcdb6 | 19249 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 19250 | LIBS="-lshl_load $LIBS" |
698dcdb6 | 19251 | cat > conftest.$ac_ext <<EOF |
5a5d3c08 | 19252 | #line 19253 "configure" |
f6bcfd97 BP |
19253 | #include "confdefs.h" |
19254 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19255 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
19256 | builtin and then its argument prototype would still apply. */ |
19257 | char dld(); | |
19258 | ||
19259 | int main() { | |
19260 | dld() | |
19261 | ; return 0; } | |
19262 | EOF | |
5a5d3c08 | 19263 | if { (eval echo configure:19264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
19264 | rm -rf conftest* |
19265 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19266 | else | |
19267 | echo "configure: failed program was:" >&5 | |
19268 | cat conftest.$ac_ext >&5 | |
19269 | rm -rf conftest* | |
19270 | eval "ac_cv_lib_$ac_lib_var=no" | |
19271 | fi | |
19272 | rm -f conftest* | |
19273 | LIBS="$ac_save_LIBS" | |
f6bcfd97 | 19274 | |
698dcdb6 VZ |
19275 | fi |
19276 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19277 | echo "$ac_t""yes" 1>&6 | |
19278 | ||
3a922bb4 | 19279 | HAVE_SHL_FUNCS=1 |
3d63bc3a | 19280 | DL_LINK=" -ldld$DL_LINK" |
3a922bb4 | 19281 | |
698dcdb6 VZ |
19282 | else |
19283 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
19284 | fi |
19285 | ||
3a922bb4 | 19286 | |
10f2d63a VZ |
19287 | fi |
19288 | done | |
19289 | ||
3a922bb4 | 19290 | |
10f2d63a VZ |
19291 | fi |
19292 | ||
3a922bb4 | 19293 | |
10f2d63a VZ |
19294 | fi |
19295 | done | |
19296 | ||
1e487827 | 19297 | |
3a922bb4 RL |
19298 | if test "$HAVE_DL_FUNCS" = 1; then |
19299 | for ac_func in dlerror | |
f6bcfd97 | 19300 | do |
698dcdb6 | 19301 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5a5d3c08 | 19302 | echo "configure:19303: checking for $ac_func" >&5 |
698dcdb6 VZ |
19303 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
19304 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19305 | else | |
19306 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 19307 | #line 19308 "configure" |
f6bcfd97 BP |
19308 | #include "confdefs.h" |
19309 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 19310 | which can conflict with char $ac_func(); below. */ |
f6bcfd97 BP |
19311 | #include <assert.h> |
19312 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19313 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
19314 | builtin and then its argument prototype would still apply. */ |
19315 | char $ac_func(); | |
19316 | ||
19317 | int main() { | |
f6bcfd97 BP |
19318 | |
19319 | /* The GNU C library defines this for functions which it implements | |
19320 | to always fail with ENOSYS. Some functions are actually named | |
19321 | something starting with __ and the normal name is an alias. */ | |
19322 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19323 | choke me | |
19324 | #else | |
698dcdb6 | 19325 | $ac_func(); |
f6bcfd97 BP |
19326 | #endif |
19327 | ||
698dcdb6 VZ |
19328 | ; return 0; } |
19329 | EOF | |
5a5d3c08 | 19330 | if { (eval echo configure:19331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
19331 | rm -rf conftest* |
19332 | eval "ac_cv_func_$ac_func=yes" | |
19333 | else | |
19334 | echo "configure: failed program was:" >&5 | |
19335 | cat conftest.$ac_ext >&5 | |
19336 | rm -rf conftest* | |
19337 | eval "ac_cv_func_$ac_func=no" | |
19338 | fi | |
19339 | rm -f conftest* | |
19340 | fi | |
19341 | ||
19342 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
19343 | echo "$ac_t""yes" 1>&6 | |
19344 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19345 | cat >> confdefs.h <<EOF | |
19346 | #define $ac_tr_func 1 | |
19347 | EOF | |
19348 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
19349 | #define HAVE_DLERROR 1 |
19350 | EOF | |
19351 | ||
19352 | else | |
698dcdb6 VZ |
19353 | echo "$ac_t""no" 1>&6 |
19354 | echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6 | |
5a5d3c08 | 19355 | echo "configure:19356: checking for dlerror in -ldl" >&5 |
698dcdb6 VZ |
19356 | ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'` |
19357 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19358 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 19359 | else |
698dcdb6 | 19360 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 19361 | LIBS="-ldl $LIBS" |
698dcdb6 | 19362 | cat > conftest.$ac_ext <<EOF |
5a5d3c08 | 19363 | #line 19364 "configure" |
f6bcfd97 BP |
19364 | #include "confdefs.h" |
19365 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19366 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
19367 | builtin and then its argument prototype would still apply. */ |
19368 | char dlerror(); | |
19369 | ||
19370 | int main() { | |
19371 | dlerror() | |
19372 | ; return 0; } | |
19373 | EOF | |
5a5d3c08 | 19374 | if { (eval echo configure:19375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
19375 | rm -rf conftest* |
19376 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19377 | else | |
19378 | echo "configure: failed program was:" >&5 | |
19379 | cat conftest.$ac_ext >&5 | |
19380 | rm -rf conftest* | |
19381 | eval "ac_cv_lib_$ac_lib_var=no" | |
19382 | fi | |
19383 | rm -f conftest* | |
19384 | LIBS="$ac_save_LIBS" | |
19385 | ||
19386 | fi | |
19387 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19388 | echo "$ac_t""yes" 1>&6 | |
19389 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
19390 | #define HAVE_DLERROR 1 |
19391 | EOF | |
19392 | ||
698dcdb6 VZ |
19393 | else |
19394 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
19395 | fi |
19396 | ||
19397 | fi | |
19398 | done | |
19399 | ||
3a922bb4 RL |
19400 | fi |
19401 | fi | |
f6bcfd97 | 19402 | |
3a922bb4 RL |
19403 | if test "$HAVE_DL_FUNCS" = 0; then |
19404 | if test "$HAVE_SHL_FUNCS" = 0; then | |
19405 | if test "$USE_UNIX" = 1; then | |
19406 | echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2 | |
0b9ab0bd | 19407 | wxUSE_DYNAMIC_LOADER=no |
3a922bb4 RL |
19408 | wxUSE_DYNLIB_CLASS=no |
19409 | else | |
19410 | echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2 | |
19411 | fi | |
19412 | fi | |
10f2d63a VZ |
19413 | fi |
19414 | fi | |
19415 | fi | |
19416 | ||
0b9ab0bd RL |
19417 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then |
19418 | cat >> confdefs.h <<\EOF | |
19419 | #define wxUSE_DYNAMIC_LOADER 1 | |
19420 | EOF | |
19421 | ||
19422 | elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
698dcdb6 | 19423 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19424 | #define wxUSE_DYNLIB_CLASS 1 |
19425 | EOF | |
19426 | ||
19427 | fi | |
19428 | ||
698dcdb6 | 19429 | |
1e6feb95 VZ |
19430 | if test "$wxUSE_FONTMAP" = "yes" ; then |
19431 | cat >> confdefs.h <<\EOF | |
19432 | #define wxUSE_FONTMAP 1 | |
19433 | EOF | |
19434 | ||
19435 | fi | |
19436 | ||
10f2d63a | 19437 | if test "$wxUSE_UNICODE" = "yes" ; then |
698dcdb6 | 19438 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19439 | #define wxUSE_UNICODE 1 |
19440 | EOF | |
19441 | ||
bbc3925a VS |
19442 | |
19443 | if test "$wxUSE_MSW" != 1; then | |
19444 | wxUSE_UNICODE_MSLU=no | |
19445 | fi | |
a72a4bfa VS |
19446 | |
19447 | if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
19448 | echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6 | |
5a5d3c08 | 19449 | echo "configure:19450: checking for main in -lunicows" >&5 |
a72a4bfa VS |
19450 | ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'` |
19451 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19452 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19453 | else | |
19454 | ac_save_LIBS="$LIBS" | |
19455 | LIBS="-lunicows $LIBS" | |
19456 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 19457 | #line 19458 "configure" |
a72a4bfa VS |
19458 | #include "confdefs.h" |
19459 | ||
19460 | int main() { | |
19461 | main() | |
19462 | ; return 0; } | |
19463 | EOF | |
5a5d3c08 | 19464 | if { (eval echo configure:19465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a72a4bfa VS |
19465 | rm -rf conftest* |
19466 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19467 | else | |
19468 | echo "configure: failed program was:" >&5 | |
19469 | cat conftest.$ac_ext >&5 | |
19470 | rm -rf conftest* | |
19471 | eval "ac_cv_lib_$ac_lib_var=no" | |
19472 | fi | |
19473 | rm -f conftest* | |
19474 | LIBS="$ac_save_LIBS" | |
19475 | ||
19476 | fi | |
19477 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19478 | echo "$ac_t""yes" 1>&6 | |
19479 | ||
19480 | cat >> confdefs.h <<\EOF | |
19481 | #define wxUSE_UNICODE_MSLU 1 | |
19482 | EOF | |
19483 | ||
19484 | ||
19485 | else | |
19486 | echo "$ac_t""no" 1>&6 | |
19487 | ||
19488 | echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled. | |
19489 | Applications will only run on Windows NT/2000/XP!" 1>&2 | |
19490 | wxUSE_UNICODE_MSLU=no | |
19491 | ||
19492 | fi | |
19493 | ||
19494 | fi | |
10f2d63a VZ |
19495 | fi |
19496 | ||
10f2d63a | 19497 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then |
698dcdb6 | 19498 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19499 | #define wxUSE_EXPERIMENTAL_PRINTF 1 |
19500 | EOF | |
19501 | ||
19502 | fi | |
19503 | ||
698dcdb6 | 19504 | |
698dcdb6 | 19505 | |
10f2d63a VZ |
19506 | IODBC_C_SRC="" |
19507 | if test "$wxUSE_ODBC" = "yes" ; then | |
698dcdb6 | 19508 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19509 | #define wxUSE_ODBC 1 |
19510 | EOF | |
19511 | ||
19512 | WXODBCFLAG="-D_IODBC_" | |
19513 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
10f2d63a VZ |
19514 | fi |
19515 | ||
698dcdb6 | 19516 | |
10f2d63a | 19517 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then |
698dcdb6 | 19518 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19519 | #define wxUSE_POSTSCRIPT 1 |
19520 | EOF | |
19521 | ||
19522 | fi | |
19523 | ||
698dcdb6 | 19524 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19525 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 |
19526 | EOF | |
19527 | ||
698dcdb6 VZ |
19528 | |
19529 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
19530 | #define wxUSE_NORMALIZED_PS_FONTS 1 |
19531 | EOF | |
19532 | ||
698dcdb6 VZ |
19533 | |
19534 | ||
10f2d63a | 19535 | if test "$wxUSE_CONSTRAINTS" = "yes"; then |
698dcdb6 | 19536 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19537 | #define wxUSE_CONSTRAINTS 1 |
19538 | EOF | |
19539 | ||
19540 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
19541 | fi | |
19542 | ||
19543 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
fc26f4ab | 19544 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
0feee163 | 19545 | echo "configure: warning: MDI not yet supported for wxUniversal... disabled" 1>&2 |
fc26f4ab RL |
19546 | wxUSE_MDI_ARCHITECTURE=no |
19547 | fi | |
19548 | ||
19549 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
19550 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
19551 | #define wxUSE_MDI_ARCHITECTURE 1 |
19552 | EOF | |
19553 | ||
fc26f4ab RL |
19554 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
19555 | fi | |
10f2d63a VZ |
19556 | fi |
19557 | ||
19558 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
698dcdb6 | 19559 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19560 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 |
19561 | EOF | |
19562 | ||
19563 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
19564 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
19565 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
19566 | fi | |
19567 | fi | |
19568 | ||
19569 | if test "$wxUSE_HELP" = "yes"; then | |
698dcdb6 | 19570 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19571 | #define wxUSE_HELP 1 |
19572 | EOF | |
19573 | ||
19574 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
3379ed37 | 19575 | |
77e13408 | 19576 | if test "$wxUSE_MSW" = 1; then |
031d8228 | 19577 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then |
3b7bc64a | 19578 | cat >> confdefs.h <<\EOF |
29fd3c0c VS |
19579 | #define wxUSE_MS_HTML_HELP 1 |
19580 | EOF | |
19581 | ||
3e44f09d | 19582 | fi |
3379ed37 | 19583 | fi |
031d8228 VS |
19584 | |
19585 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
19586 | if test "$wxUSE_HTML" = "yes"; then | |
19587 | cat >> confdefs.h <<\EOF | |
19588 | #define wxUSE_WXHTML_HELP 1 | |
19589 | EOF | |
19590 | ||
19591 | else | |
19592 | echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2 | |
19593 | wxUSE_WXHTML_HELP=no | |
19594 | fi | |
19595 | fi | |
10f2d63a VZ |
19596 | fi |
19597 | ||
19598 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
19599 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
698dcdb6 | 19600 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 |
10f2d63a | 19601 | else |
698dcdb6 | 19602 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19603 | #define wxUSE_PRINTING_ARCHITECTURE 1 |
19604 | EOF | |
19605 | ||
19606 | fi | |
19607 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
19608 | fi | |
19609 | ||
19610 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
698dcdb6 | 19611 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19612 | #define wxUSE_PROLOGIO 1 |
19613 | EOF | |
19614 | ||
19615 | fi | |
19616 | ||
19617 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
e334d0ea JS |
19618 | if test "$wxUSE_NANOX" = "yes"; then |
19619 | echo "configure: warning: Cannot use resource database functions in NanoX" 1>&2 | |
19620 | else | |
19621 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
19622 | #define wxUSE_RESOURCES 1 |
19623 | EOF | |
19624 | ||
e334d0ea JS |
19625 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" |
19626 | fi | |
10f2d63a VZ |
19627 | fi |
19628 | ||
19629 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
698dcdb6 | 19630 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19631 | #define wxUSE_X_RESOURCES 1 |
19632 | EOF | |
19633 | ||
19634 | fi | |
19635 | ||
698dcdb6 | 19636 | |
77e13408 RL |
19637 | if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ |
19638 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
19639 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
2b9bdf71 | 19640 | for ac_hdr in ole2.h |
10f2d63a | 19641 | do |
698dcdb6 VZ |
19642 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
19643 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
5a5d3c08 | 19644 | echo "configure:19645: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
19645 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
19646 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19647 | else | |
19648 | cat > conftest.$ac_ext <<EOF | |
5a5d3c08 | 19649 | #line 19650 "configure" |
10f2d63a | 19650 | #include "confdefs.h" |
698dcdb6 VZ |
19651 | #include <$ac_hdr> |
19652 | EOF | |
19653 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5a5d3c08 | 19654 | { (eval echo configure:19655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
19655 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
19656 | if test -z "$ac_err"; then | |
19657 | rm -rf conftest* | |
19658 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 19659 | else |
698dcdb6 VZ |
19660 | echo "$ac_err" >&5 |
19661 | echo "configure: failed program was:" >&5 | |
10f2d63a | 19662 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
19663 | rm -rf conftest* |
19664 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 19665 | fi |
698dcdb6 | 19666 | rm -f conftest* |
10f2d63a | 19667 | fi |
698dcdb6 VZ |
19668 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
19669 | echo "$ac_t""yes" 1>&6 | |
19670 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
19671 | cat >> confdefs.h <<EOF | |
19672 | #define $ac_tr_hdr 1 | |
10f2d63a | 19673 | EOF |
698dcdb6 VZ |
19674 | |
19675 | else | |
19676 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
19677 | fi |
19678 | done | |
19679 | ||
698dcdb6 | 19680 | |
2b9bdf71 VZ |
19681 | if test "$ac_cv_header_ole2_h" = "yes" ; then |
19682 | if test "$GCC" = yes ; then | |
19683 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" | |
2b9bdf71 | 19684 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" |
3d63bc3a | 19685 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
2b9bdf71 | 19686 | cat >> confdefs.h <<\EOF |
4f11a343 VS |
19687 | #define wxUSE_OLE 1 |
19688 | EOF | |
19689 | ||
b64f0a5f | 19690 | |
2b9bdf71 VZ |
19691 | fi |
19692 | ||
19693 | cat >> confdefs.h <<\EOF | |
19694 | #define wxUSE_DATAOBJ 1 | |
19695 | EOF | |
19696 | ||
19697 | else | |
19698 | echo "configure: warning: Some features disabled because OLE headers not found" 1>&2 | |
19699 | ||
19700 | wxUSE_CLIPBOARD=no | |
19701 | wxUSE_DRAG_AND_DROP=no | |
19702 | wxUSE_DATAOBJ=no | |
19703 | fi | |
19704 | ||
77e13408 | 19705 | if test "$wxUSE_METAFILE" = "yes"; then |
2b9bdf71 | 19706 | cat >> confdefs.h <<\EOF |
b64f0a5f RL |
19707 | #define wxUSE_METAFILE 1 |
19708 | EOF | |
19709 | ||
2b9bdf71 VZ |
19710 | |
19711 | cat >> confdefs.h <<\EOF | |
b64f0a5f RL |
19712 | #define wxUSE_ENH_METAFILE 1 |
19713 | EOF | |
19714 | ||
2b9bdf71 VZ |
19715 | fi |
19716 | fi | |
19717 | ||
19718 | if test "$wxUSE_IPC" = "yes"; then | |
19719 | if test "$wxUSE_SOCKETS" != "yes"; then | |
156b2523 | 19720 | echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2 |
2b9bdf71 VZ |
19721 | fi |
19722 | ||
19723 | cat >> confdefs.h <<\EOF | |
19724 | #define wxUSE_IPC 1 | |
19725 | EOF | |
19726 | ||
19727 | fi | |
19728 | ||
19729 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
9691c806 | 19730 | cat >> confdefs.h <<\EOF |
2b9bdf71 VZ |
19731 | #define wxUSE_CLIPBOARD 1 |
19732 | EOF | |
19733 | ||
673f4220 | 19734 | |
9691c806 | 19735 | cat >> confdefs.h <<\EOF |
673f4220 VZ |
19736 | #define wxUSE_DATAOBJ 1 |
19737 | EOF | |
19738 | ||
2b9bdf71 VZ |
19739 | fi |
19740 | ||
19741 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
19742 | if test "$wxUSE_GTK" = 1; then | |
19743 | if test "$WXGTK12" != 1; then | |
156b2523 | 19744 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2 |
10f2d63a VZ |
19745 | wxUSE_DRAG_AND_DROP=no |
19746 | fi | |
19747 | fi | |
19748 | ||
2b9bdf71 | 19749 | if test "$wxUSE_MOTIF" = 1; then |
156b2523 | 19750 | echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2 |
2b9bdf71 VZ |
19751 | wxUSE_DRAG_AND_DROP=no |
19752 | fi | |
19753 | ||
f79bd02d JS |
19754 | if test "$wxUSE_X11" = 1; then |
19755 | echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2 | |
19756 | wxUSE_DRAG_AND_DROP=no | |
19757 | fi | |
19758 | ||
10f2d63a | 19759 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then |
698dcdb6 | 19760 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19761 | #define wxUSE_DRAG_AND_DROP 1 |
19762 | EOF | |
19763 | ||
19764 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
19765 | fi | |
19766 | ||
19767 | fi | |
19768 | ||
19769 | if test "$wxUSE_SPLINES" = "yes" ; then | |
698dcdb6 | 19770 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19771 | #define wxUSE_SPLINES 1 |
19772 | EOF | |
19773 | ||
19774 | fi | |
19775 | ||
698dcdb6 | 19776 | |
1e6feb95 VZ |
19777 | USES_CONTROLS=0 |
19778 | if test "$wxUSE_CONTROLS" = "yes"; then | |
19779 | USES_CONTROLS=1 | |
19780 | fi | |
19781 | ||
10f2d63a | 19782 | if test "$wxUSE_ACCEL" = "yes"; then |
698dcdb6 | 19783 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19784 | #define wxUSE_ACCEL 1 |
19785 | EOF | |
19786 | ||
1e6feb95 VZ |
19787 | USES_CONTROLS=1 |
19788 | fi | |
19789 | ||
19790 | if test "$wxUSE_BUTTON" = "yes"; then | |
19791 | cat >> confdefs.h <<\EOF | |
19792 | #define wxUSE_BUTTON 1 | |
19793 | EOF | |
19794 | ||
19795 | USES_CONTROLS=1 | |
19796 | fi | |
19797 | ||
19798 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
19799 | cat >> confdefs.h <<\EOF | |
19800 | #define wxUSE_BMPBUTTON 1 | |
19801 | EOF | |
19802 | ||
19803 | USES_CONTROLS=1 | |
19804 | fi | |
19805 | ||
19806 | if test "$wxUSE_CALCTRL" = "yes"; then | |
19807 | cat >> confdefs.h <<\EOF | |
19808 | #define wxUSE_CALENDARCTRL 1 | |
19809 | EOF | |
19810 | ||
19811 | USES_CONTROLS=1 | |
19812 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
10f2d63a VZ |
19813 | fi |
19814 | ||
19815 | if test "$wxUSE_CARET" = "yes"; then | |
698dcdb6 | 19816 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19817 | #define wxUSE_CARET 1 |
19818 | EOF | |
19819 | ||
1e6feb95 | 19820 | USES_CONTROLS=1 |
10f2d63a VZ |
19821 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" |
19822 | fi | |
19823 | ||
19824 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
698dcdb6 | 19825 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19826 | #define wxUSE_COMBOBOX 1 |
19827 | EOF | |
19828 | ||
1e6feb95 | 19829 | USES_CONTROLS=1 |
10f2d63a VZ |
19830 | fi |
19831 | ||
19832 | if test "$wxUSE_CHOICE" = "yes"; then | |
698dcdb6 | 19833 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19834 | #define wxUSE_CHOICE 1 |
19835 | EOF | |
19836 | ||
1e6feb95 | 19837 | USES_CONTROLS=1 |
10f2d63a VZ |
19838 | fi |
19839 | ||
19840 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
698dcdb6 | 19841 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19842 | #define wxUSE_CHECKBOX 1 |
19843 | EOF | |
19844 | ||
1e6feb95 | 19845 | USES_CONTROLS=1 |
10f2d63a VZ |
19846 | fi |
19847 | ||
19848 | if test "$wxUSE_CHECKLST" = "yes"; then | |
698dcdb6 | 19849 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19850 | #define wxUSE_CHECKLISTBOX 1 |
19851 | EOF | |
19852 | ||
1e6feb95 | 19853 | USES_CONTROLS=1 |
10f2d63a VZ |
19854 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" |
19855 | fi | |
19856 | ||
19857 | if test "$wxUSE_GAUGE" = "yes"; then | |
698dcdb6 | 19858 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19859 | #define wxUSE_GAUGE 1 |
19860 | EOF | |
19861 | ||
1e6feb95 | 19862 | USES_CONTROLS=1 |
10f2d63a VZ |
19863 | fi |
19864 | ||
d6a55c4b VZ |
19865 | if test "$wxUSE_NEW_GRID" = "yes"; then |
19866 | wxUSE_GRID="yes" | |
698dcdb6 | 19867 | cat >> confdefs.h <<\EOF |
d6a55c4b | 19868 | #define wxUSE_NEW_GRID 1 |
10f2d63a VZ |
19869 | EOF |
19870 | ||
1e6feb95 | 19871 | USES_CONTROLS=1 |
d6a55c4b | 19872 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid" |
10f2d63a VZ |
19873 | fi |
19874 | ||
d6a55c4b | 19875 | if test "$wxUSE_GRID" = "yes"; then |
698dcdb6 | 19876 | cat >> confdefs.h <<\EOF |
d6a55c4b | 19877 | #define wxUSE_GRID 1 |
10f2d63a VZ |
19878 | EOF |
19879 | ||
1e6feb95 | 19880 | USES_CONTROLS=1 |
d6a55c4b | 19881 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
19882 | fi |
19883 | ||
19884 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 19885 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19886 | #define wxUSE_IMAGLIST 1 |
19887 | EOF | |
19888 | ||
19889 | fi | |
19890 | ||
19891 | if test "$wxUSE_LISTBOX" = "yes"; then | |
698dcdb6 | 19892 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19893 | #define wxUSE_LISTBOX 1 |
19894 | EOF | |
19895 | ||
1e6feb95 | 19896 | USES_CONTROLS=1 |
10f2d63a VZ |
19897 | fi |
19898 | ||
19899 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
19900 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 19901 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19902 | #define wxUSE_LISTCTRL 1 |
19903 | EOF | |
19904 | ||
1e6feb95 | 19905 | USES_CONTROLS=1 |
10f2d63a VZ |
19906 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" |
19907 | else | |
698dcdb6 | 19908 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
19909 | fi |
19910 | fi | |
19911 | ||
19912 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
698dcdb6 | 19913 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19914 | #define wxUSE_NOTEBOOK 1 |
19915 | EOF | |
19916 | ||
1e6feb95 | 19917 | USES_CONTROLS=1 |
10f2d63a VZ |
19918 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" |
19919 | fi | |
19920 | ||
24176f2c GD |
19921 | if test "$wxUSE_PROPSHEET" = "yes"; then |
19922 | cat >> confdefs.h <<\EOF | |
19923 | #define wxUSE_PROPSHEET 1 | |
19924 | EOF | |
19925 | ||
19926 | USES_CONTROLS=1 | |
19927 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist" | |
19928 | fi | |
19929 | ||
10f2d63a | 19930 | if test "$wxUSE_RADIOBOX" = "yes"; then |
698dcdb6 | 19931 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19932 | #define wxUSE_RADIOBOX 1 |
19933 | EOF | |
19934 | ||
1e6feb95 | 19935 | USES_CONTROLS=1 |
10f2d63a VZ |
19936 | fi |
19937 | ||
19938 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
698dcdb6 | 19939 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19940 | #define wxUSE_RADIOBTN 1 |
19941 | EOF | |
19942 | ||
1e6feb95 | 19943 | USES_CONTROLS=1 |
10f2d63a VZ |
19944 | fi |
19945 | ||
19946 | if test "$wxUSE_SASH" = "yes"; then | |
698dcdb6 | 19947 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19948 | #define wxUSE_SASH 1 |
19949 | EOF | |
19950 | ||
19951 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
19952 | fi | |
19953 | ||
19954 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
698dcdb6 | 19955 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19956 | #define wxUSE_SCROLLBAR 1 |
19957 | EOF | |
19958 | ||
1e6feb95 | 19959 | USES_CONTROLS=1 |
741a9306 | 19960 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
19961 | fi |
19962 | ||
19963 | if test "$wxUSE_SLIDER" = "yes"; then | |
698dcdb6 | 19964 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19965 | #define wxUSE_SLIDER 1 |
19966 | EOF | |
19967 | ||
1e6feb95 | 19968 | USES_CONTROLS=1 |
10f2d63a VZ |
19969 | fi |
19970 | ||
19971 | if test "$wxUSE_SPINBTN" = "yes"; then | |
698dcdb6 | 19972 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19973 | #define wxUSE_SPINBTN 1 |
19974 | EOF | |
19975 | ||
1e6feb95 | 19976 | USES_CONTROLS=1 |
10f2d63a VZ |
19977 | fi |
19978 | ||
56cfaa52 | 19979 | if test "$wxUSE_SPINCTRL" = "yes"; then |
698dcdb6 | 19980 | cat >> confdefs.h <<\EOF |
56cfaa52 RR |
19981 | #define wxUSE_SPINCTRL 1 |
19982 | EOF | |
19983 | ||
1e6feb95 | 19984 | USES_CONTROLS=1 |
56cfaa52 RR |
19985 | fi |
19986 | ||
10f2d63a | 19987 | if test "$wxUSE_SPLITTER" = "yes"; then |
698dcdb6 | 19988 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19989 | #define wxUSE_SPLITTER 1 |
19990 | EOF | |
19991 | ||
19992 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
19993 | fi | |
19994 | ||
19995 | if test "$wxUSE_STATBMP" = "yes"; then | |
698dcdb6 | 19996 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19997 | #define wxUSE_STATBMP 1 |
19998 | EOF | |
19999 | ||
1e6feb95 | 20000 | USES_CONTROLS=1 |
10f2d63a VZ |
20001 | fi |
20002 | ||
20003 | if test "$wxUSE_STATBOX" = "yes"; then | |
698dcdb6 | 20004 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20005 | #define wxUSE_STATBOX 1 |
20006 | EOF | |
20007 | ||
1e6feb95 VZ |
20008 | USES_CONTROLS=1 |
20009 | fi | |
20010 | ||
20011 | if test "$wxUSE_STATTEXT" = "yes"; then | |
20012 | cat >> confdefs.h <<\EOF | |
20013 | #define wxUSE_STATTEXT 1 | |
20014 | EOF | |
20015 | ||
20016 | USES_CONTROLS=1 | |
10f2d63a VZ |
20017 | fi |
20018 | ||
20019 | if test "$wxUSE_STATLINE" = "yes"; then | |
20020 | if test "$wxUSE_WINE" = 1 ; then | |
698dcdb6 | 20021 | echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2 |
10f2d63a | 20022 | else |
698dcdb6 | 20023 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20024 | #define wxUSE_STATLINE 1 |
20025 | EOF | |
20026 | ||
1e6feb95 | 20027 | USES_CONTROLS=1 |
10f2d63a VZ |
20028 | fi |
20029 | fi | |
20030 | ||
20031 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
698dcdb6 | 20032 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20033 | #define wxUSE_STATUSBAR 1 |
20034 | EOF | |
20035 | ||
1e6feb95 | 20036 | USES_CONTROLS=1 |
698dcdb6 | 20037 | |
2286341c | 20038 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" |
10f2d63a VZ |
20039 | fi |
20040 | ||
20041 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
698dcdb6 | 20042 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20043 | #define wxUSE_TAB_DIALOG 1 |
20044 | EOF | |
20045 | ||
20046 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
20047 | fi | |
20048 | ||
1e6feb95 VZ |
20049 | if test "$wxUSE_TEXTCTRL" = "yes"; then |
20050 | cat >> confdefs.h <<\EOF | |
20051 | #define wxUSE_TEXTCTRL 1 | |
20052 | EOF | |
20053 | ||
20054 | USES_CONTROLS=1 | |
20055 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
20056 | fi | |
20057 | ||
1db8dc4a | 20058 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
156b2523 GD |
20059 | if test "$wxUSE_MAC" = 1; then |
20060 | echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2 | |
20061 | wxUSE_TOGGLEBTN=no | |
20062 | fi | |
20063 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
0feee163 | 20064 | echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2 |
a45d7ab7 GD |
20065 | wxUSE_TOGGLEBTN=no |
20066 | fi | |
20067 | ||
20068 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
20069 | cat >> confdefs.h <<\EOF | |
1db8dc4a VZ |
20070 | #define wxUSE_TOGGLEBTN 1 |
20071 | EOF | |
20072 | ||
1e6feb95 | 20073 | USES_CONTROLS=1 |
a45d7ab7 | 20074 | fi |
1db8dc4a VZ |
20075 | fi |
20076 | ||
360d6699 | 20077 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
698dcdb6 | 20078 | cat >> confdefs.h <<\EOF |
360d6699 VZ |
20079 | #define wxUSE_TOOLBAR_SIMPLE 1 |
20080 | EOF | |
20081 | ||
20082 | wxUSE_TOOLBAR="yes" | |
1e6feb95 | 20083 | USES_CONTROLS=1 |
360d6699 VZ |
20084 | fi |
20085 | ||
10f2d63a | 20086 | if test "$wxUSE_TOOLBAR" = "yes"; then |
698dcdb6 | 20087 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20088 | #define wxUSE_TOOLBAR 1 |
20089 | EOF | |
20090 | ||
1e6feb95 | 20091 | USES_CONTROLS=1 |
698dcdb6 | 20092 | |
360d6699 VZ |
20093 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then |
20094 | wxUSE_TOOLBAR_NATIVE="yes" | |
20095 | fi | |
20096 | ||
1e6feb95 VZ |
20097 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
20098 | cat >> confdefs.h <<\EOF | |
360d6699 VZ |
20099 | #define wxUSE_TOOLBAR_NATIVE 1 |
20100 | EOF | |
20101 | ||
1e6feb95 VZ |
20102 | USES_CONTROLS=1 |
20103 | fi | |
20104 | ||
20105 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
360d6699 VZ |
20106 | fi |
20107 | ||
10f2d63a VZ |
20108 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
20109 | if test "$wxUSE_MOTIF" = 1; then | |
156b2523 | 20110 | echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2 |
10f2d63a VZ |
20111 | else |
20112 | if test "$wxUSE_WINE" = 1; then | |
156b2523 | 20113 | echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2 |
10f2d63a | 20114 | else |
69d27ff7 | 20115 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
0feee163 | 20116 | echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2 |
69d27ff7 | 20117 | else |
3c011993 | 20118 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20119 | #define wxUSE_TOOLTIPS 1 |
20120 | EOF | |
20121 | ||
69d27ff7 | 20122 | fi |
10f2d63a VZ |
20123 | fi |
20124 | fi | |
20125 | fi | |
20126 | ||
20127 | if test "$wxUSE_TREECTRL" = "yes"; then | |
20128 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 20129 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20130 | #define wxUSE_TREECTRL 1 |
20131 | EOF | |
20132 | ||
1e6feb95 | 20133 | USES_CONTROLS=1 |
10f2d63a VZ |
20134 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" |
20135 | else | |
698dcdb6 | 20136 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
20137 | fi |
20138 | fi | |
20139 | ||
9f41d601 | 20140 | if test "$wxUSE_POPUPWIN" = "yes"; then |
6abe4b65 | 20141 | if test "$wxUSE_MAC" = 1; then |
156b2523 | 20142 | echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2 |
6abe4b65 | 20143 | else |
485cf710 VZ |
20144 | if test "$wxUSE_MOTIF" = 1; then |
20145 | echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2 | |
20146 | else | |
3c011993 VZ |
20147 | if test "$wxUSE_PM" = 1; then |
20148 | echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2 | |
20149 | else | |
20150 | cat >> confdefs.h <<\EOF | |
9f41d601 RR |
20151 | #define wxUSE_POPUPWIN 1 |
20152 | EOF | |
20153 | ||
9926e4a4 | 20154 | |
3c011993 VZ |
20155 | USES_CONTROLS=1 |
20156 | fi | |
485cf710 | 20157 | fi |
6abe4b65 | 20158 | fi |
9f41d601 RR |
20159 | fi |
20160 | ||
dd964dcc | 20161 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
3c011993 VZ |
20162 | if test "$wxUSE_PM" = 1; then |
20163 | echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2 | |
20164 | else | |
20165 | cat >> confdefs.h <<\EOF | |
dd964dcc VZ |
20166 | #define wxUSE_TIPWINDOW 1 |
20167 | EOF | |
20168 | ||
3c011993 | 20169 | fi |
dd964dcc VZ |
20170 | fi |
20171 | ||
1e6feb95 VZ |
20172 | if test "$USES_CONTROLS" = 1; then |
20173 | cat >> confdefs.h <<\EOF | |
20174 | #define wxUSE_CONTROLS 1 | |
10f2d63a VZ |
20175 | EOF |
20176 | ||
10f2d63a VZ |
20177 | fi |
20178 | ||
1e6feb95 | 20179 | |
24176f2c GD |
20180 | if test "$wxUSE_TREELAYOUT" = "yes"; then |
20181 | cat >> confdefs.h <<\EOF | |
20182 | #define wxUSE_TREELAYOUT 1 | |
20183 | EOF | |
20184 | ||
20185 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay" | |
20186 | fi | |
1e6feb95 | 20187 | |
24fd6d87 VZ |
20188 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
20189 | cat >> confdefs.h <<\EOF | |
20190 | #define wxUSE_DRAGIMAGE 1 | |
20191 | EOF | |
20192 | ||
20193 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
20194 | fi | |
20195 | ||
1e6feb95 | 20196 | if test "$wxUSE_MENUS" = "yes"; then |
698dcdb6 | 20197 | cat >> confdefs.h <<\EOF |
1e6feb95 | 20198 | #define wxUSE_MENUS 1 |
10f2d63a VZ |
20199 | EOF |
20200 | ||
1e6feb95 | 20201 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" |
10f2d63a VZ |
20202 | fi |
20203 | ||
1e6feb95 VZ |
20204 | if test "$wxUSE_METAFILE" = "yes"; then |
20205 | cat >> confdefs.h <<\EOF | |
20206 | #define wxUSE_METAFILE 1 | |
10f2d63a VZ |
20207 | EOF |
20208 | ||
10f2d63a VZ |
20209 | fi |
20210 | ||
1e6feb95 VZ |
20211 | if test "$wxUSE_MIMETYPE" = "yes"; then |
20212 | cat >> confdefs.h <<\EOF | |
20213 | #define wxUSE_MIMETYPE 1 | |
10f2d63a VZ |
20214 | EOF |
20215 | ||
10f2d63a VZ |
20216 | fi |
20217 | ||
3e44f09d VZ |
20218 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then |
20219 | cat >> confdefs.h <<\EOF | |
20220 | #define wxUSE_SYSTEM_OPTIONS 1 | |
20221 | EOF | |
20222 | ||
20223 | fi | |
20224 | ||
4cdb0ab0 | 20225 | if test "$wxUSE_PROTOCOL" = "yes"; then |
3954f9ca VS |
20226 | if test "$wxUSE_SOCKETS" != "yes"; then |
20227 | echo "configure: warning: Protocol classes require sockets... disabled" 1>&2 | |
20228 | wxUSE_PROTOCOL=no | |
20229 | fi | |
20230 | ||
20231 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
20232 | cat >> confdefs.h <<\EOF | |
4cdb0ab0 VS |
20233 | #define wxUSE_PROTOCOL 1 |
20234 | EOF | |
20235 | ||
20236 | ||
3954f9ca VS |
20237 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then |
20238 | cat >> confdefs.h <<\EOF | |
4cdb0ab0 VS |
20239 | #define wxUSE_PROTOCOL_HTTP 1 |
20240 | EOF | |
20241 | ||
3954f9ca VS |
20242 | fi |
20243 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
20244 | cat >> confdefs.h <<\EOF | |
4cdb0ab0 VS |
20245 | #define wxUSE_PROTOCOL_FTP 1 |
20246 | EOF | |
20247 | ||
3954f9ca VS |
20248 | fi |
20249 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
20250 | cat >> confdefs.h <<\EOF | |
20251 | #define wxUSE_PROTOCOL_FILE 1 | |
20252 | EOF | |
20253 | ||
20254 | fi | |
4cdb0ab0 | 20255 | fi |
3954f9ca VS |
20256 | fi |
20257 | ||
20258 | if test "$wxUSE_URL" = "yes"; then | |
20259 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
20260 | echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2 | |
20261 | wxUSE_URL=no | |
20262 | fi | |
20263 | if test "$wxUSE_URL" = "yes"; then | |
4cdb0ab0 | 20264 | cat >> confdefs.h <<\EOF |
3954f9ca | 20265 | #define wxUSE_URL 1 |
4cdb0ab0 VS |
20266 | EOF |
20267 | ||
20268 | fi | |
20269 | fi | |
20270 | ||
10f2d63a | 20271 | if test "$wxUSE_MINIFRAME" = "yes"; then |
698dcdb6 | 20272 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20273 | #define wxUSE_MINIFRAME 1 |
20274 | EOF | |
20275 | ||
20276 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
20277 | fi | |
20278 | ||
20279 | if test "$wxUSE_HTML" = "yes"; then | |
698dcdb6 | 20280 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20281 | #define wxUSE_HTML 1 |
20282 | EOF | |
20283 | ||
20284 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
10f2d63a VZ |
20285 | fi |
20286 | ||
20287 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
698dcdb6 | 20288 | cat >> confdefs.h <<\EOF |
1e487827 VS |
20289 | #define wxUSE_VALIDATORS 1 |
20290 | EOF | |
703e0a69 | 20291 | |
698dcdb6 VZ |
20292 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" |
20293 | fi | |
20294 | ||
edae8572 VZ |
20295 | if test "$wxUSE_PALETTE" = "yes" ; then |
20296 | cat >> confdefs.h <<\EOF | |
20297 | #define wxUSE_PALETTE 1 | |
20298 | EOF | |
20299 | ||
20300 | fi | |
20301 | ||
698dcdb6 VZ |
20302 | if test "$wxUSE_IMAGE" = "yes" ; then |
20303 | cat >> confdefs.h <<\EOF | |
20304 | #define wxUSE_IMAGE 1 | |
20305 | EOF | |
20306 | ||
20307 | fi | |
20308 | ||
20309 | if test "$wxUSE_GIF" = "yes" ; then | |
20310 | cat >> confdefs.h <<\EOF | |
20311 | #define wxUSE_GIF 1 | |
20312 | EOF | |
20313 | ||
20314 | fi | |
20315 | ||
20316 | if test "$wxUSE_PCX" = "yes" ; then | |
20317 | cat >> confdefs.h <<\EOF | |
20318 | #define wxUSE_PCX 1 | |
20319 | EOF | |
20320 | ||
20321 | fi | |
20322 | ||
4b6b4dfc RR |
20323 | if test "$wxUSE_IFF" = "yes" ; then |
20324 | cat >> confdefs.h <<\EOF | |
20325 | #define wxUSE_IFF 1 | |
20326 | EOF | |
20327 | ||
20328 | fi | |
20329 | ||
698dcdb6 VZ |
20330 | if test "$wxUSE_PNM" = "yes" ; then |
20331 | cat >> confdefs.h <<\EOF | |
20332 | #define wxUSE_PNM 1 | |
20333 | EOF | |
20334 | ||
20335 | fi | |
20336 | ||
20337 | if test "$wxUSE_XPM" = "yes" ; then | |
20338 | cat >> confdefs.h <<\EOF | |
20339 | #define wxUSE_XPM 1 | |
20340 | EOF | |
20341 | ||
20342 | fi | |
20343 | ||
658974ae VS |
20344 | if test "$wxUSE_ICO_CUR" = "yes" ; then |
20345 | cat >> confdefs.h <<\EOF | |
20346 | #define wxUSE_ICO_CUR 1 | |
20347 | EOF | |
20348 | ||
20349 | fi | |
20350 | ||
a72a4bfa VS |
20351 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then |
20352 | LIBS=" -lunicows $LIBS" | |
20353 | fi | |
20354 | ||
698dcdb6 | 20355 | |
1e6feb95 VZ |
20356 | if test "$wxUSE_CHOICEDLG" = "yes"; then |
20357 | cat >> confdefs.h <<\EOF | |
20358 | #define wxUSE_CHOICEDLG 1 | |
20359 | EOF | |
20360 | ||
20361 | fi | |
20362 | ||
20363 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
20364 | cat >> confdefs.h <<\EOF | |
20365 | #define wxUSE_COLOURDLG 1 | |
20366 | EOF | |
20367 | ||
20368 | fi | |
20369 | ||
20370 | if test "$wxUSE_FILEDLG" = "yes"; then | |
20371 | cat >> confdefs.h <<\EOF | |
20372 | #define wxUSE_FILEDLG 1 | |
20373 | EOF | |
20374 | ||
20375 | fi | |
20376 | ||
8db37e06 VZ |
20377 | if test "$wxUSE_FINDREPLDLG" = "yes"; then |
20378 | cat >> confdefs.h <<\EOF | |
20379 | #define wxUSE_FINDREPLDLG 1 | |
20380 | EOF | |
20381 | ||
20382 | fi | |
20383 | ||
1e6feb95 VZ |
20384 | if test "$wxUSE_FONTDLG" = "yes"; then |
20385 | cat >> confdefs.h <<\EOF | |
20386 | #define wxUSE_FONTDLG 1 | |
20387 | EOF | |
20388 | ||
20389 | fi | |
20390 | ||
20391 | if test "$wxUSE_DIRDLG" = "yes"; then | |
ae1daed0 JS |
20392 | if test "$wxUSE_TREECTRL" != "yes"; then |
20393 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 | |
1e6feb95 | 20394 | else |
ae1daed0 | 20395 | cat >> confdefs.h <<\EOF |
1e6feb95 VZ |
20396 | #define wxUSE_DIRDLG 1 |
20397 | EOF | |
20398 | ||
1e6feb95 VZ |
20399 | fi |
20400 | fi | |
20401 | ||
20402 | if test "$wxUSE_MSGDLG" = "yes"; then | |
20403 | cat >> confdefs.h <<\EOF | |
20404 | #define wxUSE_MSGDLG 1 | |
20405 | EOF | |
20406 | ||
20407 | fi | |
20408 | ||
20409 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
20410 | cat >> confdefs.h <<\EOF | |
20411 | #define wxUSE_NUMBERDLG 1 | |
20412 | EOF | |
20413 | ||
20414 | fi | |
20415 | ||
20416 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
20417 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
20418 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 | |
20419 | else | |
20420 | cat >> confdefs.h <<\EOF | |
20421 | #define wxUSE_PROGRESSDLG 1 | |
20422 | EOF | |
20423 | ||
20424 | fi | |
20425 | fi | |
20426 | ||
cbca9943 VZ |
20427 | if test "$wxUSE_SPLASH" = "yes"; then |
20428 | cat >> confdefs.h <<\EOF | |
20429 | #define wxUSE_SPLASH 1 | |
20430 | EOF | |
20431 | ||
20432 | fi | |
20433 | ||
1e6feb95 VZ |
20434 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then |
20435 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
20436 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 | |
20437 | else | |
20438 | cat >> confdefs.h <<\EOF | |
20439 | #define wxUSE_STARTUP_TIPS 1 | |
20440 | EOF | |
20441 | ||
20442 | fi | |
20443 | fi | |
20444 | ||
20445 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
20446 | cat >> confdefs.h <<\EOF | |
20447 | #define wxUSE_TEXTDLG 1 | |
20448 | EOF | |
20449 | ||
20450 | fi | |
20451 | ||
b1f5d087 VZ |
20452 | if test "$wxUSE_WIZARDDLG" = "yes"; then |
20453 | cat >> confdefs.h <<\EOF | |
20454 | #define wxUSE_WIZARDDLG 1 | |
20455 | EOF | |
20456 | ||
20457 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
20458 | fi | |
20459 | ||
1e6feb95 | 20460 | |
698dcdb6 VZ |
20461 | if test "$cross_compiling" = "yes"; then |
20462 | OSINFO="\"$host\"" | |
20463 | else | |
20464 | OSINFO=`uname -s -r -m` | |
20465 | OSINFO="\"$OSINFO\"" | |
20466 | fi | |
20467 | ||
20468 | cat >> confdefs.h <<EOF | |
20469 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
20470 | EOF | |
20471 | ||
20472 | ||
20473 | ||
06dda230 VZ |
20474 | if test "x$prefix" != "xNONE"; then |
20475 | wxPREFIX=$prefix | |
20476 | else | |
20477 | wxPREFIX=$ac_default_prefix | |
20478 | fi | |
20479 | ||
7e67ed0d | 20480 | cat >> confdefs.h <<EOF |
06dda230 | 20481 | #define wxINSTALL_PREFIX "$wxPREFIX" |
7e67ed0d VZ |
20482 | EOF |
20483 | ||
20484 | ||
20485 | ||
698dcdb6 | 20486 | |
3a922bb4 | 20487 | |
f11bdd03 | 20488 | if test "$wxUSE_MAC" = 1 ; then |
3d63bc3a | 20489 | LDFLAGS="$LDFLAGS -framework Carbon -framework System" |
698dcdb6 | 20490 | fi |
3a922bb4 | 20491 | |
3d63bc3a | 20492 | |
009fead0 | 20493 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK -lm $LIBS" |
3d63bc3a | 20494 | |
698dcdb6 | 20495 | if test "$wxUSE_GUI" = "yes"; then |
3d63bc3a | 20496 | |
cb61c62d | 20497 | LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS" |
3a922bb4 RL |
20498 | |
20499 | ||
867a54b6 | 20500 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \ |
3a922bb4 RL |
20501 | drawing dynamic erase event exec font image \ |
20502 | minimal richedit rotate widgets" | |
20503 | ||
3a922bb4 RL |
20504 | CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)" |
20505 | else | |
20506 | SAMPLES_SUBDIRS="console" | |
698dcdb6 VZ |
20507 | fi |
20508 | ||
698dcdb6 | 20509 | |
57973b9c VZ |
20510 | INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \ |
20511 | -I\${top_srcdir}/include \ | |
20512 | $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \ | |
20513 | $TOOLKIT_INCLUDE" | |
698dcdb6 | 20514 | |
63e7762e | 20515 | if test "$wxUSE_GTK" = 1; then |
3d63bc3a | 20516 | WXCONFIG_INCLUDE= |
698dcdb6 VZ |
20517 | else |
20518 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
20519 | fi | |
20520 | ||
20521 | if test "$GXX" = yes ; then | |
20522 | CXXWARNINGS="-Wall" | |
88e30f2b RL |
20523 | |
20524 | if test "$wxUSE_NO_DEPS" = "no" ; then | |
20525 | CFLAGS="-MMD $CFLAGS" | |
20526 | CXXFLAGS="-MMD $CXXFLAGS" | |
20527 | fi | |
20528 | fi | |
20529 | ||
1725144d | 20530 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES" |
698dcdb6 VZ |
20531 | |
20532 | CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` | |
20533 | CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
fe5a9cab | 20534 | LIBS=`echo $LIBS | sed 's/ \+/ /g'` |
698dcdb6 | 20535 | |
fe5a9cab | 20536 | LDFLAGS="$LDFLAGS $PROFILE" |
698dcdb6 | 20537 | |
698dcdb6 VZ |
20538 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" |
20539 | ||
20540 | ||
20541 | ||
20542 | ||
20543 | ||
20544 | ||
20545 | ||
20546 | ||
20547 | ||
20548 | ||
20549 | ||
20550 | ||
20551 | ||
20552 | ||
20553 | ||
20554 | ||
20555 | ||
20556 | ||
20557 | ||
20558 | ||
20559 | ||
20560 | ||
20561 | ||
20562 | ||
20563 | ||
20564 | ||
20565 | ||
20566 | ||
20567 | ||
20568 | ||
20569 | ||
20570 | ||
20571 | ||
20572 | ||
20573 | ||
20574 | ||
20575 | ||
20576 | ||
20577 | ||
20578 | ||
20579 | ||
20580 | ||
20581 | ||
20582 | ||
20583 | ||
20584 | ||
20585 | ||
20586 | ||
20587 | ||
20588 | ||
20589 | ||
20590 | ||
20591 | ||
20592 | ||
20593 | ||
20594 | ||
20595 | ||
20596 | ||
20597 | ||
20598 | ||
20599 | ||
20600 | ||
20601 | ||
20602 | ||
20603 | ||
20604 | ||
20605 | ||
32832908 | 20606 | |
2f51a9ec GD |
20607 | |
20608 | ||
20609 | ||
20610 | ||
f6bcfd97 | 20611 | |
dad6c0ea | 20612 | |
caa2c79b | 20613 | |
3711412e | 20614 | |
1e6feb95 VZ |
20615 | |
20616 | ||
885d4bf5 VS |
20617 | |
20618 | ||
20619 | ||
20620 | ||
9b695262 VZ |
20621 | |
20622 | ||
62d0491b | 20623 | |
ef7f2189 | 20624 | |
40f7145c | 20625 | |
10f2d63a VZ |
20626 | |
20627 | ||
698dcdb6 | 20628 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
5a5d3c08 | 20629 | echo "configure:20630: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
698dcdb6 VZ |
20630 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
20631 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
20632 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 20633 | else |
698dcdb6 | 20634 | cat > conftestmake <<\EOF |
10f2d63a VZ |
20635 | all: |
20636 | @echo 'ac_maketemp="${MAKE}"' | |
20637 | EOF | |
20638 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
698dcdb6 | 20639 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
10f2d63a VZ |
20640 | if test -n "$ac_maketemp"; then |
20641 | eval ac_cv_prog_make_${ac_make}_set=yes | |
20642 | else | |
20643 | eval ac_cv_prog_make_${ac_make}_set=no | |
20644 | fi | |
698dcdb6 | 20645 | rm -f conftestmake |
10f2d63a VZ |
20646 | fi |
20647 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
698dcdb6 | 20648 | echo "$ac_t""yes" 1>&6 |
10f2d63a VZ |
20649 | SET_MAKE= |
20650 | else | |
698dcdb6 | 20651 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
20652 | SET_MAKE="MAKE=${MAKE-make}" |
20653 | fi | |
20654 | ||
698dcdb6 | 20655 | |
3a922bb4 RL |
20656 | if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then |
20657 | mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h | |
00cf1208 | 20658 | fi |
665bbe97 | 20659 | |
698dcdb6 | 20660 | |
10f2d63a | 20661 | |
57973b9c VZ |
20662 | wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS |
20663 | wx_cv_if_gnu_make=$IF_GNU_MAKE | |
20664 | wx_cv_path_ifs=$PATH_IFS | |
20665 | wx_cv_program_ext=$PROGRAM_EXT | |
20666 | wx_cv_target_library=$WX_TARGET_LIBRARY | |
20667 | wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL | |
20668 | wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE | |
20669 | export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \ | |
20670 | wx_cv_path_ifs wx_cv_program_ext \ | |
20671 | wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype | |
20672 | ||
20673 | subdirs="demos samples utils contrib" | |
2224580a | 20674 | |
10f2d63a | 20675 | |
698dcdb6 VZ |
20676 | trap '' 1 2 15 |
20677 | cat > confcache <<\EOF | |
10f2d63a VZ |
20678 | # This file is a shell script that caches the results of configure |
20679 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
20680 | # scripts and configure runs. It is not useful on other systems. |
20681 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 20682 | # |
698dcdb6 VZ |
20683 | # By default, configure uses ./config.cache as the cache file, |
20684 | # creating it if it does not exist already. You can give configure | |
20685 | # the --cache-file=FILE option to use a different cache file; that is | |
20686 | # what configure does when it calls configure scripts in | |
20687 | # subdirectories, so they share the cache. | |
20688 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
20689 | # config.status only pays attention to the cache file if you give it the | |
20690 | # --recheck option to rerun configure. | |
10f2d63a | 20691 | # |
698dcdb6 | 20692 | EOF |
10f2d63a VZ |
20693 | # The following way of writing the cache mishandles newlines in values, |
20694 | # but we know of no workaround that is simple, portable, and efficient. | |
20695 | # So, don't put newlines in cache variables' values. | |
20696 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
20697 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
20698 | (set) 2>&1 | |
20699 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
20700 | *ac_space=\ *) | |
20701 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
20702 | # turns \\\\ into \\, and sed turns \\ into \). | |
20703 | sed -n \ | |
20704 | -e "s/'/'\\\\''/g" \ | |
20705 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
20706 | ;; | |
20707 | *) | |
20708 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
20709 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
20710 | ;; | |
20711 | esac >> confcache | |
20712 | if cmp -s $cache_file confcache; then | |
20713 | : | |
20714 | else | |
10f2d63a | 20715 | if test -w $cache_file; then |
698dcdb6 VZ |
20716 | echo "updating cache $cache_file" |
20717 | cat confcache > $cache_file | |
10f2d63a VZ |
20718 | else |
20719 | echo "not updating unwritable cache $cache_file" | |
20720 | fi | |
20721 | fi | |
20722 | rm -f confcache | |
20723 | ||
698dcdb6 VZ |
20724 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
20725 | ||
10f2d63a VZ |
20726 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
20727 | # Let make expand exec_prefix. | |
20728 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
20729 | ||
698dcdb6 VZ |
20730 | # Any assignment to VPATH causes Sun make to only execute |
20731 | # the first set of double-colon rules, so remove it if not needed. | |
20732 | # If there is a colon in the path, we need to keep it. | |
10f2d63a | 20733 | if test "x$srcdir" = x.; then |
698dcdb6 | 20734 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
10f2d63a VZ |
20735 | fi |
20736 | ||
698dcdb6 VZ |
20737 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
20738 | ||
10f2d63a VZ |
20739 | DEFS=-DHAVE_CONFIG_H |
20740 | ||
698dcdb6 | 20741 | # Without the "./", some shells look in PATH for config.status. |
10f2d63a | 20742 | : ${CONFIG_STATUS=./config.status} |
698dcdb6 VZ |
20743 | |
20744 | echo creating $CONFIG_STATUS | |
20745 | rm -f $CONFIG_STATUS | |
20746 | cat > $CONFIG_STATUS <<EOF | |
20747 | #! /bin/sh | |
10f2d63a VZ |
20748 | # Generated automatically by configure. |
20749 | # Run this file to recreate the current configuration. | |
698dcdb6 VZ |
20750 | # This directory was configured as follows, |
20751 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
20752 | # | |
20753 | # $0 $ac_configure_args | |
20754 | # | |
10f2d63a | 20755 | # Compiler output produced by configure, useful for debugging |
698dcdb6 | 20756 | # configure, is in ./config.log if it exists. |
1e487827 | 20757 | |
698dcdb6 VZ |
20758 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
20759 | for ac_option | |
10f2d63a | 20760 | do |
698dcdb6 | 20761 | case "\$ac_option" in |
10f2d63a | 20762 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
698dcdb6 VZ |
20763 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
20764 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
20765 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
20766 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
20767 | exit 0 ;; | |
20768 | -help | --help | --hel | --he | --h) | |
20769 | echo "\$ac_cs_usage"; exit 0 ;; | |
20770 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
10f2d63a VZ |
20771 | esac |
20772 | done | |
20773 | ||
698dcdb6 VZ |
20774 | ac_given_srcdir=$srcdir |
20775 | ac_given_INSTALL="$INSTALL" | |
703e0a69 | 20776 | |
698dcdb6 VZ |
20777 | trap 'rm -fr `echo " |
20778 | wx-config | |
20779 | src/make.env | |
20780 | src/makeprog.env | |
20781 | src/makelib.env | |
20782 | Makefile | |
20783 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
1e487827 | 20784 | EOF |
698dcdb6 | 20785 | cat >> $CONFIG_STATUS <<EOF |
1e487827 | 20786 | |
698dcdb6 VZ |
20787 | # Protect against being on the right side of a sed subst in config.status. |
20788 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
20789 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
20790 | $ac_vpsub | |
20791 | $extrasub | |
20792 | s%@SHELL@%$SHELL%g | |
20793 | s%@CFLAGS@%$CFLAGS%g | |
20794 | s%@CPPFLAGS@%$CPPFLAGS%g | |
20795 | s%@CXXFLAGS@%$CXXFLAGS%g | |
20796 | s%@FFLAGS@%$FFLAGS%g | |
20797 | s%@DEFS@%$DEFS%g | |
20798 | s%@LDFLAGS@%$LDFLAGS%g | |
20799 | s%@LIBS@%$LIBS%g | |
20800 | s%@exec_prefix@%$exec_prefix%g | |
20801 | s%@prefix@%$prefix%g | |
20802 | s%@program_transform_name@%$program_transform_name%g | |
20803 | s%@bindir@%$bindir%g | |
20804 | s%@sbindir@%$sbindir%g | |
20805 | s%@libexecdir@%$libexecdir%g | |
20806 | s%@datadir@%$datadir%g | |
20807 | s%@sysconfdir@%$sysconfdir%g | |
20808 | s%@sharedstatedir@%$sharedstatedir%g | |
20809 | s%@localstatedir@%$localstatedir%g | |
20810 | s%@libdir@%$libdir%g | |
20811 | s%@includedir@%$includedir%g | |
20812 | s%@oldincludedir@%$oldincludedir%g | |
20813 | s%@infodir@%$infodir%g | |
20814 | s%@mandir@%$mandir%g | |
20815 | s%@host@%$host%g | |
20816 | s%@host_alias@%$host_alias%g | |
20817 | s%@host_cpu@%$host_cpu%g | |
20818 | s%@host_vendor@%$host_vendor%g | |
20819 | s%@host_os@%$host_os%g | |
20820 | s%@target@%$target%g | |
20821 | s%@target_alias@%$target_alias%g | |
20822 | s%@target_cpu@%$target_cpu%g | |
20823 | s%@target_vendor@%$target_vendor%g | |
20824 | s%@target_os@%$target_os%g | |
20825 | s%@build@%$build%g | |
20826 | s%@build_alias@%$build_alias%g | |
20827 | s%@build_cpu@%$build_cpu%g | |
20828 | s%@build_vendor@%$build_vendor%g | |
20829 | s%@build_os@%$build_os%g | |
20830 | s%@CC@%$CC%g | |
20831 | s%@CPP@%$CPP%g | |
20832 | s%@CXX@%$CXX%g | |
698dcdb6 VZ |
20833 | s%@RANLIB@%$RANLIB%g |
20834 | s%@AR@%$AR%g | |
20835 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
d6853540 | 20836 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
6054113a | 20837 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
698dcdb6 | 20838 | s%@STRIP@%$STRIP%g |
613d0995 | 20839 | s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g |
698dcdb6 VZ |
20840 | s%@YACC@%$YACC%g |
20841 | s%@LEX@%$LEX%g | |
20842 | s%@LEXLIB@%$LEXLIB%g | |
20843 | s%@LN_S@%$LN_S%g | |
90dd450c | 20844 | s%@CXXCPP@%$CXXCPP%g |
9e691f46 | 20845 | s%@PKG_CONFIG@%$PKG_CONFIG%g |
698dcdb6 VZ |
20846 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g |
20847 | s%@GTK_LIBS@%$GTK_LIBS%g | |
8168de4c | 20848 | s%@GTK_CONFIG@%$GTK_CONFIG%g |
698dcdb6 VZ |
20849 | s%@X_CFLAGS@%$X_CFLAGS%g |
20850 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
20851 | s%@X_LIBS@%$X_LIBS%g | |
20852 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
3a922bb4 | 20853 | s%@RESCOMP@%$RESCOMP%g |
698dcdb6 | 20854 | s%@DEREZ@%$DEREZ%g |
b040e242 | 20855 | s%@LIBICONV@%$LIBICONV%g |
698dcdb6 VZ |
20856 | s%@LEX_STEM@%$LEX_STEM%g |
20857 | s%@PATH_IFS@%$PATH_IFS%g | |
20858 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g | |
20859 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
20860 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
698dcdb6 VZ |
20861 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g |
20862 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
77e13408 | 20863 | s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g |
698dcdb6 VZ |
20864 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g |
20865 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
20866 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
698dcdb6 | 20867 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g |
698dcdb6 VZ |
20868 | s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g |
20869 | s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g | |
698dcdb6 VZ |
20870 | s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g |
20871 | s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g | |
20872 | s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g | |
698dcdb6 VZ |
20873 | s%@WX_ALL@%$WX_ALL%g |
20874 | s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g | |
20875 | s%@SHARED_LD@%$SHARED_LD%g | |
20876 | s%@PIC_FLAG@%$PIC_FLAG%g | |
698dcdb6 VZ |
20877 | s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g |
20878 | s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g | |
3a922bb4 RL |
20879 | s%@SONAME_FLAGS@%$SONAME_FLAGS%g |
20880 | s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g | |
698dcdb6 VZ |
20881 | s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g |
20882 | s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g | |
20883 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g | |
20884 | s%@USE_GUI@%$USE_GUI%g | |
20885 | s%@AFMINSTALL@%$AFMINSTALL%g | |
20886 | s%@TOOLKIT@%$TOOLKIT%g | |
698dcdb6 | 20887 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g |
1e6feb95 | 20888 | s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g |
3a922bb4 RL |
20889 | s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g |
20890 | s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g | |
00c81359 | 20891 | s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g |
3a922bb4 RL |
20892 | s%@cross_compiling@%$cross_compiling%g |
20893 | s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g | |
20894 | s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g | |
885d4bf5 VS |
20895 | s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g |
20896 | s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g | |
698dcdb6 VZ |
20897 | s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g |
20898 | s%@ALL_OBJECTS@%$ALL_OBJECTS%g | |
9b695262 VZ |
20899 | s%@ALL_HEADERS@%$ALL_HEADERS%g |
20900 | s%@ALL_SOURCES@%$ALL_SOURCES%g | |
698dcdb6 VZ |
20901 | s%@GUIDIST@%$GUIDIST%g |
20902 | s%@PORT_FILES@%$PORT_FILES%g | |
20903 | s%@DISTDIR@%$DISTDIR%g | |
698dcdb6 | 20904 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g |
62d0491b | 20905 | s%@LDFLAGS_GL@%$LDFLAGS_GL%g |
40f7145c | 20906 | s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g |
698dcdb6 | 20907 | s%@OPENGL_LIBS@%$OPENGL_LIBS%g |
3d63bc3a | 20908 | s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g |
698dcdb6 | 20909 | s%@EXTRADEFS@%$EXTRADEFS%g |
698dcdb6 | 20910 | s%@RESFLAGS@%$RESFLAGS%g |
3a922bb4 | 20911 | s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g |
e95edd8d GD |
20912 | s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g |
20913 | s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g | |
ef7f2189 | 20914 | s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g |
698dcdb6 VZ |
20915 | s%@LIBWXMACRES@%$LIBWXMACRES%g |
20916 | s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g | |
2baaf735 | 20917 | s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g |
698dcdb6 VZ |
20918 | s%@DLLTOOL@%$DLLTOOL%g |
20919 | s%@AS@%$AS%g | |
20920 | s%@NM@%$NM%g | |
20921 | s%@LD@%$LD%g | |
20922 | s%@MAKEINFO@%$MAKEINFO%g | |
885d4bf5 | 20923 | s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g |
698dcdb6 VZ |
20924 | s%@SET_MAKE@%$SET_MAKE%g |
20925 | s%@subdirs@%$subdirs%g | |
1e487827 | 20926 | |
1e487827 | 20927 | CEOF |
1e487827 VS |
20928 | EOF |
20929 | ||
698dcdb6 VZ |
20930 | cat >> $CONFIG_STATUS <<\EOF |
20931 | ||
20932 | # Split the substitutions into bite-sized pieces for seds with | |
20933 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
20934 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
20935 | ac_file=1 # Number of current file. | |
20936 | ac_beg=1 # First line for current file. | |
20937 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
20938 | ac_more_lines=: | |
20939 | ac_sed_cmds="" | |
20940 | while $ac_more_lines; do | |
20941 | if test $ac_beg -gt 1; then | |
20942 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
20943 | else | |
20944 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
20945 | fi | |
20946 | if test ! -s conftest.s$ac_file; then | |
20947 | ac_more_lines=false | |
20948 | rm -f conftest.s$ac_file | |
20949 | else | |
20950 | if test -z "$ac_sed_cmds"; then | |
20951 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
10f2d63a | 20952 | else |
698dcdb6 | 20953 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
10f2d63a | 20954 | fi |
698dcdb6 VZ |
20955 | ac_file=`expr $ac_file + 1` |
20956 | ac_beg=$ac_end | |
20957 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
10f2d63a | 20958 | fi |
698dcdb6 VZ |
20959 | done |
20960 | if test -z "$ac_sed_cmds"; then | |
20961 | ac_sed_cmds=cat | |
20962 | fi | |
20963 | EOF | |
10f2d63a | 20964 | |
698dcdb6 VZ |
20965 | cat >> $CONFIG_STATUS <<EOF |
20966 | ||
20967 | CONFIG_FILES=\${CONFIG_FILES-"wx-config | |
20968 | src/make.env | |
20969 | src/makeprog.env | |
20970 | src/makelib.env | |
20971 | Makefile | |
20972 | "} | |
10f2d63a | 20973 | EOF |
698dcdb6 VZ |
20974 | cat >> $CONFIG_STATUS <<\EOF |
20975 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
10f2d63a | 20976 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
698dcdb6 VZ |
20977 | case "$ac_file" in |
20978 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
20979 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
20980 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
20981 | esac |
20982 | ||
698dcdb6 | 20983 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
1e487827 | 20984 | |
698dcdb6 VZ |
20985 | # Remove last slash and all that follows it. Not all systems have dirname. |
20986 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
20987 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
20988 | # The file is in a subdirectory. | |
20989 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
20990 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
10f2d63a | 20991 | # A "../" for each directory in $ac_dir_suffix. |
698dcdb6 | 20992 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
10f2d63a VZ |
20993 | else |
20994 | ac_dir_suffix= ac_dots= | |
20995 | fi | |
20996 | ||
698dcdb6 VZ |
20997 | case "$ac_given_srcdir" in |
20998 | .) srcdir=. | |
20999 | if test -z "$ac_dots"; then top_srcdir=. | |
21000 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
21001 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
10f2d63a | 21002 | *) # Relative path. |
698dcdb6 VZ |
21003 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
21004 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
10f2d63a VZ |
21005 | esac |
21006 | ||
698dcdb6 VZ |
21007 | case "$ac_given_INSTALL" in |
21008 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
21009 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
10f2d63a VZ |
21010 | esac |
21011 | ||
698dcdb6 VZ |
21012 | echo creating "$ac_file" |
21013 | rm -f "$ac_file" | |
21014 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
21015 | case "$ac_file" in | |
21016 | *Makefile*) ac_comsub="1i\\ | |
21017 | # $configure_input" ;; | |
21018 | *) ac_comsub= ;; | |
21019 | esac | |
10f2d63a | 21020 | |
698dcdb6 VZ |
21021 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
21022 | sed -e "$ac_comsub | |
21023 | s%@configure_input@%$configure_input%g | |
21024 | s%@srcdir@%$srcdir%g | |
21025 | s%@top_srcdir@%$top_srcdir%g | |
21026 | s%@INSTALL@%$INSTALL%g | |
21027 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
21028 | fi; done | |
21029 | rm -f conftest.s* | |
10f2d63a VZ |
21030 | |
21031 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
21032 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
21033 | # | |
21034 | # ac_d sets the value in "#define NAME VALUE" lines. | |
698dcdb6 VZ |
21035 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
21036 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
21037 | ac_dC='\3' | |
21038 | ac_dD='%g' | |
21039 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
21040 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
21041 | ac_uB='\([ ]\)%\1#\2define\3' | |
10f2d63a | 21042 | ac_uC=' ' |
698dcdb6 VZ |
21043 | ac_uD='\4%g' |
21044 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
21045 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
21046 | ac_eB='$%\1#\2define\3' | |
21047 | ac_eC=' ' | |
21048 | ac_eD='%g' | |
10f2d63a | 21049 | |
698dcdb6 VZ |
21050 | if test "${CONFIG_HEADERS+set}" != set; then |
21051 | EOF | |
21052 | cat >> $CONFIG_STATUS <<EOF | |
21053 | CONFIG_HEADERS="setup.h:setup.h.in" | |
21054 | EOF | |
21055 | cat >> $CONFIG_STATUS <<\EOF | |
21056 | fi | |
21057 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
10f2d63a | 21058 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
698dcdb6 VZ |
21059 | case "$ac_file" in |
21060 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
21061 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
21062 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
21063 | esac |
21064 | ||
698dcdb6 VZ |
21065 | echo creating $ac_file |
21066 | ||
21067 | rm -f conftest.frag conftest.in conftest.out | |
21068 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
21069 | cat $ac_file_inputs > conftest.in | |
21070 | ||
21071 | EOF | |
21072 | ||
21073 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
21074 | # the proper values into config.h.in to produce config.h. And first: | |
21075 | # Protect against being on the right side of a sed subst in config.status. | |
21076 | # Protect against being in an unquoted here document in config.status. | |
21077 | rm -f conftest.vals | |
21078 | cat > conftest.hdr <<\EOF | |
21079 | s/[\\&%]/\\&/g | |
21080 | s%[\\$`]%\\&%g | |
21081 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
21082 | s%ac_d%ac_u%gp | |
21083 | s%ac_u%ac_e%gp | |
21084 | EOF | |
21085 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
21086 | rm -f conftest.hdr | |
10f2d63a VZ |
21087 | |
21088 | # This sed command replaces #undef with comments. This is necessary, for | |
21089 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
21090 | # on some systems where configure will not decide to define it. | |
698dcdb6 VZ |
21091 | cat >> conftest.vals <<\EOF |
21092 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
10f2d63a VZ |
21093 | EOF |
21094 | ||
698dcdb6 VZ |
21095 | # Break up conftest.vals because some shells have a limit on |
21096 | # the size of here documents, and old seds have small limits too. | |
10f2d63a VZ |
21097 | |
21098 | rm -f conftest.tail | |
698dcdb6 | 21099 | while : |
10f2d63a | 21100 | do |
698dcdb6 VZ |
21101 | ac_lines=`grep -c . conftest.vals` |
21102 | # grep -c gives empty output for an empty file on some AIX systems. | |
21103 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
21104 | # Write a limited-size here document to conftest.frag. | |
21105 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
21106 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
10f2d63a | 21107 | echo 'CEOF |
698dcdb6 VZ |
21108 | sed -f conftest.frag conftest.in > conftest.out |
21109 | rm -f conftest.in | |
21110 | mv conftest.out conftest.in | |
21111 | ' >> $CONFIG_STATUS | |
21112 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
21113 | rm -f conftest.vals | |
21114 | mv conftest.tail conftest.vals | |
10f2d63a | 21115 | done |
698dcdb6 VZ |
21116 | rm -f conftest.vals |
21117 | ||
21118 | cat >> $CONFIG_STATUS <<\EOF | |
21119 | rm -f conftest.frag conftest.h | |
21120 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
21121 | cat conftest.in >> conftest.h | |
21122 | rm -f conftest.in | |
21123 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
21124 | echo "$ac_file is unchanged" | |
21125 | rm -f conftest.h | |
10f2d63a | 21126 | else |
698dcdb6 VZ |
21127 | # Remove last slash and all that follows it. Not all systems have dirname. |
21128 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
10f2d63a | 21129 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
698dcdb6 VZ |
21130 | # The file is in a subdirectory. |
21131 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
10f2d63a | 21132 | fi |
698dcdb6 VZ |
21133 | rm -f $ac_file |
21134 | mv conftest.h $ac_file | |
10f2d63a | 21135 | fi |
698dcdb6 VZ |
21136 | fi; done |
21137 | ||
10f2d63a | 21138 | EOF |
698dcdb6 | 21139 | cat >> $CONFIG_STATUS <<EOF |
10f2d63a | 21140 | |
3a922bb4 | 21141 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}" |
698dcdb6 VZ |
21142 | LN_S="${LN_S}" |
21143 | ||
21144 | ||
21145 | EOF | |
21146 | cat >> $CONFIG_STATUS <<\EOF | |
10f2d63a | 21147 | |
652d930d | 21148 | if test ! -h wx-config; then |
991a5759 | 21149 | chmod +x wx-config |
3a922bb4 RL |
21150 | mv wx-config wx${TOOLCHAIN_NAME}-config |
21151 | ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config | |
991a5759 | 21152 | fi |
665bbe97 | 21153 | |
00cf1208 RR |
21154 | if test ! -d lib; then |
21155 | mkdir lib | |
21156 | fi | |
21157 | if test ! -d lib/wx; then | |
21158 | mkdir lib/wx | |
21159 | fi | |
21160 | if test ! -d lib/wx/include; then | |
21161 | mkdir lib/wx/include | |
21162 | fi | |
3a922bb4 RL |
21163 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then |
21164 | mkdir lib/wx/include/${TOOLCHAIN_NAME} | |
00cf1208 | 21165 | fi |
3a922bb4 RL |
21166 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then |
21167 | mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx | |
00cf1208 RR |
21168 | fi |
21169 | if test -f setup.h; then | |
3a922bb4 | 21170 | mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h |
00cf1208 | 21171 | fi |
698dcdb6 VZ |
21172 | |
21173 | exit 0 | |
10f2d63a VZ |
21174 | EOF |
21175 | chmod +x $CONFIG_STATUS | |
698dcdb6 VZ |
21176 | rm -fr confdefs* $ac_clean_files |
21177 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
10f2d63a | 21178 | |
2224580a VZ |
21179 | if test "$no_recursion" != yes; then |
21180 | ||
21181 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
21182 | ac_sub_configure_args= | |
21183 | ac_prev= | |
21184 | for ac_arg in $ac_configure_args; do | |
21185 | if test -n "$ac_prev"; then | |
21186 | ac_prev= | |
21187 | continue | |
21188 | fi | |
698dcdb6 | 21189 | case "$ac_arg" in |
2224580a VZ |
21190 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
21191 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
21192 | ac_prev=cache_file ;; | |
21193 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
698dcdb6 | 21194 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
2224580a VZ |
21195 | ;; |
21196 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
21197 | ac_prev=srcdir ;; | |
21198 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
21199 | ;; | |
21200 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
21201 | esac | |
21202 | done | |
21203 | ||
8f4a9a10 | 21204 | for ac_config_dir in demos samples utils contrib; do |
2224580a VZ |
21205 | |
21206 | # Do not complain, so a configure script can configure whichever | |
21207 | # parts of a large source tree are present. | |
698dcdb6 VZ |
21208 | if test ! -d $srcdir/$ac_config_dir; then |
21209 | continue | |
21210 | fi | |
21211 | ||
21212 | echo configuring in $ac_config_dir | |
2224580a | 21213 | |
698dcdb6 | 21214 | case "$srcdir" in |
2224580a VZ |
21215 | .) ;; |
21216 | *) | |
698dcdb6 VZ |
21217 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; |
21218 | else | |
21219 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
21220 | fi | |
21221 | ;; | |
2224580a VZ |
21222 | esac |
21223 | ||
21224 | ac_popdir=`pwd` | |
698dcdb6 | 21225 | cd $ac_config_dir |
2224580a | 21226 | |
698dcdb6 VZ |
21227 | # A "../" for each directory in /$ac_config_dir. |
21228 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
2224580a | 21229 | |
698dcdb6 | 21230 | case "$srcdir" in |
2224580a VZ |
21231 | .) # No --srcdir option. We are building in place. |
21232 | ac_sub_srcdir=$srcdir ;; | |
698dcdb6 VZ |
21233 | /*) # Absolute path. |
21234 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
2224580a | 21235 | *) # Relative path. |
698dcdb6 | 21236 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; |
2224580a VZ |
21237 | esac |
21238 | ||
21239 | # Check for guested configure; otherwise get Cygnus style configure. | |
698dcdb6 VZ |
21240 | if test -f $ac_sub_srcdir/configure; then |
21241 | ac_sub_configure=$ac_sub_srcdir/configure | |
2224580a VZ |
21242 | elif test -f $ac_sub_srcdir/configure.in; then |
21243 | ac_sub_configure=$ac_configure | |
21244 | else | |
698dcdb6 | 21245 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 |
2224580a VZ |
21246 | ac_sub_configure= |
21247 | fi | |
21248 | ||
21249 | # The recursion is here. | |
21250 | if test -n "$ac_sub_configure"; then | |
698dcdb6 | 21251 | |
2224580a | 21252 | # Make the cache file name correct relative to the subdirectory. |
698dcdb6 VZ |
21253 | case "$cache_file" in |
21254 | /*) ac_sub_cache_file=$cache_file ;; | |
2224580a | 21255 | *) # Relative path. |
698dcdb6 | 21256 | ac_sub_cache_file="$ac_dots$cache_file" ;; |
2224580a | 21257 | esac |
698dcdb6 VZ |
21258 | case "$ac_given_INSTALL" in |
21259 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
21260 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
21261 | esac | |
2224580a | 21262 | |
698dcdb6 | 21263 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" |
2224580a | 21264 | # The eval makes quoting arguments work. |
698dcdb6 VZ |
21265 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir |
21266 | then : | |
21267 | else | |
21268 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
21269 | fi | |
2224580a VZ |
21270 | fi |
21271 | ||
21272 | cd $ac_popdir | |
21273 | done | |
21274 | fi | |
21275 | ||
698dcdb6 | 21276 |