]>
Commit | Line | Data |
---|---|---|
10f2d63a VZ |
1 | #! /bin/sh |
2 | ||
698dcdb6 | 3 | # From configure.in Id: configure.in |
703e0a69 VZ |
4 | |
5 | ||
9e691f46 | 6 | # aclocal.m4 generated automatically by aclocal 1.6 -*- Autoconf -*- |
703e0a69 | 7 | |
9e691f46 VZ |
8 | # Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002 |
9 | # Free Software Foundation, Inc. | |
10 | # This file is free software; the Free Software Foundation | |
11 | # gives unlimited permission to copy and/or distribute it, | |
12 | # with or without modifications, as long as this notice is preserved. | |
703e0a69 | 13 | |
9e691f46 VZ |
14 | # This program is distributed in the hope that it will be useful, |
15 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | |
16 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | |
17 | # PARTICULAR PURPOSE. | |
703e0a69 | 18 | |
703e0a69 VZ |
19 | |
20 | ||
1e487827 | 21 | |
1e487827 | 22 | |
698dcdb6 VZ |
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 | ||
49 | ||
50 | ||
b040e242 VS |
51 | |
52 | ||
53 | ||
b040e242 VS |
54 | |
55 | ||
56 | ||
57 | ||
9e691f46 VZ |
58 | # Configure paths for GTK+ |
59 | # Owen Taylor 1997-2001 | |
b040e242 VS |
60 | |
61 | ||
62 | ||
63 | # Configure paths for GTK+ | |
64 | # Owen Taylor 97-11-3 | |
698dcdb6 | 65 | |
698dcdb6 VZ |
66 | |
67 | ||
68 | # Guess values for system-dependent variables and create Makefiles. | |
69 | # Generated automatically using autoconf version 2.13 | |
70 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. | |
71 | # | |
72 | # This configure script is free software; the Free Software Foundation | |
73 | # gives unlimited permission to copy, distribute and modify it. | |
74 | ||
75 | # Defaults: | |
76 | ac_help= | |
77 | ac_default_prefix=/usr/local | |
78 | # Any additions from configure.in: | |
79 | ac_help="$ac_help | |
8168de4c | 80 | --enable-gui use GUI classes" |
1e6feb95 | 81 | ac_help="$ac_help |
8168de4c | 82 | --enable-universal use wxWindows GUI controls instead of native ones" |
698dcdb6 VZ |
83 | ac_help="$ac_help |
84 | --with-gtk use GTK+" | |
85 | ac_help="$ac_help | |
86 | --with-motif use Motif/Lesstif" | |
87 | ac_help="$ac_help | |
88 | --with-mac use Mac OS X" | |
89 | ac_help="$ac_help | |
90 | --with-wine use WINE" | |
91 | ac_help="$ac_help | |
77e13408 | 92 | --with-msw use MS-Windows" |
698dcdb6 VZ |
93 | ac_help="$ac_help |
94 | --with-pm use OS/2 Presentation Manager" | |
1e6feb95 | 95 | ac_help="$ac_help |
b3e8d00a | 96 | --with-mgl use SciTech MGL" |
1725144d RR |
97 | ac_help="$ac_help |
98 | --with-microwin use MicroWindows" | |
f79bd02d JS |
99 | ac_help="$ac_help |
100 | --with-x11 use X11" | |
d8356fa3 VZ |
101 | ac_help="$ac_help |
102 | --enable-nanox use NanoX" | |
698dcdb6 | 103 | ac_help="$ac_help |
8168de4c | 104 | --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)" |
698dcdb6 | 105 | ac_help="$ac_help |
8168de4c | 106 | --with-libpng use libpng (PNG image format)" |
698dcdb6 | 107 | ac_help="$ac_help |
8168de4c | 108 | --with-libjpeg use libjpeg (JPEG file format)" |
698dcdb6 | 109 | ac_help="$ac_help |
8168de4c | 110 | --with-libtiff use libtiff (TIFF file format)" |
698dcdb6 | 111 | ac_help="$ac_help |
8168de4c | 112 | --with-opengl use OpenGL (or Mesa)" |
698dcdb6 | 113 | ac_help="$ac_help |
d0e9b150 | 114 | --with-dmalloc use dmalloc library (http://dmalloc.com/)" |
3e44f09d VZ |
115 | ac_help="$ac_help |
116 | --with-regex enable support for wxRegEx class" | |
698dcdb6 | 117 | ac_help="$ac_help |
8168de4c | 118 | --with-zlib use zlib for LZW compression" |
698dcdb6 | 119 | ac_help="$ac_help |
8168de4c | 120 | --with-odbc use the IODBC and wxODBC classes" |
698dcdb6 | 121 | ac_help="$ac_help |
8168de4c | 122 | --enable-shared create shared library code" |
698dcdb6 | 123 | ac_help="$ac_help |
3a922bb4 | 124 | --enable-soname set the DT_SONAME field in ELF shared libraries" |
698dcdb6 | 125 | ac_help="$ac_help |
8168de4c | 126 | --enable-optimise create optimised code" |
698dcdb6 | 127 | ac_help="$ac_help |
8168de4c | 128 | --enable-debug same as debug_flag and debug_info" |
683dccda GD |
129 | ac_help="$ac_help |
130 | --enable-precomp enable use of precompiled headers (Mac OS X)" | |
698dcdb6 | 131 | ac_help="$ac_help |
8168de4c | 132 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)" |
698dcdb6 | 133 | ac_help="$ac_help |
8168de4c | 134 | --enable-debug_info create code with debugging information" |
698dcdb6 | 135 | ac_help="$ac_help |
8168de4c | 136 | --enable-debug_gdb create code with extra GDB debugging information" |
698dcdb6 | 137 | ac_help="$ac_help |
8168de4c | 138 | --enable-debug_cntxt use wxDebugContext" |
698dcdb6 | 139 | ac_help="$ac_help |
8168de4c | 140 | --enable-mem_tracing create code with memory tracing" |
698dcdb6 | 141 | ac_help="$ac_help |
8168de4c | 142 | --enable-profile create code with profiling information" |
698dcdb6 | 143 | ac_help="$ac_help |
8168de4c | 144 | --enable-no_rtti create code without RTTI information" |
698dcdb6 | 145 | ac_help="$ac_help |
b3e8d00a | 146 | --enable-no_exceptions create code without C++ exceptions handling" |
698dcdb6 | 147 | ac_help="$ac_help |
8168de4c | 148 | --enable-permissive compile code disregarding strict ANSI" |
698dcdb6 | 149 | ac_help="$ac_help |
8168de4c | 150 | --enable-no_deps create code without dependency information" |
54276ccf | 151 | ac_help="$ac_help |
b3e8d00a | 152 | --enable-compat20 enable wxWindows 2.0 compatibility" |
54276ccf | 153 | ac_help="$ac_help |
0c9a1c32 | 154 | --disable-compat22 disable wxWindows 2.2 compatibility" |
698dcdb6 | 155 | ac_help="$ac_help |
8168de4c | 156 | --enable-intl use internationalization system" |
698dcdb6 | 157 | ac_help="$ac_help |
8168de4c | 158 | --enable-config use wxConfig (and derived) classes" |
a1622950 VZ |
159 | ac_help="$ac_help |
160 | --enable-protocols use wxProtocol and derived classes" | |
161 | ac_help="$ac_help | |
162 | --enable-ftp use wxFTP (requires wxProtocol" | |
163 | ac_help="$ac_help | |
164 | --enable-http use wxHTTP (requires wxProtocol" | |
165 | ac_help="$ac_help | |
166 | --enable-fileproto use wxFileProto class (requires wxProtocol" | |
698dcdb6 | 167 | ac_help="$ac_help |
8168de4c | 168 | --enable-sockets use socket/network classes" |
698dcdb6 | 169 | ac_help="$ac_help |
8168de4c | 170 | --enable-ipc use interprocess communication (wxSocket etc.)" |
698dcdb6 | 171 | ac_help="$ac_help |
8168de4c | 172 | --enable-cmdline use wxCmdLineParser class" |
1e6feb95 | 173 | ac_help="$ac_help |
8168de4c | 174 | --enable-datetime use wxDateTime class" |
1e6feb95 | 175 | ac_help="$ac_help |
8168de4c | 176 | --enable-timedate use obsolete wxDate/wxTime classes" |
1e6feb95 | 177 | ac_help="$ac_help |
8168de4c | 178 | --enable-stopwatch use wxStopWatch class" |
1e6feb95 | 179 | ac_help="$ac_help |
8168de4c | 180 | --enable-dialupman use dialup network classes" |
698dcdb6 | 181 | ac_help="$ac_help |
8168de4c | 182 | --enable-apple_ieee use the Apple IEEE codec" |
698dcdb6 | 183 | ac_help="$ac_help |
8168de4c | 184 | --enable-timer use wxTimer class" |
698dcdb6 | 185 | ac_help="$ac_help |
8168de4c | 186 | --enable-wave use wxWave class" |
698dcdb6 | 187 | ac_help="$ac_help |
8168de4c | 188 | --enable-fraction use wxFraction class" |
698dcdb6 | 189 | ac_help="$ac_help |
8168de4c | 190 | --enable-dynlib use wxLibrary class for DLL loading" |
0b9ab0bd RL |
191 | ac_help="$ac_help |
192 | --enable-dynamicloader use (new) wxDynamicLibrary class" | |
698dcdb6 | 193 | ac_help="$ac_help |
8168de4c | 194 | --enable-longlong use wxLongLong class" |
698dcdb6 | 195 | ac_help="$ac_help |
8168de4c | 196 | --enable-geometry use geometry class" |
698dcdb6 | 197 | ac_help="$ac_help |
8168de4c | 198 | --enable-log use logging system" |
698dcdb6 | 199 | ac_help="$ac_help |
8168de4c | 200 | --enable-streams use wxStream etc classes" |
698dcdb6 | 201 | ac_help="$ac_help |
8168de4c | 202 | --enable-file use wxFile classes" |
698dcdb6 | 203 | ac_help="$ac_help |
8168de4c | 204 | --enable-ffile use wxFFile classes" |
1e6feb95 | 205 | ac_help="$ac_help |
a3a584a7 VZ |
206 | --enable-textbuf use wxTextBuffer class" |
207 | ac_help="$ac_help | |
208 | --enable-textfile use wxTextFile class" | |
698dcdb6 | 209 | ac_help="$ac_help |
8168de4c | 210 | --enable-fontmap use font encodings conversion classes" |
1e6feb95 | 211 | ac_help="$ac_help |
8168de4c | 212 | --enable-unicode compile wxString with Unicode support" |
a72a4bfa VS |
213 | ac_help="$ac_help |
214 | --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)" | |
698dcdb6 | 215 | ac_help="$ac_help |
8168de4c | 216 | --enable-wxprintfv use wxWindows implementation of vprintf()" |
698dcdb6 | 217 | ac_help="$ac_help |
8168de4c | 218 | --enable-std_iostreams use standard C++ stream classes" |
698dcdb6 | 219 | ac_help="$ac_help |
8168de4c | 220 | --enable-filesystem use virtual file systems classes" |
698dcdb6 | 221 | ac_help="$ac_help |
8168de4c | 222 | --enable-fs_inet use virtual HTTP/FTP filesystems" |
698dcdb6 | 223 | ac_help="$ac_help |
8168de4c | 224 | --enable-fs_zip use virtual ZIP filesystems" |
698dcdb6 | 225 | ac_help="$ac_help |
8168de4c | 226 | --enable-zipstream use wxZipInputStream" |
698dcdb6 | 227 | ac_help="$ac_help |
8168de4c | 228 | --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException" |
698dcdb6 | 229 | ac_help="$ac_help |
8168de4c | 230 | --enable-snglinst use wxSingleInstanceChecker class" |
698dcdb6 | 231 | ac_help="$ac_help |
69d27ff7 | 232 | --enable-mimetype use wxMimeTypesManager" |
3e44f09d | 233 | ac_help="$ac_help |
b3e8d00a | 234 | --enable-sysoptions use wxSystemOptions" |
4cdb0ab0 VS |
235 | ac_help="$ac_help |
236 | --enable-url use wxURL class" | |
237 | ac_help="$ac_help | |
238 | --enable-protocol use wxProtocol class" | |
239 | ac_help="$ac_help | |
240 | --enable-protocol-http HTTP support in wxProtocol" | |
241 | ac_help="$ac_help | |
242 | --enable-protocol-ftp FTP support in wxProtocol" | |
243 | ac_help="$ac_help | |
244 | --enable-protocol-file FILE support in wxProtocol" | |
1e6feb95 | 245 | ac_help="$ac_help |
8168de4c | 246 | --enable-threads use threads" |
698dcdb6 | 247 | ac_help="$ac_help |
8168de4c | 248 | --enable-docview use document view architecture" |
698dcdb6 | 249 | ac_help="$ac_help |
3379ed37 | 250 | --enable-help use help subsystem" |
29fd3c0c VS |
251 | ac_help="$ac_help |
252 | --enable-mshtmlhelp use MS HTML Help (win32)" | |
3379ed37 VZ |
253 | ac_help="$ac_help |
254 | --enable-html use wxHTML sub-library" | |
255 | ac_help="$ac_help | |
256 | --enable-htmlhelp use wxHTML-based help" | |
698dcdb6 | 257 | ac_help="$ac_help |
8168de4c | 258 | --enable-constraints use layout-constraints system" |
698dcdb6 | 259 | ac_help="$ac_help |
8168de4c | 260 | --enable-printarch use printing architecture" |
698dcdb6 | 261 | ac_help="$ac_help |
8168de4c | 262 | --enable-mdi use multiple document interface architecture" |
698dcdb6 | 263 | ac_help="$ac_help |
8168de4c | 264 | --enable-loggui use standard GUI logger" |
1e6feb95 | 265 | ac_help="$ac_help |
8168de4c | 266 | --enable-logwin use wxLogWindow" |
69d27ff7 MB |
267 | ac_help="$ac_help |
268 | --enable-logdialog use wxLogDialog" | |
1e6feb95 | 269 | ac_help="$ac_help |
8168de4c | 270 | --enable-postscript use wxPostscriptDC device context (default for gtk+)" |
698dcdb6 | 271 | ac_help="$ac_help |
8168de4c | 272 | --enable-prologio use Prolog IO library" |
698dcdb6 | 273 | ac_help="$ac_help |
8168de4c | 274 | --enable-resources use wxWindows resources" |
698dcdb6 | 275 | ac_help="$ac_help |
8168de4c | 276 | --enable-xresources use X resources for save (default for gtk+)" |
698dcdb6 | 277 | ac_help="$ac_help |
8168de4c | 278 | --enable-clipboard use wxClipboard classes" |
698dcdb6 | 279 | ac_help="$ac_help |
8168de4c | 280 | --enable-dnd use Drag'n'Drop classes" |
698dcdb6 | 281 | ac_help="$ac_help |
8168de4c | 282 | --enable-metafile use win32 metafiles" |
698dcdb6 | 283 | ac_help="$ac_help |
24176f2c | 284 | --enable-treelayout use wxTreeLayout classes" |
698dcdb6 | 285 | ac_help="$ac_help |
8168de4c | 286 | --enable-controls use all usual controls" |
698dcdb6 | 287 | ac_help="$ac_help |
8168de4c | 288 | --enable-accel use accelerators" |
698dcdb6 | 289 | ac_help="$ac_help |
8168de4c | 290 | --enable-button use wxButton class" |
698dcdb6 | 291 | ac_help="$ac_help |
8168de4c | 292 | --enable-bmpbutton use wxBitmapButton class" |
698dcdb6 | 293 | ac_help="$ac_help |
8168de4c | 294 | --enable-calendar use wxCalendarCtrl class" |
1e6feb95 | 295 | ac_help="$ac_help |
8168de4c | 296 | --enable-caret use wxCaret class" |
1e6feb95 | 297 | ac_help="$ac_help |
8168de4c | 298 | --enable-checkbox use wxCheckBox class" |
698dcdb6 | 299 | ac_help="$ac_help |
8168de4c | 300 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class" |
698dcdb6 | 301 | ac_help="$ac_help |
8168de4c | 302 | --enable-choice use wxChoice class" |
698dcdb6 | 303 | ac_help="$ac_help |
8168de4c | 304 | --enable-combobox use wxComboBox classes" |
698dcdb6 | 305 | ac_help="$ac_help |
8168de4c | 306 | --enable-gauge use wxGauge class" |
698dcdb6 | 307 | ac_help="$ac_help |
8168de4c | 308 | --enable-grid use wxGrid class" |
698dcdb6 | 309 | ac_help="$ac_help |
8168de4c | 310 | --enable-newgrid use new wxGrid class" |
698dcdb6 | 311 | ac_help="$ac_help |
8168de4c | 312 | --enable-imaglist use wxImageList class" |
698dcdb6 | 313 | ac_help="$ac_help |
8168de4c | 314 | --enable-listbox use wxListBox class" |
698dcdb6 | 315 | ac_help="$ac_help |
8168de4c | 316 | --enable-listctrl use wxListCtrl class" |
698dcdb6 | 317 | ac_help="$ac_help |
8168de4c | 318 | --enable-notebook use wxNotebook class" |
24176f2c GD |
319 | ac_help="$ac_help |
320 | --enable-propsheet use wxPropertySheet class" | |
698dcdb6 | 321 | ac_help="$ac_help |
8168de4c | 322 | --enable-radiobox use wxRadioBox class" |
698dcdb6 | 323 | ac_help="$ac_help |
8168de4c | 324 | --enable-radiobtn use wxRadioButton class" |
698dcdb6 | 325 | ac_help="$ac_help |
8168de4c | 326 | --enable-sash use wxSashWindow class" |
698dcdb6 | 327 | ac_help="$ac_help |
8168de4c | 328 | --enable-scrollbar use wxScrollBar class and scrollable windows" |
698dcdb6 | 329 | ac_help="$ac_help |
8168de4c | 330 | --enable-slider use wxSlider class" |
698dcdb6 | 331 | ac_help="$ac_help |
8168de4c | 332 | --enable-spinbtn use wxSpinButton class" |
698dcdb6 | 333 | ac_help="$ac_help |
8168de4c | 334 | --enable-spinctrl use wxSpinCtrl class" |
698dcdb6 | 335 | ac_help="$ac_help |
8168de4c | 336 | --enable-splitter use wxSplitterWindow class" |
698dcdb6 | 337 | ac_help="$ac_help |
8168de4c | 338 | --enable-statbmp use wxStaticBitmap class" |
698dcdb6 | 339 | ac_help="$ac_help |
8168de4c | 340 | --enable-statbox use wxStaticBox class" |
698dcdb6 | 341 | ac_help="$ac_help |
8168de4c | 342 | --enable-statline use wxStaticLine class" |
698dcdb6 | 343 | ac_help="$ac_help |
8168de4c | 344 | --enable-stattext use wxStaticText class" |
1e6feb95 | 345 | ac_help="$ac_help |
8168de4c | 346 | --enable-statusbar use wxStatusBar class" |
698dcdb6 | 347 | ac_help="$ac_help |
8168de4c | 348 | --enable-tabdialog use wxTabControl class" |
698dcdb6 | 349 | ac_help="$ac_help |
8168de4c | 350 | --enable-textctrl use wxTextCtrl class" |
1e6feb95 | 351 | ac_help="$ac_help |
8168de4c | 352 | --enable-togglebtn use wxToggleButton class" |
698dcdb6 | 353 | ac_help="$ac_help |
8168de4c | 354 | --enable-toolbar use wxToolBar class" |
698dcdb6 | 355 | ac_help="$ac_help |
8168de4c | 356 | --enable-tbarnative use native wxToolBar class" |
698dcdb6 | 357 | ac_help="$ac_help |
8168de4c | 358 | --enable-tbarsmpl use wxToolBarSimple class" |
698dcdb6 | 359 | ac_help="$ac_help |
8168de4c | 360 | --enable-treectrl use wxTreeCtrl class" |
9926e4a4 VZ |
361 | ac_help="$ac_help |
362 | --enable-tipwindow use wxTipWindow class" | |
9f41d601 RR |
363 | ac_help="$ac_help |
364 | --enable-popupwin use wxPopUpWindow class" | |
698dcdb6 | 365 | ac_help="$ac_help |
b3e8d00a | 366 | --enable-commondlg use all common dialogs" |
698dcdb6 | 367 | ac_help="$ac_help |
8168de4c | 368 | --enable-choicedlg use wxChoiceDialog" |
1e6feb95 | 369 | ac_help="$ac_help |
8168de4c | 370 | --enable-coldlg use wxColourDialog" |
1e6feb95 | 371 | ac_help="$ac_help |
8168de4c | 372 | --enable-filedlg use wxFileDialog" |
8db37e06 VZ |
373 | ac_help="$ac_help |
374 | --enable-finddlg use wxFindReplaceDialog" | |
1e6feb95 | 375 | ac_help="$ac_help |
8168de4c | 376 | --enable-fontdlg use wxFontDialog" |
1e6feb95 | 377 | ac_help="$ac_help |
8168de4c | 378 | --enable-dirdlg use wxDirDialog" |
698dcdb6 | 379 | ac_help="$ac_help |
8168de4c | 380 | --enable-msgdlg use wxMessageDialog" |
1e6feb95 | 381 | ac_help="$ac_help |
8168de4c | 382 | --enable-numberdlg use wxNumberEntryDialog" |
cbca9943 VZ |
383 | ac_help="$ac_help |
384 | --enable-splash use wxSplashScreen" | |
1e6feb95 | 385 | ac_help="$ac_help |
8168de4c | 386 | --enable-textdlg use wxTextDialog" |
698dcdb6 | 387 | ac_help="$ac_help |
8168de4c | 388 | --enable-tipdlg use startup tips" |
698dcdb6 | 389 | ac_help="$ac_help |
8168de4c | 390 | --enable-progressdlg use wxProgressDialog" |
b1f5d087 VZ |
391 | ac_help="$ac_help |
392 | --enable-wizarddlg use wxWizard" | |
698dcdb6 | 393 | ac_help="$ac_help |
8168de4c | 394 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes" |
1e6feb95 | 395 | ac_help="$ac_help |
8168de4c | 396 | --enable-miniframe use wxMiniFrame class" |
698dcdb6 | 397 | ac_help="$ac_help |
8168de4c | 398 | --enable-tooltips use wxToolTip class" |
698dcdb6 | 399 | ac_help="$ac_help |
8168de4c | 400 | --enable-splines use spline drawing code" |
698dcdb6 | 401 | ac_help="$ac_help |
8168de4c | 402 | --enable-validators use wxValidator and derived classes" |
698dcdb6 | 403 | ac_help="$ac_help |
8168de4c | 404 | --enable-busyinfo use wxBusyInfo" |
698dcdb6 | 405 | ac_help="$ac_help |
b3e8d00a | 406 | --enable-joystick use wxJoystick (Linux only)" |
698dcdb6 | 407 | ac_help="$ac_help |
8168de4c | 408 | --enable-metafiles use wxMetaFile (Windows only)" |
24fd6d87 VZ |
409 | ac_help="$ac_help |
410 | --enable-dragimage use wxDragImage" | |
edae8572 VZ |
411 | ac_help="$ac_help |
412 | --enable-palette use wxPalette class" | |
1e6feb95 | 413 | ac_help="$ac_help |
8168de4c | 414 | --enable-image use wxImage class" |
698dcdb6 | 415 | ac_help="$ac_help |
8168de4c | 416 | --enable-gif use gif images (GIF file format)" |
698dcdb6 | 417 | ac_help="$ac_help |
8168de4c | 418 | --enable-pcx use pcx images (PCX file format)" |
4b6b4dfc RR |
419 | ac_help="$ac_help |
420 | --enable-iff use iff images (IFF file format)" | |
698dcdb6 | 421 | ac_help="$ac_help |
8168de4c | 422 | --enable-pnm use pnm images (PNM file format)" |
698dcdb6 | 423 | ac_help="$ac_help |
8168de4c | 424 | --enable-xpm use xpm images (XPM file format)" |
658974ae VS |
425 | ac_help="$ac_help |
426 | --enable-icocur use Windows ICO and CUR formats" | |
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 | ||
3f345b47 VZ |
1109 | CPP_MT_FLAG=-D_REENTRANT |
1110 | ||
f79bd02d | 1111 | ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE X11" |
10f2d63a VZ |
1112 | |
1113 | DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1114 | DEFAULT_wxUSE_MAC=0 |
1115 | DEFAULT_wxUSE_MGL=0 | |
1725144d | 1116 | DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1117 | DEFAULT_wxUSE_MOTIF=0 |
1118 | DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1119 | DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1120 | DEFAULT_wxUSE_WINE=0 |
f79bd02d | 1121 | DEFAULT_wxUSE_X11=0 |
10f2d63a VZ |
1122 | |
1123 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1124 | DEFAULT_DEFAULT_wxUSE_MAC=0 |
1125 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1725144d | 1126 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1127 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 |
1128 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1129 | DEFAULT_DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1130 | DEFAULT_DEFAULT_wxUSE_WINE=0 |
f79bd02d | 1131 | DEFAULT_DEFAULT_wxUSE_X11=0 |
10f2d63a | 1132 | |
d6a55c4b | 1133 | PROGRAM_EXT= |
3a922bb4 | 1134 | SO_SUFFIX=so |
d6a55c4b | 1135 | |
10f2d63a VZ |
1136 | case "${host}" in |
1137 | *-hp-hpux* ) | |
1138 | USE_HPUX=1 | |
1139 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1140 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
3a922bb4 | 1141 | SO_SUFFIX=sl |
698dcdb6 | 1142 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1143 | #define __HPUX__ 1 |
1144 | EOF | |
1145 | ||
1146 | ;; | |
1147 | *-*-linux* ) | |
1148 | USE_LINUX=1 | |
698dcdb6 | 1149 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1150 | #define __LINUX__ 1 |
1151 | EOF | |
1152 | ||
1153 | TMP=`uname -m` | |
1154 | if test "x$TMP" = "xalpha"; then | |
1155 | USE_ALPHA=1 | |
698dcdb6 | 1156 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1157 | #define __ALPHA__ 1 |
1158 | EOF | |
1159 | ||
1160 | fi | |
1161 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1162 | ;; | |
1163 | *-*-irix5* | *-*-irix6* ) | |
1164 | USE_SGI=1 | |
1165 | USE_SVR4=1 | |
698dcdb6 | 1166 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1167 | #define __SGI__ 1 |
1168 | EOF | |
1169 | ||
698dcdb6 | 1170 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1171 | #define __SVR4__ 1 |
1172 | EOF | |
1173 | ||
1174 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1175 | ;; | |
1176 | *-*-solaris2* ) | |
1177 | USE_SUN=1 | |
1178 | USE_SOLARIS=1 | |
1179 | USE_SVR4=1 | |
698dcdb6 | 1180 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1181 | #define __SUN__ 1 |
1182 | EOF | |
1183 | ||
698dcdb6 | 1184 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1185 | #define __SOLARIS__ 1 |
1186 | EOF | |
1187 | ||
698dcdb6 | 1188 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1189 | #define __SVR4__ 1 |
1190 | EOF | |
1191 | ||
1192 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1193 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1194 | ;; |
1195 | *-*-sunos4* ) | |
1196 | USE_SUN=1 | |
1197 | USE_SUNOS=1 | |
1198 | USE_BSD=1 | |
698dcdb6 | 1199 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1200 | #define __SUN__ 1 |
1201 | EOF | |
1202 | ||
698dcdb6 | 1203 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1204 | #define __SUNOS__ 1 |
1205 | EOF | |
1206 | ||
698dcdb6 | 1207 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1208 | #define __BSD__ 1 |
1209 | EOF | |
1210 | ||
1211 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1212 | ;; | |
f6bcfd97 | 1213 | *-*-freebsd*) |
10f2d63a VZ |
1214 | USE_BSD=1 |
1215 | USE_FREEBSD=1 | |
3f345b47 | 1216 | CPP_MT_FLAG=-D_THREAD_SAFE |
698dcdb6 | 1217 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1218 | #define __FREEBSD__ 1 |
1219 | EOF | |
1220 | ||
698dcdb6 | 1221 | cat >> confdefs.h <<\EOF |
10f2d63a | 1222 | #define __BSD__ 1 |
95c8801c VS |
1223 | EOF |
1224 | ||
1225 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1226 | ;; | |
1227 | *-*-openbsd*) | |
1228 | USE_BSD=1 | |
1229 | USE_OPENBSD=1 | |
698dcdb6 | 1230 | cat >> confdefs.h <<\EOF |
95c8801c VS |
1231 | #define __FREEBSD__ 1 |
1232 | EOF | |
1233 | ||
698dcdb6 | 1234 | cat >> confdefs.h <<\EOF |
95c8801c | 1235 | #define __OPENBSD__ 1 |
f6bcfd97 BP |
1236 | EOF |
1237 | ||
1238 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1239 | ;; | |
1240 | *-*-netbsd*) | |
1241 | USE_BSD=1 | |
1242 | USE_NETBSD=1 | |
698dcdb6 | 1243 | cat >> confdefs.h <<\EOF |
f6bcfd97 BP |
1244 | #define __FREEBSD__ 1 |
1245 | EOF | |
1246 | ||
698dcdb6 | 1247 | cat >> confdefs.h <<\EOF |
f6bcfd97 | 1248 | #define __NETBSD__ 1 |
10f2d63a VZ |
1249 | EOF |
1250 | ||
1251 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1252 | ;; | |
1253 | *-*-osf* ) | |
1254 | USE_ALPHA=1 | |
1255 | USE_OSF=1 | |
698dcdb6 | 1256 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1257 | #define __ALPHA__ 1 |
1258 | EOF | |
1259 | ||
698dcdb6 | 1260 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1261 | #define __OSF__ 1 |
1262 | EOF | |
1263 | ||
1264 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1265 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1266 | ;; |
1267 | *-*-dgux5* ) | |
1268 | USE_ALPHA=1 | |
1269 | USE_SVR4=1 | |
698dcdb6 | 1270 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1271 | #define __ALPHA__ 1 |
1272 | EOF | |
1273 | ||
698dcdb6 | 1274 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1275 | #define __SVR4__ 1 |
1276 | EOF | |
1277 | ||
1278 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1279 | ;; | |
1280 | *-*-sysv5* ) | |
1281 | USE_SYSV=1 | |
1282 | USE_SVR4=1 | |
698dcdb6 | 1283 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1284 | #define __SYSV__ 1 |
1285 | EOF | |
1286 | ||
698dcdb6 | 1287 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1288 | #define __SVR4__ 1 |
1289 | EOF | |
1290 | ||
1291 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1292 | ;; | |
1293 | *-*-aix* ) | |
1294 | USE_AIX=1 | |
1295 | USE_SYSV=1 | |
1296 | USE_SVR4=1 | |
698dcdb6 | 1297 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1298 | #define __AIX__ 1 |
1299 | EOF | |
1300 | ||
698dcdb6 | 1301 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1302 | #define __SYSV__ 1 |
1303 | EOF | |
1304 | ||
698dcdb6 | 1305 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1306 | #define __SVR4__ 1 |
1307 | EOF | |
1308 | ||
1309 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1310 | ;; | |
1311 | ||
1c8183e2 | 1312 | *-*-cygwin* | *-*-mingw32* ) |
10f2d63a VZ |
1313 | USE_UNIX=0 |
1314 | USE_WIN32=1 | |
3a922bb4 | 1315 | SO_SUFFIX=dll |
698dcdb6 | 1316 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1317 | #define __WIN32__ 1 |
1318 | EOF | |
1319 | ||
698dcdb6 | 1320 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1321 | #define __WIN95__ 1 |
1322 | EOF | |
1323 | ||
698dcdb6 | 1324 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1325 | #define __WINDOWS__ 1 |
1326 | EOF | |
1327 | ||
698dcdb6 | 1328 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1329 | #define __GNUWIN32__ 1 |
1330 | EOF | |
1331 | ||
698dcdb6 | 1332 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1333 | #define STRICT 1 |
1334 | EOF | |
1335 | ||
698dcdb6 | 1336 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1337 | #define WINVER 0x0400 |
1338 | EOF | |
1339 | ||
cf27ef00 | 1340 | PROGRAM_EXT=".exe" |
7b7a7637 | 1341 | RESCOMP=windres |
10f2d63a VZ |
1342 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1343 | ;; | |
1344 | ||
f9bc1684 VS |
1345 | *-pc-msdosdjgpp ) |
1346 | USE_UNIX=0 | |
1347 | USE_DOS=1 | |
1348 | cat >> confdefs.h <<\EOF | |
1349 | #define __DOS__ 1 | |
1350 | EOF | |
1351 | ||
1352 | PROGRAM_EXT=".exe" | |
1353 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
f9bc1684 VS |
1354 | ;; |
1355 | ||
6fa882bd | 1356 | *-pc-os2_emx | *-pc-os2-emx ) |
698dcdb6 | 1357 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1358 | #define __EMX__ 1 |
1359 | EOF | |
1360 | ||
cf27ef00 | 1361 | PROGRAM_EXT=".exe" |
e07802fc | 1362 | DEFAULT_DEFAULT_wxUSE_PM=1 |
d558c907 | 1363 | LIBS="$LIBS -lstdcpp" |
10f2d63a VZ |
1364 | ;; |
1365 | ||
d08b457b GD |
1366 | powerpc-*-darwin* ) |
1367 | USE_BSD=1 | |
f11bdd03 | 1368 | USE_DARWIN=1 |
3f345b47 | 1369 | CPP_MT_FLAG= |
3a922bb4 | 1370 | SO_SUFFIX=dylib |
698dcdb6 | 1371 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1372 | #define __BSD__ 1 |
b4085ce6 GD |
1373 | EOF |
1374 | ||
698dcdb6 | 1375 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1376 | #define __DARWIN__ 1 |
d08b457b GD |
1377 | EOF |
1378 | ||
1379 | cat >> confdefs.h <<\EOF | |
1380 | #define __POWERPC__ 1 | |
b4085ce6 GD |
1381 | EOF |
1382 | ||
1383 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1384 | ;; | |
1385 | ||
b12915c1 VZ |
1386 | *-*-beos* ) |
1387 | USE_BEOS=1 | |
698dcdb6 | 1388 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
1389 | #define __BEOS__ 1 |
1390 | EOF | |
1391 | ||
1392 | ;; | |
1393 | ||
10f2d63a | 1394 | *) |
698dcdb6 | 1395 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } |
10f2d63a VZ |
1396 | esac |
1397 | ||
1398 | if test "$USE_UNIX" = 1 ; then | |
b12915c1 | 1399 | wxUSE_UNIX=yes |
698dcdb6 | 1400 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1401 | #define __UNIX__ 1 |
1402 | EOF | |
1403 | ||
10f2d63a VZ |
1404 | fi |
1405 | ||
2389f33b VZ |
1406 | if test "$USE_LINUX" = 1; then |
1407 | echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6 | |
9e691f46 | 1408 | echo "configure:1409: checking for glibc 2.1 or later" >&5 |
2389f33b VZ |
1409 | if eval "test \"`echo '$''{'wx_lib_glibc21'+set}'`\" = set"; then |
1410 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1411 | else | |
a72a4bfa VS |
1412 | |
1413 | cat > conftest.$ac_ext <<EOF | |
9e691f46 | 1414 | #line 1415 "configure" |
2389f33b VZ |
1415 | #include "confdefs.h" |
1416 | #include <features.h> | |
1417 | int main() { | |
1418 | ||
1419 | #if !__GLIBC_PREREQ(2, 1) | |
1420 | #error not glibc2.1 | |
1421 | #endif | |
1422 | ||
1423 | ; return 0; } | |
1424 | EOF | |
9e691f46 | 1425 | if { (eval echo configure:1426: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2389f33b VZ |
1426 | rm -rf conftest* |
1427 | ||
1428 | wx_lib_glibc21=yes | |
1429 | ||
1430 | else | |
1431 | echo "configure: failed program was:" >&5 | |
1432 | cat conftest.$ac_ext >&5 | |
1433 | rm -rf conftest* | |
1434 | ||
1435 | wx_lib_glibc21=no | |
1436 | ||
1437 | ||
1438 | fi | |
1439 | rm -f conftest* | |
1440 | ||
1441 | fi | |
1442 | ||
1443 | echo "$ac_t""$wx_lib_glibc21" 1>&6 | |
2389f33b VZ |
1444 | if test "$wx_lib_glibc21" = "yes"; then |
1445 | cat >> confdefs.h <<\EOF | |
1446 | #define wxHAVE_GLIBC2 1 | |
1447 | EOF | |
1448 | ||
1449 | fi | |
1450 | fi | |
10f2d63a | 1451 | |
1e487827 | 1452 | |
1e487827 | 1453 | |
6232543b | 1454 | |
10f2d63a VZ |
1455 | wx_arg_cache_file="configarg.cache" |
1456 | echo "loading argument cache $wx_arg_cache_file" | |
1457 | rm -f ${wx_arg_cache_file}.tmp | |
1458 | touch ${wx_arg_cache_file}.tmp | |
1459 | touch ${wx_arg_cache_file} | |
698dcdb6 | 1460 | |
10f2d63a VZ |
1461 | |
1462 | DEBUG_CONFIGURE=0 | |
1463 | if test $DEBUG_CONFIGURE = 1; then | |
1e6feb95 VZ |
1464 | DEFAULT_wxUSE_UNIVERSAL=no |
1465 | ||
d8356fa3 VZ |
1466 | DEFAULT_wxUSE_NANOX=no |
1467 | ||
10f2d63a VZ |
1468 | DEFAULT_wxUSE_THREADS=yes |
1469 | ||
1470 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1471 | DEFAULT_wxUSE_SONAME=no |
1e6feb95 | 1472 | DEFAULT_wxUSE_OPTIMISE=no |
10f2d63a VZ |
1473 | DEFAULT_wxUSE_PROFILE=no |
1474 | DEFAULT_wxUSE_NO_DEPS=no | |
f676c7ff MB |
1475 | DEFAULT_wxUSE_NO_RTTI=yes |
1476 | DEFAULT_wxUSE_NO_EXCEPTIONS=yes | |
10f2d63a VZ |
1477 | DEFAULT_wxUSE_PERMISSIVE=no |
1478 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1479 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1480 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1481 | DEFAULT_wxUSE_MEM_TRACING=no | |
1482 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1483 | DEFAULT_wxUSE_DMALLOC=no | |
a7ae7112 | 1484 | DEFAULT_wxUSE_PRECOMP=no |
10f2d63a VZ |
1485 | DEFAULT_wxUSE_APPLE_IEEE=no |
1486 | ||
1487 | DEFAULT_wxUSE_LOG=yes | |
1e6feb95 VZ |
1488 | DEFAULT_wxUSE_LOGWINDOW=no |
1489 | DEFAULT_wxUSE_LOGGUI=no | |
69d27ff7 | 1490 | DEFAULT_wxUSE_LOGDIALOG=no |
10f2d63a VZ |
1491 | |
1492 | DEFAULT_wxUSE_GUI=yes | |
1e6feb95 | 1493 | DEFAULT_wxUSE_CONTROLS=no |
10f2d63a | 1494 | |
3e44f09d | 1495 | DEFAULT_wxUSE_REGEX=no |
10f2d63a VZ |
1496 | DEFAULT_wxUSE_ZLIB=no |
1497 | DEFAULT_wxUSE_LIBPNG=no | |
1498 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 1499 | DEFAULT_wxUSE_LIBTIFF=no |
10f2d63a | 1500 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 1501 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1502 | |
eb4efbdc | 1503 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
4f3c5f06 | 1504 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
10f2d63a | 1505 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1506 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
1507 | DEFAULT_wxUSE_DATETIME=no | |
1508 | DEFAULT_wxUSE_TIMEDATE=no | |
1509 | DEFAULT_wxUSE_TIMER=no | |
1510 | DEFAULT_wxUSE_STOPWATCH=no | |
10f2d63a | 1511 | DEFAULT_wxUSE_FILE=no |
1e6feb95 | 1512 | DEFAULT_wxUSE_FFILE=no |
a3a584a7 | 1513 | DEFAULT_wxUSE_TEXTBUFFER=no |
10f2d63a | 1514 | DEFAULT_wxUSE_TEXTFILE=no |
10f2d63a VZ |
1515 | DEFAULT_wxUSE_WAVE=no |
1516 | DEFAULT_wxUSE_INTL=no | |
1517 | DEFAULT_wxUSE_CONFIG=no | |
1e6feb95 | 1518 | DEFAULT_wxUSE_FONTMAP=no |
10f2d63a VZ |
1519 | DEFAULT_wxUSE_STREAMS=no |
1520 | DEFAULT_wxUSE_SOCKETS=no | |
1521 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
10f2d63a | 1522 | DEFAULT_wxUSE_JOYSTICK=no |
6bff71f8 | 1523 | DEFAULT_wxUSE_DYNLIB_CLASS=no |
0b9ab0bd | 1524 | DEFAULT_wxUSE_DYNAMIC_LOADER=no |
10f2d63a | 1525 | DEFAULT_wxUSE_LONGLONG=no |
e8f65ba6 | 1526 | DEFAULT_wxUSE_GEOMETRY=no |
10f2d63a VZ |
1527 | |
1528 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1529 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1530 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1531 | ||
1532 | DEFAULT_wxUSE_X_RESOURCES=no | |
1533 | DEFAULT_wxUSE_CLIPBOARD=no | |
1534 | DEFAULT_wxUSE_TOOLTIPS=no | |
1535 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
24fd6d87 | 1536 | DEFAULT_wxUSE_DRAGIMAGE=no |
10f2d63a VZ |
1537 | DEFAULT_wxUSE_SPLINES=no |
1538 | ||
1539 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1540 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1541 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1542 | ||
1543 | DEFAULT_wxUSE_PROLOGIO=no | |
1544 | DEFAULT_wxUSE_RESOURCES=no | |
1545 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1546 | DEFAULT_wxUSE_IPC=no | |
1547 | DEFAULT_wxUSE_HELP=no | |
29fd3c0c | 1548 | DEFAULT_wxUSE_MS_HTML_HELP=no |
3379ed37 | 1549 | DEFAULT_wxUSE_WXHTML_HELP=no |
24176f2c | 1550 | DEFAULT_wxUSE_TREELAYOUT=no |
10f2d63a | 1551 | DEFAULT_wxUSE_METAFILE=no |
1e6feb95 | 1552 | DEFAULT_wxUSE_MIMETYPE=no |
4cdb0ab0 VS |
1553 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no |
1554 | DEFAULT_wxUSE_PROTOCOL=no | |
1555 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
1556 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
1557 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
1558 | DEFAULT_wxUSE_URL=no | |
1559 | ||
10f2d63a | 1560 | DEFAULT_wxUSE_COMMONDLGS=no |
1e6feb95 VZ |
1561 | DEFAULT_wxUSE_CHOICEDLG=no |
1562 | DEFAULT_wxUSE_COLOURDLG=no | |
10f2d63a | 1563 | DEFAULT_wxUSE_DIRDLG=no |
1e6feb95 | 1564 | DEFAULT_wxUSE_FILEDLG=no |
8db37e06 | 1565 | DEFAULT_wxUSE_FINDREPLDLG=no |
1e6feb95 VZ |
1566 | DEFAULT_wxUSE_FONTDLG=no |
1567 | DEFAULT_wxUSE_MSGDLG=no | |
1568 | DEFAULT_wxUSE_NUMBERDLG=no | |
10f2d63a | 1569 | DEFAULT_wxUSE_TEXTDLG=no |
cbca9943 | 1570 | DEFAULT_wxUSE_SPLASH=no |
10f2d63a VZ |
1571 | DEFAULT_wxUSE_STARTUP_TIPS=no |
1572 | DEFAULT_wxUSE_PROGRESSDLG=no | |
b1f5d087 VZ |
1573 | DEFAULT_wxUSE_WIZARDDLG=no |
1574 | ||
1e6feb95 | 1575 | DEFAULT_wxUSE_MENUS=no |
10f2d63a VZ |
1576 | DEFAULT_wxUSE_MINIFRAME=no |
1577 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 1578 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
1579 | DEFAULT_wxUSE_FS_INET=no |
1580 | DEFAULT_wxUSE_FS_ZIP=no | |
1581 | DEFAULT_wxUSE_BUSYINFO=no | |
1582 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1e6feb95 | 1583 | DEFAULT_wxUSE_VALIDATORS=no |
10f2d63a VZ |
1584 | |
1585 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 | 1586 | DEFAULT_wxUSE_BUTTON=no |
10f2d63a | 1587 | DEFAULT_wxUSE_BMPBUTTON=no |
1e6feb95 VZ |
1588 | DEFAULT_wxUSE_CALCTRL=no |
1589 | DEFAULT_wxUSE_CARET=no | |
10f2d63a VZ |
1590 | DEFAULT_wxUSE_CHECKBOX=no |
1591 | DEFAULT_wxUSE_CHECKLST=no | |
1e6feb95 | 1592 | DEFAULT_wxUSE_CHOICE=no |
10f2d63a VZ |
1593 | DEFAULT_wxUSE_COMBOBOX=no |
1594 | DEFAULT_wxUSE_GAUGE=no | |
1595 | DEFAULT_wxUSE_GRID=no | |
1596 | DEFAULT_wxUSE_NEW_GRID=no | |
1597 | DEFAULT_wxUSE_IMAGLIST=no | |
1598 | DEFAULT_wxUSE_LISTBOX=no | |
1599 | DEFAULT_wxUSE_LISTCTRL=no | |
1600 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 1601 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
1602 | DEFAULT_wxUSE_RADIOBOX=no |
1603 | DEFAULT_wxUSE_RADIOBTN=no | |
1604 | DEFAULT_wxUSE_SASH=no | |
1605 | DEFAULT_wxUSE_SCROLLBAR=no | |
1606 | DEFAULT_wxUSE_SLIDER=no | |
1607 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 1608 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
1609 | DEFAULT_wxUSE_SPLITTER=no |
1610 | DEFAULT_wxUSE_STATBMP=no | |
1611 | DEFAULT_wxUSE_STATBOX=no | |
1612 | DEFAULT_wxUSE_STATLINE=no | |
1e6feb95 | 1613 | DEFAULT_wxUSE_STATTEXT=no |
10f2d63a VZ |
1614 | DEFAULT_wxUSE_STATUSBAR=yes |
1615 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1616 | DEFAULT_wxUSE_TEXTCTRL=no |
1db8dc4a | 1617 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 1618 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
1619 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
1620 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a | 1621 | DEFAULT_wxUSE_TREECTRL=no |
9f41d601 | 1622 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 1623 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
1624 | |
1625 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 1626 | DEFAULT_wxUSE_UNICODE_MSLU=no |
10f2d63a VZ |
1627 | DEFAULT_wxUSE_WCSRTOMBS=no |
1628 | ||
edae8572 | 1629 | DEFAULT_wxUSE_PALETTE=no |
0046ff7c | 1630 | DEFAULT_wxUSE_IMAGE=no |
10f2d63a VZ |
1631 | DEFAULT_wxUSE_GIF=no |
1632 | DEFAULT_wxUSE_PCX=no | |
1633 | DEFAULT_wxUSE_PNM=no | |
4b6b4dfc | 1634 | DEFAULT_wxUSE_IFF=no |
0046ff7c | 1635 | DEFAULT_wxUSE_XPM=no |
658974ae | 1636 | DEFAULT_wxUSE_ICO_CUR=no |
10f2d63a | 1637 | else |
1e6feb95 VZ |
1638 | DEFAULT_wxUSE_UNIVERSAL=no |
1639 | ||
d8356fa3 VZ |
1640 | DEFAULT_wxUSE_NANOX=no |
1641 | ||
10f2d63a VZ |
1642 | DEFAULT_wxUSE_THREADS=yes |
1643 | ||
1644 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1645 | DEFAULT_wxUSE_SONAME=no |
10f2d63a VZ |
1646 | DEFAULT_wxUSE_OPTIMISE=yes |
1647 | DEFAULT_wxUSE_PROFILE=no | |
1648 | DEFAULT_wxUSE_NO_DEPS=no | |
f676c7ff MB |
1649 | DEFAULT_wxUSE_NO_RTTI=yes |
1650 | DEFAULT_wxUSE_NO_EXCEPTIONS=yes | |
10f2d63a VZ |
1651 | DEFAULT_wxUSE_PERMISSIVE=no |
1652 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1653 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1654 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1655 | DEFAULT_wxUSE_MEM_TRACING=no | |
1656 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1657 | DEFAULT_wxUSE_DMALLOC=no | |
a7ae7112 | 1658 | DEFAULT_wxUSE_PRECOMP=no |
10f2d63a VZ |
1659 | DEFAULT_wxUSE_APPLE_IEEE=yes |
1660 | ||
1661 | DEFAULT_wxUSE_LOG=yes | |
d73be714 VZ |
1662 | DEFAULT_wxUSE_LOGWINDOW=yes |
1663 | DEFAULT_wxUSE_LOGGUI=yes | |
69d27ff7 | 1664 | DEFAULT_wxUSE_LOGDIALOG=yes |
10f2d63a VZ |
1665 | |
1666 | DEFAULT_wxUSE_GUI=yes | |
1667 | ||
831b3152 | 1668 | DEFAULT_wxUSE_REGEX=yes |
10f2d63a VZ |
1669 | DEFAULT_wxUSE_ZLIB=yes |
1670 | DEFAULT_wxUSE_LIBPNG=yes | |
1671 | DEFAULT_wxUSE_LIBJPEG=yes | |
b47c832e | 1672 | DEFAULT_wxUSE_LIBTIFF=yes |
16b52fa1 | 1673 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 1674 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1675 | |
eb4efbdc | 1676 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
4f3c5f06 | 1677 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
10f2d63a | 1678 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1679 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
1680 | DEFAULT_wxUSE_DATETIME=yes | |
1681 | DEFAULT_wxUSE_TIMEDATE=no | |
1682 | DEFAULT_wxUSE_TIMER=yes | |
1683 | DEFAULT_wxUSE_STOPWATCH=yes | |
10f2d63a | 1684 | DEFAULT_wxUSE_FILE=yes |
1e6feb95 | 1685 | DEFAULT_wxUSE_FFILE=yes |
a3a584a7 | 1686 | DEFAULT_wxUSE_TEXTBUFFER=yes |
10f2d63a | 1687 | DEFAULT_wxUSE_TEXTFILE=yes |
10f2d63a VZ |
1688 | DEFAULT_wxUSE_WAVE=no |
1689 | DEFAULT_wxUSE_INTL=yes | |
1690 | DEFAULT_wxUSE_CONFIG=yes | |
1e6feb95 | 1691 | DEFAULT_wxUSE_FONTMAP=yes |
10f2d63a VZ |
1692 | DEFAULT_wxUSE_STREAMS=yes |
1693 | DEFAULT_wxUSE_SOCKETS=yes | |
1694 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
10f2d63a | 1695 | DEFAULT_wxUSE_JOYSTICK=yes |
6bff71f8 | 1696 | DEFAULT_wxUSE_DYNLIB_CLASS=yes |
9337b578 | 1697 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes |
b685cd9b | 1698 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 1699 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
1700 | |
1701 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1702 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1703 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1704 | ||
1705 | DEFAULT_wxUSE_X_RESOURCES=no | |
1706 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1707 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1708 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
24fd6d87 | 1709 | DEFAULT_wxUSE_DRAGIMAGE=yes |
10f2d63a VZ |
1710 | DEFAULT_wxUSE_SPLINES=yes |
1711 | ||
1712 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1713 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1714 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1715 | ||
1716 | DEFAULT_wxUSE_PROLOGIO=yes | |
1717 | DEFAULT_wxUSE_RESOURCES=yes | |
1718 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
1719 | DEFAULT_wxUSE_IPC=yes | |
1720 | DEFAULT_wxUSE_HELP=yes | |
29fd3c0c | 1721 | DEFAULT_wxUSE_MS_HTML_HELP=yes |
3379ed37 | 1722 | DEFAULT_wxUSE_WXHTML_HELP=yes |
24176f2c | 1723 | DEFAULT_wxUSE_TREELAYOUT=yes |
10f2d63a | 1724 | DEFAULT_wxUSE_METAFILE=yes |
1e6feb95 | 1725 | DEFAULT_wxUSE_MIMETYPE=yes |
3e44f09d | 1726 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
4cdb0ab0 VS |
1727 | DEFAULT_wxUSE_PROTOCOL=yes |
1728 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
1729 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
1730 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
1731 | DEFAULT_wxUSE_URL=yes | |
10f2d63a VZ |
1732 | |
1733 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1e6feb95 VZ |
1734 | DEFAULT_wxUSE_CHOICEDLG=yes |
1735 | DEFAULT_wxUSE_COLOURDLG=yes | |
10f2d63a | 1736 | DEFAULT_wxUSE_DIRDLG=yes |
1e6feb95 | 1737 | DEFAULT_wxUSE_FILEDLG=yes |
8db37e06 | 1738 | DEFAULT_wxUSE_FINDREPLDLG=yes |
1e6feb95 VZ |
1739 | DEFAULT_wxUSE_FONTDLG=yes |
1740 | DEFAULT_wxUSE_MSGDLG=yes | |
1741 | DEFAULT_wxUSE_NUMBERDLG=yes | |
10f2d63a | 1742 | DEFAULT_wxUSE_TEXTDLG=yes |
cbca9943 | 1743 | DEFAULT_wxUSE_SPLASH=yes |
10f2d63a VZ |
1744 | DEFAULT_wxUSE_STARTUP_TIPS=yes |
1745 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
f33f19dd VZ |
1746 | DEFAULT_wxUSE_WIZARDDLG=yes |
1747 | ||
1e6feb95 | 1748 | DEFAULT_wxUSE_MENUS=yes |
10f2d63a VZ |
1749 | DEFAULT_wxUSE_MINIFRAME=yes |
1750 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 1751 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
1752 | DEFAULT_wxUSE_FS_INET=yes |
1753 | DEFAULT_wxUSE_FS_ZIP=yes | |
1754 | DEFAULT_wxUSE_BUSYINFO=yes | |
1755 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1756 | DEFAULT_wxUSE_VALIDATORS=yes | |
1757 | ||
1758 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 | 1759 | DEFAULT_wxUSE_BUTTON=yes |
10f2d63a | 1760 | DEFAULT_wxUSE_BMPBUTTON=yes |
1e6feb95 VZ |
1761 | DEFAULT_wxUSE_CALCTRL=yes |
1762 | DEFAULT_wxUSE_CARET=yes | |
10f2d63a VZ |
1763 | DEFAULT_wxUSE_CHECKBOX=yes |
1764 | DEFAULT_wxUSE_CHECKLST=yes | |
1765 | DEFAULT_wxUSE_CHOICE=yes | |
1766 | DEFAULT_wxUSE_COMBOBOX=yes | |
1767 | DEFAULT_wxUSE_GAUGE=yes | |
1768 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 1769 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
1770 | DEFAULT_wxUSE_IMAGLIST=yes |
1771 | DEFAULT_wxUSE_LISTBOX=yes | |
1772 | DEFAULT_wxUSE_LISTCTRL=yes | |
1773 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 1774 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
1775 | DEFAULT_wxUSE_RADIOBOX=yes |
1776 | DEFAULT_wxUSE_RADIOBTN=yes | |
1777 | DEFAULT_wxUSE_SASH=yes | |
1778 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1779 | DEFAULT_wxUSE_SLIDER=yes | |
1780 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 1781 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
1782 | DEFAULT_wxUSE_SPLITTER=yes |
1783 | DEFAULT_wxUSE_STATBMP=yes | |
1784 | DEFAULT_wxUSE_STATBOX=yes | |
1785 | DEFAULT_wxUSE_STATLINE=yes | |
1e6feb95 | 1786 | DEFAULT_wxUSE_STATTEXT=yes |
10f2d63a VZ |
1787 | DEFAULT_wxUSE_STATUSBAR=yes |
1788 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1789 | DEFAULT_wxUSE_TEXTCTRL=yes |
1db8dc4a | 1790 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 1791 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
1792 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
1793 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a | 1794 | DEFAULT_wxUSE_TREECTRL=yes |
9f41d601 | 1795 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 1796 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
1797 | |
1798 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 1799 | DEFAULT_wxUSE_UNICODE_MSLU=yes |
10f2d63a VZ |
1800 | DEFAULT_wxUSE_WCSRTOMBS=no |
1801 | ||
edae8572 | 1802 | DEFAULT_wxUSE_PALETTE=yes |
0046ff7c | 1803 | DEFAULT_wxUSE_IMAGE=yes |
10f2d63a VZ |
1804 | DEFAULT_wxUSE_GIF=yes |
1805 | DEFAULT_wxUSE_PCX=yes | |
cc0e8480 | 1806 | DEFAULT_wxUSE_IFF=no |
10f2d63a | 1807 | DEFAULT_wxUSE_PNM=yes |
0046ff7c | 1808 | DEFAULT_wxUSE_XPM=yes |
658974ae | 1809 | DEFAULT_wxUSE_ICO_CUR=yes |
10f2d63a VZ |
1810 | fi |
1811 | ||
698dcdb6 VZ |
1812 | |
1813 | ||
10f2d63a VZ |
1814 | for toolkit in `echo $ALL_TOOLKITS`; do |
1815 | LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}` | |
1816 | if test "x$LINE" != x ; then | |
1817 | has_toolkit_in_cache=1 | |
1818 | eval "DEFAULT_$LINE" | |
1819 | eval "CACHE_$toolkit=1" | |
1820 | fi | |
1821 | done | |
1822 | ||
698dcdb6 VZ |
1823 | |
1824 | ||
1825 | echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6 | |
9e691f46 | 1826 | echo "configure:1827: checking for --enable-gui" >&5 |
10f2d63a VZ |
1827 | no_cache=0 |
1828 | # Check whether --enable-gui or --disable-gui was given. | |
1829 | if test "${enable_gui+set}" = set; then | |
1830 | enableval="$enable_gui" | |
698dcdb6 | 1831 | |
10f2d63a VZ |
1832 | if test "$enableval" = yes; then |
1833 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1834 | else | |
1835 | ac_cv_use_gui='wxUSE_GUI=no' | |
1836 | fi | |
698dcdb6 | 1837 | |
10f2d63a | 1838 | else |
698dcdb6 | 1839 | |
10f2d63a VZ |
1840 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` |
1841 | if test "x$LINE" != x ; then | |
1842 | eval "DEFAULT_$LINE" | |
1843 | else | |
1844 | no_cache=1 | |
1845 | fi | |
1846 | ||
1847 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
698dcdb6 VZ |
1848 | |
1849 | fi | |
10f2d63a VZ |
1850 | |
1851 | ||
1852 | eval "$ac_cv_use_gui" | |
1853 | if test "$no_cache" != 1; then | |
1854 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1855 | fi | |
1856 | ||
1857 | if test "$wxUSE_GUI" = yes; then | |
698dcdb6 | 1858 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 1859 | else |
698dcdb6 | 1860 | echo "$ac_t""no" 1>&6 |
10f2d63a | 1861 | fi |
698dcdb6 | 1862 | |
10f2d63a | 1863 | |
b12915c1 | 1864 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a | 1865 | |
1e6feb95 VZ |
1866 | |
1867 | echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6 | |
9e691f46 | 1868 | echo "configure:1869: checking for --enable-universal" >&5 |
1e6feb95 VZ |
1869 | no_cache=0 |
1870 | # Check whether --enable-universal or --disable-universal was given. | |
1871 | if test "${enable_universal+set}" = set; then | |
1872 | enableval="$enable_universal" | |
1873 | ||
1874 | if test "$enableval" = yes; then | |
1875 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
1876 | else | |
1877 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
1878 | fi | |
1879 | ||
1880 | else | |
1881 | ||
1882 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
1883 | if test "x$LINE" != x ; then | |
1884 | eval "DEFAULT_$LINE" | |
1885 | else | |
1886 | no_cache=1 | |
1887 | fi | |
1888 | ||
1889 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
1890 | ||
1891 | fi | |
1892 | ||
1893 | ||
1894 | eval "$ac_cv_use_universal" | |
1895 | if test "$no_cache" != 1; then | |
1896 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
1897 | fi | |
1898 | ||
1899 | if test "$wxUSE_UNIVERSAL" = yes; then | |
1900 | echo "$ac_t""yes" 1>&6 | |
1901 | else | |
1902 | echo "$ac_t""no" 1>&6 | |
1903 | fi | |
1904 | ||
10f2d63a VZ |
1905 | # Check whether --with-gtk or --without-gtk was given. |
1906 | if test "${with_gtk+set}" = set; then | |
1907 | withval="$with_gtk" | |
1908 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1909 | fi |
10f2d63a VZ |
1910 | |
1911 | # Check whether --with-motif or --without-motif was given. | |
1912 | if test "${with_motif+set}" = set; then | |
1913 | withval="$with_motif" | |
1914 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1915 | fi |
10f2d63a | 1916 | |
b4085ce6 GD |
1917 | # Check whether --with-mac or --without-mac was given. |
1918 | if test "${with_mac+set}" = set; then | |
1919 | withval="$with_mac" | |
1920 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
698dcdb6 | 1921 | fi |
b4085ce6 | 1922 | |
10f2d63a VZ |
1923 | # Check whether --with-wine or --without-wine was given. |
1924 | if test "${with_wine+set}" = set; then | |
1925 | withval="$with_wine" | |
1926 | wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1927 | fi |
10f2d63a | 1928 | |
77e13408 RL |
1929 | # Check whether --with-msw or --without-msw was given. |
1930 | if test "${with_msw+set}" = set; then | |
1931 | withval="$with_msw" | |
1932 | wxUSE_MSW="$withval" CACHE_MSW TOOLKIT_GIVEN=1 | |
698dcdb6 | 1933 | fi |
10f2d63a | 1934 | |
e07802fc VZ |
1935 | # Check whether --with-pm or --without-pm was given. |
1936 | if test "${with_pm+set}" = set; then | |
1937 | withval="$with_pm" | |
1938 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
698dcdb6 VZ |
1939 | fi |
1940 | ||
1e6feb95 VZ |
1941 | # Check whether --with-mgl or --without-mgl was given. |
1942 | if test "${with_mgl+set}" = set; then | |
1943 | withval="$with_mgl" | |
1944 | wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
1945 | fi | |
1946 | ||
1725144d RR |
1947 | # Check whether --with-microwin or --without-microwin was given. |
1948 | if test "${with_microwin+set}" = set; then | |
1949 | withval="$with_microwin" | |
1950 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
1951 | fi | |
1952 | ||
f79bd02d JS |
1953 | # Check whether --with-x11 or --without-x11 was given. |
1954 | if test "${with_x11+set}" = set; then | |
1955 | withval="$with_x11" | |
3c011993 | 1956 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 |
f79bd02d JS |
1957 | fi |
1958 | ||
10f2d63a | 1959 | |
ba875e66 | 1960 | echo $ac_n "checking for --enable-nanox""... $ac_c" 1>&6 |
9e691f46 | 1961 | echo "configure:1962: checking for --enable-nanox" >&5 |
d8356fa3 | 1962 | no_cache=0 |
ba875e66 VZ |
1963 | # Check whether --enable-nanox or --disable-nanox was given. |
1964 | if test "${enable_nanox+set}" = set; then | |
1965 | enableval="$enable_nanox" | |
d8356fa3 VZ |
1966 | |
1967 | if test "$enableval" = yes; then | |
ba875e66 | 1968 | ac_cv_use_nanox='wxUSE_NANOX=yes' |
d8356fa3 | 1969 | else |
ba875e66 | 1970 | ac_cv_use_nanox='wxUSE_NANOX=no' |
d8356fa3 VZ |
1971 | fi |
1972 | ||
1973 | else | |
1974 | ||
1975 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` | |
1976 | if test "x$LINE" != x ; then | |
1977 | eval "DEFAULT_$LINE" | |
1978 | else | |
1979 | no_cache=1 | |
1980 | fi | |
1981 | ||
ba875e66 | 1982 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX |
d8356fa3 VZ |
1983 | |
1984 | fi | |
1985 | ||
1986 | ||
ba875e66 | 1987 | eval "$ac_cv_use_nanox" |
d8356fa3 | 1988 | if test "$no_cache" != 1; then |
ba875e66 | 1989 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp |
d8356fa3 VZ |
1990 | fi |
1991 | ||
1992 | if test "$wxUSE_NANOX" = yes; then | |
1993 | echo "$ac_t""yes" 1>&6 | |
1994 | else | |
1995 | echo "$ac_t""no" 1>&6 | |
1996 | fi | |
1997 | ||
1998 | ||
8168de4c VZ |
1999 | # Check whether --enable-gtk2 or --disable-gtk2 was given. |
2000 | if test "${enable_gtk2+set}" = set; then | |
2001 | enableval="$enable_gtk2" | |
9e691f46 | 2002 | wxUSE_GTK2="yes" |
10f2d63a | 2003 | else |
9e691f46 | 2004 | wxUSE_GTK2="no" |
698dcdb6 VZ |
2005 | fi |
2006 | ||
703e0a69 | 2007 | |
1e487827 | 2008 | |
698dcdb6 | 2009 | echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6 |
9e691f46 | 2010 | echo "configure:2011: checking for --with-libpng" >&5 |
698dcdb6 VZ |
2011 | no_cache=0 |
2012 | # Check whether --with-libpng or --without-libpng was given. | |
b12915c1 VZ |
2013 | if test "${with_libpng+set}" = set; then |
2014 | withval="$with_libpng" | |
698dcdb6 | 2015 | |
10f2d63a | 2016 | if test "$withval" = yes; then |
b12915c1 | 2017 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 2018 | elif test "$withval" = no; then |
b12915c1 | 2019 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
2020 | elif test "$withval" = sys; then |
2021 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
4f14bcd8 GD |
2022 | elif test "$withval" = builtin; then |
2023 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
422107f9 | 2024 | else |
4f14bcd8 | 2025 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2026 | fi |
698dcdb6 | 2027 | |
10f2d63a | 2028 | else |
698dcdb6 | 2029 | |
b12915c1 | 2030 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2031 | if test "x$LINE" != x ; then |
2032 | eval "DEFAULT_$LINE" | |
2033 | else | |
2034 | no_cache=1 | |
2035 | fi | |
2036 | ||
b12915c1 | 2037 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
698dcdb6 VZ |
2038 | |
2039 | fi | |
10f2d63a VZ |
2040 | |
2041 | ||
b12915c1 | 2042 | eval "$ac_cv_use_libpng" |
10f2d63a | 2043 | if test "$no_cache" != 1; then |
b12915c1 | 2044 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2045 | fi |
2046 | ||
b12915c1 | 2047 | if test "$wxUSE_LIBPNG" = yes; then |
698dcdb6 | 2048 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2049 | elif test "$wxUSE_LIBPNG" = no; then |
698dcdb6 | 2050 | echo "$ac_t""no" 1>&6 |
422107f9 | 2051 | elif test "$wxUSE_LIBPNG" = sys; then |
698dcdb6 | 2052 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2053 | elif test "$wxUSE_LIBPNG" = builtin; then |
2054 | echo "$ac_t""builtin version" 1>&6 | |
422107f9 | 2055 | else |
4f14bcd8 | 2056 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2057 | fi |
698dcdb6 | 2058 | |
10f2d63a | 2059 | |
698dcdb6 | 2060 | echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6 |
9e691f46 | 2061 | echo "configure:2062: checking for --with-libjpeg" >&5 |
10f2d63a | 2062 | no_cache=0 |
698dcdb6 | 2063 | # Check whether --with-libjpeg or --without-libjpeg was given. |
b12915c1 VZ |
2064 | if test "${with_libjpeg+set}" = set; then |
2065 | withval="$with_libjpeg" | |
698dcdb6 | 2066 | |
10f2d63a | 2067 | if test "$withval" = yes; then |
b12915c1 | 2068 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 2069 | elif test "$withval" = no; then |
b12915c1 | 2070 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
2071 | elif test "$withval" = sys; then |
2072 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
4f14bcd8 GD |
2073 | elif test "$withval" = builtin; then |
2074 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
422107f9 | 2075 | else |
4f14bcd8 | 2076 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2077 | fi |
698dcdb6 | 2078 | |
10f2d63a | 2079 | else |
698dcdb6 | 2080 | |
b12915c1 | 2081 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2082 | if test "x$LINE" != x ; then |
2083 | eval "DEFAULT_$LINE" | |
2084 | else | |
2085 | no_cache=1 | |
2086 | fi | |
2087 | ||
b12915c1 | 2088 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
698dcdb6 VZ |
2089 | |
2090 | fi | |
10f2d63a VZ |
2091 | |
2092 | ||
b12915c1 | 2093 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 2094 | if test "$no_cache" != 1; then |
b12915c1 | 2095 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2096 | fi |
2097 | ||
b12915c1 | 2098 | if test "$wxUSE_LIBJPEG" = yes; then |
698dcdb6 | 2099 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2100 | elif test "$wxUSE_LIBJPEG" = no; then |
698dcdb6 | 2101 | echo "$ac_t""no" 1>&6 |
422107f9 | 2102 | elif test "$wxUSE_LIBJPEG" = sys; then |
698dcdb6 | 2103 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2104 | elif test "$wxUSE_LIBJPEG" = builtin; then |
2105 | echo "$ac_t""builtin version" 1>&6 | |
422107f9 | 2106 | else |
4f14bcd8 | 2107 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2108 | fi |
698dcdb6 | 2109 | |
10f2d63a | 2110 | |
698dcdb6 | 2111 | echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6 |
9e691f46 | 2112 | echo "configure:2113: checking for --with-libtiff" >&5 |
10f2d63a | 2113 | no_cache=0 |
698dcdb6 | 2114 | # Check whether --with-libtiff or --without-libtiff was given. |
b12915c1 VZ |
2115 | if test "${with_libtiff+set}" = set; then |
2116 | withval="$with_libtiff" | |
698dcdb6 | 2117 | |
10f2d63a | 2118 | if test "$withval" = yes; then |
b12915c1 | 2119 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 2120 | elif test "$withval" = no; then |
b12915c1 | 2121 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
2122 | elif test "$withval" = sys; then |
2123 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
4f14bcd8 GD |
2124 | elif test "$withval" = builtin; then |
2125 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
0dcf9893 | 2126 | else |
4f14bcd8 | 2127 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2128 | fi |
698dcdb6 | 2129 | |
10f2d63a | 2130 | else |
698dcdb6 | 2131 | |
b12915c1 | 2132 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
2133 | if test "x$LINE" != x ; then |
2134 | eval "DEFAULT_$LINE" | |
2135 | else | |
2136 | no_cache=1 | |
2137 | fi | |
2138 | ||
b12915c1 | 2139 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
698dcdb6 VZ |
2140 | |
2141 | fi | |
10f2d63a VZ |
2142 | |
2143 | ||
b12915c1 | 2144 | eval "$ac_cv_use_libtiff" |
10f2d63a | 2145 | if test "$no_cache" != 1; then |
b12915c1 | 2146 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2147 | fi |
2148 | ||
b12915c1 | 2149 | if test "$wxUSE_LIBTIFF" = yes; then |
698dcdb6 | 2150 | echo "$ac_t""yes" 1>&6 |
0dcf9893 | 2151 | elif test "$wxUSE_LIBTIFF" = no; then |
698dcdb6 | 2152 | echo "$ac_t""no" 1>&6 |
0dcf9893 | 2153 | elif test "$wxUSE_LIBTIFF" = sys; then |
698dcdb6 | 2154 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2155 | elif test "$wxUSE_LIBTIFF" = builtin; then |
2156 | echo "$ac_t""builtin version" 1>&6 | |
0dcf9893 | 2157 | else |
4f14bcd8 | 2158 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2159 | fi |
698dcdb6 | 2160 | |
10f2d63a | 2161 | |
698dcdb6 | 2162 | echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6 |
9e691f46 | 2163 | echo "configure:2164: checking for --with-opengl" >&5 |
10f2d63a | 2164 | no_cache=0 |
698dcdb6 | 2165 | # Check whether --with-opengl or --without-opengl was given. |
b12915c1 VZ |
2166 | if test "${with_opengl+set}" = set; then |
2167 | withval="$with_opengl" | |
698dcdb6 | 2168 | |
10f2d63a | 2169 | if test "$withval" = yes; then |
b12915c1 | 2170 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 2171 | else |
b12915c1 | 2172 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a | 2173 | fi |
698dcdb6 | 2174 | |
10f2d63a | 2175 | else |
698dcdb6 | 2176 | |
b12915c1 | 2177 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
2178 | if test "x$LINE" != x ; then |
2179 | eval "DEFAULT_$LINE" | |
2180 | else | |
2181 | no_cache=1 | |
2182 | fi | |
2183 | ||
b12915c1 | 2184 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
698dcdb6 VZ |
2185 | |
2186 | fi | |
10f2d63a VZ |
2187 | |
2188 | ||
b12915c1 | 2189 | eval "$ac_cv_use_opengl" |
10f2d63a | 2190 | if test "$no_cache" != 1; then |
b12915c1 | 2191 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2192 | fi |
2193 | ||
b12915c1 | 2194 | if test "$wxUSE_OPENGL" = yes; then |
698dcdb6 | 2195 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2196 | else |
698dcdb6 | 2197 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2198 | fi |
698dcdb6 | 2199 | |
10f2d63a | 2200 | |
b12915c1 VZ |
2201 | fi |
2202 | ||
1e487827 | 2203 | |
698dcdb6 | 2204 | echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6 |
9e691f46 | 2205 | echo "configure:2206: checking for --with-dmalloc" >&5 |
698dcdb6 VZ |
2206 | no_cache=0 |
2207 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
b12915c1 VZ |
2208 | if test "${with_dmalloc+set}" = set; then |
2209 | withval="$with_dmalloc" | |
698dcdb6 | 2210 | |
c7a2bf27 | 2211 | if test "$withval" = yes; then |
b12915c1 | 2212 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 2213 | else |
b12915c1 | 2214 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 | 2215 | fi |
698dcdb6 | 2216 | |
c7a2bf27 | 2217 | else |
698dcdb6 | 2218 | |
b12915c1 | 2219 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
2220 | if test "x$LINE" != x ; then |
2221 | eval "DEFAULT_$LINE" | |
2222 | else | |
2223 | no_cache=1 | |
2224 | fi | |
2225 | ||
b12915c1 | 2226 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
698dcdb6 VZ |
2227 | |
2228 | fi | |
c7a2bf27 RR |
2229 | |
2230 | ||
b12915c1 | 2231 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 2232 | if test "$no_cache" != 1; then |
b12915c1 | 2233 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
2234 | fi |
2235 | ||
b12915c1 | 2236 | if test "$wxUSE_DMALLOC" = yes; then |
698dcdb6 | 2237 | echo "$ac_t""yes" 1>&6 |
c7a2bf27 | 2238 | else |
698dcdb6 | 2239 | echo "$ac_t""no" 1>&6 |
c7a2bf27 | 2240 | fi |
698dcdb6 | 2241 | |
c7a2bf27 | 2242 | |
3e44f09d | 2243 | echo $ac_n "checking for --with-regex""... $ac_c" 1>&6 |
9e691f46 | 2244 | echo "configure:2245: checking for --with-regex" >&5 |
3e44f09d VZ |
2245 | no_cache=0 |
2246 | # Check whether --with-regex or --without-regex was given. | |
2247 | if test "${with_regex+set}" = set; then | |
2248 | withval="$with_regex" | |
2249 | ||
2250 | if test "$withval" = yes; then | |
2251 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
2252 | elif test "$withval" = no; then | |
2253 | ac_cv_use_regex='wxUSE_REGEX=no' | |
2254 | elif test "$withval" = sys; then | |
2255 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
4f14bcd8 GD |
2256 | elif test "$withval" = builtin; then |
2257 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3e44f09d | 2258 | else |
4f14bcd8 | 2259 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d VZ |
2260 | fi |
2261 | ||
2262 | else | |
2263 | ||
2264 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` | |
2265 | if test "x$LINE" != x ; then | |
2266 | eval "DEFAULT_$LINE" | |
2267 | else | |
2268 | no_cache=1 | |
2269 | fi | |
2270 | ||
2271 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
2272 | ||
2273 | fi | |
2274 | ||
2275 | ||
2276 | eval "$ac_cv_use_regex" | |
2277 | if test "$no_cache" != 1; then | |
2278 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
2279 | fi | |
2280 | ||
2281 | if test "$wxUSE_REGEX" = yes; then | |
2282 | echo "$ac_t""yes" 1>&6 | |
2283 | elif test "$wxUSE_REGEX" = no; then | |
2284 | echo "$ac_t""no" 1>&6 | |
2285 | elif test "$wxUSE_REGEX" = sys; then | |
2286 | echo "$ac_t""system version" 1>&6 | |
4f14bcd8 GD |
2287 | elif test "$wxUSE_REGEX" = builtin; then |
2288 | echo "$ac_t""builtin version" 1>&6 | |
3e44f09d | 2289 | else |
4f14bcd8 | 2290 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d VZ |
2291 | fi |
2292 | ||
2293 | ||
698dcdb6 | 2294 | echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6 |
9e691f46 | 2295 | echo "configure:2296: checking for --with-zlib" >&5 |
10f2d63a | 2296 | no_cache=0 |
698dcdb6 | 2297 | # Check whether --with-zlib or --without-zlib was given. |
b12915c1 VZ |
2298 | if test "${with_zlib+set}" = set; then |
2299 | withval="$with_zlib" | |
698dcdb6 | 2300 | |
10f2d63a | 2301 | if test "$withval" = yes; then |
b12915c1 | 2302 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 2303 | elif test "$withval" = no; then |
b12915c1 | 2304 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
2305 | elif test "$withval" = sys; then |
2306 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
4f14bcd8 GD |
2307 | elif test "$withval" = builtin; then |
2308 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
422107f9 | 2309 | else |
4f14bcd8 | 2310 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2311 | fi |
698dcdb6 | 2312 | |
10f2d63a | 2313 | else |
698dcdb6 | 2314 | |
b12915c1 | 2315 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
2316 | if test "x$LINE" != x ; then |
2317 | eval "DEFAULT_$LINE" | |
2318 | else | |
2319 | no_cache=1 | |
2320 | fi | |
2321 | ||
b12915c1 | 2322 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
698dcdb6 VZ |
2323 | |
2324 | fi | |
10f2d63a VZ |
2325 | |
2326 | ||
b12915c1 | 2327 | eval "$ac_cv_use_zlib" |
10f2d63a | 2328 | if test "$no_cache" != 1; then |
b12915c1 | 2329 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2330 | fi |
2331 | ||
b12915c1 | 2332 | if test "$wxUSE_ZLIB" = yes; then |
698dcdb6 | 2333 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2334 | elif test "$wxUSE_ZLIB" = no; then |
698dcdb6 | 2335 | echo "$ac_t""no" 1>&6 |
422107f9 | 2336 | elif test "$wxUSE_ZLIB" = sys; then |
698dcdb6 | 2337 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2338 | elif test "$wxUSE_ZLIB" = builtin; then |
2339 | echo "$ac_t""builtin version" 1>&6 | |
422107f9 | 2340 | else |
4f14bcd8 | 2341 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2342 | fi |
698dcdb6 | 2343 | |
10f2d63a | 2344 | |
698dcdb6 | 2345 | echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6 |
9e691f46 | 2346 | echo "configure:2347: checking for --with-odbc" >&5 |
10f2d63a | 2347 | no_cache=0 |
698dcdb6 | 2348 | # Check whether --with-odbc or --without-odbc was given. |
10f2d63a VZ |
2349 | if test "${with_odbc+set}" = set; then |
2350 | withval="$with_odbc" | |
698dcdb6 | 2351 | |
10f2d63a VZ |
2352 | if test "$withval" = yes; then |
2353 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
2354 | else | |
2355 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
2356 | fi | |
698dcdb6 | 2357 | |
10f2d63a | 2358 | else |
698dcdb6 | 2359 | |
10f2d63a VZ |
2360 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` |
2361 | if test "x$LINE" != x ; then | |
2362 | eval "DEFAULT_$LINE" | |
2363 | else | |
2364 | no_cache=1 | |
2365 | fi | |
2366 | ||
2367 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
698dcdb6 VZ |
2368 | |
2369 | fi | |
10f2d63a VZ |
2370 | |
2371 | ||
2372 | eval "$ac_cv_use_odbc" | |
2373 | if test "$no_cache" != 1; then | |
2374 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
2375 | fi | |
2376 | ||
2377 | if test "$wxUSE_ODBC" = yes; then | |
698dcdb6 | 2378 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2379 | else |
698dcdb6 | 2380 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2381 | fi |
698dcdb6 VZ |
2382 | |
2383 | ||
10f2d63a | 2384 | |
698dcdb6 | 2385 | |
698dcdb6 | 2386 | echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6 |
9e691f46 | 2387 | echo "configure:2388: checking for --enable-shared" >&5 |
10f2d63a VZ |
2388 | no_cache=0 |
2389 | # Check whether --enable-shared or --disable-shared was given. | |
2390 | if test "${enable_shared+set}" = set; then | |
2391 | enableval="$enable_shared" | |
698dcdb6 | 2392 | |
10f2d63a VZ |
2393 | if test "$enableval" = yes; then |
2394 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
2395 | else | |
2396 | ac_cv_use_shared='wxUSE_SHARED=no' | |
2397 | fi | |
698dcdb6 | 2398 | |
10f2d63a | 2399 | else |
698dcdb6 | 2400 | |
10f2d63a VZ |
2401 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` |
2402 | if test "x$LINE" != x ; then | |
2403 | eval "DEFAULT_$LINE" | |
2404 | else | |
2405 | no_cache=1 | |
2406 | fi | |
2407 | ||
2408 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
698dcdb6 VZ |
2409 | |
2410 | fi | |
10f2d63a VZ |
2411 | |
2412 | ||
2413 | eval "$ac_cv_use_shared" | |
2414 | if test "$no_cache" != 1; then | |
2415 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
2416 | fi | |
2417 | ||
2418 | if test "$wxUSE_SHARED" = yes; then | |
698dcdb6 | 2419 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2420 | else |
698dcdb6 | 2421 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2422 | fi |
698dcdb6 | 2423 | |
10f2d63a | 2424 | |
3a922bb4 | 2425 | echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6 |
9e691f46 | 2426 | echo "configure:2427: checking for --enable-soname" >&5 |
00cf1208 | 2427 | no_cache=0 |
3a922bb4 RL |
2428 | # Check whether --enable-soname or --disable-soname was given. |
2429 | if test "${enable_soname+set}" = set; then | |
2430 | enableval="$enable_soname" | |
698dcdb6 | 2431 | |
00cf1208 | 2432 | if test "$enableval" = yes; then |
3a922bb4 | 2433 | ac_cv_use_soname='wxUSE_SONAME=yes' |
00cf1208 | 2434 | else |
3a922bb4 | 2435 | ac_cv_use_soname='wxUSE_SONAME=no' |
00cf1208 | 2436 | fi |
698dcdb6 | 2437 | |
00cf1208 | 2438 | else |
698dcdb6 | 2439 | |
3a922bb4 | 2440 | LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}` |
00cf1208 RR |
2441 | if test "x$LINE" != x ; then |
2442 | eval "DEFAULT_$LINE" | |
2443 | else | |
2444 | no_cache=1 | |
2445 | fi | |
2446 | ||
3a922bb4 | 2447 | ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME |
698dcdb6 VZ |
2448 | |
2449 | fi | |
00cf1208 RR |
2450 | |
2451 | ||
3a922bb4 | 2452 | eval "$ac_cv_use_soname" |
00cf1208 | 2453 | if test "$no_cache" != 1; then |
3a922bb4 | 2454 | echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp |
00cf1208 RR |
2455 | fi |
2456 | ||
3a922bb4 | 2457 | if test "$wxUSE_SONAME" = yes; then |
698dcdb6 | 2458 | echo "$ac_t""yes" 1>&6 |
00cf1208 | 2459 | else |
698dcdb6 | 2460 | echo "$ac_t""no" 1>&6 |
00cf1208 | 2461 | fi |
698dcdb6 | 2462 | |
00cf1208 | 2463 | |
698dcdb6 | 2464 | echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6 |
9e691f46 | 2465 | echo "configure:2466: checking for --enable-optimise" >&5 |
10f2d63a VZ |
2466 | no_cache=0 |
2467 | # Check whether --enable-optimise or --disable-optimise was given. | |
2468 | if test "${enable_optimise+set}" = set; then | |
2469 | enableval="$enable_optimise" | |
698dcdb6 | 2470 | |
10f2d63a VZ |
2471 | if test "$enableval" = yes; then |
2472 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
2473 | else | |
2474 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
2475 | fi | |
698dcdb6 | 2476 | |
10f2d63a | 2477 | else |
698dcdb6 | 2478 | |
10f2d63a VZ |
2479 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` |
2480 | if test "x$LINE" != x ; then | |
2481 | eval "DEFAULT_$LINE" | |
2482 | else | |
2483 | no_cache=1 | |
2484 | fi | |
2485 | ||
2486 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
698dcdb6 VZ |
2487 | |
2488 | fi | |
10f2d63a VZ |
2489 | |
2490 | ||
2491 | eval "$ac_cv_use_optimise" | |
2492 | if test "$no_cache" != 1; then | |
2493 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
2494 | fi | |
2495 | ||
2496 | if test "$wxUSE_OPTIMISE" = yes; then | |
698dcdb6 | 2497 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2498 | else |
698dcdb6 | 2499 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2500 | fi |
698dcdb6 | 2501 | |
10f2d63a | 2502 | |
698dcdb6 | 2503 | echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6 |
9e691f46 | 2504 | echo "configure:2505: checking for --enable-debug" >&5 |
10f2d63a VZ |
2505 | no_cache=0 |
2506 | # Check whether --enable-debug or --disable-debug was given. | |
2507 | if test "${enable_debug+set}" = set; then | |
2508 | enableval="$enable_debug" | |
698dcdb6 | 2509 | |
10f2d63a VZ |
2510 | if test "$enableval" = yes; then |
2511 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
2512 | else | |
2513 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
2514 | fi | |
698dcdb6 | 2515 | |
10f2d63a | 2516 | else |
698dcdb6 | 2517 | |
10f2d63a VZ |
2518 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` |
2519 | if test "x$LINE" != x ; then | |
2520 | eval "DEFAULT_$LINE" | |
2521 | else | |
2522 | no_cache=1 | |
2523 | fi | |
2524 | ||
2525 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
698dcdb6 VZ |
2526 | |
2527 | fi | |
10f2d63a VZ |
2528 | |
2529 | ||
2530 | eval "$ac_cv_use_debug" | |
2531 | if test "$no_cache" != 1; then | |
2532 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
2533 | fi | |
2534 | ||
2535 | if test "$wxUSE_DEBUG" = yes; then | |
698dcdb6 | 2536 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2537 | else |
698dcdb6 | 2538 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2539 | fi |
698dcdb6 | 2540 | |
10f2d63a | 2541 | |
683dccda GD |
2542 | |
2543 | echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6 | |
9e691f46 | 2544 | echo "configure:2545: checking for --enable-precomp" >&5 |
683dccda GD |
2545 | no_cache=0 |
2546 | # Check whether --enable-precomp or --disable-precomp was given. | |
2547 | if test "${enable_precomp+set}" = set; then | |
2548 | enableval="$enable_precomp" | |
2549 | ||
2550 | if test "$enableval" = yes; then | |
2551 | ac_cv_use_precomp='wxUSE_PRECOMP=yes' | |
2552 | else | |
2553 | ac_cv_use_precomp='wxUSE_PRECOMP=no' | |
2554 | fi | |
2555 | ||
2556 | else | |
2557 | ||
2558 | LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}` | |
2559 | if test "x$LINE" != x ; then | |
2560 | eval "DEFAULT_$LINE" | |
2561 | else | |
2562 | no_cache=1 | |
2563 | fi | |
2564 | ||
2565 | ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP | |
2566 | ||
2567 | fi | |
2568 | ||
2569 | ||
2570 | eval "$ac_cv_use_precomp" | |
2571 | if test "$no_cache" != 1; then | |
2572 | echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp | |
2573 | fi | |
2574 | ||
2575 | if test "$wxUSE_PRECOMP" = yes; then | |
2576 | echo "$ac_t""yes" 1>&6 | |
2577 | else | |
2578 | echo "$ac_t""no" 1>&6 | |
2579 | fi | |
2580 | ||
2581 | ||
10f2d63a VZ |
2582 | if test "$wxUSE_DEBUG" = "yes"; then |
2583 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2584 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2585 | elif test "$wxUSE_DEBUG" = "no"; then | |
2586 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2587 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2588 | fi | |
2589 | ||
698dcdb6 VZ |
2590 | |
2591 | echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6 | |
9e691f46 | 2592 | echo "configure:2593: checking for --enable-debug_flag" >&5 |
10f2d63a VZ |
2593 | no_cache=0 |
2594 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
2595 | if test "${enable_debug_flag+set}" = set; then | |
2596 | enableval="$enable_debug_flag" | |
698dcdb6 | 2597 | |
10f2d63a VZ |
2598 | if test "$enableval" = yes; then |
2599 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
2600 | else | |
2601 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
2602 | fi | |
698dcdb6 | 2603 | |
10f2d63a | 2604 | else |
698dcdb6 | 2605 | |
10f2d63a VZ |
2606 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` |
2607 | if test "x$LINE" != x ; then | |
2608 | eval "DEFAULT_$LINE" | |
2609 | else | |
2610 | no_cache=1 | |
2611 | fi | |
2612 | ||
2613 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
698dcdb6 VZ |
2614 | |
2615 | fi | |
10f2d63a VZ |
2616 | |
2617 | ||
2618 | eval "$ac_cv_use_debug_flag" | |
2619 | if test "$no_cache" != 1; then | |
2620 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
2621 | fi | |
2622 | ||
2623 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
698dcdb6 | 2624 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2625 | else |
698dcdb6 | 2626 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2627 | fi |
698dcdb6 | 2628 | |
10f2d63a | 2629 | |
698dcdb6 | 2630 | echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6 |
9e691f46 | 2631 | echo "configure:2632: checking for --enable-debug_info" >&5 |
10f2d63a VZ |
2632 | no_cache=0 |
2633 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2634 | if test "${enable_debug_info+set}" = set; then | |
2635 | enableval="$enable_debug_info" | |
698dcdb6 | 2636 | |
10f2d63a VZ |
2637 | if test "$enableval" = yes; then |
2638 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2639 | else | |
2640 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2641 | fi | |
698dcdb6 | 2642 | |
10f2d63a | 2643 | else |
698dcdb6 | 2644 | |
10f2d63a VZ |
2645 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` |
2646 | if test "x$LINE" != x ; then | |
2647 | eval "DEFAULT_$LINE" | |
2648 | else | |
2649 | no_cache=1 | |
2650 | fi | |
2651 | ||
2652 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
698dcdb6 VZ |
2653 | |
2654 | fi | |
10f2d63a VZ |
2655 | |
2656 | ||
2657 | eval "$ac_cv_use_debug_info" | |
2658 | if test "$no_cache" != 1; then | |
2659 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2660 | fi | |
2661 | ||
2662 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
698dcdb6 | 2663 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2664 | else |
698dcdb6 | 2665 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2666 | fi |
698dcdb6 | 2667 | |
10f2d63a | 2668 | |
698dcdb6 | 2669 | echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6 |
9e691f46 | 2670 | echo "configure:2671: checking for --enable-debug_gdb" >&5 |
10f2d63a VZ |
2671 | no_cache=0 |
2672 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2673 | if test "${enable_debug_gdb+set}" = set; then | |
2674 | enableval="$enable_debug_gdb" | |
698dcdb6 | 2675 | |
10f2d63a VZ |
2676 | if test "$enableval" = yes; then |
2677 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2678 | else | |
2679 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2680 | fi | |
698dcdb6 | 2681 | |
10f2d63a | 2682 | else |
698dcdb6 | 2683 | |
10f2d63a VZ |
2684 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` |
2685 | if test "x$LINE" != x ; then | |
2686 | eval "DEFAULT_$LINE" | |
2687 | else | |
2688 | no_cache=1 | |
2689 | fi | |
2690 | ||
2691 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
698dcdb6 VZ |
2692 | |
2693 | fi | |
10f2d63a VZ |
2694 | |
2695 | ||
2696 | eval "$ac_cv_use_debug_gdb" | |
2697 | if test "$no_cache" != 1; then | |
2698 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2699 | fi | |
2700 | ||
2701 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
698dcdb6 | 2702 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2703 | else |
698dcdb6 | 2704 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2705 | fi |
698dcdb6 | 2706 | |
10f2d63a | 2707 | |
698dcdb6 | 2708 | echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6 |
9e691f46 | 2709 | echo "configure:2710: checking for --enable-debug_cntxt" >&5 |
10f2d63a VZ |
2710 | no_cache=0 |
2711 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2712 | if test "${enable_debug_cntxt+set}" = set; then | |
2713 | enableval="$enable_debug_cntxt" | |
698dcdb6 | 2714 | |
10f2d63a VZ |
2715 | if test "$enableval" = yes; then |
2716 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2717 | else | |
2718 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2719 | fi | |
698dcdb6 | 2720 | |
10f2d63a | 2721 | else |
698dcdb6 | 2722 | |
10f2d63a VZ |
2723 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` |
2724 | if test "x$LINE" != x ; then | |
2725 | eval "DEFAULT_$LINE" | |
2726 | else | |
2727 | no_cache=1 | |
2728 | fi | |
2729 | ||
2730 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
698dcdb6 VZ |
2731 | |
2732 | fi | |
10f2d63a VZ |
2733 | |
2734 | ||
2735 | eval "$ac_cv_use_debug_cntxt" | |
2736 | if test "$no_cache" != 1; then | |
2737 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2738 | fi | |
2739 | ||
2740 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
698dcdb6 | 2741 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2742 | else |
698dcdb6 | 2743 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2744 | fi |
698dcdb6 | 2745 | |
10f2d63a | 2746 | |
698dcdb6 | 2747 | echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6 |
9e691f46 | 2748 | echo "configure:2749: checking for --enable-mem_tracing" >&5 |
10f2d63a VZ |
2749 | no_cache=0 |
2750 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2751 | if test "${enable_mem_tracing+set}" = set; then | |
2752 | enableval="$enable_mem_tracing" | |
698dcdb6 | 2753 | |
10f2d63a VZ |
2754 | if test "$enableval" = yes; then |
2755 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2756 | else | |
2757 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2758 | fi | |
698dcdb6 | 2759 | |
10f2d63a | 2760 | else |
698dcdb6 | 2761 | |
10f2d63a VZ |
2762 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` |
2763 | if test "x$LINE" != x ; then | |
2764 | eval "DEFAULT_$LINE" | |
2765 | else | |
2766 | no_cache=1 | |
2767 | fi | |
2768 | ||
2769 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
698dcdb6 VZ |
2770 | |
2771 | fi | |
10f2d63a VZ |
2772 | |
2773 | ||
2774 | eval "$ac_cv_use_mem_tracing" | |
2775 | if test "$no_cache" != 1; then | |
2776 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2777 | fi | |
2778 | ||
2779 | if test "$wxUSE_MEM_TRACING" = yes; then | |
698dcdb6 | 2780 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2781 | else |
698dcdb6 | 2782 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2783 | fi |
698dcdb6 | 2784 | |
10f2d63a | 2785 | |
698dcdb6 | 2786 | echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6 |
9e691f46 | 2787 | echo "configure:2788: checking for --enable-profile" >&5 |
10f2d63a VZ |
2788 | no_cache=0 |
2789 | # Check whether --enable-profile or --disable-profile was given. | |
2790 | if test "${enable_profile+set}" = set; then | |
2791 | enableval="$enable_profile" | |
698dcdb6 | 2792 | |
10f2d63a VZ |
2793 | if test "$enableval" = yes; then |
2794 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2795 | else | |
2796 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2797 | fi | |
698dcdb6 | 2798 | |
10f2d63a | 2799 | else |
698dcdb6 | 2800 | |
10f2d63a VZ |
2801 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` |
2802 | if test "x$LINE" != x ; then | |
2803 | eval "DEFAULT_$LINE" | |
2804 | else | |
2805 | no_cache=1 | |
2806 | fi | |
2807 | ||
2808 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
698dcdb6 VZ |
2809 | |
2810 | fi | |
10f2d63a VZ |
2811 | |
2812 | ||
2813 | eval "$ac_cv_use_profile" | |
2814 | if test "$no_cache" != 1; then | |
2815 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2816 | fi | |
2817 | ||
2818 | if test "$wxUSE_PROFILE" = yes; then | |
698dcdb6 | 2819 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2820 | else |
698dcdb6 | 2821 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2822 | fi |
698dcdb6 | 2823 | |
10f2d63a | 2824 | |
698dcdb6 | 2825 | echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6 |
9e691f46 | 2826 | echo "configure:2827: checking for --enable-no_rtti" >&5 |
10f2d63a VZ |
2827 | no_cache=0 |
2828 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2829 | if test "${enable_no_rtti+set}" = set; then | |
2830 | enableval="$enable_no_rtti" | |
698dcdb6 | 2831 | |
10f2d63a VZ |
2832 | if test "$enableval" = yes; then |
2833 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2834 | else | |
2835 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2836 | fi | |
698dcdb6 | 2837 | |
10f2d63a | 2838 | else |
698dcdb6 | 2839 | |
10f2d63a VZ |
2840 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` |
2841 | if test "x$LINE" != x ; then | |
2842 | eval "DEFAULT_$LINE" | |
2843 | else | |
2844 | no_cache=1 | |
2845 | fi | |
2846 | ||
2847 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
698dcdb6 VZ |
2848 | |
2849 | fi | |
10f2d63a VZ |
2850 | |
2851 | ||
2852 | eval "$ac_cv_use_no_rtti" | |
2853 | if test "$no_cache" != 1; then | |
2854 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2855 | fi | |
2856 | ||
2857 | if test "$wxUSE_NO_RTTI" = yes; then | |
698dcdb6 | 2858 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2859 | else |
698dcdb6 | 2860 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2861 | fi |
698dcdb6 | 2862 | |
10f2d63a | 2863 | |
698dcdb6 | 2864 | echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6 |
9e691f46 | 2865 | echo "configure:2866: checking for --enable-no_exceptions" >&5 |
10f2d63a VZ |
2866 | no_cache=0 |
2867 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2868 | if test "${enable_no_exceptions+set}" = set; then | |
2869 | enableval="$enable_no_exceptions" | |
698dcdb6 | 2870 | |
10f2d63a VZ |
2871 | if test "$enableval" = yes; then |
2872 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2873 | else | |
2874 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2875 | fi | |
698dcdb6 | 2876 | |
10f2d63a | 2877 | else |
698dcdb6 | 2878 | |
10f2d63a VZ |
2879 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` |
2880 | if test "x$LINE" != x ; then | |
2881 | eval "DEFAULT_$LINE" | |
2882 | else | |
2883 | no_cache=1 | |
2884 | fi | |
2885 | ||
2886 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
698dcdb6 VZ |
2887 | |
2888 | fi | |
10f2d63a VZ |
2889 | |
2890 | ||
2891 | eval "$ac_cv_use_no_exceptions" | |
2892 | if test "$no_cache" != 1; then | |
2893 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2894 | fi | |
2895 | ||
2896 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
698dcdb6 | 2897 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2898 | else |
698dcdb6 | 2899 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2900 | fi |
698dcdb6 | 2901 | |
10f2d63a | 2902 | |
698dcdb6 | 2903 | echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6 |
9e691f46 | 2904 | echo "configure:2905: checking for --enable-permissive" >&5 |
10f2d63a VZ |
2905 | no_cache=0 |
2906 | # Check whether --enable-permissive or --disable-permissive was given. | |
2907 | if test "${enable_permissive+set}" = set; then | |
2908 | enableval="$enable_permissive" | |
698dcdb6 | 2909 | |
10f2d63a VZ |
2910 | if test "$enableval" = yes; then |
2911 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2912 | else | |
2913 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2914 | fi | |
698dcdb6 | 2915 | |
10f2d63a | 2916 | else |
698dcdb6 | 2917 | |
10f2d63a VZ |
2918 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` |
2919 | if test "x$LINE" != x ; then | |
2920 | eval "DEFAULT_$LINE" | |
2921 | else | |
2922 | no_cache=1 | |
2923 | fi | |
2924 | ||
2925 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
698dcdb6 VZ |
2926 | |
2927 | fi | |
10f2d63a VZ |
2928 | |
2929 | ||
2930 | eval "$ac_cv_use_permissive" | |
2931 | if test "$no_cache" != 1; then | |
2932 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2933 | fi | |
2934 | ||
2935 | if test "$wxUSE_PERMISSIVE" = yes; then | |
698dcdb6 | 2936 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2937 | else |
698dcdb6 | 2938 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2939 | fi |
698dcdb6 | 2940 | |
10f2d63a | 2941 | |
698dcdb6 | 2942 | echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6 |
9e691f46 | 2943 | echo "configure:2944: checking for --enable-no_deps" >&5 |
10f2d63a VZ |
2944 | no_cache=0 |
2945 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2946 | if test "${enable_no_deps+set}" = set; then | |
2947 | enableval="$enable_no_deps" | |
698dcdb6 | 2948 | |
10f2d63a VZ |
2949 | if test "$enableval" = yes; then |
2950 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2951 | else | |
2952 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2953 | fi | |
698dcdb6 | 2954 | |
10f2d63a | 2955 | else |
698dcdb6 | 2956 | |
10f2d63a VZ |
2957 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` |
2958 | if test "x$LINE" != x ; then | |
2959 | eval "DEFAULT_$LINE" | |
2960 | else | |
2961 | no_cache=1 | |
2962 | fi | |
2963 | ||
2964 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
698dcdb6 VZ |
2965 | |
2966 | fi | |
10f2d63a VZ |
2967 | |
2968 | ||
2969 | eval "$ac_cv_use_no_deps" | |
2970 | if test "$no_cache" != 1; then | |
2971 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2972 | fi | |
2973 | ||
2974 | if test "$wxUSE_NO_DEPS" = yes; then | |
698dcdb6 | 2975 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2976 | else |
698dcdb6 | 2977 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2978 | fi |
698dcdb6 VZ |
2979 | |
2980 | ||
10f2d63a | 2981 | |
54276ccf | 2982 | echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6 |
9e691f46 | 2983 | echo "configure:2984: checking for --enable-compat20" >&5 |
54276ccf VZ |
2984 | no_cache=0 |
2985 | # Check whether --enable-compat20 or --disable-compat20 was given. | |
2986 | if test "${enable_compat20+set}" = set; then | |
2987 | enableval="$enable_compat20" | |
2988 | ||
2989 | if test "$enableval" = yes; then | |
2990 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes' | |
2991 | else | |
2992 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no' | |
2993 | fi | |
2994 | ||
2995 | else | |
2996 | ||
2997 | LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}` | |
2998 | if test "x$LINE" != x ; then | |
2999 | eval "DEFAULT_$LINE" | |
3000 | else | |
3001 | no_cache=1 | |
3002 | fi | |
3003 | ||
3004 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2 | |
3005 | ||
3006 | fi | |
3007 | ||
3008 | ||
3009 | eval "$ac_cv_use_compat20" | |
3010 | if test "$no_cache" != 1; then | |
3011 | echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp | |
3012 | fi | |
3013 | ||
3014 | if test "$WXWIN_COMPATIBILITY_2" = yes; then | |
3015 | echo "$ac_t""yes" 1>&6 | |
3016 | else | |
3017 | echo "$ac_t""no" 1>&6 | |
3018 | fi | |
3019 | ||
3020 | ||
3021 | echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6 | |
9e691f46 | 3022 | echo "configure:3023: checking for --enable-compat22" >&5 |
54276ccf VZ |
3023 | no_cache=0 |
3024 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
3025 | if test "${enable_compat22+set}" = set; then | |
3026 | enableval="$enable_compat22" | |
3027 | ||
3028 | if test "$enableval" = yes; then | |
3029 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
3030 | else | |
3031 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
3032 | fi | |
3033 | ||
3034 | else | |
3035 | ||
3036 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` | |
3037 | if test "x$LINE" != x ; then | |
3038 | eval "DEFAULT_$LINE" | |
3039 | else | |
3040 | no_cache=1 | |
3041 | fi | |
3042 | ||
3043 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
3044 | ||
3045 | fi | |
3046 | ||
3047 | ||
3048 | eval "$ac_cv_use_compat22" | |
3049 | if test "$no_cache" != 1; then | |
3050 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
3051 | fi | |
3052 | ||
3053 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
3054 | echo "$ac_t""yes" 1>&6 | |
3055 | else | |
3056 | echo "$ac_t""no" 1>&6 | |
3057 | fi | |
3058 | ||
3059 | ||
3060 | ||
698dcdb6 VZ |
3061 | |
3062 | echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6 | |
9e691f46 | 3063 | echo "configure:3064: checking for --enable-intl" >&5 |
10f2d63a VZ |
3064 | no_cache=0 |
3065 | # Check whether --enable-intl or --disable-intl was given. | |
3066 | if test "${enable_intl+set}" = set; then | |
3067 | enableval="$enable_intl" | |
698dcdb6 | 3068 | |
10f2d63a VZ |
3069 | if test "$enableval" = yes; then |
3070 | ac_cv_use_intl='wxUSE_INTL=yes' | |
3071 | else | |
3072 | ac_cv_use_intl='wxUSE_INTL=no' | |
3073 | fi | |
698dcdb6 | 3074 | |
10f2d63a | 3075 | else |
698dcdb6 | 3076 | |
10f2d63a VZ |
3077 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` |
3078 | if test "x$LINE" != x ; then | |
3079 | eval "DEFAULT_$LINE" | |
3080 | else | |
3081 | no_cache=1 | |
3082 | fi | |
3083 | ||
3084 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
698dcdb6 VZ |
3085 | |
3086 | fi | |
10f2d63a VZ |
3087 | |
3088 | ||
3089 | eval "$ac_cv_use_intl" | |
3090 | if test "$no_cache" != 1; then | |
3091 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
3092 | fi | |
3093 | ||
3094 | if test "$wxUSE_INTL" = yes; then | |
698dcdb6 | 3095 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3096 | else |
698dcdb6 | 3097 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3098 | fi |
698dcdb6 | 3099 | |
10f2d63a | 3100 | |
698dcdb6 | 3101 | echo $ac_n "checking for --enable-config""... $ac_c" 1>&6 |
9e691f46 | 3102 | echo "configure:3103: checking for --enable-config" >&5 |
10f2d63a VZ |
3103 | no_cache=0 |
3104 | # Check whether --enable-config or --disable-config was given. | |
3105 | if test "${enable_config+set}" = set; then | |
3106 | enableval="$enable_config" | |
698dcdb6 | 3107 | |
10f2d63a VZ |
3108 | if test "$enableval" = yes; then |
3109 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
3110 | else | |
3111 | ac_cv_use_config='wxUSE_CONFIG=no' | |
3112 | fi | |
698dcdb6 | 3113 | |
10f2d63a | 3114 | else |
698dcdb6 | 3115 | |
10f2d63a VZ |
3116 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` |
3117 | if test "x$LINE" != x ; then | |
3118 | eval "DEFAULT_$LINE" | |
3119 | else | |
3120 | no_cache=1 | |
3121 | fi | |
3122 | ||
3123 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
698dcdb6 VZ |
3124 | |
3125 | fi | |
10f2d63a VZ |
3126 | |
3127 | ||
3128 | eval "$ac_cv_use_config" | |
3129 | if test "$no_cache" != 1; then | |
3130 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
3131 | fi | |
3132 | ||
3133 | if test "$wxUSE_CONFIG" = yes; then | |
698dcdb6 | 3134 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3135 | else |
698dcdb6 | 3136 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3137 | fi |
698dcdb6 VZ |
3138 | |
3139 | ||
b12915c1 | 3140 | |
a1622950 | 3141 | echo $ac_n "checking for --enable-protocols""... $ac_c" 1>&6 |
9e691f46 | 3142 | echo "configure:3143: checking for --enable-protocols" >&5 |
a1622950 VZ |
3143 | no_cache=0 |
3144 | # Check whether --enable-protocols or --disable-protocols was given. | |
3145 | if test "${enable_protocols+set}" = set; then | |
3146 | enableval="$enable_protocols" | |
3147 | ||
3148 | if test "$enableval" = yes; then | |
3149 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
3150 | else | |
3151 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
3152 | fi | |
3153 | ||
3154 | else | |
3155 | ||
3156 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
3157 | if test "x$LINE" != x ; then | |
3158 | eval "DEFAULT_$LINE" | |
3159 | else | |
3160 | no_cache=1 | |
3161 | fi | |
3162 | ||
3163 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
3164 | ||
3165 | fi | |
3166 | ||
3167 | ||
3168 | eval "$ac_cv_use_protocols" | |
3169 | if test "$no_cache" != 1; then | |
3170 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
3171 | fi | |
3172 | ||
3173 | if test "$wxUSE_PROTOCOL" = yes; then | |
3174 | echo "$ac_t""yes" 1>&6 | |
3175 | else | |
3176 | echo "$ac_t""no" 1>&6 | |
3177 | fi | |
3178 | ||
3179 | ||
3180 | echo $ac_n "checking for --enable-ftp""... $ac_c" 1>&6 | |
9e691f46 | 3181 | echo "configure:3182: checking for --enable-ftp" >&5 |
a1622950 VZ |
3182 | no_cache=0 |
3183 | # Check whether --enable-ftp or --disable-ftp was given. | |
3184 | if test "${enable_ftp+set}" = set; then | |
3185 | enableval="$enable_ftp" | |
3186 | ||
3187 | if test "$enableval" = yes; then | |
3188 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
3189 | else | |
3190 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
3191 | fi | |
3192 | ||
3193 | else | |
3194 | ||
3195 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
3196 | if test "x$LINE" != x ; then | |
3197 | eval "DEFAULT_$LINE" | |
3198 | else | |
3199 | no_cache=1 | |
3200 | fi | |
3201 | ||
3202 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
3203 | ||
3204 | fi | |
3205 | ||
3206 | ||
3207 | eval "$ac_cv_use_ftp" | |
3208 | if test "$no_cache" != 1; then | |
3209 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
3210 | fi | |
3211 | ||
3212 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
3213 | echo "$ac_t""yes" 1>&6 | |
3214 | else | |
3215 | echo "$ac_t""no" 1>&6 | |
3216 | fi | |
3217 | ||
3218 | ||
3219 | echo $ac_n "checking for --enable-http""... $ac_c" 1>&6 | |
9e691f46 | 3220 | echo "configure:3221: checking for --enable-http" >&5 |
a1622950 VZ |
3221 | no_cache=0 |
3222 | # Check whether --enable-http or --disable-http was given. | |
3223 | if test "${enable_http+set}" = set; then | |
3224 | enableval="$enable_http" | |
3225 | ||
3226 | if test "$enableval" = yes; then | |
3227 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
3228 | else | |
3229 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
3230 | fi | |
3231 | ||
3232 | else | |
3233 | ||
3234 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
3235 | if test "x$LINE" != x ; then | |
3236 | eval "DEFAULT_$LINE" | |
3237 | else | |
3238 | no_cache=1 | |
3239 | fi | |
3240 | ||
3241 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
3242 | ||
3243 | fi | |
3244 | ||
3245 | ||
3246 | eval "$ac_cv_use_http" | |
3247 | if test "$no_cache" != 1; then | |
3248 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
3249 | fi | |
3250 | ||
3251 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
3252 | echo "$ac_t""yes" 1>&6 | |
3253 | else | |
3254 | echo "$ac_t""no" 1>&6 | |
3255 | fi | |
3256 | ||
3257 | ||
3258 | echo $ac_n "checking for --enable-fileproto""... $ac_c" 1>&6 | |
9e691f46 | 3259 | echo "configure:3260: checking for --enable-fileproto" >&5 |
a1622950 VZ |
3260 | no_cache=0 |
3261 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
3262 | if test "${enable_fileproto+set}" = set; then | |
3263 | enableval="$enable_fileproto" | |
3264 | ||
3265 | if test "$enableval" = yes; then | |
3266 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
3267 | else | |
3268 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
3269 | fi | |
3270 | ||
3271 | else | |
3272 | ||
3273 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
3274 | if test "x$LINE" != x ; then | |
3275 | eval "DEFAULT_$LINE" | |
3276 | else | |
3277 | no_cache=1 | |
3278 | fi | |
3279 | ||
3280 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
3281 | ||
3282 | fi | |
3283 | ||
3284 | ||
3285 | eval "$ac_cv_use_fileproto" | |
3286 | if test "$no_cache" != 1; then | |
3287 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
3288 | fi | |
3289 | ||
3290 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
3291 | echo "$ac_t""yes" 1>&6 | |
3292 | else | |
3293 | echo "$ac_t""no" 1>&6 | |
3294 | fi | |
3295 | ||
3296 | ||
698dcdb6 | 3297 | echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6 |
9e691f46 | 3298 | echo "configure:3299: checking for --enable-sockets" >&5 |
10f2d63a VZ |
3299 | no_cache=0 |
3300 | # Check whether --enable-sockets or --disable-sockets was given. | |
3301 | if test "${enable_sockets+set}" = set; then | |
3302 | enableval="$enable_sockets" | |
698dcdb6 | 3303 | |
10f2d63a VZ |
3304 | if test "$enableval" = yes; then |
3305 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
3306 | else | |
3307 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
3308 | fi | |
698dcdb6 | 3309 | |
10f2d63a | 3310 | else |
698dcdb6 | 3311 | |
10f2d63a VZ |
3312 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` |
3313 | if test "x$LINE" != x ; then | |
3314 | eval "DEFAULT_$LINE" | |
3315 | else | |
3316 | no_cache=1 | |
3317 | fi | |
3318 | ||
3319 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
698dcdb6 VZ |
3320 | |
3321 | fi | |
10f2d63a VZ |
3322 | |
3323 | ||
3324 | eval "$ac_cv_use_sockets" | |
3325 | if test "$no_cache" != 1; then | |
3326 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
3327 | fi | |
3328 | ||
3329 | if test "$wxUSE_SOCKETS" = yes; then | |
698dcdb6 | 3330 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3331 | else |
698dcdb6 | 3332 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3333 | fi |
698dcdb6 | 3334 | |
b12915c1 | 3335 | |
698dcdb6 VZ |
3336 | |
3337 | echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6 | |
9e691f46 | 3338 | echo "configure:3339: checking for --enable-ipc" >&5 |
10f2d63a | 3339 | no_cache=0 |
eb4efbdc VZ |
3340 | # Check whether --enable-ipc or --disable-ipc was given. |
3341 | if test "${enable_ipc+set}" = set; then | |
3342 | enableval="$enable_ipc" | |
698dcdb6 | 3343 | |
10f2d63a | 3344 | if test "$enableval" = yes; then |
eb4efbdc | 3345 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 3346 | else |
eb4efbdc | 3347 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a | 3348 | fi |
698dcdb6 | 3349 | |
10f2d63a | 3350 | else |
698dcdb6 | 3351 | |
eb4efbdc | 3352 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
3353 | if test "x$LINE" != x ; then |
3354 | eval "DEFAULT_$LINE" | |
3355 | else | |
3356 | no_cache=1 | |
3357 | fi | |
3358 | ||
eb4efbdc | 3359 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
698dcdb6 VZ |
3360 | |
3361 | fi | |
10f2d63a VZ |
3362 | |
3363 | ||
eb4efbdc | 3364 | eval "$ac_cv_use_ipc" |
10f2d63a | 3365 | if test "$no_cache" != 1; then |
eb4efbdc | 3366 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3367 | fi |
3368 | ||
eb4efbdc | 3369 | if test "$wxUSE_IPC" = yes; then |
698dcdb6 | 3370 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3371 | else |
698dcdb6 | 3372 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3373 | fi |
698dcdb6 VZ |
3374 | |
3375 | ||
eb4efbdc | 3376 | |
1e6feb95 | 3377 | echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6 |
9e691f46 | 3378 | echo "configure:3379: checking for --enable-cmdline" >&5 |
1e6feb95 VZ |
3379 | no_cache=0 |
3380 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
3381 | if test "${enable_cmdline+set}" = set; then | |
3382 | enableval="$enable_cmdline" | |
3383 | ||
3384 | if test "$enableval" = yes; then | |
3385 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
3386 | else | |
3387 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
3388 | fi | |
3389 | ||
3390 | else | |
3391 | ||
3392 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
3393 | if test "x$LINE" != x ; then | |
3394 | eval "DEFAULT_$LINE" | |
3395 | else | |
3396 | no_cache=1 | |
3397 | fi | |
3398 | ||
3399 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
3400 | ||
3401 | fi | |
3402 | ||
3403 | ||
3404 | eval "$ac_cv_use_cmdline" | |
3405 | if test "$no_cache" != 1; then | |
3406 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
3407 | fi | |
3408 | ||
3409 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
3410 | echo "$ac_t""yes" 1>&6 | |
3411 | else | |
3412 | echo "$ac_t""no" 1>&6 | |
3413 | fi | |
3414 | ||
3415 | ||
3416 | echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6 | |
9e691f46 | 3417 | echo "configure:3418: checking for --enable-datetime" >&5 |
1e6feb95 VZ |
3418 | no_cache=0 |
3419 | # Check whether --enable-datetime or --disable-datetime was given. | |
3420 | if test "${enable_datetime+set}" = set; then | |
3421 | enableval="$enable_datetime" | |
3422 | ||
3423 | if test "$enableval" = yes; then | |
3424 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
3425 | else | |
3426 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
3427 | fi | |
3428 | ||
3429 | else | |
3430 | ||
3431 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
3432 | if test "x$LINE" != x ; then | |
3433 | eval "DEFAULT_$LINE" | |
3434 | else | |
3435 | no_cache=1 | |
3436 | fi | |
3437 | ||
3438 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
3439 | ||
3440 | fi | |
3441 | ||
3442 | ||
3443 | eval "$ac_cv_use_datetime" | |
3444 | if test "$no_cache" != 1; then | |
3445 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
3446 | fi | |
3447 | ||
3448 | if test "$wxUSE_DATETIME" = yes; then | |
3449 | echo "$ac_t""yes" 1>&6 | |
3450 | else | |
3451 | echo "$ac_t""no" 1>&6 | |
3452 | fi | |
3453 | ||
3454 | ||
3455 | echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6 | |
9e691f46 | 3456 | echo "configure:3457: checking for --enable-timedate" >&5 |
1e6feb95 VZ |
3457 | no_cache=0 |
3458 | # Check whether --enable-timedate or --disable-timedate was given. | |
3459 | if test "${enable_timedate+set}" = set; then | |
3460 | enableval="$enable_timedate" | |
3461 | ||
3462 | if test "$enableval" = yes; then | |
3463 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
3464 | else | |
3465 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
3466 | fi | |
3467 | ||
3468 | else | |
3469 | ||
3470 | LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}` | |
3471 | if test "x$LINE" != x ; then | |
3472 | eval "DEFAULT_$LINE" | |
3473 | else | |
3474 | no_cache=1 | |
3475 | fi | |
3476 | ||
3477 | ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
3478 | ||
3479 | fi | |
3480 | ||
3481 | ||
3482 | eval "$ac_cv_use_timedate" | |
3483 | if test "$no_cache" != 1; then | |
3484 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
3485 | fi | |
3486 | ||
3487 | if test "$wxUSE_TIMEDATE" = yes; then | |
3488 | echo "$ac_t""yes" 1>&6 | |
3489 | else | |
3490 | echo "$ac_t""no" 1>&6 | |
3491 | fi | |
3492 | ||
3493 | ||
3494 | echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6 | |
9e691f46 | 3495 | echo "configure:3496: checking for --enable-stopwatch" >&5 |
1e6feb95 VZ |
3496 | no_cache=0 |
3497 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
3498 | if test "${enable_stopwatch+set}" = set; then | |
3499 | enableval="$enable_stopwatch" | |
3500 | ||
3501 | if test "$enableval" = yes; then | |
3502 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
3503 | else | |
3504 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
3505 | fi | |
3506 | ||
3507 | else | |
3508 | ||
3509 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
3510 | if test "x$LINE" != x ; then | |
3511 | eval "DEFAULT_$LINE" | |
3512 | else | |
3513 | no_cache=1 | |
3514 | fi | |
3515 | ||
3516 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
3517 | ||
3518 | fi | |
3519 | ||
3520 | ||
3521 | eval "$ac_cv_use_stopwatch" | |
3522 | if test "$no_cache" != 1; then | |
3523 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
3524 | fi | |
3525 | ||
3526 | if test "$wxUSE_STOPWATCH" = yes; then | |
3527 | echo "$ac_t""yes" 1>&6 | |
3528 | else | |
3529 | echo "$ac_t""no" 1>&6 | |
3530 | fi | |
3531 | ||
3532 | ||
698dcdb6 | 3533 | echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6 |
9e691f46 | 3534 | echo "configure:3535: checking for --enable-dialupman" >&5 |
10f2d63a | 3535 | no_cache=0 |
eb4efbdc VZ |
3536 | # Check whether --enable-dialupman or --disable-dialupman was given. |
3537 | if test "${enable_dialupman+set}" = set; then | |
3538 | enableval="$enable_dialupman" | |
698dcdb6 | 3539 | |
10f2d63a | 3540 | if test "$enableval" = yes; then |
eb4efbdc | 3541 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 3542 | else |
eb4efbdc | 3543 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a | 3544 | fi |
698dcdb6 | 3545 | |
10f2d63a | 3546 | else |
698dcdb6 | 3547 | |
eb4efbdc | 3548 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3549 | if test "x$LINE" != x ; then |
3550 | eval "DEFAULT_$LINE" | |
3551 | else | |
3552 | no_cache=1 | |
3553 | fi | |
3554 | ||
eb4efbdc | 3555 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
698dcdb6 VZ |
3556 | |
3557 | fi | |
10f2d63a VZ |
3558 | |
3559 | ||
eb4efbdc | 3560 | eval "$ac_cv_use_dialupman" |
10f2d63a | 3561 | if test "$no_cache" != 1; then |
eb4efbdc | 3562 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3563 | fi |
3564 | ||
eb4efbdc | 3565 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
698dcdb6 | 3566 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3567 | else |
698dcdb6 | 3568 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3569 | fi |
698dcdb6 | 3570 | |
10f2d63a | 3571 | |
698dcdb6 | 3572 | echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6 |
9e691f46 | 3573 | echo "configure:3574: checking for --enable-apple_ieee" >&5 |
10f2d63a VZ |
3574 | no_cache=0 |
3575 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
3576 | if test "${enable_apple_ieee+set}" = set; then | |
3577 | enableval="$enable_apple_ieee" | |
698dcdb6 | 3578 | |
10f2d63a VZ |
3579 | if test "$enableval" = yes; then |
3580 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
3581 | else | |
3582 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
3583 | fi | |
698dcdb6 | 3584 | |
10f2d63a | 3585 | else |
698dcdb6 | 3586 | |
10f2d63a VZ |
3587 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` |
3588 | if test "x$LINE" != x ; then | |
3589 | eval "DEFAULT_$LINE" | |
3590 | else | |
3591 | no_cache=1 | |
3592 | fi | |
3593 | ||
3594 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
698dcdb6 VZ |
3595 | |
3596 | fi | |
10f2d63a VZ |
3597 | |
3598 | ||
3599 | eval "$ac_cv_use_apple_ieee" | |
3600 | if test "$no_cache" != 1; then | |
3601 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
3602 | fi | |
3603 | ||
3604 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
698dcdb6 | 3605 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3606 | else |
698dcdb6 | 3607 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3608 | fi |
698dcdb6 | 3609 | |
10f2d63a | 3610 | |
1e6feb95 | 3611 | echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6 |
9e691f46 | 3612 | echo "configure:3613: checking for --enable-timer" >&5 |
10f2d63a | 3613 | no_cache=0 |
1e6feb95 VZ |
3614 | # Check whether --enable-timer or --disable-timer was given. |
3615 | if test "${enable_timer+set}" = set; then | |
3616 | enableval="$enable_timer" | |
698dcdb6 | 3617 | |
10f2d63a | 3618 | if test "$enableval" = yes; then |
1e6feb95 | 3619 | ac_cv_use_timer='wxUSE_TIMER=yes' |
10f2d63a | 3620 | else |
1e6feb95 | 3621 | ac_cv_use_timer='wxUSE_TIMER=no' |
10f2d63a | 3622 | fi |
698dcdb6 | 3623 | |
10f2d63a | 3624 | else |
698dcdb6 | 3625 | |
1e6feb95 | 3626 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3627 | if test "x$LINE" != x ; then |
3628 | eval "DEFAULT_$LINE" | |
3629 | else | |
3630 | no_cache=1 | |
3631 | fi | |
3632 | ||
1e6feb95 | 3633 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER |
698dcdb6 VZ |
3634 | |
3635 | fi | |
10f2d63a VZ |
3636 | |
3637 | ||
1e6feb95 | 3638 | eval "$ac_cv_use_timer" |
10f2d63a | 3639 | if test "$no_cache" != 1; then |
1e6feb95 | 3640 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3641 | fi |
3642 | ||
1e6feb95 | 3643 | if test "$wxUSE_TIMER" = yes; then |
698dcdb6 | 3644 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3645 | else |
698dcdb6 | 3646 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3647 | fi |
698dcdb6 | 3648 | |
10f2d63a | 3649 | |
698dcdb6 | 3650 | echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6 |
9e691f46 | 3651 | echo "configure:3652: checking for --enable-wave" >&5 |
10f2d63a VZ |
3652 | no_cache=0 |
3653 | # Check whether --enable-wave or --disable-wave was given. | |
3654 | if test "${enable_wave+set}" = set; then | |
3655 | enableval="$enable_wave" | |
698dcdb6 | 3656 | |
10f2d63a VZ |
3657 | if test "$enableval" = yes; then |
3658 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
3659 | else | |
3660 | ac_cv_use_wave='wxUSE_WAVE=no' | |
3661 | fi | |
698dcdb6 | 3662 | |
10f2d63a | 3663 | else |
698dcdb6 | 3664 | |
10f2d63a VZ |
3665 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` |
3666 | if test "x$LINE" != x ; then | |
3667 | eval "DEFAULT_$LINE" | |
3668 | else | |
3669 | no_cache=1 | |
3670 | fi | |
3671 | ||
3672 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
698dcdb6 VZ |
3673 | |
3674 | fi | |
10f2d63a VZ |
3675 | |
3676 | ||
3677 | eval "$ac_cv_use_wave" | |
3678 | if test "$no_cache" != 1; then | |
3679 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
3680 | fi | |
3681 | ||
3682 | if test "$wxUSE_WAVE" = yes; then | |
698dcdb6 | 3683 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3684 | else |
698dcdb6 | 3685 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3686 | fi |
698dcdb6 | 3687 | |
10f2d63a | 3688 | |
698dcdb6 | 3689 | echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6 |
9e691f46 | 3690 | echo "configure:3691: checking for --enable-fraction" >&5 |
10f2d63a VZ |
3691 | no_cache=0 |
3692 | # Check whether --enable-fraction or --disable-fraction was given. | |
3693 | if test "${enable_fraction+set}" = set; then | |
3694 | enableval="$enable_fraction" | |
698dcdb6 | 3695 | |
10f2d63a VZ |
3696 | if test "$enableval" = yes; then |
3697 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
3698 | else | |
3699 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
3700 | fi | |
698dcdb6 | 3701 | |
10f2d63a | 3702 | else |
698dcdb6 | 3703 | |
10f2d63a VZ |
3704 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` |
3705 | if test "x$LINE" != x ; then | |
3706 | eval "DEFAULT_$LINE" | |
3707 | else | |
3708 | no_cache=1 | |
3709 | fi | |
3710 | ||
3711 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
698dcdb6 VZ |
3712 | |
3713 | fi | |
10f2d63a VZ |
3714 | |
3715 | ||
3716 | eval "$ac_cv_use_fraction" | |
3717 | if test "$no_cache" != 1; then | |
3718 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
3719 | fi | |
3720 | ||
3721 | if test "$wxUSE_FRACTION" = yes; then | |
698dcdb6 | 3722 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3723 | else |
698dcdb6 | 3724 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3725 | fi |
698dcdb6 | 3726 | |
10f2d63a | 3727 | |
698dcdb6 | 3728 | echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6 |
9e691f46 | 3729 | echo "configure:3730: checking for --enable-dynlib" >&5 |
10f2d63a VZ |
3730 | no_cache=0 |
3731 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
3732 | if test "${enable_dynlib+set}" = set; then | |
3733 | enableval="$enable_dynlib" | |
698dcdb6 | 3734 | |
10f2d63a VZ |
3735 | if test "$enableval" = yes; then |
3736 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
3737 | else | |
3738 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
3739 | fi | |
698dcdb6 | 3740 | |
10f2d63a | 3741 | else |
698dcdb6 | 3742 | |
10f2d63a VZ |
3743 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` |
3744 | if test "x$LINE" != x ; then | |
3745 | eval "DEFAULT_$LINE" | |
3746 | else | |
3747 | no_cache=1 | |
3748 | fi | |
3749 | ||
3750 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
698dcdb6 VZ |
3751 | |
3752 | fi | |
10f2d63a VZ |
3753 | |
3754 | ||
3755 | eval "$ac_cv_use_dynlib" | |
3756 | if test "$no_cache" != 1; then | |
3757 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
3758 | fi | |
3759 | ||
3760 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
698dcdb6 | 3761 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3762 | else |
698dcdb6 | 3763 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3764 | fi |
698dcdb6 | 3765 | |
10f2d63a | 3766 | |
0b9ab0bd | 3767 | echo $ac_n "checking for --enable-dynamicloader""... $ac_c" 1>&6 |
9e691f46 | 3768 | echo "configure:3769: checking for --enable-dynamicloader" >&5 |
0b9ab0bd RL |
3769 | no_cache=0 |
3770 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
3771 | if test "${enable_dynamicloader+set}" = set; then | |
3772 | enableval="$enable_dynamicloader" | |
3773 | ||
3774 | if test "$enableval" = yes; then | |
3775 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
3776 | else | |
3777 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
3778 | fi | |
3779 | ||
3780 | else | |
3781 | ||
3782 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` | |
3783 | if test "x$LINE" != x ; then | |
3784 | eval "DEFAULT_$LINE" | |
3785 | else | |
3786 | no_cache=1 | |
3787 | fi | |
3788 | ||
3789 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
3790 | ||
3791 | fi | |
3792 | ||
3793 | ||
3794 | eval "$ac_cv_use_dynamicloader" | |
3795 | if test "$no_cache" != 1; then | |
3796 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
3797 | fi | |
3798 | ||
3799 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
3800 | echo "$ac_t""yes" 1>&6 | |
3801 | else | |
3802 | echo "$ac_t""no" 1>&6 | |
3803 | fi | |
3804 | ||
3805 | ||
698dcdb6 | 3806 | echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6 |
9e691f46 | 3807 | echo "configure:3808: checking for --enable-longlong" >&5 |
10f2d63a VZ |
3808 | no_cache=0 |
3809 | # Check whether --enable-longlong or --disable-longlong was given. | |
3810 | if test "${enable_longlong+set}" = set; then | |
3811 | enableval="$enable_longlong" | |
698dcdb6 | 3812 | |
10f2d63a VZ |
3813 | if test "$enableval" = yes; then |
3814 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
3815 | else | |
3816 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
3817 | fi | |
698dcdb6 | 3818 | |
10f2d63a | 3819 | else |
698dcdb6 | 3820 | |
10f2d63a VZ |
3821 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` |
3822 | if test "x$LINE" != x ; then | |
3823 | eval "DEFAULT_$LINE" | |
3824 | else | |
3825 | no_cache=1 | |
3826 | fi | |
3827 | ||
3828 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
698dcdb6 VZ |
3829 | |
3830 | fi | |
10f2d63a VZ |
3831 | |
3832 | ||
3833 | eval "$ac_cv_use_longlong" | |
3834 | if test "$no_cache" != 1; then | |
3835 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
3836 | fi | |
3837 | ||
3838 | if test "$wxUSE_LONGLONG" = yes; then | |
698dcdb6 | 3839 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3840 | else |
698dcdb6 | 3841 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3842 | fi |
698dcdb6 | 3843 | |
10f2d63a | 3844 | |
698dcdb6 | 3845 | echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6 |
9e691f46 | 3846 | echo "configure:3847: checking for --enable-geometry" >&5 |
e8f65ba6 RR |
3847 | no_cache=0 |
3848 | # Check whether --enable-geometry or --disable-geometry was given. | |
3849 | if test "${enable_geometry+set}" = set; then | |
3850 | enableval="$enable_geometry" | |
698dcdb6 | 3851 | |
e8f65ba6 RR |
3852 | if test "$enableval" = yes; then |
3853 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
3854 | else | |
3855 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
3856 | fi | |
698dcdb6 | 3857 | |
e8f65ba6 | 3858 | else |
698dcdb6 | 3859 | |
e8f65ba6 RR |
3860 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` |
3861 | if test "x$LINE" != x ; then | |
3862 | eval "DEFAULT_$LINE" | |
3863 | else | |
3864 | no_cache=1 | |
3865 | fi | |
3866 | ||
3867 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
698dcdb6 VZ |
3868 | |
3869 | fi | |
e8f65ba6 RR |
3870 | |
3871 | ||
3872 | eval "$ac_cv_use_geometry" | |
3873 | if test "$no_cache" != 1; then | |
3874 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
3875 | fi | |
3876 | ||
3877 | if test "$wxUSE_GEOMETRY" = yes; then | |
698dcdb6 | 3878 | echo "$ac_t""yes" 1>&6 |
e8f65ba6 | 3879 | else |
698dcdb6 | 3880 | echo "$ac_t""no" 1>&6 |
e8f65ba6 | 3881 | fi |
698dcdb6 | 3882 | |
e8f65ba6 | 3883 | |
698dcdb6 | 3884 | echo $ac_n "checking for --enable-log""... $ac_c" 1>&6 |
9e691f46 | 3885 | echo "configure:3886: checking for --enable-log" >&5 |
10f2d63a VZ |
3886 | no_cache=0 |
3887 | # Check whether --enable-log or --disable-log was given. | |
3888 | if test "${enable_log+set}" = set; then | |
3889 | enableval="$enable_log" | |
698dcdb6 | 3890 | |
10f2d63a VZ |
3891 | if test "$enableval" = yes; then |
3892 | ac_cv_use_log='wxUSE_LOG=yes' | |
3893 | else | |
3894 | ac_cv_use_log='wxUSE_LOG=no' | |
3895 | fi | |
698dcdb6 | 3896 | |
10f2d63a | 3897 | else |
698dcdb6 | 3898 | |
10f2d63a VZ |
3899 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` |
3900 | if test "x$LINE" != x ; then | |
3901 | eval "DEFAULT_$LINE" | |
3902 | else | |
3903 | no_cache=1 | |
3904 | fi | |
3905 | ||
3906 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
698dcdb6 VZ |
3907 | |
3908 | fi | |
10f2d63a VZ |
3909 | |
3910 | ||
3911 | eval "$ac_cv_use_log" | |
3912 | if test "$no_cache" != 1; then | |
3913 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
3914 | fi | |
3915 | ||
3916 | if test "$wxUSE_LOG" = yes; then | |
698dcdb6 | 3917 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3918 | else |
698dcdb6 | 3919 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3920 | fi |
698dcdb6 | 3921 | |
10f2d63a | 3922 | |
698dcdb6 | 3923 | echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6 |
9e691f46 | 3924 | echo "configure:3925: checking for --enable-streams" >&5 |
10f2d63a VZ |
3925 | no_cache=0 |
3926 | # Check whether --enable-streams or --disable-streams was given. | |
3927 | if test "${enable_streams+set}" = set; then | |
3928 | enableval="$enable_streams" | |
698dcdb6 | 3929 | |
10f2d63a VZ |
3930 | if test "$enableval" = yes; then |
3931 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
3932 | else | |
3933 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
3934 | fi | |
698dcdb6 | 3935 | |
10f2d63a | 3936 | else |
698dcdb6 | 3937 | |
10f2d63a VZ |
3938 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` |
3939 | if test "x$LINE" != x ; then | |
3940 | eval "DEFAULT_$LINE" | |
3941 | else | |
3942 | no_cache=1 | |
3943 | fi | |
3944 | ||
3945 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
698dcdb6 VZ |
3946 | |
3947 | fi | |
10f2d63a VZ |
3948 | |
3949 | ||
3950 | eval "$ac_cv_use_streams" | |
3951 | if test "$no_cache" != 1; then | |
3952 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
3953 | fi | |
3954 | ||
3955 | if test "$wxUSE_STREAMS" = yes; then | |
698dcdb6 | 3956 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3957 | else |
698dcdb6 | 3958 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3959 | fi |
698dcdb6 | 3960 | |
10f2d63a | 3961 | |
698dcdb6 | 3962 | echo $ac_n "checking for --enable-file""... $ac_c" 1>&6 |
9e691f46 | 3963 | echo "configure:3964: checking for --enable-file" >&5 |
10f2d63a VZ |
3964 | no_cache=0 |
3965 | # Check whether --enable-file or --disable-file was given. | |
3966 | if test "${enable_file+set}" = set; then | |
3967 | enableval="$enable_file" | |
698dcdb6 | 3968 | |
10f2d63a VZ |
3969 | if test "$enableval" = yes; then |
3970 | ac_cv_use_file='wxUSE_FILE=yes' | |
3971 | else | |
3972 | ac_cv_use_file='wxUSE_FILE=no' | |
3973 | fi | |
698dcdb6 | 3974 | |
10f2d63a | 3975 | else |
698dcdb6 | 3976 | |
10f2d63a VZ |
3977 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` |
3978 | if test "x$LINE" != x ; then | |
3979 | eval "DEFAULT_$LINE" | |
3980 | else | |
3981 | no_cache=1 | |
3982 | fi | |
3983 | ||
3984 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
698dcdb6 VZ |
3985 | |
3986 | fi | |
10f2d63a VZ |
3987 | |
3988 | ||
3989 | eval "$ac_cv_use_file" | |
3990 | if test "$no_cache" != 1; then | |
3991 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
3992 | fi | |
3993 | ||
3994 | if test "$wxUSE_FILE" = yes; then | |
698dcdb6 | 3995 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3996 | else |
698dcdb6 | 3997 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3998 | fi |
698dcdb6 | 3999 | |
10f2d63a | 4000 | |
1e6feb95 | 4001 | echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6 |
9e691f46 | 4002 | echo "configure:4003: checking for --enable-ffile" >&5 |
10f2d63a | 4003 | no_cache=0 |
1e6feb95 VZ |
4004 | # Check whether --enable-ffile or --disable-ffile was given. |
4005 | if test "${enable_ffile+set}" = set; then | |
4006 | enableval="$enable_ffile" | |
698dcdb6 | 4007 | |
10f2d63a | 4008 | if test "$enableval" = yes; then |
1e6feb95 | 4009 | ac_cv_use_ffile='wxUSE_FFILE=yes' |
10f2d63a | 4010 | else |
1e6feb95 | 4011 | ac_cv_use_ffile='wxUSE_FFILE=no' |
10f2d63a | 4012 | fi |
698dcdb6 | 4013 | |
10f2d63a | 4014 | else |
698dcdb6 | 4015 | |
1e6feb95 | 4016 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4017 | if test "x$LINE" != x ; then |
4018 | eval "DEFAULT_$LINE" | |
4019 | else | |
4020 | no_cache=1 | |
4021 | fi | |
4022 | ||
1e6feb95 | 4023 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE |
698dcdb6 VZ |
4024 | |
4025 | fi | |
10f2d63a VZ |
4026 | |
4027 | ||
1e6feb95 | 4028 | eval "$ac_cv_use_ffile" |
10f2d63a | 4029 | if test "$no_cache" != 1; then |
1e6feb95 | 4030 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4031 | fi |
4032 | ||
1e6feb95 | 4033 | if test "$wxUSE_FFILE" = yes; then |
698dcdb6 | 4034 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4035 | else |
698dcdb6 | 4036 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4037 | fi |
698dcdb6 | 4038 | |
10f2d63a | 4039 | |
a3a584a7 | 4040 | echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6 |
9e691f46 | 4041 | echo "configure:4042: checking for --enable-textbuf" >&5 |
a3a584a7 VZ |
4042 | no_cache=0 |
4043 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
4044 | if test "${enable_textbuf+set}" = set; then | |
4045 | enableval="$enable_textbuf" | |
4046 | ||
4047 | if test "$enableval" = yes; then | |
4048 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
4049 | else | |
4050 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
4051 | fi | |
4052 | ||
4053 | else | |
4054 | ||
4055 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` | |
4056 | if test "x$LINE" != x ; then | |
4057 | eval "DEFAULT_$LINE" | |
4058 | else | |
4059 | no_cache=1 | |
4060 | fi | |
4061 | ||
4062 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
4063 | ||
4064 | fi | |
4065 | ||
4066 | ||
4067 | eval "$ac_cv_use_textbuf" | |
4068 | if test "$no_cache" != 1; then | |
4069 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
4070 | fi | |
4071 | ||
4072 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
4073 | echo "$ac_t""yes" 1>&6 | |
4074 | else | |
4075 | echo "$ac_t""no" 1>&6 | |
4076 | fi | |
4077 | ||
4078 | ||
1e6feb95 | 4079 | echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6 |
9e691f46 | 4080 | echo "configure:4081: checking for --enable-textfile" >&5 |
10f2d63a | 4081 | no_cache=0 |
1e6feb95 VZ |
4082 | # Check whether --enable-textfile or --disable-textfile was given. |
4083 | if test "${enable_textfile+set}" = set; then | |
4084 | enableval="$enable_textfile" | |
698dcdb6 | 4085 | |
10f2d63a | 4086 | if test "$enableval" = yes; then |
1e6feb95 | 4087 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' |
10f2d63a | 4088 | else |
1e6feb95 | 4089 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' |
10f2d63a | 4090 | fi |
698dcdb6 | 4091 | |
10f2d63a | 4092 | else |
698dcdb6 | 4093 | |
1e6feb95 | 4094 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4095 | if test "x$LINE" != x ; then |
4096 | eval "DEFAULT_$LINE" | |
4097 | else | |
4098 | no_cache=1 | |
4099 | fi | |
4100 | ||
1e6feb95 | 4101 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE |
698dcdb6 VZ |
4102 | |
4103 | fi | |
10f2d63a VZ |
4104 | |
4105 | ||
1e6feb95 | 4106 | eval "$ac_cv_use_textfile" |
10f2d63a | 4107 | if test "$no_cache" != 1; then |
1e6feb95 | 4108 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4109 | fi |
4110 | ||
1e6feb95 | 4111 | if test "$wxUSE_TEXTFILE" = yes; then |
698dcdb6 | 4112 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4113 | else |
698dcdb6 | 4114 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4115 | fi |
698dcdb6 | 4116 | |
10f2d63a | 4117 | |
1e6feb95 | 4118 | echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6 |
9e691f46 | 4119 | echo "configure:4120: checking for --enable-fontmap" >&5 |
10f2d63a | 4120 | no_cache=0 |
1e6feb95 VZ |
4121 | # Check whether --enable-fontmap or --disable-fontmap was given. |
4122 | if test "${enable_fontmap+set}" = set; then | |
4123 | enableval="$enable_fontmap" | |
698dcdb6 | 4124 | |
10f2d63a | 4125 | if test "$enableval" = yes; then |
1e6feb95 | 4126 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' |
10f2d63a | 4127 | else |
1e6feb95 | 4128 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' |
10f2d63a | 4129 | fi |
698dcdb6 | 4130 | |
10f2d63a | 4131 | else |
698dcdb6 | 4132 | |
1e6feb95 | 4133 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` |
10f2d63a VZ |
4134 | if test "x$LINE" != x ; then |
4135 | eval "DEFAULT_$LINE" | |
4136 | else | |
4137 | no_cache=1 | |
4138 | fi | |
4139 | ||
1e6feb95 | 4140 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP |
698dcdb6 VZ |
4141 | |
4142 | fi | |
10f2d63a VZ |
4143 | |
4144 | ||
1e6feb95 | 4145 | eval "$ac_cv_use_fontmap" |
10f2d63a | 4146 | if test "$no_cache" != 1; then |
1e6feb95 | 4147 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4148 | fi |
4149 | ||
1e6feb95 | 4150 | if test "$wxUSE_FONTMAP" = yes; then |
698dcdb6 | 4151 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4152 | else |
698dcdb6 | 4153 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4154 | fi |
698dcdb6 | 4155 | |
10f2d63a | 4156 | |
1e6feb95 | 4157 | echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6 |
9e691f46 | 4158 | echo "configure:4159: checking for --enable-unicode" >&5 |
10f2d63a | 4159 | no_cache=0 |
1e6feb95 VZ |
4160 | # Check whether --enable-unicode or --disable-unicode was given. |
4161 | if test "${enable_unicode+set}" = set; then | |
4162 | enableval="$enable_unicode" | |
4163 | ||
4164 | if test "$enableval" = yes; then | |
4165 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
4166 | else | |
4167 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
4168 | fi | |
4169 | ||
4170 | else | |
4171 | ||
4172 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
4173 | if test "x$LINE" != x ; then | |
4174 | eval "DEFAULT_$LINE" | |
4175 | else | |
4176 | no_cache=1 | |
4177 | fi | |
4178 | ||
4179 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
4180 | ||
4181 | fi | |
4182 | ||
4183 | ||
4184 | eval "$ac_cv_use_unicode" | |
4185 | if test "$no_cache" != 1; then | |
4186 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
4187 | fi | |
4188 | ||
4189 | if test "$wxUSE_UNICODE" = yes; then | |
4190 | echo "$ac_t""yes" 1>&6 | |
4191 | else | |
4192 | echo "$ac_t""no" 1>&6 | |
4193 | fi | |
4194 | ||
4195 | ||
a72a4bfa | 4196 | echo $ac_n "checking for --enable-mslu""... $ac_c" 1>&6 |
9e691f46 | 4197 | echo "configure:4198: checking for --enable-mslu" >&5 |
a72a4bfa VS |
4198 | no_cache=0 |
4199 | # Check whether --enable-mslu or --disable-mslu was given. | |
4200 | if test "${enable_mslu+set}" = set; then | |
4201 | enableval="$enable_mslu" | |
4202 | ||
4203 | if test "$enableval" = yes; then | |
4204 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
4205 | else | |
4206 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
4207 | fi | |
4208 | ||
4209 | else | |
4210 | ||
4211 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` | |
4212 | if test "x$LINE" != x ; then | |
4213 | eval "DEFAULT_$LINE" | |
4214 | else | |
4215 | no_cache=1 | |
4216 | fi | |
4217 | ||
4218 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
4219 | ||
4220 | fi | |
4221 | ||
4222 | ||
4223 | eval "$ac_cv_use_mslu" | |
4224 | if test "$no_cache" != 1; then | |
4225 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
4226 | fi | |
4227 | ||
4228 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
4229 | echo "$ac_t""yes" 1>&6 | |
4230 | else | |
4231 | echo "$ac_t""no" 1>&6 | |
4232 | fi | |
4233 | ||
4234 | ||
1e6feb95 | 4235 | echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6 |
9e691f46 | 4236 | echo "configure:4237: checking for --enable-wxprintfv" >&5 |
1e6feb95 VZ |
4237 | no_cache=0 |
4238 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
4239 | if test "${enable_wxprintfv+set}" = set; then | |
4240 | enableval="$enable_wxprintfv" | |
4241 | ||
4242 | if test "$enableval" = yes; then | |
10f2d63a VZ |
4243 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' |
4244 | else | |
4245 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
4246 | fi | |
698dcdb6 | 4247 | |
10f2d63a | 4248 | else |
698dcdb6 | 4249 | |
10f2d63a VZ |
4250 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` |
4251 | if test "x$LINE" != x ; then | |
4252 | eval "DEFAULT_$LINE" | |
4253 | else | |
4254 | no_cache=1 | |
4255 | fi | |
4256 | ||
4257 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
698dcdb6 VZ |
4258 | |
4259 | fi | |
10f2d63a VZ |
4260 | |
4261 | ||
4262 | eval "$ac_cv_use_wxprintfv" | |
4263 | if test "$no_cache" != 1; then | |
4264 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
4265 | fi | |
4266 | ||
4267 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
698dcdb6 | 4268 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4269 | else |
698dcdb6 | 4270 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4271 | fi |
698dcdb6 | 4272 | |
10f2d63a | 4273 | |
698dcdb6 | 4274 | echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6 |
9e691f46 | 4275 | echo "configure:4276: checking for --enable-std_iostreams" >&5 |
10f2d63a VZ |
4276 | no_cache=0 |
4277 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
4278 | if test "${enable_std_iostreams+set}" = set; then | |
4279 | enableval="$enable_std_iostreams" | |
698dcdb6 | 4280 | |
10f2d63a VZ |
4281 | if test "$enableval" = yes; then |
4282 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
4283 | else | |
4284 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
4285 | fi | |
698dcdb6 | 4286 | |
10f2d63a | 4287 | else |
698dcdb6 | 4288 | |
10f2d63a VZ |
4289 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
4290 | if test "x$LINE" != x ; then | |
4291 | eval "DEFAULT_$LINE" | |
4292 | else | |
4293 | no_cache=1 | |
4294 | fi | |
4295 | ||
4296 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
698dcdb6 VZ |
4297 | |
4298 | fi | |
10f2d63a VZ |
4299 | |
4300 | ||
4301 | eval "$ac_cv_use_std_iostreams" | |
4302 | if test "$no_cache" != 1; then | |
4303 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
4304 | fi | |
4305 | ||
4306 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
698dcdb6 | 4307 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4308 | else |
698dcdb6 | 4309 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4310 | fi |
698dcdb6 | 4311 | |
10f2d63a | 4312 | |
698dcdb6 | 4313 | echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6 |
9e691f46 | 4314 | echo "configure:4315: checking for --enable-filesystem" >&5 |
24528b0c VS |
4315 | no_cache=0 |
4316 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
4317 | if test "${enable_filesystem+set}" = set; then | |
4318 | enableval="$enable_filesystem" | |
698dcdb6 | 4319 | |
24528b0c VS |
4320 | if test "$enableval" = yes; then |
4321 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
4322 | else | |
4323 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
4324 | fi | |
698dcdb6 | 4325 | |
24528b0c | 4326 | else |
698dcdb6 | 4327 | |
24528b0c VS |
4328 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` |
4329 | if test "x$LINE" != x ; then | |
4330 | eval "DEFAULT_$LINE" | |
4331 | else | |
4332 | no_cache=1 | |
4333 | fi | |
4334 | ||
4335 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
698dcdb6 VZ |
4336 | |
4337 | fi | |
24528b0c VS |
4338 | |
4339 | ||
4340 | eval "$ac_cv_use_filesystem" | |
4341 | if test "$no_cache" != 1; then | |
4342 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
4343 | fi | |
4344 | ||
4345 | if test "$wxUSE_FILESYSTEM" = yes; then | |
698dcdb6 | 4346 | echo "$ac_t""yes" 1>&6 |
24528b0c | 4347 | else |
698dcdb6 | 4348 | echo "$ac_t""no" 1>&6 |
24528b0c | 4349 | fi |
698dcdb6 | 4350 | |
24528b0c | 4351 | |
698dcdb6 | 4352 | echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6 |
9e691f46 | 4353 | echo "configure:4354: checking for --enable-fs_inet" >&5 |
10f2d63a VZ |
4354 | no_cache=0 |
4355 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
4356 | if test "${enable_fs_inet+set}" = set; then | |
4357 | enableval="$enable_fs_inet" | |
698dcdb6 | 4358 | |
10f2d63a VZ |
4359 | if test "$enableval" = yes; then |
4360 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
4361 | else | |
4362 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
4363 | fi | |
698dcdb6 | 4364 | |
10f2d63a | 4365 | else |
698dcdb6 | 4366 | |
10f2d63a VZ |
4367 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` |
4368 | if test "x$LINE" != x ; then | |
4369 | eval "DEFAULT_$LINE" | |
4370 | else | |
4371 | no_cache=1 | |
4372 | fi | |
4373 | ||
4374 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
698dcdb6 VZ |
4375 | |
4376 | fi | |
10f2d63a VZ |
4377 | |
4378 | ||
4379 | eval "$ac_cv_use_fs_inet" | |
4380 | if test "$no_cache" != 1; then | |
4381 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
4382 | fi | |
4383 | ||
4384 | if test "$wxUSE_FS_INET" = yes; then | |
698dcdb6 | 4385 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4386 | else |
698dcdb6 | 4387 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4388 | fi |
698dcdb6 | 4389 | |
10f2d63a | 4390 | |
698dcdb6 | 4391 | echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6 |
9e691f46 | 4392 | echo "configure:4393: checking for --enable-fs_zip" >&5 |
10f2d63a VZ |
4393 | no_cache=0 |
4394 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
4395 | if test "${enable_fs_zip+set}" = set; then | |
4396 | enableval="$enable_fs_zip" | |
698dcdb6 | 4397 | |
10f2d63a VZ |
4398 | if test "$enableval" = yes; then |
4399 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
4400 | else | |
4401 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
4402 | fi | |
698dcdb6 | 4403 | |
10f2d63a | 4404 | else |
698dcdb6 | 4405 | |
10f2d63a VZ |
4406 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` |
4407 | if test "x$LINE" != x ; then | |
4408 | eval "DEFAULT_$LINE" | |
4409 | else | |
4410 | no_cache=1 | |
4411 | fi | |
4412 | ||
4413 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
698dcdb6 VZ |
4414 | |
4415 | fi | |
10f2d63a VZ |
4416 | |
4417 | ||
4418 | eval "$ac_cv_use_fs_zip" | |
4419 | if test "$no_cache" != 1; then | |
4420 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
4421 | fi | |
4422 | ||
4423 | if test "$wxUSE_FS_ZIP" = yes; then | |
698dcdb6 | 4424 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4425 | else |
698dcdb6 | 4426 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4427 | fi |
698dcdb6 | 4428 | |
10f2d63a | 4429 | |
698dcdb6 | 4430 | echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6 |
9e691f46 | 4431 | echo "configure:4432: checking for --enable-zipstream" >&5 |
10f2d63a VZ |
4432 | no_cache=0 |
4433 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
4434 | if test "${enable_zipstream+set}" = set; then | |
4435 | enableval="$enable_zipstream" | |
698dcdb6 | 4436 | |
10f2d63a VZ |
4437 | if test "$enableval" = yes; then |
4438 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
4439 | else | |
4440 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
4441 | fi | |
698dcdb6 | 4442 | |
10f2d63a | 4443 | else |
698dcdb6 | 4444 | |
10f2d63a VZ |
4445 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` |
4446 | if test "x$LINE" != x ; then | |
4447 | eval "DEFAULT_$LINE" | |
4448 | else | |
4449 | no_cache=1 | |
4450 | fi | |
4451 | ||
4452 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
698dcdb6 VZ |
4453 | |
4454 | fi | |
10f2d63a VZ |
4455 | |
4456 | ||
4457 | eval "$ac_cv_use_zipstream" | |
4458 | if test "$no_cache" != 1; then | |
4459 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
4460 | fi | |
4461 | ||
4462 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
698dcdb6 | 4463 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4464 | else |
698dcdb6 | 4465 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4466 | fi |
698dcdb6 | 4467 | |
10f2d63a | 4468 | |
698dcdb6 VZ |
4469 | |
4470 | echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6 | |
9e691f46 | 4471 | echo "configure:4472: checking for --enable-catch_segvs" >&5 |
eb4efbdc VZ |
4472 | no_cache=0 |
4473 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
4474 | if test "${enable_catch_segvs+set}" = set; then | |
4475 | enableval="$enable_catch_segvs" | |
698dcdb6 | 4476 | |
eb4efbdc VZ |
4477 | if test "$enableval" = yes; then |
4478 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
4479 | else | |
4480 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
4481 | fi | |
698dcdb6 | 4482 | |
eb4efbdc | 4483 | else |
698dcdb6 | 4484 | |
eb4efbdc VZ |
4485 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
4486 | if test "x$LINE" != x ; then | |
4487 | eval "DEFAULT_$LINE" | |
4488 | else | |
4489 | no_cache=1 | |
4490 | fi | |
4491 | ||
4492 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
698dcdb6 VZ |
4493 | |
4494 | fi | |
eb4efbdc VZ |
4495 | |
4496 | ||
4497 | eval "$ac_cv_use_catch_segvs" | |
4498 | if test "$no_cache" != 1; then | |
4499 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4500 | fi | |
4501 | ||
4502 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
698dcdb6 | 4503 | echo "$ac_t""yes" 1>&6 |
eb4efbdc | 4504 | else |
698dcdb6 | 4505 | echo "$ac_t""no" 1>&6 |
eb4efbdc | 4506 | fi |
698dcdb6 | 4507 | |
eb4efbdc | 4508 | |
698dcdb6 | 4509 | echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6 |
9e691f46 | 4510 | echo "configure:4511: checking for --enable-snglinst" >&5 |
4f3c5f06 VZ |
4511 | no_cache=0 |
4512 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
4513 | if test "${enable_snglinst+set}" = set; then | |
4514 | enableval="$enable_snglinst" | |
698dcdb6 | 4515 | |
4f3c5f06 VZ |
4516 | if test "$enableval" = yes; then |
4517 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
4518 | else | |
4519 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
4520 | fi | |
698dcdb6 | 4521 | |
4f3c5f06 | 4522 | else |
698dcdb6 | 4523 | |
4f3c5f06 VZ |
4524 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` |
4525 | if test "x$LINE" != x ; then | |
4526 | eval "DEFAULT_$LINE" | |
4527 | else | |
4528 | no_cache=1 | |
4529 | fi | |
4530 | ||
4531 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
698dcdb6 VZ |
4532 | |
4533 | fi | |
4f3c5f06 VZ |
4534 | |
4535 | ||
4536 | eval "$ac_cv_use_snglinst" | |
4537 | if test "$no_cache" != 1; then | |
4538 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
4539 | fi | |
4540 | ||
4541 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
698dcdb6 | 4542 | echo "$ac_t""yes" 1>&6 |
4f3c5f06 | 4543 | else |
698dcdb6 | 4544 | echo "$ac_t""no" 1>&6 |
4f3c5f06 | 4545 | fi |
698dcdb6 VZ |
4546 | |
4547 | ||
eb4efbdc | 4548 | |
1e6feb95 | 4549 | echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6 |
9e691f46 | 4550 | echo "configure:4551: checking for --enable-mimetype" >&5 |
1e6feb95 VZ |
4551 | no_cache=0 |
4552 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
4553 | if test "${enable_mimetype+set}" = set; then | |
4554 | enableval="$enable_mimetype" | |
4555 | ||
4556 | if test "$enableval" = yes; then | |
4557 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
4558 | else | |
4559 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
4560 | fi | |
4561 | ||
4562 | else | |
4563 | ||
4564 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
4565 | if test "x$LINE" != x ; then | |
4566 | eval "DEFAULT_$LINE" | |
4567 | else | |
4568 | no_cache=1 | |
4569 | fi | |
4570 | ||
4571 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
4572 | ||
4573 | fi | |
4574 | ||
4575 | ||
4576 | eval "$ac_cv_use_mimetype" | |
4577 | if test "$no_cache" != 1; then | |
4578 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
4579 | fi | |
4580 | ||
4581 | if test "$wxUSE_MIMETYPE" = yes; then | |
4582 | echo "$ac_t""yes" 1>&6 | |
4583 | else | |
4584 | echo "$ac_t""no" 1>&6 | |
4585 | fi | |
4586 | ||
4587 | ||
3e44f09d | 4588 | echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6 |
9e691f46 | 4589 | echo "configure:4590: checking for --enable-system_options" >&5 |
3e44f09d VZ |
4590 | no_cache=0 |
4591 | # Check whether --enable-system_options or --disable-system_options was given. | |
4592 | if test "${enable_system_options+set}" = set; then | |
4593 | enableval="$enable_system_options" | |
4594 | ||
4595 | if test "$enableval" = yes; then | |
4596 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
4597 | else | |
4598 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
4599 | fi | |
4600 | ||
4601 | else | |
4602 | ||
4603 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` | |
4604 | if test "x$LINE" != x ; then | |
4605 | eval "DEFAULT_$LINE" | |
4606 | else | |
4607 | no_cache=1 | |
4608 | fi | |
4609 | ||
4610 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
4611 | ||
4612 | fi | |
4613 | ||
4614 | ||
4615 | eval "$ac_cv_use_system_options" | |
4616 | if test "$no_cache" != 1; then | |
4617 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
4618 | fi | |
4619 | ||
4620 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
4621 | echo "$ac_t""yes" 1>&6 | |
4622 | else | |
4623 | echo "$ac_t""no" 1>&6 | |
4624 | fi | |
4625 | ||
4626 | ||
1e6feb95 | 4627 | |
4cdb0ab0 | 4628 | echo $ac_n "checking for --enable-url""... $ac_c" 1>&6 |
9e691f46 | 4629 | echo "configure:4630: checking for --enable-url" >&5 |
4cdb0ab0 VS |
4630 | no_cache=0 |
4631 | # Check whether --enable-url or --disable-url was given. | |
4632 | if test "${enable_url+set}" = set; then | |
4633 | enableval="$enable_url" | |
4634 | ||
4635 | if test "$enableval" = yes; then | |
4636 | ac_cv_use_url='wxUSE_URL=yes' | |
4637 | else | |
4638 | ac_cv_use_url='wxUSE_URL=no' | |
4639 | fi | |
4640 | ||
4641 | else | |
4642 | ||
4643 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` | |
4644 | if test "x$LINE" != x ; then | |
4645 | eval "DEFAULT_$LINE" | |
4646 | else | |
4647 | no_cache=1 | |
4648 | fi | |
4649 | ||
4650 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
4651 | ||
4652 | fi | |
4653 | ||
4654 | ||
4655 | eval "$ac_cv_use_url" | |
4656 | if test "$no_cache" != 1; then | |
4657 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
4658 | fi | |
4659 | ||
4660 | if test "$wxUSE_URL" = yes; then | |
4661 | echo "$ac_t""yes" 1>&6 | |
4662 | else | |
4663 | echo "$ac_t""no" 1>&6 | |
4664 | fi | |
4665 | ||
4666 | ||
4667 | echo $ac_n "checking for --enable-protocol""... $ac_c" 1>&6 | |
9e691f46 | 4668 | echo "configure:4669: checking for --enable-protocol" >&5 |
4cdb0ab0 VS |
4669 | no_cache=0 |
4670 | # Check whether --enable-protocol or --disable-protocol was given. | |
4671 | if test "${enable_protocol+set}" = set; then | |
4672 | enableval="$enable_protocol" | |
4673 | ||
4674 | if test "$enableval" = yes; then | |
4675 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
4676 | else | |
4677 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
4678 | fi | |
4679 | ||
4680 | else | |
4681 | ||
4682 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
4683 | if test "x$LINE" != x ; then | |
4684 | eval "DEFAULT_$LINE" | |
4685 | else | |
4686 | no_cache=1 | |
4687 | fi | |
4688 | ||
4689 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
4690 | ||
4691 | fi | |
4692 | ||
4693 | ||
4694 | eval "$ac_cv_use_protocol" | |
4695 | if test "$no_cache" != 1; then | |
4696 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
4697 | fi | |
4698 | ||
4699 | if test "$wxUSE_PROTOCOL" = yes; then | |
4700 | echo "$ac_t""yes" 1>&6 | |
4701 | else | |
4702 | echo "$ac_t""no" 1>&6 | |
4703 | fi | |
4704 | ||
4705 | ||
4706 | echo $ac_n "checking for --enable-protocol_http""... $ac_c" 1>&6 | |
9e691f46 | 4707 | echo "configure:4708: checking for --enable-protocol_http" >&5 |
4cdb0ab0 VS |
4708 | no_cache=0 |
4709 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
4710 | if test "${enable_protocol_http+set}" = set; then | |
4711 | enableval="$enable_protocol_http" | |
4712 | ||
4713 | if test "$enableval" = yes; then | |
4714 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
4715 | else | |
4716 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
4717 | fi | |
4718 | ||
4719 | else | |
4720 | ||
4721 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
4722 | if test "x$LINE" != x ; then | |
4723 | eval "DEFAULT_$LINE" | |
4724 | else | |
4725 | no_cache=1 | |
4726 | fi | |
4727 | ||
4728 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
4729 | ||
4730 | fi | |
4731 | ||
4732 | ||
4733 | eval "$ac_cv_use_protocol_http" | |
4734 | if test "$no_cache" != 1; then | |
4735 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
4736 | fi | |
4737 | ||
4738 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
4739 | echo "$ac_t""yes" 1>&6 | |
4740 | else | |
4741 | echo "$ac_t""no" 1>&6 | |
4742 | fi | |
4743 | ||
4744 | ||
4745 | echo $ac_n "checking for --enable-protocol_ftp""... $ac_c" 1>&6 | |
9e691f46 | 4746 | echo "configure:4747: checking for --enable-protocol_ftp" >&5 |
4cdb0ab0 VS |
4747 | no_cache=0 |
4748 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
4749 | if test "${enable_protocol_ftp+set}" = set; then | |
4750 | enableval="$enable_protocol_ftp" | |
4751 | ||
4752 | if test "$enableval" = yes; then | |
4753 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4754 | else | |
4755 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
4756 | fi | |
4757 | ||
4758 | else | |
4759 | ||
4760 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
4761 | if test "x$LINE" != x ; then | |
4762 | eval "DEFAULT_$LINE" | |
4763 | else | |
4764 | no_cache=1 | |
4765 | fi | |
4766 | ||
4767 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
4768 | ||
4769 | fi | |
4770 | ||
4771 | ||
4772 | eval "$ac_cv_use_protocol_ftp" | |
4773 | if test "$no_cache" != 1; then | |
4774 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
4775 | fi | |
4776 | ||
4777 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
4778 | echo "$ac_t""yes" 1>&6 | |
4779 | else | |
4780 | echo "$ac_t""no" 1>&6 | |
4781 | fi | |
4782 | ||
4783 | ||
4784 | echo $ac_n "checking for --enable-protocol_file""... $ac_c" 1>&6 | |
9e691f46 | 4785 | echo "configure:4786: checking for --enable-protocol_file" >&5 |
4cdb0ab0 VS |
4786 | no_cache=0 |
4787 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
4788 | if test "${enable_protocol_file+set}" = set; then | |
4789 | enableval="$enable_protocol_file" | |
4790 | ||
4791 | if test "$enableval" = yes; then | |
4792 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
4793 | else | |
4794 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
4795 | fi | |
4796 | ||
4797 | else | |
4798 | ||
4799 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
4800 | if test "x$LINE" != x ; then | |
4801 | eval "DEFAULT_$LINE" | |
4802 | else | |
4803 | no_cache=1 | |
4804 | fi | |
4805 | ||
4806 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
4807 | ||
4808 | fi | |
4809 | ||
4810 | ||
4811 | eval "$ac_cv_use_protocol_file" | |
4812 | if test "$no_cache" != 1; then | |
4813 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
4814 | fi | |
4815 | ||
4816 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
4817 | echo "$ac_t""yes" 1>&6 | |
4818 | else | |
4819 | echo "$ac_t""no" 1>&6 | |
4820 | fi | |
4821 | ||
4822 | ||
4823 | ||
4824 | ||
698dcdb6 VZ |
4825 | |
4826 | echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6 | |
9e691f46 | 4827 | echo "configure:4828: checking for --enable-threads" >&5 |
10f2d63a VZ |
4828 | no_cache=0 |
4829 | # Check whether --enable-threads or --disable-threads was given. | |
4830 | if test "${enable_threads+set}" = set; then | |
4831 | enableval="$enable_threads" | |
698dcdb6 | 4832 | |
10f2d63a VZ |
4833 | if test "$enableval" = yes; then |
4834 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
4835 | else | |
4836 | ac_cv_use_threads='wxUSE_THREADS=no' | |
4837 | fi | |
698dcdb6 | 4838 | |
10f2d63a | 4839 | else |
698dcdb6 | 4840 | |
10f2d63a VZ |
4841 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` |
4842 | if test "x$LINE" != x ; then | |
4843 | eval "DEFAULT_$LINE" | |
4844 | else | |
4845 | no_cache=1 | |
4846 | fi | |
4847 | ||
4848 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
698dcdb6 VZ |
4849 | |
4850 | fi | |
10f2d63a VZ |
4851 | |
4852 | ||
4853 | eval "$ac_cv_use_threads" | |
4854 | if test "$no_cache" != 1; then | |
4855 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
4856 | fi | |
4857 | ||
4858 | if test "$wxUSE_THREADS" = yes; then | |
698dcdb6 | 4859 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4860 | else |
698dcdb6 | 4861 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4862 | fi |
698dcdb6 | 4863 | |
10f2d63a | 4864 | |
b12915c1 VZ |
4865 | if test "$wxUSE_GUI" = "yes"; then |
4866 | ||
698dcdb6 VZ |
4867 | |
4868 | ||
4869 | echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6 | |
9e691f46 | 4870 | echo "configure:4871: checking for --enable-docview" >&5 |
10f2d63a VZ |
4871 | no_cache=0 |
4872 | # Check whether --enable-docview or --disable-docview was given. | |
4873 | if test "${enable_docview+set}" = set; then | |
4874 | enableval="$enable_docview" | |
698dcdb6 | 4875 | |
10f2d63a VZ |
4876 | if test "$enableval" = yes; then |
4877 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
4878 | else | |
4879 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
4880 | fi | |
698dcdb6 | 4881 | |
10f2d63a | 4882 | else |
698dcdb6 | 4883 | |
10f2d63a VZ |
4884 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` |
4885 | if test "x$LINE" != x ; then | |
4886 | eval "DEFAULT_$LINE" | |
4887 | else | |
4888 | no_cache=1 | |
4889 | fi | |
4890 | ||
4891 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
698dcdb6 VZ |
4892 | |
4893 | fi | |
10f2d63a VZ |
4894 | |
4895 | ||
4896 | eval "$ac_cv_use_docview" | |
4897 | if test "$no_cache" != 1; then | |
4898 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
4899 | fi | |
4900 | ||
4901 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
698dcdb6 | 4902 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4903 | else |
698dcdb6 | 4904 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4905 | fi |
698dcdb6 | 4906 | |
10f2d63a | 4907 | |
698dcdb6 | 4908 | echo $ac_n "checking for --enable-help""... $ac_c" 1>&6 |
9e691f46 | 4909 | echo "configure:4910: checking for --enable-help" >&5 |
10f2d63a VZ |
4910 | no_cache=0 |
4911 | # Check whether --enable-help or --disable-help was given. | |
4912 | if test "${enable_help+set}" = set; then | |
4913 | enableval="$enable_help" | |
698dcdb6 | 4914 | |
10f2d63a VZ |
4915 | if test "$enableval" = yes; then |
4916 | ac_cv_use_help='wxUSE_HELP=yes' | |
4917 | else | |
4918 | ac_cv_use_help='wxUSE_HELP=no' | |
4919 | fi | |
698dcdb6 | 4920 | |
10f2d63a | 4921 | else |
698dcdb6 | 4922 | |
10f2d63a VZ |
4923 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` |
4924 | if test "x$LINE" != x ; then | |
4925 | eval "DEFAULT_$LINE" | |
4926 | else | |
4927 | no_cache=1 | |
4928 | fi | |
4929 | ||
4930 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
698dcdb6 VZ |
4931 | |
4932 | fi | |
10f2d63a VZ |
4933 | |
4934 | ||
4935 | eval "$ac_cv_use_help" | |
4936 | if test "$no_cache" != 1; then | |
4937 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
4938 | fi | |
4939 | ||
4940 | if test "$wxUSE_HELP" = yes; then | |
698dcdb6 | 4941 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4942 | else |
698dcdb6 | 4943 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4944 | fi |
698dcdb6 | 4945 | |
10f2d63a | 4946 | |
29fd3c0c | 4947 | echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6 |
9e691f46 | 4948 | echo "configure:4949: checking for --enable-mshtmlhelp" >&5 |
29fd3c0c VS |
4949 | no_cache=0 |
4950 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
4951 | if test "${enable_mshtmlhelp+set}" = set; then | |
4952 | enableval="$enable_mshtmlhelp" | |
4953 | ||
4954 | if test "$enableval" = yes; then | |
4955 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
4956 | else | |
4957 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
4958 | fi | |
4959 | ||
4960 | else | |
4961 | ||
4962 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` | |
4963 | if test "x$LINE" != x ; then | |
4964 | eval "DEFAULT_$LINE" | |
4965 | else | |
4966 | no_cache=1 | |
4967 | fi | |
4968 | ||
4969 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
4970 | ||
4971 | fi | |
4972 | ||
4973 | ||
4974 | eval "$ac_cv_use_mshtmlhelp" | |
4975 | if test "$no_cache" != 1; then | |
4976 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
4977 | fi | |
4978 | ||
4979 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
4980 | echo "$ac_t""yes" 1>&6 | |
4981 | else | |
4982 | echo "$ac_t""no" 1>&6 | |
4983 | fi | |
4984 | ||
4985 | ||
3379ed37 | 4986 | echo $ac_n "checking for --enable-html""... $ac_c" 1>&6 |
9e691f46 | 4987 | echo "configure:4988: checking for --enable-html" >&5 |
3379ed37 VZ |
4988 | no_cache=0 |
4989 | # Check whether --enable-html or --disable-html was given. | |
4990 | if test "${enable_html+set}" = set; then | |
4991 | enableval="$enable_html" | |
4992 | ||
4993 | if test "$enableval" = yes; then | |
4994 | ac_cv_use_html='wxUSE_HTML=yes' | |
4995 | else | |
4996 | ac_cv_use_html='wxUSE_HTML=no' | |
4997 | fi | |
4998 | ||
4999 | else | |
5000 | ||
5001 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
5002 | if test "x$LINE" != x ; then | |
5003 | eval "DEFAULT_$LINE" | |
5004 | else | |
5005 | no_cache=1 | |
5006 | fi | |
5007 | ||
5008 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
5009 | ||
5010 | fi | |
5011 | ||
5012 | ||
5013 | eval "$ac_cv_use_html" | |
5014 | if test "$no_cache" != 1; then | |
5015 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
5016 | fi | |
5017 | ||
5018 | if test "$wxUSE_HTML" = yes; then | |
5019 | echo "$ac_t""yes" 1>&6 | |
5020 | else | |
5021 | echo "$ac_t""no" 1>&6 | |
5022 | fi | |
5023 | ||
5024 | ||
5025 | echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6 | |
9e691f46 | 5026 | echo "configure:5027: checking for --enable-htmlhelp" >&5 |
3379ed37 VZ |
5027 | no_cache=0 |
5028 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
5029 | if test "${enable_htmlhelp+set}" = set; then | |
5030 | enableval="$enable_htmlhelp" | |
5031 | ||
5032 | if test "$enableval" = yes; then | |
5033 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
5034 | else | |
5035 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
5036 | fi | |
5037 | ||
5038 | else | |
5039 | ||
5040 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` | |
5041 | if test "x$LINE" != x ; then | |
5042 | eval "DEFAULT_$LINE" | |
5043 | else | |
5044 | no_cache=1 | |
5045 | fi | |
5046 | ||
5047 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
5048 | ||
5049 | fi | |
5050 | ||
5051 | ||
5052 | eval "$ac_cv_use_htmlhelp" | |
5053 | if test "$no_cache" != 1; then | |
5054 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
5055 | fi | |
5056 | ||
5057 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
5058 | echo "$ac_t""yes" 1>&6 | |
5059 | else | |
5060 | echo "$ac_t""no" 1>&6 | |
5061 | fi | |
5062 | ||
5063 | ||
698dcdb6 | 5064 | echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6 |
9e691f46 | 5065 | echo "configure:5066: checking for --enable-constraints" >&5 |
10f2d63a VZ |
5066 | no_cache=0 |
5067 | # Check whether --enable-constraints or --disable-constraints was given. | |
5068 | if test "${enable_constraints+set}" = set; then | |
5069 | enableval="$enable_constraints" | |
698dcdb6 | 5070 | |
10f2d63a VZ |
5071 | if test "$enableval" = yes; then |
5072 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
5073 | else | |
5074 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
5075 | fi | |
698dcdb6 | 5076 | |
10f2d63a | 5077 | else |
698dcdb6 | 5078 | |
10f2d63a VZ |
5079 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` |
5080 | if test "x$LINE" != x ; then | |
5081 | eval "DEFAULT_$LINE" | |
5082 | else | |
5083 | no_cache=1 | |
5084 | fi | |
5085 | ||
5086 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
698dcdb6 VZ |
5087 | |
5088 | fi | |
10f2d63a VZ |
5089 | |
5090 | ||
5091 | eval "$ac_cv_use_constraints" | |
5092 | if test "$no_cache" != 1; then | |
5093 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
5094 | fi | |
5095 | ||
5096 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
698dcdb6 | 5097 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5098 | else |
698dcdb6 | 5099 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5100 | fi |
698dcdb6 | 5101 | |
10f2d63a | 5102 | |
698dcdb6 | 5103 | echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6 |
9e691f46 | 5104 | echo "configure:5105: checking for --enable-printarch" >&5 |
10f2d63a VZ |
5105 | no_cache=0 |
5106 | # Check whether --enable-printarch or --disable-printarch was given. | |
5107 | if test "${enable_printarch+set}" = set; then | |
5108 | enableval="$enable_printarch" | |
698dcdb6 | 5109 | |
10f2d63a VZ |
5110 | if test "$enableval" = yes; then |
5111 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
5112 | else | |
5113 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
5114 | fi | |
698dcdb6 | 5115 | |
10f2d63a | 5116 | else |
698dcdb6 | 5117 | |
10f2d63a VZ |
5118 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` |
5119 | if test "x$LINE" != x ; then | |
5120 | eval "DEFAULT_$LINE" | |
5121 | else | |
5122 | no_cache=1 | |
5123 | fi | |
5124 | ||
5125 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
698dcdb6 VZ |
5126 | |
5127 | fi | |
10f2d63a VZ |
5128 | |
5129 | ||
5130 | eval "$ac_cv_use_printarch" | |
5131 | if test "$no_cache" != 1; then | |
5132 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
5133 | fi | |
5134 | ||
5135 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
698dcdb6 | 5136 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5137 | else |
698dcdb6 | 5138 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5139 | fi |
698dcdb6 | 5140 | |
10f2d63a | 5141 | |
698dcdb6 | 5142 | echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6 |
9e691f46 | 5143 | echo "configure:5144: checking for --enable-mdi" >&5 |
10f2d63a VZ |
5144 | no_cache=0 |
5145 | # Check whether --enable-mdi or --disable-mdi was given. | |
5146 | if test "${enable_mdi+set}" = set; then | |
5147 | enableval="$enable_mdi" | |
698dcdb6 | 5148 | |
10f2d63a VZ |
5149 | if test "$enableval" = yes; then |
5150 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
5151 | else | |
5152 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
5153 | fi | |
698dcdb6 | 5154 | |
10f2d63a | 5155 | else |
698dcdb6 | 5156 | |
10f2d63a VZ |
5157 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` |
5158 | if test "x$LINE" != x ; then | |
5159 | eval "DEFAULT_$LINE" | |
5160 | else | |
5161 | no_cache=1 | |
5162 | fi | |
5163 | ||
5164 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
698dcdb6 VZ |
5165 | |
5166 | fi | |
10f2d63a VZ |
5167 | |
5168 | ||
5169 | eval "$ac_cv_use_mdi" | |
5170 | if test "$no_cache" != 1; then | |
5171 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
5172 | fi | |
5173 | ||
5174 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
698dcdb6 | 5175 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5176 | else |
698dcdb6 | 5177 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5178 | fi |
698dcdb6 VZ |
5179 | |
5180 | ||
1e6feb95 | 5181 | echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6 |
9e691f46 | 5182 | echo "configure:5183: checking for --enable-loggui" >&5 |
1e6feb95 VZ |
5183 | no_cache=0 |
5184 | # Check whether --enable-loggui or --disable-loggui was given. | |
5185 | if test "${enable_loggui+set}" = set; then | |
5186 | enableval="$enable_loggui" | |
5187 | ||
5188 | if test "$enableval" = yes; then | |
5189 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
5190 | else | |
5191 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
5192 | fi | |
5193 | ||
5194 | else | |
5195 | ||
5196 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
5197 | if test "x$LINE" != x ; then | |
5198 | eval "DEFAULT_$LINE" | |
5199 | else | |
5200 | no_cache=1 | |
5201 | fi | |
5202 | ||
5203 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
5204 | ||
5205 | fi | |
5206 | ||
5207 | ||
5208 | eval "$ac_cv_use_loggui" | |
5209 | if test "$no_cache" != 1; then | |
5210 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
5211 | fi | |
5212 | ||
5213 | if test "$wxUSE_LOGGUI" = yes; then | |
5214 | echo "$ac_t""yes" 1>&6 | |
5215 | else | |
5216 | echo "$ac_t""no" 1>&6 | |
5217 | fi | |
5218 | ||
5219 | ||
5220 | echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6 | |
9e691f46 | 5221 | echo "configure:5222: checking for --enable-logwin" >&5 |
1e6feb95 VZ |
5222 | no_cache=0 |
5223 | # Check whether --enable-logwin or --disable-logwin was given. | |
5224 | if test "${enable_logwin+set}" = set; then | |
5225 | enableval="$enable_logwin" | |
5226 | ||
5227 | if test "$enableval" = yes; then | |
5228 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
5229 | else | |
5230 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
5231 | fi | |
5232 | ||
5233 | else | |
5234 | ||
5235 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
5236 | if test "x$LINE" != x ; then | |
5237 | eval "DEFAULT_$LINE" | |
5238 | else | |
5239 | no_cache=1 | |
5240 | fi | |
5241 | ||
5242 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
5243 | ||
5244 | fi | |
5245 | ||
5246 | ||
5247 | eval "$ac_cv_use_logwin" | |
5248 | if test "$no_cache" != 1; then | |
5249 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
5250 | fi | |
5251 | ||
5252 | if test "$wxUSE_LOGWINDOW" = yes; then | |
5253 | echo "$ac_t""yes" 1>&6 | |
5254 | else | |
5255 | echo "$ac_t""no" 1>&6 | |
5256 | fi | |
5257 | ||
5258 | ||
69d27ff7 | 5259 | echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6 |
9e691f46 | 5260 | echo "configure:5261: checking for --enable-logdialog" >&5 |
69d27ff7 MB |
5261 | no_cache=0 |
5262 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
5263 | if test "${enable_logdialog+set}" = set; then | |
5264 | enableval="$enable_logdialog" | |
5265 | ||
5266 | if test "$enableval" = yes; then | |
5267 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
5268 | else | |
5269 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
5270 | fi | |
5271 | ||
5272 | else | |
5273 | ||
5274 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` | |
5275 | if test "x$LINE" != x ; then | |
5276 | eval "DEFAULT_$LINE" | |
5277 | else | |
5278 | no_cache=1 | |
5279 | fi | |
5280 | ||
5281 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
5282 | ||
5283 | fi | |
5284 | ||
5285 | ||
5286 | eval "$ac_cv_use_logdialog" | |
5287 | if test "$no_cache" != 1; then | |
5288 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
5289 | fi | |
5290 | ||
5291 | if test "$wxUSE_LOGDIALOG" = yes; then | |
5292 | echo "$ac_t""yes" 1>&6 | |
5293 | else | |
5294 | echo "$ac_t""no" 1>&6 | |
5295 | fi | |
5296 | ||
5297 | ||
10f2d63a | 5298 | |
698dcdb6 | 5299 | echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6 |
9e691f46 | 5300 | echo "configure:5301: checking for --enable-postscript" >&5 |
10f2d63a VZ |
5301 | no_cache=0 |
5302 | # Check whether --enable-postscript or --disable-postscript was given. | |
5303 | if test "${enable_postscript+set}" = set; then | |
5304 | enableval="$enable_postscript" | |
698dcdb6 | 5305 | |
10f2d63a VZ |
5306 | if test "$enableval" = yes; then |
5307 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
5308 | else | |
5309 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
5310 | fi | |
698dcdb6 | 5311 | |
10f2d63a | 5312 | else |
698dcdb6 | 5313 | |
10f2d63a VZ |
5314 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` |
5315 | if test "x$LINE" != x ; then | |
5316 | eval "DEFAULT_$LINE" | |
5317 | else | |
5318 | no_cache=1 | |
5319 | fi | |
5320 | ||
5321 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
698dcdb6 VZ |
5322 | |
5323 | fi | |
10f2d63a VZ |
5324 | |
5325 | ||
5326 | eval "$ac_cv_use_postscript" | |
5327 | if test "$no_cache" != 1; then | |
5328 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
5329 | fi | |
5330 | ||
5331 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
698dcdb6 | 5332 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5333 | else |
698dcdb6 | 5334 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5335 | fi |
698dcdb6 VZ |
5336 | |
5337 | ||
5338 | ||
10f2d63a | 5339 | |
1e6feb95 | 5340 | |
698dcdb6 | 5341 | echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6 |
9e691f46 | 5342 | echo "configure:5343: checking for --enable-prologio" >&5 |
10f2d63a VZ |
5343 | no_cache=0 |
5344 | # Check whether --enable-prologio or --disable-prologio was given. | |
5345 | if test "${enable_prologio+set}" = set; then | |
5346 | enableval="$enable_prologio" | |
698dcdb6 | 5347 | |
10f2d63a VZ |
5348 | if test "$enableval" = yes; then |
5349 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
5350 | else | |
5351 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
5352 | fi | |
698dcdb6 | 5353 | |
10f2d63a | 5354 | else |
698dcdb6 | 5355 | |
10f2d63a VZ |
5356 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` |
5357 | if test "x$LINE" != x ; then | |
5358 | eval "DEFAULT_$LINE" | |
5359 | else | |
5360 | no_cache=1 | |
5361 | fi | |
5362 | ||
5363 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
698dcdb6 VZ |
5364 | |
5365 | fi | |
10f2d63a VZ |
5366 | |
5367 | ||
5368 | eval "$ac_cv_use_prologio" | |
5369 | if test "$no_cache" != 1; then | |
5370 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
5371 | fi | |
5372 | ||
5373 | if test "$wxUSE_PROLOGIO" = yes; then | |
698dcdb6 | 5374 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5375 | else |
698dcdb6 | 5376 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5377 | fi |
698dcdb6 | 5378 | |
10f2d63a | 5379 | |
698dcdb6 | 5380 | echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6 |
9e691f46 | 5381 | echo "configure:5382: checking for --enable-resources" >&5 |
10f2d63a VZ |
5382 | no_cache=0 |
5383 | # Check whether --enable-resources or --disable-resources was given. | |
5384 | if test "${enable_resources+set}" = set; then | |
5385 | enableval="$enable_resources" | |
698dcdb6 | 5386 | |
10f2d63a VZ |
5387 | if test "$enableval" = yes; then |
5388 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
5389 | else | |
5390 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
5391 | fi | |
698dcdb6 | 5392 | |
10f2d63a | 5393 | else |
698dcdb6 | 5394 | |
10f2d63a VZ |
5395 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` |
5396 | if test "x$LINE" != x ; then | |
5397 | eval "DEFAULT_$LINE" | |
5398 | else | |
5399 | no_cache=1 | |
5400 | fi | |
5401 | ||
5402 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
698dcdb6 VZ |
5403 | |
5404 | fi | |
10f2d63a VZ |
5405 | |
5406 | ||
5407 | eval "$ac_cv_use_resources" | |
5408 | if test "$no_cache" != 1; then | |
5409 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
5410 | fi | |
5411 | ||
5412 | if test "$wxUSE_RESOURCES" = yes; then | |
698dcdb6 | 5413 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5414 | else |
698dcdb6 | 5415 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5416 | fi |
698dcdb6 | 5417 | |
10f2d63a | 5418 | |
698dcdb6 VZ |
5419 | |
5420 | echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6 | |
9e691f46 | 5421 | echo "configure:5422: checking for --enable-xresources" >&5 |
10f2d63a VZ |
5422 | no_cache=0 |
5423 | # Check whether --enable-xresources or --disable-xresources was given. | |
5424 | if test "${enable_xresources+set}" = set; then | |
5425 | enableval="$enable_xresources" | |
698dcdb6 | 5426 | |
10f2d63a VZ |
5427 | if test "$enableval" = yes; then |
5428 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
5429 | else | |
5430 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
5431 | fi | |
698dcdb6 | 5432 | |
10f2d63a | 5433 | else |
698dcdb6 | 5434 | |
10f2d63a VZ |
5435 | LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}` |
5436 | if test "x$LINE" != x ; then | |
5437 | eval "DEFAULT_$LINE" | |
5438 | else | |
5439 | no_cache=1 | |
5440 | fi | |
5441 | ||
5442 | ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
698dcdb6 VZ |
5443 | |
5444 | fi | |
10f2d63a VZ |
5445 | |
5446 | ||
5447 | eval "$ac_cv_use_xresources" | |
5448 | if test "$no_cache" != 1; then | |
5449 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
5450 | fi | |
5451 | ||
5452 | if test "$wxUSE_X_RESOURCES" = yes; then | |
698dcdb6 | 5453 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5454 | else |
698dcdb6 | 5455 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5456 | fi |
698dcdb6 VZ |
5457 | |
5458 | ||
10f2d63a | 5459 | |
698dcdb6 VZ |
5460 | |
5461 | echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6 | |
9e691f46 | 5462 | echo "configure:5463: checking for --enable-clipboard" >&5 |
10f2d63a VZ |
5463 | no_cache=0 |
5464 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
5465 | if test "${enable_clipboard+set}" = set; then | |
5466 | enableval="$enable_clipboard" | |
698dcdb6 | 5467 | |
10f2d63a VZ |
5468 | if test "$enableval" = yes; then |
5469 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
5470 | else | |
5471 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
5472 | fi | |
698dcdb6 | 5473 | |
10f2d63a | 5474 | else |
698dcdb6 | 5475 | |
10f2d63a VZ |
5476 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` |
5477 | if test "x$LINE" != x ; then | |
5478 | eval "DEFAULT_$LINE" | |
5479 | else | |
5480 | no_cache=1 | |
5481 | fi | |
5482 | ||
5483 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
698dcdb6 VZ |
5484 | |
5485 | fi | |
10f2d63a VZ |
5486 | |
5487 | ||
5488 | eval "$ac_cv_use_clipboard" | |
5489 | if test "$no_cache" != 1; then | |
5490 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
5491 | fi | |
5492 | ||
5493 | if test "$wxUSE_CLIPBOARD" = yes; then | |
698dcdb6 | 5494 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5495 | else |
698dcdb6 | 5496 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5497 | fi |
698dcdb6 | 5498 | |
10f2d63a | 5499 | |
698dcdb6 | 5500 | echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6 |
9e691f46 | 5501 | echo "configure:5502: checking for --enable-dnd" >&5 |
10f2d63a VZ |
5502 | no_cache=0 |
5503 | # Check whether --enable-dnd or --disable-dnd was given. | |
5504 | if test "${enable_dnd+set}" = set; then | |
5505 | enableval="$enable_dnd" | |
698dcdb6 | 5506 | |
10f2d63a VZ |
5507 | if test "$enableval" = yes; then |
5508 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
5509 | else | |
5510 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
5511 | fi | |
698dcdb6 | 5512 | |
10f2d63a | 5513 | else |
698dcdb6 | 5514 | |
10f2d63a VZ |
5515 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` |
5516 | if test "x$LINE" != x ; then | |
5517 | eval "DEFAULT_$LINE" | |
5518 | else | |
5519 | no_cache=1 | |
5520 | fi | |
5521 | ||
5522 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
698dcdb6 VZ |
5523 | |
5524 | fi | |
10f2d63a VZ |
5525 | |
5526 | ||
5527 | eval "$ac_cv_use_dnd" | |
5528 | if test "$no_cache" != 1; then | |
5529 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
5530 | fi | |
5531 | ||
5532 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
698dcdb6 | 5533 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5534 | else |
698dcdb6 | 5535 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5536 | fi |
698dcdb6 | 5537 | |
10f2d63a | 5538 | |
698dcdb6 | 5539 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
9e691f46 | 5540 | echo "configure:5541: checking for --enable-metafile" >&5 |
b64f0a5f RL |
5541 | no_cache=0 |
5542 | # Check whether --enable-metafile or --disable-metafile was given. | |
5543 | if test "${enable_metafile+set}" = set; then | |
5544 | enableval="$enable_metafile" | |
698dcdb6 | 5545 | |
b64f0a5f RL |
5546 | if test "$enableval" = yes; then |
5547 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
5548 | else | |
5549 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
5550 | fi | |
698dcdb6 | 5551 | |
b64f0a5f | 5552 | else |
698dcdb6 | 5553 | |
b64f0a5f RL |
5554 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
5555 | if test "x$LINE" != x ; then | |
5556 | eval "DEFAULT_$LINE" | |
5557 | else | |
5558 | no_cache=1 | |
5559 | fi | |
5560 | ||
5561 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
698dcdb6 VZ |
5562 | |
5563 | fi | |
b64f0a5f RL |
5564 | |
5565 | ||
5566 | eval "$ac_cv_use_metafile" | |
5567 | if test "$no_cache" != 1; then | |
5568 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
5569 | fi | |
5570 | ||
5571 | if test "$wxUSE_METAFILE" = yes; then | |
698dcdb6 | 5572 | echo "$ac_t""yes" 1>&6 |
b64f0a5f | 5573 | else |
698dcdb6 | 5574 | echo "$ac_t""no" 1>&6 |
b64f0a5f | 5575 | fi |
698dcdb6 VZ |
5576 | |
5577 | ||
10f2d63a | 5578 | |
24176f2c | 5579 | echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6 |
9e691f46 | 5580 | echo "configure:5581: checking for --enable-treelayout" >&5 |
10f2d63a | 5581 | no_cache=0 |
24176f2c GD |
5582 | # Check whether --enable-treelayout or --disable-treelayout was given. |
5583 | if test "${enable_treelayout+set}" = set; then | |
5584 | enableval="$enable_treelayout" | |
698dcdb6 | 5585 | |
10f2d63a | 5586 | if test "$enableval" = yes; then |
24176f2c | 5587 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes' |
10f2d63a | 5588 | else |
24176f2c | 5589 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=no' |
10f2d63a | 5590 | fi |
698dcdb6 | 5591 | |
10f2d63a | 5592 | else |
698dcdb6 | 5593 | |
24176f2c | 5594 | LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}` |
10f2d63a VZ |
5595 | if test "x$LINE" != x ; then |
5596 | eval "DEFAULT_$LINE" | |
5597 | else | |
5598 | no_cache=1 | |
5599 | fi | |
5600 | ||
24176f2c | 5601 | ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT |
698dcdb6 VZ |
5602 | |
5603 | fi | |
10f2d63a VZ |
5604 | |
5605 | ||
24176f2c | 5606 | eval "$ac_cv_use_treelayout" |
10f2d63a | 5607 | if test "$no_cache" != 1; then |
24176f2c | 5608 | echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5609 | fi |
5610 | ||
24176f2c | 5611 | if test "$wxUSE_TREELAYOUT" = yes; then |
698dcdb6 | 5612 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5613 | else |
698dcdb6 | 5614 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5615 | fi |
698dcdb6 | 5616 | |
10f2d63a | 5617 | |
698dcdb6 VZ |
5618 | |
5619 | ||
5620 | echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6 | |
9e691f46 | 5621 | echo "configure:5622: checking for --enable-controls" >&5 |
10f2d63a VZ |
5622 | no_cache=0 |
5623 | # Check whether --enable-controls or --disable-controls was given. | |
5624 | if test "${enable_controls+set}" = set; then | |
5625 | enableval="$enable_controls" | |
698dcdb6 | 5626 | |
10f2d63a VZ |
5627 | if test "$enableval" = yes; then |
5628 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
5629 | else | |
5630 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
5631 | fi | |
698dcdb6 | 5632 | |
10f2d63a | 5633 | else |
698dcdb6 | 5634 | |
10f2d63a VZ |
5635 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` |
5636 | if test "x$LINE" != x ; then | |
5637 | eval "DEFAULT_$LINE" | |
5638 | else | |
5639 | no_cache=1 | |
5640 | fi | |
5641 | ||
5642 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
698dcdb6 VZ |
5643 | |
5644 | fi | |
10f2d63a VZ |
5645 | |
5646 | ||
5647 | eval "$ac_cv_use_controls" | |
5648 | if test "$no_cache" != 1; then | |
5649 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
5650 | fi | |
5651 | ||
5652 | if test "$wxUSE_CONTROLS" = yes; then | |
698dcdb6 | 5653 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5654 | else |
698dcdb6 | 5655 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5656 | fi |
698dcdb6 | 5657 | |
10f2d63a VZ |
5658 | |
5659 | if test "$wxUSE_CONTROLS" = "yes"; then | |
5660 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 VZ |
5661 | DEFAULT_wxUSE_BMPBUTTON=yes |
5662 | DEFAULT_wxUSE_BUTTON=yes | |
5663 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5664 | DEFAULT_wxUSE_CARET=yes |
5665 | DEFAULT_wxUSE_COMBOBOX=yes | |
10f2d63a VZ |
5666 | DEFAULT_wxUSE_CHECKBOX=yes |
5667 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
5668 | DEFAULT_wxUSE_CHOICE=yes | |
5669 | DEFAULT_wxUSE_GAUGE=yes | |
5670 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 5671 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
5672 | DEFAULT_wxUSE_IMAGLIST=yes |
5673 | DEFAULT_wxUSE_LISTBOX=yes | |
5674 | DEFAULT_wxUSE_LISTCTRL=yes | |
5675 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 5676 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
5677 | DEFAULT_wxUSE_RADIOBOX=yes |
5678 | DEFAULT_wxUSE_RADIOBTN=yes | |
5679 | DEFAULT_wxUSE_SASH=yes | |
5680 | DEFAULT_wxUSE_SCROLLBAR=yes | |
5681 | DEFAULT_wxUSE_SLIDER=yes | |
5682 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 5683 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
5684 | DEFAULT_wxUSE_SPLITTER=yes |
5685 | DEFAULT_wxUSE_STATBMP=yes | |
5686 | DEFAULT_wxUSE_STATBOX=yes | |
5687 | DEFAULT_wxUSE_STATLINE=yes | |
5688 | DEFAULT_wxUSE_STATUSBAR=yes | |
5689 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 5690 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 5691 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
5692 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
5693 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
5694 | DEFAULT_wxUSE_TOOLTIPS=yes |
5695 | DEFAULT_wxUSE_TREECTRL=yes | |
9f41d601 | 5696 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 5697 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
5698 | elif test "$wxUSE_CONTROLS" = "no"; then |
5699 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 VZ |
5700 | DEFAULT_wxUSE_BMPBUTTON=no |
5701 | DEFAULT_wxUSE_BUTTON=no | |
5702 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5703 | DEFAULT_wxUSE_CARET=no |
5704 | DEFAULT_wxUSE_COMBOBOX=no | |
10f2d63a VZ |
5705 | DEFAULT_wxUSE_CHECKBOX=no |
5706 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
5707 | DEFAULT_wxUSE_CHOICE=no | |
5708 | DEFAULT_wxUSE_GAUGE=no | |
5709 | DEFAULT_wxUSE_GRID=no | |
5710 | DEFAULT_wxUSE_NEW_GRID=no | |
5711 | DEFAULT_wxUSE_IMAGLIST=no | |
5712 | DEFAULT_wxUSE_LISTBOX=no | |
5713 | DEFAULT_wxUSE_LISTCTRL=no | |
5714 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 5715 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
5716 | DEFAULT_wxUSE_RADIOBOX=no |
5717 | DEFAULT_wxUSE_RADIOBTN=no | |
5718 | DEFAULT_wxUSE_SASH=no | |
5719 | DEFAULT_wxUSE_SCROLLBAR=no | |
5720 | DEFAULT_wxUSE_SLIDER=no | |
5721 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 5722 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
5723 | DEFAULT_wxUSE_SPLITTER=no |
5724 | DEFAULT_wxUSE_STATBMP=no | |
5725 | DEFAULT_wxUSE_STATBOX=no | |
5726 | DEFAULT_wxUSE_STATLINE=no | |
5727 | DEFAULT_wxUSE_STATUSBAR=no | |
5728 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 5729 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 5730 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
5731 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
5732 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
5733 | DEFAULT_wxUSE_TOOLTIPS=no |
5734 | DEFAULT_wxUSE_TREECTRL=no | |
9f41d601 | 5735 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 5736 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
5737 | fi |
5738 | ||
698dcdb6 VZ |
5739 | |
5740 | echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6 | |
9e691f46 | 5741 | echo "configure:5742: checking for --enable-accel" >&5 |
10f2d63a VZ |
5742 | no_cache=0 |
5743 | # Check whether --enable-accel or --disable-accel was given. | |
5744 | if test "${enable_accel+set}" = set; then | |
5745 | enableval="$enable_accel" | |
698dcdb6 | 5746 | |
10f2d63a VZ |
5747 | if test "$enableval" = yes; then |
5748 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
5749 | else | |
5750 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
5751 | fi | |
698dcdb6 | 5752 | |
10f2d63a | 5753 | else |
698dcdb6 | 5754 | |
10f2d63a VZ |
5755 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` |
5756 | if test "x$LINE" != x ; then | |
5757 | eval "DEFAULT_$LINE" | |
5758 | else | |
5759 | no_cache=1 | |
5760 | fi | |
5761 | ||
5762 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
698dcdb6 VZ |
5763 | |
5764 | fi | |
10f2d63a VZ |
5765 | |
5766 | ||
5767 | eval "$ac_cv_use_accel" | |
5768 | if test "$no_cache" != 1; then | |
5769 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
5770 | fi | |
5771 | ||
5772 | if test "$wxUSE_ACCEL" = yes; then | |
698dcdb6 | 5773 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5774 | else |
698dcdb6 | 5775 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5776 | fi |
698dcdb6 | 5777 | |
10f2d63a | 5778 | |
1e6feb95 | 5779 | echo $ac_n "checking for --enable-button""... $ac_c" 1>&6 |
9e691f46 | 5780 | echo "configure:5781: checking for --enable-button" >&5 |
10f2d63a | 5781 | no_cache=0 |
1e6feb95 VZ |
5782 | # Check whether --enable-button or --disable-button was given. |
5783 | if test "${enable_button+set}" = set; then | |
5784 | enableval="$enable_button" | |
698dcdb6 | 5785 | |
10f2d63a | 5786 | if test "$enableval" = yes; then |
1e6feb95 | 5787 | ac_cv_use_button='wxUSE_BUTTON=yes' |
10f2d63a | 5788 | else |
1e6feb95 | 5789 | ac_cv_use_button='wxUSE_BUTTON=no' |
10f2d63a | 5790 | fi |
698dcdb6 | 5791 | |
10f2d63a | 5792 | else |
698dcdb6 | 5793 | |
1e6feb95 | 5794 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` |
10f2d63a VZ |
5795 | if test "x$LINE" != x ; then |
5796 | eval "DEFAULT_$LINE" | |
5797 | else | |
5798 | no_cache=1 | |
5799 | fi | |
5800 | ||
1e6feb95 | 5801 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON |
698dcdb6 VZ |
5802 | |
5803 | fi | |
10f2d63a VZ |
5804 | |
5805 | ||
1e6feb95 | 5806 | eval "$ac_cv_use_button" |
10f2d63a | 5807 | if test "$no_cache" != 1; then |
1e6feb95 | 5808 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5809 | fi |
5810 | ||
1e6feb95 | 5811 | if test "$wxUSE_BUTTON" = yes; then |
698dcdb6 | 5812 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5813 | else |
698dcdb6 | 5814 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5815 | fi |
698dcdb6 | 5816 | |
10f2d63a | 5817 | |
698dcdb6 | 5818 | echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6 |
9e691f46 | 5819 | echo "configure:5820: checking for --enable-bmpbutton" >&5 |
10f2d63a VZ |
5820 | no_cache=0 |
5821 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
5822 | if test "${enable_bmpbutton+set}" = set; then | |
5823 | enableval="$enable_bmpbutton" | |
698dcdb6 | 5824 | |
10f2d63a VZ |
5825 | if test "$enableval" = yes; then |
5826 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
5827 | else | |
5828 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
5829 | fi | |
698dcdb6 | 5830 | |
10f2d63a | 5831 | else |
698dcdb6 | 5832 | |
10f2d63a VZ |
5833 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` |
5834 | if test "x$LINE" != x ; then | |
5835 | eval "DEFAULT_$LINE" | |
5836 | else | |
5837 | no_cache=1 | |
5838 | fi | |
5839 | ||
5840 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
698dcdb6 VZ |
5841 | |
5842 | fi | |
10f2d63a VZ |
5843 | |
5844 | ||
5845 | eval "$ac_cv_use_bmpbutton" | |
5846 | if test "$no_cache" != 1; then | |
5847 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
5848 | fi | |
5849 | ||
5850 | if test "$wxUSE_BMPBUTTON" = yes; then | |
698dcdb6 | 5851 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5852 | else |
698dcdb6 | 5853 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5854 | fi |
698dcdb6 | 5855 | |
10f2d63a | 5856 | |
1e6feb95 | 5857 | echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6 |
9e691f46 | 5858 | echo "configure:5859: checking for --enable-calendar" >&5 |
1e6feb95 VZ |
5859 | no_cache=0 |
5860 | # Check whether --enable-calendar or --disable-calendar was given. | |
5861 | if test "${enable_calendar+set}" = set; then | |
5862 | enableval="$enable_calendar" | |
5863 | ||
5864 | if test "$enableval" = yes; then | |
5865 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
5866 | else | |
5867 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
5868 | fi | |
5869 | ||
5870 | else | |
5871 | ||
5872 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
5873 | if test "x$LINE" != x ; then | |
5874 | eval "DEFAULT_$LINE" | |
5875 | else | |
5876 | no_cache=1 | |
5877 | fi | |
5878 | ||
5879 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
5880 | ||
5881 | fi | |
5882 | ||
5883 | ||
5884 | eval "$ac_cv_use_calendar" | |
5885 | if test "$no_cache" != 1; then | |
5886 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
5887 | fi | |
5888 | ||
5889 | if test "$wxUSE_CALCTRL" = yes; then | |
5890 | echo "$ac_t""yes" 1>&6 | |
5891 | else | |
5892 | echo "$ac_t""no" 1>&6 | |
5893 | fi | |
5894 | ||
5895 | ||
5896 | echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6 | |
9e691f46 | 5897 | echo "configure:5898: checking for --enable-caret" >&5 |
1e6feb95 VZ |
5898 | no_cache=0 |
5899 | # Check whether --enable-caret or --disable-caret was given. | |
5900 | if test "${enable_caret+set}" = set; then | |
5901 | enableval="$enable_caret" | |
5902 | ||
5903 | if test "$enableval" = yes; then | |
5904 | ac_cv_use_caret='wxUSE_CARET=yes' | |
5905 | else | |
5906 | ac_cv_use_caret='wxUSE_CARET=no' | |
5907 | fi | |
5908 | ||
5909 | else | |
5910 | ||
5911 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
5912 | if test "x$LINE" != x ; then | |
5913 | eval "DEFAULT_$LINE" | |
5914 | else | |
5915 | no_cache=1 | |
5916 | fi | |
5917 | ||
5918 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
5919 | ||
5920 | fi | |
5921 | ||
5922 | ||
5923 | eval "$ac_cv_use_caret" | |
5924 | if test "$no_cache" != 1; then | |
5925 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
5926 | fi | |
5927 | ||
5928 | if test "$wxUSE_CARET" = yes; then | |
5929 | echo "$ac_t""yes" 1>&6 | |
5930 | else | |
5931 | echo "$ac_t""no" 1>&6 | |
5932 | fi | |
5933 | ||
5934 | ||
698dcdb6 | 5935 | echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6 |
9e691f46 | 5936 | echo "configure:5937: checking for --enable-checkbox" >&5 |
10f2d63a VZ |
5937 | no_cache=0 |
5938 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
5939 | if test "${enable_checkbox+set}" = set; then | |
5940 | enableval="$enable_checkbox" | |
698dcdb6 | 5941 | |
10f2d63a VZ |
5942 | if test "$enableval" = yes; then |
5943 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
5944 | else | |
5945 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
5946 | fi | |
698dcdb6 | 5947 | |
10f2d63a | 5948 | else |
698dcdb6 | 5949 | |
10f2d63a VZ |
5950 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` |
5951 | if test "x$LINE" != x ; then | |
5952 | eval "DEFAULT_$LINE" | |
5953 | else | |
5954 | no_cache=1 | |
5955 | fi | |
5956 | ||
5957 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
698dcdb6 VZ |
5958 | |
5959 | fi | |
10f2d63a VZ |
5960 | |
5961 | ||
5962 | eval "$ac_cv_use_checkbox" | |
5963 | if test "$no_cache" != 1; then | |
5964 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
5965 | fi | |
5966 | ||
5967 | if test "$wxUSE_CHECKBOX" = yes; then | |
698dcdb6 | 5968 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5969 | else |
698dcdb6 | 5970 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5971 | fi |
698dcdb6 | 5972 | |
10f2d63a | 5973 | |
698dcdb6 | 5974 | echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6 |
9e691f46 | 5975 | echo "configure:5976: checking for --enable-checklst" >&5 |
10f2d63a VZ |
5976 | no_cache=0 |
5977 | # Check whether --enable-checklst or --disable-checklst was given. | |
5978 | if test "${enable_checklst+set}" = set; then | |
5979 | enableval="$enable_checklst" | |
698dcdb6 | 5980 | |
10f2d63a VZ |
5981 | if test "$enableval" = yes; then |
5982 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
5983 | else | |
5984 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
5985 | fi | |
698dcdb6 | 5986 | |
10f2d63a | 5987 | else |
698dcdb6 | 5988 | |
10f2d63a VZ |
5989 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` |
5990 | if test "x$LINE" != x ; then | |
5991 | eval "DEFAULT_$LINE" | |
5992 | else | |
5993 | no_cache=1 | |
5994 | fi | |
5995 | ||
5996 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
698dcdb6 VZ |
5997 | |
5998 | fi | |
10f2d63a VZ |
5999 | |
6000 | ||
6001 | eval "$ac_cv_use_checklst" | |
6002 | if test "$no_cache" != 1; then | |
6003 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
6004 | fi | |
6005 | ||
6006 | if test "$wxUSE_CHECKLST" = yes; then | |
698dcdb6 | 6007 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6008 | else |
698dcdb6 | 6009 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6010 | fi |
698dcdb6 | 6011 | |
10f2d63a | 6012 | |
698dcdb6 | 6013 | echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6 |
9e691f46 | 6014 | echo "configure:6015: checking for --enable-choice" >&5 |
10f2d63a VZ |
6015 | no_cache=0 |
6016 | # Check whether --enable-choice or --disable-choice was given. | |
6017 | if test "${enable_choice+set}" = set; then | |
6018 | enableval="$enable_choice" | |
698dcdb6 | 6019 | |
10f2d63a VZ |
6020 | if test "$enableval" = yes; then |
6021 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
6022 | else | |
6023 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
6024 | fi | |
698dcdb6 | 6025 | |
10f2d63a | 6026 | else |
698dcdb6 | 6027 | |
10f2d63a VZ |
6028 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` |
6029 | if test "x$LINE" != x ; then | |
6030 | eval "DEFAULT_$LINE" | |
6031 | else | |
6032 | no_cache=1 | |
6033 | fi | |
6034 | ||
6035 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
698dcdb6 VZ |
6036 | |
6037 | fi | |
10f2d63a VZ |
6038 | |
6039 | ||
6040 | eval "$ac_cv_use_choice" | |
6041 | if test "$no_cache" != 1; then | |
6042 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
6043 | fi | |
6044 | ||
6045 | if test "$wxUSE_CHOICE" = yes; then | |
698dcdb6 | 6046 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6047 | else |
698dcdb6 | 6048 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6049 | fi |
698dcdb6 | 6050 | |
10f2d63a | 6051 | |
698dcdb6 | 6052 | echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6 |
9e691f46 | 6053 | echo "configure:6054: checking for --enable-combobox" >&5 |
10f2d63a VZ |
6054 | no_cache=0 |
6055 | # Check whether --enable-combobox or --disable-combobox was given. | |
6056 | if test "${enable_combobox+set}" = set; then | |
6057 | enableval="$enable_combobox" | |
698dcdb6 | 6058 | |
10f2d63a VZ |
6059 | if test "$enableval" = yes; then |
6060 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
6061 | else | |
6062 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
6063 | fi | |
698dcdb6 | 6064 | |
10f2d63a | 6065 | else |
698dcdb6 | 6066 | |
10f2d63a VZ |
6067 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` |
6068 | if test "x$LINE" != x ; then | |
6069 | eval "DEFAULT_$LINE" | |
6070 | else | |
6071 | no_cache=1 | |
6072 | fi | |
6073 | ||
6074 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
698dcdb6 VZ |
6075 | |
6076 | fi | |
10f2d63a VZ |
6077 | |
6078 | ||
6079 | eval "$ac_cv_use_combobox" | |
6080 | if test "$no_cache" != 1; then | |
6081 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
6082 | fi | |
6083 | ||
6084 | if test "$wxUSE_COMBOBOX" = yes; then | |
698dcdb6 | 6085 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6086 | else |
698dcdb6 | 6087 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6088 | fi |
698dcdb6 | 6089 | |
10f2d63a | 6090 | |
698dcdb6 | 6091 | echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6 |
9e691f46 | 6092 | echo "configure:6093: checking for --enable-gauge" >&5 |
10f2d63a VZ |
6093 | no_cache=0 |
6094 | # Check whether --enable-gauge or --disable-gauge was given. | |
6095 | if test "${enable_gauge+set}" = set; then | |
6096 | enableval="$enable_gauge" | |
698dcdb6 | 6097 | |
10f2d63a VZ |
6098 | if test "$enableval" = yes; then |
6099 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
6100 | else | |
6101 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
6102 | fi | |
698dcdb6 | 6103 | |
10f2d63a | 6104 | else |
698dcdb6 | 6105 | |
10f2d63a VZ |
6106 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` |
6107 | if test "x$LINE" != x ; then | |
6108 | eval "DEFAULT_$LINE" | |
6109 | else | |
6110 | no_cache=1 | |
6111 | fi | |
6112 | ||
6113 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
698dcdb6 VZ |
6114 | |
6115 | fi | |
10f2d63a VZ |
6116 | |
6117 | ||
6118 | eval "$ac_cv_use_gauge" | |
6119 | if test "$no_cache" != 1; then | |
6120 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
6121 | fi | |
6122 | ||
6123 | if test "$wxUSE_GAUGE" = yes; then | |
698dcdb6 | 6124 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6125 | else |
698dcdb6 | 6126 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6127 | fi |
698dcdb6 | 6128 | |
10f2d63a | 6129 | |
698dcdb6 | 6130 | echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6 |
9e691f46 | 6131 | echo "configure:6132: checking for --enable-grid" >&5 |
10f2d63a VZ |
6132 | no_cache=0 |
6133 | # Check whether --enable-grid or --disable-grid was given. | |
6134 | if test "${enable_grid+set}" = set; then | |
6135 | enableval="$enable_grid" | |
698dcdb6 | 6136 | |
10f2d63a VZ |
6137 | if test "$enableval" = yes; then |
6138 | ac_cv_use_grid='wxUSE_GRID=yes' | |
6139 | else | |
6140 | ac_cv_use_grid='wxUSE_GRID=no' | |
6141 | fi | |
698dcdb6 | 6142 | |
10f2d63a | 6143 | else |
698dcdb6 | 6144 | |
10f2d63a VZ |
6145 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` |
6146 | if test "x$LINE" != x ; then | |
6147 | eval "DEFAULT_$LINE" | |
6148 | else | |
6149 | no_cache=1 | |
6150 | fi | |
6151 | ||
6152 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
698dcdb6 VZ |
6153 | |
6154 | fi | |
10f2d63a VZ |
6155 | |
6156 | ||
6157 | eval "$ac_cv_use_grid" | |
6158 | if test "$no_cache" != 1; then | |
6159 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
6160 | fi | |
6161 | ||
6162 | if test "$wxUSE_GRID" = yes; then | |
698dcdb6 | 6163 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6164 | else |
698dcdb6 | 6165 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6166 | fi |
698dcdb6 | 6167 | |
10f2d63a | 6168 | |
698dcdb6 | 6169 | echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6 |
9e691f46 | 6170 | echo "configure:6171: checking for --enable-newgrid" >&5 |
10f2d63a VZ |
6171 | no_cache=0 |
6172 | # Check whether --enable-newgrid or --disable-newgrid was given. | |
6173 | if test "${enable_newgrid+set}" = set; then | |
6174 | enableval="$enable_newgrid" | |
698dcdb6 | 6175 | |
10f2d63a VZ |
6176 | if test "$enableval" = yes; then |
6177 | ac_cv_use_newgrid='wxUSE_NEW_GRID=yes' | |
6178 | else | |
6179 | ac_cv_use_newgrid='wxUSE_NEW_GRID=no' | |
6180 | fi | |
698dcdb6 | 6181 | |
10f2d63a | 6182 | else |
698dcdb6 | 6183 | |
10f2d63a VZ |
6184 | LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}` |
6185 | if test "x$LINE" != x ; then | |
6186 | eval "DEFAULT_$LINE" | |
6187 | else | |
6188 | no_cache=1 | |
6189 | fi | |
6190 | ||
6191 | ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID | |
698dcdb6 VZ |
6192 | |
6193 | fi | |
10f2d63a VZ |
6194 | |
6195 | ||
6196 | eval "$ac_cv_use_newgrid" | |
6197 | if test "$no_cache" != 1; then | |
6198 | echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp | |
6199 | fi | |
6200 | ||
6201 | if test "$wxUSE_NEW_GRID" = yes; then | |
698dcdb6 | 6202 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6203 | else |
698dcdb6 | 6204 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6205 | fi |
698dcdb6 | 6206 | |
10f2d63a | 6207 | |
698dcdb6 | 6208 | echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6 |
9e691f46 | 6209 | echo "configure:6210: checking for --enable-imaglist" >&5 |
10f2d63a VZ |
6210 | no_cache=0 |
6211 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
6212 | if test "${enable_imaglist+set}" = set; then | |
6213 | enableval="$enable_imaglist" | |
698dcdb6 | 6214 | |
10f2d63a VZ |
6215 | if test "$enableval" = yes; then |
6216 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
6217 | else | |
6218 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
6219 | fi | |
698dcdb6 | 6220 | |
10f2d63a | 6221 | else |
698dcdb6 | 6222 | |
10f2d63a VZ |
6223 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` |
6224 | if test "x$LINE" != x ; then | |
6225 | eval "DEFAULT_$LINE" | |
6226 | else | |
6227 | no_cache=1 | |
6228 | fi | |
6229 | ||
6230 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
698dcdb6 VZ |
6231 | |
6232 | fi | |
10f2d63a VZ |
6233 | |
6234 | ||
6235 | eval "$ac_cv_use_imaglist" | |
6236 | if test "$no_cache" != 1; then | |
6237 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
6238 | fi | |
6239 | ||
6240 | if test "$wxUSE_IMAGLIST" = yes; then | |
698dcdb6 | 6241 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6242 | else |
698dcdb6 | 6243 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6244 | fi |
698dcdb6 | 6245 | |
10f2d63a | 6246 | |
698dcdb6 | 6247 | echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6 |
9e691f46 | 6248 | echo "configure:6249: checking for --enable-listbox" >&5 |
10f2d63a VZ |
6249 | no_cache=0 |
6250 | # Check whether --enable-listbox or --disable-listbox was given. | |
6251 | if test "${enable_listbox+set}" = set; then | |
6252 | enableval="$enable_listbox" | |
698dcdb6 | 6253 | |
10f2d63a VZ |
6254 | if test "$enableval" = yes; then |
6255 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
6256 | else | |
6257 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
6258 | fi | |
698dcdb6 | 6259 | |
10f2d63a | 6260 | else |
698dcdb6 | 6261 | |
10f2d63a VZ |
6262 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` |
6263 | if test "x$LINE" != x ; then | |
6264 | eval "DEFAULT_$LINE" | |
6265 | else | |
6266 | no_cache=1 | |
6267 | fi | |
6268 | ||
6269 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
698dcdb6 VZ |
6270 | |
6271 | fi | |
10f2d63a VZ |
6272 | |
6273 | ||
6274 | eval "$ac_cv_use_listbox" | |
6275 | if test "$no_cache" != 1; then | |
6276 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
6277 | fi | |
6278 | ||
6279 | if test "$wxUSE_LISTBOX" = yes; then | |
698dcdb6 | 6280 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6281 | else |
698dcdb6 | 6282 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6283 | fi |
698dcdb6 | 6284 | |
10f2d63a | 6285 | |
698dcdb6 | 6286 | echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6 |
9e691f46 | 6287 | echo "configure:6288: checking for --enable-listctrl" >&5 |
10f2d63a VZ |
6288 | no_cache=0 |
6289 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
6290 | if test "${enable_listctrl+set}" = set; then | |
6291 | enableval="$enable_listctrl" | |
698dcdb6 | 6292 | |
10f2d63a VZ |
6293 | if test "$enableval" = yes; then |
6294 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
6295 | else | |
6296 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
6297 | fi | |
698dcdb6 | 6298 | |
10f2d63a | 6299 | else |
698dcdb6 | 6300 | |
10f2d63a VZ |
6301 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` |
6302 | if test "x$LINE" != x ; then | |
6303 | eval "DEFAULT_$LINE" | |
6304 | else | |
6305 | no_cache=1 | |
6306 | fi | |
6307 | ||
6308 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
698dcdb6 VZ |
6309 | |
6310 | fi | |
10f2d63a VZ |
6311 | |
6312 | ||
6313 | eval "$ac_cv_use_listctrl" | |
6314 | if test "$no_cache" != 1; then | |
6315 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
6316 | fi | |
6317 | ||
6318 | if test "$wxUSE_LISTCTRL" = yes; then | |
698dcdb6 | 6319 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6320 | else |
698dcdb6 | 6321 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6322 | fi |
698dcdb6 | 6323 | |
10f2d63a | 6324 | |
698dcdb6 | 6325 | echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6 |
9e691f46 | 6326 | echo "configure:6327: checking for --enable-notebook" >&5 |
10f2d63a VZ |
6327 | no_cache=0 |
6328 | # Check whether --enable-notebook or --disable-notebook was given. | |
6329 | if test "${enable_notebook+set}" = set; then | |
6330 | enableval="$enable_notebook" | |
698dcdb6 | 6331 | |
10f2d63a VZ |
6332 | if test "$enableval" = yes; then |
6333 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
6334 | else | |
6335 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
6336 | fi | |
698dcdb6 | 6337 | |
10f2d63a | 6338 | else |
698dcdb6 | 6339 | |
10f2d63a VZ |
6340 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` |
6341 | if test "x$LINE" != x ; then | |
6342 | eval "DEFAULT_$LINE" | |
6343 | else | |
6344 | no_cache=1 | |
6345 | fi | |
6346 | ||
6347 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
698dcdb6 VZ |
6348 | |
6349 | fi | |
10f2d63a VZ |
6350 | |
6351 | ||
6352 | eval "$ac_cv_use_notebook" | |
6353 | if test "$no_cache" != 1; then | |
6354 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
6355 | fi | |
6356 | ||
6357 | if test "$wxUSE_NOTEBOOK" = yes; then | |
698dcdb6 | 6358 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6359 | else |
698dcdb6 | 6360 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6361 | fi |
698dcdb6 | 6362 | |
10f2d63a | 6363 | |
24176f2c | 6364 | echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6 |
9e691f46 | 6365 | echo "configure:6366: checking for --enable-propsheet" >&5 |
24176f2c GD |
6366 | no_cache=0 |
6367 | # Check whether --enable-propsheet or --disable-propsheet was given. | |
6368 | if test "${enable_propsheet+set}" = set; then | |
6369 | enableval="$enable_propsheet" | |
6370 | ||
6371 | if test "$enableval" = yes; then | |
6372 | ac_cv_use_propsheet='wxUSE_PROPSHEET=yes' | |
6373 | else | |
6374 | ac_cv_use_propsheet='wxUSE_PROPSHEET=no' | |
6375 | fi | |
6376 | ||
6377 | else | |
6378 | ||
6379 | LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}` | |
6380 | if test "x$LINE" != x ; then | |
6381 | eval "DEFAULT_$LINE" | |
6382 | else | |
6383 | no_cache=1 | |
6384 | fi | |
6385 | ||
6386 | ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET | |
6387 | ||
6388 | fi | |
6389 | ||
6390 | ||
6391 | eval "$ac_cv_use_propsheet" | |
6392 | if test "$no_cache" != 1; then | |
6393 | echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp | |
6394 | fi | |
6395 | ||
6396 | if test "$wxUSE_PROPSHEET" = yes; then | |
6397 | echo "$ac_t""yes" 1>&6 | |
6398 | else | |
6399 | echo "$ac_t""no" 1>&6 | |
6400 | fi | |
6401 | ||
6402 | ||
698dcdb6 | 6403 | echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6 |
9e691f46 | 6404 | echo "configure:6405: checking for --enable-radiobox" >&5 |
10f2d63a VZ |
6405 | no_cache=0 |
6406 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
6407 | if test "${enable_radiobox+set}" = set; then | |
6408 | enableval="$enable_radiobox" | |
698dcdb6 | 6409 | |
10f2d63a VZ |
6410 | if test "$enableval" = yes; then |
6411 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
6412 | else | |
6413 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
6414 | fi | |
698dcdb6 | 6415 | |
10f2d63a | 6416 | else |
698dcdb6 | 6417 | |
10f2d63a VZ |
6418 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` |
6419 | if test "x$LINE" != x ; then | |
6420 | eval "DEFAULT_$LINE" | |
6421 | else | |
6422 | no_cache=1 | |
6423 | fi | |
6424 | ||
6425 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
698dcdb6 VZ |
6426 | |
6427 | fi | |
10f2d63a VZ |
6428 | |
6429 | ||
6430 | eval "$ac_cv_use_radiobox" | |
6431 | if test "$no_cache" != 1; then | |
6432 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
6433 | fi | |
6434 | ||
6435 | if test "$wxUSE_RADIOBOX" = yes; then | |
698dcdb6 | 6436 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6437 | else |
698dcdb6 | 6438 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6439 | fi |
698dcdb6 | 6440 | |
10f2d63a | 6441 | |
698dcdb6 | 6442 | echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6 |
9e691f46 | 6443 | echo "configure:6444: checking for --enable-radiobtn" >&5 |
10f2d63a VZ |
6444 | no_cache=0 |
6445 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
6446 | if test "${enable_radiobtn+set}" = set; then | |
6447 | enableval="$enable_radiobtn" | |
698dcdb6 | 6448 | |
10f2d63a VZ |
6449 | if test "$enableval" = yes; then |
6450 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
6451 | else | |
6452 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
6453 | fi | |
698dcdb6 | 6454 | |
10f2d63a | 6455 | else |
698dcdb6 | 6456 | |
10f2d63a VZ |
6457 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` |
6458 | if test "x$LINE" != x ; then | |
6459 | eval "DEFAULT_$LINE" | |
6460 | else | |
6461 | no_cache=1 | |
6462 | fi | |
6463 | ||
6464 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
698dcdb6 VZ |
6465 | |
6466 | fi | |
10f2d63a VZ |
6467 | |
6468 | ||
6469 | eval "$ac_cv_use_radiobtn" | |
6470 | if test "$no_cache" != 1; then | |
6471 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
6472 | fi | |
6473 | ||
6474 | if test "$wxUSE_RADIOBTN" = yes; then | |
698dcdb6 | 6475 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6476 | else |
698dcdb6 | 6477 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6478 | fi |
698dcdb6 | 6479 | |
10f2d63a | 6480 | |
698dcdb6 | 6481 | echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6 |
9e691f46 | 6482 | echo "configure:6483: checking for --enable-sash" >&5 |
10f2d63a VZ |
6483 | no_cache=0 |
6484 | # Check whether --enable-sash or --disable-sash was given. | |
6485 | if test "${enable_sash+set}" = set; then | |
6486 | enableval="$enable_sash" | |
698dcdb6 | 6487 | |
10f2d63a VZ |
6488 | if test "$enableval" = yes; then |
6489 | ac_cv_use_sash='wxUSE_SASH=yes' | |
6490 | else | |
6491 | ac_cv_use_sash='wxUSE_SASH=no' | |
6492 | fi | |
698dcdb6 | 6493 | |
10f2d63a | 6494 | else |
698dcdb6 | 6495 | |
10f2d63a VZ |
6496 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` |
6497 | if test "x$LINE" != x ; then | |
6498 | eval "DEFAULT_$LINE" | |
6499 | else | |
6500 | no_cache=1 | |
6501 | fi | |
6502 | ||
6503 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
698dcdb6 VZ |
6504 | |
6505 | fi | |
10f2d63a VZ |
6506 | |
6507 | ||
6508 | eval "$ac_cv_use_sash" | |
6509 | if test "$no_cache" != 1; then | |
6510 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
6511 | fi | |
6512 | ||
6513 | if test "$wxUSE_SASH" = yes; then | |
698dcdb6 | 6514 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6515 | else |
698dcdb6 | 6516 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6517 | fi |
698dcdb6 | 6518 | |
10f2d63a | 6519 | |
698dcdb6 | 6520 | echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6 |
9e691f46 | 6521 | echo "configure:6522: checking for --enable-scrollbar" >&5 |
10f2d63a VZ |
6522 | no_cache=0 |
6523 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
6524 | if test "${enable_scrollbar+set}" = set; then | |
6525 | enableval="$enable_scrollbar" | |
698dcdb6 | 6526 | |
10f2d63a VZ |
6527 | if test "$enableval" = yes; then |
6528 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
6529 | else | |
6530 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
6531 | fi | |
698dcdb6 | 6532 | |
10f2d63a | 6533 | else |
698dcdb6 | 6534 | |
10f2d63a VZ |
6535 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` |
6536 | if test "x$LINE" != x ; then | |
6537 | eval "DEFAULT_$LINE" | |
6538 | else | |
6539 | no_cache=1 | |
6540 | fi | |
6541 | ||
6542 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
698dcdb6 VZ |
6543 | |
6544 | fi | |
10f2d63a VZ |
6545 | |
6546 | ||
6547 | eval "$ac_cv_use_scrollbar" | |
6548 | if test "$no_cache" != 1; then | |
6549 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
6550 | fi | |
6551 | ||
6552 | if test "$wxUSE_SCROLLBAR" = yes; then | |
698dcdb6 | 6553 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6554 | else |
698dcdb6 | 6555 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6556 | fi |
698dcdb6 | 6557 | |
10f2d63a | 6558 | |
698dcdb6 | 6559 | echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6 |
9e691f46 | 6560 | echo "configure:6561: checking for --enable-slider" >&5 |
10f2d63a VZ |
6561 | no_cache=0 |
6562 | # Check whether --enable-slider or --disable-slider was given. | |
6563 | if test "${enable_slider+set}" = set; then | |
6564 | enableval="$enable_slider" | |
698dcdb6 | 6565 | |
10f2d63a VZ |
6566 | if test "$enableval" = yes; then |
6567 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
6568 | else | |
6569 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
6570 | fi | |
698dcdb6 | 6571 | |
10f2d63a | 6572 | else |
698dcdb6 | 6573 | |
10f2d63a VZ |
6574 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` |
6575 | if test "x$LINE" != x ; then | |
6576 | eval "DEFAULT_$LINE" | |
6577 | else | |
6578 | no_cache=1 | |
6579 | fi | |
6580 | ||
6581 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
698dcdb6 VZ |
6582 | |
6583 | fi | |
10f2d63a VZ |
6584 | |
6585 | ||
6586 | eval "$ac_cv_use_slider" | |
6587 | if test "$no_cache" != 1; then | |
6588 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
6589 | fi | |
6590 | ||
6591 | if test "$wxUSE_SLIDER" = yes; then | |
698dcdb6 | 6592 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6593 | else |
698dcdb6 | 6594 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6595 | fi |
698dcdb6 | 6596 | |
10f2d63a | 6597 | |
698dcdb6 | 6598 | echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6 |
9e691f46 | 6599 | echo "configure:6600: checking for --enable-spinbtn" >&5 |
10f2d63a VZ |
6600 | no_cache=0 |
6601 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
6602 | if test "${enable_spinbtn+set}" = set; then | |
6603 | enableval="$enable_spinbtn" | |
698dcdb6 | 6604 | |
10f2d63a VZ |
6605 | if test "$enableval" = yes; then |
6606 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
6607 | else | |
6608 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
6609 | fi | |
698dcdb6 | 6610 | |
10f2d63a | 6611 | else |
698dcdb6 | 6612 | |
10f2d63a VZ |
6613 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` |
6614 | if test "x$LINE" != x ; then | |
6615 | eval "DEFAULT_$LINE" | |
6616 | else | |
6617 | no_cache=1 | |
6618 | fi | |
6619 | ||
6620 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
698dcdb6 VZ |
6621 | |
6622 | fi | |
10f2d63a VZ |
6623 | |
6624 | ||
6625 | eval "$ac_cv_use_spinbtn" | |
6626 | if test "$no_cache" != 1; then | |
6627 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
6628 | fi | |
6629 | ||
6630 | if test "$wxUSE_SPINBTN" = yes; then | |
698dcdb6 | 6631 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6632 | else |
698dcdb6 | 6633 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6634 | fi |
698dcdb6 | 6635 | |
10f2d63a | 6636 | |
698dcdb6 | 6637 | echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6 |
9e691f46 | 6638 | echo "configure:6639: checking for --enable-spinctrl" >&5 |
56cfaa52 RR |
6639 | no_cache=0 |
6640 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
6641 | if test "${enable_spinctrl+set}" = set; then | |
6642 | enableval="$enable_spinctrl" | |
698dcdb6 | 6643 | |
56cfaa52 RR |
6644 | if test "$enableval" = yes; then |
6645 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
6646 | else | |
6647 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
6648 | fi | |
698dcdb6 | 6649 | |
56cfaa52 | 6650 | else |
698dcdb6 | 6651 | |
56cfaa52 RR |
6652 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` |
6653 | if test "x$LINE" != x ; then | |
6654 | eval "DEFAULT_$LINE" | |
6655 | else | |
6656 | no_cache=1 | |
6657 | fi | |
6658 | ||
6659 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
698dcdb6 VZ |
6660 | |
6661 | fi | |
56cfaa52 RR |
6662 | |
6663 | ||
6664 | eval "$ac_cv_use_spinctrl" | |
6665 | if test "$no_cache" != 1; then | |
6666 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
6667 | fi | |
6668 | ||
6669 | if test "$wxUSE_SPINCTRL" = yes; then | |
698dcdb6 | 6670 | echo "$ac_t""yes" 1>&6 |
56cfaa52 | 6671 | else |
698dcdb6 | 6672 | echo "$ac_t""no" 1>&6 |
56cfaa52 | 6673 | fi |
698dcdb6 | 6674 | |
56cfaa52 | 6675 | |
698dcdb6 | 6676 | echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6 |
9e691f46 | 6677 | echo "configure:6678: checking for --enable-splitter" >&5 |
10f2d63a VZ |
6678 | no_cache=0 |
6679 | # Check whether --enable-splitter or --disable-splitter was given. | |
6680 | if test "${enable_splitter+set}" = set; then | |
6681 | enableval="$enable_splitter" | |
698dcdb6 | 6682 | |
10f2d63a VZ |
6683 | if test "$enableval" = yes; then |
6684 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
6685 | else | |
6686 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
6687 | fi | |
698dcdb6 | 6688 | |
10f2d63a | 6689 | else |
698dcdb6 | 6690 | |
10f2d63a VZ |
6691 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` |
6692 | if test "x$LINE" != x ; then | |
6693 | eval "DEFAULT_$LINE" | |
6694 | else | |
6695 | no_cache=1 | |
6696 | fi | |
6697 | ||
6698 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
698dcdb6 VZ |
6699 | |
6700 | fi | |
10f2d63a VZ |
6701 | |
6702 | ||
6703 | eval "$ac_cv_use_splitter" | |
6704 | if test "$no_cache" != 1; then | |
6705 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
6706 | fi | |
6707 | ||
6708 | if test "$wxUSE_SPLITTER" = yes; then | |
698dcdb6 | 6709 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6710 | else |
698dcdb6 | 6711 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6712 | fi |
698dcdb6 | 6713 | |
10f2d63a | 6714 | |
698dcdb6 | 6715 | echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6 |
9e691f46 | 6716 | echo "configure:6717: checking for --enable-statbmp" >&5 |
10f2d63a VZ |
6717 | no_cache=0 |
6718 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
6719 | if test "${enable_statbmp+set}" = set; then | |
6720 | enableval="$enable_statbmp" | |
698dcdb6 | 6721 | |
10f2d63a VZ |
6722 | if test "$enableval" = yes; then |
6723 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
6724 | else | |
6725 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
6726 | fi | |
698dcdb6 | 6727 | |
10f2d63a | 6728 | else |
698dcdb6 | 6729 | |
10f2d63a VZ |
6730 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` |
6731 | if test "x$LINE" != x ; then | |
6732 | eval "DEFAULT_$LINE" | |
6733 | else | |
6734 | no_cache=1 | |
6735 | fi | |
6736 | ||
6737 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
698dcdb6 VZ |
6738 | |
6739 | fi | |
10f2d63a VZ |
6740 | |
6741 | ||
6742 | eval "$ac_cv_use_statbmp" | |
6743 | if test "$no_cache" != 1; then | |
6744 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
6745 | fi | |
6746 | ||
6747 | if test "$wxUSE_STATBMP" = yes; then | |
698dcdb6 | 6748 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6749 | else |
698dcdb6 | 6750 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6751 | fi |
698dcdb6 | 6752 | |
10f2d63a | 6753 | |
698dcdb6 | 6754 | echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6 |
9e691f46 | 6755 | echo "configure:6756: checking for --enable-statbox" >&5 |
10f2d63a VZ |
6756 | no_cache=0 |
6757 | # Check whether --enable-statbox or --disable-statbox was given. | |
6758 | if test "${enable_statbox+set}" = set; then | |
6759 | enableval="$enable_statbox" | |
698dcdb6 | 6760 | |
10f2d63a VZ |
6761 | if test "$enableval" = yes; then |
6762 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
6763 | else | |
6764 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
6765 | fi | |
698dcdb6 | 6766 | |
10f2d63a | 6767 | else |
698dcdb6 | 6768 | |
10f2d63a VZ |
6769 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` |
6770 | if test "x$LINE" != x ; then | |
6771 | eval "DEFAULT_$LINE" | |
6772 | else | |
6773 | no_cache=1 | |
6774 | fi | |
6775 | ||
6776 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
698dcdb6 VZ |
6777 | |
6778 | fi | |
10f2d63a VZ |
6779 | |
6780 | ||
6781 | eval "$ac_cv_use_statbox" | |
6782 | if test "$no_cache" != 1; then | |
6783 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
6784 | fi | |
6785 | ||
6786 | if test "$wxUSE_STATBOX" = yes; then | |
698dcdb6 | 6787 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6788 | else |
698dcdb6 | 6789 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6790 | fi |
698dcdb6 | 6791 | |
10f2d63a | 6792 | |
698dcdb6 | 6793 | echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6 |
9e691f46 | 6794 | echo "configure:6795: checking for --enable-statline" >&5 |
10f2d63a VZ |
6795 | no_cache=0 |
6796 | # Check whether --enable-statline or --disable-statline was given. | |
6797 | if test "${enable_statline+set}" = set; then | |
6798 | enableval="$enable_statline" | |
698dcdb6 | 6799 | |
10f2d63a VZ |
6800 | if test "$enableval" = yes; then |
6801 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
6802 | else | |
6803 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
6804 | fi | |
698dcdb6 | 6805 | |
10f2d63a | 6806 | else |
698dcdb6 | 6807 | |
10f2d63a VZ |
6808 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` |
6809 | if test "x$LINE" != x ; then | |
6810 | eval "DEFAULT_$LINE" | |
6811 | else | |
6812 | no_cache=1 | |
6813 | fi | |
6814 | ||
6815 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
698dcdb6 VZ |
6816 | |
6817 | fi | |
10f2d63a VZ |
6818 | |
6819 | ||
6820 | eval "$ac_cv_use_statline" | |
6821 | if test "$no_cache" != 1; then | |
6822 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
6823 | fi | |
6824 | ||
6825 | if test "$wxUSE_STATLINE" = yes; then | |
698dcdb6 | 6826 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6827 | else |
698dcdb6 | 6828 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6829 | fi |
698dcdb6 | 6830 | |
10f2d63a | 6831 | |
1e6feb95 | 6832 | echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6 |
9e691f46 | 6833 | echo "configure:6834: checking for --enable-stattext" >&5 |
1e6feb95 VZ |
6834 | no_cache=0 |
6835 | # Check whether --enable-stattext or --disable-stattext was given. | |
6836 | if test "${enable_stattext+set}" = set; then | |
6837 | enableval="$enable_stattext" | |
6838 | ||
6839 | if test "$enableval" = yes; then | |
6840 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
6841 | else | |
6842 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
6843 | fi | |
6844 | ||
6845 | else | |
6846 | ||
6847 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
6848 | if test "x$LINE" != x ; then | |
6849 | eval "DEFAULT_$LINE" | |
6850 | else | |
6851 | no_cache=1 | |
6852 | fi | |
6853 | ||
6854 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
6855 | ||
6856 | fi | |
6857 | ||
6858 | ||
6859 | eval "$ac_cv_use_stattext" | |
6860 | if test "$no_cache" != 1; then | |
6861 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
6862 | fi | |
6863 | ||
6864 | if test "$wxUSE_STATTEXT" = yes; then | |
6865 | echo "$ac_t""yes" 1>&6 | |
6866 | else | |
6867 | echo "$ac_t""no" 1>&6 | |
6868 | fi | |
6869 | ||
6870 | ||
698dcdb6 | 6871 | echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6 |
9e691f46 | 6872 | echo "configure:6873: checking for --enable-statusbar" >&5 |
10f2d63a VZ |
6873 | no_cache=0 |
6874 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
6875 | if test "${enable_statusbar+set}" = set; then | |
6876 | enableval="$enable_statusbar" | |
698dcdb6 | 6877 | |
10f2d63a VZ |
6878 | if test "$enableval" = yes; then |
6879 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
6880 | else | |
6881 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
6882 | fi | |
698dcdb6 | 6883 | |
10f2d63a | 6884 | else |
698dcdb6 | 6885 | |
10f2d63a VZ |
6886 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` |
6887 | if test "x$LINE" != x ; then | |
6888 | eval "DEFAULT_$LINE" | |
6889 | else | |
6890 | no_cache=1 | |
6891 | fi | |
6892 | ||
6893 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
698dcdb6 VZ |
6894 | |
6895 | fi | |
10f2d63a VZ |
6896 | |
6897 | ||
6898 | eval "$ac_cv_use_statusbar" | |
6899 | if test "$no_cache" != 1; then | |
6900 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
6901 | fi | |
6902 | ||
6903 | if test "$wxUSE_STATUSBAR" = yes; then | |
698dcdb6 | 6904 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6905 | else |
698dcdb6 | 6906 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6907 | fi |
698dcdb6 | 6908 | |
10f2d63a | 6909 | |
698dcdb6 | 6910 | echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6 |
9e691f46 | 6911 | echo "configure:6912: checking for --enable-tabdialog" >&5 |
10f2d63a VZ |
6912 | no_cache=0 |
6913 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
6914 | if test "${enable_tabdialog+set}" = set; then | |
6915 | enableval="$enable_tabdialog" | |
698dcdb6 | 6916 | |
10f2d63a VZ |
6917 | if test "$enableval" = yes; then |
6918 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
6919 | else | |
6920 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
6921 | fi | |
698dcdb6 | 6922 | |
10f2d63a | 6923 | else |
698dcdb6 | 6924 | |
10f2d63a VZ |
6925 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` |
6926 | if test "x$LINE" != x ; then | |
6927 | eval "DEFAULT_$LINE" | |
6928 | else | |
6929 | no_cache=1 | |
6930 | fi | |
6931 | ||
6932 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
698dcdb6 VZ |
6933 | |
6934 | fi | |
10f2d63a VZ |
6935 | |
6936 | ||
6937 | eval "$ac_cv_use_tabdialog" | |
6938 | if test "$no_cache" != 1; then | |
6939 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
6940 | fi | |
6941 | ||
6942 | if test "$wxUSE_TABDIALOG" = yes; then | |
698dcdb6 | 6943 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6944 | else |
698dcdb6 | 6945 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6946 | fi |
698dcdb6 | 6947 | |
10f2d63a | 6948 | |
1e6feb95 | 6949 | echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6 |
9e691f46 | 6950 | echo "configure:6951: checking for --enable-textctrl" >&5 |
1e6feb95 VZ |
6951 | no_cache=0 |
6952 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
6953 | if test "${enable_textctrl+set}" = set; then | |
6954 | enableval="$enable_textctrl" | |
6955 | ||
6956 | if test "$enableval" = yes; then | |
6957 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
6958 | else | |
6959 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
6960 | fi | |
6961 | ||
6962 | else | |
6963 | ||
6964 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
6965 | if test "x$LINE" != x ; then | |
6966 | eval "DEFAULT_$LINE" | |
6967 | else | |
6968 | no_cache=1 | |
6969 | fi | |
6970 | ||
6971 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
6972 | ||
6973 | fi | |
6974 | ||
6975 | ||
6976 | eval "$ac_cv_use_textctrl" | |
6977 | if test "$no_cache" != 1; then | |
6978 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
6979 | fi | |
6980 | ||
6981 | if test "$wxUSE_TEXTCTRL" = yes; then | |
6982 | echo "$ac_t""yes" 1>&6 | |
6983 | else | |
6984 | echo "$ac_t""no" 1>&6 | |
6985 | fi | |
6986 | ||
6987 | ||
698dcdb6 | 6988 | echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6 |
9e691f46 | 6989 | echo "configure:6990: checking for --enable-togglebtn" >&5 |
1db8dc4a VZ |
6990 | no_cache=0 |
6991 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
6992 | if test "${enable_togglebtn+set}" = set; then | |
6993 | enableval="$enable_togglebtn" | |
698dcdb6 | 6994 | |
1db8dc4a VZ |
6995 | if test "$enableval" = yes; then |
6996 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
6997 | else | |
6998 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
6999 | fi | |
698dcdb6 | 7000 | |
1db8dc4a | 7001 | else |
698dcdb6 | 7002 | |
1db8dc4a VZ |
7003 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` |
7004 | if test "x$LINE" != x ; then | |
7005 | eval "DEFAULT_$LINE" | |
7006 | else | |
7007 | no_cache=1 | |
7008 | fi | |
7009 | ||
7010 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
698dcdb6 VZ |
7011 | |
7012 | fi | |
1db8dc4a VZ |
7013 | |
7014 | ||
7015 | eval "$ac_cv_use_togglebtn" | |
7016 | if test "$no_cache" != 1; then | |
7017 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
7018 | fi | |
7019 | ||
7020 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
698dcdb6 | 7021 | echo "$ac_t""yes" 1>&6 |
1db8dc4a | 7022 | else |
698dcdb6 | 7023 | echo "$ac_t""no" 1>&6 |
1db8dc4a | 7024 | fi |
698dcdb6 | 7025 | |
1db8dc4a | 7026 | |
698dcdb6 | 7027 | echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6 |
9e691f46 | 7028 | echo "configure:7029: checking for --enable-toolbar" >&5 |
10f2d63a VZ |
7029 | no_cache=0 |
7030 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
7031 | if test "${enable_toolbar+set}" = set; then | |
7032 | enableval="$enable_toolbar" | |
698dcdb6 | 7033 | |
10f2d63a VZ |
7034 | if test "$enableval" = yes; then |
7035 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
7036 | else | |
7037 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
7038 | fi | |
698dcdb6 | 7039 | |
10f2d63a | 7040 | else |
698dcdb6 | 7041 | |
10f2d63a VZ |
7042 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` |
7043 | if test "x$LINE" != x ; then | |
7044 | eval "DEFAULT_$LINE" | |
7045 | else | |
7046 | no_cache=1 | |
7047 | fi | |
7048 | ||
7049 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
698dcdb6 VZ |
7050 | |
7051 | fi | |
10f2d63a VZ |
7052 | |
7053 | ||
7054 | eval "$ac_cv_use_toolbar" | |
7055 | if test "$no_cache" != 1; then | |
7056 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
7057 | fi | |
7058 | ||
7059 | if test "$wxUSE_TOOLBAR" = yes; then | |
698dcdb6 | 7060 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7061 | else |
698dcdb6 | 7062 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7063 | fi |
698dcdb6 | 7064 | |
10f2d63a | 7065 | |
698dcdb6 | 7066 | echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6 |
9e691f46 | 7067 | echo "configure:7068: checking for --enable-tbarnative" >&5 |
360d6699 VZ |
7068 | no_cache=0 |
7069 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
7070 | if test "${enable_tbarnative+set}" = set; then | |
7071 | enableval="$enable_tbarnative" | |
698dcdb6 | 7072 | |
360d6699 VZ |
7073 | if test "$enableval" = yes; then |
7074 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
7075 | else | |
7076 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
7077 | fi | |
698dcdb6 | 7078 | |
360d6699 | 7079 | else |
698dcdb6 | 7080 | |
360d6699 VZ |
7081 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` |
7082 | if test "x$LINE" != x ; then | |
7083 | eval "DEFAULT_$LINE" | |
7084 | else | |
7085 | no_cache=1 | |
7086 | fi | |
7087 | ||
7088 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
698dcdb6 VZ |
7089 | |
7090 | fi | |
360d6699 VZ |
7091 | |
7092 | ||
7093 | eval "$ac_cv_use_tbarnative" | |
7094 | if test "$no_cache" != 1; then | |
7095 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
7096 | fi | |
7097 | ||
7098 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
698dcdb6 | 7099 | echo "$ac_t""yes" 1>&6 |
360d6699 | 7100 | else |
698dcdb6 | 7101 | echo "$ac_t""no" 1>&6 |
360d6699 | 7102 | fi |
698dcdb6 | 7103 | |
360d6699 | 7104 | |
698dcdb6 | 7105 | echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6 |
9e691f46 | 7106 | echo "configure:7107: checking for --enable-tbarsmpl" >&5 |
360d6699 VZ |
7107 | no_cache=0 |
7108 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
7109 | if test "${enable_tbarsmpl+set}" = set; then | |
7110 | enableval="$enable_tbarsmpl" | |
698dcdb6 | 7111 | |
360d6699 VZ |
7112 | if test "$enableval" = yes; then |
7113 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
7114 | else | |
7115 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
7116 | fi | |
698dcdb6 | 7117 | |
360d6699 | 7118 | else |
698dcdb6 | 7119 | |
360d6699 VZ |
7120 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` |
7121 | if test "x$LINE" != x ; then | |
7122 | eval "DEFAULT_$LINE" | |
7123 | else | |
7124 | no_cache=1 | |
7125 | fi | |
7126 | ||
7127 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
698dcdb6 VZ |
7128 | |
7129 | fi | |
360d6699 VZ |
7130 | |
7131 | ||
7132 | eval "$ac_cv_use_tbarsmpl" | |
7133 | if test "$no_cache" != 1; then | |
7134 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
7135 | fi | |
7136 | ||
7137 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
698dcdb6 | 7138 | echo "$ac_t""yes" 1>&6 |
360d6699 | 7139 | else |
698dcdb6 | 7140 | echo "$ac_t""no" 1>&6 |
360d6699 | 7141 | fi |
698dcdb6 | 7142 | |
360d6699 | 7143 | |
698dcdb6 | 7144 | echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6 |
9e691f46 | 7145 | echo "configure:7146: checking for --enable-treectrl" >&5 |
10f2d63a VZ |
7146 | no_cache=0 |
7147 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
7148 | if test "${enable_treectrl+set}" = set; then | |
7149 | enableval="$enable_treectrl" | |
698dcdb6 | 7150 | |
10f2d63a VZ |
7151 | if test "$enableval" = yes; then |
7152 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
7153 | else | |
7154 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
7155 | fi | |
698dcdb6 | 7156 | |
10f2d63a | 7157 | else |
698dcdb6 | 7158 | |
10f2d63a VZ |
7159 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` |
7160 | if test "x$LINE" != x ; then | |
7161 | eval "DEFAULT_$LINE" | |
7162 | else | |
7163 | no_cache=1 | |
7164 | fi | |
7165 | ||
7166 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
698dcdb6 VZ |
7167 | |
7168 | fi | |
10f2d63a VZ |
7169 | |
7170 | ||
1e6feb95 VZ |
7171 | eval "$ac_cv_use_treectrl" |
7172 | if test "$no_cache" != 1; then | |
7173 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
7174 | fi | |
7175 | ||
7176 | if test "$wxUSE_TREECTRL" = yes; then | |
7177 | echo "$ac_t""yes" 1>&6 | |
7178 | else | |
7179 | echo "$ac_t""no" 1>&6 | |
7180 | fi | |
7181 | ||
7182 | ||
9926e4a4 | 7183 | echo $ac_n "checking for --enable-tipwindow""... $ac_c" 1>&6 |
9e691f46 | 7184 | echo "configure:7185: checking for --enable-tipwindow" >&5 |
9926e4a4 VZ |
7185 | no_cache=0 |
7186 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
7187 | if test "${enable_tipwindow+set}" = set; then | |
7188 | enableval="$enable_tipwindow" | |
7189 | ||
7190 | if test "$enableval" = yes; then | |
7191 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
7192 | else | |
7193 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
7194 | fi | |
7195 | ||
7196 | else | |
7197 | ||
7198 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` | |
7199 | if test "x$LINE" != x ; then | |
7200 | eval "DEFAULT_$LINE" | |
7201 | else | |
7202 | no_cache=1 | |
7203 | fi | |
7204 | ||
7205 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
7206 | ||
7207 | fi | |
7208 | ||
7209 | ||
7210 | eval "$ac_cv_use_tipwindow" | |
7211 | if test "$no_cache" != 1; then | |
7212 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
7213 | fi | |
7214 | ||
7215 | if test "$wxUSE_TIPWINDOW" = yes; then | |
7216 | echo "$ac_t""yes" 1>&6 | |
7217 | else | |
7218 | echo "$ac_t""no" 1>&6 | |
7219 | fi | |
7220 | ||
7221 | ||
9f41d601 | 7222 | echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6 |
9e691f46 | 7223 | echo "configure:7224: checking for --enable-popupwin" >&5 |
9f41d601 RR |
7224 | no_cache=0 |
7225 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
7226 | if test "${enable_popupwin+set}" = set; then | |
7227 | enableval="$enable_popupwin" | |
7228 | ||
7229 | if test "$enableval" = yes; then | |
7230 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
7231 | else | |
7232 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
7233 | fi | |
7234 | ||
7235 | else | |
7236 | ||
7237 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` | |
7238 | if test "x$LINE" != x ; then | |
7239 | eval "DEFAULT_$LINE" | |
7240 | else | |
7241 | no_cache=1 | |
7242 | fi | |
7243 | ||
7244 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
7245 | ||
7246 | fi | |
7247 | ||
7248 | ||
7249 | eval "$ac_cv_use_popupwin" | |
7250 | if test "$no_cache" != 1; then | |
7251 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
7252 | fi | |
7253 | ||
7254 | if test "$wxUSE_POPUPWIN" = yes; then | |
7255 | echo "$ac_t""yes" 1>&6 | |
7256 | else | |
7257 | echo "$ac_t""no" 1>&6 | |
7258 | fi | |
7259 | ||
7260 | ||
1e6feb95 VZ |
7261 | |
7262 | ||
7263 | echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6 | |
9e691f46 | 7264 | echo "configure:7265: checking for --enable-commondlg" >&5 |
1e6feb95 VZ |
7265 | no_cache=0 |
7266 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
7267 | if test "${enable_commondlg+set}" = set; then | |
7268 | enableval="$enable_commondlg" | |
7269 | ||
7270 | if test "$enableval" = yes; then | |
7271 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
7272 | else | |
7273 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
7274 | fi | |
7275 | ||
7276 | else | |
7277 | ||
7278 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
7279 | if test "x$LINE" != x ; then | |
7280 | eval "DEFAULT_$LINE" | |
7281 | else | |
7282 | no_cache=1 | |
7283 | fi | |
7284 | ||
7285 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
7286 | ||
7287 | fi | |
7288 | ||
7289 | ||
7290 | eval "$ac_cv_use_commondlg" | |
7291 | if test "$no_cache" != 1; then | |
7292 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
7293 | fi | |
7294 | ||
7295 | if test "$wxUSE_COMMONDLGS" = yes; then | |
7296 | echo "$ac_t""yes" 1>&6 | |
7297 | else | |
7298 | echo "$ac_t""no" 1>&6 | |
7299 | fi | |
7300 | ||
7301 | ||
7302 | echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6 | |
9e691f46 | 7303 | echo "configure:7304: checking for --enable-choicedlg" >&5 |
1e6feb95 VZ |
7304 | no_cache=0 |
7305 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
7306 | if test "${enable_choicedlg+set}" = set; then | |
7307 | enableval="$enable_choicedlg" | |
7308 | ||
7309 | if test "$enableval" = yes; then | |
7310 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
7311 | else | |
7312 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
7313 | fi | |
7314 | ||
7315 | else | |
7316 | ||
7317 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
7318 | if test "x$LINE" != x ; then | |
7319 | eval "DEFAULT_$LINE" | |
7320 | else | |
7321 | no_cache=1 | |
7322 | fi | |
7323 | ||
7324 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
7325 | ||
7326 | fi | |
7327 | ||
7328 | ||
7329 | eval "$ac_cv_use_choicedlg" | |
7330 | if test "$no_cache" != 1; then | |
7331 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
7332 | fi | |
7333 | ||
7334 | if test "$wxUSE_CHOICEDLG" = yes; then | |
7335 | echo "$ac_t""yes" 1>&6 | |
7336 | else | |
7337 | echo "$ac_t""no" 1>&6 | |
7338 | fi | |
7339 | ||
7340 | ||
7341 | echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6 | |
9e691f46 | 7342 | echo "configure:7343: checking for --enable-coldlg" >&5 |
1e6feb95 VZ |
7343 | no_cache=0 |
7344 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
7345 | if test "${enable_coldlg+set}" = set; then | |
7346 | enableval="$enable_coldlg" | |
7347 | ||
7348 | if test "$enableval" = yes; then | |
7349 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
7350 | else | |
7351 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
7352 | fi | |
7353 | ||
7354 | else | |
7355 | ||
7356 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
7357 | if test "x$LINE" != x ; then | |
7358 | eval "DEFAULT_$LINE" | |
7359 | else | |
7360 | no_cache=1 | |
7361 | fi | |
7362 | ||
7363 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
7364 | ||
7365 | fi | |
7366 | ||
7367 | ||
7368 | eval "$ac_cv_use_coldlg" | |
7369 | if test "$no_cache" != 1; then | |
7370 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
7371 | fi | |
7372 | ||
7373 | if test "$wxUSE_COLOURDLG" = yes; then | |
7374 | echo "$ac_t""yes" 1>&6 | |
7375 | else | |
7376 | echo "$ac_t""no" 1>&6 | |
7377 | fi | |
7378 | ||
7379 | ||
7380 | echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6 | |
9e691f46 | 7381 | echo "configure:7382: checking for --enable-filedlg" >&5 |
1e6feb95 VZ |
7382 | no_cache=0 |
7383 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
7384 | if test "${enable_filedlg+set}" = set; then | |
7385 | enableval="$enable_filedlg" | |
7386 | ||
7387 | if test "$enableval" = yes; then | |
7388 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
7389 | else | |
7390 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
7391 | fi | |
7392 | ||
7393 | else | |
7394 | ||
7395 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
7396 | if test "x$LINE" != x ; then | |
7397 | eval "DEFAULT_$LINE" | |
7398 | else | |
7399 | no_cache=1 | |
7400 | fi | |
7401 | ||
7402 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
7403 | ||
7404 | fi | |
7405 | ||
7406 | ||
7407 | eval "$ac_cv_use_filedlg" | |
7408 | if test "$no_cache" != 1; then | |
7409 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
7410 | fi | |
7411 | ||
7412 | if test "$wxUSE_FILEDLG" = yes; then | |
7413 | echo "$ac_t""yes" 1>&6 | |
7414 | else | |
7415 | echo "$ac_t""no" 1>&6 | |
7416 | fi | |
7417 | ||
7418 | ||
69d27ff7 | 7419 | echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6 |
9e691f46 | 7420 | echo "configure:7421: checking for --enable-finddlg" >&5 |
8db37e06 | 7421 | no_cache=0 |
69d27ff7 MB |
7422 | # Check whether --enable-finddlg or --disable-finddlg was given. |
7423 | if test "${enable_finddlg+set}" = set; then | |
7424 | enableval="$enable_finddlg" | |
8db37e06 VZ |
7425 | |
7426 | if test "$enableval" = yes; then | |
69d27ff7 | 7427 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' |
8db37e06 | 7428 | else |
69d27ff7 | 7429 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' |
8db37e06 VZ |
7430 | fi |
7431 | ||
7432 | else | |
7433 | ||
7434 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` | |
7435 | if test "x$LINE" != x ; then | |
7436 | eval "DEFAULT_$LINE" | |
7437 | else | |
7438 | no_cache=1 | |
7439 | fi | |
7440 | ||
69d27ff7 | 7441 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG |
8db37e06 VZ |
7442 | |
7443 | fi | |
7444 | ||
7445 | ||
69d27ff7 | 7446 | eval "$ac_cv_use_finddlg" |
8db37e06 | 7447 | if test "$no_cache" != 1; then |
69d27ff7 | 7448 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp |
8db37e06 VZ |
7449 | fi |
7450 | ||
7451 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
7452 | echo "$ac_t""yes" 1>&6 | |
7453 | else | |
7454 | echo "$ac_t""no" 1>&6 | |
7455 | fi | |
7456 | ||
7457 | ||
1e6feb95 | 7458 | echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6 |
9e691f46 | 7459 | echo "configure:7460: checking for --enable-fontdlg" >&5 |
1e6feb95 VZ |
7460 | no_cache=0 |
7461 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
7462 | if test "${enable_fontdlg+set}" = set; then | |
7463 | enableval="$enable_fontdlg" | |
7464 | ||
7465 | if test "$enableval" = yes; then | |
7466 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
7467 | else | |
7468 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
7469 | fi | |
7470 | ||
7471 | else | |
7472 | ||
7473 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
7474 | if test "x$LINE" != x ; then | |
7475 | eval "DEFAULT_$LINE" | |
7476 | else | |
7477 | no_cache=1 | |
7478 | fi | |
7479 | ||
7480 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
7481 | ||
7482 | fi | |
7483 | ||
7484 | ||
7485 | eval "$ac_cv_use_fontdlg" | |
7486 | if test "$no_cache" != 1; then | |
7487 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
7488 | fi | |
7489 | ||
7490 | if test "$wxUSE_FONTDLG" = yes; then | |
7491 | echo "$ac_t""yes" 1>&6 | |
7492 | else | |
7493 | echo "$ac_t""no" 1>&6 | |
7494 | fi | |
7495 | ||
7496 | ||
7497 | echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6 | |
9e691f46 | 7498 | echo "configure:7499: checking for --enable-dirdlg" >&5 |
1e6feb95 VZ |
7499 | no_cache=0 |
7500 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
7501 | if test "${enable_dirdlg+set}" = set; then | |
7502 | enableval="$enable_dirdlg" | |
7503 | ||
7504 | if test "$enableval" = yes; then | |
7505 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
7506 | else | |
7507 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
7508 | fi | |
7509 | ||
7510 | else | |
7511 | ||
7512 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
7513 | if test "x$LINE" != x ; then | |
7514 | eval "DEFAULT_$LINE" | |
7515 | else | |
7516 | no_cache=1 | |
7517 | fi | |
7518 | ||
7519 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
7520 | ||
7521 | fi | |
7522 | ||
7523 | ||
7524 | eval "$ac_cv_use_dirdlg" | |
10f2d63a | 7525 | if test "$no_cache" != 1; then |
1e6feb95 | 7526 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7527 | fi |
7528 | ||
1e6feb95 | 7529 | if test "$wxUSE_DIRDLG" = yes; then |
698dcdb6 | 7530 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7531 | else |
698dcdb6 | 7532 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7533 | fi |
698dcdb6 VZ |
7534 | |
7535 | ||
1e6feb95 | 7536 | echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6 |
9e691f46 | 7537 | echo "configure:7538: checking for --enable-msgdlg" >&5 |
10f2d63a | 7538 | no_cache=0 |
1e6feb95 VZ |
7539 | # Check whether --enable-msgdlg or --disable-msgdlg was given. |
7540 | if test "${enable_msgdlg+set}" = set; then | |
7541 | enableval="$enable_msgdlg" | |
698dcdb6 | 7542 | |
10f2d63a | 7543 | if test "$enableval" = yes; then |
1e6feb95 | 7544 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' |
10f2d63a | 7545 | else |
1e6feb95 | 7546 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' |
10f2d63a | 7547 | fi |
698dcdb6 | 7548 | |
10f2d63a | 7549 | else |
698dcdb6 | 7550 | |
1e6feb95 | 7551 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
7552 | if test "x$LINE" != x ; then |
7553 | eval "DEFAULT_$LINE" | |
7554 | else | |
7555 | no_cache=1 | |
7556 | fi | |
7557 | ||
1e6feb95 | 7558 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG |
698dcdb6 VZ |
7559 | |
7560 | fi | |
10f2d63a VZ |
7561 | |
7562 | ||
1e6feb95 | 7563 | eval "$ac_cv_use_msgdlg" |
10f2d63a | 7564 | if test "$no_cache" != 1; then |
1e6feb95 | 7565 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7566 | fi |
7567 | ||
1e6feb95 | 7568 | if test "$wxUSE_MSGDLG" = yes; then |
698dcdb6 | 7569 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7570 | else |
698dcdb6 | 7571 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7572 | fi |
698dcdb6 | 7573 | |
10f2d63a | 7574 | |
1e6feb95 | 7575 | echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6 |
9e691f46 | 7576 | echo "configure:7577: checking for --enable-numberdlg" >&5 |
10f2d63a | 7577 | no_cache=0 |
1e6feb95 VZ |
7578 | # Check whether --enable-numberdlg or --disable-numberdlg was given. |
7579 | if test "${enable_numberdlg+set}" = set; then | |
7580 | enableval="$enable_numberdlg" | |
698dcdb6 | 7581 | |
10f2d63a | 7582 | if test "$enableval" = yes; then |
1e6feb95 | 7583 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' |
10f2d63a | 7584 | else |
1e6feb95 | 7585 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' |
10f2d63a | 7586 | fi |
698dcdb6 | 7587 | |
10f2d63a | 7588 | else |
698dcdb6 | 7589 | |
1e6feb95 | 7590 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
7591 | if test "x$LINE" != x ; then |
7592 | eval "DEFAULT_$LINE" | |
7593 | else | |
7594 | no_cache=1 | |
7595 | fi | |
7596 | ||
1e6feb95 | 7597 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG |
698dcdb6 VZ |
7598 | |
7599 | fi | |
10f2d63a VZ |
7600 | |
7601 | ||
1e6feb95 | 7602 | eval "$ac_cv_use_numberdlg" |
10f2d63a | 7603 | if test "$no_cache" != 1; then |
1e6feb95 | 7604 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7605 | fi |
7606 | ||
1e6feb95 | 7607 | if test "$wxUSE_NUMBERDLG" = yes; then |
698dcdb6 | 7608 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7609 | else |
698dcdb6 | 7610 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7611 | fi |
698dcdb6 | 7612 | |
10f2d63a | 7613 | |
cbca9943 | 7614 | echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6 |
9e691f46 | 7615 | echo "configure:7616: checking for --enable-splash" >&5 |
cbca9943 VZ |
7616 | no_cache=0 |
7617 | # Check whether --enable-splash or --disable-splash was given. | |
7618 | if test "${enable_splash+set}" = set; then | |
7619 | enableval="$enable_splash" | |
7620 | ||
7621 | if test "$enableval" = yes; then | |
7622 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
7623 | else | |
7624 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
7625 | fi | |
7626 | ||
7627 | else | |
7628 | ||
7629 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` | |
7630 | if test "x$LINE" != x ; then | |
7631 | eval "DEFAULT_$LINE" | |
7632 | else | |
7633 | no_cache=1 | |
7634 | fi | |
7635 | ||
7636 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
7637 | ||
7638 | fi | |
7639 | ||
7640 | ||
7641 | eval "$ac_cv_use_splash" | |
7642 | if test "$no_cache" != 1; then | |
7643 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
7644 | fi | |
7645 | ||
7646 | if test "$wxUSE_SPLASH" = yes; then | |
7647 | echo "$ac_t""yes" 1>&6 | |
7648 | else | |
7649 | echo "$ac_t""no" 1>&6 | |
7650 | fi | |
7651 | ||
7652 | ||
698dcdb6 | 7653 | echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6 |
9e691f46 | 7654 | echo "configure:7655: checking for --enable-textdlg" >&5 |
10f2d63a VZ |
7655 | no_cache=0 |
7656 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
7657 | if test "${enable_textdlg+set}" = set; then | |
7658 | enableval="$enable_textdlg" | |
698dcdb6 | 7659 | |
10f2d63a VZ |
7660 | if test "$enableval" = yes; then |
7661 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
7662 | else | |
7663 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
7664 | fi | |
698dcdb6 | 7665 | |
10f2d63a | 7666 | else |
698dcdb6 | 7667 | |
10f2d63a VZ |
7668 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` |
7669 | if test "x$LINE" != x ; then | |
7670 | eval "DEFAULT_$LINE" | |
7671 | else | |
7672 | no_cache=1 | |
7673 | fi | |
7674 | ||
7675 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
698dcdb6 VZ |
7676 | |
7677 | fi | |
10f2d63a VZ |
7678 | |
7679 | ||
7680 | eval "$ac_cv_use_textdlg" | |
7681 | if test "$no_cache" != 1; then | |
7682 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
7683 | fi | |
7684 | ||
7685 | if test "$wxUSE_TEXTDLG" = yes; then | |
698dcdb6 | 7686 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7687 | else |
698dcdb6 | 7688 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7689 | fi |
698dcdb6 | 7690 | |
10f2d63a | 7691 | |
698dcdb6 | 7692 | echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6 |
9e691f46 | 7693 | echo "configure:7694: checking for --enable-tipdlg" >&5 |
10f2d63a VZ |
7694 | no_cache=0 |
7695 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
7696 | if test "${enable_tipdlg+set}" = set; then | |
7697 | enableval="$enable_tipdlg" | |
698dcdb6 | 7698 | |
10f2d63a VZ |
7699 | if test "$enableval" = yes; then |
7700 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
7701 | else | |
7702 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
7703 | fi | |
698dcdb6 | 7704 | |
10f2d63a | 7705 | else |
698dcdb6 | 7706 | |
10f2d63a VZ |
7707 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` |
7708 | if test "x$LINE" != x ; then | |
7709 | eval "DEFAULT_$LINE" | |
7710 | else | |
7711 | no_cache=1 | |
7712 | fi | |
7713 | ||
7714 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
698dcdb6 VZ |
7715 | |
7716 | fi | |
10f2d63a VZ |
7717 | |
7718 | ||
7719 | eval "$ac_cv_use_tipdlg" | |
7720 | if test "$no_cache" != 1; then | |
7721 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
7722 | fi | |
7723 | ||
7724 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
698dcdb6 | 7725 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7726 | else |
698dcdb6 | 7727 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7728 | fi |
698dcdb6 | 7729 | |
10f2d63a | 7730 | |
698dcdb6 | 7731 | echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6 |
9e691f46 | 7732 | echo "configure:7733: checking for --enable-progressdlg" >&5 |
10f2d63a VZ |
7733 | no_cache=0 |
7734 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
7735 | if test "${enable_progressdlg+set}" = set; then | |
7736 | enableval="$enable_progressdlg" | |
698dcdb6 | 7737 | |
10f2d63a VZ |
7738 | if test "$enableval" = yes; then |
7739 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
7740 | else | |
7741 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
7742 | fi | |
698dcdb6 | 7743 | |
10f2d63a | 7744 | else |
698dcdb6 | 7745 | |
10f2d63a VZ |
7746 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` |
7747 | if test "x$LINE" != x ; then | |
7748 | eval "DEFAULT_$LINE" | |
7749 | else | |
7750 | no_cache=1 | |
7751 | fi | |
7752 | ||
7753 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
698dcdb6 VZ |
7754 | |
7755 | fi | |
10f2d63a VZ |
7756 | |
7757 | ||
7758 | eval "$ac_cv_use_progressdlg" | |
7759 | if test "$no_cache" != 1; then | |
7760 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
7761 | fi | |
7762 | ||
7763 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
698dcdb6 | 7764 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7765 | else |
698dcdb6 | 7766 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7767 | fi |
698dcdb6 | 7768 | |
10f2d63a | 7769 | |
b1f5d087 | 7770 | echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6 |
9e691f46 | 7771 | echo "configure:7772: checking for --enable-wizarddlg" >&5 |
b1f5d087 VZ |
7772 | no_cache=0 |
7773 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
7774 | if test "${enable_wizarddlg+set}" = set; then | |
7775 | enableval="$enable_wizarddlg" | |
7776 | ||
7777 | if test "$enableval" = yes; then | |
7778 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
7779 | else | |
7780 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
7781 | fi | |
7782 | ||
7783 | else | |
7784 | ||
7785 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
7786 | if test "x$LINE" != x ; then | |
7787 | eval "DEFAULT_$LINE" | |
7788 | else | |
7789 | no_cache=1 | |
7790 | fi | |
7791 | ||
7792 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
7793 | ||
7794 | fi | |
7795 | ||
7796 | ||
7797 | eval "$ac_cv_use_wizarddlg" | |
7798 | if test "$no_cache" != 1; then | |
7799 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
7800 | fi | |
7801 | ||
7802 | if test "$wxUSE_WIZARDDLG" = yes; then | |
7803 | echo "$ac_t""yes" 1>&6 | |
7804 | else | |
7805 | echo "$ac_t""no" 1>&6 | |
7806 | fi | |
7807 | ||
7808 | ||
7809 | ||
7810 | ||
1e6feb95 | 7811 | echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6 |
9e691f46 | 7812 | echo "configure:7813: checking for --enable-menus" >&5 |
1e6feb95 VZ |
7813 | no_cache=0 |
7814 | # Check whether --enable-menus or --disable-menus was given. | |
7815 | if test "${enable_menus+set}" = set; then | |
7816 | enableval="$enable_menus" | |
7817 | ||
7818 | if test "$enableval" = yes; then | |
7819 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
7820 | else | |
7821 | ac_cv_use_menus='wxUSE_MENUS=no' | |
7822 | fi | |
7823 | ||
7824 | else | |
7825 | ||
7826 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
7827 | if test "x$LINE" != x ; then | |
7828 | eval "DEFAULT_$LINE" | |
7829 | else | |
7830 | no_cache=1 | |
7831 | fi | |
7832 | ||
7833 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
7834 | ||
7835 | fi | |
7836 | ||
7837 | ||
7838 | eval "$ac_cv_use_menus" | |
7839 | if test "$no_cache" != 1; then | |
7840 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
7841 | fi | |
7842 | ||
7843 | if test "$wxUSE_MENUS" = yes; then | |
7844 | echo "$ac_t""yes" 1>&6 | |
7845 | else | |
7846 | echo "$ac_t""no" 1>&6 | |
7847 | fi | |
7848 | ||
7849 | ||
698dcdb6 | 7850 | echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6 |
9e691f46 | 7851 | echo "configure:7852: checking for --enable-miniframe" >&5 |
10f2d63a VZ |
7852 | no_cache=0 |
7853 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
7854 | if test "${enable_miniframe+set}" = set; then | |
7855 | enableval="$enable_miniframe" | |
698dcdb6 | 7856 | |
10f2d63a VZ |
7857 | if test "$enableval" = yes; then |
7858 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
7859 | else | |
7860 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
7861 | fi | |
698dcdb6 | 7862 | |
10f2d63a | 7863 | else |
698dcdb6 | 7864 | |
10f2d63a VZ |
7865 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` |
7866 | if test "x$LINE" != x ; then | |
7867 | eval "DEFAULT_$LINE" | |
7868 | else | |
7869 | no_cache=1 | |
7870 | fi | |
7871 | ||
7872 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
698dcdb6 VZ |
7873 | |
7874 | fi | |
10f2d63a VZ |
7875 | |
7876 | ||
7877 | eval "$ac_cv_use_miniframe" | |
7878 | if test "$no_cache" != 1; then | |
7879 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
7880 | fi | |
7881 | ||
7882 | if test "$wxUSE_MINIFRAME" = yes; then | |
698dcdb6 | 7883 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7884 | else |
698dcdb6 | 7885 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7886 | fi |
698dcdb6 | 7887 | |
10f2d63a | 7888 | |
698dcdb6 | 7889 | echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6 |
9e691f46 | 7890 | echo "configure:7891: checking for --enable-tooltips" >&5 |
10f2d63a VZ |
7891 | no_cache=0 |
7892 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
7893 | if test "${enable_tooltips+set}" = set; then | |
7894 | enableval="$enable_tooltips" | |
698dcdb6 | 7895 | |
10f2d63a VZ |
7896 | if test "$enableval" = yes; then |
7897 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
7898 | else | |
7899 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
7900 | fi | |
698dcdb6 | 7901 | |
10f2d63a | 7902 | else |
698dcdb6 | 7903 | |
10f2d63a VZ |
7904 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` |
7905 | if test "x$LINE" != x ; then | |
7906 | eval "DEFAULT_$LINE" | |
7907 | else | |
7908 | no_cache=1 | |
7909 | fi | |
7910 | ||
7911 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
698dcdb6 VZ |
7912 | |
7913 | fi | |
10f2d63a VZ |
7914 | |
7915 | ||
7916 | eval "$ac_cv_use_tooltips" | |
7917 | if test "$no_cache" != 1; then | |
7918 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
7919 | fi | |
7920 | ||
7921 | if test "$wxUSE_TOOLTIPS" = yes; then | |
698dcdb6 | 7922 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7923 | else |
698dcdb6 | 7924 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7925 | fi |
698dcdb6 | 7926 | |
10f2d63a | 7927 | |
698dcdb6 | 7928 | echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6 |
9e691f46 | 7929 | echo "configure:7930: checking for --enable-splines" >&5 |
10f2d63a VZ |
7930 | no_cache=0 |
7931 | # Check whether --enable-splines or --disable-splines was given. | |
7932 | if test "${enable_splines+set}" = set; then | |
7933 | enableval="$enable_splines" | |
698dcdb6 | 7934 | |
10f2d63a VZ |
7935 | if test "$enableval" = yes; then |
7936 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
7937 | else | |
7938 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
7939 | fi | |
698dcdb6 | 7940 | |
10f2d63a | 7941 | else |
698dcdb6 | 7942 | |
10f2d63a VZ |
7943 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` |
7944 | if test "x$LINE" != x ; then | |
7945 | eval "DEFAULT_$LINE" | |
7946 | else | |
7947 | no_cache=1 | |
7948 | fi | |
7949 | ||
7950 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
698dcdb6 VZ |
7951 | |
7952 | fi | |
10f2d63a VZ |
7953 | |
7954 | ||
7955 | eval "$ac_cv_use_splines" | |
7956 | if test "$no_cache" != 1; then | |
7957 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
7958 | fi | |
7959 | ||
7960 | if test "$wxUSE_SPLINES" = yes; then | |
698dcdb6 | 7961 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7962 | else |
698dcdb6 | 7963 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7964 | fi |
698dcdb6 | 7965 | |
10f2d63a | 7966 | |
698dcdb6 | 7967 | echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6 |
9e691f46 | 7968 | echo "configure:7969: checking for --enable-validators" >&5 |
10f2d63a VZ |
7969 | no_cache=0 |
7970 | # Check whether --enable-validators or --disable-validators was given. | |
7971 | if test "${enable_validators+set}" = set; then | |
7972 | enableval="$enable_validators" | |
698dcdb6 | 7973 | |
10f2d63a VZ |
7974 | if test "$enableval" = yes; then |
7975 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
7976 | else | |
7977 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
7978 | fi | |
698dcdb6 | 7979 | |
10f2d63a | 7980 | else |
698dcdb6 | 7981 | |
10f2d63a VZ |
7982 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` |
7983 | if test "x$LINE" != x ; then | |
7984 | eval "DEFAULT_$LINE" | |
7985 | else | |
7986 | no_cache=1 | |
7987 | fi | |
7988 | ||
7989 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
698dcdb6 VZ |
7990 | |
7991 | fi | |
10f2d63a VZ |
7992 | |
7993 | ||
7994 | eval "$ac_cv_use_validators" | |
7995 | if test "$no_cache" != 1; then | |
7996 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
7997 | fi | |
7998 | ||
7999 | if test "$wxUSE_VALIDATORS" = yes; then | |
698dcdb6 | 8000 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8001 | else |
698dcdb6 | 8002 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8003 | fi |
698dcdb6 | 8004 | |
10f2d63a | 8005 | |
698dcdb6 | 8006 | echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6 |
9e691f46 | 8007 | echo "configure:8008: checking for --enable-busyinfo" >&5 |
10f2d63a VZ |
8008 | no_cache=0 |
8009 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
8010 | if test "${enable_busyinfo+set}" = set; then | |
8011 | enableval="$enable_busyinfo" | |
698dcdb6 | 8012 | |
10f2d63a VZ |
8013 | if test "$enableval" = yes; then |
8014 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
8015 | else | |
8016 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
8017 | fi | |
698dcdb6 | 8018 | |
10f2d63a | 8019 | else |
698dcdb6 | 8020 | |
10f2d63a VZ |
8021 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` |
8022 | if test "x$LINE" != x ; then | |
8023 | eval "DEFAULT_$LINE" | |
8024 | else | |
8025 | no_cache=1 | |
8026 | fi | |
8027 | ||
8028 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
698dcdb6 VZ |
8029 | |
8030 | fi | |
10f2d63a VZ |
8031 | |
8032 | ||
8033 | eval "$ac_cv_use_busyinfo" | |
8034 | if test "$no_cache" != 1; then | |
8035 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
8036 | fi | |
8037 | ||
8038 | if test "$wxUSE_BUSYINFO" = yes; then | |
698dcdb6 | 8039 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8040 | else |
698dcdb6 | 8041 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8042 | fi |
698dcdb6 | 8043 | |
10f2d63a | 8044 | |
698dcdb6 | 8045 | echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6 |
9e691f46 | 8046 | echo "configure:8047: checking for --enable-joystick" >&5 |
f6bcfd97 BP |
8047 | no_cache=0 |
8048 | # Check whether --enable-joystick or --disable-joystick was given. | |
8049 | if test "${enable_joystick+set}" = set; then | |
8050 | enableval="$enable_joystick" | |
698dcdb6 | 8051 | |
f6bcfd97 BP |
8052 | if test "$enableval" = yes; then |
8053 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
8054 | else | |
8055 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
8056 | fi | |
698dcdb6 | 8057 | |
f6bcfd97 | 8058 | else |
698dcdb6 | 8059 | |
f6bcfd97 BP |
8060 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` |
8061 | if test "x$LINE" != x ; then | |
8062 | eval "DEFAULT_$LINE" | |
8063 | else | |
8064 | no_cache=1 | |
8065 | fi | |
8066 | ||
8067 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
698dcdb6 VZ |
8068 | |
8069 | fi | |
f6bcfd97 BP |
8070 | |
8071 | ||
8072 | eval "$ac_cv_use_joystick" | |
8073 | if test "$no_cache" != 1; then | |
8074 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
8075 | fi | |
8076 | ||
8077 | if test "$wxUSE_JOYSTICK" = yes; then | |
698dcdb6 | 8078 | echo "$ac_t""yes" 1>&6 |
f6bcfd97 | 8079 | else |
698dcdb6 | 8080 | echo "$ac_t""no" 1>&6 |
f6bcfd97 | 8081 | fi |
698dcdb6 VZ |
8082 | |
8083 | ||
1e6feb95 | 8084 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
9e691f46 | 8085 | echo "configure:8086: checking for --enable-metafile" >&5 |
1e6feb95 VZ |
8086 | no_cache=0 |
8087 | # Check whether --enable-metafile or --disable-metafile was given. | |
8088 | if test "${enable_metafile+set}" = set; then | |
8089 | enableval="$enable_metafile" | |
8090 | ||
8091 | if test "$enableval" = yes; then | |
8092 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
8093 | else | |
8094 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
8095 | fi | |
8096 | ||
8097 | else | |
8098 | ||
8099 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
8100 | if test "x$LINE" != x ; then | |
8101 | eval "DEFAULT_$LINE" | |
8102 | else | |
8103 | no_cache=1 | |
8104 | fi | |
8105 | ||
8106 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
8107 | ||
8108 | fi | |
8109 | ||
8110 | ||
8111 | eval "$ac_cv_use_metafile" | |
8112 | if test "$no_cache" != 1; then | |
8113 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
8114 | fi | |
8115 | ||
8116 | if test "$wxUSE_METAFILE" = yes; then | |
8117 | echo "$ac_t""yes" 1>&6 | |
8118 | else | |
8119 | echo "$ac_t""no" 1>&6 | |
8120 | fi | |
8121 | ||
8122 | ||
24fd6d87 | 8123 | echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6 |
9e691f46 | 8124 | echo "configure:8125: checking for --enable-dragimage" >&5 |
24fd6d87 VZ |
8125 | no_cache=0 |
8126 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
8127 | if test "${enable_dragimage+set}" = set; then | |
8128 | enableval="$enable_dragimage" | |
8129 | ||
8130 | if test "$enableval" = yes; then | |
8131 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
8132 | else | |
8133 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
8134 | fi | |
8135 | ||
8136 | else | |
8137 | ||
8138 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
8139 | if test "x$LINE" != x ; then | |
8140 | eval "DEFAULT_$LINE" | |
8141 | else | |
8142 | no_cache=1 | |
8143 | fi | |
8144 | ||
8145 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
8146 | ||
8147 | fi | |
8148 | ||
8149 | ||
8150 | eval "$ac_cv_use_dragimage" | |
8151 | if test "$no_cache" != 1; then | |
8152 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
8153 | fi | |
8154 | ||
8155 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
8156 | echo "$ac_t""yes" 1>&6 | |
8157 | else | |
8158 | echo "$ac_t""no" 1>&6 | |
8159 | fi | |
8160 | ||
8161 | ||
10f2d63a | 8162 | |
698dcdb6 | 8163 | |
edae8572 | 8164 | echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6 |
9e691f46 | 8165 | echo "configure:8166: checking for --enable-palette" >&5 |
edae8572 VZ |
8166 | no_cache=0 |
8167 | # Check whether --enable-palette or --disable-palette was given. | |
8168 | if test "${enable_palette+set}" = set; then | |
8169 | enableval="$enable_palette" | |
8170 | ||
8171 | if test "$enableval" = yes; then | |
8172 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
8173 | else | |
8174 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
8175 | fi | |
8176 | ||
8177 | else | |
8178 | ||
8179 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` | |
8180 | if test "x$LINE" != x ; then | |
8181 | eval "DEFAULT_$LINE" | |
8182 | else | |
8183 | no_cache=1 | |
8184 | fi | |
8185 | ||
8186 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
8187 | ||
8188 | fi | |
8189 | ||
8190 | ||
8191 | eval "$ac_cv_use_palette" | |
8192 | if test "$no_cache" != 1; then | |
8193 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
8194 | fi | |
8195 | ||
8196 | if test "$wxUSE_PALETTE" = yes; then | |
8197 | echo "$ac_t""yes" 1>&6 | |
8198 | else | |
8199 | echo "$ac_t""no" 1>&6 | |
8200 | fi | |
8201 | ||
8202 | ||
698dcdb6 | 8203 | echo $ac_n "checking for --enable-image""... $ac_c" 1>&6 |
9e691f46 | 8204 | echo "configure:8205: checking for --enable-image" >&5 |
0046ff7c VS |
8205 | no_cache=0 |
8206 | # Check whether --enable-image or --disable-image was given. | |
8207 | if test "${enable_image+set}" = set; then | |
8208 | enableval="$enable_image" | |
698dcdb6 | 8209 | |
0046ff7c VS |
8210 | if test "$enableval" = yes; then |
8211 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
8212 | else | |
8213 | ac_cv_use_image='wxUSE_IMAGE=no' | |
8214 | fi | |
698dcdb6 | 8215 | |
0046ff7c | 8216 | else |
698dcdb6 | 8217 | |
0046ff7c VS |
8218 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` |
8219 | if test "x$LINE" != x ; then | |
8220 | eval "DEFAULT_$LINE" | |
8221 | else | |
8222 | no_cache=1 | |
8223 | fi | |
8224 | ||
8225 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
698dcdb6 VZ |
8226 | |
8227 | fi | |
0046ff7c VS |
8228 | |
8229 | ||
8230 | eval "$ac_cv_use_image" | |
8231 | if test "$no_cache" != 1; then | |
8232 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
8233 | fi | |
8234 | ||
8235 | if test "$wxUSE_IMAGE" = yes; then | |
698dcdb6 | 8236 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 8237 | else |
698dcdb6 | 8238 | echo "$ac_t""no" 1>&6 |
0046ff7c | 8239 | fi |
698dcdb6 | 8240 | |
0046ff7c | 8241 | |
698dcdb6 | 8242 | echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6 |
9e691f46 | 8243 | echo "configure:8244: checking for --enable-gif" >&5 |
10f2d63a VZ |
8244 | no_cache=0 |
8245 | # Check whether --enable-gif or --disable-gif was given. | |
8246 | if test "${enable_gif+set}" = set; then | |
8247 | enableval="$enable_gif" | |
698dcdb6 | 8248 | |
10f2d63a VZ |
8249 | if test "$enableval" = yes; then |
8250 | ac_cv_use_gif='wxUSE_GIF=yes' | |
8251 | else | |
8252 | ac_cv_use_gif='wxUSE_GIF=no' | |
8253 | fi | |
698dcdb6 | 8254 | |
10f2d63a | 8255 | else |
698dcdb6 | 8256 | |
10f2d63a VZ |
8257 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` |
8258 | if test "x$LINE" != x ; then | |
8259 | eval "DEFAULT_$LINE" | |
8260 | else | |
8261 | no_cache=1 | |
8262 | fi | |
8263 | ||
8264 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
698dcdb6 VZ |
8265 | |
8266 | fi | |
10f2d63a VZ |
8267 | |
8268 | ||
8269 | eval "$ac_cv_use_gif" | |
8270 | if test "$no_cache" != 1; then | |
8271 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
8272 | fi | |
8273 | ||
8274 | if test "$wxUSE_GIF" = yes; then | |
698dcdb6 | 8275 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8276 | else |
698dcdb6 | 8277 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8278 | fi |
698dcdb6 | 8279 | |
10f2d63a | 8280 | |
698dcdb6 | 8281 | echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6 |
9e691f46 | 8282 | echo "configure:8283: checking for --enable-pcx" >&5 |
10f2d63a VZ |
8283 | no_cache=0 |
8284 | # Check whether --enable-pcx or --disable-pcx was given. | |
8285 | if test "${enable_pcx+set}" = set; then | |
8286 | enableval="$enable_pcx" | |
698dcdb6 | 8287 | |
10f2d63a VZ |
8288 | if test "$enableval" = yes; then |
8289 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
8290 | else | |
8291 | ac_cv_use_pcx='wxUSE_PCX=no' | |
8292 | fi | |
698dcdb6 | 8293 | |
10f2d63a | 8294 | else |
698dcdb6 | 8295 | |
10f2d63a VZ |
8296 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` |
8297 | if test "x$LINE" != x ; then | |
8298 | eval "DEFAULT_$LINE" | |
8299 | else | |
8300 | no_cache=1 | |
8301 | fi | |
8302 | ||
8303 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
698dcdb6 VZ |
8304 | |
8305 | fi | |
10f2d63a VZ |
8306 | |
8307 | ||
8308 | eval "$ac_cv_use_pcx" | |
8309 | if test "$no_cache" != 1; then | |
8310 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
8311 | fi | |
8312 | ||
8313 | if test "$wxUSE_PCX" = yes; then | |
698dcdb6 | 8314 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8315 | else |
698dcdb6 | 8316 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8317 | fi |
698dcdb6 | 8318 | |
10f2d63a | 8319 | |
4b6b4dfc | 8320 | echo $ac_n "checking for --enable-iff""... $ac_c" 1>&6 |
9e691f46 | 8321 | echo "configure:8322: checking for --enable-iff" >&5 |
4b6b4dfc RR |
8322 | no_cache=0 |
8323 | # Check whether --enable-iff or --disable-iff was given. | |
8324 | if test "${enable_iff+set}" = set; then | |
8325 | enableval="$enable_iff" | |
8326 | ||
8327 | if test "$enableval" = yes; then | |
8328 | ac_cv_use_iff='wxUSE_IFF=yes' | |
8329 | else | |
8330 | ac_cv_use_iff='wxUSE_IFF=no' | |
8331 | fi | |
8332 | ||
8333 | else | |
8334 | ||
8335 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` | |
8336 | if test "x$LINE" != x ; then | |
8337 | eval "DEFAULT_$LINE" | |
8338 | else | |
8339 | no_cache=1 | |
8340 | fi | |
8341 | ||
8342 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
8343 | ||
8344 | fi | |
8345 | ||
8346 | ||
8347 | eval "$ac_cv_use_iff" | |
8348 | if test "$no_cache" != 1; then | |
8349 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
8350 | fi | |
8351 | ||
8352 | if test "$wxUSE_IFF" = yes; then | |
8353 | echo "$ac_t""yes" 1>&6 | |
8354 | else | |
8355 | echo "$ac_t""no" 1>&6 | |
8356 | fi | |
8357 | ||
8358 | ||
698dcdb6 | 8359 | echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6 |
9e691f46 | 8360 | echo "configure:8361: checking for --enable-pnm" >&5 |
10f2d63a VZ |
8361 | no_cache=0 |
8362 | # Check whether --enable-pnm or --disable-pnm was given. | |
8363 | if test "${enable_pnm+set}" = set; then | |
8364 | enableval="$enable_pnm" | |
698dcdb6 | 8365 | |
10f2d63a VZ |
8366 | if test "$enableval" = yes; then |
8367 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
8368 | else | |
8369 | ac_cv_use_pnm='wxUSE_PNM=no' | |
8370 | fi | |
698dcdb6 | 8371 | |
10f2d63a | 8372 | else |
698dcdb6 | 8373 | |
10f2d63a VZ |
8374 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` |
8375 | if test "x$LINE" != x ; then | |
8376 | eval "DEFAULT_$LINE" | |
8377 | else | |
8378 | no_cache=1 | |
8379 | fi | |
8380 | ||
8381 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
698dcdb6 VZ |
8382 | |
8383 | fi | |
10f2d63a VZ |
8384 | |
8385 | ||
8386 | eval "$ac_cv_use_pnm" | |
8387 | if test "$no_cache" != 1; then | |
8388 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
8389 | fi | |
8390 | ||
8391 | if test "$wxUSE_PNM" = yes; then | |
698dcdb6 | 8392 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8393 | else |
698dcdb6 | 8394 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8395 | fi |
698dcdb6 | 8396 | |
10f2d63a | 8397 | |
69d27ff7 | 8398 | echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6 |
9e691f46 | 8399 | echo "configure:8400: checking for --enable-xpm" >&5 |
0046ff7c | 8400 | no_cache=0 |
69d27ff7 MB |
8401 | # Check whether --enable-xpm or --disable-xpm was given. |
8402 | if test "${enable_xpm+set}" = set; then | |
8403 | enableval="$enable_xpm" | |
698dcdb6 | 8404 | |
0046ff7c | 8405 | if test "$enableval" = yes; then |
69d27ff7 | 8406 | ac_cv_use_xpm='wxUSE_XPM=yes' |
0046ff7c | 8407 | else |
69d27ff7 | 8408 | ac_cv_use_xpm='wxUSE_XPM=no' |
0046ff7c | 8409 | fi |
698dcdb6 | 8410 | |
0046ff7c | 8411 | else |
698dcdb6 | 8412 | |
0046ff7c VS |
8413 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` |
8414 | if test "x$LINE" != x ; then | |
8415 | eval "DEFAULT_$LINE" | |
8416 | else | |
8417 | no_cache=1 | |
8418 | fi | |
8419 | ||
69d27ff7 | 8420 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM |
698dcdb6 VZ |
8421 | |
8422 | fi | |
0046ff7c VS |
8423 | |
8424 | ||
69d27ff7 | 8425 | eval "$ac_cv_use_xpm" |
0046ff7c | 8426 | if test "$no_cache" != 1; then |
69d27ff7 | 8427 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp |
0046ff7c VS |
8428 | fi |
8429 | ||
8430 | if test "$wxUSE_XPM" = yes; then | |
698dcdb6 | 8431 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 8432 | else |
698dcdb6 | 8433 | echo "$ac_t""no" 1>&6 |
0046ff7c | 8434 | fi |
698dcdb6 | 8435 | |
0046ff7c | 8436 | |
c7206e64 | 8437 | echo $ac_n "checking for --enable-ico_cur""... $ac_c" 1>&6 |
9e691f46 | 8438 | echo "configure:8439: checking for --enable-ico_cur" >&5 |
658974ae | 8439 | no_cache=0 |
c7206e64 VS |
8440 | # Check whether --enable-ico_cur or --disable-ico_cur was given. |
8441 | if test "${enable_ico_cur+set}" = set; then | |
8442 | enableval="$enable_ico_cur" | |
658974ae VS |
8443 | |
8444 | if test "$enableval" = yes; then | |
c7206e64 | 8445 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' |
658974ae | 8446 | else |
c7206e64 | 8447 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' |
658974ae VS |
8448 | fi |
8449 | ||
8450 | else | |
8451 | ||
8452 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` | |
8453 | if test "x$LINE" != x ; then | |
8454 | eval "DEFAULT_$LINE" | |
8455 | else | |
8456 | no_cache=1 | |
8457 | fi | |
8458 | ||
c7206e64 | 8459 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR |
658974ae VS |
8460 | |
8461 | fi | |
8462 | ||
8463 | ||
c7206e64 | 8464 | eval "$ac_cv_use_ico_cur" |
658974ae | 8465 | if test "$no_cache" != 1; then |
c7206e64 | 8466 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp |
658974ae VS |
8467 | fi |
8468 | ||
8469 | if test "$wxUSE_ICO_CUR" = yes; then | |
8470 | echo "$ac_t""yes" 1>&6 | |
8471 | else | |
8472 | echo "$ac_t""no" 1>&6 | |
8473 | fi | |
8474 | ||
8475 | ||
b12915c1 VZ |
8476 | fi |
8477 | ||
d558c907 VS |
8478 | case "${host}" in |
8479 | *-pc-os2_emx | *-pc-os2-emx ) | |
8480 | LEX_STEM="lexyy" | |
8481 | ;; | |
8482 | *) | |
8483 | PATH_IFS=':' | |
8484 | LEX_STEM="lex.yy" | |
8485 | ;; | |
8486 | esac | |
8487 | ||
8488 | ||
698dcdb6 | 8489 | |
10f2d63a VZ |
8490 | echo "saving argument cache $wx_arg_cache_file" |
8491 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
698dcdb6 | 8492 | |
10f2d63a | 8493 | |
698dcdb6 VZ |
8494 | |
8495 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 | |
9e691f46 | 8496 | echo "configure:8497: checking for toolkit" >&5 |
10f2d63a VZ |
8497 | |
8498 | if test "$wxUSE_GUI" = "yes"; then | |
8499 | ||
3a922bb4 RL |
8500 | if test "$USE_BEOS" = 1; then |
8501 | { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; } | |
8502 | fi | |
b12915c1 | 8503 | |
3a922bb4 RL |
8504 | if test "$TOOLKIT_GIVEN" = 1; then |
8505 | for toolkit in `echo $ALL_TOOLKITS`; do | |
8506 | var=wxUSE_$toolkit | |
8507 | eval "value=\$${var}" | |
8508 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
8509 | done | |
10f2d63a | 8510 | else |
3a922bb4 RL |
8511 | for toolkit in `echo $ALL_TOOLKITS`; do |
8512 | if test "$has_toolkit_in_cache" != 1; then | |
8513 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
8514 | else | |
8515 | var=DEFAULT_wxUSE_$toolkit | |
8516 | fi | |
8517 | eval "wxUSE_$toolkit=\$${var}" | |
8518 | done | |
10f2d63a | 8519 | fi |
10f2d63a | 8520 | |
3a922bb4 | 8521 | NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \ |
f79bd02d | 8522 | + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}` |
10f2d63a | 8523 | |
d558c907 | 8524 | case "${host}" in |
6fa882bd | 8525 | *-pc-os2_emx | *-pc-os2-emx ) |
3a922bb4 | 8526 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` |
3a922bb4 | 8527 | esac |
10f2d63a | 8528 | |
3a922bb4 RL |
8529 | case "$NUM_TOOLKITS" in |
8530 | 1) | |
8531 | ;; | |
8532 | 0) | |
8533 | { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; } | |
8534 | ;; | |
8535 | *) | |
8536 | { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; } | |
8537 | esac | |
10f2d63a | 8538 | |
3a922bb4 RL |
8539 | for toolkit in `echo $ALL_TOOLKITS`; do |
8540 | var=wxUSE_$toolkit | |
8541 | eval "value=\$${var}" | |
8542 | if test "x$value" != x; then | |
8543 | cache_var=CACHE_$toolkit | |
8544 | eval "cache=\$${cache_var}" | |
8545 | if test "$cache" = 1; then | |
8546 | echo "$var=$value" >> ${wx_arg_cache_file} | |
8547 | fi | |
8548 | if test "$value" = 1; then | |
8549 | toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]` | |
8550 | echo "$ac_t""$toolkit_echo" 1>&6 | |
8551 | fi | |
8552 | fi | |
8553 | done | |
10f2d63a | 8554 | else |
3a922bb4 | 8555 | echo "$ac_t""base ($host_alias hosted) only" 1>&6 |
10f2d63a VZ |
8556 | fi |
8557 | ||
698dcdb6 VZ |
8558 | |
8559 | cat > confcache <<\EOF | |
10f2d63a VZ |
8560 | # This file is a shell script that caches the results of configure |
8561 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
8562 | # scripts and configure runs. It is not useful on other systems. |
8563 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 8564 | # |
698dcdb6 VZ |
8565 | # By default, configure uses ./config.cache as the cache file, |
8566 | # creating it if it does not exist already. You can give configure | |
8567 | # the --cache-file=FILE option to use a different cache file; that is | |
8568 | # what configure does when it calls configure scripts in | |
8569 | # subdirectories, so they share the cache. | |
8570 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
8571 | # config.status only pays attention to the cache file if you give it the | |
8572 | # --recheck option to rerun configure. | |
10f2d63a | 8573 | # |
698dcdb6 | 8574 | EOF |
10f2d63a VZ |
8575 | # The following way of writing the cache mishandles newlines in values, |
8576 | # but we know of no workaround that is simple, portable, and efficient. | |
8577 | # So, don't put newlines in cache variables' values. | |
8578 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
8579 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
8580 | (set) 2>&1 | |
8581 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
8582 | *ac_space=\ *) | |
8583 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
8584 | # turns \\\\ into \\, and sed turns \\ into \). | |
8585 | sed -n \ | |
8586 | -e "s/'/'\\\\''/g" \ | |
8587 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
8588 | ;; | |
8589 | *) | |
8590 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
8591 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
8592 | ;; | |
8593 | esac >> confcache | |
8594 | if cmp -s $cache_file confcache; then | |
8595 | : | |
8596 | else | |
10f2d63a | 8597 | if test -w $cache_file; then |
698dcdb6 VZ |
8598 | echo "updating cache $cache_file" |
8599 | cat confcache > $cache_file | |
10f2d63a VZ |
8600 | else |
8601 | echo "not updating unwritable cache $cache_file" | |
8602 | fi | |
8603 | fi | |
8604 | rm -f confcache | |
8605 | ||
698dcdb6 | 8606 | |
e59890c3 | 8607 | if test "$build" != "$host" ; then |
9d353d4a | 8608 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then |
3a922bb4 RL |
8609 | CC=$host_alias-gcc |
8610 | CXX=$host_alias-c++ | |
8611 | AR=$host_alias-ar | |
8612 | RANLIB=$host_alias-ranlib | |
8613 | DLLTOOL=$host_alias-dlltool | |
8614 | RESCOMP=$host_alias-windres | |
8615 | LD=$host_alias-ld | |
8616 | NM=$host_alias-nm | |
8617 | STRIP=$host_alias-strip | |
8618 | else | |
8619 | { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; } | |
8620 | fi | |
10f2d63a VZ |
8621 | fi |
8622 | ||
698dcdb6 | 8623 | # Extract the first word of "gcc", so it can be a program name with args. |
1e487827 | 8624 | set dummy gcc; ac_word=$2 |
698dcdb6 | 8625 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
9e691f46 | 8626 | echo "configure:8627: checking for $ac_word" >&5 |
698dcdb6 VZ |
8627 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8628 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6232543b VS |
8629 | else |
8630 | if test -n "$CC"; then | |
8631 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10f2d63a | 8632 | else |
698dcdb6 VZ |
8633 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8634 | ac_dummy="$PATH" | |
8635 | for ac_dir in $ac_dummy; do | |
8636 | test -z "$ac_dir" && ac_dir=. | |
8637 | if test -f $ac_dir/$ac_word; then | |
8638 | ac_cv_prog_CC="gcc" | |
8639 | break | |
8640 | fi | |
8641 | done | |
8642 | IFS="$ac_save_ifs" | |
10f2d63a | 8643 | fi |
6232543b | 8644 | fi |
698dcdb6 | 8645 | CC="$ac_cv_prog_CC" |
6232543b | 8646 | if test -n "$CC"; then |
698dcdb6 | 8647 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 8648 | else |
698dcdb6 | 8649 | echo "$ac_t""no" 1>&6 |
1e487827 | 8650 | fi |
6232543b | 8651 | |
1e487827 VS |
8652 | if test -z "$CC"; then |
8653 | # Extract the first word of "cc", so it can be a program name with args. | |
8654 | set dummy cc; ac_word=$2 | |
698dcdb6 | 8655 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
9e691f46 | 8656 | echo "configure:8657: checking for $ac_word" >&5 |
698dcdb6 VZ |
8657 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8658 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 VS |
8659 | else |
8660 | if test -n "$CC"; then | |
8661 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
8662 | else | |
698dcdb6 | 8663 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1e487827 | 8664 | ac_prog_rejected=no |
698dcdb6 VZ |
8665 | ac_dummy="$PATH" |
8666 | for ac_dir in $ac_dummy; do | |
8667 | test -z "$ac_dir" && ac_dir=. | |
8668 | if test -f $ac_dir/$ac_word; then | |
8669 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
8670 | ac_prog_rejected=yes | |
8671 | continue | |
8672 | fi | |
8673 | ac_cv_prog_CC="cc" | |
8674 | break | |
8675 | fi | |
8676 | done | |
8677 | IFS="$ac_save_ifs" | |
1e487827 VS |
8678 | if test $ac_prog_rejected = yes; then |
8679 | # We found a bogon in the path, so make sure we never use it. | |
8680 | set dummy $ac_cv_prog_CC | |
8681 | shift | |
698dcdb6 | 8682 | if test $# -gt 0; then |
1e487827 VS |
8683 | # We chose a different compiler from the bogus one. |
8684 | # However, it has the same basename, so the bogon will be chosen | |
8685 | # first if we set CC to just the basename; use the full file name. | |
8686 | shift | |
698dcdb6 | 8687 | set dummy "$ac_dir/$ac_word" "$@" |
1e487827 VS |
8688 | shift |
8689 | ac_cv_prog_CC="$@" | |
703e0a69 | 8690 | fi |
1e487827 VS |
8691 | fi |
8692 | fi | |
8693 | fi | |
698dcdb6 | 8694 | CC="$ac_cv_prog_CC" |
1e487827 | 8695 | if test -n "$CC"; then |
698dcdb6 | 8696 | echo "$ac_t""$CC" 1>&6 |
703e0a69 | 8697 | else |
698dcdb6 | 8698 | echo "$ac_t""no" 1>&6 |
703e0a69 | 8699 | fi |
1e487827 | 8700 | |
698dcdb6 VZ |
8701 | if test -z "$CC"; then |
8702 | case "`uname -s`" in | |
8703 | *win32* | *WIN32*) | |
8704 | # Extract the first word of "cl", so it can be a program name with args. | |
8705 | set dummy cl; ac_word=$2 | |
8706 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
9e691f46 | 8707 | echo "configure:8708: checking for $ac_word" >&5 |
698dcdb6 VZ |
8708 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8709 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 VS |
8710 | else |
8711 | if test -n "$CC"; then | |
8712 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
703e0a69 | 8713 | else |
698dcdb6 VZ |
8714 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8715 | ac_dummy="$PATH" | |
8716 | for ac_dir in $ac_dummy; do | |
8717 | test -z "$ac_dir" && ac_dir=. | |
8718 | if test -f $ac_dir/$ac_word; then | |
8719 | ac_cv_prog_CC="cl" | |
8720 | break | |
8721 | fi | |
8722 | done | |
8723 | IFS="$ac_save_ifs" | |
703e0a69 | 8724 | fi |
1e487827 | 8725 | fi |
698dcdb6 | 8726 | CC="$ac_cv_prog_CC" |
1e487827 | 8727 | if test -n "$CC"; then |
698dcdb6 | 8728 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 8729 | else |
698dcdb6 | 8730 | echo "$ac_t""no" 1>&6 |
1e487827 | 8731 | fi |
698dcdb6 VZ |
8732 | ;; |
8733 | esac | |
8734 | fi | |
8735 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
1e487827 VS |
8736 | fi |
8737 | ||
698dcdb6 | 8738 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
9e691f46 | 8739 | echo "configure:8740: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
1e487827 | 8740 | |
698dcdb6 VZ |
8741 | ac_ext=c |
8742 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8743 | ac_cpp='$CPP $CPPFLAGS' | |
8744 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8745 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8746 | cross_compiling=$ac_cv_prog_cc_cross | |
6232543b | 8747 | |
698dcdb6 | 8748 | cat > conftest.$ac_ext << EOF |
1e487827 | 8749 | |
9e691f46 | 8750 | #line 8751 "configure" |
1e487827 VS |
8751 | #include "confdefs.h" |
8752 | ||
698dcdb6 VZ |
8753 | main(){return(0);} |
8754 | EOF | |
9e691f46 | 8755 | if { (eval echo configure:8756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
8756 | ac_cv_prog_cc_works=yes |
8757 | # If we can't run a trivial program, we are probably using a cross compiler. | |
8758 | if (./conftest; exit) 2>/dev/null; then | |
8759 | ac_cv_prog_cc_cross=no | |
8760 | else | |
8761 | ac_cv_prog_cc_cross=yes | |
8762 | fi | |
8763 | else | |
8764 | echo "configure: failed program was:" >&5 | |
8765 | cat conftest.$ac_ext >&5 | |
8766 | ac_cv_prog_cc_works=no | |
8767 | fi | |
8768 | rm -fr conftest* | |
8769 | ac_ext=c | |
8770 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8771 | ac_cpp='$CPP $CPPFLAGS' | |
8772 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8773 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8774 | cross_compiling=$ac_cv_prog_cc_cross | |
8775 | ||
8776 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
8777 | if test $ac_cv_prog_cc_works = no; then | |
8778 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
8779 | fi | |
8780 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
9e691f46 | 8781 | echo "configure:8782: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
698dcdb6 VZ |
8782 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
8783 | cross_compiling=$ac_cv_prog_cc_cross | |
8784 | ||
8785 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
9e691f46 | 8786 | echo "configure:8787: checking whether we are using GNU C" >&5 |
698dcdb6 VZ |
8787 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
8788 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8789 | else | |
8790 | cat > conftest.c <<EOF | |
8791 | #ifdef __GNUC__ | |
8792 | yes; | |
1e487827 | 8793 | #endif |
698dcdb6 | 8794 | EOF |
9e691f46 | 8795 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8796: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
698dcdb6 VZ |
8796 | ac_cv_prog_gcc=yes |
8797 | else | |
8798 | ac_cv_prog_gcc=no | |
8799 | fi | |
8800 | fi | |
1e487827 | 8801 | |
698dcdb6 | 8802 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
1e487827 | 8803 | |
698dcdb6 VZ |
8804 | if test $ac_cv_prog_gcc = yes; then |
8805 | GCC=yes | |
8806 | else | |
8807 | GCC= | |
8808 | fi | |
1e487827 | 8809 | |
698dcdb6 VZ |
8810 | ac_test_CFLAGS="${CFLAGS+set}" |
8811 | ac_save_CFLAGS="$CFLAGS" | |
8812 | CFLAGS= | |
8813 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
9e691f46 | 8814 | echo "configure:8815: checking whether ${CC-cc} accepts -g" >&5 |
698dcdb6 VZ |
8815 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
8816 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8817 | else | |
8818 | echo 'void f(){}' > conftest.c | |
8819 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
10f2d63a VZ |
8820 | ac_cv_prog_cc_g=yes |
8821 | else | |
698dcdb6 | 8822 | ac_cv_prog_cc_g=no |
10f2d63a | 8823 | fi |
698dcdb6 VZ |
8824 | rm -f conftest* |
8825 | ||
10f2d63a | 8826 | fi |
698dcdb6 VZ |
8827 | |
8828 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
10f2d63a | 8829 | if test "$ac_test_CFLAGS" = set; then |
698dcdb6 | 8830 | CFLAGS="$ac_save_CFLAGS" |
10f2d63a VZ |
8831 | elif test $ac_cv_prog_cc_g = yes; then |
8832 | if test "$GCC" = yes; then | |
8833 | CFLAGS="-g -O2" | |
8834 | else | |
8835 | CFLAGS="-g" | |
8836 | fi | |
8837 | else | |
8838 | if test "$GCC" = yes; then | |
8839 | CFLAGS="-O2" | |
8840 | else | |
8841 | CFLAGS= | |
8842 | fi | |
8843 | fi | |
8844 | ||
8845 | ||
698dcdb6 | 8846 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
dfe8399a | 8847 | echo "configure:8848: checking how to run the C preprocessor" >&5 |
10f2d63a VZ |
8848 | # On Suns, sometimes $CPP names a directory. |
8849 | if test -n "$CPP" && test -d "$CPP"; then | |
8850 | CPP= | |
8851 | fi | |
8852 | if test -z "$CPP"; then | |
698dcdb6 VZ |
8853 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
8854 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8855 | else | |
8856 | # This must be in double quotes, not single quotes, because CPP may get | |
8857 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
8858 | CPP="${CC-cc} -E" | |
10f2d63a | 8859 | # On the NeXT, cc -E runs the code through the compiler's parser, |
698dcdb6 VZ |
8860 | # not just through cpp. |
8861 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 8862 | #line 8863 "configure" |
10f2d63a VZ |
8863 | #include "confdefs.h" |
8864 | #include <assert.h> | |
698dcdb6 VZ |
8865 | Syntax Error |
8866 | EOF | |
8867 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
dfe8399a | 8868 | { (eval echo configure:8869: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8869 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8870 | if test -z "$ac_err"; then | |
10f2d63a VZ |
8871 | : |
8872 | else | |
698dcdb6 VZ |
8873 | echo "$ac_err" >&5 |
8874 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8875 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8876 | rm -rf conftest* |
8877 | CPP="${CC-cc} -E -traditional-cpp" | |
8878 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 8879 | #line 8880 "configure" |
10f2d63a | 8880 | #include "confdefs.h" |
698dcdb6 VZ |
8881 | #include <assert.h> |
8882 | Syntax Error | |
8883 | EOF | |
8884 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
dfe8399a | 8885 | { (eval echo configure:8886: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8886 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8887 | if test -z "$ac_err"; then | |
8888 | : | |
10f2d63a | 8889 | else |
698dcdb6 VZ |
8890 | echo "$ac_err" >&5 |
8891 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8892 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8893 | rm -rf conftest* |
8894 | CPP="${CC-cc} -nologo -E" | |
8895 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 8896 | #line 8897 "configure" |
10f2d63a VZ |
8897 | #include "confdefs.h" |
8898 | #include <assert.h> | |
698dcdb6 VZ |
8899 | Syntax Error |
8900 | EOF | |
8901 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
dfe8399a | 8902 | { (eval echo configure:8903: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8903 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8904 | if test -z "$ac_err"; then | |
10f2d63a VZ |
8905 | : |
8906 | else | |
698dcdb6 VZ |
8907 | echo "$ac_err" >&5 |
8908 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8909 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8910 | rm -rf conftest* |
8911 | CPP=/lib/cpp | |
10f2d63a | 8912 | fi |
698dcdb6 | 8913 | rm -f conftest* |
10f2d63a | 8914 | fi |
698dcdb6 | 8915 | rm -f conftest* |
703e0a69 | 8916 | fi |
698dcdb6 VZ |
8917 | rm -f conftest* |
8918 | ac_cv_prog_CPP="$CPP" | |
8919 | fi | |
8920 | CPP="$ac_cv_prog_CPP" | |
10f2d63a | 8921 | else |
698dcdb6 | 8922 | ac_cv_prog_CPP="$CPP" |
10f2d63a | 8923 | fi |
698dcdb6 | 8924 | echo "$ac_t""$CPP" 1>&6 |
10f2d63a | 8925 | |
698dcdb6 VZ |
8926 | if test $ac_cv_prog_gcc = yes; then |
8927 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
dfe8399a | 8928 | echo "configure:8929: checking whether ${CC-cc} needs -traditional" >&5 |
698dcdb6 VZ |
8929 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
8930 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8931 | else |
8932 | ac_pattern="Autoconf.*'x'" | |
698dcdb6 | 8933 | cat > conftest.$ac_ext <<EOF |
dfe8399a | 8934 | #line 8935 "configure" |
10f2d63a VZ |
8935 | #include "confdefs.h" |
8936 | #include <sgtty.h> | |
8937 | Autoconf TIOCGETP | |
698dcdb6 | 8938 | EOF |
10f2d63a VZ |
8939 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8940 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
698dcdb6 | 8941 | rm -rf conftest* |
10f2d63a VZ |
8942 | ac_cv_prog_gcc_traditional=yes |
8943 | else | |
698dcdb6 | 8944 | rm -rf conftest* |
10f2d63a VZ |
8945 | ac_cv_prog_gcc_traditional=no |
8946 | fi | |
8947 | rm -f conftest* | |
8948 | ||
698dcdb6 | 8949 | |
10f2d63a | 8950 | if test $ac_cv_prog_gcc_traditional = no; then |
698dcdb6 | 8951 | cat > conftest.$ac_ext <<EOF |
dfe8399a | 8952 | #line 8953 "configure" |
10f2d63a VZ |
8953 | #include "confdefs.h" |
8954 | #include <termio.h> | |
8955 | Autoconf TCGETA | |
698dcdb6 | 8956 | EOF |
10f2d63a VZ |
8957 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8958 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
698dcdb6 | 8959 | rm -rf conftest* |
10f2d63a VZ |
8960 | ac_cv_prog_gcc_traditional=yes |
8961 | fi | |
8962 | rm -f conftest* | |
8963 | ||
8964 | fi | |
8965 | fi | |
698dcdb6 VZ |
8966 | |
8967 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
10f2d63a VZ |
8968 | if test $ac_cv_prog_gcc_traditional = yes; then |
8969 | CC="$CC -traditional" | |
8970 | fi | |
8971 | fi | |
8972 | ||
703e0a69 | 8973 | |
698dcdb6 VZ |
8974 | |
8975 | ac_ext=C | |
8976 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 8977 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
8978 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
8979 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8980 | cross_compiling=$ac_cv_prog_cxx_cross | |
8981 | ||
8982 | ||
8983 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | |
8984 | do | |
8985 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
8986 | set dummy $ac_prog; ac_word=$2 | |
8987 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
dfe8399a | 8988 | echo "configure:8989: checking for $ac_word" >&5 |
698dcdb6 VZ |
8989 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
8990 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8991 | else |
8992 | if test -n "$CXX"; then | |
8993 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
8994 | else | |
698dcdb6 VZ |
8995 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8996 | ac_dummy="$PATH" | |
8997 | for ac_dir in $ac_dummy; do | |
8998 | test -z "$ac_dir" && ac_dir=. | |
8999 | if test -f $ac_dir/$ac_word; then | |
9000 | ac_cv_prog_CXX="$ac_prog" | |
9001 | break | |
9002 | fi | |
9003 | done | |
9004 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9005 | fi |
9006 | fi | |
698dcdb6 | 9007 | CXX="$ac_cv_prog_CXX" |
10f2d63a | 9008 | if test -n "$CXX"; then |
698dcdb6 | 9009 | echo "$ac_t""$CXX" 1>&6 |
10f2d63a | 9010 | else |
698dcdb6 | 9011 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9012 | fi |
9013 | ||
698dcdb6 | 9014 | test -n "$CXX" && break |
10f2d63a | 9015 | done |
698dcdb6 | 9016 | test -n "$CXX" || CXX="gcc" |
10f2d63a VZ |
9017 | |
9018 | ||
698dcdb6 | 9019 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
dfe8399a | 9020 | echo "configure:9021: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
10f2d63a | 9021 | |
698dcdb6 VZ |
9022 | ac_ext=C |
9023 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9024 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9025 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9026 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9027 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 9028 | |
698dcdb6 VZ |
9029 | cat > conftest.$ac_ext << EOF |
9030 | ||
dfe8399a | 9031 | #line 9032 "configure" |
10f2d63a VZ |
9032 | #include "confdefs.h" |
9033 | ||
698dcdb6 VZ |
9034 | int main(){return(0);} |
9035 | EOF | |
dfe8399a | 9036 | if { (eval echo configure:9037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9037 | ac_cv_prog_cxx_works=yes |
9038 | # If we can't run a trivial program, we are probably using a cross compiler. | |
9039 | if (./conftest; exit) 2>/dev/null; then | |
9040 | ac_cv_prog_cxx_cross=no | |
9041 | else | |
9042 | ac_cv_prog_cxx_cross=yes | |
9043 | fi | |
9044 | else | |
9045 | echo "configure: failed program was:" >&5 | |
9046 | cat conftest.$ac_ext >&5 | |
9047 | ac_cv_prog_cxx_works=no | |
9048 | fi | |
9049 | rm -fr conftest* | |
9050 | ac_ext=C | |
9051 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9052 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9053 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9054 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9055 | cross_compiling=$ac_cv_prog_cxx_cross | |
9056 | ||
9057 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 | |
9058 | if test $ac_cv_prog_cxx_works = no; then | |
9059 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
9060 | fi | |
9061 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
dfe8399a | 9062 | echo "configure:9063: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
698dcdb6 VZ |
9063 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
9064 | cross_compiling=$ac_cv_prog_cxx_cross | |
9065 | ||
9066 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | |
dfe8399a | 9067 | echo "configure:9068: checking whether we are using GNU C++" >&5 |
698dcdb6 VZ |
9068 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
9069 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9070 | else | |
9071 | cat > conftest.C <<EOF | |
9072 | #ifdef __GNUC__ | |
9073 | yes; | |
10f2d63a | 9074 | #endif |
698dcdb6 | 9075 | EOF |
dfe8399a | 9076 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9077: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
698dcdb6 VZ |
9077 | ac_cv_prog_gxx=yes |
9078 | else | |
9079 | ac_cv_prog_gxx=no | |
9080 | fi | |
9081 | fi | |
10f2d63a | 9082 | |
698dcdb6 | 9083 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
10f2d63a | 9084 | |
698dcdb6 VZ |
9085 | if test $ac_cv_prog_gxx = yes; then |
9086 | GXX=yes | |
9087 | else | |
9088 | GXX= | |
9089 | fi | |
10f2d63a | 9090 | |
698dcdb6 VZ |
9091 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
9092 | ac_save_CXXFLAGS="$CXXFLAGS" | |
9093 | CXXFLAGS= | |
9094 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
dfe8399a | 9095 | echo "configure:9096: checking whether ${CXX-g++} accepts -g" >&5 |
698dcdb6 VZ |
9096 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
9097 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9098 | else | |
9099 | echo 'void f(){}' > conftest.cc | |
9100 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
10f2d63a VZ |
9101 | ac_cv_prog_cxx_g=yes |
9102 | else | |
698dcdb6 | 9103 | ac_cv_prog_cxx_g=no |
10f2d63a | 9104 | fi |
698dcdb6 VZ |
9105 | rm -f conftest* |
9106 | ||
10f2d63a | 9107 | fi |
698dcdb6 VZ |
9108 | |
9109 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
10f2d63a | 9110 | if test "$ac_test_CXXFLAGS" = set; then |
698dcdb6 | 9111 | CXXFLAGS="$ac_save_CXXFLAGS" |
10f2d63a VZ |
9112 | elif test $ac_cv_prog_cxx_g = yes; then |
9113 | if test "$GXX" = yes; then | |
9114 | CXXFLAGS="-g -O2" | |
9115 | else | |
9116 | CXXFLAGS="-g" | |
9117 | fi | |
9118 | else | |
9119 | if test "$GXX" = yes; then | |
9120 | CXXFLAGS="-O2" | |
9121 | else | |
9122 | CXXFLAGS= | |
9123 | fi | |
9124 | fi | |
9125 | ||
9126 | ||
10f2d63a | 9127 | ac_ext=c |
698dcdb6 | 9128 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 9129 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
9130 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
9131 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9132 | cross_compiling=$ac_cv_prog_cc_cross | |
9133 | ||
9134 | ||
9135 | # Extract the first word of "ranlib", so it can be a program name with args. | |
9136 | set dummy ranlib; ac_word=$2 | |
9137 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
dfe8399a | 9138 | echo "configure:9139: checking for $ac_word" >&5 |
698dcdb6 VZ |
9139 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
9140 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9141 | else |
9142 | if test -n "$RANLIB"; then | |
9143 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
9144 | else | |
698dcdb6 VZ |
9145 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9146 | ac_dummy="$PATH" | |
9147 | for ac_dir in $ac_dummy; do | |
9148 | test -z "$ac_dir" && ac_dir=. | |
9149 | if test -f $ac_dir/$ac_word; then | |
9150 | ac_cv_prog_RANLIB="ranlib" | |
9151 | break | |
9152 | fi | |
9153 | done | |
9154 | IFS="$ac_save_ifs" | |
9155 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
10f2d63a VZ |
9156 | fi |
9157 | fi | |
698dcdb6 | 9158 | RANLIB="$ac_cv_prog_RANLIB" |
10f2d63a | 9159 | if test -n "$RANLIB"; then |
698dcdb6 | 9160 | echo "$ac_t""$RANLIB" 1>&6 |
10f2d63a | 9161 | else |
698dcdb6 | 9162 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9163 | fi |
9164 | ||
9165 | ||
9166 | # Extract the first word of "ar", so it can be a program name with args. | |
9167 | set dummy ar; ac_word=$2 | |
698dcdb6 | 9168 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
dfe8399a | 9169 | echo "configure:9170: checking for $ac_word" >&5 |
698dcdb6 VZ |
9170 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
9171 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9172 | else |
9173 | if test -n "$AR"; then | |
9174 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
9175 | else | |
698dcdb6 VZ |
9176 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9177 | ac_dummy="$PATH" | |
9178 | for ac_dir in $ac_dummy; do | |
9179 | test -z "$ac_dir" && ac_dir=. | |
9180 | if test -f $ac_dir/$ac_word; then | |
9181 | ac_cv_prog_AR="ar" | |
9182 | break | |
9183 | fi | |
9184 | done | |
9185 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9186 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
9187 | fi | |
9188 | fi | |
698dcdb6 | 9189 | AR="$ac_cv_prog_AR" |
10f2d63a | 9190 | if test -n "$AR"; then |
698dcdb6 | 9191 | echo "$ac_t""$AR" 1>&6 |
10f2d63a | 9192 | else |
698dcdb6 | 9193 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9194 | fi |
9195 | ||
698dcdb6 | 9196 | |
6054113a | 9197 | # Find a good install program. We prefer a C program (faster), |
10f2d63a VZ |
9198 | # so one script is as good as another. But avoid the broken or |
9199 | # incompatible versions: | |
9200 | # SysV /etc/install, /usr/sbin/install | |
9201 | # SunOS /usr/etc/install | |
9202 | # IRIX /sbin/install | |
9203 | # AIX /bin/install | |
9204 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
9205 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
9206 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
9207 | # ./install, which can be erroneously created by make from ./install.sh. | |
698dcdb6 | 9208 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
dfe8399a | 9209 | echo "configure:9210: checking for a BSD compatible install" >&5 |
10f2d63a | 9210 | if test -z "$INSTALL"; then |
698dcdb6 VZ |
9211 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
9212 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 9213 | else |
698dcdb6 | 9214 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
10f2d63a VZ |
9215 | for ac_dir in $PATH; do |
9216 | # Account for people who put trailing slashes in PATH elements. | |
698dcdb6 VZ |
9217 | case "$ac_dir/" in |
9218 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
10f2d63a VZ |
9219 | *) |
9220 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
9221 | # Don't use installbsd from OSF since it installs stuff as root | |
9222 | # by default. | |
9223 | for ac_prog in ginstall scoinst install; do | |
698dcdb6 | 9224 | if test -f $ac_dir/$ac_prog; then |
10f2d63a | 9225 | if test $ac_prog = install && |
698dcdb6 | 9226 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
10f2d63a VZ |
9227 | # AIX install. It has an incompatible calling convention. |
9228 | : | |
9229 | else | |
9230 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
9231 | break 2 | |
9232 | fi | |
9233 | fi | |
9234 | done | |
9235 | ;; | |
9236 | esac | |
9237 | done | |
698dcdb6 | 9238 | IFS="$ac_save_IFS" |
10f2d63a VZ |
9239 | |
9240 | fi | |
9241 | if test "${ac_cv_path_install+set}" = set; then | |
698dcdb6 | 9242 | INSTALL="$ac_cv_path_install" |
10f2d63a VZ |
9243 | else |
9244 | # As a last resort, use the slow shell script. We don't cache a | |
9245 | # path for INSTALL within a source directory, because that will | |
9246 | # break other packages using the cache if that directory is | |
9247 | # removed, or if the path is relative. | |
698dcdb6 | 9248 | INSTALL="$ac_install_sh" |
10f2d63a VZ |
9249 | fi |
9250 | fi | |
698dcdb6 | 9251 | echo "$ac_t""$INSTALL" 1>&6 |
10f2d63a VZ |
9252 | |
9253 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
9254 | # It thinks the first close brace ends the variable substitution. | |
9255 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
9256 | ||
698dcdb6 | 9257 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
10f2d63a VZ |
9258 | |
9259 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
9260 | ||
6054113a GD |
9261 | case "${host}" in |
9262 | ||
b5853384 | 9263 | powerpc-*-darwin* ) |
eb99ae0b GD |
9264 | INSTALL_PROGRAM="cp -fp" |
9265 | INSTALL_DATA="cp -fp" | |
6054113a GD |
9266 | ;; |
9267 | *) | |
9268 | ;; | |
d6853540 | 9269 | esac |
698dcdb6 | 9270 | |
10f2d63a VZ |
9271 | # Extract the first word of "strip", so it can be a program name with args. |
9272 | set dummy strip; ac_word=$2 | |
698dcdb6 | 9273 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
dfe8399a | 9274 | echo "configure:9275: checking for $ac_word" >&5 |
698dcdb6 VZ |
9275 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
9276 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9277 | else |
9278 | if test -n "$STRIP"; then | |
9279 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9280 | else | |
698dcdb6 VZ |
9281 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9282 | ac_dummy="$PATH" | |
9283 | for ac_dir in $ac_dummy; do | |
9284 | test -z "$ac_dir" && ac_dir=. | |
9285 | if test -f $ac_dir/$ac_word; then | |
9286 | ac_cv_prog_STRIP="strip" | |
9287 | break | |
9288 | fi | |
9289 | done | |
9290 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9291 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
9292 | fi | |
9293 | fi | |
698dcdb6 | 9294 | STRIP="$ac_cv_prog_STRIP" |
10f2d63a | 9295 | if test -n "$STRIP"; then |
698dcdb6 | 9296 | echo "$ac_t""$STRIP" 1>&6 |
10f2d63a | 9297 | else |
698dcdb6 | 9298 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9299 | fi |
9300 | ||
698dcdb6 | 9301 | |
414eab6d | 9302 | echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6 |
dfe8399a | 9303 | echo "configure:9304: checking if make is GNU make" >&5 |
414eab6d VZ |
9304 | if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then |
9305 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9306 | else | |
9307 | ||
9308 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
d558c907 | 9309 | egrep -s GNU > /dev/null); then |
414eab6d VZ |
9310 | wx_cv_prog_makeisgnu="yes" |
9311 | else | |
9312 | wx_cv_prog_makeisgnu="no" | |
9313 | fi | |
9314 | ||
9315 | fi | |
9316 | ||
9317 | echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6 | |
9318 | ||
9319 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
9320 | IF_GNU_MAKE="" | |
9321 | else | |
9322 | IF_GNU_MAKE="#" | |
9323 | fi | |
9324 | ||
9325 | ||
9326 | ||
9327 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then | |
04e7a216 | 9328 | echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6 |
dfe8399a | 9329 | echo "configure:9330: checking if make supports VPATH" >&5 |
04e7a216 VZ |
9330 | if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then |
9331 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9332 | else | |
9333 | ||
10f2d63a VZ |
9334 | cat - << EOF > confMake |
9335 | check : file | |
9336 | cp \$? \$@ | |
9337 | cp \$? final_file | |
9338 | EOF | |
9339 | ||
9340 | if test ! -d sub ; then | |
9341 | mkdir sub | |
9342 | fi | |
9343 | echo dummy > sub/file | |
f6bcfd97 | 9344 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
9345 | RESULT=$? |
9346 | rm -f sub/file check final_file confMake | |
9347 | rmdir sub | |
9348 | if test "$RESULT" = 0; then | |
04e7a216 | 9349 | wx_cv_prog_makevpath="yes" |
10f2d63a | 9350 | else |
04e7a216 VZ |
9351 | wx_cv_prog_makevpath="no" |
9352 | fi | |
9353 | ||
9354 | fi | |
9355 | ||
9356 | echo "$ac_t""$wx_cv_prog_makevpath" 1>&6 | |
9357 | ||
9358 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
9359 | { echo "configure: error: | |
1e487827 VS |
9360 | You need a make-utility that is able to use the variable |
9361 | VPATH correctly. | |
9362 | If your version of make does not support VPATH correctly, | |
9363 | please install GNU-make (possibly as gmake), and start | |
9364 | configure with the following command: | |
9365 | export MAKE=gmake; ./configure for sh-type shells | |
9366 | setenv MAKE gmake; ./configure for csh-type shells | |
9367 | Also please do remember to use gmake in this case every time | |
9368 | you are trying to compile. | |
698dcdb6 | 9369 | " 1>&2; exit 1; } |
414eab6d | 9370 | fi fi |
10f2d63a VZ |
9371 | for ac_prog in 'bison -y' byacc |
9372 | do | |
698dcdb6 | 9373 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
10f2d63a | 9374 | set dummy $ac_prog; ac_word=$2 |
698dcdb6 | 9375 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
dfe8399a | 9376 | echo "configure:9377: checking for $ac_word" >&5 |
698dcdb6 VZ |
9377 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
9378 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9379 | else |
9380 | if test -n "$YACC"; then | |
9381 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
9382 | else | |
698dcdb6 VZ |
9383 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9384 | ac_dummy="$PATH" | |
9385 | for ac_dir in $ac_dummy; do | |
9386 | test -z "$ac_dir" && ac_dir=. | |
9387 | if test -f $ac_dir/$ac_word; then | |
9388 | ac_cv_prog_YACC="$ac_prog" | |
9389 | break | |
9390 | fi | |
9391 | done | |
9392 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9393 | fi |
9394 | fi | |
698dcdb6 | 9395 | YACC="$ac_cv_prog_YACC" |
10f2d63a | 9396 | if test -n "$YACC"; then |
698dcdb6 | 9397 | echo "$ac_t""$YACC" 1>&6 |
10f2d63a | 9398 | else |
698dcdb6 | 9399 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9400 | fi |
9401 | ||
698dcdb6 | 9402 | test -n "$YACC" && break |
10f2d63a VZ |
9403 | done |
9404 | test -n "$YACC" || YACC="yacc" | |
9405 | ||
698dcdb6 VZ |
9406 | |
9407 | # Extract the first word of "flex", so it can be a program name with args. | |
9408 | set dummy flex; ac_word=$2 | |
9409 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
dfe8399a | 9410 | echo "configure:9411: checking for $ac_word" >&5 |
698dcdb6 VZ |
9411 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
9412 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9413 | else |
9414 | if test -n "$LEX"; then | |
9415 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
9416 | else | |
698dcdb6 VZ |
9417 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9418 | ac_dummy="$PATH" | |
9419 | for ac_dir in $ac_dummy; do | |
9420 | test -z "$ac_dir" && ac_dir=. | |
9421 | if test -f $ac_dir/$ac_word; then | |
9422 | ac_cv_prog_LEX="flex" | |
9423 | break | |
9424 | fi | |
9425 | done | |
9426 | IFS="$ac_save_ifs" | |
9427 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
10f2d63a VZ |
9428 | fi |
9429 | fi | |
698dcdb6 | 9430 | LEX="$ac_cv_prog_LEX" |
10f2d63a | 9431 | if test -n "$LEX"; then |
698dcdb6 | 9432 | echo "$ac_t""$LEX" 1>&6 |
10f2d63a | 9433 | else |
698dcdb6 | 9434 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9435 | fi |
9436 | ||
9437 | if test -z "$LEXLIB" | |
9438 | then | |
698dcdb6 VZ |
9439 | case "$LEX" in |
9440 | flex*) ac_lib=fl ;; | |
9441 | *) ac_lib=l ;; | |
9442 | esac | |
9443 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
dfe8399a | 9444 | echo "configure:9445: checking for yywrap in -l$ac_lib" >&5 |
698dcdb6 VZ |
9445 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
9446 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9447 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9448 | else | |
9449 | ac_save_LIBS="$LIBS" | |
9450 | LIBS="-l$ac_lib $LIBS" | |
9451 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 9452 | #line 9453 "configure" |
10f2d63a VZ |
9453 | #include "confdefs.h" |
9454 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9455 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9456 | builtin and then its argument prototype would still apply. */ |
9457 | char yywrap(); | |
10f2d63a | 9458 | |
698dcdb6 VZ |
9459 | int main() { |
9460 | yywrap() | |
9461 | ; return 0; } | |
9462 | EOF | |
dfe8399a | 9463 | if { (eval echo configure:9464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9464 | rm -rf conftest* |
9465 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 9466 | else |
698dcdb6 VZ |
9467 | echo "configure: failed program was:" >&5 |
9468 | cat conftest.$ac_ext >&5 | |
9469 | rm -rf conftest* | |
9470 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 9471 | fi |
698dcdb6 VZ |
9472 | rm -f conftest* |
9473 | LIBS="$ac_save_LIBS" | |
9474 | ||
10f2d63a | 9475 | fi |
698dcdb6 VZ |
9476 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
9477 | echo "$ac_t""yes" 1>&6 | |
9478 | LEXLIB="-l$ac_lib" | |
9479 | else | |
9480 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
9481 | fi |
9482 | ||
9483 | fi | |
9484 | ||
9485 | ||
698dcdb6 | 9486 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
dfe8399a | 9487 | echo "configure:9488: checking whether ln -s works" >&5 |
698dcdb6 VZ |
9488 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
9489 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 9490 | else |
698dcdb6 VZ |
9491 | rm -f conftestdata |
9492 | if ln -s X conftestdata 2>/dev/null | |
9493 | then | |
9494 | rm -f conftestdata | |
9495 | ac_cv_prog_LN_S="ln -s" | |
10f2d63a | 9496 | else |
698dcdb6 | 9497 | ac_cv_prog_LN_S=ln |
10f2d63a VZ |
9498 | fi |
9499 | fi | |
698dcdb6 VZ |
9500 | LN_S="$ac_cv_prog_LN_S" |
9501 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
9502 | echo "$ac_t""yes" 1>&6 | |
10f2d63a | 9503 | else |
698dcdb6 | 9504 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9505 | fi |
9506 | ||
9507 | ||
9508 | ||
9509 | SEARCH_INCLUDE="\ | |
9510 | /usr/local/include \ | |
9511 | \ | |
9512 | /usr/Motif-1.2/include \ | |
9513 | /usr/Motif-2.1/include \ | |
9514 | \ | |
9515 | /usr/include/Motif1.2 \ | |
9516 | /opt/xpm/include/X11 \ | |
9517 | /opt/GBxpm/include/ \ | |
9518 | /opt/GBxpm/X11/include/ \ | |
9519 | \ | |
9520 | /usr/Motif1.2/include \ | |
9521 | /usr/dt/include \ | |
afc31813 VZ |
9522 | /usr/openwin/include \ |
9523 | \ | |
10f2d63a VZ |
9524 | /usr/include/Xm \ |
9525 | \ | |
9526 | /usr/X11R6/include \ | |
afc31813 | 9527 | /usr/X11R6.4/include \ |
10f2d63a VZ |
9528 | /usr/X11R5/include \ |
9529 | /usr/X11R4/include \ | |
9530 | \ | |
10f2d63a VZ |
9531 | /usr/include/X11R6 \ |
9532 | /usr/include/X11R5 \ | |
9533 | /usr/include/X11R4 \ | |
9534 | \ | |
9535 | /usr/local/X11R6/include \ | |
9536 | /usr/local/X11R5/include \ | |
9537 | /usr/local/X11R4/include \ | |
9538 | \ | |
9539 | /usr/local/include/X11R6 \ | |
9540 | /usr/local/include/X11R5 \ | |
9541 | /usr/local/include/X11R4 \ | |
9542 | \ | |
9543 | /usr/X11/include \ | |
9544 | /usr/include/X11 \ | |
9545 | /usr/local/X11/include \ | |
9546 | /usr/local/include/X11 \ | |
9547 | \ | |
9548 | /usr/X386/include \ | |
9549 | /usr/x386/include \ | |
9550 | /usr/XFree86/include/X11 \ | |
9551 | \ | |
cf27ef00 | 9552 | X:/XFree86/include \ |
ec14dd32 VZ |
9553 | X:/XFree86/include/X11 \ |
9554 | \ | |
10f2d63a VZ |
9555 | /usr/include/gtk \ |
9556 | /usr/local/include/gtk \ | |
9557 | /usr/include/glib \ | |
9558 | /usr/local/include/glib \ | |
9559 | \ | |
9560 | /usr/include/qt \ | |
9561 | /usr/local/include/qt \ | |
9562 | \ | |
9563 | /usr/include/windows \ | |
9564 | /usr/include/wine \ | |
9565 | /usr/local/include/wine \ | |
9566 | \ | |
9567 | /usr/unsupported/include \ | |
9568 | /usr/athena/include \ | |
9569 | /usr/local/x11r5/include \ | |
9570 | /usr/lpp/Xamples/include \ | |
9571 | \ | |
10f2d63a | 9572 | /usr/openwin/share/include \ |
928b5c08 VZ |
9573 | \ |
9574 | /usr/include" | |
10f2d63a VZ |
9575 | |
9576 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
9577 | ||
698dcdb6 VZ |
9578 | |
9579 | cat > confcache <<\EOF | |
10f2d63a VZ |
9580 | # This file is a shell script that caches the results of configure |
9581 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
9582 | # scripts and configure runs. It is not useful on other systems. |
9583 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 9584 | # |
698dcdb6 VZ |
9585 | # By default, configure uses ./config.cache as the cache file, |
9586 | # creating it if it does not exist already. You can give configure | |
9587 | # the --cache-file=FILE option to use a different cache file; that is | |
9588 | # what configure does when it calls configure scripts in | |
9589 | # subdirectories, so they share the cache. | |
9590 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
9591 | # config.status only pays attention to the cache file if you give it the | |
9592 | # --recheck option to rerun configure. | |
10f2d63a | 9593 | # |
698dcdb6 | 9594 | EOF |
10f2d63a VZ |
9595 | # The following way of writing the cache mishandles newlines in values, |
9596 | # but we know of no workaround that is simple, portable, and efficient. | |
9597 | # So, don't put newlines in cache variables' values. | |
9598 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
9599 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
9600 | (set) 2>&1 | |
9601 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
9602 | *ac_space=\ *) | |
9603 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
9604 | # turns \\\\ into \\, and sed turns \\ into \). | |
9605 | sed -n \ | |
9606 | -e "s/'/'\\\\''/g" \ | |
9607 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
9608 | ;; | |
9609 | *) | |
9610 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
9611 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
9612 | ;; | |
9613 | esac >> confcache | |
9614 | if cmp -s $cache_file confcache; then | |
9615 | : | |
9616 | else | |
10f2d63a | 9617 | if test -w $cache_file; then |
698dcdb6 VZ |
9618 | echo "updating cache $cache_file" |
9619 | cat confcache > $cache_file | |
10f2d63a VZ |
9620 | else |
9621 | echo "not updating unwritable cache $cache_file" | |
9622 | fi | |
9623 | fi | |
9624 | rm -f confcache | |
9625 | ||
698dcdb6 VZ |
9626 | |
9627 | ||
4f14bcd8 | 9628 | |
18dbb1f6 VZ |
9629 | REGEX_INCLUDE= |
9630 | if test "$wxUSE_REGEX" != "no"; then | |
4f14bcd8 GD |
9631 | cat >> confdefs.h <<\EOF |
9632 | #define wxUSE_REGEX 1 | |
9633 | EOF | |
9634 | ||
9635 | ||
9636 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then | |
9637 | ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'` | |
18dbb1f6 | 9638 | echo $ac_n "checking for regex.h""... $ac_c" 1>&6 |
dfe8399a | 9639 | echo "configure:9640: checking for regex.h" >&5 |
18dbb1f6 VZ |
9640 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9641 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9642 | else | |
9643 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 9644 | #line 9645 "configure" |
18dbb1f6 VZ |
9645 | #include "confdefs.h" |
9646 | #include <regex.h> | |
9647 | EOF | |
9648 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
dfe8399a | 9649 | { (eval echo configure:9650: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
18dbb1f6 VZ |
9650 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9651 | if test -z "$ac_err"; then | |
9652 | rm -rf conftest* | |
9653 | eval "ac_cv_header_$ac_safe=yes" | |
9654 | else | |
9655 | echo "$ac_err" >&5 | |
9656 | echo "configure: failed program was:" >&5 | |
9657 | cat conftest.$ac_ext >&5 | |
9658 | rm -rf conftest* | |
9659 | eval "ac_cv_header_$ac_safe=no" | |
9660 | fi | |
9661 | rm -f conftest* | |
9662 | fi | |
9663 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9664 | echo "$ac_t""yes" 1>&6 | |
9665 | for ac_func in regcomp | |
9666 | do | |
9667 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
dfe8399a | 9668 | echo "configure:9669: checking for $ac_func" >&5 |
18dbb1f6 VZ |
9669 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9670 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9671 | else | |
9672 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 9673 | #line 9674 "configure" |
18dbb1f6 VZ |
9674 | #include "confdefs.h" |
9675 | /* System header to define __stub macros and hopefully few prototypes, | |
9676 | which can conflict with char $ac_func(); below. */ | |
9677 | #include <assert.h> | |
9678 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9679 | /* We use char because int might match the return type of a gcc2 | |
9680 | builtin and then its argument prototype would still apply. */ | |
9681 | char $ac_func(); | |
9682 | ||
9683 | int main() { | |
9684 | ||
9685 | /* The GNU C library defines this for functions which it implements | |
9686 | to always fail with ENOSYS. Some functions are actually named | |
9687 | something starting with __ and the normal name is an alias. */ | |
9688 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9689 | choke me | |
9690 | #else | |
9691 | $ac_func(); | |
9692 | #endif | |
9693 | ||
9694 | ; return 0; } | |
9695 | EOF | |
dfe8399a | 9696 | if { (eval echo configure:9697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
18dbb1f6 VZ |
9697 | rm -rf conftest* |
9698 | eval "ac_cv_func_$ac_func=yes" | |
9699 | else | |
9700 | echo "configure: failed program was:" >&5 | |
9701 | cat conftest.$ac_ext >&5 | |
9702 | rm -rf conftest* | |
9703 | eval "ac_cv_func_$ac_func=no" | |
9704 | fi | |
9705 | rm -f conftest* | |
9706 | fi | |
9707 | ||
9708 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9709 | echo "$ac_t""yes" 1>&6 | |
9710 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9711 | cat >> confdefs.h <<EOF | |
9712 | #define $ac_tr_func 1 | |
9713 | EOF | |
9714 | ||
9715 | else | |
9716 | echo "$ac_t""no" 1>&6 | |
9717 | fi | |
9718 | done | |
9719 | ||
9720 | else | |
9721 | echo "$ac_t""no" 1>&6 | |
9722 | fi | |
9723 | ||
9724 | ||
4f14bcd8 GD |
9725 | if test "x$ac_cv_func_regcomp" != "xyes"; then |
9726 | if test "$wxUSE_REGEX" = "sys" ; then | |
9727 | { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; } | |
9728 | else | |
a3df447d | 9729 | echo "configure: warning: system regex library not found, will use built-in instead" 1>&2 |
4f14bcd8 GD |
9730 | wxUSE_REGEX=builtin |
9731 | fi | |
9732 | else | |
9733 | wxUSE_REGEX=sys | |
18dbb1f6 | 9734 | fi |
18dbb1f6 VZ |
9735 | fi |
9736 | ||
4f14bcd8 GD |
9737 | if test "$wxUSE_REGEX" = "builtin" ; then |
9738 | REGEX_INCLUDE="-I\${top_srcdir}/src/regex" | |
9739 | fi | |
18dbb1f6 VZ |
9740 | fi |
9741 | ||
9742 | ||
4f14bcd8 GD |
9743 | ZLIB_INCLUDE= |
9744 | ZLIB_LINK= | |
9745 | if test "$wxUSE_ZLIB" != "no" ; then | |
9746 | cat >> confdefs.h <<\EOF | |
9747 | #define wxUSE_ZLIB 1 | |
9748 | EOF | |
dad6c0ea | 9749 | |
10f2d63a | 9750 | |
4f14bcd8 GD |
9751 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then |
9752 | ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'` | |
9753 | echo $ac_n "checking for zlib.h""... $ac_c" 1>&6 | |
dfe8399a | 9754 | echo "configure:9755: checking for zlib.h" >&5 |
3a922bb4 RL |
9755 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9756 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9757 | else | |
9758 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 9759 | #line 9760 "configure" |
3a922bb4 | 9760 | #include "confdefs.h" |
4f14bcd8 | 9761 | #include <zlib.h> |
3a922bb4 RL |
9762 | EOF |
9763 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
dfe8399a | 9764 | { (eval echo configure:9765: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3a922bb4 RL |
9765 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9766 | if test -z "$ac_err"; then | |
9767 | rm -rf conftest* | |
9768 | eval "ac_cv_header_$ac_safe=yes" | |
9769 | else | |
9770 | echo "$ac_err" >&5 | |
9771 | echo "configure: failed program was:" >&5 | |
9772 | cat conftest.$ac_ext >&5 | |
9773 | rm -rf conftest* | |
9774 | eval "ac_cv_header_$ac_safe=no" | |
9775 | fi | |
9776 | rm -f conftest* | |
9777 | fi | |
9778 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9779 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 9780 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6 |
dfe8399a | 9781 | echo "configure:9782: checking for deflate in -lz" >&5 |
4f14bcd8 GD |
9782 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'` |
9783 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9784 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9785 | else | |
9786 | ac_save_LIBS="$LIBS" | |
9787 | LIBS="-lz $LIBS" | |
9788 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 9789 | #line 9790 "configure" |
4f14bcd8 GD |
9790 | #include "confdefs.h" |
9791 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9792 | /* We use char because int might match the return type of a gcc2 | |
9793 | builtin and then its argument prototype would still apply. */ | |
9794 | char deflate(); | |
9795 | ||
9796 | int main() { | |
9797 | deflate() | |
9798 | ; return 0; } | |
3a922bb4 | 9799 | EOF |
dfe8399a | 9800 | if { (eval echo configure:9801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
9801 | rm -rf conftest* |
9802 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9803 | else | |
9804 | echo "configure: failed program was:" >&5 | |
9805 | cat conftest.$ac_ext >&5 | |
9806 | rm -rf conftest* | |
9807 | eval "ac_cv_lib_$ac_lib_var=no" | |
9808 | fi | |
9809 | rm -f conftest* | |
9810 | LIBS="$ac_save_LIBS" | |
9811 | ||
9812 | fi | |
9813 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9814 | echo "$ac_t""yes" 1>&6 | |
3d63bc3a | 9815 | ZLIB_LINK=" -lz" |
3a922bb4 RL |
9816 | else |
9817 | echo "$ac_t""no" 1>&6 | |
9818 | fi | |
10f2d63a | 9819 | |
4f14bcd8 GD |
9820 | else |
9821 | echo "$ac_t""no" 1>&6 | |
9822 | fi | |
9823 | ||
9824 | ||
9825 | if test "x$ZLIB_LINK" = "x" ; then | |
9826 | if test "$wxUSE_ZLIB" = "sys" ; then | |
9827 | { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; } | |
9828 | else | |
a3df447d | 9829 | echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2 |
4f14bcd8 GD |
9830 | wxUSE_ZLIB=builtin |
9831 | fi | |
9832 | else | |
9833 | wxUSE_ZLIB=sys | |
9834 | fi | |
9835 | fi | |
9836 | ||
9837 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
9838 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
9839 | fi | |
9840 | fi | |
9841 | ||
9842 | ||
9843 | PNG_INCLUDE= | |
9844 | PNG_LINK= | |
9845 | if test "$wxUSE_LIBPNG" != "no" ; then | |
9846 | cat >> confdefs.h <<\EOF | |
9847 | #define wxUSE_LIBPNG 1 | |
9848 | EOF | |
9849 | ||
81809c07 VS |
9850 | |
9851 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then | |
9852 | echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2 | |
9853 | wxUSE_LIBPNG=sys | |
9854 | fi | |
4f14bcd8 | 9855 | |
81809c07 | 9856 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then |
a3df447d | 9857 | echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2 |
4f14bcd8 GD |
9858 | wxUSE_LIBPNG=builtin |
9859 | fi | |
9860 | ||
81809c07 VS |
9861 | if test "$wxUSE_MGL" != 1 ; then |
9862 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
9863 | ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` | |
4f14bcd8 | 9864 | echo $ac_n "checking for png.h""... $ac_c" 1>&6 |
dfe8399a | 9865 | echo "configure:9866: checking for png.h" >&5 |
d4158b5d VS |
9866 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9867 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9868 | else | |
9869 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 9870 | #line 9871 "configure" |
d4158b5d | 9871 | #include "confdefs.h" |
4f14bcd8 | 9872 | #include <png.h> |
d4158b5d VS |
9873 | EOF |
9874 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
dfe8399a | 9875 | { (eval echo configure:9876: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
d4158b5d VS |
9876 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9877 | if test -z "$ac_err"; then | |
9878 | rm -rf conftest* | |
9879 | eval "ac_cv_header_$ac_safe=yes" | |
9880 | else | |
9881 | echo "$ac_err" >&5 | |
9882 | echo "configure: failed program was:" >&5 | |
9883 | cat conftest.$ac_ext >&5 | |
9884 | rm -rf conftest* | |
9885 | eval "ac_cv_header_$ac_safe=no" | |
9886 | fi | |
9887 | rm -f conftest* | |
9888 | fi | |
9889 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9890 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 9891 | echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6 |
dfe8399a | 9892 | echo "configure:9893: checking for png_check_sig in -lpng" >&5 |
4f14bcd8 GD |
9893 | ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'` |
9894 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
3a922bb4 RL |
9895 | echo $ac_n "(cached) $ac_c" 1>&6 |
9896 | else | |
4f14bcd8 GD |
9897 | ac_save_LIBS="$LIBS" |
9898 | LIBS="-lpng -lz -lm $LIBS" | |
9899 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 9900 | #line 9901 "configure" |
3a922bb4 | 9901 | #include "confdefs.h" |
4f14bcd8 GD |
9902 | /* Override any gcc2 internal prototype to avoid an error. */ |
9903 | /* We use char because int might match the return type of a gcc2 | |
9904 | builtin and then its argument prototype would still apply. */ | |
9905 | char png_check_sig(); | |
f6bcfd97 | 9906 | |
4f14bcd8 GD |
9907 | int main() { |
9908 | png_check_sig() | |
3a922bb4 RL |
9909 | ; return 0; } |
9910 | EOF | |
dfe8399a | 9911 | if { (eval echo configure:9912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3a922bb4 | 9912 | rm -rf conftest* |
4f14bcd8 | 9913 | eval "ac_cv_lib_$ac_lib_var=yes" |
3a922bb4 RL |
9914 | else |
9915 | echo "configure: failed program was:" >&5 | |
9916 | cat conftest.$ac_ext >&5 | |
9917 | rm -rf conftest* | |
4f14bcd8 | 9918 | eval "ac_cv_lib_$ac_lib_var=no" |
3a922bb4 RL |
9919 | fi |
9920 | rm -f conftest* | |
4f14bcd8 | 9921 | LIBS="$ac_save_LIBS" |
10f2d63a | 9922 | |
4f14bcd8 GD |
9923 | fi |
9924 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9925 | echo "$ac_t""yes" 1>&6 | |
3d63bc3a | 9926 | PNG_LINK=" -lpng" |
4f14bcd8 GD |
9927 | else |
9928 | echo "$ac_t""no" 1>&6 | |
9929 | fi | |
32832908 | 9930 | |
81809c07 | 9931 | |
4f14bcd8 GD |
9932 | else |
9933 | echo "$ac_t""no" 1>&6 | |
9934 | fi | |
3a922bb4 | 9935 | |
7b7a7637 | 9936 | |
81809c07 VS |
9937 | if test "x$PNG_LINK" = "x" ; then |
9938 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
9939 | { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; } | |
9940 | else | |
9941 | echo "configure: warning: system png library not found, will use built-in instead" 1>&2 | |
9942 | wxUSE_LIBPNG=builtin | |
9943 | fi | |
4f14bcd8 | 9944 | else |
81809c07 | 9945 | wxUSE_LIBPNG=yes |
4f14bcd8 | 9946 | fi |
4f14bcd8 | 9947 | fi |
3a922bb4 RL |
9948 | fi |
9949 | ||
4f14bcd8 GD |
9950 | if test "$wxUSE_LIBPNG" = "builtin" ; then |
9951 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
3a922bb4 RL |
9952 | fi |
9953 | ||
4f14bcd8 | 9954 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
3a922bb4 RL |
9955 | fi |
9956 | ||
32832908 | 9957 | |
4f14bcd8 GD |
9958 | JPEG_INCLUDE= |
9959 | JPEG_LINK= | |
9960 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
9961 | cat >> confdefs.h <<\EOF | |
9962 | #define wxUSE_LIBJPEG 1 | |
9963 | EOF | |
10f2d63a | 9964 | |
8168de4c | 9965 | |
81809c07 VS |
9966 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then |
9967 | echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2 | |
9968 | wxUSE_LIBJPEG=sys | |
9969 | fi | |
9970 | ||
9971 | if test "$wxUSE_MGL" != 1 ; then | |
9972 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
9973 | echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 | |
dfe8399a | 9974 | echo "configure:9975: checking for jpeglib.h" >&5 |
81809c07 | 9975 | if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then |
8168de4c VZ |
9976 | echo $ac_n "(cached) $ac_c" 1>&6 |
9977 | else | |
4f14bcd8 | 9978 | cat > conftest.$ac_ext <<EOF |
dfe8399a | 9979 | #line 9980 "configure" |
4f14bcd8 | 9980 | #include "confdefs.h" |
8168de4c | 9981 | |
81809c07 VS |
9982 | #undef HAVE_STDLIB_H |
9983 | #include <stdio.h> | |
9984 | #include <jpeglib.h> | |
9985 | ||
4f14bcd8 GD |
9986 | int main() { |
9987 | ||
81809c07 | 9988 | |
4f14bcd8 GD |
9989 | ; return 0; } |
9990 | EOF | |
dfe8399a | 9991 | if { (eval echo configure:9992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
9992 | rm -rf conftest* |
9993 | ac_cv_header_jpeglib_h=yes | |
6f72b082 | 9994 | else |
4f14bcd8 GD |
9995 | echo "configure: failed program was:" >&5 |
9996 | cat conftest.$ac_ext >&5 | |
9997 | rm -rf conftest* | |
9998 | ac_cv_header_jpeglib_h=no | |
81809c07 | 9999 | |
4f14bcd8 GD |
10000 | fi |
10001 | rm -f conftest* | |
81809c07 | 10002 | |
698dcdb6 | 10003 | fi |
6f72b082 | 10004 | |
81809c07 | 10005 | echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6 |
4f14bcd8 | 10006 | |
81809c07 VS |
10007 | if test "$ac_cv_header_jpeglib_h" = "yes"; then |
10008 | echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6 | |
dfe8399a | 10009 | echo "configure:10010: checking for jpeg_read_header in -ljpeg" >&5 |
4f14bcd8 GD |
10010 | ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'` |
10011 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10012 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6f72b082 | 10013 | else |
4f14bcd8 GD |
10014 | ac_save_LIBS="$LIBS" |
10015 | LIBS="-ljpeg $LIBS" | |
10016 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 10017 | #line 10018 "configure" |
4f14bcd8 GD |
10018 | #include "confdefs.h" |
10019 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10020 | /* We use char because int might match the return type of a gcc2 | |
10021 | builtin and then its argument prototype would still apply. */ | |
10022 | char jpeg_read_header(); | |
698dcdb6 | 10023 | |
4f14bcd8 GD |
10024 | int main() { |
10025 | jpeg_read_header() | |
10026 | ; return 0; } | |
10027 | EOF | |
dfe8399a | 10028 | if { (eval echo configure:10029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
10029 | rm -rf conftest* |
10030 | eval "ac_cv_lib_$ac_lib_var=yes" | |
6f72b082 | 10031 | else |
4f14bcd8 GD |
10032 | echo "configure: failed program was:" >&5 |
10033 | cat conftest.$ac_ext >&5 | |
10034 | rm -rf conftest* | |
10035 | eval "ac_cv_lib_$ac_lib_var=no" | |
698dcdb6 | 10036 | fi |
4f14bcd8 GD |
10037 | rm -f conftest* |
10038 | LIBS="$ac_save_LIBS" | |
698dcdb6 | 10039 | |
4f14bcd8 GD |
10040 | fi |
10041 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10042 | echo "$ac_t""yes" 1>&6 | |
3d63bc3a | 10043 | JPEG_LINK=" -ljpeg" |
4f14bcd8 GD |
10044 | else |
10045 | echo "$ac_t""no" 1>&6 | |
10046 | fi | |
10047 | ||
81809c07 | 10048 | fi |
4f14bcd8 | 10049 | |
81809c07 VS |
10050 | if test "x$JPEG_LINK" = "x" ; then |
10051 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
10052 | { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; } | |
10053 | else | |
10054 | echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2 | |
10055 | wxUSE_LIBJPEG=builtin | |
10056 | fi | |
4f14bcd8 | 10057 | else |
81809c07 | 10058 | wxUSE_LIBJPEG=sys |
4f14bcd8 | 10059 | fi |
4f14bcd8 GD |
10060 | fi |
10061 | fi | |
10062 | ||
10063 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
10064 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
10065 | fi | |
10066 | fi | |
10067 | ||
10068 | ||
10069 | TIFF_INCLUDE= | |
10070 | TIFF_LINK= | |
10071 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
10072 | cat >> confdefs.h <<\EOF | |
10073 | #define wxUSE_LIBTIFF 1 | |
10074 | EOF | |
10075 | ||
10076 | ||
10077 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then | |
10078 | ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` | |
10079 | echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | |
dfe8399a | 10080 | echo "configure:10081: checking for tiffio.h" >&5 |
4f14bcd8 GD |
10081 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10082 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10083 | else | |
10084 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 10085 | #line 10086 "configure" |
4f14bcd8 GD |
10086 | #include "confdefs.h" |
10087 | #include <tiffio.h> | |
10088 | EOF | |
10089 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
dfe8399a | 10090 | { (eval echo configure:10091: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
10091 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10092 | if test -z "$ac_err"; then | |
10093 | rm -rf conftest* | |
10094 | eval "ac_cv_header_$ac_safe=yes" | |
10095 | else | |
10096 | echo "$ac_err" >&5 | |
10097 | echo "configure: failed program was:" >&5 | |
10098 | cat conftest.$ac_ext >&5 | |
10099 | rm -rf conftest* | |
10100 | eval "ac_cv_header_$ac_safe=no" | |
10101 | fi | |
10102 | rm -f conftest* | |
10103 | fi | |
10104 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10105 | echo "$ac_t""yes" 1>&6 | |
10106 | echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6 | |
dfe8399a | 10107 | echo "configure:10108: checking for TIFFError in -ltiff" >&5 |
4f14bcd8 GD |
10108 | ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'` |
10109 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10110 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10111 | else | |
10112 | ac_save_LIBS="$LIBS" | |
10113 | LIBS="-ltiff -lm $LIBS" | |
10114 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 10115 | #line 10116 "configure" |
4f14bcd8 GD |
10116 | #include "confdefs.h" |
10117 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10118 | /* We use char because int might match the return type of a gcc2 | |
10119 | builtin and then its argument prototype would still apply. */ | |
10120 | char TIFFError(); | |
10121 | ||
10122 | int main() { | |
10123 | TIFFError() | |
10124 | ; return 0; } | |
10125 | EOF | |
dfe8399a | 10126 | if { (eval echo configure:10127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
10127 | rm -rf conftest* |
10128 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10129 | else | |
10130 | echo "configure: failed program was:" >&5 | |
10131 | cat conftest.$ac_ext >&5 | |
10132 | rm -rf conftest* | |
10133 | eval "ac_cv_lib_$ac_lib_var=no" | |
10134 | fi | |
10135 | rm -f conftest* | |
10136 | LIBS="$ac_save_LIBS" | |
10137 | ||
10138 | fi | |
10139 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10140 | echo "$ac_t""yes" 1>&6 | |
3d63bc3a | 10141 | TIFF_LINK=" -ltiff" |
4f14bcd8 GD |
10142 | else |
10143 | echo "$ac_t""no" 1>&6 | |
10144 | fi | |
10145 | ||
10146 | ||
10147 | else | |
10148 | echo "$ac_t""no" 1>&6 | |
10149 | fi | |
10150 | ||
10151 | ||
10152 | if test "x$TIFF_LINK" = "x" ; then | |
10153 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
10154 | { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; } | |
10155 | else | |
a3df447d | 10156 | echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2 |
4f14bcd8 GD |
10157 | wxUSE_LIBTIFF=builtin |
10158 | fi | |
10159 | else | |
10160 | wxUSE_LIBTIFF=sys | |
10161 | fi | |
10162 | fi | |
10163 | ||
10164 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
10165 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" | |
10166 | fi | |
10167 | fi | |
10168 | ||
10169 | ||
4f14bcd8 GD |
10170 | AFMINSTALL= |
10171 | ||
10172 | TOOLKIT= | |
10173 | TOOLKIT_INCLUDE= | |
10174 | WIDGET_SET= | |
10175 | ||
10176 | if test "$USE_WIN32" = 1 ; then | |
10177 | for ac_hdr in w32api.h | |
10178 | do | |
10179 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
10180 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
dfe8399a | 10181 | echo "configure:10182: checking for $ac_hdr" >&5 |
4f14bcd8 GD |
10182 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10183 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10184 | else | |
10185 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 10186 | #line 10187 "configure" |
4f14bcd8 GD |
10187 | #include "confdefs.h" |
10188 | #include <$ac_hdr> | |
10189 | EOF | |
10190 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
dfe8399a | 10191 | { (eval echo configure:10192: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
10192 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10193 | if test -z "$ac_err"; then | |
10194 | rm -rf conftest* | |
10195 | eval "ac_cv_header_$ac_safe=yes" | |
10196 | else | |
10197 | echo "$ac_err" >&5 | |
10198 | echo "configure: failed program was:" >&5 | |
10199 | cat conftest.$ac_ext >&5 | |
10200 | rm -rf conftest* | |
10201 | eval "ac_cv_header_$ac_safe=no" | |
10202 | fi | |
10203 | rm -f conftest* | |
10204 | fi | |
10205 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10206 | echo "$ac_t""yes" 1>&6 | |
10207 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10208 | cat >> confdefs.h <<EOF | |
10209 | #define $ac_tr_hdr 1 | |
10210 | EOF | |
10211 | ||
10212 | else | |
10213 | echo "$ac_t""no" 1>&6 | |
10214 | fi | |
10215 | done | |
10216 | ||
10217 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` | |
10218 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
dfe8399a | 10219 | echo "configure:10220: checking for windows.h" >&5 |
4f14bcd8 GD |
10220 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10221 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10222 | else | |
10223 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 10224 | #line 10225 "configure" |
4f14bcd8 GD |
10225 | #include "confdefs.h" |
10226 | #include <windows.h> | |
10227 | EOF | |
10228 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
dfe8399a | 10229 | { (eval echo configure:10230: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
10230 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10231 | if test -z "$ac_err"; then | |
10232 | rm -rf conftest* | |
10233 | eval "ac_cv_header_$ac_safe=yes" | |
10234 | else | |
10235 | echo "$ac_err" >&5 | |
10236 | echo "configure: failed program was:" >&5 | |
10237 | cat conftest.$ac_ext >&5 | |
10238 | rm -rf conftest* | |
10239 | eval "ac_cv_header_$ac_safe=no" | |
10240 | fi | |
10241 | rm -f conftest* | |
10242 | fi | |
10243 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10244 | echo "$ac_t""yes" 1>&6 | |
10245 | : | |
10246 | else | |
10247 | echo "$ac_t""no" 1>&6 | |
10248 | ||
10249 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
10250 | ||
10251 | fi | |
10252 | ||
10253 | ||
10254 | echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6 | |
dfe8399a | 10255 | echo "configure:10256: checking if w32api has good enough MSIE support" >&5 |
ea7682f0 | 10256 | if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then |
4f14bcd8 GD |
10257 | echo $ac_n "(cached) $ac_c" 1>&6 |
10258 | else | |
10259 | ||
10260 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 10261 | #line 10262 "configure" |
4f14bcd8 GD |
10262 | #include "confdefs.h" |
10263 | #include <w32api.h> | |
10264 | int main() { | |
10265 | ||
10266 | #define wxCHECK_W32API_VERSION( major, minor ) \ | |
10267 | ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \ | |
10268 | && ( ( __W32API_MAJOR_VERSION > (major) ) \ | |
10269 | || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor)))) | |
10270 | ||
10271 | #if !wxCHECK_W32API_VERSION(1,1) | |
10272 | #error You need w32api 1.1 or newer | |
10273 | #endif | |
10274 | ||
10275 | ; return 0; } | |
10276 | EOF | |
dfe8399a | 10277 | if { (eval echo configure:10278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
10278 | rm -rf conftest* |
10279 | ||
ea7682f0 | 10280 | wx_cv_w32api_win32_ie=yes |
4f14bcd8 GD |
10281 | |
10282 | else | |
10283 | echo "configure: failed program was:" >&5 | |
10284 | cat conftest.$ac_ext >&5 | |
10285 | rm -rf conftest* | |
10286 | ||
ea7682f0 | 10287 | wx_cv_w32api_win32_ie=no |
4f14bcd8 GD |
10288 | |
10289 | fi | |
10290 | rm -f conftest* | |
10291 | ||
10292 | fi | |
10293 | ||
ea7682f0 VS |
10294 | echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6 |
10295 | if test "$wx_cv_w32api_win32_ie" = "yes" ; then | |
10296 | CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400" | |
10297 | fi | |
4f14bcd8 GD |
10298 | |
10299 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32" | |
10300 | ||
77e13408 RL |
10301 | case "${host}" in |
10302 | *-*-cygwin* ) | |
10303 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32" | |
10304 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
10305 | esac | |
4f14bcd8 GD |
10306 | |
10307 | if test "$wxUSE_ODBC" = "yes" ; then | |
a72a4bfa | 10308 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" |
4f14bcd8 GD |
10309 | fi |
10310 | ||
4f14bcd8 GD |
10311 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
10312 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
10313 | fi | |
10314 | ||
10315 | if test "$wxUSE_GUI" = "yes"; then | |
10316 | USE_GUI=1 | |
10317 | ||
10318 | GUI_TK_LIBRARY= | |
10319 | ||
10320 | WXGTK12= | |
10321 | WXGTK127= | |
10322 | WXGTK20= | |
10323 | ||
77e13408 | 10324 | if test "$wxUSE_MSW" = 1 ; then |
4f14bcd8 GD |
10325 | TOOLKIT=MSW |
10326 | GUIDIST=MSW_DIST | |
77e13408 RL |
10327 | |
10328 | case "${host}" in | |
10329 | *-*-mingw32* ) | |
3d63bc3a | 10330 | LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows" |
77e13408 | 10331 | esac |
4f14bcd8 GD |
10332 | fi |
10333 | ||
10334 | if test "$wxUSE_GTK" = 1; then | |
10335 | echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6 | |
dfe8399a | 10336 | echo "configure:10337: checking for GTK+ version" >&5 |
4f14bcd8 GD |
10337 | |
10338 | gtk_version_cached=1 | |
10339 | if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then | |
10340 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10341 | else | |
10342 | ||
10343 | gtk_version_cached=0 | |
d48ad9bd | 10344 | echo "$ac_t""" 1>&6 |
4f14bcd8 | 10345 | |
3f345b47 VZ |
10346 | GTK_MODULES= |
10347 | if test "$wxUSE_THREADS" = "yes"; then | |
10348 | GTK_MODULES=gthread | |
10349 | fi | |
10350 | ||
4f14bcd8 GD |
10351 | wx_cv_lib_gtk= |
10352 | if test "x$wxUSE_GTK2" = "xyes"; then | |
9e691f46 | 10353 | # Check whether --enable-gtktest or --disable-gtktest was given. |
4f14bcd8 GD |
10354 | if test "${enable_gtktest+set}" = set; then |
10355 | enableval="$enable_gtktest" | |
10356 | : | |
10357 | else | |
10358 | enable_gtktest=yes | |
10359 | fi | |
10360 | ||
10361 | ||
9e691f46 | 10362 | pkg_config_args=gtk+-2.0 |
3f345b47 | 10363 | for module in . $GTK_MODULES |
4f14bcd8 | 10364 | do |
6f72b082 | 10365 | case "$module" in |
9e691f46 VZ |
10366 | gthread) |
10367 | pkg_config_args="$pkg_config_args gthread-2.0" | |
6f72b082 OK |
10368 | ;; |
10369 | esac | |
10370 | done | |
10371 | ||
9e691f46 | 10372 | no_gtk="" |
6f72b082 | 10373 | |
9e691f46 VZ |
10374 | # Extract the first word of "pkg-config", so it can be a program name with args. |
10375 | set dummy pkg-config; ac_word=$2 | |
698dcdb6 | 10376 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
dfe8399a | 10377 | echo "configure:10378: checking for $ac_word" >&5 |
9e691f46 | 10378 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
698dcdb6 | 10379 | echo $ac_n "(cached) $ac_c" 1>&6 |
6f72b082 | 10380 | else |
9e691f46 | 10381 | case "$PKG_CONFIG" in |
698dcdb6 | 10382 | /*) |
9e691f46 | 10383 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
6f72b082 | 10384 | ;; |
698dcdb6 | 10385 | ?:/*) |
9e691f46 | 10386 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. |
698dcdb6 | 10387 | ;; |
6f72b082 | 10388 | *) |
698dcdb6 VZ |
10389 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
10390 | ac_dummy="$PATH" | |
10391 | for ac_dir in $ac_dummy; do | |
10392 | test -z "$ac_dir" && ac_dir=. | |
10393 | if test -f $ac_dir/$ac_word; then | |
9e691f46 | 10394 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" |
698dcdb6 VZ |
10395 | break |
10396 | fi | |
10397 | done | |
10398 | IFS="$ac_save_ifs" | |
9e691f46 | 10399 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
6f72b082 OK |
10400 | ;; |
10401 | esac | |
10402 | fi | |
9e691f46 VZ |
10403 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
10404 | if test -n "$PKG_CONFIG"; then | |
10405 | echo "$ac_t""$PKG_CONFIG" 1>&6 | |
6f72b082 | 10406 | else |
698dcdb6 | 10407 | echo "$ac_t""no" 1>&6 |
6f72b082 OK |
10408 | fi |
10409 | ||
9e691f46 VZ |
10410 | |
10411 | if test x$PKG_CONFIG != xno ; then | |
10412 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
10413 | : | |
10414 | else | |
10415 | echo *** pkg-config too old; version 0.7 or better required. | |
10416 | no_gtk=yes | |
10417 | PKG_CONFIG=no | |
10418 | fi | |
6f72b082 | 10419 | else |
9e691f46 VZ |
10420 | no_gtk=yes |
10421 | fi | |
10422 | ||
1ae7bd02 | 10423 | min_gtk_version=2.0.0 |
9e691f46 | 10424 | echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6 |
dfe8399a | 10425 | echo "configure:10426: checking for GTK+ - version >= $min_gtk_version" >&5 |
9e691f46 VZ |
10426 | |
10427 | if test x$PKG_CONFIG != xno ; then | |
10428 | ## don't try to run the test against uninstalled libtool libs | |
10429 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
10430 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
10431 | enable_gtktest=no | |
10432 | fi | |
10433 | ||
10434 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then | |
10435 | : | |
10436 | else | |
10437 | no_gtk=yes | |
10438 | fi | |
10439 | fi | |
10440 | ||
10441 | if test x"$no_gtk" = x ; then | |
10442 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
10443 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
10444 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
6f72b082 | 10445 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` |
9e691f46 | 10446 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
6f72b082 | 10447 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` |
9e691f46 | 10448 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
6f72b082 OK |
10449 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` |
10450 | if test "x$enable_gtktest" = "xyes" ; then | |
10451 | ac_save_CFLAGS="$CFLAGS" | |
10452 | ac_save_LIBS="$LIBS" | |
10453 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
10454 | LIBS="$GTK_LIBS $LIBS" | |
10455 | rm -f conf.gtktest | |
10456 | if test "$cross_compiling" = yes; then | |
10457 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
10458 | else | |
698dcdb6 | 10459 | cat > conftest.$ac_ext <<EOF |
dfe8399a | 10460 | #line 10461 "configure" |
6f72b082 OK |
10461 | #include "confdefs.h" |
10462 | ||
10463 | #include <gtk/gtk.h> | |
10464 | #include <stdio.h> | |
10465 | #include <stdlib.h> | |
10466 | ||
9e691f46 | 10467 | int |
6f72b082 OK |
10468 | main () |
10469 | { | |
10470 | int major, minor, micro; | |
10471 | char *tmp_version; | |
10472 | ||
10473 | system ("touch conf.gtktest"); | |
10474 | ||
10475 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
10476 | tmp_version = g_strdup("$min_gtk_version"); | |
10477 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
10478 | printf("%s, bad version string\n", "$min_gtk_version"); | |
10479 | exit(1); | |
10480 | } | |
10481 | ||
10482 | if ((gtk_major_version != $gtk_config_major_version) || | |
10483 | (gtk_minor_version != $gtk_config_minor_version) || | |
10484 | (gtk_micro_version != $gtk_config_micro_version)) | |
10485 | { | |
9e691f46 | 10486 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
6f72b082 OK |
10487 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
10488 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
9e691f46 | 10489 | printf ("*** was found! If pkg-config was correct, then it is best\n"); |
6f72b082 OK |
10490 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); |
10491 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
10492 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
10493 | printf("*** required on your system.\n"); | |
9e691f46 VZ |
10494 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); |
10495 | printf("*** to point to the correct configuration files\n"); | |
10496 | } | |
6f72b082 | 10497 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || |
9e691f46 | 10498 | (gtk_minor_version != GTK_MINOR_VERSION) || |
6f72b082 OK |
10499 | (gtk_micro_version != GTK_MICRO_VERSION)) |
10500 | { | |
10501 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
9e691f46 | 10502 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); |
6f72b082 | 10503 | printf("*** library (version %d.%d.%d)\n", |
9e691f46 | 10504 | gtk_major_version, gtk_minor_version, gtk_micro_version); |
6f72b082 | 10505 | } |
6f72b082 OK |
10506 | else |
10507 | { | |
10508 | if ((gtk_major_version > major) || | |
10509 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
10510 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
10511 | { | |
10512 | return 0; | |
10513 | } | |
10514 | else | |
10515 | { | |
10516 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
10517 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
10518 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
9e691f46 | 10519 | major, minor, micro); |
6f72b082 OK |
10520 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); |
10521 | printf("***\n"); | |
10522 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
9e691f46 | 10523 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); |
6f72b082 | 10524 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); |
9e691f46 VZ |
10525 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); |
10526 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
6f72b082 OK |
10527 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); |
10528 | printf("*** so that the correct libraries are found at run-time))\n"); | |
10529 | } | |
10530 | } | |
10531 | return 1; | |
10532 | } | |
10533 | ||
698dcdb6 | 10534 | EOF |
dfe8399a | 10535 | if { (eval echo configure:10536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 10536 | then |
6f72b082 OK |
10537 | : |
10538 | else | |
698dcdb6 VZ |
10539 | echo "configure: failed program was:" >&5 |
10540 | cat conftest.$ac_ext >&5 | |
10541 | rm -fr conftest* | |
10542 | no_gtk=yes | |
6f72b082 | 10543 | fi |
698dcdb6 | 10544 | rm -fr conftest* |
6f72b082 | 10545 | fi |
698dcdb6 | 10546 | |
6f72b082 OK |
10547 | CFLAGS="$ac_save_CFLAGS" |
10548 | LIBS="$ac_save_LIBS" | |
10549 | fi | |
10550 | fi | |
10551 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 10552 | echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6 |
9e691f46 | 10553 | wx_cv_lib_gtk=2.0 |
6f72b082 | 10554 | else |
698dcdb6 | 10555 | echo "$ac_t""no" 1>&6 |
9e691f46 VZ |
10556 | if test "$PKG_CONFIG" = "no" ; then |
10557 | echo "*** A new enough version of pkg-config was not found." | |
10558 | echo "*** See http://pkgconfig.sourceforge.net" | |
6f72b082 OK |
10559 | else |
10560 | if test -f conf.gtktest ; then | |
10561 | : | |
10562 | else | |
9e691f46 | 10563 | echo "*** Could not run GTK+ test program, checking why..." |
6f72b082 OK |
10564 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
10565 | LIBS="$LIBS $GTK_LIBS" | |
698dcdb6 | 10566 | cat > conftest.$ac_ext <<EOF |
dfe8399a | 10567 | #line 10568 "configure" |
6f72b082 OK |
10568 | #include "confdefs.h" |
10569 | ||
10570 | #include <gtk/gtk.h> | |
10571 | #include <stdio.h> | |
10572 | ||
698dcdb6 VZ |
10573 | int main() { |
10574 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
10575 | ; return 0; } | |
10576 | EOF | |
dfe8399a | 10577 | if { (eval echo configure:10578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 10578 | rm -rf conftest* |
6f72b082 | 10579 | echo "*** The test program compiled, but did not run. This usually means" |
9e691f46 VZ |
10580 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" |
10581 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
6f72b082 OK |
10582 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" |
10583 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
10584 | echo "*** is required on your system" | |
9e691f46 | 10585 | echo "***" |
6f72b082 | 10586 | echo "*** If you have an old version installed, it is best to remove it, although" |
9e691f46 | 10587 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" |
6f72b082 | 10588 | else |
698dcdb6 VZ |
10589 | echo "configure: failed program was:" >&5 |
10590 | cat conftest.$ac_ext >&5 | |
10591 | rm -rf conftest* | |
10592 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
9e691f46 VZ |
10593 | echo "*** exact error that occured. This usually means GTK+ was incorrectly installed" |
10594 | echo "*** or that you have moved GTK+ since it was installed. In the latter case, you" | |
10595 | echo "*** may want to edit the pkg-config script: $PKG_CONFIG" | |
6f72b082 | 10596 | fi |
698dcdb6 | 10597 | rm -f conftest* |
6f72b082 OK |
10598 | CFLAGS="$ac_save_CFLAGS" |
10599 | LIBS="$ac_save_LIBS" | |
10600 | fi | |
10601 | fi | |
10602 | GTK_CFLAGS="" | |
10603 | GTK_LIBS="" | |
3f345b47 | 10604 | : |
8168de4c VZ |
10605 | fi |
10606 | ||
10607 | ||
10608 | rm -f conf.gtktest | |
10609 | ||
10610 | fi | |
10611 | ||
10612 | if test -z "$wx_cv_lib_gtk"; then | |
3f345b47 VZ |
10613 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. |
10614 | if test "${with_gtk_prefix+set}" = set; then | |
10615 | withval="$with_gtk_prefix" | |
10616 | gtk_config_prefix="$withval" | |
10617 | else | |
10618 | gtk_config_prefix="" | |
10619 | fi | |
10620 | ||
10621 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
10622 | if test "${with_gtk_exec_prefix+set}" = set; then | |
10623 | withval="$with_gtk_exec_prefix" | |
10624 | gtk_config_exec_prefix="$withval" | |
10625 | else | |
10626 | gtk_config_exec_prefix="" | |
10627 | fi | |
10628 | ||
10629 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
10630 | if test "${enable_gtktest+set}" = set; then | |
10631 | enableval="$enable_gtktest" | |
10632 | : | |
10633 | else | |
10634 | enable_gtktest=yes | |
10635 | fi | |
10636 | ||
10637 | ||
10638 | for module in . $GTK_MODULES | |
10639 | do | |
10640 | case "$module" in | |
10641 | gthread) | |
10642 | gtk_config_args="$gtk_config_args gthread" | |
10643 | ;; | |
10644 | esac | |
10645 | done | |
10646 | ||
10f2d63a VZ |
10647 | if test x$gtk_config_exec_prefix != x ; then |
10648 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
10649 | if test x${GTK_CONFIG+set} != xset ; then | |
10650 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
10651 | fi | |
10652 | fi | |
10653 | if test x$gtk_config_prefix != x ; then | |
10654 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
10655 | if test x${GTK_CONFIG+set} != xset ; then | |
10656 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
10657 | fi | |
10658 | fi | |
10659 | ||
10660 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
10661 | set dummy gtk-config; ac_word=$2 | |
698dcdb6 | 10662 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
dfe8399a | 10663 | echo "configure:10664: checking for $ac_word" >&5 |
698dcdb6 VZ |
10664 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
10665 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 10666 | else |
698dcdb6 VZ |
10667 | case "$GTK_CONFIG" in |
10668 | /*) | |
f6bcfd97 BP |
10669 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
10670 | ;; | |
698dcdb6 VZ |
10671 | ?:/*) |
10672 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
10673 | ;; | |
f6bcfd97 | 10674 | *) |
698dcdb6 VZ |
10675 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
10676 | ac_dummy="$PATH" | |
10677 | for ac_dir in $ac_dummy; do | |
10678 | test -z "$ac_dir" && ac_dir=. | |
10679 | if test -f $ac_dir/$ac_word; then | |
10680 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
10681 | break | |
10682 | fi | |
10683 | done | |
10684 | IFS="$ac_save_ifs" | |
f6bcfd97 BP |
10685 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
10686 | ;; | |
10687 | esac | |
10688 | fi | |
698dcdb6 | 10689 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
f6bcfd97 | 10690 | if test -n "$GTK_CONFIG"; then |
698dcdb6 | 10691 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
f6bcfd97 | 10692 | else |
698dcdb6 | 10693 | echo "$ac_t""no" 1>&6 |
f6bcfd97 BP |
10694 | fi |
10695 | ||
10696 | min_gtk_version=1.2.7 | |
698dcdb6 | 10697 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
dfe8399a | 10698 | echo "configure:10699: checking for GTK - version >= $min_gtk_version" >&5 |
f6bcfd97 | 10699 | no_gtk="" |
3f345b47 VZ |
10700 | if test "$GTK_CONFIG" = "no" ; then |
10701 | no_gtk=yes | |
10702 | else | |
10703 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
10704 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
10705 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
10706 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
10707 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
10708 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
10709 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
10710 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
10711 | if test "x$enable_gtktest" = "xyes" ; then | |
10712 | ac_save_CFLAGS="$CFLAGS" | |
10713 | ac_save_LIBS="$LIBS" | |
10714 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
10715 | LIBS="$GTK_LIBS $LIBS" | |
10716 | rm -f conf.gtktest | |
10717 | if test "$cross_compiling" = yes; then | |
f6bcfd97 BP |
10718 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
10719 | else | |
698dcdb6 | 10720 | cat > conftest.$ac_ext <<EOF |
dfe8399a | 10721 | #line 10722 "configure" |
f6bcfd97 BP |
10722 | #include "confdefs.h" |
10723 | ||
10724 | #include <gtk/gtk.h> | |
f6bcfd97 BP |
10725 | #include <stdio.h> |
10726 | #include <stdlib.h> | |
10727 | ||
3f345b47 | 10728 | int |
f6bcfd97 BP |
10729 | main () |
10730 | { | |
10731 | int major, minor, micro; | |
3f345b47 | 10732 | char *tmp_version; |
f6bcfd97 | 10733 | |
3f345b47 | 10734 | system ("touch conf.gtktest"); |
f6bcfd97 | 10735 | |
3f345b47 VZ |
10736 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
10737 | tmp_version = g_strdup("$min_gtk_version"); | |
10738 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
10739 | printf("%s, bad version string\n", "$min_gtk_version"); | |
f6bcfd97 BP |
10740 | exit(1); |
10741 | } | |
10742 | ||
3f345b47 VZ |
10743 | if ((gtk_major_version != $gtk_config_major_version) || |
10744 | (gtk_minor_version != $gtk_config_minor_version) || | |
10745 | (gtk_micro_version != $gtk_config_micro_version)) | |
10746 | { | |
10747 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
10748 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
10749 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
10750 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
10751 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
10752 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
10753 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
10754 | printf("*** required on your system.\n"); | |
10755 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
10756 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
10757 | printf("*** before re-running configure\n"); | |
10758 | } | |
10759 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
10760 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
10761 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
10762 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
10763 | { | |
10764 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
10765 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
10766 | printf("*** library (version %d.%d.%d)\n", | |
10767 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
10768 | } | |
10769 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
10770 | else | |
10771 | { | |
10772 | if ((gtk_major_version > major) || | |
10773 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
10774 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
10775 | { | |
10776 | return 0; | |
10777 | } | |
10778 | else | |
10779 | { | |
10780 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
10781 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
10782 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
10783 | major, minor, micro); | |
10784 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
10785 | printf("***\n"); | |
10786 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
10787 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
10788 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
10789 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
10790 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
10791 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
10792 | printf("*** so that the correct libraries are found at run-time))\n"); | |
10793 | } | |
10794 | } | |
10795 | return 1; | |
f6bcfd97 BP |
10796 | } |
10797 | ||
698dcdb6 | 10798 | EOF |
dfe8399a | 10799 | if { (eval echo configure:10800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 10800 | then |
f6bcfd97 BP |
10801 | : |
10802 | else | |
698dcdb6 VZ |
10803 | echo "configure: failed program was:" >&5 |
10804 | cat conftest.$ac_ext >&5 | |
10805 | rm -fr conftest* | |
10806 | no_gtk=yes | |
f6bcfd97 | 10807 | fi |
698dcdb6 | 10808 | rm -fr conftest* |
f6bcfd97 | 10809 | fi |
698dcdb6 | 10810 | |
3f345b47 VZ |
10811 | CFLAGS="$ac_save_CFLAGS" |
10812 | LIBS="$ac_save_LIBS" | |
10813 | fi | |
f6bcfd97 BP |
10814 | fi |
10815 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 10816 | echo "$ac_t""yes" 1>&6 |
3f345b47 | 10817 | wx_cv_lib_gtk=1.2.7 |
f6bcfd97 | 10818 | else |
698dcdb6 | 10819 | echo "$ac_t""no" 1>&6 |
3f345b47 VZ |
10820 | if test "$GTK_CONFIG" = "no" ; then |
10821 | echo "*** The gtk-config script installed by GTK could not be found" | |
10822 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
10823 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
10824 | echo "*** full path to gtk-config." | |
10825 | else | |
10826 | if test -f conf.gtktest ; then | |
10827 | : | |
10828 | else | |
10829 | echo "*** Could not run GTK test program, checking why..." | |
10830 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
10831 | LIBS="$LIBS $GTK_LIBS" | |
10832 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 10833 | #line 10834 "configure" |
3f345b47 VZ |
10834 | #include "confdefs.h" |
10835 | ||
10836 | #include <gtk/gtk.h> | |
10837 | #include <stdio.h> | |
10838 | ||
10839 | int main() { | |
10840 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
10841 | ; return 0; } | |
10842 | EOF | |
dfe8399a | 10843 | if { (eval echo configure:10844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3f345b47 VZ |
10844 | rm -rf conftest* |
10845 | echo "*** The test program compiled, but did not run. This usually means" | |
10846 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
10847 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
10848 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
10849 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
10850 | echo "*** is required on your system" | |
10851 | echo "***" | |
10852 | echo "*** If you have an old version installed, it is best to remove it, although" | |
10853 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
10854 | echo "***" | |
10855 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
10856 | echo "*** came with the system with the command" | |
10857 | echo "***" | |
10858 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
10859 | else | |
10860 | echo "configure: failed program was:" >&5 | |
10861 | cat conftest.$ac_ext >&5 | |
10862 | rm -rf conftest* | |
10863 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
10864 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
10865 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
10866 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
10867 | fi | |
10868 | rm -f conftest* | |
10869 | CFLAGS="$ac_save_CFLAGS" | |
10870 | LIBS="$ac_save_LIBS" | |
10871 | fi | |
10872 | fi | |
f6bcfd97 BP |
10873 | GTK_CFLAGS="" |
10874 | GTK_LIBS="" | |
10875 | : | |
10876 | fi | |
698dcdb6 VZ |
10877 | |
10878 | ||
3f345b47 | 10879 | rm -f conf.gtktest |
f6bcfd97 | 10880 | |
8168de4c VZ |
10881 | fi |
10882 | ||
10883 | if test -z "$wx_cv_lib_gtk"; then | |
3f345b47 VZ |
10884 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. |
10885 | if test "${with_gtk_prefix+set}" = set; then | |
10886 | withval="$with_gtk_prefix" | |
10887 | gtk_config_prefix="$withval" | |
10888 | else | |
10889 | gtk_config_prefix="" | |
10890 | fi | |
10891 | ||
10892 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
10893 | if test "${with_gtk_exec_prefix+set}" = set; then | |
10894 | withval="$with_gtk_exec_prefix" | |
10895 | gtk_config_exec_prefix="$withval" | |
10896 | else | |
10897 | gtk_config_exec_prefix="" | |
10898 | fi | |
10899 | ||
10900 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
10901 | if test "${enable_gtktest+set}" = set; then | |
10902 | enableval="$enable_gtktest" | |
10903 | : | |
10904 | else | |
10905 | enable_gtktest=yes | |
10906 | fi | |
10907 | ||
10908 | ||
10909 | for module in . $GTK_MODULES | |
10910 | do | |
10911 | case "$module" in | |
10912 | gthread) | |
10913 | gtk_config_args="$gtk_config_args gthread" | |
10914 | ;; | |
10915 | esac | |
10916 | done | |
10917 | ||
f6bcfd97 BP |
10918 | if test x$gtk_config_exec_prefix != x ; then |
10919 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
10920 | if test x${GTK_CONFIG+set} != xset ; then | |
10921 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
10922 | fi | |
10923 | fi | |
10924 | if test x$gtk_config_prefix != x ; then | |
10925 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
10926 | if test x${GTK_CONFIG+set} != xset ; then | |
10927 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
10928 | fi | |
10929 | fi | |
10930 | ||
10931 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
10932 | set dummy gtk-config; ac_word=$2 | |
698dcdb6 | 10933 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
dfe8399a | 10934 | echo "configure:10935: checking for $ac_word" >&5 |
698dcdb6 VZ |
10935 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
10936 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 10937 | else |
698dcdb6 VZ |
10938 | case "$GTK_CONFIG" in |
10939 | /*) | |
10f2d63a VZ |
10940 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
10941 | ;; | |
698dcdb6 VZ |
10942 | ?:/*) |
10943 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
10944 | ;; | |
10f2d63a | 10945 | *) |
698dcdb6 VZ |
10946 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
10947 | ac_dummy="$PATH" | |
10948 | for ac_dir in $ac_dummy; do | |
10949 | test -z "$ac_dir" && ac_dir=. | |
10950 | if test -f $ac_dir/$ac_word; then | |
10951 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
10952 | break | |
10953 | fi | |
10954 | done | |
10955 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
10956 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
10957 | ;; | |
10958 | esac | |
10959 | fi | |
698dcdb6 | 10960 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
10f2d63a | 10961 | if test -n "$GTK_CONFIG"; then |
698dcdb6 | 10962 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
10f2d63a | 10963 | else |
698dcdb6 | 10964 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
10965 | fi |
10966 | ||
04165bec | 10967 | min_gtk_version=1.2.3 |
698dcdb6 | 10968 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
dfe8399a | 10969 | echo "configure:10970: checking for GTK - version >= $min_gtk_version" >&5 |
10f2d63a | 10970 | no_gtk="" |
3f345b47 VZ |
10971 | if test "$GTK_CONFIG" = "no" ; then |
10972 | no_gtk=yes | |
10973 | else | |
10974 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
10975 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
10976 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
10977 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
10978 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
10979 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
10980 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
10981 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
10982 | if test "x$enable_gtktest" = "xyes" ; then | |
10983 | ac_save_CFLAGS="$CFLAGS" | |
10984 | ac_save_LIBS="$LIBS" | |
10985 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
10986 | LIBS="$GTK_LIBS $LIBS" | |
10987 | rm -f conf.gtktest | |
10988 | if test "$cross_compiling" = yes; then | |
10f2d63a VZ |
10989 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
10990 | else | |
698dcdb6 | 10991 | cat > conftest.$ac_ext <<EOF |
dfe8399a | 10992 | #line 10993 "configure" |
10f2d63a VZ |
10993 | #include "confdefs.h" |
10994 | ||
10995 | #include <gtk/gtk.h> | |
10996 | #include <stdio.h> | |
32832908 | 10997 | #include <stdlib.h> |
10f2d63a | 10998 | |
3f345b47 | 10999 | int |
10f2d63a VZ |
11000 | main () |
11001 | { | |
11002 | int major, minor, micro; | |
3f345b47 | 11003 | char *tmp_version; |
10f2d63a | 11004 | |
3f345b47 | 11005 | system ("touch conf.gtktest"); |
10f2d63a | 11006 | |
3f345b47 VZ |
11007 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
11008 | tmp_version = g_strdup("$min_gtk_version"); | |
11009 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
11010 | printf("%s, bad version string\n", "$min_gtk_version"); | |
f49f2b0c RR |
11011 | exit(1); |
11012 | } | |
11013 | ||
3f345b47 VZ |
11014 | if ((gtk_major_version != $gtk_config_major_version) || |
11015 | (gtk_minor_version != $gtk_config_minor_version) || | |
11016 | (gtk_micro_version != $gtk_config_micro_version)) | |
11017 | { | |
11018 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
11019 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
11020 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
11021 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
11022 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
11023 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
11024 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
11025 | printf("*** required on your system.\n"); | |
11026 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
11027 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
11028 | printf("*** before re-running configure\n"); | |
11029 | } | |
11030 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
11031 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
11032 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
11033 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
11034 | { | |
11035 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
11036 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
11037 | printf("*** library (version %d.%d.%d)\n", | |
11038 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
11039 | } | |
11040 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
11041 | else | |
11042 | { | |
11043 | if ((gtk_major_version > major) || | |
11044 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
11045 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
11046 | { | |
11047 | return 0; | |
11048 | } | |
11049 | else | |
11050 | { | |
11051 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
11052 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
11053 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
11054 | major, minor, micro); | |
11055 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
11056 | printf("***\n"); | |
11057 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
11058 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
11059 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
11060 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
11061 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
11062 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
11063 | printf("*** so that the correct libraries are found at run-time))\n"); | |
11064 | } | |
11065 | } | |
11066 | return 1; | |
10f2d63a VZ |
11067 | } |
11068 | ||
698dcdb6 | 11069 | EOF |
dfe8399a | 11070 | if { (eval echo configure:11071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 11071 | then |
10f2d63a VZ |
11072 | : |
11073 | else | |
698dcdb6 VZ |
11074 | echo "configure: failed program was:" >&5 |
11075 | cat conftest.$ac_ext >&5 | |
11076 | rm -fr conftest* | |
11077 | no_gtk=yes | |
10f2d63a | 11078 | fi |
698dcdb6 | 11079 | rm -fr conftest* |
10f2d63a | 11080 | fi |
698dcdb6 | 11081 | |
3f345b47 VZ |
11082 | CFLAGS="$ac_save_CFLAGS" |
11083 | LIBS="$ac_save_LIBS" | |
11084 | fi | |
10f2d63a VZ |
11085 | fi |
11086 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 11087 | echo "$ac_t""yes" 1>&6 |
3f345b47 | 11088 | wx_cv_lib_gtk=1.2.3 |
10f2d63a | 11089 | else |
698dcdb6 | 11090 | echo "$ac_t""no" 1>&6 |
3f345b47 VZ |
11091 | if test "$GTK_CONFIG" = "no" ; then |
11092 | echo "*** The gtk-config script installed by GTK could not be found" | |
11093 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
11094 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
11095 | echo "*** full path to gtk-config." | |
11096 | else | |
11097 | if test -f conf.gtktest ; then | |
11098 | : | |
11099 | else | |
11100 | echo "*** Could not run GTK test program, checking why..." | |
11101 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
11102 | LIBS="$LIBS $GTK_LIBS" | |
11103 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 11104 | #line 11105 "configure" |
3f345b47 VZ |
11105 | #include "confdefs.h" |
11106 | ||
11107 | #include <gtk/gtk.h> | |
11108 | #include <stdio.h> | |
11109 | ||
11110 | int main() { | |
11111 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
11112 | ; return 0; } | |
11113 | EOF | |
dfe8399a | 11114 | if { (eval echo configure:11115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3f345b47 VZ |
11115 | rm -rf conftest* |
11116 | echo "*** The test program compiled, but did not run. This usually means" | |
11117 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
11118 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
11119 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
11120 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
11121 | echo "*** is required on your system" | |
11122 | echo "***" | |
11123 | echo "*** If you have an old version installed, it is best to remove it, although" | |
11124 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
11125 | echo "***" | |
11126 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
11127 | echo "*** came with the system with the command" | |
11128 | echo "***" | |
11129 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
11130 | else | |
11131 | echo "configure: failed program was:" >&5 | |
11132 | cat conftest.$ac_ext >&5 | |
11133 | rm -rf conftest* | |
11134 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
11135 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
11136 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
11137 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
11138 | fi | |
11139 | rm -f conftest* | |
11140 | CFLAGS="$ac_save_CFLAGS" | |
11141 | LIBS="$ac_save_LIBS" | |
11142 | fi | |
11143 | fi | |
10f2d63a VZ |
11144 | GTK_CFLAGS="" |
11145 | GTK_LIBS="" | |
7e99ad86 | 11146 | : |
10f2d63a | 11147 | fi |
698dcdb6 VZ |
11148 | |
11149 | ||
3f345b47 | 11150 | rm -f conf.gtktest |
10f2d63a | 11151 | |
8168de4c VZ |
11152 | fi |
11153 | ||
11154 | if test -z "$wx_cv_lib_gtk"; then | |
11155 | wx_cv_lib_gtk=none | |
138be253 VZ |
11156 | else |
11157 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
11158 | wx_cv_libs_gtk=$GTK_LIBS | |
8168de4c VZ |
11159 | fi |
11160 | ||
1e6feb95 | 11161 | |
8168de4c | 11162 | fi |
703e0a69 | 11163 | |
698dcdb6 | 11164 | |
8168de4c VZ |
11165 | if test "$gtk_version_cached" = 1; then |
11166 | echo "$ac_t""$wx_cv_lib_gtk" 1>&6 | |
1e6feb95 | 11167 | fi |
698dcdb6 | 11168 | |
8168de4c VZ |
11169 | case "$wx_cv_lib_gtk" in |
11170 | 2.0) WXGTK20=1 | |
11171 | ;; | |
11172 | 1.2.7) WXGTK127=1 | |
d1a8d972 | 11173 | WXGTK12=1 |
8168de4c VZ |
11174 | ;; |
11175 | 1.2.3) WXGTK12=1 | |
11176 | ;; | |
11177 | *) { echo "configure: error: | |
11178 | Please check that gtk-config is in path, the directory | |
11179 | where GTK+ libraries are installed (returned by | |
11180 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
11181 | equivalent variable and GTK+ is version 1.2.3 or above. | |
11182 | " 1>&2; exit 1; } | |
11183 | ;; | |
11184 | esac | |
2224580a | 11185 | |
138be253 | 11186 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" |
11dfaa5f | 11187 | GUI_TK_LIBRARY="$wx_cv_libs_gtk" |
698dcdb6 | 11188 | |
1e6feb95 VZ |
11189 | AFMINSTALL=afminstall |
11190 | TOOLKIT=GTK | |
11191 | GUIDIST=GTK_DIST | |
7ec2881a | 11192 | |
1e6feb95 | 11193 | echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6 |
dfe8399a | 11194 | echo "configure:11195: checking for gdk_im_open in -lgdk" >&5 |
698dcdb6 VZ |
11195 | ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'` |
11196 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11197 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7ec2881a | 11198 | else |
698dcdb6 | 11199 | ac_save_LIBS="$LIBS" |
7ec2881a | 11200 | LIBS="-lgdk $LIBS" |
698dcdb6 | 11201 | cat > conftest.$ac_ext <<EOF |
dfe8399a | 11202 | #line 11203 "configure" |
7ec2881a RR |
11203 | #include "confdefs.h" |
11204 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11205 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11206 | builtin and then its argument prototype would still apply. */ |
11207 | char gdk_im_open(); | |
11208 | ||
11209 | int main() { | |
11210 | gdk_im_open() | |
11211 | ; return 0; } | |
11212 | EOF | |
dfe8399a | 11213 | if { (eval echo configure:11214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11214 | rm -rf conftest* |
11215 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11216 | else | |
11217 | echo "configure: failed program was:" >&5 | |
11218 | cat conftest.$ac_ext >&5 | |
11219 | rm -rf conftest* | |
11220 | eval "ac_cv_lib_$ac_lib_var=no" | |
11221 | fi | |
11222 | rm -f conftest* | |
11223 | LIBS="$ac_save_LIBS" | |
11224 | ||
11225 | fi | |
11226 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11227 | echo "$ac_t""yes" 1>&6 | |
11228 | cat >> confdefs.h <<\EOF | |
7ec2881a RR |
11229 | #define HAVE_XIM 1 |
11230 | EOF | |
11231 | ||
698dcdb6 VZ |
11232 | else |
11233 | echo "$ac_t""no" 1>&6 | |
7ec2881a RR |
11234 | fi |
11235 | ||
1e6feb95 | 11236 | fi |
10f2d63a | 11237 | |
1e6feb95 | 11238 | if test "$wxUSE_MGL" = 1; then |
1e6feb95 | 11239 | echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6 |
dfe8399a | 11240 | echo "configure:11241: checking for SciTech MGL library" >&5 |
1e6feb95 VZ |
11241 | if test "x$MGL_ROOT" = x ; then |
11242 | echo "$ac_t""not found" 1>&6 | |
11243 | { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; } | |
11244 | else | |
11245 | echo "$ac_t""$MGL_ROOT" 1>&6 | |
11246 | fi | |
11247 | ||
f9bc1684 VS |
11248 | case "${host}" in |
11249 | *-*-linux* ) | |
11250 | mgl_os=linux/gcc/glibc | |
11251 | ;; | |
11252 | *-pc-msdosdjgpp ) | |
11253 | mgl_os=dos32/dj2 | |
11254 | ;; | |
11255 | *) | |
11256 | { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; } | |
11257 | esac | |
11258 | ||
3a922bb4 | 11259 | mgl_lib_type="" |
1e6feb95 VZ |
11260 | |
11261 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
223e7fbf VS |
11262 | if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \ |
11263 | -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then | |
3a922bb4 | 11264 | mgl_lib_type=debug |
1e6feb95 VZ |
11265 | fi |
11266 | fi | |
3a922bb4 | 11267 | if test "x$mgl_lib_type" = x ; then |
223e7fbf VS |
11268 | if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \ |
11269 | -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then | |
3a922bb4 | 11270 | mgl_lib_type=release |
1e6feb95 VZ |
11271 | else |
11272 | { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; } | |
11273 | fi | |
11274 | fi | |
11275 | ||
11276 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
3a922bb4 | 11277 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" |
1e6feb95 VZ |
11278 | |
11279 | AFMINSTALL=afminstall | |
11280 | TOOLKIT=MGL | |
11281 | GUIDIST=MGL_DIST | |
11282 | fi | |
11283 | ||
1725144d RR |
11284 | if test "$wxUSE_MICROWIN" = 1; then |
11285 | echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6 | |
dfe8399a | 11286 | echo "configure:11287: checking for MicroWindows" >&5 |
1725144d RR |
11287 | if test "x$MICROWINDOWS" = x ; then |
11288 | echo "$ac_t""not found" 1>&6 | |
11289 | { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; } | |
11290 | else | |
11291 | echo "$ac_t""$MICROWINDOWS" 1>&6 | |
11292 | fi | |
11293 | ||
11294 | if test -f $MICROWINDOWS/lib/libmwin.a; then | |
11295 | echo "$ac_t""MicroWindows' libraries found." 1>&6 | |
11296 | else | |
11297 | { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; } | |
11298 | fi | |
11299 | ||
11300 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" | |
11301 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
11302 | ||
11303 | AFMINSTALL=afminstall | |
11304 | TOOLKIT=MICROWIN | |
11305 | GUIDIST=MICROWIN_DIST | |
11306 | ||
11307 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__ -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
11308 | fi | |
11309 | ||
f79bd02d | 11310 | if test "$wxUSE_X11" = 1; then |
d714471b | 11311 | # If we find X, set shell vars x_includes and x_libraries to the |
698dcdb6 VZ |
11312 | # paths, otherwise set no_x=yes. |
11313 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
11314 | # --without-x overrides everything else, but does not touch the cache. | |
11315 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
dfe8399a | 11316 | echo "configure:11317: checking for X" >&5 |
ab9b9eab VZ |
11317 | |
11318 | # Check whether --with-x or --without-x was given. | |
11319 | if test "${with_x+set}" = set; then | |
11320 | withval="$with_x" | |
698dcdb6 VZ |
11321 | : |
11322 | fi | |
ba337fe7 | 11323 | |
ab9b9eab VZ |
11324 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
11325 | if test "x$with_x" = xno; then | |
11326 | # The user explicitly disabled X. | |
11327 | have_x=disabled | |
11328 | else | |
11329 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
11330 | # Both variables are already set. | |
11331 | have_x=yes | |
11332 | else | |
698dcdb6 VZ |
11333 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then |
11334 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab VZ |
11335 | else |
11336 | # One or both of the vars are not set, and there is no cached value. | |
698dcdb6 VZ |
11337 | ac_x_includes=NO ac_x_libraries=NO |
11338 | rm -fr conftestdir | |
11339 | if mkdir conftestdir; then | |
11340 | cd conftestdir | |
ab9b9eab | 11341 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
698dcdb6 | 11342 | cat > Imakefile <<'EOF' |
ab9b9eab VZ |
11343 | acfindx: |
11344 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
11345 | EOF | |
11346 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
11347 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
11348 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
11349 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
10f2d63a | 11350 | for ac_extension in a so sl; do |
ab9b9eab | 11351 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
698dcdb6 | 11352 | test -f $ac_im_libdir/libX11.$ac_extension; then |
ab9b9eab | 11353 | ac_im_usrlibdir=$ac_im_libdir; break |
10f2d63a VZ |
11354 | fi |
11355 | done | |
ab9b9eab VZ |
11356 | # Screen out bogus values from the imake configuration. They are |
11357 | # bogus both because they are the default anyway, and because | |
11358 | # using them would break gcc on systems where it needs fixed includes. | |
698dcdb6 | 11359 | case "$ac_im_incroot" in |
ab9b9eab | 11360 | /usr/include) ;; |
698dcdb6 | 11361 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; |
ab9b9eab | 11362 | esac |
698dcdb6 | 11363 | case "$ac_im_usrlibdir" in |
ab9b9eab | 11364 | /usr/lib | /lib) ;; |
698dcdb6 | 11365 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; |
ab9b9eab | 11366 | esac |
ba337fe7 | 11367 | fi |
ab9b9eab | 11368 | cd .. |
698dcdb6 | 11369 | rm -fr conftestdir |
ab9b9eab | 11370 | fi |
10f2d63a | 11371 | |
698dcdb6 VZ |
11372 | if test "$ac_x_includes" = NO; then |
11373 | # Guess where to find include files, by looking for this one X11 .h file. | |
11374 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
11375 | ||
ab9b9eab | 11376 | # First, try using that file with no special directory specified. |
698dcdb6 | 11377 | cat > conftest.$ac_ext <<EOF |
dfe8399a | 11378 | #line 11379 "configure" |
ab9b9eab | 11379 | #include "confdefs.h" |
698dcdb6 VZ |
11380 | #include <$x_direct_test_include> |
11381 | EOF | |
11382 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
dfe8399a | 11383 | { (eval echo configure:11384: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11384 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11385 | if test -z "$ac_err"; then | |
11386 | rm -rf conftest* | |
ab9b9eab VZ |
11387 | # We can compile using X headers with no special include directory. |
11388 | ac_x_includes= | |
11389 | else | |
698dcdb6 VZ |
11390 | echo "$ac_err" >&5 |
11391 | echo "configure: failed program was:" >&5 | |
ab9b9eab | 11392 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11393 | rm -rf conftest* |
11394 | # Look for the header file in a standard set of common directories. | |
11395 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
11396 | for ac_dir in \ | |
11397 | /usr/X11/include \ | |
11398 | /usr/X11R6/include \ | |
11399 | /usr/X11R5/include \ | |
11400 | /usr/X11R4/include \ | |
11401 | \ | |
11402 | /usr/include/X11 \ | |
11403 | /usr/include/X11R6 \ | |
11404 | /usr/include/X11R5 \ | |
11405 | /usr/include/X11R4 \ | |
11406 | \ | |
11407 | /usr/local/X11/include \ | |
11408 | /usr/local/X11R6/include \ | |
11409 | /usr/local/X11R5/include \ | |
11410 | /usr/local/X11R4/include \ | |
11411 | \ | |
11412 | /usr/local/include/X11 \ | |
11413 | /usr/local/include/X11R6 \ | |
11414 | /usr/local/include/X11R5 \ | |
11415 | /usr/local/include/X11R4 \ | |
11416 | \ | |
11417 | /usr/X386/include \ | |
11418 | /usr/x386/include \ | |
11419 | /usr/XFree86/include/X11 \ | |
11420 | \ | |
11421 | /usr/include \ | |
11422 | /usr/local/include \ | |
11423 | /usr/unsupported/include \ | |
11424 | /usr/athena/include \ | |
11425 | /usr/local/x11r5/include \ | |
11426 | /usr/lpp/Xamples/include \ | |
11427 | \ | |
11428 | /usr/openwin/include \ | |
11429 | /usr/openwin/share/include \ | |
11430 | ; \ | |
11431 | do | |
11432 | if test -r "$ac_dir/$x_direct_test_include"; then | |
11433 | ac_x_includes=$ac_dir | |
11434 | break | |
11435 | fi | |
11436 | done | |
ab9b9eab | 11437 | fi |
698dcdb6 VZ |
11438 | rm -f conftest* |
11439 | fi # $ac_x_includes = NO | |
10f2d63a | 11440 | |
698dcdb6 | 11441 | if test "$ac_x_libraries" = NO; then |
ab9b9eab | 11442 | # Check for the libraries. |
698dcdb6 VZ |
11443 | |
11444 | test -z "$x_direct_test_library" && x_direct_test_library=Xt | |
11445 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
11446 | ||
ab9b9eab VZ |
11447 | # See if we find them without any special options. |
11448 | # Don't add to $LIBS permanently. | |
698dcdb6 VZ |
11449 | ac_save_LIBS="$LIBS" |
11450 | LIBS="-l$x_direct_test_library $LIBS" | |
11451 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 11452 | #line 11453 "configure" |
ab9b9eab | 11453 | #include "confdefs.h" |
698dcdb6 VZ |
11454 | |
11455 | int main() { | |
11456 | ${x_direct_test_function}() | |
11457 | ; return 0; } | |
11458 | EOF | |
dfe8399a | 11459 | if { (eval echo configure:11460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11460 | rm -rf conftest* |
11461 | LIBS="$ac_save_LIBS" | |
ab9b9eab VZ |
11462 | # We can link X programs with no special library path. |
11463 | ac_x_libraries= | |
11464 | else | |
698dcdb6 VZ |
11465 | echo "configure: failed program was:" >&5 |
11466 | cat conftest.$ac_ext >&5 | |
11467 | rm -rf conftest* | |
11468 | LIBS="$ac_save_LIBS" | |
11469 | # First see if replacing the include by lib works. | |
11470 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
11471 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
11472 | /usr/X11/lib \ | |
11473 | /usr/X11R6/lib \ | |
11474 | /usr/X11R5/lib \ | |
11475 | /usr/X11R4/lib \ | |
11476 | \ | |
11477 | /usr/lib/X11 \ | |
11478 | /usr/lib/X11R6 \ | |
11479 | /usr/lib/X11R5 \ | |
11480 | /usr/lib/X11R4 \ | |
11481 | \ | |
11482 | /usr/local/X11/lib \ | |
11483 | /usr/local/X11R6/lib \ | |
11484 | /usr/local/X11R5/lib \ | |
11485 | /usr/local/X11R4/lib \ | |
11486 | \ | |
11487 | /usr/local/lib/X11 \ | |
11488 | /usr/local/lib/X11R6 \ | |
11489 | /usr/local/lib/X11R5 \ | |
11490 | /usr/local/lib/X11R4 \ | |
11491 | \ | |
11492 | /usr/X386/lib \ | |
11493 | /usr/x386/lib \ | |
11494 | /usr/XFree86/lib/X11 \ | |
11495 | \ | |
11496 | /usr/lib \ | |
11497 | /usr/local/lib \ | |
11498 | /usr/unsupported/lib \ | |
11499 | /usr/athena/lib \ | |
11500 | /usr/local/x11r5/lib \ | |
11501 | /usr/lpp/Xamples/lib \ | |
11502 | /lib/usr/lib/X11 \ | |
11503 | \ | |
11504 | /usr/openwin/lib \ | |
11505 | /usr/openwin/share/lib \ | |
11506 | ; \ | |
ab9b9eab VZ |
11507 | do |
11508 | for ac_extension in a so sl; do | |
698dcdb6 | 11509 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then |
ab9b9eab VZ |
11510 | ac_x_libraries=$ac_dir |
11511 | break 2 | |
10f2d63a | 11512 | fi |
10f2d63a | 11513 | done |
ab9b9eab VZ |
11514 | done |
11515 | fi | |
698dcdb6 VZ |
11516 | rm -f conftest* |
11517 | fi # $ac_x_libraries = NO | |
10f2d63a | 11518 | |
698dcdb6 | 11519 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
ab9b9eab VZ |
11520 | # Didn't find X anywhere. Cache the known absence of X. |
11521 | ac_cv_have_x="have_x=no" | |
11522 | else | |
11523 | # Record where we found X for the cache. | |
11524 | ac_cv_have_x="have_x=yes \ | |
11525 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
11526 | fi | |
11527 | fi | |
10f2d63a | 11528 | fi |
ab9b9eab VZ |
11529 | eval "$ac_cv_have_x" |
11530 | fi # $with_x != no | |
10f2d63a | 11531 | |
ab9b9eab | 11532 | if test "$have_x" != yes; then |
698dcdb6 | 11533 | echo "$ac_t""$have_x" 1>&6 |
ab9b9eab VZ |
11534 | no_x=yes |
11535 | else | |
11536 | # If each of the values was on the command line, it overrides each guess. | |
11537 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
11538 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
11539 | # Update the cache value to reflect the command line values. | |
11540 | ac_cv_have_x="have_x=yes \ | |
11541 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
698dcdb6 | 11542 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 |
ab9b9eab | 11543 | fi |
10f2d63a | 11544 | |
ab9b9eab VZ |
11545 | if test "$no_x" = yes; then |
11546 | # Not all programs may use this symbol, but it does not hurt to define it. | |
698dcdb6 | 11547 | cat >> confdefs.h <<\EOF |
ab9b9eab VZ |
11548 | #define X_DISPLAY_MISSING 1 |
11549 | EOF | |
10f2d63a | 11550 | |
ab9b9eab VZ |
11551 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
11552 | else | |
11553 | if test -n "$x_includes"; then | |
11554 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
10f2d63a VZ |
11555 | fi |
11556 | ||
ab9b9eab VZ |
11557 | # It would also be nice to do this for all -L options, not just this one. |
11558 | if test -n "$x_libraries"; then | |
11559 | X_LIBS="$X_LIBS -L$x_libraries" | |
11560 | # For Solaris; some versions of Sun CC require a space after -R and | |
11561 | # others require no space. Words are not sufficient . . . . | |
698dcdb6 | 11562 | case "`(uname -sr) 2>/dev/null`" in |
ab9b9eab | 11563 | "SunOS 5"*) |
698dcdb6 | 11564 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
dfe8399a | 11565 | echo "configure:11566: checking whether -R must be followed by a space" >&5 |
698dcdb6 VZ |
11566 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
11567 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 11568 | #line 11569 "configure" |
ab9b9eab | 11569 | #include "confdefs.h" |
10f2d63a | 11570 | |
698dcdb6 | 11571 | int main() { |
788deba1 | 11572 | |
698dcdb6 VZ |
11573 | ; return 0; } |
11574 | EOF | |
dfe8399a | 11575 | if { (eval echo configure:11576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 11576 | rm -rf conftest* |
ab9b9eab VZ |
11577 | ac_R_nospace=yes |
11578 | else | |
698dcdb6 VZ |
11579 | echo "configure: failed program was:" >&5 |
11580 | cat conftest.$ac_ext >&5 | |
11581 | rm -rf conftest* | |
11582 | ac_R_nospace=no | |
ab9b9eab | 11583 | fi |
698dcdb6 | 11584 | rm -f conftest* |
ab9b9eab | 11585 | if test $ac_R_nospace = yes; then |
698dcdb6 | 11586 | echo "$ac_t""no" 1>&6 |
ab9b9eab VZ |
11587 | X_LIBS="$X_LIBS -R$x_libraries" |
11588 | else | |
11589 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
698dcdb6 | 11590 | cat > conftest.$ac_ext <<EOF |
dfe8399a | 11591 | #line 11592 "configure" |
ab9b9eab | 11592 | #include "confdefs.h" |
788deba1 | 11593 | |
698dcdb6 | 11594 | int main() { |
ab9b9eab | 11595 | |
698dcdb6 VZ |
11596 | ; return 0; } |
11597 | EOF | |
dfe8399a | 11598 | if { (eval echo configure:11599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 11599 | rm -rf conftest* |
ab9b9eab VZ |
11600 | ac_R_space=yes |
11601 | else | |
698dcdb6 VZ |
11602 | echo "configure: failed program was:" >&5 |
11603 | cat conftest.$ac_ext >&5 | |
11604 | rm -rf conftest* | |
11605 | ac_R_space=no | |
ab9b9eab | 11606 | fi |
698dcdb6 | 11607 | rm -f conftest* |
ab9b9eab | 11608 | if test $ac_R_space = yes; then |
698dcdb6 | 11609 | echo "$ac_t""yes" 1>&6 |
ab9b9eab VZ |
11610 | X_LIBS="$X_LIBS -R $x_libraries" |
11611 | else | |
698dcdb6 | 11612 | echo "$ac_t""neither works" 1>&6 |
ab9b9eab VZ |
11613 | fi |
11614 | fi | |
698dcdb6 | 11615 | LIBS="$ac_xsave_LIBS" |
ab9b9eab VZ |
11616 | esac |
11617 | fi | |
11618 | ||
11619 | # Check for system-dependent libraries X programs must link with. | |
11620 | # Do this before checking for the system-independent R6 libraries | |
11621 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
11622 | ||
11623 | if test "$ISC" = yes; then | |
11624 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
11625 | else | |
698dcdb6 VZ |
11626 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
11627 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
ab9b9eab | 11628 | # the Alpha needs dnet_stub (dnet does not exist). |
698dcdb6 | 11629 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
dfe8399a | 11630 | echo "configure:11631: checking for dnet_ntoa in -ldnet" >&5 |
698dcdb6 VZ |
11631 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
11632 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11633 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11634 | else |
698dcdb6 | 11635 | ac_save_LIBS="$LIBS" |
ab9b9eab | 11636 | LIBS="-ldnet $LIBS" |
698dcdb6 | 11637 | cat > conftest.$ac_ext <<EOF |
dfe8399a | 11638 | #line 11639 "configure" |
ab9b9eab VZ |
11639 | #include "confdefs.h" |
11640 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11641 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11642 | builtin and then its argument prototype would still apply. */ |
11643 | char dnet_ntoa(); | |
11644 | ||
11645 | int main() { | |
11646 | dnet_ntoa() | |
11647 | ; return 0; } | |
11648 | EOF | |
dfe8399a | 11649 | if { (eval echo configure:11650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11650 | rm -rf conftest* |
11651 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11652 | else | |
11653 | echo "configure: failed program was:" >&5 | |
11654 | cat conftest.$ac_ext >&5 | |
11655 | rm -rf conftest* | |
11656 | eval "ac_cv_lib_$ac_lib_var=no" | |
11657 | fi | |
11658 | rm -f conftest* | |
11659 | LIBS="$ac_save_LIBS" | |
11660 | ||
11661 | fi | |
11662 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11663 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 11664 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
698dcdb6 VZ |
11665 | else |
11666 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11667 | fi |
11668 | ||
11669 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
698dcdb6 | 11670 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
dfe8399a | 11671 | echo "configure:11672: checking for dnet_ntoa in -ldnet_stub" >&5 |
698dcdb6 VZ |
11672 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
11673 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11674 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11675 | else |
698dcdb6 | 11676 | ac_save_LIBS="$LIBS" |
ab9b9eab | 11677 | LIBS="-ldnet_stub $LIBS" |
698dcdb6 | 11678 | cat > conftest.$ac_ext <<EOF |
dfe8399a | 11679 | #line 11680 "configure" |
ab9b9eab VZ |
11680 | #include "confdefs.h" |
11681 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11682 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11683 | builtin and then its argument prototype would still apply. */ |
11684 | char dnet_ntoa(); | |
11685 | ||
11686 | int main() { | |
11687 | dnet_ntoa() | |
11688 | ; return 0; } | |
11689 | EOF | |
dfe8399a | 11690 | if { (eval echo configure:11691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11691 | rm -rf conftest* |
11692 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11693 | else | |
11694 | echo "configure: failed program was:" >&5 | |
11695 | cat conftest.$ac_ext >&5 | |
11696 | rm -rf conftest* | |
11697 | eval "ac_cv_lib_$ac_lib_var=no" | |
11698 | fi | |
11699 | rm -f conftest* | |
11700 | LIBS="$ac_save_LIBS" | |
11701 | ||
11702 | fi | |
11703 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11704 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 11705 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
698dcdb6 VZ |
11706 | else |
11707 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11708 | fi |
11709 | ||
11710 | fi | |
11711 | ||
11712 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
11713 | # to get the SysV transport functions. | |
698dcdb6 | 11714 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
ab9b9eab VZ |
11715 | # needs -lnsl. |
11716 | # The nsl library prevents programs from opening the X display | |
698dcdb6 VZ |
11717 | # on Irix 5.2, according to dickey@clark.net. |
11718 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
dfe8399a | 11719 | echo "configure:11720: checking for gethostbyname" >&5 |
698dcdb6 VZ |
11720 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
11721 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11722 | else | |
11723 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 11724 | #line 11725 "configure" |
ab9b9eab VZ |
11725 | #include "confdefs.h" |
11726 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 11727 | which can conflict with char gethostbyname(); below. */ |
ab9b9eab VZ |
11728 | #include <assert.h> |
11729 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11730 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11731 | builtin and then its argument prototype would still apply. */ |
11732 | char gethostbyname(); | |
11733 | ||
11734 | int main() { | |
ab9b9eab VZ |
11735 | |
11736 | /* The GNU C library defines this for functions which it implements | |
11737 | to always fail with ENOSYS. Some functions are actually named | |
11738 | something starting with __ and the normal name is an alias. */ | |
11739 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
11740 | choke me | |
11741 | #else | |
698dcdb6 | 11742 | gethostbyname(); |
ab9b9eab VZ |
11743 | #endif |
11744 | ||
698dcdb6 VZ |
11745 | ; return 0; } |
11746 | EOF | |
dfe8399a | 11747 | if { (eval echo configure:11748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11748 | rm -rf conftest* |
11749 | eval "ac_cv_func_gethostbyname=yes" | |
11750 | else | |
11751 | echo "configure: failed program was:" >&5 | |
11752 | cat conftest.$ac_ext >&5 | |
11753 | rm -rf conftest* | |
11754 | eval "ac_cv_func_gethostbyname=no" | |
11755 | fi | |
11756 | rm -f conftest* | |
11757 | fi | |
11758 | ||
11759 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
11760 | echo "$ac_t""yes" 1>&6 | |
11761 | : | |
11762 | else | |
11763 | echo "$ac_t""no" 1>&6 | |
11764 | fi | |
ab9b9eab VZ |
11765 | |
11766 | if test $ac_cv_func_gethostbyname = no; then | |
698dcdb6 | 11767 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
dfe8399a | 11768 | echo "configure:11769: checking for gethostbyname in -lnsl" >&5 |
698dcdb6 VZ |
11769 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
11770 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11771 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11772 | else |
698dcdb6 | 11773 | ac_save_LIBS="$LIBS" |
ab9b9eab | 11774 | LIBS="-lnsl $LIBS" |
698dcdb6 | 11775 | cat > conftest.$ac_ext <<EOF |
dfe8399a | 11776 | #line 11777 "configure" |
ab9b9eab VZ |
11777 | #include "confdefs.h" |
11778 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11779 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11780 | builtin and then its argument prototype would still apply. */ |
11781 | char gethostbyname(); | |
6232543b | 11782 | |
698dcdb6 VZ |
11783 | int main() { |
11784 | gethostbyname() | |
11785 | ; return 0; } | |
11786 | EOF | |
dfe8399a | 11787 | if { (eval echo configure:11788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11788 | rm -rf conftest* |
11789 | eval "ac_cv_lib_$ac_lib_var=yes" | |
703e0a69 | 11790 | else |
698dcdb6 VZ |
11791 | echo "configure: failed program was:" >&5 |
11792 | cat conftest.$ac_ext >&5 | |
11793 | rm -rf conftest* | |
11794 | eval "ac_cv_lib_$ac_lib_var=no" | |
11795 | fi | |
11796 | rm -f conftest* | |
11797 | LIBS="$ac_save_LIBS" | |
1e487827 | 11798 | |
698dcdb6 VZ |
11799 | fi |
11800 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11801 | echo "$ac_t""yes" 1>&6 | |
11802 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
11803 | else | |
11804 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11805 | fi |
11806 | ||
11807 | fi | |
11808 | ||
11809 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
11810 | # socket/setsockopt and other routines are undefined under SCO ODT | |
11811 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
698dcdb6 VZ |
11812 | # on later versions), says simon@lia.di.epfl.ch: it contains |
11813 | # gethostby* variants that don't use the nameserver (or something). | |
11814 | # -lsocket must be given before -lnsl if both are needed. | |
11815 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
11816 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
dfe8399a | 11817 | echo "configure:11818: checking for connect" >&5 |
698dcdb6 VZ |
11818 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
11819 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11820 | else | |
11821 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 11822 | #line 11823 "configure" |
ab9b9eab VZ |
11823 | #include "confdefs.h" |
11824 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 11825 | which can conflict with char connect(); below. */ |
ab9b9eab VZ |
11826 | #include <assert.h> |
11827 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11828 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11829 | builtin and then its argument prototype would still apply. */ |
11830 | char connect(); | |
11831 | ||
11832 | int main() { | |
ab9b9eab VZ |
11833 | |
11834 | /* The GNU C library defines this for functions which it implements | |
11835 | to always fail with ENOSYS. Some functions are actually named | |
11836 | something starting with __ and the normal name is an alias. */ | |
11837 | #if defined (__stub_connect) || defined (__stub___connect) | |
11838 | choke me | |
11839 | #else | |
698dcdb6 | 11840 | connect(); |
ab9b9eab VZ |
11841 | #endif |
11842 | ||
698dcdb6 VZ |
11843 | ; return 0; } |
11844 | EOF | |
dfe8399a | 11845 | if { (eval echo configure:11846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11846 | rm -rf conftest* |
11847 | eval "ac_cv_func_connect=yes" | |
11848 | else | |
11849 | echo "configure: failed program was:" >&5 | |
11850 | cat conftest.$ac_ext >&5 | |
11851 | rm -rf conftest* | |
11852 | eval "ac_cv_func_connect=no" | |
11853 | fi | |
11854 | rm -f conftest* | |
11855 | fi | |
11856 | ||
11857 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
11858 | echo "$ac_t""yes" 1>&6 | |
11859 | : | |
11860 | else | |
11861 | echo "$ac_t""no" 1>&6 | |
11862 | fi | |
ab9b9eab VZ |
11863 | |
11864 | if test $ac_cv_func_connect = no; then | |
698dcdb6 | 11865 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
dfe8399a | 11866 | echo "configure:11867: checking for connect in -lsocket" >&5 |
698dcdb6 VZ |
11867 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
11868 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11869 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11870 | else |
698dcdb6 | 11871 | ac_save_LIBS="$LIBS" |
ab9b9eab | 11872 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
698dcdb6 | 11873 | cat > conftest.$ac_ext <<EOF |
dfe8399a | 11874 | #line 11875 "configure" |
ab9b9eab VZ |
11875 | #include "confdefs.h" |
11876 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11877 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11878 | builtin and then its argument prototype would still apply. */ |
11879 | char connect(); | |
11880 | ||
11881 | int main() { | |
11882 | connect() | |
11883 | ; return 0; } | |
11884 | EOF | |
dfe8399a | 11885 | if { (eval echo configure:11886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11886 | rm -rf conftest* |
11887 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11888 | else | |
11889 | echo "configure: failed program was:" >&5 | |
11890 | cat conftest.$ac_ext >&5 | |
11891 | rm -rf conftest* | |
11892 | eval "ac_cv_lib_$ac_lib_var=no" | |
11893 | fi | |
11894 | rm -f conftest* | |
11895 | LIBS="$ac_save_LIBS" | |
11896 | ||
11897 | fi | |
11898 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11899 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 11900 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
698dcdb6 VZ |
11901 | else |
11902 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11903 | fi |
11904 | ||
11905 | fi | |
11906 | ||
698dcdb6 VZ |
11907 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
11908 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
dfe8399a | 11909 | echo "configure:11910: checking for remove" >&5 |
698dcdb6 VZ |
11910 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
11911 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11912 | else |
698dcdb6 | 11913 | cat > conftest.$ac_ext <<EOF |
dfe8399a | 11914 | #line 11915 "configure" |
ab9b9eab VZ |
11915 | #include "confdefs.h" |
11916 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 11917 | which can conflict with char remove(); below. */ |
ab9b9eab VZ |
11918 | #include <assert.h> |
11919 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11920 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11921 | builtin and then its argument prototype would still apply. */ |
11922 | char remove(); | |
11923 | ||
11924 | int main() { | |
ab9b9eab VZ |
11925 | |
11926 | /* The GNU C library defines this for functions which it implements | |
11927 | to always fail with ENOSYS. Some functions are actually named | |
11928 | something starting with __ and the normal name is an alias. */ | |
11929 | #if defined (__stub_remove) || defined (__stub___remove) | |
11930 | choke me | |
11931 | #else | |
698dcdb6 | 11932 | remove(); |
ab9b9eab VZ |
11933 | #endif |
11934 | ||
698dcdb6 VZ |
11935 | ; return 0; } |
11936 | EOF | |
dfe8399a | 11937 | if { (eval echo configure:11938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11938 | rm -rf conftest* |
11939 | eval "ac_cv_func_remove=yes" | |
11940 | else | |
11941 | echo "configure: failed program was:" >&5 | |
11942 | cat conftest.$ac_ext >&5 | |
11943 | rm -rf conftest* | |
11944 | eval "ac_cv_func_remove=no" | |
11945 | fi | |
11946 | rm -f conftest* | |
11947 | fi | |
11948 | ||
11949 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
11950 | echo "$ac_t""yes" 1>&6 | |
11951 | : | |
11952 | else | |
11953 | echo "$ac_t""no" 1>&6 | |
11954 | fi | |
ab9b9eab VZ |
11955 | |
11956 | if test $ac_cv_func_remove = no; then | |
698dcdb6 | 11957 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
dfe8399a | 11958 | echo "configure:11959: checking for remove in -lposix" >&5 |
698dcdb6 VZ |
11959 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
11960 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11961 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11962 | else |
698dcdb6 | 11963 | ac_save_LIBS="$LIBS" |
ab9b9eab | 11964 | LIBS="-lposix $LIBS" |
698dcdb6 | 11965 | cat > conftest.$ac_ext <<EOF |
dfe8399a | 11966 | #line 11967 "configure" |
ab9b9eab VZ |
11967 | #include "confdefs.h" |
11968 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11969 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11970 | builtin and then its argument prototype would still apply. */ |
11971 | char remove(); | |
11972 | ||
11973 | int main() { | |
11974 | remove() | |
11975 | ; return 0; } | |
11976 | EOF | |
dfe8399a | 11977 | if { (eval echo configure:11978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11978 | rm -rf conftest* |
11979 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11980 | else | |
11981 | echo "configure: failed program was:" >&5 | |
11982 | cat conftest.$ac_ext >&5 | |
11983 | rm -rf conftest* | |
11984 | eval "ac_cv_lib_$ac_lib_var=no" | |
11985 | fi | |
11986 | rm -f conftest* | |
11987 | LIBS="$ac_save_LIBS" | |
11988 | ||
11989 | fi | |
11990 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11991 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 11992 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
698dcdb6 VZ |
11993 | else |
11994 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11995 | fi |
11996 | ||
11997 | fi | |
11998 | ||
11999 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
698dcdb6 | 12000 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
dfe8399a | 12001 | echo "configure:12002: checking for shmat" >&5 |
698dcdb6 VZ |
12002 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
12003 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 12004 | else |
698dcdb6 | 12005 | cat > conftest.$ac_ext <<EOF |
dfe8399a | 12006 | #line 12007 "configure" |
ab9b9eab VZ |
12007 | #include "confdefs.h" |
12008 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12009 | which can conflict with char shmat(); below. */ |
ab9b9eab VZ |
12010 | #include <assert.h> |
12011 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12012 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12013 | builtin and then its argument prototype would still apply. */ |
12014 | char shmat(); | |
12015 | ||
12016 | int main() { | |
ab9b9eab VZ |
12017 | |
12018 | /* The GNU C library defines this for functions which it implements | |
12019 | to always fail with ENOSYS. Some functions are actually named | |
12020 | something starting with __ and the normal name is an alias. */ | |
12021 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
12022 | choke me | |
12023 | #else | |
698dcdb6 | 12024 | shmat(); |
ab9b9eab VZ |
12025 | #endif |
12026 | ||
698dcdb6 VZ |
12027 | ; return 0; } |
12028 | EOF | |
dfe8399a | 12029 | if { (eval echo configure:12030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12030 | rm -rf conftest* |
12031 | eval "ac_cv_func_shmat=yes" | |
12032 | else | |
12033 | echo "configure: failed program was:" >&5 | |
12034 | cat conftest.$ac_ext >&5 | |
12035 | rm -rf conftest* | |
12036 | eval "ac_cv_func_shmat=no" | |
12037 | fi | |
12038 | rm -f conftest* | |
12039 | fi | |
12040 | ||
12041 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
12042 | echo "$ac_t""yes" 1>&6 | |
12043 | : | |
12044 | else | |
12045 | echo "$ac_t""no" 1>&6 | |
12046 | fi | |
ab9b9eab VZ |
12047 | |
12048 | if test $ac_cv_func_shmat = no; then | |
698dcdb6 | 12049 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
dfe8399a | 12050 | echo "configure:12051: checking for shmat in -lipc" >&5 |
698dcdb6 VZ |
12051 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
12052 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12053 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 12054 | else |
698dcdb6 | 12055 | ac_save_LIBS="$LIBS" |
ab9b9eab | 12056 | LIBS="-lipc $LIBS" |
698dcdb6 | 12057 | cat > conftest.$ac_ext <<EOF |
dfe8399a | 12058 | #line 12059 "configure" |
ab9b9eab VZ |
12059 | #include "confdefs.h" |
12060 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12061 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12062 | builtin and then its argument prototype would still apply. */ |
12063 | char shmat(); | |
12064 | ||
12065 | int main() { | |
12066 | shmat() | |
12067 | ; return 0; } | |
12068 | EOF | |
dfe8399a | 12069 | if { (eval echo configure:12070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12070 | rm -rf conftest* |
12071 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12072 | else | |
12073 | echo "configure: failed program was:" >&5 | |
12074 | cat conftest.$ac_ext >&5 | |
12075 | rm -rf conftest* | |
12076 | eval "ac_cv_lib_$ac_lib_var=no" | |
12077 | fi | |
12078 | rm -f conftest* | |
12079 | LIBS="$ac_save_LIBS" | |
12080 | ||
12081 | fi | |
12082 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12083 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 12084 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
698dcdb6 VZ |
12085 | else |
12086 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
12087 | fi |
12088 | ||
12089 | fi | |
12090 | fi | |
12091 | ||
12092 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
698dcdb6 | 12093 | ac_save_LDFLAGS="$LDFLAGS" |
ab9b9eab VZ |
12094 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
12095 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
12096 | # check for ICE first), but we must link in the order -lSM -lICE or | |
12097 | # we get undefined symbols. So assume we have SM if we have ICE. | |
12098 | # These have to be linked with before -lX11, unlike the other | |
12099 | # libraries we check for below, so use a different variable. | |
698dcdb6 VZ |
12100 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
12101 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
dfe8399a | 12102 | echo "configure:12103: checking for IceConnectionNumber in -lICE" >&5 |
698dcdb6 VZ |
12103 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
12104 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12105 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12106 | else | |
12107 | ac_save_LIBS="$LIBS" | |
ab9b9eab | 12108 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
698dcdb6 | 12109 | cat > conftest.$ac_ext <<EOF |
dfe8399a | 12110 | #line 12111 "configure" |
ab9b9eab VZ |
12111 | #include "confdefs.h" |
12112 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12113 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12114 | builtin and then its argument prototype would still apply. */ |
12115 | char IceConnectionNumber(); | |
12116 | ||
12117 | int main() { | |
12118 | IceConnectionNumber() | |
12119 | ; return 0; } | |
12120 | EOF | |
dfe8399a | 12121 | if { (eval echo configure:12122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12122 | rm -rf conftest* |
12123 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12124 | else | |
12125 | echo "configure: failed program was:" >&5 | |
12126 | cat conftest.$ac_ext >&5 | |
12127 | rm -rf conftest* | |
12128 | eval "ac_cv_lib_$ac_lib_var=no" | |
12129 | fi | |
12130 | rm -f conftest* | |
12131 | LIBS="$ac_save_LIBS" | |
12132 | ||
12133 | fi | |
12134 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12135 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 12136 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
698dcdb6 VZ |
12137 | else |
12138 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
12139 | fi |
12140 | ||
698dcdb6 | 12141 | LDFLAGS="$ac_save_LDFLAGS" |
ab9b9eab VZ |
12142 | |
12143 | fi | |
12144 | ||
12145 | ||
1e6feb95 VZ |
12146 | if test "$no_x" = "yes"; then |
12147 | { echo "configure: error: X11 not found" 1>&2; exit 1; } | |
12148 | fi | |
ab9b9eab | 12149 | |
1e6feb95 VZ |
12150 | GUI_TK_LIBRARY="$X_LIBS" |
12151 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
1e6feb95 | 12152 | AFMINSTALL=afminstall |
1e6feb95 | 12153 | COMPILED_X_PROGRAM=0 |
cd6d6d5b | 12154 | |
e334d0ea | 12155 | if test "$wxUSE_NANOX" = "yes"; then |
d8356fa3 | 12156 | echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6 |
dfe8399a | 12157 | echo "configure:12158: checking for MicroWindows/NanoX distribution" >&5 |
d8356fa3 VZ |
12158 | if test "x$MICROWIN" = x ; then |
12159 | echo "$ac_t""not found" 1>&6 | |
12160 | { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; } | |
12161 | else | |
12162 | echo "$ac_t""$MICROWIN" 1>&6 | |
c79a329d JS |
12163 | cat >> confdefs.h <<\EOF |
12164 | #define wxUSE_NANOX 1 | |
12165 | EOF | |
12166 | ||
d8356fa3 VZ |
12167 | fi |
12168 | fi | |
12169 | ||
3d63bc3a | 12170 | xpm_link= |
1e6feb95 | 12171 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 |
dfe8399a | 12172 | echo "configure:12173: checking for Xpm library" >&5 |
1e6feb95 | 12173 | |
ab9b9eab VZ |
12174 | ac_find_libraries= |
12175 | for ac_dir in $SEARCH_LIB; | |
12176 | do | |
f11bdd03 | 12177 | for ac_extension in a so sl dylib; do |
ab9b9eab VZ |
12178 | if test -f "$ac_dir/libXpm.$ac_extension"; then |
12179 | ac_find_libraries=$ac_dir | |
12180 | break 2 | |
12181 | fi | |
12182 | done | |
12183 | done | |
12184 | ||
1e6feb95 VZ |
12185 | if test "$ac_find_libraries" != "" ; then |
12186 | ||
ab9b9eab VZ |
12187 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
12188 | result=$? | |
12189 | if test $result = 0; then | |
12190 | ac_path_to_link="" | |
12191 | else | |
62d0491b | 12192 | ac_path_to_link=" -L$ac_find_libraries" |
ab9b9eab VZ |
12193 | fi |
12194 | ||
62d0491b | 12195 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
3d63bc3a | 12196 | xpm_link=" -lXpm" |
1e6feb95 | 12197 | cat >> confdefs.h <<\EOF |
ab9b9eab VZ |
12198 | #define wxHAVE_LIB_XPM 1 |
12199 | EOF | |
12200 | ||
1e6feb95 VZ |
12201 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
12202 | else | |
12203 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 12204 | #line 12205 "configure" |
cd6d6d5b VZ |
12205 | #include "confdefs.h" |
12206 | ||
1e6feb95 VZ |
12207 | #include <X11/xpm.h> |
12208 | ||
698dcdb6 | 12209 | int main() { |
cd6d6d5b | 12210 | |
1e6feb95 | 12211 | int version; |
1e6feb95 VZ |
12212 | version = XpmLibraryVersion(); |
12213 | ||
698dcdb6 VZ |
12214 | ; return 0; } |
12215 | EOF | |
dfe8399a | 12216 | if { (eval echo configure:12217: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12217 | rm -rf conftest* |
12218 | ||
3d63bc3a | 12219 | xpm_link=" -lXpm" |
3a922bb4 | 12220 | cat >> confdefs.h <<\EOF |
3ace2e6d SN |
12221 | #define wxHAVE_LIB_XPM 1 |
12222 | EOF | |
12223 | ||
1e6feb95 VZ |
12224 | echo "$ac_t""found in default search path" 1>&6 |
12225 | COMPILED_X_PROGRAM=0 | |
12226 | ||
cd6d6d5b | 12227 | else |
698dcdb6 VZ |
12228 | echo "configure: failed program was:" >&5 |
12229 | cat conftest.$ac_ext >&5 | |
12230 | rm -rf conftest* | |
12231 | ||
1e6feb95 VZ |
12232 | echo "$ac_t""no" 1>&6 |
12233 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
12234 | ||
698dcdb6 | 12235 | |
cd6d6d5b | 12236 | fi |
698dcdb6 | 12237 | rm -f conftest* |
1e6feb95 VZ |
12238 | fi |
12239 | ||
e334d0ea | 12240 | if test "$wxUSE_NANOX" = "yes"; then |
d8356fa3 | 12241 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" |
17c89ef3 | 12242 | 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" |
461e93f9 | 12243 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" |
d8356fa3 | 12244 | else |
0feee163 | 12245 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link" |
d8356fa3 VZ |
12246 | fi |
12247 | ||
3c011993 | 12248 | TOOLKIT_VPATH="\${top_srcdir}/src/x11" |
f79bd02d JS |
12249 | TOOLKIT=X11 |
12250 | GUIDIST=X11_DIST | |
1e6feb95 | 12251 | fi |
10f2d63a | 12252 | |
f79bd02d JS |
12253 | if test "$wxUSE_WINE" = 1; then |
12254 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` | |
12255 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
dfe8399a | 12256 | echo "configure:12257: checking for windows.h" >&5 |
f79bd02d JS |
12257 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12258 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12259 | else | |
12260 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 12261 | #line 12262 "configure" |
f79bd02d JS |
12262 | #include "confdefs.h" |
12263 | #include <windows.h> | |
12264 | EOF | |
12265 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
dfe8399a | 12266 | { (eval echo configure:12267: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
f79bd02d JS |
12267 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12268 | if test -z "$ac_err"; then | |
12269 | rm -rf conftest* | |
12270 | eval "ac_cv_header_$ac_safe=yes" | |
12271 | else | |
12272 | echo "$ac_err" >&5 | |
12273 | echo "configure: failed program was:" >&5 | |
12274 | cat conftest.$ac_ext >&5 | |
12275 | rm -rf conftest* | |
12276 | eval "ac_cv_header_$ac_safe=no" | |
12277 | fi | |
12278 | rm -f conftest* | |
12279 | fi | |
12280 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12281 | echo "$ac_t""yes" 1>&6 | |
12282 | : | |
12283 | else | |
12284 | echo "$ac_t""no" 1>&6 | |
12285 | ||
12286 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
12287 | ||
12288 | fi | |
12289 | ||
12290 | ||
12291 | xpm_link= | |
12292 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
dfe8399a | 12293 | echo "configure:12294: checking for Xpm library" >&5 |
f79bd02d JS |
12294 | |
12295 | ac_find_libraries= | |
12296 | for ac_dir in $SEARCH_LIB; | |
12297 | do | |
12298 | for ac_extension in a so sl dylib; do | |
12299 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
12300 | ac_find_libraries=$ac_dir | |
12301 | break 2 | |
12302 | fi | |
12303 | done | |
12304 | done | |
12305 | ||
12306 | if test "$ac_find_libraries" != "" ; then | |
12307 | GUI_TK_LIBRARY="-L$ac_find_libraries" | |
12308 | xpm_link=" -lXpm" | |
12309 | cat >> confdefs.h <<\EOF | |
12310 | #define wxHAVE_LIB_XPM 1 | |
12311 | EOF | |
12312 | ||
12313 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
12314 | else | |
12315 | echo "$ac_t""no" 1>&6 | |
12316 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
12317 | fi | |
12318 | ||
12319 | mesa_link= | |
12320 | echo $ac_n "checking for Mesa library""... $ac_c" 1>&6 | |
dfe8399a | 12321 | echo "configure:12322: checking for Mesa library" >&5 |
f79bd02d JS |
12322 | |
12323 | ac_find_libraries= | |
12324 | for ac_dir in $SEARCH_LIB; | |
12325 | do | |
12326 | for ac_extension in a so sl dylib; do | |
12327 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
12328 | ac_find_libraries=$ac_dir | |
12329 | break 2 | |
12330 | fi | |
12331 | done | |
12332 | done | |
12333 | ||
12334 | if test "$ac_find_libraries" != "" ; then | |
12335 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries" | |
12336 | mesa_link=" -lMesaGL" | |
12337 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
12338 | else | |
12339 | { echo "configure: error: no" 1>&2; exit 1; } | |
12340 | fi | |
12341 | ||
12342 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses" | |
12343 | TOOLKIT=MSW | |
12344 | GUIDIST=MSW_DIST | |
12345 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__" | |
12346 | fi | |
12347 | ||
12348 | if test "$wxUSE_MOTIF" = 1; then | |
12349 | if test "$no_x" = yes; then | |
12350 | # Not all programs may use this symbol, but it does not hurt to define it. | |
12351 | cat >> confdefs.h <<\EOF | |
12352 | #define X_DISPLAY_MISSING 1 | |
12353 | EOF | |
12354 | ||
12355 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
12356 | else | |
12357 | if test -n "$x_includes"; then | |
12358 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
12359 | fi | |
12360 | ||
12361 | # It would also be nice to do this for all -L options, not just this one. | |
12362 | if test -n "$x_libraries"; then | |
12363 | X_LIBS="$X_LIBS -L$x_libraries" | |
12364 | # For Solaris; some versions of Sun CC require a space after -R and | |
12365 | # others require no space. Words are not sufficient . . . . | |
12366 | case "`(uname -sr) 2>/dev/null`" in | |
12367 | "SunOS 5"*) | |
12368 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 | |
dfe8399a | 12369 | echo "configure:12370: checking whether -R must be followed by a space" >&5 |
f79bd02d JS |
12370 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
12371 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 12372 | #line 12373 "configure" |
f79bd02d JS |
12373 | #include "confdefs.h" |
12374 | ||
12375 | int main() { | |
12376 | ||
12377 | ; return 0; } | |
12378 | EOF | |
dfe8399a | 12379 | if { (eval echo configure:12380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12380 | rm -rf conftest* |
12381 | ac_R_nospace=yes | |
12382 | else | |
12383 | echo "configure: failed program was:" >&5 | |
12384 | cat conftest.$ac_ext >&5 | |
12385 | rm -rf conftest* | |
12386 | ac_R_nospace=no | |
12387 | fi | |
12388 | rm -f conftest* | |
12389 | if test $ac_R_nospace = yes; then | |
12390 | echo "$ac_t""no" 1>&6 | |
12391 | X_LIBS="$X_LIBS -R$x_libraries" | |
12392 | else | |
12393 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
12394 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 12395 | #line 12396 "configure" |
f79bd02d JS |
12396 | #include "confdefs.h" |
12397 | ||
12398 | int main() { | |
12399 | ||
12400 | ; return 0; } | |
12401 | EOF | |
dfe8399a | 12402 | if { (eval echo configure:12403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12403 | rm -rf conftest* |
12404 | ac_R_space=yes | |
12405 | else | |
12406 | echo "configure: failed program was:" >&5 | |
12407 | cat conftest.$ac_ext >&5 | |
12408 | rm -rf conftest* | |
12409 | ac_R_space=no | |
12410 | fi | |
12411 | rm -f conftest* | |
12412 | if test $ac_R_space = yes; then | |
12413 | echo "$ac_t""yes" 1>&6 | |
12414 | X_LIBS="$X_LIBS -R $x_libraries" | |
12415 | else | |
12416 | echo "$ac_t""neither works" 1>&6 | |
12417 | fi | |
12418 | fi | |
12419 | LIBS="$ac_xsave_LIBS" | |
12420 | esac | |
12421 | fi | |
12422 | ||
12423 | # Check for system-dependent libraries X programs must link with. | |
12424 | # Do this before checking for the system-independent R6 libraries | |
12425 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
12426 | ||
12427 | if test "$ISC" = yes; then | |
12428 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
12429 | else | |
12430 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X | |
12431 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
12432 | # the Alpha needs dnet_stub (dnet does not exist). | |
12433 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 | |
dfe8399a | 12434 | echo "configure:12435: checking for dnet_ntoa in -ldnet" >&5 |
f79bd02d JS |
12435 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
12436 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12437 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12438 | else | |
12439 | ac_save_LIBS="$LIBS" | |
12440 | LIBS="-ldnet $LIBS" | |
12441 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 12442 | #line 12443 "configure" |
f79bd02d JS |
12443 | #include "confdefs.h" |
12444 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12445 | /* We use char because int might match the return type of a gcc2 | |
12446 | builtin and then its argument prototype would still apply. */ | |
12447 | char dnet_ntoa(); | |
12448 | ||
12449 | int main() { | |
12450 | dnet_ntoa() | |
12451 | ; return 0; } | |
12452 | EOF | |
dfe8399a | 12453 | if { (eval echo configure:12454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12454 | rm -rf conftest* |
12455 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12456 | else | |
12457 | echo "configure: failed program was:" >&5 | |
12458 | cat conftest.$ac_ext >&5 | |
12459 | rm -rf conftest* | |
12460 | eval "ac_cv_lib_$ac_lib_var=no" | |
12461 | fi | |
12462 | rm -f conftest* | |
12463 | LIBS="$ac_save_LIBS" | |
12464 | ||
12465 | fi | |
12466 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12467 | echo "$ac_t""yes" 1>&6 | |
12468 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
12469 | else | |
12470 | echo "$ac_t""no" 1>&6 | |
12471 | fi | |
12472 | ||
12473 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
12474 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 | |
dfe8399a | 12475 | echo "configure:12476: checking for dnet_ntoa in -ldnet_stub" >&5 |
f79bd02d JS |
12476 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
12477 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12478 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12479 | else | |
12480 | ac_save_LIBS="$LIBS" | |
12481 | LIBS="-ldnet_stub $LIBS" | |
12482 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 12483 | #line 12484 "configure" |
f79bd02d JS |
12484 | #include "confdefs.h" |
12485 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12486 | /* We use char because int might match the return type of a gcc2 | |
12487 | builtin and then its argument prototype would still apply. */ | |
12488 | char dnet_ntoa(); | |
12489 | ||
12490 | int main() { | |
12491 | dnet_ntoa() | |
12492 | ; return 0; } | |
12493 | EOF | |
dfe8399a | 12494 | if { (eval echo configure:12495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12495 | rm -rf conftest* |
12496 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12497 | else | |
12498 | echo "configure: failed program was:" >&5 | |
12499 | cat conftest.$ac_ext >&5 | |
12500 | rm -rf conftest* | |
12501 | eval "ac_cv_lib_$ac_lib_var=no" | |
12502 | fi | |
12503 | rm -f conftest* | |
12504 | LIBS="$ac_save_LIBS" | |
12505 | ||
12506 | fi | |
12507 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12508 | echo "$ac_t""yes" 1>&6 | |
12509 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
12510 | else | |
12511 | echo "$ac_t""no" 1>&6 | |
12512 | fi | |
12513 | ||
12514 | fi | |
12515 | ||
12516 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
12517 | # to get the SysV transport functions. | |
12518 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) | |
12519 | # needs -lnsl. | |
12520 | # The nsl library prevents programs from opening the X display | |
12521 | # on Irix 5.2, according to dickey@clark.net. | |
12522 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
dfe8399a | 12523 | echo "configure:12524: checking for gethostbyname" >&5 |
f79bd02d JS |
12524 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
12525 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12526 | else | |
12527 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 12528 | #line 12529 "configure" |
f79bd02d JS |
12529 | #include "confdefs.h" |
12530 | /* System header to define __stub macros and hopefully few prototypes, | |
12531 | which can conflict with char gethostbyname(); below. */ | |
12532 | #include <assert.h> | |
12533 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12534 | /* We use char because int might match the return type of a gcc2 | |
12535 | builtin and then its argument prototype would still apply. */ | |
12536 | char gethostbyname(); | |
12537 | ||
12538 | int main() { | |
12539 | ||
12540 | /* The GNU C library defines this for functions which it implements | |
12541 | to always fail with ENOSYS. Some functions are actually named | |
12542 | something starting with __ and the normal name is an alias. */ | |
12543 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
12544 | choke me | |
12545 | #else | |
12546 | gethostbyname(); | |
12547 | #endif | |
12548 | ||
12549 | ; return 0; } | |
12550 | EOF | |
dfe8399a | 12551 | if { (eval echo configure:12552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12552 | rm -rf conftest* |
12553 | eval "ac_cv_func_gethostbyname=yes" | |
12554 | else | |
12555 | echo "configure: failed program was:" >&5 | |
12556 | cat conftest.$ac_ext >&5 | |
12557 | rm -rf conftest* | |
12558 | eval "ac_cv_func_gethostbyname=no" | |
12559 | fi | |
12560 | rm -f conftest* | |
12561 | fi | |
12562 | ||
12563 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
12564 | echo "$ac_t""yes" 1>&6 | |
12565 | : | |
12566 | else | |
12567 | echo "$ac_t""no" 1>&6 | |
12568 | fi | |
12569 | ||
12570 | if test $ac_cv_func_gethostbyname = no; then | |
12571 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 | |
dfe8399a | 12572 | echo "configure:12573: checking for gethostbyname in -lnsl" >&5 |
f79bd02d JS |
12573 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
12574 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12575 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12576 | else | |
12577 | ac_save_LIBS="$LIBS" | |
12578 | LIBS="-lnsl $LIBS" | |
12579 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 12580 | #line 12581 "configure" |
f79bd02d JS |
12581 | #include "confdefs.h" |
12582 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12583 | /* We use char because int might match the return type of a gcc2 | |
12584 | builtin and then its argument prototype would still apply. */ | |
12585 | char gethostbyname(); | |
12586 | ||
12587 | int main() { | |
12588 | gethostbyname() | |
12589 | ; return 0; } | |
12590 | EOF | |
dfe8399a | 12591 | if { (eval echo configure:12592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12592 | rm -rf conftest* |
12593 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12594 | else | |
12595 | echo "configure: failed program was:" >&5 | |
12596 | cat conftest.$ac_ext >&5 | |
12597 | rm -rf conftest* | |
12598 | eval "ac_cv_lib_$ac_lib_var=no" | |
12599 | fi | |
12600 | rm -f conftest* | |
12601 | LIBS="$ac_save_LIBS" | |
12602 | ||
12603 | fi | |
12604 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12605 | echo "$ac_t""yes" 1>&6 | |
12606 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
12607 | else | |
12608 | echo "$ac_t""no" 1>&6 | |
12609 | fi | |
12610 | ||
12611 | fi | |
12612 | ||
12613 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
12614 | # socket/setsockopt and other routines are undefined under SCO ODT | |
12615 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
12616 | # on later versions), says simon@lia.di.epfl.ch: it contains | |
12617 | # gethostby* variants that don't use the nameserver (or something). | |
12618 | # -lsocket must be given before -lnsl if both are needed. | |
12619 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
12620 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
dfe8399a | 12621 | echo "configure:12622: checking for connect" >&5 |
f79bd02d JS |
12622 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
12623 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12624 | else | |
12625 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 12626 | #line 12627 "configure" |
f79bd02d JS |
12627 | #include "confdefs.h" |
12628 | /* System header to define __stub macros and hopefully few prototypes, | |
12629 | which can conflict with char connect(); below. */ | |
12630 | #include <assert.h> | |
12631 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12632 | /* We use char because int might match the return type of a gcc2 | |
12633 | builtin and then its argument prototype would still apply. */ | |
12634 | char connect(); | |
12635 | ||
12636 | int main() { | |
12637 | ||
12638 | /* The GNU C library defines this for functions which it implements | |
12639 | to always fail with ENOSYS. Some functions are actually named | |
12640 | something starting with __ and the normal name is an alias. */ | |
12641 | #if defined (__stub_connect) || defined (__stub___connect) | |
12642 | choke me | |
12643 | #else | |
12644 | connect(); | |
12645 | #endif | |
12646 | ||
12647 | ; return 0; } | |
12648 | EOF | |
dfe8399a | 12649 | if { (eval echo configure:12650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12650 | rm -rf conftest* |
12651 | eval "ac_cv_func_connect=yes" | |
12652 | else | |
12653 | echo "configure: failed program was:" >&5 | |
12654 | cat conftest.$ac_ext >&5 | |
12655 | rm -rf conftest* | |
12656 | eval "ac_cv_func_connect=no" | |
12657 | fi | |
12658 | rm -f conftest* | |
12659 | fi | |
12660 | ||
12661 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
12662 | echo "$ac_t""yes" 1>&6 | |
12663 | : | |
12664 | else | |
12665 | echo "$ac_t""no" 1>&6 | |
12666 | fi | |
12667 | ||
12668 | if test $ac_cv_func_connect = no; then | |
12669 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 | |
dfe8399a | 12670 | echo "configure:12671: checking for connect in -lsocket" >&5 |
f79bd02d JS |
12671 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
12672 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12673 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12674 | else | |
12675 | ac_save_LIBS="$LIBS" | |
12676 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
12677 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 12678 | #line 12679 "configure" |
f79bd02d JS |
12679 | #include "confdefs.h" |
12680 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12681 | /* We use char because int might match the return type of a gcc2 | |
12682 | builtin and then its argument prototype would still apply. */ | |
12683 | char connect(); | |
12684 | ||
12685 | int main() { | |
12686 | connect() | |
12687 | ; return 0; } | |
12688 | EOF | |
dfe8399a | 12689 | if { (eval echo configure:12690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12690 | rm -rf conftest* |
12691 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12692 | else | |
12693 | echo "configure: failed program was:" >&5 | |
12694 | cat conftest.$ac_ext >&5 | |
12695 | rm -rf conftest* | |
12696 | eval "ac_cv_lib_$ac_lib_var=no" | |
12697 | fi | |
12698 | rm -f conftest* | |
12699 | LIBS="$ac_save_LIBS" | |
12700 | ||
12701 | fi | |
12702 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12703 | echo "$ac_t""yes" 1>&6 | |
12704 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
12705 | else | |
12706 | echo "$ac_t""no" 1>&6 | |
12707 | fi | |
12708 | ||
12709 | fi | |
12710 | ||
12711 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. | |
12712 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
dfe8399a | 12713 | echo "configure:12714: checking for remove" >&5 |
f79bd02d JS |
12714 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
12715 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12716 | else | |
12717 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 12718 | #line 12719 "configure" |
f79bd02d JS |
12719 | #include "confdefs.h" |
12720 | /* System header to define __stub macros and hopefully few prototypes, | |
12721 | which can conflict with char remove(); below. */ | |
12722 | #include <assert.h> | |
12723 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12724 | /* We use char because int might match the return type of a gcc2 | |
12725 | builtin and then its argument prototype would still apply. */ | |
12726 | char remove(); | |
12727 | ||
12728 | int main() { | |
12729 | ||
12730 | /* The GNU C library defines this for functions which it implements | |
12731 | to always fail with ENOSYS. Some functions are actually named | |
12732 | something starting with __ and the normal name is an alias. */ | |
12733 | #if defined (__stub_remove) || defined (__stub___remove) | |
12734 | choke me | |
12735 | #else | |
12736 | remove(); | |
12737 | #endif | |
12738 | ||
12739 | ; return 0; } | |
12740 | EOF | |
dfe8399a | 12741 | if { (eval echo configure:12742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12742 | rm -rf conftest* |
12743 | eval "ac_cv_func_remove=yes" | |
12744 | else | |
12745 | echo "configure: failed program was:" >&5 | |
12746 | cat conftest.$ac_ext >&5 | |
12747 | rm -rf conftest* | |
12748 | eval "ac_cv_func_remove=no" | |
12749 | fi | |
12750 | rm -f conftest* | |
12751 | fi | |
12752 | ||
12753 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
12754 | echo "$ac_t""yes" 1>&6 | |
12755 | : | |
12756 | else | |
12757 | echo "$ac_t""no" 1>&6 | |
12758 | fi | |
12759 | ||
12760 | if test $ac_cv_func_remove = no; then | |
12761 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 | |
dfe8399a | 12762 | echo "configure:12763: checking for remove in -lposix" >&5 |
f79bd02d JS |
12763 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
12764 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12765 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12766 | else | |
12767 | ac_save_LIBS="$LIBS" | |
12768 | LIBS="-lposix $LIBS" | |
12769 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 12770 | #line 12771 "configure" |
f79bd02d JS |
12771 | #include "confdefs.h" |
12772 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12773 | /* We use char because int might match the return type of a gcc2 | |
12774 | builtin and then its argument prototype would still apply. */ | |
12775 | char remove(); | |
12776 | ||
12777 | int main() { | |
12778 | remove() | |
12779 | ; return 0; } | |
12780 | EOF | |
dfe8399a | 12781 | if { (eval echo configure:12782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12782 | rm -rf conftest* |
12783 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12784 | else | |
12785 | echo "configure: failed program was:" >&5 | |
12786 | cat conftest.$ac_ext >&5 | |
12787 | rm -rf conftest* | |
12788 | eval "ac_cv_lib_$ac_lib_var=no" | |
12789 | fi | |
12790 | rm -f conftest* | |
12791 | LIBS="$ac_save_LIBS" | |
12792 | ||
12793 | fi | |
12794 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12795 | echo "$ac_t""yes" 1>&6 | |
12796 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
12797 | else | |
12798 | echo "$ac_t""no" 1>&6 | |
12799 | fi | |
12800 | ||
12801 | fi | |
12802 | ||
12803 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
12804 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 | |
dfe8399a | 12805 | echo "configure:12806: checking for shmat" >&5 |
f79bd02d JS |
12806 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
12807 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12808 | else | |
12809 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 12810 | #line 12811 "configure" |
f79bd02d JS |
12811 | #include "confdefs.h" |
12812 | /* System header to define __stub macros and hopefully few prototypes, | |
12813 | which can conflict with char shmat(); below. */ | |
12814 | #include <assert.h> | |
12815 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12816 | /* We use char because int might match the return type of a gcc2 | |
12817 | builtin and then its argument prototype would still apply. */ | |
12818 | char shmat(); | |
12819 | ||
12820 | int main() { | |
12821 | ||
12822 | /* The GNU C library defines this for functions which it implements | |
12823 | to always fail with ENOSYS. Some functions are actually named | |
12824 | something starting with __ and the normal name is an alias. */ | |
12825 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
12826 | choke me | |
12827 | #else | |
12828 | shmat(); | |
12829 | #endif | |
12830 | ||
12831 | ; return 0; } | |
12832 | EOF | |
dfe8399a | 12833 | if { (eval echo configure:12834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12834 | rm -rf conftest* |
12835 | eval "ac_cv_func_shmat=yes" | |
12836 | else | |
12837 | echo "configure: failed program was:" >&5 | |
12838 | cat conftest.$ac_ext >&5 | |
12839 | rm -rf conftest* | |
12840 | eval "ac_cv_func_shmat=no" | |
12841 | fi | |
12842 | rm -f conftest* | |
12843 | fi | |
12844 | ||
12845 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
12846 | echo "$ac_t""yes" 1>&6 | |
12847 | : | |
12848 | else | |
12849 | echo "$ac_t""no" 1>&6 | |
12850 | fi | |
12851 | ||
12852 | if test $ac_cv_func_shmat = no; then | |
12853 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 | |
dfe8399a | 12854 | echo "configure:12855: checking for shmat in -lipc" >&5 |
f79bd02d JS |
12855 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
12856 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12857 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12858 | else | |
12859 | ac_save_LIBS="$LIBS" | |
12860 | LIBS="-lipc $LIBS" | |
12861 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 12862 | #line 12863 "configure" |
f79bd02d JS |
12863 | #include "confdefs.h" |
12864 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12865 | /* We use char because int might match the return type of a gcc2 | |
12866 | builtin and then its argument prototype would still apply. */ | |
12867 | char shmat(); | |
12868 | ||
12869 | int main() { | |
12870 | shmat() | |
12871 | ; return 0; } | |
12872 | EOF | |
dfe8399a | 12873 | if { (eval echo configure:12874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12874 | rm -rf conftest* |
12875 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12876 | else | |
12877 | echo "configure: failed program was:" >&5 | |
12878 | cat conftest.$ac_ext >&5 | |
12879 | rm -rf conftest* | |
12880 | eval "ac_cv_lib_$ac_lib_var=no" | |
12881 | fi | |
12882 | rm -f conftest* | |
12883 | LIBS="$ac_save_LIBS" | |
12884 | ||
12885 | fi | |
12886 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12887 | echo "$ac_t""yes" 1>&6 | |
12888 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
12889 | else | |
12890 | echo "$ac_t""no" 1>&6 | |
12891 | fi | |
12892 | ||
12893 | fi | |
12894 | fi | |
12895 | ||
12896 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
12897 | ac_save_LDFLAGS="$LDFLAGS" | |
12898 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
12899 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
12900 | # check for ICE first), but we must link in the order -lSM -lICE or | |
12901 | # we get undefined symbols. So assume we have SM if we have ICE. | |
12902 | # These have to be linked with before -lX11, unlike the other | |
12903 | # libraries we check for below, so use a different variable. | |
12904 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. | |
12905 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
dfe8399a | 12906 | echo "configure:12907: checking for IceConnectionNumber in -lICE" >&5 |
f79bd02d JS |
12907 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
12908 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12909 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12910 | else | |
12911 | ac_save_LIBS="$LIBS" | |
12912 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
12913 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 12914 | #line 12915 "configure" |
f79bd02d JS |
12915 | #include "confdefs.h" |
12916 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12917 | /* We use char because int might match the return type of a gcc2 | |
12918 | builtin and then its argument prototype would still apply. */ | |
12919 | char IceConnectionNumber(); | |
12920 | ||
12921 | int main() { | |
12922 | IceConnectionNumber() | |
12923 | ; return 0; } | |
12924 | EOF | |
dfe8399a | 12925 | if { (eval echo configure:12926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12926 | rm -rf conftest* |
12927 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12928 | else | |
12929 | echo "configure: failed program was:" >&5 | |
12930 | cat conftest.$ac_ext >&5 | |
12931 | rm -rf conftest* | |
12932 | eval "ac_cv_lib_$ac_lib_var=no" | |
12933 | fi | |
12934 | rm -f conftest* | |
12935 | LIBS="$ac_save_LIBS" | |
12936 | ||
12937 | fi | |
12938 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12939 | echo "$ac_t""yes" 1>&6 | |
12940 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
12941 | else | |
12942 | echo "$ac_t""no" 1>&6 | |
12943 | fi | |
12944 | ||
12945 | LDFLAGS="$ac_save_LDFLAGS" | |
12946 | ||
12947 | fi | |
12948 | ||
12949 | ||
12950 | if test "$no_x" = "yes"; then | |
12951 | { echo "configure: error: X11 not found" 1>&2; exit 1; } | |
12952 | fi | |
12953 | ||
12954 | GUI_TK_LIBRARY="$X_LIBS" | |
12955 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
12956 | AFMINSTALL=afminstall | |
12957 | COMPILED_X_PROGRAM=0 | |
12958 | ||
12959 | echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6 | |
dfe8399a | 12960 | echo "configure:12961: checking for Motif/Lesstif headers" >&5 |
f79bd02d JS |
12961 | |
12962 | ac_find_includes= | |
12963 | for ac_dir in $SEARCH_INCLUDE; | |
12964 | do | |
12965 | if test -f "$ac_dir/Xm/Xm.h"; then | |
12966 | ac_find_includes=$ac_dir | |
12967 | break | |
12968 | fi | |
12969 | done | |
12970 | ||
12971 | if test "$ac_find_includes" != "" ; then | |
12972 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
12973 | else | |
12974 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 12975 | #line 12976 "configure" |
f79bd02d JS |
12976 | #include "confdefs.h" |
12977 | ||
12978 | #include <Xm/Xm.h> | |
12979 | ||
12980 | int main() { | |
12981 | ||
12982 | int version; | |
12983 | version = xmUseVersion; | |
12984 | ||
12985 | ; return 0; } | |
12986 | EOF | |
dfe8399a | 12987 | if { (eval echo configure:12988: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
f79bd02d JS |
12988 | rm -rf conftest* |
12989 | ||
12990 | echo "$ac_t""found in default search path" 1>&6 | |
12991 | COMPILED_X_PROGRAM=1 | |
12992 | ||
12993 | else | |
12994 | echo "configure: failed program was:" >&5 | |
12995 | cat conftest.$ac_ext >&5 | |
12996 | rm -rf conftest* | |
12997 | ||
12998 | echo "$ac_t""no" 1>&6 | |
12999 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
13000 | ||
13001 | ||
13002 | fi | |
13003 | rm -f conftest* | |
13004 | fi | |
13005 | ||
13006 | if test "$COMPILED_X_PROGRAM" = 0; then | |
13007 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 | |
dfe8399a | 13008 | echo "configure:13009: checking for Motif/Lesstif library" >&5 |
f79bd02d JS |
13009 | |
13010 | ac_find_libraries= | |
13011 | for ac_dir in $SEARCH_LIB; | |
13012 | do | |
13013 | for ac_extension in a so sl dylib; do | |
13014 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
13015 | ac_find_libraries=$ac_dir | |
13016 | break 2 | |
13017 | fi | |
13018 | done | |
13019 | done | |
13020 | ||
13021 | if test "$ac_find_libraries" != "" ; then | |
13022 | ||
13023 | ac_path_to_include=$ac_find_includes | |
13024 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
13025 | result=$? | |
13026 | if test $result = 0; then | |
13027 | ac_path_to_include="" | |
13028 | else | |
13029 | ac_path_to_include=" -I$ac_find_includes" | |
13030 | fi | |
13031 | ||
13032 | ||
13033 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
13034 | result=$? | |
13035 | if test $result = 0; then | |
13036 | ac_path_to_link="" | |
13037 | else | |
13038 | ac_path_to_link=" -L$ac_find_libraries" | |
13039 | fi | |
13040 | ||
13041 | ||
13042 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
13043 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" | |
13044 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
13045 | else | |
13046 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 13047 | #line 13048 "configure" |
f79bd02d JS |
13048 | #include "confdefs.h" |
13049 | ||
13050 | #include <Xm/Xm.h> | |
13051 | ||
13052 | int main() { | |
13053 | ||
13054 | int version; | |
13055 | version = xmUseVersion; | |
13056 | ||
13057 | ; return 0; } | |
13058 | EOF | |
dfe8399a | 13059 | if { (eval echo configure:13060: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
f79bd02d JS |
13060 | rm -rf conftest* |
13061 | ||
13062 | echo "$ac_t""found in default search path" 1>&6 | |
13063 | COMPILED_X_PROGRAM=1 | |
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: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
13072 | ||
13073 | ||
13074 | fi | |
13075 | rm -f conftest* | |
13076 | fi | |
13077 | fi | |
13078 | ||
13079 | xpm_link= | |
13080 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
dfe8399a | 13081 | echo "configure:13082: checking for Xpm library" >&5 |
f79bd02d JS |
13082 | |
13083 | ac_find_libraries= | |
13084 | for ac_dir in $SEARCH_LIB; | |
13085 | do | |
13086 | for ac_extension in a so sl dylib; do | |
13087 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
13088 | ac_find_libraries=$ac_dir | |
13089 | break 2 | |
13090 | fi | |
13091 | done | |
13092 | done | |
13093 | ||
13094 | if test "$ac_find_libraries" != "" ; then | |
13095 | ||
13096 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
13097 | result=$? | |
13098 | if test $result = 0; then | |
13099 | ac_path_to_link="" | |
13100 | else | |
13101 | ac_path_to_link=" -L$ac_find_libraries" | |
13102 | fi | |
13103 | ||
13104 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
13105 | xpm_link=" -lXpm" | |
13106 | cat >> confdefs.h <<\EOF | |
13107 | #define wxHAVE_LIB_XPM 1 | |
13108 | EOF | |
13109 | ||
13110 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
13111 | else | |
13112 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 13113 | #line 13114 "configure" |
f79bd02d JS |
13114 | #include "confdefs.h" |
13115 | ||
13116 | #include <X11/xpm.h> | |
13117 | ||
13118 | int main() { | |
13119 | ||
13120 | int version; | |
13121 | version = XpmLibraryVersion(); | |
13122 | ||
13123 | ; return 0; } | |
13124 | EOF | |
dfe8399a | 13125 | if { (eval echo configure:13126: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
f79bd02d JS |
13126 | rm -rf conftest* |
13127 | ||
13128 | xpm_link=" -lXpm" | |
13129 | cat >> confdefs.h <<\EOF | |
13130 | #define wxHAVE_LIB_XPM 1 | |
13131 | EOF | |
13132 | ||
13133 | echo "$ac_t""found in default search path" 1>&6 | |
13134 | COMPILED_X_PROGRAM=0 | |
13135 | ||
13136 | else | |
13137 | echo "configure: failed program was:" >&5 | |
13138 | cat conftest.$ac_ext >&5 | |
13139 | rm -rf conftest* | |
13140 | ||
13141 | echo "$ac_t""no" 1>&6 | |
13142 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
13143 | ||
13144 | ||
13145 | fi | |
13146 | rm -f conftest* | |
13147 | fi | |
13148 | ||
13149 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link -lXmu -lXext -lXt -lX11" | |
13150 | TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo" | |
13151 | TOOLKIT=MOTIF | |
13152 | GUIDIST=MOTIF_DIST | |
13153 | fi | |
13154 | ||
13155 | if test "$wxUSE_MAC" = 1; then | |
13156 | if test "$wxUSE_PRECOMP" = "yes"; then | |
13157 | CPPFLAGS="$CPPFLAGS -cpp-precomp" | |
13158 | fi | |
13159 | CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile" | |
13160 | CFLAGS="$CFLAGS -fpascal-strings" | |
13161 | CXXFLAGS="$CXXFLAGS -fpascal-strings" | |
13162 | ||
13163 | TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile" | |
13164 | TOOLKIT=MAC | |
13165 | GUIDIST=MACX_DIST | |
13166 | fi | |
13167 | ||
13168 | if test "$wxUSE_PM" = 1; then | |
13169 | TOOLKIT=PM | |
1e6feb95 VZ |
13170 | GUIDIST=GTK_DIST |
13171 | fi | |
b4085ce6 | 13172 | |
3a922bb4 | 13173 | if test "$TOOLKIT" = "PM" ; then |
1e6feb95 | 13174 | TOOLKIT_DIR="os2" |
3a922bb4 RL |
13175 | else |
13176 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
1e6feb95 | 13177 | fi |
e07802fc | 13178 | |
3a922bb4 | 13179 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" |
1e6feb95 | 13180 | |
3a922bb4 RL |
13181 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
13182 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
9b695262 VZ |
13183 | |
13184 | ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}" | |
13185 | ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}" | |
13186 | ||
3a922bb4 | 13187 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" |
4175e952 RR |
13188 | if test "$wxUSE_X11" = 1; then |
13189 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes" | |
13190 | else | |
13191 | TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}" | |
13192 | fi | |
3a922bb4 RL |
13193 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" |
13194 | WIDGET_SET=univ | |
f6bcfd97 | 13195 | else |
3a922bb4 | 13196 | ALL_OBJECTS="\$(GUIOBJS)" |
9b695262 VZ |
13197 | ALL_SOURCES="\$(ALL_SOURCES)" |
13198 | ALL_HEADERS="\$(ALL_HEADERS)" | |
1e6feb95 VZ |
13199 | fi |
13200 | ||
ba0e650c | 13201 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" |
1e6feb95 | 13202 | |
f9bc1684 | 13203 | if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then |
1e6feb95 VZ |
13204 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" |
13205 | fi | |
13206 | ||
13207 | if test "$wxUSE_HTML" = "yes"; then | |
13208 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
13209 | fi | |
3fcdd07b | 13210 | |
4f14bcd8 | 13211 | if test "$wxUSE_LIBJPEG" = "builtin" ; then |
2224580a | 13212 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" |
d9d8273d | 13213 | fi |
4f14bcd8 | 13214 | if test "$wxUSE_LIBTIFF" = "builtin" ; then |
d9d8273d RR |
13215 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" |
13216 | fi | |
4f14bcd8 | 13217 | if test "$wxUSE_LIBPNG" = "builtin" ; then |
d9d8273d RR |
13218 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" |
13219 | fi | |
2224580a | 13220 | |
2224580a VZ |
13221 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" |
13222 | DISTDIR="wx\$(TOOLKIT)" | |
10f2d63a | 13223 | else |
dad6c0ea VZ |
13224 | USE_GUI=0 |
13225 | ||
3a922bb4 | 13226 | TOOLKIT_DIR="base" |
f6bcfd97 | 13227 | |
3a922bb4 RL |
13228 | if test "$USE_WIN32" = 1 ; then |
13229 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}" | |
13230 | TOOLKIT_VPATH="\${top_srcdir}/src/msw" | |
0b2effe9 | 13231 | |
3a922bb4 | 13232 | TOOLKIT="MSW" |
f6bcfd97 | 13233 | else |
3a922bb4 RL |
13234 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}" |
13235 | TOOLKIT_VPATH="\${top_srcdir}/src/unix" | |
f6bcfd97 BP |
13236 | fi |
13237 | ||
d8356fa3 VZ |
13238 | ALL_SOURCES="\$(ALL_SOURCES)" |
13239 | ALL_HEADERS="\$(ALL_HEADERS)" | |
13240 | ||
831b3152 | 13241 | PORT_FILES="\${top_srcdir}/src/files.lst" |
2224580a VZ |
13242 | |
13243 | GUIDIST="BASE_DIST" | |
13244 | DISTDIR="wxBase" | |
10f2d63a VZ |
13245 | fi |
13246 | ||
e45387bf VZ |
13247 | |
13248 | if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then | |
13249 | ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)" | |
13250 | fi | |
13251 | ||
4f14bcd8 | 13252 | if test "$wxUSE_REGEX" = "builtin" ; then |
3a922bb4 RL |
13253 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" |
13254 | fi | |
4f14bcd8 | 13255 | if test "$wxUSE_ZLIB" = "builtin" ; then |
3a922bb4 RL |
13256 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" |
13257 | fi | |
10f2d63a | 13258 | |
3a922bb4 | 13259 | if test "$wxUSE_OPENGL" = "yes"; then |
62d0491b RL |
13260 | if test "$wxUSE_MAC" = 1; then |
13261 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
13262 | else | |
570cb8cb | 13263 | |
62d0491b | 13264 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` |
3a922bb4 | 13265 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 |
dfe8399a | 13266 | echo "configure:13267: checking for GL/gl.h" >&5 |
3a922bb4 RL |
13267 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13268 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13269 | else | |
13270 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 13271 | #line 13272 "configure" |
3a922bb4 RL |
13272 | #include "confdefs.h" |
13273 | #include <GL/gl.h> | |
13274 | EOF | |
13275 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
dfe8399a | 13276 | { (eval echo configure:13277: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3a922bb4 RL |
13277 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13278 | if test -z "$ac_err"; then | |
13279 | rm -rf conftest* | |
13280 | eval "ac_cv_header_$ac_safe=yes" | |
13281 | else | |
13282 | echo "$ac_err" >&5 | |
13283 | echo "configure: failed program was:" >&5 | |
13284 | cat conftest.$ac_ext >&5 | |
13285 | rm -rf conftest* | |
13286 | eval "ac_cv_header_$ac_safe=no" | |
13287 | fi | |
13288 | rm -f conftest* | |
13289 | fi | |
13290 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
13291 | echo "$ac_t""yes" 1>&6 | |
13292 | ||
1352efdf | 13293 | echo $ac_n "checking for -lGL""... $ac_c" 1>&6 |
dfe8399a | 13294 | echo "configure:13295: checking for -lGL" >&5 |
57964555 | 13295 | |
62d0491b RL |
13296 | ac_find_libraries= |
13297 | for ac_dir in $SEARCH_LIB; | |
13298 | do | |
13299 | for ac_extension in a so sl dylib; do | |
13300 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
13301 | ac_find_libraries=$ac_dir | |
13302 | break 2 | |
13303 | fi | |
13304 | done | |
13305 | done | |
3a922bb4 | 13306 | |
62d0491b RL |
13307 | if test "$ac_find_libraries" != "" ; then |
13308 | ||
13309 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
13310 | result=$? | |
13311 | if test $result = 0; then | |
13312 | ac_path_to_link="" | |
13313 | else | |
13314 | ac_path_to_link=" -L$ac_find_libraries" | |
13315 | fi | |
3a922bb4 | 13316 | |
4b6b4dfc RR |
13317 | if test "$ac_path_to_link" = " -L/usr/lib" ; then |
13318 | LDFLAGS_GL="$LDFLAGS" | |
13319 | else | |
13320 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
13321 | fi | |
62d0491b | 13322 | OPENGL_LIBS="-lGL -lGLU" |
1352efdf | 13323 | echo "$ac_t""yes" 1>&6 |
62d0491b | 13324 | else |
1352efdf RL |
13325 | echo "$ac_t""no" 1>&6 |
13326 | echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6 | |
dfe8399a | 13327 | echo "configure:13328: checking for -lMesaGL" >&5 |
62d0491b RL |
13328 | |
13329 | ac_find_libraries= | |
13330 | for ac_dir in $SEARCH_LIB; | |
13331 | do | |
13332 | for ac_extension in a so sl dylib; do | |
13333 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
13334 | ac_find_libraries=$ac_dir | |
13335 | break 2 | |
13336 | fi | |
13337 | done | |
13338 | done | |
3a922bb4 | 13339 | |
62d0491b | 13340 | if test "$ac_find_libraries" != "" ; then |
57964555 | 13341 | |
62d0491b RL |
13342 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
13343 | result=$? | |
13344 | if test $result = 0; then | |
13345 | ac_path_to_link="" | |
13346 | else | |
13347 | ac_path_to_link=" -L$ac_find_libraries" | |
13348 | fi | |
3a922bb4 | 13349 | |
62d0491b RL |
13350 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" |
13351 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
1352efdf RL |
13352 | echo "$ac_t""yes" 1>&6 |
13353 | else | |
13354 | echo "$ac_t""no" 1>&6 | |
62d0491b RL |
13355 | fi |
13356 | fi | |
13357 | ||
3a922bb4 RL |
13358 | else |
13359 | echo "$ac_t""no" 1>&6 | |
3a922bb4 RL |
13360 | fi |
13361 | ||
6f754473 | 13362 | |
62d0491b RL |
13363 | |
13364 | # AC_CHECK_HEADER(GL/gl.h, | |
13365 | # [ | |
13366 | # AC_CHECK_LIB(GL, glFlush, | |
13367 | # [ | |
13368 | # OPENGL_LIBS="-lGL -lGLU" | |
13369 | # ], | |
13370 | # [ | |
13371 | # AC_CHECK_LIB(MesaGL, glFlush, | |
13372 | # [ | |
13373 | # OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
13374 | # ], | |
13375 | # [], | |
13376 | # [-lm]) | |
13377 | # ], | |
13378 | # [-lm]) | |
13379 | # ]) | |
13380 | ||
13381 | if test "x$OPENGL_LIBS" = "x"; then | |
13382 | { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; } | |
13383 | fi | |
6f754473 | 13384 | fi |
6f754473 | 13385 | |
62d0491b RL |
13386 | if test "$wxUSE_OPENGL" = "yes"; then |
13387 | cat >> confdefs.h <<\EOF | |
6f754473 VZ |
13388 | #define wxUSE_OPENGL 1 |
13389 | EOF | |
13390 | ||
62d0491b | 13391 | cat >> confdefs.h <<\EOF |
6f754473 VZ |
13392 | #define wxUSE_GLCANVAS 1 |
13393 | EOF | |
13394 | ||
62d0491b RL |
13395 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl" |
13396 | fi | |
3a922bb4 RL |
13397 | fi |
13398 | ||
13399 | if test -z "$TOOLKIT_VPATH" ; then | |
13400 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" | |
13401 | fi | |
13402 | ||
13403 | if test -n "$TOOLKIT" ; then | |
13404 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
13405 | fi | |
13406 | ||
f676c7ff MB |
13407 | lib_unicode_suffix= |
13408 | if test "$wxUSE_UNICODE" = "yes"; then | |
13409 | lib_unicode_suffix=u | |
13410 | fi | |
13411 | ||
3a922bb4 RL |
13412 | lib_debug_suffix= |
13413 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
13414 | lib_debug_suffix=d | |
3a922bb4 RL |
13415 | fi |
13416 | ||
f676c7ff MB |
13417 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}" |
13418 | TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}" | |
3a922bb4 RL |
13419 | |
13420 | if test "$cross_compiling" = "yes"; then | |
13421 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}" | |
13422 | TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}" | |
13423 | fi | |
13424 | ||
13425 | WX_LIBRARY="wx_${TOOLCHAIN_NAME}" | |
13426 | WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}" | |
13427 | ||
3a922bb4 RL |
13428 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" |
13429 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
13430 | ||
13431 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}" | |
13432 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
13433 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}" | |
13434 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
13435 | ||
d08b457b | 13436 | WX_RESOURCES_MACOSX="lib${WX_LIBRARY}.rsrc" |
e23081de | 13437 | WX_RESOURCES_MACOSX_COMPILED="lib${WX_LIBRARY}.r" |
3a922bb4 | 13438 | |
978f1259 RL |
13439 | case "${host}" in |
13440 | *-*-cygwin* | *-*-mingw32* ) | |
13441 | ||
2da4f892 | 13442 | |
978f1259 RL |
13443 | |
13444 | if test "$cross_compiling" != "yes"; then | |
13445 | WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" | |
13446 | WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" | |
13447 | WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}" | |
13448 | WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
2da4f892 RL |
13449 | else |
13450 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
13451 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
978f1259 RL |
13452 | fi |
13453 | ||
13454 | esac | |
13455 | ||
13456 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
13457 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a" | |
13458 | ||
13459 | WXCONFIG_LIBS="-l${WX_LIBRARY}" | |
885d4bf5 | 13460 | WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a" |
978f1259 RL |
13461 | |
13462 | if test "$wxUSE_OPENGL" = "yes"; then | |
885d4bf5 VS |
13463 | WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}" |
13464 | WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}" | |
978f1259 RL |
13465 | fi |
13466 | ||
13467 | ||
3a922bb4 | 13468 | |
4222829b VS |
13469 | if test "$wxUSE_SHARED" = "yes"; then |
13470 | case "${host}" in | |
13471 | *-pc-os2_emx | *-pc-os2-emx | \ | |
13472 | *-pc-msdosdjgpp ) | |
13473 | wxUSE_SHARED=no | |
13474 | echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2 | |
13475 | ;; | |
13476 | esac | |
13477 | fi | |
13478 | ||
3a922bb4 | 13479 | if test "$wxUSE_SHARED" = "yes"; then |
55e80573 VZ |
13480 | |
13481 | if test "$wxUSE_OPENGL" = "yes"; then | |
13482 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
3a922bb4 | 13483 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}" |
55e80573 VZ |
13484 | else |
13485 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
3a922bb4 | 13486 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}" |
55e80573 VZ |
13487 | fi |
13488 | ||
dd4f7467 | 13489 | if test "$GCC" = "yes"; then |
55e80573 | 13490 | PIC_FLAG="-fPIC" |
dd4f7467 | 13491 | fi |
55e80573 VZ |
13492 | |
13493 | SHARED_LD="${CXX} -shared -o" | |
698dcdb6 | 13494 | |
10f2d63a VZ |
13495 | case "${host}" in |
13496 | *-hp-hpux* ) | |
d569ea8d GD |
13497 | if test "$GCC" == "yes"; then |
13498 | SHARED_LD="${SHARED_LD} ${PIC_FLAG}" | |
13499 | else | |
3d63bc3a | 13500 | LDFLAGS="$LDFLAGS -L/usr/lib" |
f6bcfd97 | 13501 | |
10f2d63a VZ |
13502 | SHARED_LD="${CXX} -b -o" |
13503 | PIC_FLAG="+Z" | |
13504 | fi | |
55e80573 | 13505 | |
7b7a7637 RL |
13506 | if test "$wxUSE_OPENGL" = "yes"; then |
13507 | WX_ALL_INSTALLED="preinstall_gl" | |
13508 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" | |
13509 | else | |
13510 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" | |
13511 | fi | |
10f2d63a | 13512 | ;; |
b12915c1 | 13513 | |
55e80573 VZ |
13514 | *-*-linux* ) |
13515 | if test "$GCC" != "yes"; then | |
13516 | echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6 | |
dfe8399a | 13517 | echo "configure:13518: checking for Intel compiler" >&5 |
55e80573 VZ |
13518 | if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then |
13519 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13520 | else | |
13521 | ||
13522 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 13523 | #line 13524 "configure" |
55e80573 VZ |
13524 | #include "confdefs.h" |
13525 | ||
13526 | int main() { | |
13527 | ||
13528 | #ifndef __INTEL_COMPILER | |
dd4f7467 | 13529 | #error Not icc |
55e80573 VZ |
13530 | #endif |
13531 | ||
13532 | ; return 0; } | |
13533 | EOF | |
dfe8399a | 13534 | if { (eval echo configure:13535: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
55e80573 VZ |
13535 | rm -rf conftest* |
13536 | wx_cv_prog_icc=yes | |
13537 | else | |
13538 | echo "configure: failed program was:" >&5 | |
13539 | cat conftest.$ac_ext >&5 | |
13540 | rm -rf conftest* | |
13541 | wx_cv_prog_icc=no | |
13542 | ||
13543 | fi | |
13544 | rm -f conftest* | |
13545 | ||
13546 | fi | |
13547 | ||
13548 | echo "$ac_t""$wx_cv_prog_icc" 1>&6 | |
55e80573 VZ |
13549 | if test "$wx_cv_prog_icc" = "yes"; then |
13550 | PIC_FLAG="-KPIC" | |
13551 | fi | |
13552 | fi | |
13553 | ||
3a922bb4 RL |
13554 | if test "$wxUSE_SONAME" = "yes" ; then |
13555 | SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}" | |
13556 | SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}" | |
f6bcfd97 | 13557 | WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)" |
00cf1208 | 13558 | fi |
10f2d63a | 13559 | ;; |
55e80573 | 13560 | |
10f2d63a VZ |
13561 | *-*-solaris2* ) |
13562 | if test "$GCC" = yes ; then | |
f6bcfd97 | 13563 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" |
10f2d63a VZ |
13564 | else |
13565 | SHARED_LD="${CXX} -G -o" | |
13566 | PIC_FLAG="-KPIC" | |
7b7a7637 | 13567 | SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}" |
471944dc | 13568 | SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}" |
10f2d63a | 13569 | fi |
10f2d63a | 13570 | ;; |
55e80573 | 13571 | |
b4085ce6 | 13572 | *-*-darwin* ) |
90f3fe56 | 13573 | CFLAGS="$CFLAGS -fno-common -DDYLIB_INIT" |
156b2523 GD |
13574 | CXXFLAGS="$CXXFLAGS -fno-common -DDYLIB_INIT" |
13575 | SHARED_LD="$CXX -dynamiclib -init _wxWindowsDylibInit -o" | |
ea5999b9 | 13576 | PIC_FLAG="-dynamic -fPIC" |
90f3fe56 GD |
13577 | SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION}" |
13578 | SONAME_FLAGS_GL=${SONAME_FLAGS} | |
10f2d63a | 13579 | ;; |
55e80573 | 13580 | |
10f2d63a VZ |
13581 | *-*-aix* ) |
13582 | SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o" | |
10f2d63a | 13583 | ;; |
55e80573 | 13584 | |
7b7a7637 | 13585 | *-*-cygwin* | *-*-mingw32* ) |
77e13408 | 13586 | |
2da4f892 | 13587 | WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a" |
77e13408 | 13588 | |
77e13408 | 13589 | SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o" |
00c81359 | 13590 | TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1" |
25d0687a RL |
13591 | |
13592 | PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1" | |
7b7a7637 RL |
13593 | |
13594 | if test "$wxUSE_OPENGL" = "yes"; then | |
f6bcfd97 | 13595 | WX_ALL_INSTALLED="preinstall_gl" |
978f1259 | 13596 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" |
f6bcfd97 | 13597 | else |
978f1259 | 13598 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" |
f6bcfd97 | 13599 | fi |
10f2d63a | 13600 | ;; |
55e80573 | 13601 | |
b12915c1 | 13602 | *-*-beos* ) |
e2b8b066 | 13603 | SHARED_LD="${LD} -shared -o" |
b12915c1 | 13604 | ;; |
55e80573 VZ |
13605 | |
13606 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ | |
13607 | *-*-sunos4* | \ | |
13608 | *-*-irix5* | *-*-irix6* | \ | |
13609 | *-*-osf* | \ | |
13610 | *-*-dgux5* | \ | |
13611 | *-*-sysv5* ) | |
13612 | ;; | |
13613 | ||
10f2d63a | 13614 | *) |
7b7a7637 | 13615 | { echo "configure: error: unknown system type $host." 1>&2; exit 1; } |
10f2d63a VZ |
13616 | esac |
13617 | ||
13618 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
13619 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
bdad4e7e | 13620 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" |
10f2d63a | 13621 | fi |
55e80573 | 13622 | |
3711412e | 13623 | WX_TARGET_LIBRARY_TYPE="so" |
885d4bf5 | 13624 | INSTALL_LIBRARY='$(INSTALL_PROGRAM)' |
3a922bb4 | 13625 | fi |
f6bcfd97 | 13626 | |
3a922bb4 | 13627 | if test "$wxUSE_SHARED" = "no"; then |
f6bcfd97 | 13628 | |
3a922bb4 | 13629 | if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then |
f6bcfd97 BP |
13630 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" |
13631 | fi | |
13632 | ||
6fa882bd RR |
13633 | if test "$wxUSE_MAC" = 1; then |
13634 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
13635 | fi | |
13636 | ||
3a922bb4 RL |
13637 | if test "$wxUSE_OPENGL" = "yes"; then |
13638 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl" | |
13639 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}" | |
13640 | else | |
13641 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}" | |
13642 | fi | |
698dcdb6 | 13643 | |
3a922bb4 RL |
13644 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
13645 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" | |
13646 | ||
13647 | WX_TARGET_LIBRARY_TYPE="a" | |
885d4bf5 | 13648 | INSTALL_LIBRARY='$(INSTALL_DATA)' |
10f2d63a | 13649 | fi |
10f2d63a | 13650 | |
d08b457b GD |
13651 | if test "$wxUSE_MAC" = 1; then |
13652 | WX_ALL="${WX_ALL} \$(build_libdir)/lib${WX_LIBRARY}.r" | |
e23081de | 13653 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res" |
d08b457b GD |
13654 | # Extract the first word of "Rez", so it can be a program name with args. |
13655 | set dummy Rez; ac_word=$2 | |
13656 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
dfe8399a | 13657 | echo "configure:13658: checking for $ac_word" >&5 |
d08b457b GD |
13658 | if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then |
13659 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13660 | else | |
13661 | if test -n "$RESCOMP"; then | |
13662 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
13663 | else | |
13664 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
13665 | ac_dummy="$PATH" | |
13666 | for ac_dir in $ac_dummy; do | |
13667 | test -z "$ac_dir" && ac_dir=. | |
13668 | if test -f $ac_dir/$ac_word; then | |
13669 | ac_cv_prog_RESCOMP="Rez" | |
13670 | break | |
13671 | fi | |
13672 | done | |
13673 | IFS="$ac_save_ifs" | |
13674 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
13675 | fi | |
13676 | fi | |
13677 | RESCOMP="$ac_cv_prog_RESCOMP" | |
13678 | if test -n "$RESCOMP"; then | |
13679 | echo "$ac_t""$RESCOMP" 1>&6 | |
13680 | else | |
13681 | echo "$ac_t""no" 1>&6 | |
13682 | fi | |
13683 | ||
9f8148b1 GD |
13684 | # Extract the first word of "DeRez", so it can be a program name with args. |
13685 | set dummy DeRez; ac_word=$2 | |
d08b457b | 13686 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
dfe8399a | 13687 | echo "configure:13688: checking for $ac_word" >&5 |
d08b457b GD |
13688 | if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then |
13689 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13690 | else | |
13691 | if test -n "$DEREZ"; then | |
13692 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
13693 | else | |
13694 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
13695 | ac_dummy="$PATH" | |
13696 | for ac_dir in $ac_dummy; do | |
13697 | test -z "$ac_dir" && ac_dir=. | |
13698 | if test -f $ac_dir/$ac_word; then | |
9f8148b1 | 13699 | ac_cv_prog_DEREZ="DeRez" |
d08b457b GD |
13700 | break |
13701 | fi | |
13702 | done | |
13703 | IFS="$ac_save_ifs" | |
9f8148b1 | 13704 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" |
d08b457b GD |
13705 | fi |
13706 | fi | |
13707 | DEREZ="$ac_cv_prog_DEREZ" | |
13708 | if test -n "$DEREZ"; then | |
13709 | echo "$ac_t""$DEREZ" 1>&6 | |
13710 | else | |
13711 | echo "$ac_t""no" 1>&6 | |
13712 | fi | |
13713 | ||
ef7f2189 | 13714 | MACOSX_BUNDLE="bundle" |
d08b457b GD |
13715 | LIBWXMACRES="\$(top_builddir)/lib/lib${WX_LIBRARY}.r" |
13716 | LIBWXMACRESCOMP="\$(RESCOMP) Carbon.r -t APPL ${LIBWXMACRES} -o \$(BIN_PROGRAM)" | |
e23081de | 13717 | LIBWXMACRESWXCONFIG="${RESCOMP} Carbon.r -t APPL \${prefix}/lib/${WX_RESOURCES_MACOSX_COMPILED} -o" |
d558c907 VS |
13718 | else |
13719 | if test "$wxUSE_PM" = 1; then | |
13720 | LIBWXMACRESCOMP="emxbind -ep \$(BIN_PROGRAM)" | |
13721 | fi | |
d08b457b GD |
13722 | fi |
13723 | ||
3a922bb4 | 13724 | |
13c0541d GD |
13725 | if test "$wxUSE_MAC" != 1; then |
13726 | for ac_hdr in strings.h | |
9cfadba2 | 13727 | do |
698dcdb6 VZ |
13728 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
13729 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
dfe8399a | 13730 | echo "configure:13731: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
13731 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13732 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13733 | else | |
13734 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 13735 | #line 13736 "configure" |
9cfadba2 | 13736 | #include "confdefs.h" |
698dcdb6 VZ |
13737 | #include <$ac_hdr> |
13738 | EOF | |
13739 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
dfe8399a | 13740 | { (eval echo configure:13741: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13741 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13742 | if test -z "$ac_err"; then | |
13743 | rm -rf conftest* | |
13744 | eval "ac_cv_header_$ac_safe=yes" | |
6232543b | 13745 | else |
698dcdb6 VZ |
13746 | echo "$ac_err" >&5 |
13747 | echo "configure: failed program was:" >&5 | |
9cfadba2 | 13748 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13749 | rm -rf conftest* |
13750 | eval "ac_cv_header_$ac_safe=no" | |
9cfadba2 | 13751 | fi |
698dcdb6 | 13752 | rm -f conftest* |
9cfadba2 | 13753 | fi |
698dcdb6 VZ |
13754 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13755 | echo "$ac_t""yes" 1>&6 | |
13756 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13757 | cat >> confdefs.h <<EOF | |
13758 | #define $ac_tr_hdr 1 | |
9cfadba2 | 13759 | EOF |
698dcdb6 VZ |
13760 | |
13761 | else | |
13762 | echo "$ac_t""no" 1>&6 | |
9cfadba2 VZ |
13763 | fi |
13764 | done | |
10f2d63a | 13765 | |
13c0541d GD |
13766 | fi |
13767 | ||
3a922bb4 | 13768 | for ac_hdr in stdlib.h |
10f2d63a | 13769 | do |
698dcdb6 VZ |
13770 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
13771 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
dfe8399a | 13772 | echo "configure:13773: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
13773 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13774 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13775 | else | |
13776 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 13777 | #line 13778 "configure" |
10f2d63a | 13778 | #include "confdefs.h" |
698dcdb6 VZ |
13779 | #include <$ac_hdr> |
13780 | EOF | |
13781 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
dfe8399a | 13782 | { (eval echo configure:13783: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13783 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13784 | if test -z "$ac_err"; then | |
13785 | rm -rf conftest* | |
13786 | eval "ac_cv_header_$ac_safe=yes" | |
6232543b | 13787 | else |
698dcdb6 VZ |
13788 | echo "$ac_err" >&5 |
13789 | echo "configure: failed program was:" >&5 | |
10f2d63a | 13790 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13791 | rm -rf conftest* |
13792 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 13793 | fi |
698dcdb6 | 13794 | rm -f conftest* |
10f2d63a | 13795 | fi |
698dcdb6 VZ |
13796 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13797 | echo "$ac_t""yes" 1>&6 | |
13798 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13799 | cat >> confdefs.h <<EOF | |
13800 | #define $ac_tr_hdr 1 | |
10f2d63a | 13801 | EOF |
698dcdb6 VZ |
13802 | |
13803 | else | |
13804 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13805 | fi |
13806 | done | |
13807 | ||
9f8148b1 | 13808 | for ac_hdr in malloc.h |
10f2d63a | 13809 | do |
698dcdb6 VZ |
13810 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
13811 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
dfe8399a | 13812 | echo "configure:13813: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
13813 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13814 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13815 | else | |
13816 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 13817 | #line 13818 "configure" |
10f2d63a | 13818 | #include "confdefs.h" |
698dcdb6 VZ |
13819 | #include <$ac_hdr> |
13820 | EOF | |
13821 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
dfe8399a | 13822 | { (eval echo configure:13823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13823 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13824 | if test -z "$ac_err"; then | |
13825 | rm -rf conftest* | |
13826 | eval "ac_cv_header_$ac_safe=yes" | |
6f72b082 | 13827 | else |
698dcdb6 VZ |
13828 | echo "$ac_err" >&5 |
13829 | echo "configure: failed program was:" >&5 | |
6f72b082 | 13830 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13831 | rm -rf conftest* |
13832 | eval "ac_cv_header_$ac_safe=no" | |
6f72b082 | 13833 | fi |
698dcdb6 | 13834 | rm -f conftest* |
6f72b082 | 13835 | fi |
698dcdb6 VZ |
13836 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13837 | echo "$ac_t""yes" 1>&6 | |
13838 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13839 | cat >> confdefs.h <<EOF | |
13840 | #define $ac_tr_hdr 1 | |
6f72b082 | 13841 | EOF |
698dcdb6 VZ |
13842 | |
13843 | else | |
13844 | echo "$ac_t""no" 1>&6 | |
6f72b082 OK |
13845 | fi |
13846 | done | |
13847 | ||
9f8148b1 | 13848 | for ac_hdr in unistd.h |
6f72b082 | 13849 | do |
698dcdb6 VZ |
13850 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
13851 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
dfe8399a | 13852 | echo "configure:13853: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
13853 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13854 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13855 | else | |
13856 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 13857 | #line 13858 "configure" |
6f72b082 | 13858 | #include "confdefs.h" |
698dcdb6 VZ |
13859 | #include <$ac_hdr> |
13860 | EOF | |
13861 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
dfe8399a | 13862 | { (eval echo configure:13863: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13863 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13864 | if test -z "$ac_err"; then | |
13865 | rm -rf conftest* | |
13866 | eval "ac_cv_header_$ac_safe=yes" | |
6f72b082 | 13867 | else |
698dcdb6 VZ |
13868 | echo "$ac_err" >&5 |
13869 | echo "configure: failed program was:" >&5 | |
6f72b082 | 13870 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13871 | rm -rf conftest* |
13872 | eval "ac_cv_header_$ac_safe=no" | |
6f72b082 | 13873 | fi |
698dcdb6 | 13874 | rm -f conftest* |
6f72b082 | 13875 | fi |
698dcdb6 VZ |
13876 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13877 | echo "$ac_t""yes" 1>&6 | |
13878 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13879 | cat >> confdefs.h <<EOF | |
13880 | #define $ac_tr_hdr 1 | |
6f72b082 | 13881 | EOF |
698dcdb6 VZ |
13882 | |
13883 | else | |
13884 | echo "$ac_t""no" 1>&6 | |
6f72b082 OK |
13885 | fi |
13886 | done | |
13887 | ||
9f8148b1 | 13888 | for ac_hdr in wchar.h |
6f72b082 | 13889 | do |
698dcdb6 VZ |
13890 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
13891 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
dfe8399a | 13892 | echo "configure:13893: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
13893 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13894 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13895 | else | |
13896 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 13897 | #line 13898 "configure" |
6f72b082 | 13898 | #include "confdefs.h" |
698dcdb6 VZ |
13899 | #include <$ac_hdr> |
13900 | EOF | |
13901 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
dfe8399a | 13902 | { (eval echo configure:13903: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13903 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13904 | if test -z "$ac_err"; then | |
13905 | rm -rf conftest* | |
13906 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 13907 | else |
698dcdb6 VZ |
13908 | echo "$ac_err" >&5 |
13909 | echo "configure: failed program was:" >&5 | |
10f2d63a | 13910 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13911 | rm -rf conftest* |
13912 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 13913 | fi |
698dcdb6 | 13914 | rm -f conftest* |
10f2d63a | 13915 | fi |
698dcdb6 VZ |
13916 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13917 | echo "$ac_t""yes" 1>&6 | |
13918 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13919 | cat >> confdefs.h <<EOF | |
13920 | #define $ac_tr_hdr 1 | |
10f2d63a | 13921 | EOF |
698dcdb6 VZ |
13922 | |
13923 | else | |
13924 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13925 | fi |
13926 | done | |
13927 | ||
f0c87536 VZ |
13928 | |
13929 | if test "$ac_cv_header_wchar_h" != "yes"; then | |
13930 | for ac_hdr in wcstr.h | |
0fb0dd83 | 13931 | do |
698dcdb6 VZ |
13932 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
13933 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
dfe8399a | 13934 | echo "configure:13935: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
13935 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13936 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13937 | else | |
13938 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 13939 | #line 13940 "configure" |
0fb0dd83 | 13940 | #include "confdefs.h" |
698dcdb6 VZ |
13941 | #include <$ac_hdr> |
13942 | EOF | |
13943 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
dfe8399a | 13944 | { (eval echo configure:13945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13945 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13946 | if test -z "$ac_err"; then | |
13947 | rm -rf conftest* | |
13948 | eval "ac_cv_header_$ac_safe=yes" | |
0fb0dd83 | 13949 | else |
698dcdb6 VZ |
13950 | echo "$ac_err" >&5 |
13951 | echo "configure: failed program was:" >&5 | |
0fb0dd83 | 13952 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13953 | rm -rf conftest* |
13954 | eval "ac_cv_header_$ac_safe=no" | |
0fb0dd83 | 13955 | fi |
698dcdb6 | 13956 | rm -f conftest* |
0fb0dd83 | 13957 | fi |
698dcdb6 VZ |
13958 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13959 | echo "$ac_t""yes" 1>&6 | |
13960 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13961 | cat >> confdefs.h <<EOF | |
13962 | #define $ac_tr_hdr 1 | |
0fb0dd83 | 13963 | EOF |
698dcdb6 VZ |
13964 | |
13965 | else | |
13966 | echo "$ac_t""no" 1>&6 | |
0fb0dd83 RR |
13967 | fi |
13968 | done | |
13969 | ||
1f8ae82f | 13970 | fi |
f0c87536 | 13971 | |
1f8ae82f | 13972 | |
9f8148b1 | 13973 | for ac_hdr in fnmatch.h |
10f2d63a | 13974 | do |
698dcdb6 VZ |
13975 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
13976 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
dfe8399a | 13977 | echo "configure:13978: checking for $ac_hdr" >&5 |
0fbb762e MB |
13978 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13979 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13980 | else | |
13981 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 13982 | #line 13983 "configure" |
0fbb762e MB |
13983 | #include "confdefs.h" |
13984 | #include <$ac_hdr> | |
13985 | EOF | |
13986 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
dfe8399a | 13987 | { (eval echo configure:13988: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
0fbb762e MB |
13988 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13989 | if test -z "$ac_err"; then | |
13990 | rm -rf conftest* | |
13991 | eval "ac_cv_header_$ac_safe=yes" | |
13992 | else | |
13993 | echo "$ac_err" >&5 | |
13994 | echo "configure: failed program was:" >&5 | |
13995 | cat conftest.$ac_ext >&5 | |
13996 | rm -rf conftest* | |
13997 | eval "ac_cv_header_$ac_safe=no" | |
13998 | fi | |
13999 | rm -f conftest* | |
14000 | fi | |
14001 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
14002 | echo "$ac_t""yes" 1>&6 | |
14003 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
14004 | cat >> confdefs.h <<EOF | |
14005 | #define $ac_tr_hdr 1 | |
14006 | EOF | |
14007 | ||
14008 | else | |
14009 | echo "$ac_t""no" 1>&6 | |
14010 | fi | |
14011 | done | |
14012 | ||
9f8148b1 GD |
14013 | for ac_hdr in langinfo.h |
14014 | do | |
14015 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
14016 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
dfe8399a | 14017 | echo "configure:14018: checking for $ac_hdr" >&5 |
9f8148b1 GD |
14018 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14019 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14020 | else | |
14021 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 14022 | #line 14023 "configure" |
9f8148b1 GD |
14023 | #include "confdefs.h" |
14024 | #include <$ac_hdr> | |
14025 | EOF | |
14026 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
dfe8399a | 14027 | { (eval echo configure:14028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
9f8148b1 GD |
14028 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14029 | if test -z "$ac_err"; then | |
14030 | rm -rf conftest* | |
14031 | eval "ac_cv_header_$ac_safe=yes" | |
14032 | else | |
14033 | echo "$ac_err" >&5 | |
14034 | echo "configure: failed program was:" >&5 | |
14035 | cat conftest.$ac_ext >&5 | |
14036 | rm -rf conftest* | |
14037 | eval "ac_cv_header_$ac_safe=no" | |
14038 | fi | |
14039 | rm -f conftest* | |
14040 | fi | |
14041 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
14042 | echo "$ac_t""yes" 1>&6 | |
14043 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
14044 | cat >> confdefs.h <<EOF | |
14045 | #define $ac_tr_hdr 1 | |
14046 | EOF | |
14047 | ||
14048 | else | |
14049 | echo "$ac_t""no" 1>&6 | |
14050 | fi | |
14051 | done | |
14052 | ||
10f2d63a | 14053 | |
3a922bb4 RL |
14054 | if test "$wxUSE_GUI" = "yes"; then |
14055 | if test "$wxUSE_UNIX" = "yes"; then | |
14056 | for ac_hdr in X11/XKBlib.h | |
29fd3c0c VS |
14057 | do |
14058 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
14059 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
dfe8399a | 14060 | echo "configure:14061: checking for $ac_hdr" >&5 |
29fd3c0c VS |
14061 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14062 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14063 | else | |
14064 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 14065 | #line 14066 "configure" |
29fd3c0c VS |
14066 | #include "confdefs.h" |
14067 | #include <$ac_hdr> | |
14068 | EOF | |
14069 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
dfe8399a | 14070 | { (eval echo configure:14071: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
29fd3c0c VS |
14071 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14072 | if test -z "$ac_err"; then | |
14073 | rm -rf conftest* | |
14074 | eval "ac_cv_header_$ac_safe=yes" | |
14075 | else | |
14076 | echo "$ac_err" >&5 | |
14077 | echo "configure: failed program was:" >&5 | |
14078 | cat conftest.$ac_ext >&5 | |
14079 | rm -rf conftest* | |
14080 | eval "ac_cv_header_$ac_safe=no" | |
14081 | fi | |
14082 | rm -f conftest* | |
14083 | fi | |
14084 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
14085 | echo "$ac_t""yes" 1>&6 | |
14086 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
14087 | cat >> confdefs.h <<EOF | |
14088 | #define $ac_tr_hdr 1 | |
14089 | EOF | |
14090 | ||
14091 | else | |
14092 | echo "$ac_t""no" 1>&6 | |
14093 | fi | |
14094 | done | |
14095 | ||
3a922bb4 | 14096 | fi |
29fd3c0c VS |
14097 | fi |
14098 | ||
698dcdb6 VZ |
14099 | |
14100 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
dfe8399a | 14101 | echo "configure:14102: checking for ANSI C header files" >&5 |
698dcdb6 VZ |
14102 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
14103 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14104 | else |
698dcdb6 | 14105 | cat > conftest.$ac_ext <<EOF |
dfe8399a | 14106 | #line 14107 "configure" |
10f2d63a VZ |
14107 | #include "confdefs.h" |
14108 | #include <stdlib.h> | |
14109 | #include <stdarg.h> | |
14110 | #include <string.h> | |
14111 | #include <float.h> | |
698dcdb6 VZ |
14112 | EOF |
14113 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
dfe8399a | 14114 | { (eval echo configure:14115: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
14115 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14116 | if test -z "$ac_err"; then | |
14117 | rm -rf conftest* | |
10f2d63a VZ |
14118 | ac_cv_header_stdc=yes |
14119 | else | |
698dcdb6 VZ |
14120 | echo "$ac_err" >&5 |
14121 | echo "configure: failed program was:" >&5 | |
10f2d63a | 14122 | cat conftest.$ac_ext >&5 |
698dcdb6 | 14123 | rm -rf conftest* |
10f2d63a VZ |
14124 | ac_cv_header_stdc=no |
14125 | fi | |
698dcdb6 | 14126 | rm -f conftest* |
10f2d63a VZ |
14127 | |
14128 | if test $ac_cv_header_stdc = yes; then | |
14129 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
698dcdb6 | 14130 | cat > conftest.$ac_ext <<EOF |
dfe8399a | 14131 | #line 14132 "configure" |
10f2d63a VZ |
14132 | #include "confdefs.h" |
14133 | #include <string.h> | |
698dcdb6 | 14134 | EOF |
10f2d63a VZ |
14135 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
14136 | egrep "memchr" >/dev/null 2>&1; then | |
14137 | : | |
14138 | else | |
698dcdb6 | 14139 | rm -rf conftest* |
10f2d63a VZ |
14140 | ac_cv_header_stdc=no |
14141 | fi | |
14142 | rm -f conftest* | |
14143 | ||
14144 | fi | |
14145 | ||
14146 | if test $ac_cv_header_stdc = yes; then | |
14147 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
698dcdb6 | 14148 | cat > conftest.$ac_ext <<EOF |
dfe8399a | 14149 | #line 14150 "configure" |
10f2d63a VZ |
14150 | #include "confdefs.h" |
14151 | #include <stdlib.h> | |
698dcdb6 | 14152 | EOF |
10f2d63a VZ |
14153 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
14154 | egrep "free" >/dev/null 2>&1; then | |
14155 | : | |
14156 | else | |
698dcdb6 | 14157 | rm -rf conftest* |
10f2d63a VZ |
14158 | ac_cv_header_stdc=no |
14159 | fi | |
14160 | rm -f conftest* | |
14161 | ||
14162 | fi | |
14163 | ||
14164 | if test $ac_cv_header_stdc = yes; then | |
14165 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
698dcdb6 | 14166 | if test "$cross_compiling" = yes; then |
10f2d63a VZ |
14167 | : |
14168 | else | |
698dcdb6 | 14169 | cat > conftest.$ac_ext <<EOF |
dfe8399a | 14170 | #line 14171 "configure" |
10f2d63a VZ |
14171 | #include "confdefs.h" |
14172 | #include <ctype.h> | |
698dcdb6 VZ |
14173 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
14174 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
1e487827 | 14175 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
698dcdb6 VZ |
14176 | int main () { int i; for (i = 0; i < 256; i++) |
14177 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
14178 | exit (0); } | |
14179 | ||
14180 | EOF | |
dfe8399a | 14181 | if { (eval echo configure:14182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 14182 | then |
10f2d63a VZ |
14183 | : |
14184 | else | |
698dcdb6 VZ |
14185 | echo "configure: failed program was:" >&5 |
14186 | cat conftest.$ac_ext >&5 | |
14187 | rm -fr conftest* | |
14188 | ac_cv_header_stdc=no | |
10f2d63a | 14189 | fi |
698dcdb6 | 14190 | rm -fr conftest* |
10f2d63a | 14191 | fi |
698dcdb6 | 14192 | |
10f2d63a VZ |
14193 | fi |
14194 | fi | |
1e487827 | 14195 | |
698dcdb6 VZ |
14196 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
14197 | if test $ac_cv_header_stdc = yes; then | |
14198 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
14199 | #define STDC_HEADERS 1 |
14200 | EOF | |
14201 | ||
14202 | fi | |
14203 | ||
698dcdb6 | 14204 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
dfe8399a | 14205 | echo "configure:14206: checking for mode_t" >&5 |
698dcdb6 VZ |
14206 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
14207 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 14208 | else |
698dcdb6 | 14209 | cat > conftest.$ac_ext <<EOF |
dfe8399a | 14210 | #line 14211 "configure" |
1e487827 | 14211 | #include "confdefs.h" |
698dcdb6 VZ |
14212 | #include <sys/types.h> |
14213 | #if STDC_HEADERS | |
14214 | #include <stdlib.h> | |
14215 | #include <stddef.h> | |
14216 | #endif | |
14217 | EOF | |
14218 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
14219 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
14220 | rm -rf conftest* | |
10f2d63a VZ |
14221 | ac_cv_type_mode_t=yes |
14222 | else | |
698dcdb6 VZ |
14223 | rm -rf conftest* |
14224 | ac_cv_type_mode_t=no | |
703e0a69 | 14225 | fi |
698dcdb6 | 14226 | rm -f conftest* |
1e487827 | 14227 | |
698dcdb6 VZ |
14228 | fi |
14229 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 | |
14230 | if test $ac_cv_type_mode_t = no; then | |
14231 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
14232 | #define mode_t int |
14233 | EOF | |
14234 | ||
14235 | fi | |
14236 | ||
698dcdb6 | 14237 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
dfe8399a | 14238 | echo "configure:14239: checking for off_t" >&5 |
698dcdb6 VZ |
14239 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
14240 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14241 | else |
698dcdb6 | 14242 | cat > conftest.$ac_ext <<EOF |
dfe8399a | 14243 | #line 14244 "configure" |
10f2d63a | 14244 | #include "confdefs.h" |
698dcdb6 VZ |
14245 | #include <sys/types.h> |
14246 | #if STDC_HEADERS | |
14247 | #include <stdlib.h> | |
14248 | #include <stddef.h> | |
14249 | #endif | |
14250 | EOF | |
14251 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
14252 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
14253 | rm -rf conftest* | |
10f2d63a VZ |
14254 | ac_cv_type_off_t=yes |
14255 | else | |
698dcdb6 VZ |
14256 | rm -rf conftest* |
14257 | ac_cv_type_off_t=no | |
703e0a69 | 14258 | fi |
698dcdb6 | 14259 | rm -f conftest* |
1e487827 | 14260 | |
698dcdb6 VZ |
14261 | fi |
14262 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
14263 | if test $ac_cv_type_off_t = no; then | |
14264 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
14265 | #define off_t long |
14266 | EOF | |
14267 | ||
14268 | fi | |
14269 | ||
698dcdb6 | 14270 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
dfe8399a | 14271 | echo "configure:14272: checking for pid_t" >&5 |
698dcdb6 VZ |
14272 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
14273 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14274 | else |
698dcdb6 | 14275 | cat > conftest.$ac_ext <<EOF |
dfe8399a | 14276 | #line 14277 "configure" |
10f2d63a | 14277 | #include "confdefs.h" |
698dcdb6 VZ |
14278 | #include <sys/types.h> |
14279 | #if STDC_HEADERS | |
14280 | #include <stdlib.h> | |
14281 | #include <stddef.h> | |
14282 | #endif | |
14283 | EOF | |
14284 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
14285 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
14286 | rm -rf conftest* | |
10f2d63a VZ |
14287 | ac_cv_type_pid_t=yes |
14288 | else | |
698dcdb6 VZ |
14289 | rm -rf conftest* |
14290 | ac_cv_type_pid_t=no | |
703e0a69 | 14291 | fi |
698dcdb6 | 14292 | rm -f conftest* |
1e487827 | 14293 | |
698dcdb6 VZ |
14294 | fi |
14295 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
14296 | if test $ac_cv_type_pid_t = no; then | |
14297 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
14298 | #define pid_t int |
14299 | EOF | |
14300 | ||
14301 | fi | |
14302 | ||
698dcdb6 | 14303 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
dfe8399a | 14304 | echo "configure:14305: checking for size_t" >&5 |
698dcdb6 VZ |
14305 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
14306 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14307 | else |
698dcdb6 | 14308 | cat > conftest.$ac_ext <<EOF |
dfe8399a | 14309 | #line 14310 "configure" |
10f2d63a | 14310 | #include "confdefs.h" |
698dcdb6 VZ |
14311 | #include <sys/types.h> |
14312 | #if STDC_HEADERS | |
14313 | #include <stdlib.h> | |
14314 | #include <stddef.h> | |
14315 | #endif | |
14316 | EOF | |
14317 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
14318 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
14319 | rm -rf conftest* | |
10f2d63a VZ |
14320 | ac_cv_type_size_t=yes |
14321 | else | |
698dcdb6 VZ |
14322 | rm -rf conftest* |
14323 | ac_cv_type_size_t=no | |
703e0a69 | 14324 | fi |
698dcdb6 | 14325 | rm -f conftest* |
1e487827 | 14326 | |
698dcdb6 VZ |
14327 | fi |
14328 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
14329 | if test $ac_cv_type_size_t = no; then | |
14330 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
14331 | #define size_t unsigned |
14332 | EOF | |
14333 | ||
14334 | fi | |
14335 | ||
698dcdb6 | 14336 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
dfe8399a | 14337 | echo "configure:14338: checking for uid_t in sys/types.h" >&5 |
698dcdb6 VZ |
14338 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
14339 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14340 | else |
698dcdb6 | 14341 | cat > conftest.$ac_ext <<EOF |
dfe8399a | 14342 | #line 14343 "configure" |
10f2d63a VZ |
14343 | #include "confdefs.h" |
14344 | #include <sys/types.h> | |
698dcdb6 | 14345 | EOF |
10f2d63a VZ |
14346 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
14347 | egrep "uid_t" >/dev/null 2>&1; then | |
698dcdb6 | 14348 | rm -rf conftest* |
10f2d63a VZ |
14349 | ac_cv_type_uid_t=yes |
14350 | else | |
698dcdb6 | 14351 | rm -rf conftest* |
10f2d63a VZ |
14352 | ac_cv_type_uid_t=no |
14353 | fi | |
14354 | rm -f conftest* | |
14355 | ||
14356 | fi | |
1e487827 | 14357 | |
698dcdb6 VZ |
14358 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
14359 | if test $ac_cv_type_uid_t = no; then | |
14360 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
14361 | #define uid_t int |
14362 | EOF | |
14363 | ||
698dcdb6 | 14364 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
14365 | #define gid_t int |
14366 | EOF | |
14367 | ||
14368 | fi | |
14369 | ||
1e487827 | 14370 | |
698dcdb6 | 14371 | echo $ac_n "checking for wchar_t""... $ac_c" 1>&6 |
dfe8399a | 14372 | echo "configure:14373: checking for wchar_t" >&5 |
698dcdb6 VZ |
14373 | if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then |
14374 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14375 | else | |
14376 | ||
14377 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 14378 | #line 14379 "configure" |
0046ff7c | 14379 | #include "confdefs.h" |
4b42290e GD |
14380 | |
14381 | #ifdef HAVE_WCHAR_H | |
0fbb762e MB |
14382 | # ifdef __CYGWIN__ |
14383 | # include <stddef.h> | |
14384 | # endif | |
4b42290e GD |
14385 | # include <wchar.h> |
14386 | #endif | |
14387 | #ifdef HAVE_STDLIB_H | |
14388 | # include <stdlib.h> | |
14389 | #endif | |
14390 | ||
698dcdb6 | 14391 | int main() { |
0046ff7c | 14392 | |
d836ee96 VZ |
14393 | wchar_t wc, *ws; |
14394 | wc = L'a'; | |
14395 | ws = L"Hello, world!"; | |
698dcdb6 VZ |
14396 | |
14397 | ; return 0; } | |
14398 | EOF | |
dfe8399a | 14399 | if { (eval echo configure:14400: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 14400 | rm -rf conftest* |
1f8ae82f | 14401 | wx_cv_type_wchar_t=yes |
0046ff7c | 14402 | else |
698dcdb6 VZ |
14403 | echo "configure: failed program was:" >&5 |
14404 | cat conftest.$ac_ext >&5 | |
14405 | rm -rf conftest* | |
14406 | wx_cv_type_wchar_t=no | |
d836ee96 | 14407 | |
6232543b | 14408 | fi |
698dcdb6 | 14409 | rm -f conftest* |
703e0a69 | 14410 | |
1e487827 | 14411 | fi |
698dcdb6 VZ |
14412 | |
14413 | echo "$ac_t""$wx_cv_type_wchar_t" 1>&6 | |
d836ee96 VZ |
14414 | |
14415 | if test "$wx_cv_type_wchar_t" = "yes"; then | |
698dcdb6 | 14416 | cat >> confdefs.h <<\EOF |
0046ff7c VS |
14417 | #define wxUSE_WCHAR_T 1 |
14418 | EOF | |
14419 | ||
14420 | fi | |
14421 | ||
19af3b06 VZ |
14422 | |
14423 | ac_ext=C | |
14424 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14425 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14426 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14427 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14428 | cross_compiling=$ac_cv_prog_cxx_cross | |
14429 | ||
d836ee96 | 14430 | echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6 |
dfe8399a | 14431 | echo "configure:14432: checking if size_t is unsigned int" >&5 |
d836ee96 VZ |
14432 | if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then |
14433 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14434 | else | |
dd2c8b7c | 14435 | cat > conftest.$ac_ext <<EOF |
dfe8399a | 14436 | #line 14437 "configure" |
d836ee96 VZ |
14437 | #include "confdefs.h" |
14438 | #include <stddef.h> | |
14439 | int main() { | |
14440 | ||
dd2c8b7c VZ |
14441 | return 0; } |
14442 | ||
d836ee96 | 14443 | struct Foo { void foo(size_t); void foo(unsigned int); }; |
dd2c8b7c VZ |
14444 | |
14445 | int bar() { | |
d836ee96 VZ |
14446 | |
14447 | ; return 0; } | |
14448 | EOF | |
dfe8399a | 14449 | if { (eval echo configure:14450: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d836ee96 VZ |
14450 | rm -rf conftest* |
14451 | wx_cv_size_t_is_uint=no | |
14452 | else | |
14453 | echo "configure: failed program was:" >&5 | |
14454 | cat conftest.$ac_ext >&5 | |
14455 | rm -rf conftest* | |
14456 | wx_cv_size_t_is_uint=yes | |
14457 | ||
14458 | fi | |
14459 | rm -f conftest* | |
14460 | ||
14461 | fi | |
14462 | ||
14463 | echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6 | |
14464 | ||
14465 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
14466 | cat >> confdefs.h <<\EOF | |
14467 | #define wxSIZE_T_IS_UINT 1 | |
14468 | EOF | |
14469 | ||
14470 | else | |
14471 | echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6 | |
dfe8399a | 14472 | echo "configure:14473: checking if size_t is unsigned long" >&5 |
d836ee96 VZ |
14473 | if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then |
14474 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14475 | else | |
14476 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 14477 | #line 14478 "configure" |
d836ee96 VZ |
14478 | #include "confdefs.h" |
14479 | #include <stddef.h> | |
14480 | int main() { | |
14481 | ||
dd2c8b7c VZ |
14482 | return 0; } |
14483 | ||
d836ee96 | 14484 | struct Foo { void foo(size_t); void foo(unsigned long); }; |
dd2c8b7c VZ |
14485 | |
14486 | int bar() { | |
d836ee96 VZ |
14487 | |
14488 | ; return 0; } | |
14489 | EOF | |
dfe8399a | 14490 | if { (eval echo configure:14491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d836ee96 VZ |
14491 | rm -rf conftest* |
14492 | wx_cv_size_t_is_ulong=no | |
14493 | else | |
14494 | echo "configure: failed program was:" >&5 | |
14495 | cat conftest.$ac_ext >&5 | |
14496 | rm -rf conftest* | |
14497 | wx_cv_size_t_is_ulong=yes | |
14498 | ||
14499 | fi | |
14500 | rm -f conftest* | |
14501 | ||
14502 | fi | |
14503 | ||
14504 | echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6 | |
14505 | ||
14506 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
14507 | cat >> confdefs.h <<\EOF | |
14508 | #define wxSIZE_T_IS_ULONG 1 | |
14509 | EOF | |
14510 | ||
14511 | fi | |
14512 | fi | |
14513 | ||
19af3b06 VZ |
14514 | ac_ext=c |
14515 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14516 | ac_cpp='$CPP $CPPFLAGS' | |
14517 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14518 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14519 | cross_compiling=$ac_cv_prog_cc_cross | |
14520 | ||
14521 | ||
1e487827 | 14522 | |
698dcdb6 | 14523 | echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6 |
dfe8399a | 14524 | echo "configure:14525: checking for pw_gecos in struct passwd" >&5 |
698dcdb6 VZ |
14525 | if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then |
14526 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14527 | else | |
14528 | ||
14529 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 14530 | #line 14531 "configure" |
b12915c1 VZ |
14531 | #include "confdefs.h" |
14532 | #include <pwd.h> | |
698dcdb6 | 14533 | int main() { |
b12915c1 VZ |
14534 | |
14535 | char *p; | |
14536 | struct passwd *pw; | |
14537 | p = pw->pw_gecos; | |
698dcdb6 VZ |
14538 | |
14539 | ; return 0; } | |
14540 | EOF | |
dfe8399a | 14541 | if { (eval echo configure:14542: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
14542 | rm -rf conftest* |
14543 | ||
b12915c1 | 14544 | wx_cv_struct_pw_gecos=yes |
698dcdb6 | 14545 | |
b12915c1 | 14546 | else |
698dcdb6 VZ |
14547 | echo "configure: failed program was:" >&5 |
14548 | cat conftest.$ac_ext >&5 | |
14549 | rm -rf conftest* | |
14550 | ||
b12915c1 | 14551 | wx_cv_struct_pw_gecos=no |
698dcdb6 VZ |
14552 | |
14553 | ||
6232543b | 14554 | fi |
698dcdb6 VZ |
14555 | rm -f conftest* |
14556 | ||
703e0a69 | 14557 | |
1e487827 | 14558 | fi |
698dcdb6 VZ |
14559 | |
14560 | echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6 | |
b12915c1 | 14561 | |
bd3277fe | 14562 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
698dcdb6 | 14563 | cat >> confdefs.h <<\EOF |
bd3277fe VZ |
14564 | #define HAVE_PW_GECOS 1 |
14565 | EOF | |
14566 | ||
14567 | fi | |
14568 | ||
698dcdb6 VZ |
14569 | |
14570 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
dfe8399a | 14571 | echo "configure:14572: checking for working const" >&5 |
698dcdb6 VZ |
14572 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
14573 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14574 | else |
698dcdb6 | 14575 | cat > conftest.$ac_ext <<EOF |
dfe8399a | 14576 | #line 14577 "configure" |
10f2d63a | 14577 | #include "confdefs.h" |
698dcdb6 VZ |
14578 | |
14579 | int main() { | |
14580 | ||
14581 | /* Ultrix mips cc rejects this. */ | |
d558c907 | 14582 | typedef int charset[2]; const charset x; |
698dcdb6 VZ |
14583 | /* SunOS 4.1.1 cc rejects this. */ |
14584 | char const *const *ccp; | |
14585 | char **p; | |
14586 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
14587 | struct point {int x, y;}; | |
14588 | static struct point const zero = {0,0}; | |
14589 | /* AIX XL C 1.02.0.0 rejects this. | |
14590 | It does not let you subtract one const X* pointer from another in an arm | |
14591 | of an if-expression whose if-part is not a constant expression */ | |
14592 | const char *g = "string"; | |
14593 | ccp = &g + (g ? g-g : 0); | |
14594 | /* HPUX 7.0 cc rejects these. */ | |
14595 | ++ccp; | |
14596 | p = (char**) ccp; | |
14597 | ccp = (char const *const *) p; | |
14598 | { /* SCO 3.2v4 cc rejects this. */ | |
14599 | char *t; | |
14600 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
14601 | ||
14602 | *t++ = 0; | |
10f2d63a | 14603 | } |
698dcdb6 VZ |
14604 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
14605 | int x[] = {25, 17}; | |
14606 | const int *foo = &x[0]; | |
14607 | ++foo; | |
703e0a69 | 14608 | } |
698dcdb6 VZ |
14609 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
14610 | typedef const int *iptr; | |
14611 | iptr p = 0; | |
14612 | ++p; | |
6232543b | 14613 | } |
698dcdb6 VZ |
14614 | { /* AIX XL C 1.02.0.0 rejects this saying |
14615 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
14616 | struct s { int j; const int *ap[3]; }; | |
14617 | struct s *b; b->j = 5; | |
1e487827 | 14618 | } |
698dcdb6 VZ |
14619 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
14620 | const int foo = 10; | |
14621 | } | |
4f14bcd8 GD |
14622 | |
14623 | ; return 0; } | |
698dcdb6 | 14624 | EOF |
dfe8399a | 14625 | if { (eval echo configure:14626: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
14626 | rm -rf conftest* |
14627 | ac_cv_c_const=yes | |
698dcdb6 VZ |
14628 | else |
14629 | echo "configure: failed program was:" >&5 | |
14630 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
14631 | rm -rf conftest* |
14632 | ac_cv_c_const=no | |
703e0a69 | 14633 | fi |
4f14bcd8 | 14634 | rm -f conftest* |
698dcdb6 VZ |
14635 | fi |
14636 | ||
4f14bcd8 GD |
14637 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
14638 | if test $ac_cv_c_const = no; then | |
14639 | cat >> confdefs.h <<\EOF | |
14640 | #define const | |
698dcdb6 VZ |
14641 | EOF |
14642 | ||
4f14bcd8 | 14643 | fi |
698dcdb6 | 14644 | |
4f14bcd8 | 14645 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
dfe8399a | 14646 | echo "configure:14647: checking for inline" >&5 |
4f14bcd8 | 14647 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
698dcdb6 | 14648 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 14649 | else |
4f14bcd8 GD |
14650 | ac_cv_c_inline=no |
14651 | for ac_kw in inline __inline__ __inline; do | |
698dcdb6 | 14652 | cat > conftest.$ac_ext <<EOF |
dfe8399a | 14653 | #line 14654 "configure" |
10f2d63a | 14654 | #include "confdefs.h" |
4f14bcd8 GD |
14655 | |
14656 | int main() { | |
d558c907 | 14657 | } $ac_kw foo() { |
4f14bcd8 | 14658 | ; return 0; } |
698dcdb6 | 14659 | EOF |
dfe8399a | 14660 | if { (eval echo configure:14661: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
14661 | rm -rf conftest* |
14662 | ac_cv_c_inline=$ac_kw; break | |
10f2d63a | 14663 | else |
698dcdb6 VZ |
14664 | echo "configure: failed program was:" >&5 |
14665 | cat conftest.$ac_ext >&5 | |
10f2d63a | 14666 | fi |
4f14bcd8 GD |
14667 | rm -f conftest* |
14668 | done | |
698dcdb6 | 14669 | |
10f2d63a | 14670 | fi |
4f14bcd8 GD |
14671 | |
14672 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
14673 | case "$ac_cv_c_inline" in | |
14674 | inline | yes) ;; | |
14675 | no) cat >> confdefs.h <<\EOF | |
14676 | #define inline | |
14677 | EOF | |
14678 | ;; | |
14679 | *) cat >> confdefs.h <<EOF | |
14680 | #define inline $ac_cv_c_inline | |
698dcdb6 | 14681 | EOF |
4f14bcd8 GD |
14682 | ;; |
14683 | esac | |
698dcdb6 VZ |
14684 | |
14685 | ||
4f14bcd8 | 14686 | echo $ac_n "checking size of char""... $ac_c" 1>&6 |
dfe8399a | 14687 | echo "configure:14688: checking size of char" >&5 |
4f14bcd8 | 14688 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
698dcdb6 VZ |
14689 | echo $ac_n "(cached) $ac_c" 1>&6 |
14690 | else | |
14691 | if test "$cross_compiling" = yes; then | |
4f14bcd8 | 14692 | ac_cv_sizeof_char=1 |
698dcdb6 VZ |
14693 | else |
14694 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 14695 | #line 14696 "configure" |
698dcdb6 VZ |
14696 | #include "confdefs.h" |
14697 | #include <stdio.h> | |
9337b578 | 14698 | main() |
698dcdb6 VZ |
14699 | { |
14700 | FILE *f=fopen("conftestval", "w"); | |
9337b578 | 14701 | if (!f) exit(1); |
4f14bcd8 | 14702 | fprintf(f, "%d\n", sizeof(char)); |
9337b578 | 14703 | exit(0); |
698dcdb6 VZ |
14704 | } |
14705 | EOF | |
dfe8399a | 14706 | if { (eval echo configure:14707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 14707 | then |
4f14bcd8 | 14708 | ac_cv_sizeof_char=`cat conftestval` |
6232543b | 14709 | else |
698dcdb6 VZ |
14710 | echo "configure: failed program was:" >&5 |
14711 | cat conftest.$ac_ext >&5 | |
14712 | rm -fr conftest* | |
4f14bcd8 | 14713 | ac_cv_sizeof_char=0 |
6232543b | 14714 | fi |
698dcdb6 VZ |
14715 | rm -fr conftest* |
14716 | fi | |
14717 | ||
703e0a69 | 14718 | fi |
4f14bcd8 | 14719 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
698dcdb6 | 14720 | cat >> confdefs.h <<EOF |
4f14bcd8 | 14721 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
10f2d63a VZ |
14722 | EOF |
14723 | ||
1e487827 | 14724 | |
4f14bcd8 | 14725 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
dfe8399a | 14726 | echo "configure:14727: checking size of short" >&5 |
4f14bcd8 | 14727 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
698dcdb6 VZ |
14728 | echo $ac_n "(cached) $ac_c" 1>&6 |
14729 | else | |
4f14bcd8 GD |
14730 | if test "$cross_compiling" = yes; then |
14731 | ac_cv_sizeof_short=2 | |
b93d0d08 | 14732 | else |
698dcdb6 | 14733 | cat > conftest.$ac_ext <<EOF |
dfe8399a | 14734 | #line 14735 "configure" |
b93d0d08 | 14735 | #include "confdefs.h" |
4f14bcd8 | 14736 | #include <stdio.h> |
9337b578 | 14737 | main() |
4f14bcd8 GD |
14738 | { |
14739 | FILE *f=fopen("conftestval", "w"); | |
9337b578 | 14740 | if (!f) exit(1); |
4f14bcd8 | 14741 | fprintf(f, "%d\n", sizeof(short)); |
9337b578 | 14742 | exit(0); |
4f14bcd8 | 14743 | } |
698dcdb6 | 14744 | EOF |
dfe8399a | 14745 | if { (eval echo configure:14746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 14746 | then |
4f14bcd8 | 14747 | ac_cv_sizeof_short=`cat conftestval` |
b93d0d08 | 14748 | else |
698dcdb6 VZ |
14749 | echo "configure: failed program was:" >&5 |
14750 | cat conftest.$ac_ext >&5 | |
14751 | rm -fr conftest* | |
4f14bcd8 | 14752 | ac_cv_sizeof_short=0 |
b93d0d08 | 14753 | fi |
698dcdb6 | 14754 | rm -fr conftest* |
b93d0d08 VS |
14755 | fi |
14756 | ||
b93d0d08 | 14757 | fi |
4f14bcd8 | 14758 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
698dcdb6 | 14759 | cat >> confdefs.h <<EOF |
4f14bcd8 | 14760 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
b93d0d08 VS |
14761 | EOF |
14762 | ||
698dcdb6 | 14763 | |
17c89ef3 | 14764 | echo $ac_n "checking size of void *""... $ac_c" 1>&6 |
dfe8399a | 14765 | echo "configure:14766: checking size of void *" >&5 |
17c89ef3 | 14766 | if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then |
698dcdb6 | 14767 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 14768 | else |
4f14bcd8 | 14769 | if test "$cross_compiling" = yes; then |
17c89ef3 | 14770 | ac_cv_sizeof_void_p=4 |
3a922bb4 | 14771 | else |
3a922bb4 | 14772 | cat > conftest.$ac_ext <<EOF |
dfe8399a | 14773 | #line 14774 "configure" |
3a922bb4 | 14774 | #include "confdefs.h" |
4f14bcd8 | 14775 | #include <stdio.h> |
9337b578 | 14776 | main() |
4f14bcd8 GD |
14777 | { |
14778 | FILE *f=fopen("conftestval", "w"); | |
9337b578 | 14779 | if (!f) exit(1); |
17c89ef3 | 14780 | fprintf(f, "%d\n", sizeof(void *)); |
9337b578 | 14781 | exit(0); |
4f14bcd8 GD |
14782 | } |
14783 | EOF | |
dfe8399a | 14784 | if { (eval echo configure:14785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 | 14785 | then |
17c89ef3 | 14786 | ac_cv_sizeof_void_p=`cat conftestval` |
4f14bcd8 GD |
14787 | else |
14788 | echo "configure: failed program was:" >&5 | |
14789 | cat conftest.$ac_ext >&5 | |
14790 | rm -fr conftest* | |
17c89ef3 | 14791 | ac_cv_sizeof_void_p=0 |
3a922bb4 | 14792 | fi |
4f14bcd8 | 14793 | rm -fr conftest* |
3a922bb4 | 14794 | fi |
698dcdb6 | 14795 | |
4f14bcd8 | 14796 | fi |
17c89ef3 | 14797 | echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6 |
4f14bcd8 | 14798 | cat >> confdefs.h <<EOF |
17c89ef3 | 14799 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
10f2d63a VZ |
14800 | EOF |
14801 | ||
703e0a69 | 14802 | |
4f14bcd8 | 14803 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
dfe8399a | 14804 | echo "configure:14805: checking size of int" >&5 |
4f14bcd8 | 14805 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
698dcdb6 | 14806 | echo $ac_n "(cached) $ac_c" 1>&6 |
4f14bcd8 GD |
14807 | else |
14808 | if test "$cross_compiling" = yes; then | |
14809 | ac_cv_sizeof_int=4 | |
698dcdb6 VZ |
14810 | else |
14811 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 14812 | #line 14813 "configure" |
10f2d63a | 14813 | #include "confdefs.h" |
4f14bcd8 | 14814 | #include <stdio.h> |
9337b578 | 14815 | main() |
4f14bcd8 GD |
14816 | { |
14817 | FILE *f=fopen("conftestval", "w"); | |
9337b578 | 14818 | if (!f) exit(1); |
4f14bcd8 | 14819 | fprintf(f, "%d\n", sizeof(int)); |
9337b578 | 14820 | exit(0); |
4f14bcd8 | 14821 | } |
698dcdb6 | 14822 | EOF |
dfe8399a | 14823 | if { (eval echo configure:14824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
14824 | then |
14825 | ac_cv_sizeof_int=`cat conftestval` | |
10f2d63a | 14826 | else |
698dcdb6 | 14827 | echo "configure: failed program was:" >&5 |
10f2d63a | 14828 | cat conftest.$ac_ext >&5 |
4f14bcd8 GD |
14829 | rm -fr conftest* |
14830 | ac_cv_sizeof_int=0 | |
10f2d63a | 14831 | fi |
4f14bcd8 | 14832 | rm -fr conftest* |
10f2d63a | 14833 | fi |
10f2d63a | 14834 | |
4f14bcd8 GD |
14835 | fi |
14836 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | |
14837 | cat >> confdefs.h <<EOF | |
14838 | #define SIZEOF_INT $ac_cv_sizeof_int | |
10f2d63a VZ |
14839 | EOF |
14840 | ||
698dcdb6 | 14841 | |
4f14bcd8 | 14842 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
dfe8399a | 14843 | echo "configure:14844: checking size of long" >&5 |
4f14bcd8 | 14844 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
698dcdb6 VZ |
14845 | echo $ac_n "(cached) $ac_c" 1>&6 |
14846 | else | |
4f14bcd8 GD |
14847 | if test "$cross_compiling" = yes; then |
14848 | ac_cv_sizeof_long=4 | |
14849 | else | |
14850 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 14851 | #line 14852 "configure" |
10f2d63a | 14852 | #include "confdefs.h" |
4f14bcd8 | 14853 | #include <stdio.h> |
9337b578 | 14854 | main() |
4f14bcd8 GD |
14855 | { |
14856 | FILE *f=fopen("conftestval", "w"); | |
9337b578 | 14857 | if (!f) exit(1); |
4f14bcd8 | 14858 | fprintf(f, "%d\n", sizeof(long)); |
9337b578 | 14859 | exit(0); |
4f14bcd8 | 14860 | } |
698dcdb6 | 14861 | EOF |
dfe8399a | 14862 | if { (eval echo configure:14863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
14863 | then |
14864 | ac_cv_sizeof_long=`cat conftestval` | |
10f2d63a | 14865 | else |
698dcdb6 VZ |
14866 | echo "configure: failed program was:" >&5 |
14867 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
14868 | rm -fr conftest* |
14869 | ac_cv_sizeof_long=0 | |
10f2d63a | 14870 | fi |
4f14bcd8 | 14871 | rm -fr conftest* |
10f2d63a | 14872 | fi |
698dcdb6 | 14873 | |
4f14bcd8 GD |
14874 | fi |
14875 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 | |
14876 | cat >> confdefs.h <<EOF | |
14877 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
10f2d63a VZ |
14878 | EOF |
14879 | ||
698dcdb6 | 14880 | |
9d353d4a RR |
14881 | |
14882 | case "${host}" in | |
14883 | arm-*-linux* ) | |
14884 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
dfe8399a | 14885 | echo "configure:14886: checking size of long long" >&5 |
9d353d4a RR |
14886 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
14887 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14888 | else | |
14889 | if test "$cross_compiling" = yes; then | |
14890 | ac_cv_sizeof_long_long=8 | |
14891 | else | |
14892 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 14893 | #line 14894 "configure" |
9d353d4a RR |
14894 | #include "confdefs.h" |
14895 | #include <stdio.h> | |
14896 | main() | |
14897 | { | |
14898 | FILE *f=fopen("conftestval", "w"); | |
14899 | if (!f) exit(1); | |
14900 | fprintf(f, "%d\n", sizeof(long long)); | |
14901 | exit(0); | |
14902 | } | |
14903 | EOF | |
dfe8399a | 14904 | if { (eval echo configure:14905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
9d353d4a RR |
14905 | then |
14906 | ac_cv_sizeof_long_long=`cat conftestval` | |
14907 | else | |
14908 | echo "configure: failed program was:" >&5 | |
14909 | cat conftest.$ac_ext >&5 | |
14910 | rm -fr conftest* | |
14911 | ac_cv_sizeof_long_long=0 | |
14912 | fi | |
14913 | rm -fr conftest* | |
14914 | fi | |
14915 | ||
14916 | fi | |
14917 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 | |
14918 | cat >> confdefs.h <<EOF | |
14919 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
14920 | EOF | |
14921 | ||
14922 | ||
14923 | ;; | |
14924 | * ) | |
14925 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
dfe8399a | 14926 | echo "configure:14927: checking size of long long" >&5 |
4f14bcd8 | 14927 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
698dcdb6 | 14928 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 14929 | else |
4f14bcd8 GD |
14930 | if test "$cross_compiling" = yes; then |
14931 | ac_cv_sizeof_long_long=0 | |
14932 | else | |
14933 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 14934 | #line 14935 "configure" |
10f2d63a | 14935 | #include "confdefs.h" |
4f14bcd8 | 14936 | #include <stdio.h> |
9337b578 | 14937 | main() |
4f14bcd8 GD |
14938 | { |
14939 | FILE *f=fopen("conftestval", "w"); | |
9337b578 | 14940 | if (!f) exit(1); |
4f14bcd8 | 14941 | fprintf(f, "%d\n", sizeof(long long)); |
9337b578 | 14942 | exit(0); |
4f14bcd8 | 14943 | } |
698dcdb6 | 14944 | EOF |
dfe8399a | 14945 | if { (eval echo configure:14946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
14946 | then |
14947 | ac_cv_sizeof_long_long=`cat conftestval` | |
698dcdb6 VZ |
14948 | else |
14949 | echo "configure: failed program was:" >&5 | |
14950 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
14951 | rm -fr conftest* |
14952 | ac_cv_sizeof_long_long=0 | |
14953 | fi | |
14954 | rm -fr conftest* | |
698dcdb6 | 14955 | fi |
698dcdb6 VZ |
14956 | |
14957 | fi | |
4f14bcd8 GD |
14958 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
14959 | cat >> confdefs.h <<EOF | |
14960 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
10f2d63a VZ |
14961 | EOF |
14962 | ||
10f2d63a | 14963 | |
9d353d4a RR |
14964 | esac |
14965 | ||
4f14bcd8 GD |
14966 | |
14967 | echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 | |
dfe8399a | 14968 | echo "configure:14969: checking size of wchar_t" >&5 |
4f14bcd8 | 14969 | if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then |
698dcdb6 | 14970 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 14971 | else |
4f14bcd8 GD |
14972 | |
14973 | if test "$cross_compiling" = yes; then | |
14974 | wx_cv_sizeof_wchar_t=4 | |
14975 | ||
14976 | else | |
14977 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 14978 | #line 14979 "configure" |
10f2d63a | 14979 | #include "confdefs.h" |
698dcdb6 | 14980 | |
4f14bcd8 | 14981 | #ifdef HAVE_WCHAR_H |
0fbb762e MB |
14982 | # ifdef __CYGWIN__ |
14983 | # include <stddef.h> | |
14984 | # endif | |
4f14bcd8 GD |
14985 | # include <wchar.h> |
14986 | #endif | |
14987 | #ifdef HAVE_STDLIB_H | |
14988 | # include <stdlib.h> | |
14989 | #endif | |
14990 | #include <stdio.h> | |
14991 | int main() | |
14992 | { | |
14993 | FILE *f=fopen("conftestval", "w"); | |
14994 | if (!f) exit(1); | |
14995 | fprintf(f, "%i", sizeof(wchar_t)); | |
14996 | exit(0); | |
14997 | } | |
14998 | ||
698dcdb6 | 14999 | EOF |
dfe8399a | 15000 | if { (eval echo configure:15001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
15001 | then |
15002 | wx_cv_sizeof_wchar_t=`cat conftestval` | |
698dcdb6 VZ |
15003 | else |
15004 | echo "configure: failed program was:" >&5 | |
15005 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
15006 | rm -fr conftest* |
15007 | wx_cv_sizeof_wchar_t=0 | |
698dcdb6 | 15008 | fi |
4f14bcd8 GD |
15009 | rm -fr conftest* |
15010 | fi | |
15011 | ||
698dcdb6 VZ |
15012 | |
15013 | fi | |
4f14bcd8 GD |
15014 | |
15015 | echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6 | |
15016 | ||
15017 | cat >> confdefs.h <<EOF | |
15018 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t | |
10f2d63a VZ |
15019 | EOF |
15020 | ||
18dbb1f6 | 15021 | |
4f14bcd8 | 15022 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
dfe8399a | 15023 | echo "configure:15024: checking whether byte ordering is bigendian" >&5 |
4f14bcd8 | 15024 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
18dbb1f6 VZ |
15025 | echo $ac_n "(cached) $ac_c" 1>&6 |
15026 | else | |
4f14bcd8 GD |
15027 | ac_cv_c_bigendian=unknown |
15028 | # See if sys/param.h defines the BYTE_ORDER macro. | |
18dbb1f6 | 15029 | cat > conftest.$ac_ext <<EOF |
dfe8399a | 15030 | #line 15031 "configure" |
18dbb1f6 | 15031 | #include "confdefs.h" |
4f14bcd8 GD |
15032 | #include <sys/types.h> |
15033 | #include <sys/param.h> | |
15034 | int main() { | |
18dbb1f6 | 15035 | |
4f14bcd8 GD |
15036 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
15037 | bogus endian macros | |
15038 | #endif | |
15039 | ; return 0; } | |
15040 | EOF | |
dfe8399a | 15041 | if { (eval echo configure:15042: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
15042 | rm -rf conftest* |
15043 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
15044 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 15045 | #line 15046 "configure" |
4f14bcd8 GD |
15046 | #include "confdefs.h" |
15047 | #include <sys/types.h> | |
15048 | #include <sys/param.h> | |
18dbb1f6 | 15049 | int main() { |
4f14bcd8 GD |
15050 | |
15051 | #if BYTE_ORDER != BIG_ENDIAN | |
15052 | not big endian | |
15053 | #endif | |
18dbb1f6 VZ |
15054 | ; return 0; } |
15055 | EOF | |
dfe8399a | 15056 | if { (eval echo configure:15057: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
18dbb1f6 | 15057 | rm -rf conftest* |
4f14bcd8 | 15058 | ac_cv_c_bigendian=yes |
18dbb1f6 VZ |
15059 | else |
15060 | echo "configure: failed program was:" >&5 | |
15061 | cat conftest.$ac_ext >&5 | |
15062 | rm -rf conftest* | |
4f14bcd8 | 15063 | ac_cv_c_bigendian=no |
18dbb1f6 VZ |
15064 | fi |
15065 | rm -f conftest* | |
698dcdb6 | 15066 | else |
4f14bcd8 GD |
15067 | echo "configure: failed program was:" >&5 |
15068 | cat conftest.$ac_ext >&5 | |
1e487827 | 15069 | fi |
4f14bcd8 GD |
15070 | rm -f conftest* |
15071 | if test $ac_cv_c_bigendian = unknown; then | |
15072 | if test "$cross_compiling" = yes; then | |
15073 | ac_cv_c_bigendian=unknown | |
b3e8d00a VZ |
15074 | else |
15075 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 15076 | #line 15077 "configure" |
b3e8d00a | 15077 | #include "confdefs.h" |
4f14bcd8 GD |
15078 | main () { |
15079 | /* Are we little or big endian? From Harbison&Steele. */ | |
15080 | union | |
15081 | { | |
15082 | long l; | |
15083 | char c[sizeof (long)]; | |
15084 | } u; | |
15085 | u.l = 1; | |
15086 | exit (u.c[sizeof (long) - 1] == 1); | |
15087 | } | |
b3e8d00a | 15088 | EOF |
dfe8399a | 15089 | if { (eval echo configure:15090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
15090 | then |
15091 | ac_cv_c_bigendian=no | |
b3e8d00a VZ |
15092 | else |
15093 | echo "configure: failed program was:" >&5 | |
15094 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
15095 | rm -fr conftest* |
15096 | ac_cv_c_bigendian=yes | |
b3e8d00a | 15097 | fi |
4f14bcd8 | 15098 | rm -fr conftest* |
b3e8d00a VZ |
15099 | fi |
15100 | ||
4f14bcd8 GD |
15101 | fi |
15102 | fi | |
15103 | ||
15104 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
15105 | if test $ac_cv_c_bigendian = unknown; then | |
15106 | 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 | |
15107 | fi | |
15108 | if test $ac_cv_c_bigendian = yes; then | |
15109 | cat >> confdefs.h <<\EOF | |
15110 | #define WORDS_BIGENDIAN 1 | |
b3e8d00a | 15111 | EOF |
4f14bcd8 | 15112 | |
b3e8d00a | 15113 | fi |
b3e8d00a VZ |
15114 | |
15115 | ||
4f14bcd8 | 15116 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 |
dfe8399a | 15117 | echo "configure:15118: checking how to run the C++ preprocessor" >&5 |
4f14bcd8 GD |
15118 | if test -z "$CXXCPP"; then |
15119 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then | |
698dcdb6 VZ |
15120 | echo $ac_n "(cached) $ac_c" 1>&6 |
15121 | else | |
4f14bcd8 GD |
15122 | ac_ext=C |
15123 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15124 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15125 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15126 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15127 | cross_compiling=$ac_cv_prog_cxx_cross | |
15128 | CXXCPP="${CXX-g++} -E" | |
698dcdb6 | 15129 | cat > conftest.$ac_ext <<EOF |
dfe8399a | 15130 | #line 15131 "configure" |
10f2d63a | 15131 | #include "confdefs.h" |
4f14bcd8 | 15132 | #include <stdlib.h> |
698dcdb6 | 15133 | EOF |
4f14bcd8 | 15134 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
dfe8399a | 15135 | { (eval echo configure:15136: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
15136 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15137 | if test -z "$ac_err"; then | |
15138 | : | |
698dcdb6 | 15139 | else |
4f14bcd8 | 15140 | echo "$ac_err" >&5 |
698dcdb6 VZ |
15141 | echo "configure: failed program was:" >&5 |
15142 | cat conftest.$ac_ext >&5 | |
15143 | rm -rf conftest* | |
4f14bcd8 | 15144 | CXXCPP=/lib/cpp |
698dcdb6 VZ |
15145 | fi |
15146 | rm -f conftest* | |
4f14bcd8 GD |
15147 | ac_cv_prog_CXXCPP="$CXXCPP" |
15148 | ac_ext=C | |
15149 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15150 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15151 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15152 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15153 | cross_compiling=$ac_cv_prog_cxx_cross | |
15154 | fi | |
698dcdb6 | 15155 | fi |
4f14bcd8 GD |
15156 | CXXCPP="$ac_cv_prog_CXXCPP" |
15157 | echo "$ac_t""$CXXCPP" 1>&6 | |
698dcdb6 | 15158 | |
4f14bcd8 GD |
15159 | |
15160 | if test "$cross_compiling" = "yes"; then | |
15161 | cat >> confdefs.h <<\EOF | |
15162 | #define wxUSE_IOSTREAMH 1 | |
698dcdb6 VZ |
15163 | EOF |
15164 | ||
4f14bcd8 GD |
15165 | else |
15166 | ||
15167 | ac_ext=C | |
15168 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15169 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15170 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15171 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15172 | cross_compiling=$ac_cv_prog_cxx_cross | |
698dcdb6 | 15173 | |
4f14bcd8 GD |
15174 | |
15175 | for ac_hdr in iostream | |
15176 | do | |
15177 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
15178 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
dfe8399a | 15179 | echo "configure:15180: checking for $ac_hdr" >&5 |
4f14bcd8 | 15180 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
698dcdb6 VZ |
15181 | echo $ac_n "(cached) $ac_c" 1>&6 |
15182 | else | |
15183 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 15184 | #line 15185 "configure" |
10f2d63a | 15185 | #include "confdefs.h" |
4f14bcd8 | 15186 | #include <$ac_hdr> |
698dcdb6 | 15187 | EOF |
4f14bcd8 | 15188 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
dfe8399a | 15189 | { (eval echo configure:15190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
15190 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15191 | if test -z "$ac_err"; then | |
698dcdb6 | 15192 | rm -rf conftest* |
4f14bcd8 | 15193 | eval "ac_cv_header_$ac_safe=yes" |
698dcdb6 | 15194 | else |
4f14bcd8 | 15195 | echo "$ac_err" >&5 |
698dcdb6 VZ |
15196 | echo "configure: failed program was:" >&5 |
15197 | cat conftest.$ac_ext >&5 | |
15198 | rm -rf conftest* | |
4f14bcd8 | 15199 | eval "ac_cv_header_$ac_safe=no" |
698dcdb6 VZ |
15200 | fi |
15201 | rm -f conftest* | |
15202 | fi | |
4f14bcd8 | 15203 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
698dcdb6 | 15204 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
15205 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
15206 | cat >> confdefs.h <<EOF | |
15207 | #define $ac_tr_hdr 1 | |
10f2d63a | 15208 | EOF |
4f14bcd8 | 15209 | |
698dcdb6 VZ |
15210 | else |
15211 | echo "$ac_t""no" 1>&6 | |
10f2d63a | 15212 | fi |
4f14bcd8 | 15213 | done |
10f2d63a | 15214 | |
10f2d63a | 15215 | |
4f14bcd8 GD |
15216 | if test "$ac_cv_header_iostream" = "yes" ; then |
15217 | : | |
15218 | else | |
15219 | cat >> confdefs.h <<\EOF | |
15220 | #define wxUSE_IOSTREAMH 1 | |
15221 | EOF | |
15222 | ||
15223 | fi | |
1e487827 | 15224 | |
4f14bcd8 GD |
15225 | ac_ext=c |
15226 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15227 | ac_cpp='$CPP $CPPFLAGS' | |
15228 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15229 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15230 | cross_compiling=$ac_cv_prog_cc_cross | |
698dcdb6 | 15231 | |
4f14bcd8 | 15232 | fi |
698dcdb6 VZ |
15233 | |
15234 | ||
15235 | ||
4f14bcd8 | 15236 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 |
dfe8399a | 15237 | echo "configure:15238: checking if C++ compiler supports bool" >&5 |
4f14bcd8 | 15238 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then |
698dcdb6 VZ |
15239 | echo $ac_n "(cached) $ac_c" 1>&6 |
15240 | else | |
15241 | ||
4f14bcd8 GD |
15242 | |
15243 | ac_ext=C | |
15244 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15245 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15246 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15247 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15248 | cross_compiling=$ac_cv_prog_cxx_cross | |
f6bcfd97 | 15249 | |
10f2d63a | 15250 | |
4f14bcd8 | 15251 | cat > conftest.$ac_ext <<EOF |
dfe8399a | 15252 | #line 15253 "configure" |
4f14bcd8 | 15253 | #include "confdefs.h" |
10f2d63a | 15254 | |
4f14bcd8 GD |
15255 | |
15256 | int main() { | |
f6bcfd97 | 15257 | |
4f14bcd8 | 15258 | bool b = true; |
f6bcfd97 | 15259 | |
4f14bcd8 GD |
15260 | return 0; |
15261 | ||
698dcdb6 VZ |
15262 | ; return 0; } |
15263 | EOF | |
dfe8399a | 15264 | if { (eval echo configure:15265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
15265 | rm -rf conftest* |
15266 | ||
4f14bcd8 GD |
15267 | wx_cv_cpp_bool=yes |
15268 | ||
10f2d63a | 15269 | else |
698dcdb6 VZ |
15270 | echo "configure: failed program was:" >&5 |
15271 | cat conftest.$ac_ext >&5 | |
15272 | rm -rf conftest* | |
15273 | ||
4f14bcd8 GD |
15274 | wx_cv_cpp_bool=no |
15275 | ||
15276 | ||
15277 | fi | |
15278 | rm -f conftest* | |
c521c494 | 15279 | |
4f14bcd8 GD |
15280 | ac_ext=c |
15281 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15282 | ac_cpp='$CPP $CPPFLAGS' | |
15283 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15284 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15285 | cross_compiling=$ac_cv_prog_cc_cross | |
c521c494 | 15286 | |
4f14bcd8 GD |
15287 | |
15288 | fi | |
c521c494 | 15289 | |
4f14bcd8 | 15290 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 |
c521c494 | 15291 | |
4f14bcd8 GD |
15292 | if test "$wx_cv_cpp_bool" = "yes"; then |
15293 | cat >> confdefs.h <<\EOF | |
15294 | #define HAVE_BOOL 1 | |
15295 | EOF | |
c521c494 | 15296 | |
4f14bcd8 GD |
15297 | fi |
15298 | ||
15299 | ||
15300 | ||
15301 | echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6 | |
dfe8399a | 15302 | echo "configure:15303: checking for wcslen in -lc" >&5 |
4f14bcd8 GD |
15303 | ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'` |
15304 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15305 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15306 | else | |
15307 | ac_save_LIBS="$LIBS" | |
15308 | LIBS="-lc $LIBS" | |
15309 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 15310 | #line 15311 "configure" |
4f14bcd8 GD |
15311 | #include "confdefs.h" |
15312 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15313 | /* We use char because int might match the return type of a gcc2 | |
15314 | builtin and then its argument prototype would still apply. */ | |
15315 | char wcslen(); | |
15316 | ||
15317 | int main() { | |
15318 | wcslen() | |
698dcdb6 VZ |
15319 | ; return 0; } |
15320 | EOF | |
dfe8399a | 15321 | if { (eval echo configure:15322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15322 | rm -rf conftest* |
4f14bcd8 | 15323 | eval "ac_cv_lib_$ac_lib_var=yes" |
c521c494 | 15324 | else |
698dcdb6 VZ |
15325 | echo "configure: failed program was:" >&5 |
15326 | cat conftest.$ac_ext >&5 | |
15327 | rm -rf conftest* | |
4f14bcd8 | 15328 | eval "ac_cv_lib_$ac_lib_var=no" |
6232543b | 15329 | fi |
698dcdb6 | 15330 | rm -f conftest* |
4f14bcd8 | 15331 | LIBS="$ac_save_LIBS" |
703e0a69 | 15332 | |
1e487827 | 15333 | fi |
4f14bcd8 GD |
15334 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
15335 | echo "$ac_t""yes" 1>&6 | |
15336 | ||
15337 | cat >> confdefs.h <<\EOF | |
15338 | #define HAVE_WCSLEN 1 | |
9d8deca0 VZ |
15339 | EOF |
15340 | ||
3d63bc3a | 15341 | WCHAR_LINK= |
4f14bcd8 | 15342 | |
9d8deca0 | 15343 | else |
4f14bcd8 | 15344 | echo "$ac_t""no" 1>&6 |
9d8deca0 | 15345 | |
4f14bcd8 | 15346 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 |
dfe8399a | 15347 | echo "configure:15348: checking for wcslen in -lw" >&5 |
4f14bcd8 GD |
15348 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` |
15349 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 | 15350 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 15351 | else |
4f14bcd8 GD |
15352 | ac_save_LIBS="$LIBS" |
15353 | LIBS="-lw $LIBS" | |
15354 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 15355 | #line 15356 "configure" |
10f2d63a | 15356 | #include "confdefs.h" |
4f14bcd8 GD |
15357 | /* Override any gcc2 internal prototype to avoid an error. */ |
15358 | /* We use char because int might match the return type of a gcc2 | |
15359 | builtin and then its argument prototype would still apply. */ | |
15360 | char wcslen(); | |
10f2d63a | 15361 | |
698dcdb6 | 15362 | int main() { |
4f14bcd8 | 15363 | wcslen() |
698dcdb6 VZ |
15364 | ; return 0; } |
15365 | EOF | |
dfe8399a | 15366 | if { (eval echo configure:15367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15367 | rm -rf conftest* |
4f14bcd8 | 15368 | eval "ac_cv_lib_$ac_lib_var=yes" |
10f2d63a | 15369 | else |
698dcdb6 VZ |
15370 | echo "configure: failed program was:" >&5 |
15371 | cat conftest.$ac_ext >&5 | |
15372 | rm -rf conftest* | |
4f14bcd8 | 15373 | eval "ac_cv_lib_$ac_lib_var=no" |
6232543b | 15374 | fi |
698dcdb6 | 15375 | rm -f conftest* |
4f14bcd8 | 15376 | LIBS="$ac_save_LIBS" |
703e0a69 | 15377 | |
1e487827 | 15378 | fi |
4f14bcd8 GD |
15379 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
15380 | echo "$ac_t""yes" 1>&6 | |
15381 | ||
15382 | cat >> confdefs.h <<\EOF | |
15383 | #define HAVE_WCSLEN 1 | |
9d8deca0 VZ |
15384 | EOF |
15385 | ||
3d63bc3a | 15386 | WCHAR_LINK=" -lw" |
4f14bcd8 GD |
15387 | |
15388 | else | |
15389 | echo "$ac_t""no" 1>&6 | |
698dcdb6 | 15390 | |
4f14bcd8 | 15391 | echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6 |
dfe8399a | 15392 | echo "configure:15393: checking for wcslen in -lmsvcrt" >&5 |
4f14bcd8 GD |
15393 | ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'` |
15394 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 VZ |
15395 | echo $ac_n "(cached) $ac_c" 1>&6 |
15396 | else | |
4f14bcd8 GD |
15397 | ac_save_LIBS="$LIBS" |
15398 | LIBS="-lmsvcrt $LIBS" | |
15399 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 15400 | #line 15401 "configure" |
95c8801c | 15401 | #include "confdefs.h" |
4f14bcd8 GD |
15402 | /* Override any gcc2 internal prototype to avoid an error. */ |
15403 | /* We use char because int might match the return type of a gcc2 | |
15404 | builtin and then its argument prototype would still apply. */ | |
15405 | char wcslen(); | |
95c8801c | 15406 | |
4f14bcd8 GD |
15407 | int main() { |
15408 | wcslen() | |
698dcdb6 VZ |
15409 | ; return 0; } |
15410 | EOF | |
dfe8399a | 15411 | if { (eval echo configure:15412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15412 | rm -rf conftest* |
4f14bcd8 | 15413 | eval "ac_cv_lib_$ac_lib_var=yes" |
95c8801c | 15414 | else |
698dcdb6 VZ |
15415 | echo "configure: failed program was:" >&5 |
15416 | cat conftest.$ac_ext >&5 | |
15417 | rm -rf conftest* | |
4f14bcd8 | 15418 | eval "ac_cv_lib_$ac_lib_var=no" |
95c8801c | 15419 | fi |
698dcdb6 | 15420 | rm -f conftest* |
4f14bcd8 | 15421 | LIBS="$ac_save_LIBS" |
95c8801c VS |
15422 | |
15423 | fi | |
4f14bcd8 GD |
15424 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
15425 | echo "$ac_t""yes" 1>&6 | |
15426 | ||
15427 | cat >> confdefs.h <<\EOF | |
15428 | #define HAVE_WCSLEN 1 | |
15429 | EOF | |
698dcdb6 | 15430 | |
3d63bc3a | 15431 | WCHAR_LINK= |
4f14bcd8 GD |
15432 | |
15433 | else | |
15434 | echo "$ac_t""no" 1>&6 | |
15435 | fi | |
10f2d63a | 15436 | |
4f14bcd8 GD |
15437 | |
15438 | fi | |
95c8801c | 15439 | |
4f14bcd8 | 15440 | |
95c8801c | 15441 | fi |
10f2d63a | 15442 | |
1e487827 | 15443 | |
4f14bcd8 | 15444 | for ac_func in wcsrtombs |
eb4efbdc | 15445 | do |
698dcdb6 | 15446 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
dfe8399a | 15447 | echo "configure:15448: checking for $ac_func" >&5 |
698dcdb6 VZ |
15448 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15449 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15450 | else | |
15451 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 15452 | #line 15453 "configure" |
eb4efbdc VZ |
15453 | #include "confdefs.h" |
15454 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 15455 | which can conflict with char $ac_func(); below. */ |
eb4efbdc VZ |
15456 | #include <assert.h> |
15457 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15458 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15459 | builtin and then its argument prototype would still apply. */ |
15460 | char $ac_func(); | |
15461 | ||
15462 | int main() { | |
eb4efbdc VZ |
15463 | |
15464 | /* The GNU C library defines this for functions which it implements | |
15465 | to always fail with ENOSYS. Some functions are actually named | |
15466 | something starting with __ and the normal name is an alias. */ | |
15467 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15468 | choke me | |
15469 | #else | |
698dcdb6 | 15470 | $ac_func(); |
eb4efbdc VZ |
15471 | #endif |
15472 | ||
698dcdb6 | 15473 | ; return 0; } |
eb4efbdc | 15474 | EOF |
dfe8399a | 15475 | if { (eval echo configure:15476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15476 | rm -rf conftest* |
15477 | eval "ac_cv_func_$ac_func=yes" | |
15478 | else | |
15479 | echo "configure: failed program was:" >&5 | |
15480 | cat conftest.$ac_ext >&5 | |
15481 | rm -rf conftest* | |
15482 | eval "ac_cv_func_$ac_func=no" | |
15483 | fi | |
15484 | rm -f conftest* | |
15485 | fi | |
eb4efbdc | 15486 | |
698dcdb6 VZ |
15487 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
15488 | echo "$ac_t""yes" 1>&6 | |
15489 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15490 | cat >> confdefs.h <<EOF | |
15491 | #define $ac_tr_func 1 | |
15492 | EOF | |
15493 | ||
15494 | else | |
15495 | echo "$ac_t""no" 1>&6 | |
eb4efbdc VZ |
15496 | fi |
15497 | done | |
15498 | ||
698dcdb6 | 15499 | |
4f14bcd8 | 15500 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
dfe8399a | 15501 | echo "configure:15502: checking for vprintf" >&5 |
4f14bcd8 | 15502 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
698dcdb6 VZ |
15503 | echo $ac_n "(cached) $ac_c" 1>&6 |
15504 | else | |
4f14bcd8 | 15505 | cat > conftest.$ac_ext <<EOF |
dfe8399a | 15506 | #line 15507 "configure" |
f6bcfd97 | 15507 | #include "confdefs.h" |
4f14bcd8 GD |
15508 | /* System header to define __stub macros and hopefully few prototypes, |
15509 | which can conflict with char vprintf(); below. */ | |
15510 | #include <assert.h> | |
15511 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15512 | /* We use char because int might match the return type of a gcc2 | |
15513 | builtin and then its argument prototype would still apply. */ | |
15514 | char vprintf(); | |
15515 | ||
698dcdb6 | 15516 | int main() { |
f6bcfd97 | 15517 | |
4f14bcd8 GD |
15518 | /* The GNU C library defines this for functions which it implements |
15519 | to always fail with ENOSYS. Some functions are actually named | |
15520 | something starting with __ and the normal name is an alias. */ | |
15521 | #if defined (__stub_vprintf) || defined (__stub___vprintf) | |
15522 | choke me | |
15523 | #else | |
15524 | vprintf(); | |
15525 | #endif | |
f6bcfd97 | 15526 | |
698dcdb6 VZ |
15527 | ; return 0; } |
15528 | EOF | |
dfe8399a | 15529 | if { (eval echo configure:15530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15530 | rm -rf conftest* |
4f14bcd8 | 15531 | eval "ac_cv_func_vprintf=yes" |
f6bcfd97 | 15532 | else |
698dcdb6 VZ |
15533 | echo "configure: failed program was:" >&5 |
15534 | cat conftest.$ac_ext >&5 | |
15535 | rm -rf conftest* | |
4f14bcd8 | 15536 | eval "ac_cv_func_vprintf=no" |
6232543b | 15537 | fi |
698dcdb6 | 15538 | rm -f conftest* |
1e487827 | 15539 | fi |
698dcdb6 | 15540 | |
4f14bcd8 GD |
15541 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then |
15542 | echo "$ac_t""yes" 1>&6 | |
15543 | cat >> confdefs.h <<\EOF | |
15544 | #define HAVE_VPRINTF 1 | |
f6bcfd97 BP |
15545 | EOF |
15546 | ||
4f14bcd8 GD |
15547 | else |
15548 | echo "$ac_t""no" 1>&6 | |
eb4efbdc VZ |
15549 | fi |
15550 | ||
4f14bcd8 GD |
15551 | if test "$ac_cv_func_vprintf" != yes; then |
15552 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
dfe8399a | 15553 | echo "configure:15554: checking for _doprnt" >&5 |
4f14bcd8 | 15554 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
698dcdb6 VZ |
15555 | echo $ac_n "(cached) $ac_c" 1>&6 |
15556 | else | |
15557 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 15558 | #line 15559 "configure" |
10f2d63a VZ |
15559 | #include "confdefs.h" |
15560 | /* System header to define __stub macros and hopefully few prototypes, | |
4f14bcd8 | 15561 | which can conflict with char _doprnt(); below. */ |
10f2d63a VZ |
15562 | #include <assert.h> |
15563 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15564 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 15565 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 15566 | char _doprnt(); |
698dcdb6 VZ |
15567 | |
15568 | int main() { | |
10f2d63a VZ |
15569 | |
15570 | /* The GNU C library defines this for functions which it implements | |
15571 | to always fail with ENOSYS. Some functions are actually named | |
15572 | something starting with __ and the normal name is an alias. */ | |
4f14bcd8 | 15573 | #if defined (__stub__doprnt) || defined (__stub____doprnt) |
10f2d63a VZ |
15574 | choke me |
15575 | #else | |
4f14bcd8 | 15576 | _doprnt(); |
10f2d63a VZ |
15577 | #endif |
15578 | ||
698dcdb6 | 15579 | ; return 0; } |
10f2d63a | 15580 | EOF |
dfe8399a | 15581 | if { (eval echo configure:15582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15582 | rm -rf conftest* |
4f14bcd8 | 15583 | eval "ac_cv_func__doprnt=yes" |
698dcdb6 VZ |
15584 | else |
15585 | echo "configure: failed program was:" >&5 | |
15586 | cat conftest.$ac_ext >&5 | |
15587 | rm -rf conftest* | |
4f14bcd8 | 15588 | eval "ac_cv_func__doprnt=no" |
698dcdb6 VZ |
15589 | fi |
15590 | rm -f conftest* | |
15591 | fi | |
270a909e | 15592 | |
4f14bcd8 | 15593 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then |
698dcdb6 | 15594 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
15595 | cat >> confdefs.h <<\EOF |
15596 | #define HAVE_DOPRNT 1 | |
698dcdb6 | 15597 | EOF |
4f14bcd8 | 15598 | |
698dcdb6 VZ |
15599 | else |
15600 | echo "$ac_t""no" 1>&6 | |
270a909e | 15601 | fi |
270a909e | 15602 | |
4f14bcd8 | 15603 | fi |
1e487827 | 15604 | |
52e8b690 | 15605 | |
52e8b690 | 15606 | |
52e8b690 | 15607 | |
52e8b690 | 15608 | |
52e8b690 | 15609 | |
4f14bcd8 | 15610 | echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6 |
dfe8399a | 15611 | echo "configure:15612: checking for vsnprintf" >&5 |
4f14bcd8 | 15612 | if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then |
698dcdb6 | 15613 | echo $ac_n "(cached) $ac_c" 1>&6 |
c63c7106 | 15614 | else |
4f14bcd8 | 15615 | |
af15babd | 15616 | cat > conftest.$ac_ext <<EOF |
dfe8399a | 15617 | #line 15618 "configure" |
c63c7106 | 15618 | #include "confdefs.h" |
698dcdb6 | 15619 | |
4f14bcd8 GD |
15620 | #include <stdio.h> |
15621 | #include <stdarg.h> | |
15622 | ||
af15babd VZ |
15623 | int main() { |
15624 | ||
4f14bcd8 GD |
15625 | int wx_test_vsnprintf(const char *, ...); |
15626 | ||
15627 | wx_test_vsnprintf("%s"); | |
15628 | return 0; | |
15629 | } | |
15630 | ||
15631 | int wx_test_vsnprintf(const char *fmt, ...) | |
15632 | { | |
15633 | char *s; | |
15634 | ||
15635 | va_list argp; | |
15636 | va_start(argp, fmt); | |
15637 | vsnprintf(s, 42, fmt, argp); | |
15638 | va_end(argp); | |
15639 | ||
af15babd VZ |
15640 | ; return 0; } |
15641 | EOF | |
dfe8399a | 15642 | if { (eval echo configure:15643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
15643 | rm -rf conftest* |
15644 | ||
4f14bcd8 GD |
15645 | wx_cv_func_vsnprintf=yes |
15646 | ||
af15babd VZ |
15647 | else |
15648 | echo "configure: failed program was:" >&5 | |
15649 | cat conftest.$ac_ext >&5 | |
15650 | rm -rf conftest* | |
15651 | ||
4f14bcd8 | 15652 | cat > conftest.$ac_ext <<EOF |
dfe8399a | 15653 | #line 15654 "configure" |
af15babd | 15654 | #include "confdefs.h" |
af15babd | 15655 | |
4f14bcd8 GD |
15656 | #include <stdio.h> |
15657 | #include <stdarg.h> | |
15658 | ||
af15babd VZ |
15659 | int main() { |
15660 | ||
4f14bcd8 GD |
15661 | int wx_test_vsnprintf(const char *, ...); |
15662 | ||
15663 | wx_test_vsnprintf("%s"); | |
15664 | return 0; | |
15665 | } | |
15666 | ||
15667 | int wx_test_vsnprintf(const char *fmt, ...) | |
15668 | { | |
15669 | char *s; | |
af15babd | 15670 | |
4f14bcd8 GD |
15671 | va_list argp; |
15672 | va_start(argp, fmt); | |
15673 | _vsnprintf(s, 42, fmt, argp); | |
15674 | va_end(argp); | |
15675 | ||
af15babd VZ |
15676 | ; return 0; } |
15677 | EOF | |
dfe8399a | 15678 | if { (eval echo configure:15679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd | 15679 | rm -rf conftest* |
4f14bcd8 GD |
15680 | |
15681 | wx_cv_func_vsnprintf=yes | |
15682 | ||
af15babd VZ |
15683 | else |
15684 | echo "configure: failed program was:" >&5 | |
15685 | cat conftest.$ac_ext >&5 | |
15686 | rm -rf conftest* | |
4f14bcd8 GD |
15687 | |
15688 | wx_cv_func_vsnprintf=no | |
15689 | ||
af15babd VZ |
15690 | fi |
15691 | rm -f conftest* | |
4f14bcd8 | 15692 | |
af15babd | 15693 | fi |
4f14bcd8 | 15694 | rm -f conftest* |
af15babd | 15695 | |
af15babd | 15696 | fi |
af15babd | 15697 | |
4f14bcd8 | 15698 | echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6 |
af15babd | 15699 | |
4f14bcd8 GD |
15700 | if test "$wx_cv_func_vsnprintf" = yes; then |
15701 | cat >> confdefs.h <<\EOF | |
15702 | #define HAVE_VSNPRINTF 1 | |
15703 | EOF | |
15704 | ||
15705 | else | |
f9bc1684 | 15706 | echo "configure: warning: unsafe function vsprintf will be used instead of vsnprintf" 1>&2 |
af15babd VZ |
15707 | fi |
15708 | ||
4f14bcd8 | 15709 | echo $ac_n "checking for vsscanf""... $ac_c" 1>&6 |
dfe8399a | 15710 | echo "configure:15711: checking for vsscanf" >&5 |
4f14bcd8 | 15711 | if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then |
af15babd VZ |
15712 | echo $ac_n "(cached) $ac_c" 1>&6 |
15713 | else | |
4f14bcd8 | 15714 | |
af15babd | 15715 | cat > conftest.$ac_ext <<EOF |
dfe8399a | 15716 | #line 15717 "configure" |
af15babd | 15717 | #include "confdefs.h" |
af15babd | 15718 | |
4f14bcd8 GD |
15719 | #include <stdio.h> |
15720 | #include <stdarg.h> | |
15721 | ||
af15babd VZ |
15722 | int main() { |
15723 | ||
4f14bcd8 GD |
15724 | int wx_test_vsscanf(const char *, ...); |
15725 | ||
15726 | wx_test_vsscanf("%d"); | |
15727 | return 0; | |
15728 | } | |
af15babd | 15729 | |
4f14bcd8 GD |
15730 | int wx_test_vsscanf(const char *fmt, ...) |
15731 | { | |
15732 | va_list argp; | |
15733 | va_start(argp, fmt); | |
15734 | vsscanf("42", fmt, argp); | |
15735 | va_end(argp); | |
15736 | ||
af15babd VZ |
15737 | ; return 0; } |
15738 | EOF | |
dfe8399a | 15739 | if { (eval echo configure:15740: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 15740 | rm -rf conftest* |
4f14bcd8 GD |
15741 | |
15742 | wx_cv_func_vsscanf=yes | |
15743 | ||
af15babd VZ |
15744 | else |
15745 | echo "configure: failed program was:" >&5 | |
15746 | cat conftest.$ac_ext >&5 | |
15747 | rm -rf conftest* | |
4f14bcd8 GD |
15748 | |
15749 | wx_cv_func_vsscanf=no | |
15750 | ||
af15babd VZ |
15751 | fi |
15752 | rm -f conftest* | |
4f14bcd8 | 15753 | |
af15babd VZ |
15754 | fi |
15755 | ||
4f14bcd8 GD |
15756 | echo "$ac_t""$wx_cv_func_vsscanf" 1>&6 |
15757 | ||
15758 | if test "$wx_cv_func_vsscanf" = yes; then | |
15759 | cat >> confdefs.h <<\EOF | |
15760 | #define HAVE_VSSCANF 1 | |
af15babd | 15761 | EOF |
4f14bcd8 | 15762 | |
af15babd | 15763 | fi |
af15babd | 15764 | |
4f14bcd8 | 15765 | if test "$TOOLKIT" != "MSW"; then |
af15babd | 15766 | |
4f14bcd8 GD |
15767 | |
15768 | ||
15769 | ac_ext=C | |
15770 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15771 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15772 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15773 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15774 | cross_compiling=$ac_cv_prog_cxx_cross | |
15775 | ||
b040e242 VS |
15776 | |
15777 | ||
15778 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
15779 | if test "${with_libiconv_prefix+set}" = set; then | |
15780 | withval="$with_libiconv_prefix" | |
15781 | ||
15782 | for dir in `echo "$withval" | tr : ' '`; do | |
15783 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
15784 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
15785 | done | |
15786 | ||
15787 | fi | |
15788 | ||
15789 | ||
15790 | echo $ac_n "checking for iconv""... $ac_c" 1>&6 | |
dfe8399a | 15791 | echo "configure:15792: checking for iconv" >&5 |
b040e242 | 15792 | if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then |
af15babd VZ |
15793 | echo $ac_n "(cached) $ac_c" 1>&6 |
15794 | else | |
4f14bcd8 | 15795 | |
b040e242 VS |
15796 | am_cv_func_iconv="no, consider installing GNU libiconv" |
15797 | am_cv_lib_iconv=no | |
4f14bcd8 | 15798 | cat > conftest.$ac_ext <<EOF |
dfe8399a | 15799 | #line 15800 "configure" |
af15babd | 15800 | #include "confdefs.h" |
b040e242 | 15801 | #include <stdlib.h> |
4f14bcd8 | 15802 | #include <iconv.h> |
af15babd | 15803 | int main() { |
b040e242 VS |
15804 | iconv_t cd = iconv_open("",""); |
15805 | iconv(cd,NULL,NULL,NULL,NULL); | |
15806 | iconv_close(cd); | |
af15babd VZ |
15807 | ; return 0; } |
15808 | EOF | |
dfe8399a | 15809 | if { (eval echo configure:15810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd | 15810 | rm -rf conftest* |
b040e242 | 15811 | am_cv_func_iconv=yes |
af15babd VZ |
15812 | else |
15813 | echo "configure: failed program was:" >&5 | |
15814 | cat conftest.$ac_ext >&5 | |
b040e242 VS |
15815 | fi |
15816 | rm -f conftest* | |
15817 | if test "$am_cv_func_iconv" != yes; then | |
15818 | am_save_LIBS="$LIBS" | |
15819 | LIBS="$LIBS -liconv" | |
15820 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 15821 | #line 15822 "configure" |
b040e242 VS |
15822 | #include "confdefs.h" |
15823 | #include <stdlib.h> | |
15824 | #include <iconv.h> | |
15825 | int main() { | |
15826 | iconv_t cd = iconv_open("",""); | |
15827 | iconv(cd,NULL,NULL,NULL,NULL); | |
15828 | iconv_close(cd); | |
15829 | ; return 0; } | |
15830 | EOF | |
dfe8399a | 15831 | if { (eval echo configure:15832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd | 15832 | rm -rf conftest* |
b040e242 VS |
15833 | am_cv_lib_iconv=yes |
15834 | am_cv_func_iconv=yes | |
15835 | else | |
15836 | echo "configure: failed program was:" >&5 | |
15837 | cat conftest.$ac_ext >&5 | |
af15babd VZ |
15838 | fi |
15839 | rm -f conftest* | |
b040e242 VS |
15840 | LIBS="$am_save_LIBS" |
15841 | fi | |
15842 | ||
15843 | fi | |
15844 | ||
15845 | echo "$ac_t""$am_cv_func_iconv" 1>&6 | |
15846 | if test "$am_cv_func_iconv" = yes; then | |
15847 | cat >> confdefs.h <<\EOF | |
15848 | #define HAVE_ICONV 1 | |
15849 | EOF | |
15850 | ||
b7043674 | 15851 | echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6 |
dfe8399a | 15852 | echo "configure:15853: checking if iconv needs const" >&5 |
b7043674 | 15853 | if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then |
b040e242 VS |
15854 | echo $ac_n "(cached) $ac_c" 1>&6 |
15855 | else | |
b7043674 | 15856 | cat > conftest.$ac_ext <<EOF |
dfe8399a | 15857 | #line 15858 "configure" |
b040e242 VS |
15858 | #include "confdefs.h" |
15859 | ||
15860 | #include <stdlib.h> | |
15861 | #include <iconv.h> | |
15862 | extern | |
15863 | #ifdef __cplusplus | |
15864 | "C" | |
15865 | #endif | |
15866 | #if defined(__STDC__) || defined(__cplusplus) | |
15867 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
15868 | #else | |
15869 | size_t iconv(); | |
15870 | #endif | |
b7043674 | 15871 | |
b040e242 | 15872 | int main() { |
af15babd | 15873 | |
b040e242 VS |
15874 | ; return 0; } |
15875 | EOF | |
dfe8399a | 15876 | if { (eval echo configure:15877: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
b040e242 | 15877 | rm -rf conftest* |
b7043674 | 15878 | wx_cv_func_iconv_const="no" |
b040e242 VS |
15879 | else |
15880 | echo "configure: failed program was:" >&5 | |
15881 | cat conftest.$ac_ext >&5 | |
15882 | rm -rf conftest* | |
b7043674 VZ |
15883 | wx_cv_func_iconv_const="yes" |
15884 | ||
b040e242 VS |
15885 | fi |
15886 | rm -f conftest* | |
b7043674 | 15887 | |
af15babd | 15888 | fi |
af15babd | 15889 | |
b7043674 VZ |
15890 | echo "$ac_t""$wx_cv_func_iconv_const" 1>&6 |
15891 | ||
15892 | iconv_const= | |
1c405bb5 | 15893 | if test "x$wx_cv_func_iconv_const" = "xyes"; then |
b7043674 VZ |
15894 | iconv_const="const" |
15895 | fi | |
15896 | ||
b040e242 | 15897 | cat >> confdefs.h <<EOF |
b7043674 | 15898 | #define ICONV_CONST $iconv_const |
b040e242 VS |
15899 | EOF |
15900 | ||
15901 | fi | |
15902 | LIBICONV= | |
15903 | if test "$am_cv_lib_iconv" = yes; then | |
15904 | LIBICONV="-liconv" | |
15905 | fi | |
15906 | ||
15907 | ||
15908 | LIBS="$LIBICONV $LIBS" | |
4f14bcd8 GD |
15909 | ac_ext=c |
15910 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15911 | ac_cpp='$CPP $CPPFLAGS' | |
15912 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15913 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15914 | cross_compiling=$ac_cv_prog_cc_cross | |
af15babd | 15915 | |
af15babd | 15916 | |
4f14bcd8 GD |
15917 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
15918 | for ac_func in sigaction | |
af15babd VZ |
15919 | do |
15920 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
dfe8399a | 15921 | echo "configure:15922: checking for $ac_func" >&5 |
af15babd VZ |
15922 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15923 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15924 | else | |
15925 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 15926 | #line 15927 "configure" |
af15babd VZ |
15927 | #include "confdefs.h" |
15928 | /* System header to define __stub macros and hopefully few prototypes, | |
15929 | which can conflict with char $ac_func(); below. */ | |
15930 | #include <assert.h> | |
15931 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15932 | /* We use char because int might match the return type of a gcc2 | |
15933 | builtin and then its argument prototype would still apply. */ | |
15934 | char $ac_func(); | |
15935 | ||
15936 | int main() { | |
15937 | ||
15938 | /* The GNU C library defines this for functions which it implements | |
15939 | to always fail with ENOSYS. Some functions are actually named | |
15940 | something starting with __ and the normal name is an alias. */ | |
15941 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15942 | choke me | |
15943 | #else | |
15944 | $ac_func(); | |
15945 | #endif | |
15946 | ||
15947 | ; return 0; } | |
15948 | EOF | |
dfe8399a | 15949 | if { (eval echo configure:15950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
15950 | rm -rf conftest* |
15951 | eval "ac_cv_func_$ac_func=yes" | |
15952 | else | |
15953 | echo "configure: failed program was:" >&5 | |
15954 | cat conftest.$ac_ext >&5 | |
15955 | rm -rf conftest* | |
15956 | eval "ac_cv_func_$ac_func=no" | |
15957 | fi | |
15958 | rm -f conftest* | |
15959 | fi | |
15960 | ||
15961 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
15962 | echo "$ac_t""yes" 1>&6 | |
15963 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15964 | cat >> confdefs.h <<EOF | |
15965 | #define $ac_tr_func 1 | |
15966 | EOF | |
4f14bcd8 | 15967 | |
af15babd VZ |
15968 | else |
15969 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 GD |
15970 | fi |
15971 | done | |
15972 | ||
15973 | ||
15974 | if test "$ac_cv_func_sigaction" = "no"; then | |
15975 | echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2 | |
15976 | wxUSE_ON_FATAL_EXCEPTION=no | |
15977 | fi | |
15978 | ||
15979 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
15980 | ||
15981 | ac_ext=C | |
15982 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15983 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15984 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15985 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15986 | cross_compiling=$ac_cv_prog_cxx_cross | |
15987 | ||
15988 | ||
15989 | echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6 | |
dfe8399a | 15990 | echo "configure:15991: checking for sa_handler type" >&5 |
4f14bcd8 | 15991 | if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then |
af15babd VZ |
15992 | echo $ac_n "(cached) $ac_c" 1>&6 |
15993 | else | |
4f14bcd8 GD |
15994 | |
15995 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 15996 | #line 15997 "configure" |
af15babd | 15997 | #include "confdefs.h" |
4f14bcd8 | 15998 | #include <signal.h> |
af15babd | 15999 | int main() { |
4f14bcd8 GD |
16000 | |
16001 | extern void testSigHandler(int); | |
16002 | ||
16003 | struct sigaction sa; | |
16004 | sa.sa_handler = testSigHandler; | |
16005 | ||
af15babd VZ |
16006 | ; return 0; } |
16007 | EOF | |
dfe8399a | 16008 | if { (eval echo configure:16009: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 16009 | rm -rf conftest* |
4f14bcd8 GD |
16010 | |
16011 | wx_cv_type_sa_handler=int | |
16012 | ||
af15babd VZ |
16013 | else |
16014 | echo "configure: failed program was:" >&5 | |
16015 | cat conftest.$ac_ext >&5 | |
16016 | rm -rf conftest* | |
4f14bcd8 GD |
16017 | |
16018 | wx_cv_type_sa_handler=void | |
16019 | ||
af15babd VZ |
16020 | fi |
16021 | rm -f conftest* | |
4f14bcd8 GD |
16022 | |
16023 | fi | |
16024 | ||
16025 | echo "$ac_t""$wx_cv_type_sa_handler" 1>&6 | |
16026 | ||
16027 | ac_ext=c | |
16028 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
16029 | ac_cpp='$CPP $CPPFLAGS' | |
16030 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16031 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16032 | cross_compiling=$ac_cv_prog_cc_cross | |
af15babd | 16033 | |
4f14bcd8 GD |
16034 | |
16035 | cat >> confdefs.h <<EOF | |
16036 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
af15babd VZ |
16037 | EOF |
16038 | ||
4f14bcd8 GD |
16039 | fi |
16040 | fi | |
af15babd | 16041 | |
4f14bcd8 | 16042 | for ac_func in vfork |
af15babd VZ |
16043 | do |
16044 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
dfe8399a | 16045 | echo "configure:16046: checking for $ac_func" >&5 |
af15babd VZ |
16046 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16047 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16048 | else | |
16049 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 16050 | #line 16051 "configure" |
af15babd VZ |
16051 | #include "confdefs.h" |
16052 | /* System header to define __stub macros and hopefully few prototypes, | |
16053 | which can conflict with char $ac_func(); below. */ | |
16054 | #include <assert.h> | |
16055 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16056 | /* We use char because int might match the return type of a gcc2 | |
16057 | builtin and then its argument prototype would still apply. */ | |
16058 | char $ac_func(); | |
16059 | ||
16060 | int main() { | |
16061 | ||
16062 | /* The GNU C library defines this for functions which it implements | |
16063 | to always fail with ENOSYS. Some functions are actually named | |
16064 | something starting with __ and the normal name is an alias. */ | |
16065 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16066 | choke me | |
16067 | #else | |
16068 | $ac_func(); | |
16069 | #endif | |
16070 | ||
16071 | ; return 0; } | |
16072 | EOF | |
dfe8399a | 16073 | if { (eval echo configure:16074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
16074 | rm -rf conftest* |
16075 | eval "ac_cv_func_$ac_func=yes" | |
16076 | else | |
16077 | echo "configure: failed program was:" >&5 | |
16078 | cat conftest.$ac_ext >&5 | |
16079 | rm -rf conftest* | |
16080 | eval "ac_cv_func_$ac_func=no" | |
16081 | fi | |
16082 | rm -f conftest* | |
16083 | fi | |
16084 | ||
16085 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16086 | echo "$ac_t""yes" 1>&6 | |
16087 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16088 | cat >> confdefs.h <<EOF | |
16089 | #define $ac_tr_func 1 | |
16090 | EOF | |
4f14bcd8 | 16091 | |
af15babd VZ |
16092 | else |
16093 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
16094 | fi |
16095 | done | |
16096 | ||
af15babd | 16097 | |
ade35f11 VZ |
16098 | for ac_func in mkstemp mktemp |
16099 | do | |
16100 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
dfe8399a | 16101 | echo "configure:16102: checking for $ac_func" >&5 |
ade35f11 VZ |
16102 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16103 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16104 | else | |
16105 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 16106 | #line 16107 "configure" |
ade35f11 VZ |
16107 | #include "confdefs.h" |
16108 | /* System header to define __stub macros and hopefully few prototypes, | |
16109 | which can conflict with char $ac_func(); below. */ | |
16110 | #include <assert.h> | |
16111 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16112 | /* We use char because int might match the return type of a gcc2 | |
16113 | builtin and then its argument prototype would still apply. */ | |
16114 | char $ac_func(); | |
16115 | ||
16116 | int main() { | |
16117 | ||
16118 | /* The GNU C library defines this for functions which it implements | |
16119 | to always fail with ENOSYS. Some functions are actually named | |
16120 | something starting with __ and the normal name is an alias. */ | |
16121 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16122 | choke me | |
16123 | #else | |
16124 | $ac_func(); | |
16125 | #endif | |
16126 | ||
16127 | ; return 0; } | |
16128 | EOF | |
dfe8399a | 16129 | if { (eval echo configure:16130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ade35f11 VZ |
16130 | rm -rf conftest* |
16131 | eval "ac_cv_func_$ac_func=yes" | |
16132 | else | |
16133 | echo "configure: failed program was:" >&5 | |
16134 | cat conftest.$ac_ext >&5 | |
16135 | rm -rf conftest* | |
16136 | eval "ac_cv_func_$ac_func=no" | |
16137 | fi | |
16138 | rm -f conftest* | |
16139 | fi | |
16140 | ||
16141 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16142 | echo "$ac_t""yes" 1>&6 | |
16143 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16144 | cat >> confdefs.h <<EOF | |
16145 | #define $ac_tr_func 1 | |
16146 | EOF | |
16147 | break | |
16148 | else | |
16149 | echo "$ac_t""no" 1>&6 | |
16150 | fi | |
16151 | done | |
16152 | ||
16153 | ||
4f14bcd8 | 16154 | echo $ac_n "checking for statfs""... $ac_c" 1>&6 |
dfe8399a | 16155 | echo "configure:16156: checking for statfs" >&5 |
4f14bcd8 GD |
16156 | if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then |
16157 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16158 | else | |
16159 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 16160 | #line 16161 "configure" |
4f14bcd8 GD |
16161 | #include "confdefs.h" |
16162 | ||
16163 | #if defined(__BSD__) | |
16164 | #include <sys/param.h> | |
16165 | #include <sys/mount.h> | |
16166 | #else | |
16167 | #include <sys/vfs.h> | |
16168 | #endif | |
16169 | ||
16170 | int main() { | |
16171 | ||
16172 | long l; | |
16173 | struct statfs fs; | |
16174 | statfs("/", &fs); | |
16175 | l = fs.f_bsize; | |
16176 | l += fs.f_blocks; | |
16177 | l += fs.f_bavail; | |
16178 | ||
16179 | ; return 0; } | |
16180 | EOF | |
dfe8399a | 16181 | if { (eval echo configure:16182: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
16182 | rm -rf conftest* |
16183 | ||
16184 | wx_cv_func_statfs=yes | |
16185 | ||
16186 | else | |
16187 | echo "configure: failed program was:" >&5 | |
16188 | cat conftest.$ac_ext >&5 | |
16189 | rm -rf conftest* | |
16190 | ||
16191 | wx_cv_func_statfs=no | |
af15babd VZ |
16192 | |
16193 | ||
16194 | fi | |
4f14bcd8 | 16195 | rm -f conftest* |
af15babd VZ |
16196 | |
16197 | fi | |
16198 | ||
4f14bcd8 GD |
16199 | echo "$ac_t""$wx_cv_func_statfs" 1>&6 |
16200 | ||
16201 | if test "$wx_cv_func_statfs" = "yes"; then | |
16202 | cat >> confdefs.h <<\EOF | |
16203 | #define HAVE_STATFS 1 | |
16204 | EOF | |
16205 | ||
16206 | else | |
16207 | echo $ac_n "checking for statvfs""... $ac_c" 1>&6 | |
dfe8399a | 16208 | echo "configure:16209: checking for statvfs" >&5 |
4f14bcd8 | 16209 | if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then |
af15babd VZ |
16210 | echo $ac_n "(cached) $ac_c" 1>&6 |
16211 | else | |
16212 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 16213 | #line 16214 "configure" |
af15babd | 16214 | #include "confdefs.h" |
af15babd | 16215 | |
4f14bcd8 GD |
16216 | #include <sys/statvfs.h> |
16217 | ||
af15babd VZ |
16218 | int main() { |
16219 | ||
4f14bcd8 GD |
16220 | long l; |
16221 | struct statvfs fs; | |
16222 | statvfs("/", &fs); | |
16223 | l = fs.f_bsize; | |
16224 | l += fs.f_blocks; | |
16225 | l += fs.f_bavail; | |
16226 | ||
af15babd VZ |
16227 | ; return 0; } |
16228 | EOF | |
dfe8399a | 16229 | if { (eval echo configure:16230: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 16230 | rm -rf conftest* |
4f14bcd8 GD |
16231 | |
16232 | wx_cv_func_statvfs=yes | |
16233 | ||
af15babd VZ |
16234 | else |
16235 | echo "configure: failed program was:" >&5 | |
16236 | cat conftest.$ac_ext >&5 | |
16237 | rm -rf conftest* | |
4f14bcd8 GD |
16238 | |
16239 | wx_cv_func_statvfs=no | |
16240 | ||
16241 | ||
af15babd VZ |
16242 | fi |
16243 | rm -f conftest* | |
4f14bcd8 | 16244 | |
af15babd VZ |
16245 | fi |
16246 | ||
4f14bcd8 | 16247 | echo "$ac_t""$wx_cv_func_statvfs" 1>&6 |
af15babd | 16248 | |
4f14bcd8 GD |
16249 | if test "$wx_cv_func_statvfs" = "yes"; then |
16250 | cat >> confdefs.h <<\EOF | |
16251 | #define HAVE_STATVFS 1 | |
16252 | EOF | |
af15babd | 16253 | |
4f14bcd8 GD |
16254 | else |
16255 | echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2 | |
16256 | fi | |
16257 | fi | |
af15babd | 16258 | |
4f14bcd8 GD |
16259 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
16260 | for ac_func in fcntl flock | |
af15babd VZ |
16261 | do |
16262 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
dfe8399a | 16263 | echo "configure:16264: checking for $ac_func" >&5 |
af15babd VZ |
16264 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16265 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16266 | else | |
16267 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 16268 | #line 16269 "configure" |
af15babd VZ |
16269 | #include "confdefs.h" |
16270 | /* System header to define __stub macros and hopefully few prototypes, | |
16271 | which can conflict with char $ac_func(); below. */ | |
16272 | #include <assert.h> | |
16273 | /* Override any gcc2 internal prototype to avoid an error. */ | |
af15babd VZ |
16274 | /* We use char because int might match the return type of a gcc2 |
16275 | builtin and then its argument prototype would still apply. */ | |
16276 | char $ac_func(); | |
16277 | ||
16278 | int main() { | |
16279 | ||
16280 | /* The GNU C library defines this for functions which it implements | |
16281 | to always fail with ENOSYS. Some functions are actually named | |
16282 | something starting with __ and the normal name is an alias. */ | |
16283 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16284 | choke me | |
16285 | #else | |
16286 | $ac_func(); | |
16287 | #endif | |
16288 | ||
16289 | ; return 0; } | |
16290 | EOF | |
dfe8399a | 16291 | if { (eval echo configure:16292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
16292 | rm -rf conftest* |
16293 | eval "ac_cv_func_$ac_func=yes" | |
16294 | else | |
16295 | echo "configure: failed program was:" >&5 | |
16296 | cat conftest.$ac_ext >&5 | |
16297 | rm -rf conftest* | |
16298 | eval "ac_cv_func_$ac_func=no" | |
16299 | fi | |
16300 | rm -f conftest* | |
16301 | fi | |
16302 | ||
16303 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16304 | echo "$ac_t""yes" 1>&6 | |
16305 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16306 | cat >> confdefs.h <<EOF | |
16307 | #define $ac_tr_func 1 | |
16308 | EOF | |
4f14bcd8 | 16309 | break |
af15babd VZ |
16310 | else |
16311 | echo "$ac_t""no" 1>&6 | |
16312 | fi | |
16313 | done | |
16314 | ||
16315 | ||
4f14bcd8 GD |
16316 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then |
16317 | echo "configure: warning: wxSingleInstanceChecker not available" 1>&2 | |
16318 | wxUSE_SNGLINST_CHECKER=no | |
16319 | fi | |
16320 | fi | |
af15babd | 16321 | |
4f14bcd8 | 16322 | for ac_func in timegm |
af15babd VZ |
16323 | do |
16324 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
dfe8399a | 16325 | echo "configure:16326: checking for $ac_func" >&5 |
af15babd VZ |
16326 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16327 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16328 | else | |
16329 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 16330 | #line 16331 "configure" |
af15babd VZ |
16331 | #include "confdefs.h" |
16332 | /* System header to define __stub macros and hopefully few prototypes, | |
16333 | which can conflict with char $ac_func(); below. */ | |
16334 | #include <assert.h> | |
16335 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16336 | /* We use char because int might match the return type of a gcc2 | |
16337 | builtin and then its argument prototype would still apply. */ | |
16338 | char $ac_func(); | |
16339 | ||
698dcdb6 | 16340 | int main() { |
698dcdb6 | 16341 | |
af15babd VZ |
16342 | /* The GNU C library defines this for functions which it implements |
16343 | to always fail with ENOSYS. Some functions are actually named | |
16344 | something starting with __ and the normal name is an alias. */ | |
16345 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16346 | choke me | |
16347 | #else | |
16348 | $ac_func(); | |
16349 | #endif | |
16350 | ||
698dcdb6 VZ |
16351 | ; return 0; } |
16352 | EOF | |
dfe8399a | 16353 | if { (eval echo configure:16354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16354 | rm -rf conftest* |
af15babd | 16355 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
16356 | else |
16357 | echo "configure: failed program was:" >&5 | |
16358 | cat conftest.$ac_ext >&5 | |
16359 | rm -rf conftest* | |
af15babd | 16360 | eval "ac_cv_func_$ac_func=no" |
1e487827 | 16361 | fi |
9952adac | 16362 | rm -f conftest* |
af15babd | 16363 | fi |
703e0a69 | 16364 | |
af15babd VZ |
16365 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16366 | echo "$ac_t""yes" 1>&6 | |
16367 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
4f14bcd8 GD |
16368 | cat >> confdefs.h <<EOF |
16369 | #define $ac_tr_func 1 | |
16370 | EOF | |
16371 | ||
16372 | else | |
16373 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
16374 | fi |
16375 | done | |
16376 | ||
16377 | ||
4f14bcd8 | 16378 | for ac_func in putenv setenv |
10f2d63a | 16379 | do |
698dcdb6 | 16380 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
dfe8399a | 16381 | echo "configure:16382: checking for $ac_func" >&5 |
698dcdb6 VZ |
16382 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16383 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16384 | else | |
16385 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 16386 | #line 16387 "configure" |
af15babd VZ |
16387 | #include "confdefs.h" |
16388 | /* System header to define __stub macros and hopefully few prototypes, | |
16389 | which can conflict with char $ac_func(); below. */ | |
16390 | #include <assert.h> | |
16391 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16392 | /* We use char because int might match the return type of a gcc2 | |
16393 | builtin and then its argument prototype would still apply. */ | |
16394 | char $ac_func(); | |
16395 | ||
16396 | int main() { | |
16397 | ||
16398 | /* The GNU C library defines this for functions which it implements | |
16399 | to always fail with ENOSYS. Some functions are actually named | |
16400 | something starting with __ and the normal name is an alias. */ | |
16401 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16402 | choke me | |
16403 | #else | |
16404 | $ac_func(); | |
16405 | #endif | |
16406 | ||
16407 | ; return 0; } | |
16408 | EOF | |
dfe8399a | 16409 | if { (eval echo configure:16410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
16410 | rm -rf conftest* |
16411 | eval "ac_cv_func_$ac_func=yes" | |
16412 | else | |
16413 | echo "configure: failed program was:" >&5 | |
16414 | cat conftest.$ac_ext >&5 | |
16415 | rm -rf conftest* | |
16416 | eval "ac_cv_func_$ac_func=no" | |
16417 | fi | |
16418 | rm -f conftest* | |
16419 | fi | |
16420 | ||
16421 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16422 | echo "$ac_t""yes" 1>&6 | |
16423 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16424 | cat >> confdefs.h <<EOF | |
16425 | #define $ac_tr_func 1 | |
16426 | EOF | |
4f14bcd8 | 16427 | break |
af15babd VZ |
16428 | else |
16429 | echo "$ac_t""no" 1>&6 | |
16430 | fi | |
af15babd VZ |
16431 | done |
16432 | ||
16433 | ||
4f14bcd8 GD |
16434 | HAVE_SOME_SLEEP_FUNC=0 |
16435 | if test "$USE_BEOS" = 1; then | |
16436 | cat >> confdefs.h <<\EOF | |
16437 | #define HAVE_SLEEP 1 | |
af15babd VZ |
16438 | EOF |
16439 | ||
4f14bcd8 | 16440 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
16441 | fi |
16442 | ||
4f14bcd8 GD |
16443 | if test "$USE_DARWIN" = 1; then |
16444 | cat >> confdefs.h <<\EOF | |
16445 | #define HAVE_USLEEP 1 | |
af15babd | 16446 | EOF |
10f2d63a | 16447 | |
4f14bcd8 | 16448 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
16449 | fi |
16450 | ||
4f14bcd8 GD |
16451 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
16452 | POSIX4_LINK= | |
16453 | for ac_func in nanosleep | |
16454 | do | |
16455 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
dfe8399a | 16456 | echo "configure:16457: checking for $ac_func" >&5 |
4f14bcd8 | 16457 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 | 16458 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 16459 | else |
4f14bcd8 | 16460 | cat > conftest.$ac_ext <<EOF |
dfe8399a | 16461 | #line 16462 "configure" |
10f2d63a | 16462 | #include "confdefs.h" |
4f14bcd8 GD |
16463 | /* System header to define __stub macros and hopefully few prototypes, |
16464 | which can conflict with char $ac_func(); below. */ | |
16465 | #include <assert.h> | |
10f2d63a VZ |
16466 | /* Override any gcc2 internal prototype to avoid an error. */ |
16467 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16468 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16469 | char $ac_func(); |
698dcdb6 VZ |
16470 | |
16471 | int main() { | |
4f14bcd8 GD |
16472 | |
16473 | /* The GNU C library defines this for functions which it implements | |
16474 | to always fail with ENOSYS. Some functions are actually named | |
16475 | something starting with __ and the normal name is an alias. */ | |
16476 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16477 | choke me | |
16478 | #else | |
16479 | $ac_func(); | |
16480 | #endif | |
16481 | ||
698dcdb6 VZ |
16482 | ; return 0; } |
16483 | EOF | |
dfe8399a | 16484 | if { (eval echo configure:16485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16485 | rm -rf conftest* |
4f14bcd8 | 16486 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
16487 | else |
16488 | echo "configure: failed program was:" >&5 | |
16489 | cat conftest.$ac_ext >&5 | |
16490 | rm -rf conftest* | |
4f14bcd8 | 16491 | eval "ac_cv_func_$ac_func=no" |
698dcdb6 VZ |
16492 | fi |
16493 | rm -f conftest* | |
698dcdb6 | 16494 | fi |
4f14bcd8 GD |
16495 | |
16496 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 16497 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
16498 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
16499 | cat >> confdefs.h <<EOF | |
16500 | #define $ac_tr_func 1 | |
16501 | EOF | |
16502 | cat >> confdefs.h <<\EOF | |
16503 | #define HAVE_NANOSLEEP 1 | |
16504 | EOF | |
16505 | ||
10f2d63a | 16506 | else |
698dcdb6 | 16507 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 16508 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 |
dfe8399a | 16509 | echo "configure:16510: checking for nanosleep in -lposix4" >&5 |
4f14bcd8 | 16510 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
16511 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
16512 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 16513 | else |
698dcdb6 | 16514 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 16515 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 16516 | cat > conftest.$ac_ext <<EOF |
dfe8399a | 16517 | #line 16518 "configure" |
10f2d63a VZ |
16518 | #include "confdefs.h" |
16519 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16520 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16521 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16522 | char nanosleep(); |
698dcdb6 VZ |
16523 | |
16524 | int main() { | |
4f14bcd8 | 16525 | nanosleep() |
698dcdb6 VZ |
16526 | ; return 0; } |
16527 | EOF | |
dfe8399a | 16528 | if { (eval echo configure:16529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16529 | rm -rf conftest* |
16530 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16531 | else | |
16532 | echo "configure: failed program was:" >&5 | |
16533 | cat conftest.$ac_ext >&5 | |
16534 | rm -rf conftest* | |
16535 | eval "ac_cv_lib_$ac_lib_var=no" | |
16536 | fi | |
16537 | rm -f conftest* | |
16538 | LIBS="$ac_save_LIBS" | |
10f2d63a | 16539 | |
698dcdb6 VZ |
16540 | fi |
16541 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16542 | echo "$ac_t""yes" 1>&6 | |
16543 | ||
4f14bcd8 GD |
16544 | cat >> confdefs.h <<\EOF |
16545 | #define HAVE_NANOSLEEP 1 | |
16546 | EOF | |
16547 | ||
3d63bc3a | 16548 | POSIX4_LINK=" -lposix4" |
4f14bcd8 | 16549 | |
10f2d63a | 16550 | else |
698dcdb6 | 16551 | echo "$ac_t""no" 1>&6 |
10f2d63a | 16552 | |
4f14bcd8 GD |
16553 | for ac_func in usleep |
16554 | do | |
16555 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
dfe8399a | 16556 | echo "configure:16557: checking for $ac_func" >&5 |
4f14bcd8 | 16557 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 | 16558 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 16559 | else |
698dcdb6 | 16560 | cat > conftest.$ac_ext <<EOF |
dfe8399a | 16561 | #line 16562 "configure" |
10f2d63a | 16562 | #include "confdefs.h" |
4f14bcd8 GD |
16563 | /* System header to define __stub macros and hopefully few prototypes, |
16564 | which can conflict with char $ac_func(); below. */ | |
16565 | #include <assert.h> | |
16566 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16567 | /* We use char because int might match the return type of a gcc2 | |
16568 | builtin and then its argument prototype would still apply. */ | |
16569 | char $ac_func(); | |
16570 | ||
16571 | int main() { | |
16572 | ||
16573 | /* The GNU C library defines this for functions which it implements | |
16574 | to always fail with ENOSYS. Some functions are actually named | |
16575 | something starting with __ and the normal name is an alias. */ | |
16576 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16577 | choke me | |
16578 | #else | |
16579 | $ac_func(); | |
16580 | #endif | |
16581 | ||
16582 | ; return 0; } | |
698dcdb6 | 16583 | EOF |
dfe8399a | 16584 | if { (eval echo configure:16585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16585 | rm -rf conftest* |
4f14bcd8 | 16586 | eval "ac_cv_func_$ac_func=yes" |
1e487827 | 16587 | else |
698dcdb6 | 16588 | echo "configure: failed program was:" >&5 |
10f2d63a | 16589 | cat conftest.$ac_ext >&5 |
698dcdb6 | 16590 | rm -rf conftest* |
4f14bcd8 | 16591 | eval "ac_cv_func_$ac_func=no" |
10f2d63a | 16592 | fi |
698dcdb6 | 16593 | rm -f conftest* |
10f2d63a | 16594 | fi |
4f14bcd8 GD |
16595 | |
16596 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 16597 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
16598 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
16599 | cat >> confdefs.h <<EOF | |
16600 | #define $ac_tr_func 1 | |
16601 | EOF | |
16602 | cat >> confdefs.h <<\EOF | |
16603 | #define HAVE_USLEEP 1 | |
16604 | EOF | |
16605 | ||
698dcdb6 VZ |
16606 | else |
16607 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 GD |
16608 | echo "configure: warning: wxSleep() function will not work" 1>&2 |
16609 | ||
10f2d63a | 16610 | fi |
4f14bcd8 | 16611 | done |
10f2d63a | 16612 | |
4f14bcd8 | 16613 | |
698dcdb6 | 16614 | |
6232543b | 16615 | fi |
10f2d63a | 16616 | |
698dcdb6 | 16617 | |
4f14bcd8 | 16618 | |
1e487827 | 16619 | fi |
4f14bcd8 | 16620 | done |
703e0a69 | 16621 | |
10f2d63a VZ |
16622 | fi |
16623 | ||
4f14bcd8 | 16624 | for ac_func in uname gethostname |
70846f0a | 16625 | do |
698dcdb6 | 16626 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
dfe8399a | 16627 | echo "configure:16628: checking for $ac_func" >&5 |
698dcdb6 VZ |
16628 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16629 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16630 | else | |
16631 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 16632 | #line 16633 "configure" |
70846f0a VZ |
16633 | #include "confdefs.h" |
16634 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16635 | which can conflict with char $ac_func(); below. */ |
70846f0a VZ |
16636 | #include <assert.h> |
16637 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16638 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16639 | builtin and then its argument prototype would still apply. */ |
16640 | char $ac_func(); | |
16641 | ||
16642 | int main() { | |
70846f0a VZ |
16643 | |
16644 | /* The GNU C library defines this for functions which it implements | |
16645 | to always fail with ENOSYS. Some functions are actually named | |
16646 | something starting with __ and the normal name is an alias. */ | |
16647 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16648 | choke me | |
16649 | #else | |
698dcdb6 | 16650 | $ac_func(); |
70846f0a VZ |
16651 | #endif |
16652 | ||
698dcdb6 | 16653 | ; return 0; } |
70846f0a | 16654 | EOF |
dfe8399a | 16655 | if { (eval echo configure:16656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16656 | rm -rf conftest* |
16657 | eval "ac_cv_func_$ac_func=yes" | |
16658 | else | |
16659 | echo "configure: failed program was:" >&5 | |
16660 | cat conftest.$ac_ext >&5 | |
16661 | rm -rf conftest* | |
16662 | eval "ac_cv_func_$ac_func=no" | |
16663 | fi | |
16664 | rm -f conftest* | |
16665 | fi | |
70846f0a | 16666 | |
698dcdb6 VZ |
16667 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16668 | echo "$ac_t""yes" 1>&6 | |
16669 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16670 | cat >> confdefs.h <<EOF | |
16671 | #define $ac_tr_func 1 | |
16672 | EOF | |
4f14bcd8 | 16673 | break |
698dcdb6 VZ |
16674 | else |
16675 | echo "$ac_t""no" 1>&6 | |
70846f0a VZ |
16676 | fi |
16677 | done | |
16678 | ||
698dcdb6 | 16679 | |
4f14bcd8 GD |
16680 | |
16681 | ac_ext=C | |
16682 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
16683 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16684 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16685 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16686 | cross_compiling=$ac_cv_prog_cxx_cross | |
16687 | ||
16688 | ||
16689 | for ac_func in strtok_r | |
10f2d63a | 16690 | do |
4f14bcd8 | 16691 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
dfe8399a | 16692 | echo "configure:16693: checking for $ac_func" >&5 |
4f14bcd8 | 16693 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 VZ |
16694 | echo $ac_n "(cached) $ac_c" 1>&6 |
16695 | else | |
16696 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 16697 | #line 16698 "configure" |
10f2d63a | 16698 | #include "confdefs.h" |
4f14bcd8 GD |
16699 | /* System header to define __stub macros and hopefully few prototypes, |
16700 | which can conflict with char $ac_func(); below. */ | |
16701 | #include <assert.h> | |
16702 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16703 | #ifdef __cplusplus | |
16704 | extern "C" | |
16705 | #endif | |
16706 | /* We use char because int might match the return type of a gcc2 | |
16707 | builtin and then its argument prototype would still apply. */ | |
16708 | char $ac_func(); | |
16709 | ||
16710 | int main() { | |
16711 | ||
16712 | /* The GNU C library defines this for functions which it implements | |
16713 | to always fail with ENOSYS. Some functions are actually named | |
16714 | something starting with __ and the normal name is an alias. */ | |
16715 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16716 | choke me | |
16717 | #else | |
16718 | $ac_func(); | |
16719 | #endif | |
16720 | ||
16721 | ; return 0; } | |
698dcdb6 | 16722 | EOF |
dfe8399a | 16723 | if { (eval echo configure:16724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16724 | rm -rf conftest* |
4f14bcd8 | 16725 | eval "ac_cv_func_$ac_func=yes" |
1e487827 | 16726 | else |
698dcdb6 | 16727 | echo "configure: failed program was:" >&5 |
10f2d63a | 16728 | cat conftest.$ac_ext >&5 |
698dcdb6 | 16729 | rm -rf conftest* |
4f14bcd8 | 16730 | eval "ac_cv_func_$ac_func=no" |
10f2d63a | 16731 | fi |
698dcdb6 | 16732 | rm -f conftest* |
10f2d63a | 16733 | fi |
4f14bcd8 GD |
16734 | |
16735 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 16736 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 | 16737 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
698dcdb6 | 16738 | cat >> confdefs.h <<EOF |
4f14bcd8 | 16739 | #define $ac_tr_func 1 |
10f2d63a | 16740 | EOF |
698dcdb6 VZ |
16741 | |
16742 | else | |
16743 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
16744 | fi |
16745 | done | |
16746 | ||
698dcdb6 | 16747 | |
4f14bcd8 GD |
16748 | ac_ext=c |
16749 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
16750 | ac_cpp='$CPP $CPPFLAGS' | |
16751 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16752 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16753 | cross_compiling=$ac_cv_prog_cc_cross | |
16754 | ||
16755 | ||
16756 | INET_LINK= | |
16757 | for ac_func in inet_addr | |
16758 | do | |
16759 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
dfe8399a | 16760 | echo "configure:16761: checking for $ac_func" >&5 |
4f14bcd8 | 16761 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 | 16762 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 16763 | else |
4f14bcd8 | 16764 | cat > conftest.$ac_ext <<EOF |
dfe8399a | 16765 | #line 16766 "configure" |
10f2d63a | 16766 | #include "confdefs.h" |
4f14bcd8 GD |
16767 | /* System header to define __stub macros and hopefully few prototypes, |
16768 | which can conflict with char $ac_func(); below. */ | |
16769 | #include <assert.h> | |
10f2d63a VZ |
16770 | /* Override any gcc2 internal prototype to avoid an error. */ |
16771 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16772 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16773 | char $ac_func(); |
698dcdb6 VZ |
16774 | |
16775 | int main() { | |
4f14bcd8 GD |
16776 | |
16777 | /* The GNU C library defines this for functions which it implements | |
16778 | to always fail with ENOSYS. Some functions are actually named | |
16779 | something starting with __ and the normal name is an alias. */ | |
16780 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16781 | choke me | |
16782 | #else | |
16783 | $ac_func(); | |
16784 | #endif | |
16785 | ||
698dcdb6 VZ |
16786 | ; return 0; } |
16787 | EOF | |
dfe8399a | 16788 | if { (eval echo configure:16789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16789 | rm -rf conftest* |
4f14bcd8 | 16790 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
16791 | else |
16792 | echo "configure: failed program was:" >&5 | |
16793 | cat conftest.$ac_ext >&5 | |
16794 | rm -rf conftest* | |
4f14bcd8 | 16795 | eval "ac_cv_func_$ac_func=no" |
698dcdb6 VZ |
16796 | fi |
16797 | rm -f conftest* | |
698dcdb6 | 16798 | fi |
4f14bcd8 GD |
16799 | |
16800 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 16801 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
16802 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
16803 | cat >> confdefs.h <<EOF | |
16804 | #define $ac_tr_func 1 | |
16805 | EOF | |
16806 | cat >> confdefs.h <<\EOF | |
16807 | #define HAVE_INET_ADDR 1 | |
10f2d63a VZ |
16808 | EOF |
16809 | ||
16810 | else | |
698dcdb6 | 16811 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 16812 | echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6 |
dfe8399a | 16813 | echo "configure:16814: checking for inet_addr in -lnsl" >&5 |
4f14bcd8 | 16814 | ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
16815 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
16816 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 16817 | else |
698dcdb6 | 16818 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 16819 | LIBS="-lnsl $LIBS" |
698dcdb6 | 16820 | cat > conftest.$ac_ext <<EOF |
dfe8399a | 16821 | #line 16822 "configure" |
10f2d63a VZ |
16822 | #include "confdefs.h" |
16823 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16824 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16825 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16826 | char inet_addr(); |
698dcdb6 VZ |
16827 | |
16828 | int main() { | |
4f14bcd8 | 16829 | inet_addr() |
698dcdb6 VZ |
16830 | ; return 0; } |
16831 | EOF | |
dfe8399a | 16832 | if { (eval echo configure:16833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16833 | rm -rf conftest* |
16834 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16835 | else | |
16836 | echo "configure: failed program was:" >&5 | |
16837 | cat conftest.$ac_ext >&5 | |
16838 | rm -rf conftest* | |
16839 | eval "ac_cv_lib_$ac_lib_var=no" | |
16840 | fi | |
16841 | rm -f conftest* | |
16842 | LIBS="$ac_save_LIBS" | |
16843 | ||
16844 | fi | |
16845 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16846 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 16847 | INET_LINK="nsl" |
10f2d63a | 16848 | else |
698dcdb6 | 16849 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 16850 | echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6 |
dfe8399a | 16851 | echo "configure:16852: checking for inet_addr in -lresolv" >&5 |
4f14bcd8 | 16852 | ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
16853 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
16854 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 16855 | else |
698dcdb6 | 16856 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 16857 | LIBS="-lresolv $LIBS" |
698dcdb6 | 16858 | cat > conftest.$ac_ext <<EOF |
dfe8399a | 16859 | #line 16860 "configure" |
10f2d63a VZ |
16860 | #include "confdefs.h" |
16861 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16862 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16863 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16864 | char inet_addr(); |
698dcdb6 VZ |
16865 | |
16866 | int main() { | |
4f14bcd8 | 16867 | inet_addr() |
698dcdb6 VZ |
16868 | ; return 0; } |
16869 | EOF | |
dfe8399a | 16870 | if { (eval echo configure:16871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16871 | rm -rf conftest* |
16872 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16873 | else | |
16874 | echo "configure: failed program was:" >&5 | |
16875 | cat conftest.$ac_ext >&5 | |
16876 | rm -rf conftest* | |
16877 | eval "ac_cv_lib_$ac_lib_var=no" | |
16878 | fi | |
16879 | rm -f conftest* | |
16880 | LIBS="$ac_save_LIBS" | |
16881 | ||
16882 | fi | |
16883 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16884 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 16885 | INET_LINK="resolv" |
698dcdb6 | 16886 | else |
4f14bcd8 | 16887 | echo "$ac_t""no" 1>&6 |
3c011993 | 16888 | echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6 |
dfe8399a | 16889 | echo "configure:16890: checking for inet_addr in -lsocket" >&5 |
3c011993 VZ |
16890 | ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'` |
16891 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16892 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16893 | else | |
16894 | ac_save_LIBS="$LIBS" | |
16895 | LIBS="-lsocket $LIBS" | |
16896 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 16897 | #line 16898 "configure" |
3c011993 VZ |
16898 | #include "confdefs.h" |
16899 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16900 | /* We use char because int might match the return type of a gcc2 | |
16901 | builtin and then its argument prototype would still apply. */ | |
16902 | char inet_addr(); | |
16903 | ||
16904 | int main() { | |
16905 | inet_addr() | |
16906 | ; return 0; } | |
16907 | EOF | |
dfe8399a | 16908 | if { (eval echo configure:16909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3c011993 VZ |
16909 | rm -rf conftest* |
16910 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16911 | else | |
16912 | echo "configure: failed program was:" >&5 | |
16913 | cat conftest.$ac_ext >&5 | |
16914 | rm -rf conftest* | |
16915 | eval "ac_cv_lib_$ac_lib_var=no" | |
16916 | fi | |
16917 | rm -f conftest* | |
16918 | LIBS="$ac_save_LIBS" | |
16919 | ||
16920 | fi | |
16921 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16922 | echo "$ac_t""yes" 1>&6 | |
16923 | INET_LINK="socket" | |
16924 | ||
16925 | else | |
16926 | echo "$ac_t""no" 1>&6 | |
16927 | fi | |
16928 | ||
16929 | ||
4f14bcd8 | 16930 | fi |
698dcdb6 | 16931 | |
4f14bcd8 | 16932 | |
698dcdb6 | 16933 | fi |
4f14bcd8 GD |
16934 | |
16935 | ||
698dcdb6 VZ |
16936 | |
16937 | fi | |
4f14bcd8 GD |
16938 | done |
16939 | ||
16940 | ||
16941 | for ac_func in inet_aton | |
16942 | do | |
16943 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
dfe8399a | 16944 | echo "configure:16945: checking for $ac_func" >&5 |
4f14bcd8 | 16945 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 VZ |
16946 | echo $ac_n "(cached) $ac_c" 1>&6 |
16947 | else | |
4f14bcd8 | 16948 | cat > conftest.$ac_ext <<EOF |
dfe8399a | 16949 | #line 16950 "configure" |
f6bcfd97 | 16950 | #include "confdefs.h" |
4f14bcd8 GD |
16951 | /* System header to define __stub macros and hopefully few prototypes, |
16952 | which can conflict with char $ac_func(); below. */ | |
16953 | #include <assert.h> | |
f6bcfd97 BP |
16954 | /* Override any gcc2 internal prototype to avoid an error. */ |
16955 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16956 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16957 | char $ac_func(); |
698dcdb6 VZ |
16958 | |
16959 | int main() { | |
4f14bcd8 GD |
16960 | |
16961 | /* The GNU C library defines this for functions which it implements | |
16962 | to always fail with ENOSYS. Some functions are actually named | |
16963 | something starting with __ and the normal name is an alias. */ | |
16964 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16965 | choke me | |
16966 | #else | |
16967 | $ac_func(); | |
16968 | #endif | |
16969 | ||
698dcdb6 VZ |
16970 | ; return 0; } |
16971 | EOF | |
dfe8399a | 16972 | if { (eval echo configure:16973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16973 | rm -rf conftest* |
4f14bcd8 | 16974 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
16975 | else |
16976 | echo "configure: failed program was:" >&5 | |
16977 | cat conftest.$ac_ext >&5 | |
16978 | rm -rf conftest* | |
4f14bcd8 | 16979 | eval "ac_cv_func_$ac_func=no" |
698dcdb6 VZ |
16980 | fi |
16981 | rm -f conftest* | |
698dcdb6 | 16982 | fi |
4f14bcd8 GD |
16983 | |
16984 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 16985 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
16986 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
16987 | cat >> confdefs.h <<EOF | |
16988 | #define $ac_tr_func 1 | |
16989 | EOF | |
16990 | cat >> confdefs.h <<\EOF | |
16991 | #define HAVE_INET_ATON 1 | |
16992 | EOF | |
16993 | ||
10f2d63a | 16994 | else |
698dcdb6 | 16995 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 16996 | echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6 |
dfe8399a | 16997 | echo "configure:16998: checking for inet_aton in -l$INET_LINK" >&5 |
4f14bcd8 | 16998 | ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
16999 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
17000 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 17001 | else |
698dcdb6 | 17002 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17003 | LIBS="-l$INET_LINK $LIBS" |
698dcdb6 | 17004 | cat > conftest.$ac_ext <<EOF |
dfe8399a | 17005 | #line 17006 "configure" |
10f2d63a | 17006 | #include "confdefs.h" |
6232543b | 17007 | /* Override any gcc2 internal prototype to avoid an error. */ |
6232543b | 17008 | /* We use char because int might match the return type of a gcc2 |
698dcdb6 | 17009 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 17010 | char inet_aton(); |
698dcdb6 VZ |
17011 | |
17012 | int main() { | |
4f14bcd8 | 17013 | inet_aton() |
698dcdb6 VZ |
17014 | ; return 0; } |
17015 | EOF | |
dfe8399a | 17016 | if { (eval echo configure:17017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17017 | rm -rf conftest* |
17018 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17019 | else | |
17020 | echo "configure: failed program was:" >&5 | |
17021 | cat conftest.$ac_ext >&5 | |
17022 | rm -rf conftest* | |
17023 | eval "ac_cv_lib_$ac_lib_var=no" | |
17024 | fi | |
17025 | rm -f conftest* | |
17026 | LIBS="$ac_save_LIBS" | |
10f2d63a | 17027 | |
698dcdb6 VZ |
17028 | fi |
17029 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17030 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 GD |
17031 | cat >> confdefs.h <<\EOF |
17032 | #define HAVE_INET_ATON 1 | |
17033 | EOF | |
17034 | ||
698dcdb6 VZ |
17035 | else |
17036 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
17037 | fi |
17038 | ||
4f14bcd8 | 17039 | |
10f2d63a | 17040 | fi |
4f14bcd8 | 17041 | done |
10f2d63a | 17042 | |
4f14bcd8 GD |
17043 | |
17044 | if test "x$INET_LINK" != "x"; then | |
17045 | cat >> confdefs.h <<\EOF | |
17046 | #define HAVE_INET_ADDR 1 | |
17047 | EOF | |
17048 | ||
3d63bc3a | 17049 | INET_LINK=" -l$INET_LINK" |
6232543b | 17050 | fi |
10f2d63a | 17051 | |
1e487827 | 17052 | fi |
703e0a69 | 17053 | |
698dcdb6 | 17054 | |
4f14bcd8 GD |
17055 | cat > confcache <<\EOF |
17056 | # This file is a shell script that caches the results of configure | |
17057 | # tests run on this system so they can be shared between configure | |
17058 | # scripts and configure runs. It is not useful on other systems. | |
17059 | # If it contains results you don't want to keep, you may remove or edit it. | |
17060 | # | |
17061 | # By default, configure uses ./config.cache as the cache file, | |
17062 | # creating it if it does not exist already. You can give configure | |
17063 | # the --cache-file=FILE option to use a different cache file; that is | |
17064 | # what configure does when it calls configure scripts in | |
17065 | # subdirectories, so they share the cache. | |
17066 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
17067 | # config.status only pays attention to the cache file if you give it the | |
17068 | # --recheck option to rerun configure. | |
17069 | # | |
f6bcfd97 | 17070 | EOF |
4f14bcd8 GD |
17071 | # The following way of writing the cache mishandles newlines in values, |
17072 | # but we know of no workaround that is simple, portable, and efficient. | |
17073 | # So, don't put newlines in cache variables' values. | |
17074 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
17075 | # and sets the high bit in the cache file unless we assign to the vars. | |
17076 | (set) 2>&1 | | |
17077 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
17078 | *ac_space=\ *) | |
17079 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
17080 | # turns \\\\ into \\, and sed turns \\ into \). | |
17081 | sed -n \ | |
17082 | -e "s/'/'\\\\''/g" \ | |
17083 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
17084 | ;; | |
17085 | *) | |
17086 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
17087 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
17088 | ;; | |
17089 | esac >> confcache | |
17090 | if cmp -s $cache_file confcache; then | |
17091 | : | |
17092 | else | |
17093 | if test -w $cache_file; then | |
17094 | echo "updating cache $cache_file" | |
17095 | cat confcache > $cache_file | |
f6bcfd97 | 17096 | else |
4f14bcd8 | 17097 | echo "not updating unwritable cache $cache_file" |
f6bcfd97 | 17098 | fi |
4f14bcd8 GD |
17099 | fi |
17100 | rm -f confcache | |
f6bcfd97 | 17101 | |
4f14bcd8 GD |
17102 | |
17103 | ||
17104 | if test "$TOOLKIT" != "MSW"; then | |
17105 | ||
7274f1c7 RL |
17106 | |
17107 | THREADS_LINK= | |
17108 | THREADS_OBJ= | |
17109 | CODE_GEN_FLAGS= | |
17110 | CODE_GEN_FLAGS_CXX= | |
17111 | ||
17112 | if test "$wxUSE_THREADS" = "yes" ; then | |
17113 | if test "$wxUSE_WINE" = 1 ; then | |
156b2523 | 17114 | echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2 |
7274f1c7 RL |
17115 | wxUSE_THREADS="no" |
17116 | elif test "$USE_BEOS" = 1; then | |
156b2523 | 17117 | echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2 |
7274f1c7 RL |
17118 | wxUSE_THREADS="no" |
17119 | fi | |
4f14bcd8 | 17120 | fi |
4f14bcd8 | 17121 | |
7274f1c7 RL |
17122 | if test "$wxUSE_THREADS" = "yes" ; then |
17123 | ||
17124 | if test "$USE_AIX" = 1; then | |
17125 | THREADS_LIB=pthreads | |
17126 | else | |
17127 | THREADS_LIB=pthread | |
17128 | fi | |
4f14bcd8 | 17129 | |
7274f1c7 | 17130 | echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6 |
dfe8399a | 17131 | echo "configure:17132: checking for pthread_create in -l$THREADS_LIB" >&5 |
4f14bcd8 | 17132 | ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
17133 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
17134 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 17135 | else |
698dcdb6 | 17136 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17137 | LIBS="-l$THREADS_LIB $LIBS" |
698dcdb6 | 17138 | cat > conftest.$ac_ext <<EOF |
dfe8399a | 17139 | #line 17140 "configure" |
10f2d63a VZ |
17140 | #include "confdefs.h" |
17141 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17142 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 17143 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 17144 | char pthread_create(); |
698dcdb6 VZ |
17145 | |
17146 | int main() { | |
4f14bcd8 | 17147 | pthread_create() |
698dcdb6 VZ |
17148 | ; return 0; } |
17149 | EOF | |
dfe8399a | 17150 | if { (eval echo configure:17151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17151 | rm -rf conftest* |
17152 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17153 | else | |
17154 | echo "configure: failed program was:" >&5 | |
17155 | cat conftest.$ac_ext >&5 | |
17156 | rm -rf conftest* | |
17157 | eval "ac_cv_lib_$ac_lib_var=no" | |
17158 | fi | |
17159 | rm -f conftest* | |
17160 | LIBS="$ac_save_LIBS" | |
17161 | ||
17162 | fi | |
17163 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17164 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 17165 | |
7274f1c7 RL |
17166 | THREADS_OBJ="threadpsx.lo" |
17167 | THREADS_LINK=$THREADS_LIB | |
17168 | ||
10f2d63a | 17169 | else |
698dcdb6 | 17170 | echo "$ac_t""no" 1>&6 |
10f2d63a | 17171 | |
7274f1c7 | 17172 | echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 |
dfe8399a | 17173 | echo "configure:17174: checking for pthread_create in -lc_r" >&5 |
4f14bcd8 GD |
17174 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` |
17175 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 VZ |
17176 | echo $ac_n "(cached) $ac_c" 1>&6 |
17177 | else | |
4f14bcd8 GD |
17178 | ac_save_LIBS="$LIBS" |
17179 | LIBS="-lc_r $LIBS" | |
17180 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 17181 | #line 17182 "configure" |
10f2d63a | 17182 | #include "confdefs.h" |
4f14bcd8 GD |
17183 | /* Override any gcc2 internal prototype to avoid an error. */ |
17184 | /* We use char because int might match the return type of a gcc2 | |
17185 | builtin and then its argument prototype would still apply. */ | |
17186 | char pthread_create(); | |
10f2d63a | 17187 | |
4f14bcd8 GD |
17188 | int main() { |
17189 | pthread_create() | |
698dcdb6 VZ |
17190 | ; return 0; } |
17191 | EOF | |
dfe8399a | 17192 | if { (eval echo configure:17193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17193 | rm -rf conftest* |
4f14bcd8 | 17194 | eval "ac_cv_lib_$ac_lib_var=yes" |
10f2d63a | 17195 | else |
698dcdb6 VZ |
17196 | echo "configure: failed program was:" >&5 |
17197 | cat conftest.$ac_ext >&5 | |
17198 | rm -rf conftest* | |
4f14bcd8 | 17199 | eval "ac_cv_lib_$ac_lib_var=no" |
6232543b | 17200 | fi |
698dcdb6 | 17201 | rm -f conftest* |
4f14bcd8 | 17202 | LIBS="$ac_save_LIBS" |
d9b9876f | 17203 | |
4f14bcd8 GD |
17204 | fi |
17205 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17206 | echo "$ac_t""yes" 1>&6 | |
17207 | ||
7274f1c7 RL |
17208 | THREADS_OBJ="threadpsx.lo" |
17209 | THREADS_LINK="c_r" | |
17210 | ||
4f14bcd8 GD |
17211 | else |
17212 | echo "$ac_t""no" 1>&6 | |
ab252f7b | 17213 | |
7274f1c7 | 17214 | ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'` |
4f14bcd8 | 17215 | echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6 |
dfe8399a | 17216 | echo "configure:17217: checking for sys/prctl.h" >&5 |
4f14bcd8 | 17217 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
698dcdb6 | 17218 | echo $ac_n "(cached) $ac_c" 1>&6 |
d9b9876f | 17219 | else |
4f14bcd8 | 17220 | cat > conftest.$ac_ext <<EOF |
dfe8399a | 17221 | #line 17222 "configure" |
d9b9876f | 17222 | #include "confdefs.h" |
4f14bcd8 | 17223 | #include <sys/prctl.h> |
698dcdb6 | 17224 | EOF |
4f14bcd8 | 17225 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
dfe8399a | 17226 | { (eval echo configure:17227: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
17227 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
17228 | if test -z "$ac_err"; then | |
698dcdb6 | 17229 | rm -rf conftest* |
4f14bcd8 | 17230 | eval "ac_cv_header_$ac_safe=yes" |
d9b9876f | 17231 | else |
4f14bcd8 | 17232 | echo "$ac_err" >&5 |
698dcdb6 VZ |
17233 | echo "configure: failed program was:" >&5 |
17234 | cat conftest.$ac_ext >&5 | |
17235 | rm -rf conftest* | |
4f14bcd8 | 17236 | eval "ac_cv_header_$ac_safe=no" |
6232543b | 17237 | fi |
698dcdb6 | 17238 | rm -f conftest* |
4f14bcd8 GD |
17239 | fi |
17240 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
17241 | echo "$ac_t""yes" 1>&6 | |
698dcdb6 | 17242 | |
7274f1c7 RL |
17243 | THREADS_OBJ="threadsgi.lo" |
17244 | ||
4f14bcd8 GD |
17245 | else |
17246 | echo "$ac_t""no" 1>&6 | |
1e487827 | 17247 | fi |
698dcdb6 | 17248 | |
7274f1c7 | 17249 | |
4f14bcd8 | 17250 | fi |
d9b9876f | 17251 | |
7274f1c7 | 17252 | |
4f14bcd8 | 17253 | fi |
d9b9876f | 17254 | |
4f14bcd8 | 17255 | |
7274f1c7 RL |
17256 | if test -z "$THREADS_OBJ" ; then |
17257 | wxUSE_THREADS=no | |
156b2523 | 17258 | echo "configure: warning: No thread support on this system... disabled" 1>&2 |
7274f1c7 | 17259 | fi |
4f14bcd8 | 17260 | fi |
4f14bcd8 | 17261 | |
7274f1c7 RL |
17262 | if test "$wxUSE_THREADS" = "yes" ; then |
17263 | for ac_func in thr_setconcurrency | |
4f14bcd8 GD |
17264 | do |
17265 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
dfe8399a | 17266 | echo "configure:17267: checking for $ac_func" >&5 |
4f14bcd8 | 17267 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 VZ |
17268 | echo $ac_n "(cached) $ac_c" 1>&6 |
17269 | else | |
4f14bcd8 | 17270 | cat > conftest.$ac_ext <<EOF |
dfe8399a | 17271 | #line 17272 "configure" |
d9b9876f | 17272 | #include "confdefs.h" |
4f14bcd8 GD |
17273 | /* System header to define __stub macros and hopefully few prototypes, |
17274 | which can conflict with char $ac_func(); below. */ | |
17275 | #include <assert.h> | |
17276 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17277 | /* We use char because int might match the return type of a gcc2 | |
17278 | builtin and then its argument prototype would still apply. */ | |
17279 | char $ac_func(); | |
17280 | ||
698dcdb6 | 17281 | int main() { |
d9b9876f | 17282 | |
4f14bcd8 GD |
17283 | /* The GNU C library defines this for functions which it implements |
17284 | to always fail with ENOSYS. Some functions are actually named | |
17285 | something starting with __ and the normal name is an alias. */ | |
17286 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17287 | choke me | |
17288 | #else | |
17289 | $ac_func(); | |
17290 | #endif | |
17291 | ||
698dcdb6 VZ |
17292 | ; return 0; } |
17293 | EOF | |
dfe8399a | 17294 | if { (eval echo configure:17295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17295 | rm -rf conftest* |
4f14bcd8 | 17296 | eval "ac_cv_func_$ac_func=yes" |
d9b9876f | 17297 | else |
698dcdb6 VZ |
17298 | echo "configure: failed program was:" >&5 |
17299 | cat conftest.$ac_ext >&5 | |
17300 | rm -rf conftest* | |
4f14bcd8 | 17301 | eval "ac_cv_func_$ac_func=no" |
6232543b | 17302 | fi |
698dcdb6 | 17303 | rm -f conftest* |
1e487827 | 17304 | fi |
698dcdb6 | 17305 | |
4f14bcd8 GD |
17306 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17307 | echo "$ac_t""yes" 1>&6 | |
17308 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17309 | cat >> confdefs.h <<EOF | |
17310 | #define $ac_tr_func 1 | |
d9b9876f | 17311 | EOF |
4f14bcd8 GD |
17312 | |
17313 | else | |
17314 | echo "$ac_t""no" 1>&6 | |
10f2d63a | 17315 | fi |
4f14bcd8 | 17316 | done |
10f2d63a | 17317 | |
10f2d63a | 17318 | |
7274f1c7 RL |
17319 | |
17320 | for ac_hdr in sched.h | |
4f14bcd8 GD |
17321 | do |
17322 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
17323 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
dfe8399a | 17324 | echo "configure:17325: checking for $ac_hdr" >&5 |
4f14bcd8 GD |
17325 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
17326 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 17327 | else |
4f14bcd8 | 17328 | cat > conftest.$ac_ext <<EOF |
dfe8399a | 17329 | #line 17330 "configure" |
4f14bcd8 GD |
17330 | #include "confdefs.h" |
17331 | #include <$ac_hdr> | |
13111b2a | 17332 | EOF |
4f14bcd8 | 17333 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
dfe8399a | 17334 | { (eval echo configure:17335: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
17335 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
17336 | if test -z "$ac_err"; then | |
17337 | rm -rf conftest* | |
17338 | eval "ac_cv_header_$ac_safe=yes" | |
17339 | else | |
17340 | echo "$ac_err" >&5 | |
17341 | echo "configure: failed program was:" >&5 | |
17342 | cat conftest.$ac_ext >&5 | |
17343 | rm -rf conftest* | |
17344 | eval "ac_cv_header_$ac_safe=no" | |
13111b2a | 17345 | fi |
4f14bcd8 | 17346 | rm -f conftest* |
10f2d63a | 17347 | fi |
4f14bcd8 GD |
17348 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
17349 | echo "$ac_t""yes" 1>&6 | |
17350 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
698dcdb6 | 17351 | cat >> confdefs.h <<EOF |
4f14bcd8 | 17352 | #define $ac_tr_hdr 1 |
f6bcfd97 | 17353 | EOF |
4f14bcd8 GD |
17354 | |
17355 | else | |
17356 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 | 17357 | fi |
4f14bcd8 | 17358 | done |
f6bcfd97 | 17359 | |
10f2d63a | 17360 | |
7274f1c7 | 17361 | echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6 |
dfe8399a | 17362 | echo "configure:17363: checking for sched_yield in -l$THREADS_LINK" >&5 |
4f14bcd8 GD |
17363 | ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'` |
17364 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17365 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17366 | else | |
17367 | ac_save_LIBS="$LIBS" | |
17368 | LIBS="-l$THREADS_LINK $LIBS" | |
17369 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 17370 | #line 17371 "configure" |
4f14bcd8 GD |
17371 | #include "confdefs.h" |
17372 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17373 | /* We use char because int might match the return type of a gcc2 | |
17374 | builtin and then its argument prototype would still apply. */ | |
17375 | char sched_yield(); | |
10f2d63a | 17376 | |
4f14bcd8 GD |
17377 | int main() { |
17378 | sched_yield() | |
17379 | ; return 0; } | |
10f2d63a | 17380 | EOF |
dfe8399a | 17381 | if { (eval echo configure:17382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
17382 | rm -rf conftest* |
17383 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 17384 | else |
4f14bcd8 GD |
17385 | echo "configure: failed program was:" >&5 |
17386 | cat conftest.$ac_ext >&5 | |
17387 | rm -rf conftest* | |
17388 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 17389 | fi |
4f14bcd8 GD |
17390 | rm -f conftest* |
17391 | LIBS="$ac_save_LIBS" | |
10f2d63a | 17392 | |
4f14bcd8 GD |
17393 | fi |
17394 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17395 | echo "$ac_t""yes" 1>&6 | |
17396 | cat >> confdefs.h <<\EOF | |
17397 | #define HAVE_SCHED_YIELD 1 | |
10f2d63a VZ |
17398 | EOF |
17399 | ||
4f14bcd8 GD |
17400 | else |
17401 | echo "$ac_t""no" 1>&6 | |
17402 | echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6 | |
dfe8399a | 17403 | echo "configure:17404: checking for sched_yield in -lposix4" >&5 |
4f14bcd8 GD |
17404 | ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'` |
17405 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17406 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17407 | else | |
17408 | ac_save_LIBS="$LIBS" | |
17409 | LIBS="-lposix4 $LIBS" | |
17410 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 17411 | #line 17412 "configure" |
4f14bcd8 GD |
17412 | #include "confdefs.h" |
17413 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17414 | /* We use char because int might match the return type of a gcc2 | |
17415 | builtin and then its argument prototype would still apply. */ | |
17416 | char sched_yield(); | |
47c13eb7 | 17417 | |
4f14bcd8 GD |
17418 | int main() { |
17419 | sched_yield() | |
17420 | ; return 0; } | |
10f2d63a | 17421 | EOF |
dfe8399a | 17422 | if { (eval echo configure:17423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
17423 | rm -rf conftest* |
17424 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 17425 | else |
4f14bcd8 GD |
17426 | echo "configure: failed program was:" >&5 |
17427 | cat conftest.$ac_ext >&5 | |
17428 | rm -rf conftest* | |
17429 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 17430 | fi |
4f14bcd8 GD |
17431 | rm -f conftest* |
17432 | LIBS="$ac_save_LIBS" | |
10f2d63a | 17433 | |
54276ccf | 17434 | fi |
4f14bcd8 GD |
17435 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
17436 | echo "$ac_t""yes" 1>&6 | |
17437 | cat >> confdefs.h <<\EOF | |
17438 | #define HAVE_SCHED_YIELD 1 | |
54276ccf | 17439 | EOF |
3d63bc3a | 17440 | POSIX4_LINK=" -lposix4" |
4f14bcd8 GD |
17441 | else |
17442 | echo "$ac_t""no" 1>&6 | |
17443 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
7274f1c7 | 17444 | |
54276ccf VZ |
17445 | fi |
17446 | ||
7274f1c7 | 17447 | |
4f14bcd8 | 17448 | fi |
698dcdb6 | 17449 | |
10f2d63a | 17450 | |
7274f1c7 RL |
17451 | HAVE_PRIOR_FUNCS=0 |
17452 | echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6 | |
dfe8399a | 17453 | echo "configure:17454: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5 |
4f14bcd8 GD |
17454 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'` |
17455 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 VZ |
17456 | echo $ac_n "(cached) $ac_c" 1>&6 |
17457 | else | |
4f14bcd8 GD |
17458 | ac_save_LIBS="$LIBS" |
17459 | LIBS="-l$THREADS_LINK $LIBS" | |
17460 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 17461 | #line 17462 "configure" |
422107f9 | 17462 | #include "confdefs.h" |
4f14bcd8 GD |
17463 | /* Override any gcc2 internal prototype to avoid an error. */ |
17464 | /* We use char because int might match the return type of a gcc2 | |
17465 | builtin and then its argument prototype would still apply. */ | |
17466 | char pthread_attr_getschedpolicy(); | |
17467 | ||
17468 | int main() { | |
17469 | pthread_attr_getschedpolicy() | |
17470 | ; return 0; } | |
698dcdb6 | 17471 | EOF |
dfe8399a | 17472 | if { (eval echo configure:17473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17473 | rm -rf conftest* |
4f14bcd8 | 17474 | eval "ac_cv_lib_$ac_lib_var=yes" |
422107f9 | 17475 | else |
698dcdb6 | 17476 | echo "configure: failed program was:" >&5 |
422107f9 | 17477 | cat conftest.$ac_ext >&5 |
698dcdb6 | 17478 | rm -rf conftest* |
4f14bcd8 | 17479 | eval "ac_cv_lib_$ac_lib_var=no" |
422107f9 | 17480 | fi |
698dcdb6 | 17481 | rm -f conftest* |
4f14bcd8 GD |
17482 | LIBS="$ac_save_LIBS" |
17483 | ||
422107f9 | 17484 | fi |
4f14bcd8 | 17485 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
698dcdb6 | 17486 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 | 17487 | echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6 |
dfe8399a | 17488 | echo "configure:17489: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5 |
4f14bcd8 | 17489 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
17490 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
17491 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 17492 | else |
698dcdb6 | 17493 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17494 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 17495 | cat > conftest.$ac_ext <<EOF |
dfe8399a | 17496 | #line 17497 "configure" |
422107f9 VZ |
17497 | #include "confdefs.h" |
17498 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17499 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 17500 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 17501 | char pthread_attr_setschedparam(); |
698dcdb6 VZ |
17502 | |
17503 | int main() { | |
4f14bcd8 | 17504 | pthread_attr_setschedparam() |
698dcdb6 VZ |
17505 | ; return 0; } |
17506 | EOF | |
dfe8399a | 17507 | if { (eval echo configure:17508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17508 | rm -rf conftest* |
17509 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17510 | else | |
17511 | echo "configure: failed program was:" >&5 | |
17512 | cat conftest.$ac_ext >&5 | |
17513 | rm -rf conftest* | |
17514 | eval "ac_cv_lib_$ac_lib_var=no" | |
17515 | fi | |
17516 | rm -f conftest* | |
17517 | LIBS="$ac_save_LIBS" | |
17518 | ||
17519 | fi | |
17520 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17521 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 17522 | echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6 |
dfe8399a | 17523 | echo "configure:17524: checking for sched_get_priority_max in -l$THREADS_LINK" >&5 |
4f14bcd8 GD |
17524 | ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
17525 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 VZ |
17526 | echo $ac_n "(cached) $ac_c" 1>&6 |
17527 | else | |
4f14bcd8 GD |
17528 | ac_save_LIBS="$LIBS" |
17529 | LIBS="-l$THREADS_LINK $LIBS" | |
17530 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 17531 | #line 17532 "configure" |
422107f9 | 17532 | #include "confdefs.h" |
4f14bcd8 GD |
17533 | /* Override any gcc2 internal prototype to avoid an error. */ |
17534 | /* We use char because int might match the return type of a gcc2 | |
17535 | builtin and then its argument prototype would still apply. */ | |
17536 | char sched_get_priority_max(); | |
17537 | ||
17538 | int main() { | |
17539 | sched_get_priority_max() | |
17540 | ; return 0; } | |
698dcdb6 | 17541 | EOF |
dfe8399a | 17542 | if { (eval echo configure:17543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17543 | rm -rf conftest* |
4f14bcd8 | 17544 | eval "ac_cv_lib_$ac_lib_var=yes" |
422107f9 | 17545 | else |
698dcdb6 | 17546 | echo "configure: failed program was:" >&5 |
422107f9 | 17547 | cat conftest.$ac_ext >&5 |
698dcdb6 | 17548 | rm -rf conftest* |
4f14bcd8 | 17549 | eval "ac_cv_lib_$ac_lib_var=no" |
422107f9 | 17550 | fi |
698dcdb6 | 17551 | rm -f conftest* |
4f14bcd8 GD |
17552 | LIBS="$ac_save_LIBS" |
17553 | ||
422107f9 | 17554 | fi |
4f14bcd8 | 17555 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
698dcdb6 | 17556 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
17557 | HAVE_PRIOR_FUNCS=1 |
17558 | else | |
17559 | echo "$ac_t""no" 1>&6 | |
17560 | echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6 | |
dfe8399a | 17561 | echo "configure:17562: checking for sched_get_priority_max in -lposix4" >&5 |
4f14bcd8 | 17562 | ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
17563 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
17564 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 17565 | else |
698dcdb6 | 17566 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17567 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 17568 | cat > conftest.$ac_ext <<EOF |
dfe8399a | 17569 | #line 17570 "configure" |
422107f9 VZ |
17570 | #include "confdefs.h" |
17571 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17572 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 17573 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 17574 | char sched_get_priority_max(); |
698dcdb6 VZ |
17575 | |
17576 | int main() { | |
4f14bcd8 | 17577 | sched_get_priority_max() |
698dcdb6 VZ |
17578 | ; return 0; } |
17579 | EOF | |
dfe8399a | 17580 | if { (eval echo configure:17581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17581 | rm -rf conftest* |
17582 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17583 | else | |
17584 | echo "configure: failed program was:" >&5 | |
17585 | cat conftest.$ac_ext >&5 | |
17586 | rm -rf conftest* | |
17587 | eval "ac_cv_lib_$ac_lib_var=no" | |
17588 | fi | |
17589 | rm -f conftest* | |
17590 | LIBS="$ac_save_LIBS" | |
17591 | ||
17592 | fi | |
17593 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17594 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 17595 | |
7274f1c7 RL |
17596 | HAVE_PRIOR_FUNCS=1 |
17597 | POSIX4_LINK=" -lposix4" | |
17598 | ||
698dcdb6 VZ |
17599 | else |
17600 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
17601 | fi |
17602 | ||
7274f1c7 | 17603 | |
422107f9 VZ |
17604 | fi |
17605 | ||
7274f1c7 | 17606 | |
4f14bcd8 GD |
17607 | else |
17608 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
17609 | fi |
17610 | ||
7274f1c7 | 17611 | |
698dcdb6 | 17612 | else |
4f14bcd8 GD |
17613 | echo "$ac_t""no" 1>&6 |
17614 | fi | |
463abc64 | 17615 | |
463abc64 | 17616 | |
7274f1c7 RL |
17617 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
17618 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 17619 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 |
698dcdb6 | 17620 | EOF |
463abc64 | 17621 | |
7274f1c7 RL |
17622 | else |
17623 | echo "configure: warning: Setting thread priority will not work" 1>&2 | |
17624 | fi | |
463abc64 | 17625 | |
7274f1c7 | 17626 | echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6 |
dfe8399a | 17627 | echo "configure:17628: checking for pthread_cancel in -l$THREADS_LINK" >&5 |
4f14bcd8 | 17628 | ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
17629 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
17630 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 17631 | else |
698dcdb6 | 17632 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17633 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 17634 | cat > conftest.$ac_ext <<EOF |
dfe8399a | 17635 | #line 17636 "configure" |
422107f9 VZ |
17636 | #include "confdefs.h" |
17637 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17638 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 17639 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 17640 | char pthread_cancel(); |
698dcdb6 VZ |
17641 | |
17642 | int main() { | |
4f14bcd8 | 17643 | pthread_cancel() |
698dcdb6 VZ |
17644 | ; return 0; } |
17645 | EOF | |
dfe8399a | 17646 | if { (eval echo configure:17647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17647 | rm -rf conftest* |
17648 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17649 | else | |
17650 | echo "configure: failed program was:" >&5 | |
17651 | cat conftest.$ac_ext >&5 | |
17652 | rm -rf conftest* | |
17653 | eval "ac_cv_lib_$ac_lib_var=no" | |
17654 | fi | |
17655 | rm -f conftest* | |
17656 | LIBS="$ac_save_LIBS" | |
17657 | ||
17658 | fi | |
17659 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17660 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 GD |
17661 | cat >> confdefs.h <<\EOF |
17662 | #define HAVE_PTHREAD_CANCEL 1 | |
17663 | EOF | |
17664 | ||
698dcdb6 VZ |
17665 | else |
17666 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 | 17667 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 |
422107f9 VZ |
17668 | fi |
17669 | ||
422107f9 | 17670 | |
7274f1c7 | 17671 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 |
dfe8399a | 17672 | echo "configure:17673: checking for pthread_cleanup_push/pop" >&5 |
4f14bcd8 GD |
17673 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then |
17674 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17675 | else | |
17676 | ||
7274f1c7 | 17677 | cat > conftest.$ac_ext <<EOF |
dfe8399a | 17678 | #line 17679 "configure" |
4f14bcd8 GD |
17679 | #include "confdefs.h" |
17680 | #include <pthread.h> | |
17681 | int main() { | |
17682 | ||
7274f1c7 RL |
17683 | pthread_cleanup_push(NULL, NULL); |
17684 | pthread_cleanup_pop(0); | |
17685 | ||
4f14bcd8 GD |
17686 | ; return 0; } |
17687 | EOF | |
dfe8399a | 17688 | if { (eval echo configure:17689: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
17689 | rm -rf conftest* |
17690 | ||
7274f1c7 RL |
17691 | wx_cv_func_pthread_cleanup_push=yes |
17692 | ||
4f14bcd8 GD |
17693 | else |
17694 | echo "configure: failed program was:" >&5 | |
17695 | cat conftest.$ac_ext >&5 | |
17696 | rm -rf conftest* | |
17697 | ||
7274f1c7 RL |
17698 | wx_cv_func_pthread_cleanup_push=no |
17699 | ||
4f14bcd8 GD |
17700 | fi |
17701 | rm -f conftest* | |
7274f1c7 | 17702 | |
10f2d63a VZ |
17703 | fi |
17704 | ||
4f14bcd8 GD |
17705 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 |
17706 | ||
7274f1c7 RL |
17707 | if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then |
17708 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 17709 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 |
c7a2bf27 RR |
17710 | EOF |
17711 | ||
7274f1c7 | 17712 | fi |
4f14bcd8 | 17713 | |
7274f1c7 RL |
17714 | |
17715 | if test "x$wx_lib_glibc21" = "xyes"; then | |
17716 | CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" | |
17717 | fi | |
4f14bcd8 | 17718 | |
7274f1c7 | 17719 | echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6 |
dfe8399a | 17720 | echo "configure:17721: checking for pthread_mutexattr_t" >&5 |
4f14bcd8 | 17721 | if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then |
698dcdb6 VZ |
17722 | echo $ac_n "(cached) $ac_c" 1>&6 |
17723 | else | |
4f14bcd8 | 17724 | |
7274f1c7 | 17725 | cat > conftest.$ac_ext <<EOF |
dfe8399a | 17726 | #line 17727 "configure" |
0dcf9893 | 17727 | #include "confdefs.h" |
4f14bcd8 GD |
17728 | #include <pthread.h> |
17729 | int main() { | |
17730 | ||
7274f1c7 RL |
17731 | pthread_mutexattr_t attr; |
17732 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
17733 | ||
4f14bcd8 | 17734 | ; return 0; } |
698dcdb6 | 17735 | EOF |
dfe8399a | 17736 | if { (eval echo configure:17737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 17737 | rm -rf conftest* |
4f14bcd8 | 17738 | |
7274f1c7 RL |
17739 | wx_cv_type_pthread_mutexattr_t=yes |
17740 | ||
3fed1840 | 17741 | else |
698dcdb6 | 17742 | echo "configure: failed program was:" >&5 |
3fed1840 | 17743 | cat conftest.$ac_ext >&5 |
698dcdb6 | 17744 | rm -rf conftest* |
4f14bcd8 | 17745 | |
7274f1c7 RL |
17746 | wx_cv_type_pthread_mutexattr_t=no |
17747 | ||
4f14bcd8 | 17748 | |
3fed1840 | 17749 | fi |
698dcdb6 | 17750 | rm -f conftest* |
7274f1c7 | 17751 | |
3fed1840 | 17752 | fi |
4f14bcd8 GD |
17753 | |
17754 | echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6 | |
17755 | ||
7274f1c7 RL |
17756 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then |
17757 | cat >> confdefs.h <<\EOF | |
4f14bcd8 GD |
17758 | #define HAVE_PTHREAD_MUTEXATTR_T 1 |
17759 | EOF | |
17760 | ||
7274f1c7 RL |
17761 | else |
17762 | echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6 | |
dfe8399a | 17763 | echo "configure:17764: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 |
4f14bcd8 | 17764 | if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then |
698dcdb6 | 17765 | echo $ac_n "(cached) $ac_c" 1>&6 |
3fed1840 | 17766 | else |
4f14bcd8 | 17767 | |
7274f1c7 | 17768 | cat > conftest.$ac_ext <<EOF |
dfe8399a | 17769 | #line 17770 "configure" |
3fed1840 | 17770 | #include "confdefs.h" |
4f14bcd8 | 17771 | #include <pthread.h> |
698dcdb6 | 17772 | int main() { |
4f14bcd8 | 17773 | |
7274f1c7 RL |
17774 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; |
17775 | ||
698dcdb6 VZ |
17776 | ; return 0; } |
17777 | EOF | |
dfe8399a | 17778 | if { (eval echo configure:17779: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 17779 | rm -rf conftest* |
4f14bcd8 | 17780 | |
7274f1c7 RL |
17781 | wx_cv_type_pthread_rec_mutex_init=yes |
17782 | ||
698dcdb6 VZ |
17783 | else |
17784 | echo "configure: failed program was:" >&5 | |
17785 | cat conftest.$ac_ext >&5 | |
17786 | rm -rf conftest* | |
4f14bcd8 | 17787 | |
7274f1c7 RL |
17788 | wx_cv_type_pthread_rec_mutex_init=no |
17789 | ||
4f14bcd8 | 17790 | |
698dcdb6 VZ |
17791 | fi |
17792 | rm -f conftest* | |
7274f1c7 | 17793 | |
3fed1840 RR |
17794 | fi |
17795 | ||
4f14bcd8 | 17796 | echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6 |
7274f1c7 RL |
17797 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then |
17798 | cat >> confdefs.h <<\EOF | |
4f14bcd8 GD |
17799 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 |
17800 | EOF | |
3fed1840 | 17801 | |
7274f1c7 RL |
17802 | else |
17803 | echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2 | |
17804 | fi | |
17805 | fi | |
4f14bcd8 | 17806 | |
7274f1c7 | 17807 | THREADS_LINK=" -l$THREADS_LINK" |
4f14bcd8 | 17808 | |
7274f1c7 RL |
17809 | if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then |
17810 | CPPFLAGS="$CFLAGS -mt" | |
17811 | CXXFLAGS="$CXXFLAGS -mt" | |
17812 | LDFLAGS="$LDFLAGS -mt" | |
17813 | fi | |
17814 | fi | |
3fed1840 | 17815 | |
4f14bcd8 GD |
17816 | fi |
17817 | ||
17818 | if test "$wxUSE_THREADS" = "yes"; then | |
3a922bb4 | 17819 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 17820 | #define wxUSE_THREADS 1 |
7b6058cd GD |
17821 | EOF |
17822 | ||
4f14bcd8 | 17823 | |
3f345b47 | 17824 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS $CPP_MT_FLAG" |
4f14bcd8 GD |
17825 | |
17826 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
698dcdb6 | 17827 | else |
4f14bcd8 GD |
17828 | if test "$ac_cv_func_strtok_r" = "yes"; then |
17829 | echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6 | |
dfe8399a | 17830 | echo "configure:17831: checking if -D_REENTRANT is needed" >&5 |
4f14bcd8 GD |
17831 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
17832 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
17833 | echo "$ac_t""yes" 1>&6 | |
17834 | else | |
17835 | echo "$ac_t""no" 1>&6 | |
17836 | fi | |
17837 | fi | |
17838 | fi | |
17839 | ||
17840 | if test "$WXGTK20" = 1 ; then | |
17841 | cat >> confdefs.h <<EOF | |
17842 | #define __WXGTK20__ $WXGTK20 | |
698dcdb6 | 17843 | EOF |
4f14bcd8 GD |
17844 | |
17845 | WXGTK12=1 | |
10f2d63a | 17846 | fi |
4f14bcd8 GD |
17847 | |
17848 | if test "$WXGTK12" = 1 ; then | |
17849 | cat >> confdefs.h <<EOF | |
17850 | #define __WXGTK12__ $WXGTK12 | |
17851 | EOF | |
17852 | ||
10f2d63a | 17853 | fi |
698dcdb6 | 17854 | |
4f14bcd8 GD |
17855 | if test "$WXGTK127" = 1 ; then |
17856 | cat >> confdefs.h <<EOF | |
17857 | #define __WXGTK127__ $WXGTK127 | |
698dcdb6 | 17858 | EOF |
4f14bcd8 | 17859 | |
698dcdb6 | 17860 | fi |
10f2d63a | 17861 | |
4f14bcd8 GD |
17862 | WXDEBUG= |
17863 | ||
17864 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
17865 | WXDEBUG="-g" | |
17866 | wxUSE_OPTIMISE=no | |
698dcdb6 | 17867 | fi |
4f14bcd8 GD |
17868 | |
17869 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
17870 | wxUSE_DEBUG_INFO=yes | |
17871 | WXDEBUG="-ggdb" | |
10f2d63a VZ |
17872 | fi |
17873 | ||
4f14bcd8 GD |
17874 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then |
17875 | cat >> confdefs.h <<\EOF | |
17876 | #define WXDEBUG 1 | |
17877 | EOF | |
17878 | ||
17879 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
10f2d63a | 17880 | else |
4f14bcd8 GD |
17881 | if test "$wxUSE_GTK" = 1 ; then |
17882 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
17883 | fi | |
17884 | fi | |
17885 | ||
17886 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
17887 | cat >> confdefs.h <<\EOF | |
17888 | #define wxUSE_MEMORY_TRACING 1 | |
17889 | EOF | |
17890 | ||
17891 | cat >> confdefs.h <<\EOF | |
17892 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
17893 | EOF | |
17894 | ||
17895 | cat >> confdefs.h <<\EOF | |
17896 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
17897 | EOF | |
17898 | ||
17899 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
17900 | fi | |
17901 | ||
17902 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
3d63bc3a | 17903 | DMALLOC_LIBS="-ldmalloc" |
4f14bcd8 GD |
17904 | fi |
17905 | ||
17906 | PROFILE= | |
17907 | if test "$wxUSE_PROFILE" = "yes" ; then | |
3d63bc3a | 17908 | PROFILE=" -pg" |
10f2d63a VZ |
17909 | fi |
17910 | ||
88e30f2b | 17911 | if test "$GCC" = "yes" ; then |
4f14bcd8 GD |
17912 | if test "$wxUSE_NO_RTTI" = "yes" ; then |
17913 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
3a922bb4 | 17914 | fi |
4f14bcd8 GD |
17915 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
17916 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
17917 | fi | |
17918 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
17919 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
17920 | fi | |
4f14bcd8 GD |
17921 | if test "$USE_WIN32" = 1 ; then |
17922 | # I'm not even really sure what this was ever added to solve, | |
17923 | # but someone added it for mingw native builds, so I guess | |
17924 | # they had a reason, right?? | |
17925 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return" | |
17926 | fi | |
17927 | fi | |
17928 | ||
17929 | ||
17930 | CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" ` | |
17931 | CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" ` | |
17932 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
17933 | OPTIMISE= | |
17934 | else | |
17935 | if test "$GCC" = yes ; then | |
17936 | OPTIMISE="-O2" | |
17937 | case "${host}" in | |
17938 | i586-*-*|i686-*-* ) | |
17939 | OPTIMISE="${OPTIMISE} " | |
17940 | ;; | |
17941 | esac | |
17942 | else | |
17943 | OPTIMISE="-O" | |
17944 | fi | |
17945 | fi | |
17946 | ||
17947 | if test "$WXWIN_COMPATIBILITY_2" = "yes"; then | |
17948 | cat >> confdefs.h <<\EOF | |
17949 | #define WXWIN_COMPATIBILITY_2 1 | |
17950 | EOF | |
17951 | ||
17952 | ||
17953 | WXWIN_COMPATIBILITY_2_2="yes" | |
17954 | fi | |
17955 | ||
0c9a1c32 | 17956 | if test "x$WXWIN_COMPATIBILITY_2_2" != "xno"; then |
4f14bcd8 GD |
17957 | cat >> confdefs.h <<\EOF |
17958 | #define WXWIN_COMPATIBILITY_2_2 1 | |
17959 | EOF | |
17960 | ||
10f2d63a VZ |
17961 | fi |
17962 | ||
698dcdb6 | 17963 | |
10f2d63a | 17964 | if test "$wxUSE_GUI" = "yes"; then |
698dcdb6 | 17965 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17966 | #define wxUSE_GUI 1 |
17967 | EOF | |
17968 | ||
698dcdb6 | 17969 | |
10f2d63a | 17970 | else |
698dcdb6 | 17971 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17972 | #define wxUSE_NOGUI 1 |
17973 | EOF | |
17974 | ||
17975 | fi | |
17976 | ||
698dcdb6 | 17977 | |
10f2d63a | 17978 | if test "$wxUSE_UNIX" = "yes"; then |
698dcdb6 | 17979 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17980 | #define wxUSE_UNIX 1 |
17981 | EOF | |
17982 | ||
17983 | fi | |
17984 | ||
698dcdb6 | 17985 | |
10f2d63a | 17986 | if test "$wxUSE_APPLE_IEEE" = "yes"; then |
698dcdb6 | 17987 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17988 | #define wxUSE_APPLE_IEEE 1 |
17989 | EOF | |
17990 | ||
17991 | fi | |
17992 | ||
1e6feb95 VZ |
17993 | if test "$wxUSE_TIMER" = "yes"; then |
17994 | cat >> confdefs.h <<\EOF | |
17995 | #define wxUSE_TIMER 1 | |
17996 | EOF | |
17997 | ||
17998 | fi | |
17999 | ||
10f2d63a | 18000 | if test "$wxUSE_WAVE" = "yes"; then |
698dcdb6 | 18001 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18002 | #define wxUSE_WAVE 1 |
18003 | EOF | |
18004 | ||
18005 | fi | |
18006 | ||
1e6feb95 VZ |
18007 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
18008 | cat >> confdefs.h <<\EOF | |
18009 | #define wxUSE_CMDLINE_PARSER 1 | |
18010 | EOF | |
18011 | ||
18012 | fi | |
18013 | ||
18014 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
18015 | cat >> confdefs.h <<\EOF | |
18016 | #define wxUSE_STOPWATCH 1 | |
18017 | EOF | |
18018 | ||
18019 | fi | |
18020 | ||
18021 | if test "$wxUSE_DATETIME" = "yes"; then | |
18022 | cat >> confdefs.h <<\EOF | |
18023 | #define wxUSE_DATETIME 1 | |
18024 | EOF | |
18025 | ||
18026 | fi | |
18027 | ||
18028 | if test "$wxUSE_TIMEDATE" = "yes"; then | |
18029 | cat >> confdefs.h <<\EOF | |
18030 | #define wxUSE_TIMEDATE 1 | |
18031 | EOF | |
18032 | ||
18033 | fi | |
18034 | ||
10f2d63a | 18035 | if test "$wxUSE_FILE" = "yes"; then |
698dcdb6 | 18036 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18037 | #define wxUSE_FILE 1 |
18038 | EOF | |
18039 | ||
18040 | fi | |
18041 | ||
1e6feb95 VZ |
18042 | if test "$wxUSE_FFILE" = "yes"; then |
18043 | cat >> confdefs.h <<\EOF | |
18044 | #define wxUSE_FFILE 1 | |
18045 | EOF | |
18046 | ||
18047 | fi | |
18048 | ||
24528b0c | 18049 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
698dcdb6 | 18050 | cat >> confdefs.h <<\EOF |
24528b0c VS |
18051 | #define wxUSE_FILESYSTEM 1 |
18052 | EOF | |
18053 | ||
18054 | fi | |
18055 | ||
10f2d63a | 18056 | if test "$wxUSE_FS_INET" = "yes"; then |
698dcdb6 | 18057 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18058 | #define wxUSE_FS_INET 1 |
18059 | EOF | |
18060 | ||
18061 | fi | |
18062 | ||
18063 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
698dcdb6 | 18064 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18065 | #define wxUSE_FS_ZIP 1 |
18066 | EOF | |
18067 | ||
18068 | fi | |
18069 | ||
18070 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
698dcdb6 | 18071 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18072 | #define wxUSE_ZIPSTREAM 1 |
18073 | EOF | |
18074 | ||
18075 | fi | |
18076 | ||
eb4efbdc | 18077 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
698dcdb6 | 18078 | cat >> confdefs.h <<\EOF |
eb4efbdc VZ |
18079 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
18080 | EOF | |
18081 | ||
18082 | fi | |
18083 | ||
4f3c5f06 | 18084 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
698dcdb6 | 18085 | cat >> confdefs.h <<\EOF |
4f3c5f06 VZ |
18086 | #define wxUSE_SNGLINST_CHECKER 1 |
18087 | EOF | |
18088 | ||
18089 | fi | |
18090 | ||
10f2d63a | 18091 | if test "$wxUSE_BUSYINFO" = "yes"; then |
698dcdb6 | 18092 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18093 | #define wxUSE_BUSYINFO 1 |
18094 | EOF | |
18095 | ||
18096 | fi | |
18097 | ||
18098 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
698dcdb6 | 18099 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18100 | #define wxUSE_STD_IOSTREAM 1 |
18101 | EOF | |
18102 | ||
18103 | fi | |
18104 | ||
a3a584a7 VZ |
18105 | if test "$wxUSE_TEXTBUFFER" = "yes"; then |
18106 | cat >> confdefs.h <<\EOF | |
18107 | #define wxUSE_TEXTBUFFER 1 | |
18108 | EOF | |
18109 | ||
18110 | fi | |
18111 | ||
10f2d63a | 18112 | if test "$wxUSE_TEXTFILE" = "yes"; then |
a3a584a7 | 18113 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then |
156b2523 | 18114 | echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2 |
10f2d63a | 18115 | else |
698dcdb6 | 18116 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18117 | #define wxUSE_TEXTFILE 1 |
18118 | EOF | |
18119 | ||
18120 | fi | |
18121 | fi | |
18122 | ||
18123 | if test "$wxUSE_CONFIG" = "yes" ; then | |
18124 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
156b2523 | 18125 | echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2 |
10f2d63a | 18126 | else |
698dcdb6 | 18127 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18128 | #define wxUSE_CONFIG 1 |
18129 | EOF | |
18130 | ||
18131 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
18132 | fi | |
18133 | fi | |
18134 | ||
18135 | if test "$wxUSE_INTL" = "yes" ; then | |
18136 | if test "$wxUSE_FILE" != "yes"; then | |
156b2523 | 18137 | echo "configure: warning: I18n code requires wxFile... disabled" 1>&2 |
10f2d63a | 18138 | else |
698dcdb6 | 18139 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18140 | #define wxUSE_INTL 1 |
18141 | EOF | |
18142 | ||
18143 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
f6bcfd97 | 18144 | GUIDIST="$GUIDIST INTL_DIST" |
10f2d63a VZ |
18145 | fi |
18146 | fi | |
18147 | ||
18148 | if test "$wxUSE_LOG" = "yes"; then | |
698dcdb6 | 18149 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18150 | #define wxUSE_LOG 1 |
18151 | EOF | |
18152 | ||
d73be714 VZ |
18153 | |
18154 | if test "$wxUSE_LOGGUI" = "yes"; then | |
18155 | cat >> confdefs.h <<\EOF | |
18156 | #define wxUSE_LOGGUI 1 | |
18157 | EOF | |
18158 | ||
18159 | fi | |
18160 | ||
18161 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
18162 | cat >> confdefs.h <<\EOF | |
18163 | #define wxUSE_LOGWINDOW 1 | |
69d27ff7 MB |
18164 | EOF |
18165 | ||
18166 | fi | |
18167 | ||
18168 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
18169 | cat >> confdefs.h <<\EOF | |
18170 | #define wxUSE_LOG_DIALOG 1 | |
d73be714 VZ |
18171 | EOF |
18172 | ||
18173 | fi | |
10f2d63a VZ |
18174 | fi |
18175 | ||
18176 | if test "$wxUSE_LONGLONG" = "yes"; then | |
698dcdb6 | 18177 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18178 | #define wxUSE_LONGLONG 1 |
18179 | EOF | |
18180 | ||
18181 | fi | |
18182 | ||
e8f65ba6 | 18183 | if test "$wxUSE_GEOMETRY" = "yes"; then |
698dcdb6 | 18184 | cat >> confdefs.h <<\EOF |
e8f65ba6 RR |
18185 | #define wxUSE_GEOMETRY 1 |
18186 | EOF | |
18187 | ||
18188 | fi | |
18189 | ||
10f2d63a | 18190 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
698dcdb6 | 18191 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18192 | #define wxUSE_DIALUP_MANAGER 1 |
18193 | EOF | |
18194 | ||
70f7a477 | 18195 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
10f2d63a VZ |
18196 | fi |
18197 | ||
18198 | if test "$wxUSE_STREAMS" = "yes" ; then | |
698dcdb6 | 18199 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18200 | #define wxUSE_STREAMS 1 |
18201 | EOF | |
18202 | ||
18203 | fi | |
18204 | ||
1e487827 | 18205 | |
1e6feb95 | 18206 | if test "$wxUSE_DATETIME" = "yes"; then |
698dcdb6 | 18207 | for ac_func in strptime |
83307f33 | 18208 | do |
698dcdb6 | 18209 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
dfe8399a | 18210 | echo "configure:18211: checking for $ac_func" >&5 |
698dcdb6 VZ |
18211 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18212 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18213 | else | |
18214 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 18215 | #line 18216 "configure" |
83307f33 VZ |
18216 | #include "confdefs.h" |
18217 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 18218 | which can conflict with char $ac_func(); below. */ |
83307f33 VZ |
18219 | #include <assert.h> |
18220 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18221 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18222 | builtin and then its argument prototype would still apply. */ |
18223 | char $ac_func(); | |
18224 | ||
18225 | int main() { | |
83307f33 VZ |
18226 | |
18227 | /* The GNU C library defines this for functions which it implements | |
18228 | to always fail with ENOSYS. Some functions are actually named | |
18229 | something starting with __ and the normal name is an alias. */ | |
18230 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18231 | choke me | |
18232 | #else | |
698dcdb6 | 18233 | $ac_func(); |
83307f33 VZ |
18234 | #endif |
18235 | ||
698dcdb6 | 18236 | ; return 0; } |
83307f33 | 18237 | EOF |
dfe8399a | 18238 | if { (eval echo configure:18239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18239 | rm -rf conftest* |
18240 | eval "ac_cv_func_$ac_func=yes" | |
18241 | else | |
18242 | echo "configure: failed program was:" >&5 | |
18243 | cat conftest.$ac_ext >&5 | |
18244 | rm -rf conftest* | |
18245 | eval "ac_cv_func_$ac_func=no" | |
18246 | fi | |
18247 | rm -f conftest* | |
18248 | fi | |
83307f33 | 18249 | |
698dcdb6 VZ |
18250 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
18251 | echo "$ac_t""yes" 1>&6 | |
18252 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18253 | cat >> confdefs.h <<EOF | |
18254 | #define $ac_tr_func 1 | |
18255 | EOF | |
18256 | ||
18257 | else | |
18258 | echo "$ac_t""no" 1>&6 | |
83307f33 VZ |
18259 | fi |
18260 | done | |
18261 | ||
1e487827 | 18262 | |
698dcdb6 | 18263 | echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6 |
dfe8399a | 18264 | echo "configure:18265: checking for timezone variable in <time.h>" >&5 |
698dcdb6 VZ |
18265 | if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then |
18266 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18267 | else | |
18268 | ||
18269 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 18270 | #line 18271 "configure" |
360d6699 VZ |
18271 | #include "confdefs.h" |
18272 | ||
b4085ce6 | 18273 | #include <time.h> |
698dcdb6 VZ |
18274 | |
18275 | int main() { | |
360d6699 VZ |
18276 | |
18277 | int tz; | |
4f11a343 | 18278 | tz = timezone; |
698dcdb6 VZ |
18279 | |
18280 | ; return 0; } | |
18281 | EOF | |
dfe8399a | 18282 | if { (eval echo configure:18283: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
18283 | rm -rf conftest* |
18284 | ||
4f11a343 | 18285 | wx_cv_var_timezone=timezone |
698dcdb6 | 18286 | |
360d6699 | 18287 | else |
698dcdb6 VZ |
18288 | echo "configure: failed program was:" >&5 |
18289 | cat conftest.$ac_ext >&5 | |
18290 | rm -rf conftest* | |
18291 | ||
18292 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 18293 | #line 18294 "configure" |
360d6699 VZ |
18294 | #include "confdefs.h" |
18295 | ||
b4085ce6 | 18296 | #include <time.h> |
698dcdb6 VZ |
18297 | |
18298 | int main() { | |
360d6699 VZ |
18299 | |
18300 | int tz; | |
18301 | tz = _timezone; | |
698dcdb6 VZ |
18302 | |
18303 | ; return 0; } | |
18304 | EOF | |
dfe8399a | 18305 | if { (eval echo configure:18306: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
18306 | rm -rf conftest* |
18307 | ||
360d6699 | 18308 | wx_cv_var_timezone=_timezone |
698dcdb6 | 18309 | |
5357c8e8 | 18310 | else |
698dcdb6 VZ |
18311 | echo "configure: failed program was:" >&5 |
18312 | cat conftest.$ac_ext >&5 | |
18313 | rm -rf conftest* | |
18314 | ||
18315 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 18316 | #line 18317 "configure" |
5357c8e8 VZ |
18317 | #include "confdefs.h" |
18318 | ||
b4085ce6 | 18319 | #include <time.h> |
698dcdb6 VZ |
18320 | |
18321 | int main() { | |
5357c8e8 VZ |
18322 | |
18323 | int tz; | |
4f11a343 | 18324 | tz = __timezone; |
698dcdb6 VZ |
18325 | |
18326 | ; return 0; } | |
18327 | EOF | |
dfe8399a | 18328 | if { (eval echo configure:18329: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
18329 | rm -rf conftest* |
18330 | ||
4f11a343 | 18331 | wx_cv_var_timezone=__timezone |
698dcdb6 | 18332 | |
360d6699 | 18333 | else |
698dcdb6 VZ |
18334 | echo "configure: failed program was:" >&5 |
18335 | cat conftest.$ac_ext >&5 | |
18336 | rm -rf conftest* | |
f9bc1684 VS |
18337 | |
18338 | if test "$USE_DOS" = 0 ; then | |
18339 | { echo "configure: error: no timezone variable" 1>&2; exit 1; } | |
18340 | fi | |
18341 | ||
698dcdb6 | 18342 | |
360d6699 | 18343 | fi |
698dcdb6 VZ |
18344 | rm -f conftest* |
18345 | ||
18346 | ||
360d6699 | 18347 | fi |
698dcdb6 VZ |
18348 | rm -f conftest* |
18349 | ||
18350 | ||
6232543b | 18351 | fi |
698dcdb6 VZ |
18352 | rm -f conftest* |
18353 | ||
18354 | ||
1e487827 | 18355 | fi |
703e0a69 | 18356 | |
698dcdb6 VZ |
18357 | echo "$ac_t""$wx_cv_var_timezone" 1>&6 |
18358 | ||
f9bc1684 | 18359 | if test "x$wx_cv_var_timezone" != x ; then |
698dcdb6 | 18360 | cat >> confdefs.h <<EOF |
360d6699 VZ |
18361 | #define WX_TIMEZONE $wx_cv_var_timezone |
18362 | EOF | |
18363 | ||
f9bc1684 | 18364 | fi |
698dcdb6 VZ |
18365 | |
18366 | for ac_func in localtime | |
afc31813 | 18367 | do |
698dcdb6 | 18368 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
dfe8399a | 18369 | echo "configure:18370: checking for $ac_func" >&5 |
698dcdb6 VZ |
18370 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18371 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18372 | else | |
18373 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 18374 | #line 18375 "configure" |
10f2d63a | 18375 | #include "confdefs.h" |
afc31813 | 18376 | /* System header to define __stub macros and hopefully few prototypes, |
698dcdb6 | 18377 | which can conflict with char $ac_func(); below. */ |
afc31813 VZ |
18378 | #include <assert.h> |
18379 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18380 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18381 | builtin and then its argument prototype would still apply. */ |
18382 | char $ac_func(); | |
18383 | ||
18384 | int main() { | |
afc31813 VZ |
18385 | |
18386 | /* The GNU C library defines this for functions which it implements | |
18387 | to always fail with ENOSYS. Some functions are actually named | |
18388 | something starting with __ and the normal name is an alias. */ | |
18389 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18390 | choke me | |
18391 | #else | |
698dcdb6 | 18392 | $ac_func(); |
afc31813 VZ |
18393 | #endif |
18394 | ||
698dcdb6 | 18395 | ; return 0; } |
10f2d63a | 18396 | EOF |
dfe8399a | 18397 | if { (eval echo configure:18398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18398 | rm -rf conftest* |
18399 | eval "ac_cv_func_$ac_func=yes" | |
18400 | else | |
18401 | echo "configure: failed program was:" >&5 | |
18402 | cat conftest.$ac_ext >&5 | |
18403 | rm -rf conftest* | |
18404 | eval "ac_cv_func_$ac_func=no" | |
18405 | fi | |
18406 | rm -f conftest* | |
18407 | fi | |
afc31813 | 18408 | |
698dcdb6 VZ |
18409 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
18410 | echo "$ac_t""yes" 1>&6 | |
18411 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18412 | cat >> confdefs.h <<EOF | |
18413 | #define $ac_tr_func 1 | |
18414 | EOF | |
18415 | ||
18416 | else | |
18417 | echo "$ac_t""no" 1>&6 | |
afc31813 VZ |
18418 | fi |
18419 | done | |
18420 | ||
1e487827 | 18421 | |
698dcdb6 VZ |
18422 | if test "$ac_cv_func_localtime" = "yes"; then |
18423 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 | |
dfe8399a | 18424 | echo "configure:18425: checking for tm_gmtoff in struct tm" >&5 |
698dcdb6 VZ |
18425 | if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then |
18426 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18427 | else | |
18428 | ||
18429 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 18430 | #line 18431 "configure" |
0470b1e6 VZ |
18431 | #include "confdefs.h" |
18432 | ||
b4085ce6 | 18433 | #include <time.h> |
698dcdb6 VZ |
18434 | |
18435 | int main() { | |
0470b1e6 VZ |
18436 | |
18437 | struct tm tm; | |
18438 | tm.tm_gmtoff++; | |
698dcdb6 VZ |
18439 | |
18440 | ; return 0; } | |
18441 | EOF | |
dfe8399a | 18442 | if { (eval echo configure:18443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
18443 | rm -rf conftest* |
18444 | ||
f03a98d8 | 18445 | wx_cv_struct_tm_has_gmtoff=yes |
698dcdb6 | 18446 | |
0470b1e6 | 18447 | else |
698dcdb6 VZ |
18448 | echo "configure: failed program was:" >&5 |
18449 | cat conftest.$ac_ext >&5 | |
18450 | rm -rf conftest* | |
18451 | wx_cv_struct_tm_has_gmtoff=no | |
18452 | ||
0470b1e6 | 18453 | fi |
698dcdb6 VZ |
18454 | rm -f conftest* |
18455 | ||
1e487827 | 18456 | fi |
698dcdb6 VZ |
18457 | |
18458 | echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6 | |
6232543b VS |
18459 | fi |
18460 | ||
18461 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
698dcdb6 | 18462 | cat >> confdefs.h <<\EOF |
6232543b VS |
18463 | #define WX_GMTOFF_IN_TM 1 |
18464 | EOF | |
0470b1e6 | 18465 | |
3fcdd07b VZ |
18466 | fi |
18467 | ||
698dcdb6 | 18468 | for ac_func in gettimeofday ftime |
3fcdd07b | 18469 | do |
698dcdb6 | 18470 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
dfe8399a | 18471 | echo "configure:18472: checking for $ac_func" >&5 |
698dcdb6 VZ |
18472 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18473 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18474 | else | |
18475 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 18476 | #line 18477 "configure" |
3fcdd07b VZ |
18477 | #include "confdefs.h" |
18478 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 18479 | which can conflict with char $ac_func(); below. */ |
3fcdd07b VZ |
18480 | #include <assert.h> |
18481 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18482 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18483 | builtin and then its argument prototype would still apply. */ |
18484 | char $ac_func(); | |
18485 | ||
18486 | int main() { | |
3fcdd07b VZ |
18487 | |
18488 | /* The GNU C library defines this for functions which it implements | |
18489 | to always fail with ENOSYS. Some functions are actually named | |
18490 | something starting with __ and the normal name is an alias. */ | |
18491 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18492 | choke me | |
18493 | #else | |
698dcdb6 | 18494 | $ac_func(); |
3fcdd07b VZ |
18495 | #endif |
18496 | ||
698dcdb6 VZ |
18497 | ; return 0; } |
18498 | EOF | |
dfe8399a | 18499 | if { (eval echo configure:18500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18500 | rm -rf conftest* |
18501 | eval "ac_cv_func_$ac_func=yes" | |
18502 | else | |
18503 | echo "configure: failed program was:" >&5 | |
18504 | cat conftest.$ac_ext >&5 | |
18505 | rm -rf conftest* | |
18506 | eval "ac_cv_func_$ac_func=no" | |
18507 | fi | |
18508 | rm -f conftest* | |
18509 | fi | |
18510 | ||
18511 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18512 | echo "$ac_t""yes" 1>&6 | |
18513 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18514 | cat >> confdefs.h <<EOF | |
18515 | #define $ac_tr_func 1 | |
3fcdd07b VZ |
18516 | EOF |
18517 | break | |
698dcdb6 VZ |
18518 | else |
18519 | echo "$ac_t""no" 1>&6 | |
3fcdd07b VZ |
18520 | fi |
18521 | done | |
18522 | ||
afc31813 | 18523 | |
698dcdb6 VZ |
18524 | if test "$ac_cv_func_gettimeofday" = "yes"; then |
18525 | echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6 | |
dfe8399a | 18526 | echo "configure:18527: checking whether gettimeofday takes two arguments" >&5 |
698dcdb6 VZ |
18527 | if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then |
18528 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18529 | else | |
18530 | ||
18531 | ||
18532 | ac_ext=C | |
18533 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 18534 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
18535 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
18536 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
18537 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 18538 | |
698dcdb6 VZ |
18539 | |
18540 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 18541 | #line 18542 "configure" |
10f2d63a | 18542 | #include "confdefs.h" |
afc31813 VZ |
18543 | |
18544 | #include <sys/time.h> | |
18545 | #include <unistd.h> | |
698dcdb6 VZ |
18546 | |
18547 | int main() { | |
afc31813 VZ |
18548 | |
18549 | struct timeval tv; | |
776862b4 | 18550 | gettimeofday(&tv, NULL); |
698dcdb6 VZ |
18551 | |
18552 | ; return 0; } | |
18553 | EOF | |
dfe8399a | 18554 | if { (eval echo configure:18555: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 18555 | rm -rf conftest* |
afc31813 | 18556 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a | 18557 | else |
698dcdb6 VZ |
18558 | echo "configure: failed program was:" >&5 |
18559 | cat conftest.$ac_ext >&5 | |
18560 | rm -rf conftest* | |
18561 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 18562 | #line 18563 "configure" |
10f2d63a | 18563 | #include "confdefs.h" |
afc31813 VZ |
18564 | |
18565 | #include <sys/time.h> | |
18566 | #include <unistd.h> | |
698dcdb6 VZ |
18567 | |
18568 | int main() { | |
afc31813 VZ |
18569 | |
18570 | struct timeval tv; | |
18571 | gettimeofday(&tv); | |
698dcdb6 VZ |
18572 | |
18573 | ; return 0; } | |
18574 | EOF | |
dfe8399a | 18575 | if { (eval echo configure:18576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 18576 | rm -rf conftest* |
afc31813 | 18577 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a | 18578 | else |
698dcdb6 VZ |
18579 | echo "configure: failed program was:" >&5 |
18580 | cat conftest.$ac_ext >&5 | |
18581 | rm -rf conftest* | |
776862b4 VZ |
18582 | |
18583 | echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2 | |
18584 | wx_cv_func_gettimeofday_has_2_args=unknown | |
18585 | ||
698dcdb6 | 18586 | |
10f2d63a | 18587 | fi |
698dcdb6 VZ |
18588 | rm -f conftest* |
18589 | ||
10f2d63a | 18590 | fi |
698dcdb6 | 18591 | rm -f conftest* |
afc31813 | 18592 | ac_ext=c |
698dcdb6 | 18593 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 18594 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
18595 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
18596 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
18597 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a | 18598 | |
698dcdb6 | 18599 | |
afc31813 | 18600 | fi |
698dcdb6 VZ |
18601 | |
18602 | echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6 | |
c63c7106 | 18603 | |
afc31813 | 18604 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
698dcdb6 | 18605 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
18606 | #define WX_GETTIMEOFDAY_NO_TZ 1 |
18607 | EOF | |
18608 | ||
18609 | fi | |
18610 | fi | |
18611 | ||
698dcdb6 | 18612 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
18613 | #define wxUSE_TIMEDATE 1 |
18614 | EOF | |
18615 | ||
18616 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
18617 | fi | |
18618 | ||
698dcdb6 | 18619 | |
0feee163 VZ |
18620 | if test "$wxUSE_SOCKETS" = "yes"; then |
18621 | if test "$TOOLKIT" = "X11"; then | |
18622 | echo "configure: warning: wxSocket not yet supported under X11... disabled" 1>&2 | |
18623 | wxUSE_SOCKETS="no" | |
18624 | fi | |
18625 | fi | |
b089607b | 18626 | |
0feee163 VZ |
18627 | if test "$wxUSE_SOCKETS" = "yes"; then |
18628 | if test "$TOOLKIT" != "MSW"; then | |
3a922bb4 | 18629 | echo $ac_n "checking for socket""... $ac_c" 1>&6 |
dfe8399a | 18630 | echo "configure:18631: checking for socket" >&5 |
698dcdb6 VZ |
18631 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
18632 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 18633 | else |
698dcdb6 | 18634 | cat > conftest.$ac_ext <<EOF |
dfe8399a | 18635 | #line 18636 "configure" |
c63c7106 VZ |
18636 | #include "confdefs.h" |
18637 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 18638 | which can conflict with char socket(); below. */ |
c63c7106 VZ |
18639 | #include <assert.h> |
18640 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18641 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18642 | builtin and then its argument prototype would still apply. */ |
18643 | char socket(); | |
18644 | ||
18645 | int main() { | |
c63c7106 VZ |
18646 | |
18647 | /* The GNU C library defines this for functions which it implements | |
18648 | to always fail with ENOSYS. Some functions are actually named | |
18649 | something starting with __ and the normal name is an alias. */ | |
18650 | #if defined (__stub_socket) || defined (__stub___socket) | |
18651 | choke me | |
18652 | #else | |
698dcdb6 | 18653 | socket(); |
c63c7106 VZ |
18654 | #endif |
18655 | ||
698dcdb6 VZ |
18656 | ; return 0; } |
18657 | EOF | |
dfe8399a | 18658 | if { (eval echo configure:18659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18659 | rm -rf conftest* |
18660 | eval "ac_cv_func_socket=yes" | |
18661 | else | |
18662 | echo "configure: failed program was:" >&5 | |
18663 | cat conftest.$ac_ext >&5 | |
18664 | rm -rf conftest* | |
18665 | eval "ac_cv_func_socket=no" | |
18666 | fi | |
18667 | rm -f conftest* | |
18668 | fi | |
18669 | ||
18670 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
18671 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
18672 | : |
18673 | else | |
698dcdb6 VZ |
18674 | echo "$ac_t""no" 1>&6 |
18675 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
dfe8399a | 18676 | echo "configure:18677: checking for socket in -lsocket" >&5 |
698dcdb6 VZ |
18677 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
18678 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18679 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 18680 | else |
698dcdb6 | 18681 | ac_save_LIBS="$LIBS" |
c63c7106 | 18682 | LIBS="-lsocket $LIBS" |
698dcdb6 | 18683 | cat > conftest.$ac_ext <<EOF |
dfe8399a | 18684 | #line 18685 "configure" |
c63c7106 VZ |
18685 | #include "confdefs.h" |
18686 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18687 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18688 | builtin and then its argument prototype would still apply. */ |
18689 | char socket(); | |
18690 | ||
18691 | int main() { | |
18692 | socket() | |
18693 | ; return 0; } | |
18694 | EOF | |
dfe8399a | 18695 | if { (eval echo configure:18696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18696 | rm -rf conftest* |
18697 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18698 | else | |
18699 | echo "configure: failed program was:" >&5 | |
18700 | cat conftest.$ac_ext >&5 | |
18701 | rm -rf conftest* | |
18702 | eval "ac_cv_lib_$ac_lib_var=no" | |
18703 | fi | |
18704 | rm -f conftest* | |
18705 | LIBS="$ac_save_LIBS" | |
18706 | ||
18707 | fi | |
18708 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18709 | echo "$ac_t""yes" 1>&6 | |
d558c907 VS |
18710 | if test "$INET_LINK" != " -lsocket"; then |
18711 | INET_LINK="$INET_LINK -lsocket" | |
18712 | fi | |
c63c7106 | 18713 | else |
698dcdb6 | 18714 | echo "$ac_t""no" 1>&6 |
afc31813 | 18715 | |
3a922bb4 RL |
18716 | echo "configure: warning: socket library not found - sockets will be disabled" 1>&2 |
18717 | wxUSE_SOCKETS=no | |
18718 | ||
698dcdb6 | 18719 | |
6232543b | 18720 | fi |
b089607b | 18721 | |
3a922bb4 | 18722 | |
1e487827 | 18723 | fi |
afc31813 | 18724 | |
3a922bb4 | 18725 | fi |
0feee163 | 18726 | fi |
51a9faba | 18727 | |
0feee163 VZ |
18728 | if test "$wxUSE_SOCKETS" = "yes" ; then |
18729 | if test "$TOOLKIT" != "MSW"; then | |
3a922bb4 | 18730 | echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6 |
dfe8399a | 18731 | echo "configure:18732: checking what is the type of the third argument of getsockname" >&5 |
698dcdb6 VZ |
18732 | if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then |
18733 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18734 | else | |
18735 | ||
3a922bb4 RL |
18736 | |
18737 | ac_ext=C | |
698dcdb6 | 18738 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
1e487827 | 18739 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
18740 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
18741 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
18742 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 18743 | |
698dcdb6 | 18744 | |
3a922bb4 | 18745 | cat > conftest.$ac_ext <<EOF |
dfe8399a | 18746 | #line 18747 "configure" |
afc31813 | 18747 | #include "confdefs.h" |
51a9faba | 18748 | |
3a922bb4 RL |
18749 | #include <sys/types.h> |
18750 | #include <sys/socket.h> | |
18751 | ||
698dcdb6 | 18752 | int main() { |
51a9faba | 18753 | |
3a922bb4 RL |
18754 | socklen_t len; |
18755 | getsockname(0, 0, &len); | |
18756 | ||
698dcdb6 VZ |
18757 | ; return 0; } |
18758 | EOF | |
dfe8399a | 18759 | if { (eval echo configure:18760: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 18760 | rm -rf conftest* |
51a9faba | 18761 | wx_cv_type_getsockname3=socklen_t |
afc31813 | 18762 | else |
698dcdb6 VZ |
18763 | echo "configure: failed program was:" >&5 |
18764 | cat conftest.$ac_ext >&5 | |
18765 | rm -rf conftest* | |
18766 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 18767 | #line 18768 "configure" |
afc31813 | 18768 | #include "confdefs.h" |
51a9faba | 18769 | |
3a922bb4 RL |
18770 | #include <sys/types.h> |
18771 | #include <sys/socket.h> | |
18772 | ||
698dcdb6 | 18773 | int main() { |
51a9faba | 18774 | |
3a922bb4 RL |
18775 | size_t len; |
18776 | getsockname(0, 0, &len); | |
18777 | ||
698dcdb6 VZ |
18778 | ; return 0; } |
18779 | EOF | |
dfe8399a | 18780 | if { (eval echo configure:18781: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 18781 | rm -rf conftest* |
51a9faba | 18782 | wx_cv_type_getsockname3=size_t |
afc31813 | 18783 | else |
698dcdb6 VZ |
18784 | echo "configure: failed program was:" >&5 |
18785 | cat conftest.$ac_ext >&5 | |
18786 | rm -rf conftest* | |
18787 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 18788 | #line 18789 "configure" |
afc31813 | 18789 | #include "confdefs.h" |
51a9faba | 18790 | |
3a922bb4 RL |
18791 | #include <sys/types.h> |
18792 | #include <sys/socket.h> | |
18793 | ||
698dcdb6 | 18794 | int main() { |
51a9faba | 18795 | |
3a922bb4 RL |
18796 | int len; |
18797 | getsockname(0, 0, &len); | |
18798 | ||
698dcdb6 VZ |
18799 | ; return 0; } |
18800 | EOF | |
dfe8399a | 18801 | if { (eval echo configure:18802: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 18802 | rm -rf conftest* |
51a9faba | 18803 | wx_cv_type_getsockname3=int |
afc31813 | 18804 | else |
698dcdb6 VZ |
18805 | echo "configure: failed program was:" >&5 |
18806 | cat conftest.$ac_ext >&5 | |
18807 | rm -rf conftest* | |
18808 | wx_cv_type_getsockname3=unknown | |
3a922bb4 | 18809 | |
afc31813 | 18810 | fi |
698dcdb6 | 18811 | rm -f conftest* |
3a922bb4 | 18812 | |
afc31813 | 18813 | fi |
698dcdb6 | 18814 | rm -f conftest* |
3a922bb4 | 18815 | |
afc31813 | 18816 | fi |
698dcdb6 | 18817 | rm -f conftest* |
51a9faba | 18818 | |
3a922bb4 | 18819 | ac_ext=c |
698dcdb6 | 18820 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
afc31813 | 18821 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
18822 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
18823 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
18824 | cross_compiling=$ac_cv_prog_cc_cross | |
afc31813 | 18825 | |
3a922bb4 | 18826 | |
51a9faba | 18827 | fi |
698dcdb6 VZ |
18828 | |
18829 | echo "$ac_t""$wx_cv_type_getsockname3" 1>&6 | |
51a9faba | 18830 | |
3a922bb4 RL |
18831 | if test "$wx_cv_type_getsockname3" = "unknown"; then |
18832 | wxUSE_SOCKETS=no | |
18833 | echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2 | |
18834 | else | |
18835 | cat >> confdefs.h <<EOF | |
51a9faba VZ |
18836 | #define SOCKLEN_T $wx_cv_type_getsockname3 |
18837 | EOF | |
18838 | ||
3a922bb4 | 18839 | fi |
51a9faba VZ |
18840 | fi |
18841 | fi | |
afc31813 | 18842 | |
51a9faba | 18843 | if test "$wxUSE_SOCKETS" = "yes" ; then |
698dcdb6 | 18844 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
18845 | #define wxUSE_SOCKETS 1 |
18846 | EOF | |
18847 | ||
70f7a477 | 18848 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
afc31813 VZ |
18849 | fi |
18850 | ||
698dcdb6 | 18851 | |
dc3d889d VZ |
18852 | if test "$wxUSE_GUI" = "yes"; then |
18853 | ||
156b2523 GD |
18854 | if test "$TOOLKIT" = "MAC"; then |
18855 | echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2 | |
18856 | wxUSE_JOYSTICK=no | |
18857 | fi | |
18858 | if test "$TOOLKIT" = "MOTIF"; then | |
18859 | echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2 | |
18860 | wxUSE_JOYSTICK=no | |
f79bd02d JS |
18861 | fi |
18862 | if test "$TOOLKIT" = "X11"; then | |
18863 | echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2 | |
18864 | wxUSE_JOYSTICK=no | |
156b2523 GD |
18865 | fi |
18866 | ||
3a922bb4 RL |
18867 | if test "$TOOLKIT" != "MSW"; then |
18868 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
18869 | for ac_hdr in linux/joystick.h | |
10f2d63a | 18870 | do |
698dcdb6 VZ |
18871 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
18872 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
dfe8399a | 18873 | echo "configure:18874: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
18874 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
18875 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18876 | else | |
18877 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 18878 | #line 18879 "configure" |
10f2d63a | 18879 | #include "confdefs.h" |
698dcdb6 VZ |
18880 | #include <$ac_hdr> |
18881 | EOF | |
18882 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
dfe8399a | 18883 | { (eval echo configure:18884: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
18884 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
18885 | if test -z "$ac_err"; then | |
18886 | rm -rf conftest* | |
18887 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 18888 | else |
698dcdb6 VZ |
18889 | echo "$ac_err" >&5 |
18890 | echo "configure: failed program was:" >&5 | |
10f2d63a | 18891 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
18892 | rm -rf conftest* |
18893 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 18894 | fi |
698dcdb6 | 18895 | rm -f conftest* |
10f2d63a | 18896 | fi |
698dcdb6 VZ |
18897 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
18898 | echo "$ac_t""yes" 1>&6 | |
18899 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
18900 | cat >> confdefs.h <<EOF | |
18901 | #define $ac_tr_hdr 1 | |
10f2d63a | 18902 | EOF |
698dcdb6 VZ |
18903 | |
18904 | else | |
18905 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
18906 | fi |
18907 | done | |
18908 | ||
3a922bb4 RL |
18909 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then |
18910 | wxUSE_JOYSTICK=no | |
156b2523 | 18911 | echo "configure: warning: Joystick not supported by this system... disabled" 1>&2 |
3a922bb4 RL |
18912 | fi |
18913 | fi | |
18914 | fi | |
b089607b | 18915 | |
3a922bb4 RL |
18916 | if test "$wxUSE_JOYSTICK" = "yes"; then |
18917 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
18918 | #define wxUSE_JOYSTICK 1 |
18919 | EOF | |
18920 | ||
3a922bb4 RL |
18921 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
18922 | fi | |
dc3d889d VZ |
18923 | fi |
18924 | ||
698dcdb6 | 18925 | |
b089607b VZ |
18926 | if test "$TOOLKIT" != "MSW"; then |
18927 | ||
3a922bb4 RL |
18928 | HAVE_DL_FUNCS=0 |
18929 | HAVE_SHL_FUNCS=0 | |
0b9ab0bd | 18930 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then |
3a922bb4 RL |
18931 | if test "$USE_DARWIN" = 1; then |
18932 | HAVE_DL_FUNCS=1 | |
18933 | else | |
18934 | for ac_func in dlopen | |
10f2d63a | 18935 | do |
698dcdb6 | 18936 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
dfe8399a | 18937 | echo "configure:18938: checking for $ac_func" >&5 |
698dcdb6 VZ |
18938 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18939 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18940 | else | |
18941 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 18942 | #line 18943 "configure" |
10f2d63a VZ |
18943 | #include "confdefs.h" |
18944 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 18945 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
18946 | #include <assert.h> |
18947 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18948 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18949 | builtin and then its argument prototype would still apply. */ |
18950 | char $ac_func(); | |
18951 | ||
18952 | int main() { | |
10f2d63a VZ |
18953 | |
18954 | /* The GNU C library defines this for functions which it implements | |
18955 | to always fail with ENOSYS. Some functions are actually named | |
18956 | something starting with __ and the normal name is an alias. */ | |
18957 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18958 | choke me | |
18959 | #else | |
698dcdb6 | 18960 | $ac_func(); |
10f2d63a VZ |
18961 | #endif |
18962 | ||
698dcdb6 VZ |
18963 | ; return 0; } |
18964 | EOF | |
dfe8399a | 18965 | if { (eval echo configure:18966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18966 | rm -rf conftest* |
18967 | eval "ac_cv_func_$ac_func=yes" | |
18968 | else | |
18969 | echo "configure: failed program was:" >&5 | |
18970 | cat conftest.$ac_ext >&5 | |
18971 | rm -rf conftest* | |
18972 | eval "ac_cv_func_$ac_func=no" | |
18973 | fi | |
18974 | rm -f conftest* | |
18975 | fi | |
18976 | ||
18977 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18978 | echo "$ac_t""yes" 1>&6 | |
18979 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18980 | cat >> confdefs.h <<EOF | |
18981 | #define $ac_tr_func 1 | |
18982 | EOF | |
18983 | ||
3a922bb4 | 18984 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18985 | #define HAVE_DLOPEN 1 |
18986 | EOF | |
18987 | ||
3a922bb4 RL |
18988 | HAVE_DL_FUNCS=1 |
18989 | ||
10f2d63a | 18990 | else |
698dcdb6 VZ |
18991 | echo "$ac_t""no" 1>&6 |
18992 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
dfe8399a | 18993 | echo "configure:18994: checking for dlopen in -ldl" >&5 |
698dcdb6 VZ |
18994 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
18995 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18996 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 18997 | else |
698dcdb6 | 18998 | ac_save_LIBS="$LIBS" |
10f2d63a | 18999 | LIBS="-ldl $LIBS" |
698dcdb6 | 19000 | cat > conftest.$ac_ext <<EOF |
dfe8399a | 19001 | #line 19002 "configure" |
10f2d63a VZ |
19002 | #include "confdefs.h" |
19003 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19004 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
19005 | builtin and then its argument prototype would still apply. */ |
19006 | char dlopen(); | |
19007 | ||
19008 | int main() { | |
19009 | dlopen() | |
19010 | ; return 0; } | |
19011 | EOF | |
dfe8399a | 19012 | if { (eval echo configure:19013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
19013 | rm -rf conftest* |
19014 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19015 | else | |
19016 | echo "configure: failed program was:" >&5 | |
19017 | cat conftest.$ac_ext >&5 | |
19018 | rm -rf conftest* | |
19019 | eval "ac_cv_lib_$ac_lib_var=no" | |
19020 | fi | |
19021 | rm -f conftest* | |
19022 | LIBS="$ac_save_LIBS" | |
19023 | ||
19024 | fi | |
19025 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19026 | echo "$ac_t""yes" 1>&6 | |
19027 | ||
3a922bb4 | 19028 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19029 | #define HAVE_DLOPEN 1 |
19030 | EOF | |
19031 | ||
3a922bb4 | 19032 | HAVE_DL_FUNCS=1 |
3d63bc3a | 19033 | DL_LINK=" -ldl$DL_LINK" |
3a922bb4 | 19034 | |
10f2d63a | 19035 | else |
698dcdb6 | 19036 | echo "$ac_t""no" 1>&6 |
10f2d63a | 19037 | |
3a922bb4 | 19038 | for ac_func in shl_load |
10f2d63a | 19039 | do |
698dcdb6 | 19040 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
dfe8399a | 19041 | echo "configure:19042: checking for $ac_func" >&5 |
698dcdb6 VZ |
19042 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
19043 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19044 | else | |
19045 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 19046 | #line 19047 "configure" |
10f2d63a VZ |
19047 | #include "confdefs.h" |
19048 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 19049 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
19050 | #include <assert.h> |
19051 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19052 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
19053 | builtin and then its argument prototype would still apply. */ |
19054 | char $ac_func(); | |
19055 | ||
19056 | int main() { | |
10f2d63a VZ |
19057 | |
19058 | /* The GNU C library defines this for functions which it implements | |
19059 | to always fail with ENOSYS. Some functions are actually named | |
19060 | something starting with __ and the normal name is an alias. */ | |
19061 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19062 | choke me | |
19063 | #else | |
698dcdb6 | 19064 | $ac_func(); |
10f2d63a VZ |
19065 | #endif |
19066 | ||
698dcdb6 VZ |
19067 | ; return 0; } |
19068 | EOF | |
dfe8399a | 19069 | if { (eval echo configure:19070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
19070 | rm -rf conftest* |
19071 | eval "ac_cv_func_$ac_func=yes" | |
19072 | else | |
19073 | echo "configure: failed program was:" >&5 | |
19074 | cat conftest.$ac_ext >&5 | |
19075 | rm -rf conftest* | |
19076 | eval "ac_cv_func_$ac_func=no" | |
19077 | fi | |
19078 | rm -f conftest* | |
19079 | fi | |
19080 | ||
19081 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
19082 | echo "$ac_t""yes" 1>&6 | |
19083 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19084 | cat >> confdefs.h <<EOF | |
19085 | #define $ac_tr_func 1 | |
19086 | EOF | |
19087 | ||
3a922bb4 | 19088 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19089 | #define HAVE_SHL_LOAD 1 |
19090 | EOF | |
19091 | ||
3a922bb4 RL |
19092 | HAVE_SHL_FUNCS=1 |
19093 | ||
10f2d63a | 19094 | else |
698dcdb6 VZ |
19095 | echo "$ac_t""no" 1>&6 |
19096 | echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6 | |
dfe8399a | 19097 | echo "configure:19098: checking for dld in -lshl_load" >&5 |
698dcdb6 VZ |
19098 | ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'` |
19099 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19100 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 19101 | else |
698dcdb6 | 19102 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 19103 | LIBS="-lshl_load $LIBS" |
698dcdb6 | 19104 | cat > conftest.$ac_ext <<EOF |
dfe8399a | 19105 | #line 19106 "configure" |
f6bcfd97 BP |
19106 | #include "confdefs.h" |
19107 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19108 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
19109 | builtin and then its argument prototype would still apply. */ |
19110 | char dld(); | |
19111 | ||
19112 | int main() { | |
19113 | dld() | |
19114 | ; return 0; } | |
19115 | EOF | |
dfe8399a | 19116 | if { (eval echo configure:19117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
19117 | rm -rf conftest* |
19118 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19119 | else | |
19120 | echo "configure: failed program was:" >&5 | |
19121 | cat conftest.$ac_ext >&5 | |
19122 | rm -rf conftest* | |
19123 | eval "ac_cv_lib_$ac_lib_var=no" | |
19124 | fi | |
19125 | rm -f conftest* | |
19126 | LIBS="$ac_save_LIBS" | |
f6bcfd97 | 19127 | |
698dcdb6 VZ |
19128 | fi |
19129 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19130 | echo "$ac_t""yes" 1>&6 | |
19131 | ||
3a922bb4 | 19132 | HAVE_SHL_FUNCS=1 |
3d63bc3a | 19133 | DL_LINK=" -ldld$DL_LINK" |
3a922bb4 | 19134 | |
698dcdb6 VZ |
19135 | else |
19136 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
19137 | fi |
19138 | ||
3a922bb4 | 19139 | |
10f2d63a VZ |
19140 | fi |
19141 | done | |
19142 | ||
3a922bb4 | 19143 | |
10f2d63a VZ |
19144 | fi |
19145 | ||
3a922bb4 | 19146 | |
10f2d63a VZ |
19147 | fi |
19148 | done | |
19149 | ||
1e487827 | 19150 | |
3a922bb4 RL |
19151 | if test "$HAVE_DL_FUNCS" = 1; then |
19152 | for ac_func in dlerror | |
f6bcfd97 | 19153 | do |
698dcdb6 | 19154 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
dfe8399a | 19155 | echo "configure:19156: checking for $ac_func" >&5 |
698dcdb6 VZ |
19156 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
19157 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19158 | else | |
19159 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 19160 | #line 19161 "configure" |
f6bcfd97 BP |
19161 | #include "confdefs.h" |
19162 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 19163 | which can conflict with char $ac_func(); below. */ |
f6bcfd97 BP |
19164 | #include <assert.h> |
19165 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19166 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
19167 | builtin and then its argument prototype would still apply. */ |
19168 | char $ac_func(); | |
19169 | ||
19170 | int main() { | |
f6bcfd97 BP |
19171 | |
19172 | /* The GNU C library defines this for functions which it implements | |
19173 | to always fail with ENOSYS. Some functions are actually named | |
19174 | something starting with __ and the normal name is an alias. */ | |
19175 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19176 | choke me | |
19177 | #else | |
698dcdb6 | 19178 | $ac_func(); |
f6bcfd97 BP |
19179 | #endif |
19180 | ||
698dcdb6 VZ |
19181 | ; return 0; } |
19182 | EOF | |
dfe8399a | 19183 | if { (eval echo configure:19184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
19184 | rm -rf conftest* |
19185 | eval "ac_cv_func_$ac_func=yes" | |
19186 | else | |
19187 | echo "configure: failed program was:" >&5 | |
19188 | cat conftest.$ac_ext >&5 | |
19189 | rm -rf conftest* | |
19190 | eval "ac_cv_func_$ac_func=no" | |
19191 | fi | |
19192 | rm -f conftest* | |
19193 | fi | |
19194 | ||
19195 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
19196 | echo "$ac_t""yes" 1>&6 | |
19197 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19198 | cat >> confdefs.h <<EOF | |
19199 | #define $ac_tr_func 1 | |
19200 | EOF | |
19201 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
19202 | #define HAVE_DLERROR 1 |
19203 | EOF | |
19204 | ||
19205 | else | |
698dcdb6 VZ |
19206 | echo "$ac_t""no" 1>&6 |
19207 | echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6 | |
dfe8399a | 19208 | echo "configure:19209: checking for dlerror in -ldl" >&5 |
698dcdb6 VZ |
19209 | ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'` |
19210 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19211 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 19212 | else |
698dcdb6 | 19213 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 19214 | LIBS="-ldl $LIBS" |
698dcdb6 | 19215 | cat > conftest.$ac_ext <<EOF |
dfe8399a | 19216 | #line 19217 "configure" |
f6bcfd97 BP |
19217 | #include "confdefs.h" |
19218 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19219 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
19220 | builtin and then its argument prototype would still apply. */ |
19221 | char dlerror(); | |
19222 | ||
19223 | int main() { | |
19224 | dlerror() | |
19225 | ; return 0; } | |
19226 | EOF | |
dfe8399a | 19227 | if { (eval echo configure:19228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
19228 | rm -rf conftest* |
19229 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19230 | else | |
19231 | echo "configure: failed program was:" >&5 | |
19232 | cat conftest.$ac_ext >&5 | |
19233 | rm -rf conftest* | |
19234 | eval "ac_cv_lib_$ac_lib_var=no" | |
19235 | fi | |
19236 | rm -f conftest* | |
19237 | LIBS="$ac_save_LIBS" | |
19238 | ||
19239 | fi | |
19240 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19241 | echo "$ac_t""yes" 1>&6 | |
19242 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
19243 | #define HAVE_DLERROR 1 |
19244 | EOF | |
19245 | ||
698dcdb6 VZ |
19246 | else |
19247 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
19248 | fi |
19249 | ||
19250 | fi | |
19251 | done | |
19252 | ||
3a922bb4 RL |
19253 | fi |
19254 | fi | |
f6bcfd97 | 19255 | |
3a922bb4 RL |
19256 | if test "$HAVE_DL_FUNCS" = 0; then |
19257 | if test "$HAVE_SHL_FUNCS" = 0; then | |
19258 | if test "$USE_UNIX" = 1; then | |
19259 | echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2 | |
0b9ab0bd | 19260 | wxUSE_DYNAMIC_LOADER=no |
3a922bb4 RL |
19261 | wxUSE_DYNLIB_CLASS=no |
19262 | else | |
19263 | echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2 | |
19264 | fi | |
19265 | fi | |
10f2d63a VZ |
19266 | fi |
19267 | fi | |
19268 | fi | |
19269 | ||
0b9ab0bd RL |
19270 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then |
19271 | cat >> confdefs.h <<\EOF | |
19272 | #define wxUSE_DYNAMIC_LOADER 1 | |
19273 | EOF | |
19274 | ||
19275 | elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
698dcdb6 | 19276 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19277 | #define wxUSE_DYNLIB_CLASS 1 |
19278 | EOF | |
19279 | ||
19280 | fi | |
19281 | ||
698dcdb6 | 19282 | |
1e6feb95 VZ |
19283 | if test "$wxUSE_FONTMAP" = "yes" ; then |
19284 | cat >> confdefs.h <<\EOF | |
19285 | #define wxUSE_FONTMAP 1 | |
19286 | EOF | |
19287 | ||
19288 | fi | |
19289 | ||
10f2d63a | 19290 | if test "$wxUSE_UNICODE" = "yes" ; then |
698dcdb6 | 19291 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19292 | #define wxUSE_UNICODE 1 |
19293 | EOF | |
19294 | ||
bbc3925a VS |
19295 | |
19296 | if test "$wxUSE_MSW" != 1; then | |
19297 | wxUSE_UNICODE_MSLU=no | |
19298 | fi | |
a72a4bfa VS |
19299 | |
19300 | if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
19301 | echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6 | |
dfe8399a | 19302 | echo "configure:19303: checking for main in -lunicows" >&5 |
a72a4bfa VS |
19303 | ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'` |
19304 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19305 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19306 | else | |
19307 | ac_save_LIBS="$LIBS" | |
19308 | LIBS="-lunicows $LIBS" | |
19309 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 19310 | #line 19311 "configure" |
a72a4bfa VS |
19311 | #include "confdefs.h" |
19312 | ||
19313 | int main() { | |
19314 | main() | |
19315 | ; return 0; } | |
19316 | EOF | |
dfe8399a | 19317 | if { (eval echo configure:19318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a72a4bfa VS |
19318 | rm -rf conftest* |
19319 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19320 | else | |
19321 | echo "configure: failed program was:" >&5 | |
19322 | cat conftest.$ac_ext >&5 | |
19323 | rm -rf conftest* | |
19324 | eval "ac_cv_lib_$ac_lib_var=no" | |
19325 | fi | |
19326 | rm -f conftest* | |
19327 | LIBS="$ac_save_LIBS" | |
19328 | ||
19329 | fi | |
19330 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19331 | echo "$ac_t""yes" 1>&6 | |
19332 | ||
19333 | cat >> confdefs.h <<\EOF | |
19334 | #define wxUSE_UNICODE_MSLU 1 | |
19335 | EOF | |
19336 | ||
19337 | ||
19338 | else | |
19339 | echo "$ac_t""no" 1>&6 | |
19340 | ||
19341 | echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled. | |
19342 | Applications will only run on Windows NT/2000/XP!" 1>&2 | |
19343 | wxUSE_UNICODE_MSLU=no | |
19344 | ||
19345 | fi | |
19346 | ||
19347 | fi | |
10f2d63a VZ |
19348 | fi |
19349 | ||
10f2d63a | 19350 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then |
698dcdb6 | 19351 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19352 | #define wxUSE_EXPERIMENTAL_PRINTF 1 |
19353 | EOF | |
19354 | ||
19355 | fi | |
19356 | ||
698dcdb6 | 19357 | |
698dcdb6 | 19358 | |
10f2d63a VZ |
19359 | IODBC_C_SRC="" |
19360 | if test "$wxUSE_ODBC" = "yes" ; then | |
698dcdb6 | 19361 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19362 | #define wxUSE_ODBC 1 |
19363 | EOF | |
19364 | ||
19365 | WXODBCFLAG="-D_IODBC_" | |
19366 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
10f2d63a VZ |
19367 | fi |
19368 | ||
698dcdb6 | 19369 | |
10f2d63a | 19370 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then |
698dcdb6 | 19371 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19372 | #define wxUSE_POSTSCRIPT 1 |
19373 | EOF | |
19374 | ||
19375 | fi | |
19376 | ||
698dcdb6 | 19377 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19378 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 |
19379 | EOF | |
19380 | ||
698dcdb6 VZ |
19381 | |
19382 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
19383 | #define wxUSE_NORMALIZED_PS_FONTS 1 |
19384 | EOF | |
19385 | ||
698dcdb6 VZ |
19386 | |
19387 | ||
10f2d63a | 19388 | if test "$wxUSE_CONSTRAINTS" = "yes"; then |
698dcdb6 | 19389 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19390 | #define wxUSE_CONSTRAINTS 1 |
19391 | EOF | |
19392 | ||
19393 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
19394 | fi | |
19395 | ||
19396 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
fc26f4ab | 19397 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
0feee163 | 19398 | echo "configure: warning: MDI not yet supported for wxUniversal... disabled" 1>&2 |
fc26f4ab RL |
19399 | wxUSE_MDI_ARCHITECTURE=no |
19400 | fi | |
19401 | ||
19402 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
19403 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
19404 | #define wxUSE_MDI_ARCHITECTURE 1 |
19405 | EOF | |
19406 | ||
fc26f4ab RL |
19407 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
19408 | fi | |
10f2d63a VZ |
19409 | fi |
19410 | ||
19411 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
698dcdb6 | 19412 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19413 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 |
19414 | EOF | |
19415 | ||
19416 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
19417 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
19418 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
19419 | fi | |
19420 | fi | |
19421 | ||
19422 | if test "$wxUSE_HELP" = "yes"; then | |
698dcdb6 | 19423 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19424 | #define wxUSE_HELP 1 |
19425 | EOF | |
19426 | ||
19427 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
3379ed37 | 19428 | |
77e13408 | 19429 | if test "$wxUSE_MSW" = 1; then |
031d8228 | 19430 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then |
3b7bc64a | 19431 | cat >> confdefs.h <<\EOF |
29fd3c0c VS |
19432 | #define wxUSE_MS_HTML_HELP 1 |
19433 | EOF | |
19434 | ||
3e44f09d | 19435 | fi |
3379ed37 | 19436 | fi |
031d8228 VS |
19437 | |
19438 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
19439 | if test "$wxUSE_HTML" = "yes"; then | |
19440 | cat >> confdefs.h <<\EOF | |
19441 | #define wxUSE_WXHTML_HELP 1 | |
19442 | EOF | |
19443 | ||
19444 | else | |
19445 | echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2 | |
19446 | wxUSE_WXHTML_HELP=no | |
19447 | fi | |
19448 | fi | |
10f2d63a VZ |
19449 | fi |
19450 | ||
19451 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
19452 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
698dcdb6 | 19453 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 |
10f2d63a | 19454 | else |
698dcdb6 | 19455 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19456 | #define wxUSE_PRINTING_ARCHITECTURE 1 |
19457 | EOF | |
19458 | ||
19459 | fi | |
19460 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
19461 | fi | |
19462 | ||
19463 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
698dcdb6 | 19464 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19465 | #define wxUSE_PROLOGIO 1 |
19466 | EOF | |
19467 | ||
19468 | fi | |
19469 | ||
19470 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
e334d0ea JS |
19471 | if test "$wxUSE_NANOX" = "yes"; then |
19472 | echo "configure: warning: Cannot use resource database functions in NanoX" 1>&2 | |
19473 | else | |
19474 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
19475 | #define wxUSE_RESOURCES 1 |
19476 | EOF | |
19477 | ||
e334d0ea JS |
19478 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" |
19479 | fi | |
10f2d63a VZ |
19480 | fi |
19481 | ||
19482 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
698dcdb6 | 19483 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19484 | #define wxUSE_X_RESOURCES 1 |
19485 | EOF | |
19486 | ||
19487 | fi | |
19488 | ||
698dcdb6 | 19489 | |
77e13408 RL |
19490 | if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ |
19491 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
19492 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
2b9bdf71 | 19493 | for ac_hdr in ole2.h |
10f2d63a | 19494 | do |
698dcdb6 VZ |
19495 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
19496 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
dfe8399a | 19497 | echo "configure:19498: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
19498 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
19499 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19500 | else | |
19501 | cat > conftest.$ac_ext <<EOF | |
dfe8399a | 19502 | #line 19503 "configure" |
10f2d63a | 19503 | #include "confdefs.h" |
698dcdb6 VZ |
19504 | #include <$ac_hdr> |
19505 | EOF | |
19506 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
dfe8399a | 19507 | { (eval echo configure:19508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
19508 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
19509 | if test -z "$ac_err"; then | |
19510 | rm -rf conftest* | |
19511 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 19512 | else |
698dcdb6 VZ |
19513 | echo "$ac_err" >&5 |
19514 | echo "configure: failed program was:" >&5 | |
10f2d63a | 19515 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
19516 | rm -rf conftest* |
19517 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 19518 | fi |
698dcdb6 | 19519 | rm -f conftest* |
10f2d63a | 19520 | fi |
698dcdb6 VZ |
19521 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
19522 | echo "$ac_t""yes" 1>&6 | |
19523 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
19524 | cat >> confdefs.h <<EOF | |
19525 | #define $ac_tr_hdr 1 | |
10f2d63a | 19526 | EOF |
698dcdb6 VZ |
19527 | |
19528 | else | |
19529 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
19530 | fi |
19531 | done | |
19532 | ||
698dcdb6 | 19533 | |
2b9bdf71 VZ |
19534 | if test "$ac_cv_header_ole2_h" = "yes" ; then |
19535 | if test "$GCC" = yes ; then | |
19536 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" | |
2b9bdf71 | 19537 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" |
3d63bc3a | 19538 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
2b9bdf71 | 19539 | cat >> confdefs.h <<\EOF |
4f11a343 VS |
19540 | #define wxUSE_OLE 1 |
19541 | EOF | |
19542 | ||
b64f0a5f | 19543 | |
2b9bdf71 VZ |
19544 | fi |
19545 | ||
19546 | cat >> confdefs.h <<\EOF | |
19547 | #define wxUSE_DATAOBJ 1 | |
19548 | EOF | |
19549 | ||
19550 | else | |
19551 | echo "configure: warning: Some features disabled because OLE headers not found" 1>&2 | |
19552 | ||
19553 | wxUSE_CLIPBOARD=no | |
19554 | wxUSE_DRAG_AND_DROP=no | |
19555 | wxUSE_DATAOBJ=no | |
19556 | fi | |
19557 | ||
77e13408 | 19558 | if test "$wxUSE_METAFILE" = "yes"; then |
2b9bdf71 | 19559 | cat >> confdefs.h <<\EOF |
b64f0a5f RL |
19560 | #define wxUSE_METAFILE 1 |
19561 | EOF | |
19562 | ||
2b9bdf71 VZ |
19563 | |
19564 | cat >> confdefs.h <<\EOF | |
b64f0a5f RL |
19565 | #define wxUSE_ENH_METAFILE 1 |
19566 | EOF | |
19567 | ||
2b9bdf71 VZ |
19568 | fi |
19569 | fi | |
19570 | ||
19571 | if test "$wxUSE_IPC" = "yes"; then | |
19572 | if test "$wxUSE_SOCKETS" != "yes"; then | |
156b2523 | 19573 | echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2 |
2b9bdf71 VZ |
19574 | fi |
19575 | ||
19576 | cat >> confdefs.h <<\EOF | |
19577 | #define wxUSE_IPC 1 | |
19578 | EOF | |
19579 | ||
19580 | fi | |
19581 | ||
19582 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
9691c806 | 19583 | cat >> confdefs.h <<\EOF |
2b9bdf71 VZ |
19584 | #define wxUSE_CLIPBOARD 1 |
19585 | EOF | |
19586 | ||
673f4220 | 19587 | |
9691c806 | 19588 | cat >> confdefs.h <<\EOF |
673f4220 VZ |
19589 | #define wxUSE_DATAOBJ 1 |
19590 | EOF | |
19591 | ||
2b9bdf71 VZ |
19592 | fi |
19593 | ||
19594 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
19595 | if test "$wxUSE_GTK" = 1; then | |
19596 | if test "$WXGTK12" != 1; then | |
156b2523 | 19597 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2 |
10f2d63a VZ |
19598 | wxUSE_DRAG_AND_DROP=no |
19599 | fi | |
19600 | fi | |
19601 | ||
2b9bdf71 | 19602 | if test "$wxUSE_MOTIF" = 1; then |
156b2523 | 19603 | echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2 |
2b9bdf71 VZ |
19604 | wxUSE_DRAG_AND_DROP=no |
19605 | fi | |
19606 | ||
f79bd02d JS |
19607 | if test "$wxUSE_X11" = 1; then |
19608 | echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2 | |
19609 | wxUSE_DRAG_AND_DROP=no | |
19610 | fi | |
19611 | ||
10f2d63a | 19612 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then |
698dcdb6 | 19613 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19614 | #define wxUSE_DRAG_AND_DROP 1 |
19615 | EOF | |
19616 | ||
19617 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
19618 | fi | |
19619 | ||
19620 | fi | |
19621 | ||
19622 | if test "$wxUSE_SPLINES" = "yes" ; then | |
698dcdb6 | 19623 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19624 | #define wxUSE_SPLINES 1 |
19625 | EOF | |
19626 | ||
19627 | fi | |
19628 | ||
698dcdb6 | 19629 | |
1e6feb95 VZ |
19630 | USES_CONTROLS=0 |
19631 | if test "$wxUSE_CONTROLS" = "yes"; then | |
19632 | USES_CONTROLS=1 | |
19633 | fi | |
19634 | ||
10f2d63a | 19635 | if test "$wxUSE_ACCEL" = "yes"; then |
698dcdb6 | 19636 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19637 | #define wxUSE_ACCEL 1 |
19638 | EOF | |
19639 | ||
1e6feb95 VZ |
19640 | USES_CONTROLS=1 |
19641 | fi | |
19642 | ||
19643 | if test "$wxUSE_BUTTON" = "yes"; then | |
19644 | cat >> confdefs.h <<\EOF | |
19645 | #define wxUSE_BUTTON 1 | |
19646 | EOF | |
19647 | ||
19648 | USES_CONTROLS=1 | |
19649 | fi | |
19650 | ||
19651 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
19652 | cat >> confdefs.h <<\EOF | |
19653 | #define wxUSE_BMPBUTTON 1 | |
19654 | EOF | |
19655 | ||
19656 | USES_CONTROLS=1 | |
19657 | fi | |
19658 | ||
19659 | if test "$wxUSE_CALCTRL" = "yes"; then | |
19660 | cat >> confdefs.h <<\EOF | |
19661 | #define wxUSE_CALENDARCTRL 1 | |
19662 | EOF | |
19663 | ||
19664 | USES_CONTROLS=1 | |
19665 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
10f2d63a VZ |
19666 | fi |
19667 | ||
19668 | if test "$wxUSE_CARET" = "yes"; then | |
698dcdb6 | 19669 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19670 | #define wxUSE_CARET 1 |
19671 | EOF | |
19672 | ||
1e6feb95 | 19673 | USES_CONTROLS=1 |
10f2d63a VZ |
19674 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" |
19675 | fi | |
19676 | ||
19677 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
698dcdb6 | 19678 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19679 | #define wxUSE_COMBOBOX 1 |
19680 | EOF | |
19681 | ||
1e6feb95 | 19682 | USES_CONTROLS=1 |
10f2d63a VZ |
19683 | fi |
19684 | ||
19685 | if test "$wxUSE_CHOICE" = "yes"; then | |
698dcdb6 | 19686 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19687 | #define wxUSE_CHOICE 1 |
19688 | EOF | |
19689 | ||
1e6feb95 | 19690 | USES_CONTROLS=1 |
10f2d63a VZ |
19691 | fi |
19692 | ||
19693 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
698dcdb6 | 19694 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19695 | #define wxUSE_CHECKBOX 1 |
19696 | EOF | |
19697 | ||
1e6feb95 | 19698 | USES_CONTROLS=1 |
10f2d63a VZ |
19699 | fi |
19700 | ||
19701 | if test "$wxUSE_CHECKLST" = "yes"; then | |
698dcdb6 | 19702 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19703 | #define wxUSE_CHECKLISTBOX 1 |
19704 | EOF | |
19705 | ||
1e6feb95 | 19706 | USES_CONTROLS=1 |
10f2d63a VZ |
19707 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" |
19708 | fi | |
19709 | ||
19710 | if test "$wxUSE_GAUGE" = "yes"; then | |
698dcdb6 | 19711 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19712 | #define wxUSE_GAUGE 1 |
19713 | EOF | |
19714 | ||
1e6feb95 | 19715 | USES_CONTROLS=1 |
10f2d63a VZ |
19716 | fi |
19717 | ||
d6a55c4b VZ |
19718 | if test "$wxUSE_NEW_GRID" = "yes"; then |
19719 | wxUSE_GRID="yes" | |
698dcdb6 | 19720 | cat >> confdefs.h <<\EOF |
d6a55c4b | 19721 | #define wxUSE_NEW_GRID 1 |
10f2d63a VZ |
19722 | EOF |
19723 | ||
1e6feb95 | 19724 | USES_CONTROLS=1 |
d6a55c4b | 19725 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid" |
10f2d63a VZ |
19726 | fi |
19727 | ||
d6a55c4b | 19728 | if test "$wxUSE_GRID" = "yes"; then |
698dcdb6 | 19729 | cat >> confdefs.h <<\EOF |
d6a55c4b | 19730 | #define wxUSE_GRID 1 |
10f2d63a VZ |
19731 | EOF |
19732 | ||
1e6feb95 | 19733 | USES_CONTROLS=1 |
d6a55c4b | 19734 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
19735 | fi |
19736 | ||
19737 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 19738 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19739 | #define wxUSE_IMAGLIST 1 |
19740 | EOF | |
19741 | ||
19742 | fi | |
19743 | ||
19744 | if test "$wxUSE_LISTBOX" = "yes"; then | |
698dcdb6 | 19745 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19746 | #define wxUSE_LISTBOX 1 |
19747 | EOF | |
19748 | ||
1e6feb95 | 19749 | USES_CONTROLS=1 |
10f2d63a VZ |
19750 | fi |
19751 | ||
19752 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
19753 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 19754 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19755 | #define wxUSE_LISTCTRL 1 |
19756 | EOF | |
19757 | ||
1e6feb95 | 19758 | USES_CONTROLS=1 |
10f2d63a VZ |
19759 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" |
19760 | else | |
698dcdb6 | 19761 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
19762 | fi |
19763 | fi | |
19764 | ||
19765 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
698dcdb6 | 19766 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19767 | #define wxUSE_NOTEBOOK 1 |
19768 | EOF | |
19769 | ||
1e6feb95 | 19770 | USES_CONTROLS=1 |
10f2d63a VZ |
19771 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" |
19772 | fi | |
19773 | ||
24176f2c GD |
19774 | if test "$wxUSE_PROPSHEET" = "yes"; then |
19775 | cat >> confdefs.h <<\EOF | |
19776 | #define wxUSE_PROPSHEET 1 | |
19777 | EOF | |
19778 | ||
19779 | USES_CONTROLS=1 | |
19780 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist" | |
19781 | fi | |
19782 | ||
10f2d63a | 19783 | if test "$wxUSE_RADIOBOX" = "yes"; then |
698dcdb6 | 19784 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19785 | #define wxUSE_RADIOBOX 1 |
19786 | EOF | |
19787 | ||
1e6feb95 | 19788 | USES_CONTROLS=1 |
10f2d63a VZ |
19789 | fi |
19790 | ||
19791 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
698dcdb6 | 19792 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19793 | #define wxUSE_RADIOBTN 1 |
19794 | EOF | |
19795 | ||
1e6feb95 | 19796 | USES_CONTROLS=1 |
10f2d63a VZ |
19797 | fi |
19798 | ||
19799 | if test "$wxUSE_SASH" = "yes"; then | |
698dcdb6 | 19800 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19801 | #define wxUSE_SASH 1 |
19802 | EOF | |
19803 | ||
19804 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
19805 | fi | |
19806 | ||
19807 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
698dcdb6 | 19808 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19809 | #define wxUSE_SCROLLBAR 1 |
19810 | EOF | |
19811 | ||
1e6feb95 | 19812 | USES_CONTROLS=1 |
741a9306 | 19813 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
19814 | fi |
19815 | ||
19816 | if test "$wxUSE_SLIDER" = "yes"; then | |
698dcdb6 | 19817 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19818 | #define wxUSE_SLIDER 1 |
19819 | EOF | |
19820 | ||
1e6feb95 | 19821 | USES_CONTROLS=1 |
10f2d63a VZ |
19822 | fi |
19823 | ||
19824 | if test "$wxUSE_SPINBTN" = "yes"; then | |
698dcdb6 | 19825 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19826 | #define wxUSE_SPINBTN 1 |
19827 | EOF | |
19828 | ||
1e6feb95 | 19829 | USES_CONTROLS=1 |
10f2d63a VZ |
19830 | fi |
19831 | ||
56cfaa52 | 19832 | if test "$wxUSE_SPINCTRL" = "yes"; then |
698dcdb6 | 19833 | cat >> confdefs.h <<\EOF |
56cfaa52 RR |
19834 | #define wxUSE_SPINCTRL 1 |
19835 | EOF | |
19836 | ||
1e6feb95 | 19837 | USES_CONTROLS=1 |
56cfaa52 RR |
19838 | fi |
19839 | ||
10f2d63a | 19840 | if test "$wxUSE_SPLITTER" = "yes"; then |
698dcdb6 | 19841 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19842 | #define wxUSE_SPLITTER 1 |
19843 | EOF | |
19844 | ||
19845 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
19846 | fi | |
19847 | ||
19848 | if test "$wxUSE_STATBMP" = "yes"; then | |
698dcdb6 | 19849 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19850 | #define wxUSE_STATBMP 1 |
19851 | EOF | |
19852 | ||
1e6feb95 | 19853 | USES_CONTROLS=1 |
10f2d63a VZ |
19854 | fi |
19855 | ||
19856 | if test "$wxUSE_STATBOX" = "yes"; then | |
698dcdb6 | 19857 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19858 | #define wxUSE_STATBOX 1 |
19859 | EOF | |
19860 | ||
1e6feb95 VZ |
19861 | USES_CONTROLS=1 |
19862 | fi | |
19863 | ||
19864 | if test "$wxUSE_STATTEXT" = "yes"; then | |
19865 | cat >> confdefs.h <<\EOF | |
19866 | #define wxUSE_STATTEXT 1 | |
19867 | EOF | |
19868 | ||
19869 | USES_CONTROLS=1 | |
10f2d63a VZ |
19870 | fi |
19871 | ||
19872 | if test "$wxUSE_STATLINE" = "yes"; then | |
19873 | if test "$wxUSE_WINE" = 1 ; then | |
698dcdb6 | 19874 | echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2 |
10f2d63a | 19875 | else |
698dcdb6 | 19876 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19877 | #define wxUSE_STATLINE 1 |
19878 | EOF | |
19879 | ||
1e6feb95 | 19880 | USES_CONTROLS=1 |
10f2d63a VZ |
19881 | fi |
19882 | fi | |
19883 | ||
19884 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
698dcdb6 | 19885 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19886 | #define wxUSE_STATUSBAR 1 |
19887 | EOF | |
19888 | ||
1e6feb95 | 19889 | USES_CONTROLS=1 |
698dcdb6 | 19890 | |
2286341c | 19891 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" |
10f2d63a VZ |
19892 | fi |
19893 | ||
19894 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
698dcdb6 | 19895 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19896 | #define wxUSE_TAB_DIALOG 1 |
19897 | EOF | |
19898 | ||
19899 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
19900 | fi | |
19901 | ||
1e6feb95 VZ |
19902 | if test "$wxUSE_TEXTCTRL" = "yes"; then |
19903 | cat >> confdefs.h <<\EOF | |
19904 | #define wxUSE_TEXTCTRL 1 | |
19905 | EOF | |
19906 | ||
19907 | USES_CONTROLS=1 | |
19908 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
19909 | fi | |
19910 | ||
1db8dc4a | 19911 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
156b2523 GD |
19912 | if test "$wxUSE_MAC" = 1; then |
19913 | echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2 | |
19914 | wxUSE_TOGGLEBTN=no | |
19915 | fi | |
19916 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
0feee163 | 19917 | echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2 |
a45d7ab7 GD |
19918 | wxUSE_TOGGLEBTN=no |
19919 | fi | |
19920 | ||
19921 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
19922 | cat >> confdefs.h <<\EOF | |
1db8dc4a VZ |
19923 | #define wxUSE_TOGGLEBTN 1 |
19924 | EOF | |
19925 | ||
1e6feb95 | 19926 | USES_CONTROLS=1 |
a45d7ab7 | 19927 | fi |
1db8dc4a VZ |
19928 | fi |
19929 | ||
360d6699 | 19930 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
698dcdb6 | 19931 | cat >> confdefs.h <<\EOF |
360d6699 VZ |
19932 | #define wxUSE_TOOLBAR_SIMPLE 1 |
19933 | EOF | |
19934 | ||
19935 | wxUSE_TOOLBAR="yes" | |
1e6feb95 | 19936 | USES_CONTROLS=1 |
360d6699 VZ |
19937 | fi |
19938 | ||
10f2d63a | 19939 | if test "$wxUSE_TOOLBAR" = "yes"; then |
698dcdb6 | 19940 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19941 | #define wxUSE_TOOLBAR 1 |
19942 | EOF | |
19943 | ||
1e6feb95 | 19944 | USES_CONTROLS=1 |
698dcdb6 | 19945 | |
360d6699 VZ |
19946 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then |
19947 | wxUSE_TOOLBAR_NATIVE="yes" | |
19948 | fi | |
19949 | ||
1e6feb95 VZ |
19950 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
19951 | cat >> confdefs.h <<\EOF | |
360d6699 VZ |
19952 | #define wxUSE_TOOLBAR_NATIVE 1 |
19953 | EOF | |
19954 | ||
1e6feb95 VZ |
19955 | USES_CONTROLS=1 |
19956 | fi | |
19957 | ||
19958 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
360d6699 VZ |
19959 | fi |
19960 | ||
10f2d63a VZ |
19961 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
19962 | if test "$wxUSE_MOTIF" = 1; then | |
156b2523 | 19963 | echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2 |
10f2d63a VZ |
19964 | else |
19965 | if test "$wxUSE_WINE" = 1; then | |
156b2523 | 19966 | echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2 |
10f2d63a | 19967 | else |
69d27ff7 | 19968 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
0feee163 | 19969 | echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2 |
69d27ff7 | 19970 | else |
3c011993 | 19971 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19972 | #define wxUSE_TOOLTIPS 1 |
19973 | EOF | |
19974 | ||
69d27ff7 | 19975 | fi |
10f2d63a VZ |
19976 | fi |
19977 | fi | |
19978 | fi | |
19979 | ||
19980 | if test "$wxUSE_TREECTRL" = "yes"; then | |
19981 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 19982 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19983 | #define wxUSE_TREECTRL 1 |
19984 | EOF | |
19985 | ||
1e6feb95 | 19986 | USES_CONTROLS=1 |
10f2d63a VZ |
19987 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" |
19988 | else | |
698dcdb6 | 19989 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
19990 | fi |
19991 | fi | |
19992 | ||
9f41d601 | 19993 | if test "$wxUSE_POPUPWIN" = "yes"; then |
6abe4b65 | 19994 | if test "$wxUSE_MAC" = 1; then |
156b2523 | 19995 | echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2 |
6abe4b65 | 19996 | else |
485cf710 VZ |
19997 | if test "$wxUSE_MOTIF" = 1; then |
19998 | echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2 | |
19999 | else | |
3c011993 VZ |
20000 | if test "$wxUSE_PM" = 1; then |
20001 | echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2 | |
20002 | else | |
20003 | cat >> confdefs.h <<\EOF | |
9f41d601 RR |
20004 | #define wxUSE_POPUPWIN 1 |
20005 | EOF | |
20006 | ||
9926e4a4 | 20007 | |
3c011993 VZ |
20008 | USES_CONTROLS=1 |
20009 | fi | |
485cf710 | 20010 | fi |
6abe4b65 | 20011 | fi |
9f41d601 RR |
20012 | fi |
20013 | ||
dd964dcc | 20014 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
3c011993 VZ |
20015 | if test "$wxUSE_PM" = 1; then |
20016 | echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2 | |
20017 | else | |
20018 | cat >> confdefs.h <<\EOF | |
dd964dcc VZ |
20019 | #define wxUSE_TIPWINDOW 1 |
20020 | EOF | |
20021 | ||
3c011993 | 20022 | fi |
dd964dcc VZ |
20023 | fi |
20024 | ||
1e6feb95 VZ |
20025 | if test "$USES_CONTROLS" = 1; then |
20026 | cat >> confdefs.h <<\EOF | |
20027 | #define wxUSE_CONTROLS 1 | |
10f2d63a VZ |
20028 | EOF |
20029 | ||
10f2d63a VZ |
20030 | fi |
20031 | ||
1e6feb95 | 20032 | |
24176f2c GD |
20033 | if test "$wxUSE_TREELAYOUT" = "yes"; then |
20034 | cat >> confdefs.h <<\EOF | |
20035 | #define wxUSE_TREELAYOUT 1 | |
20036 | EOF | |
20037 | ||
20038 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay" | |
20039 | fi | |
1e6feb95 | 20040 | |
24fd6d87 VZ |
20041 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
20042 | cat >> confdefs.h <<\EOF | |
20043 | #define wxUSE_DRAGIMAGE 1 | |
20044 | EOF | |
20045 | ||
20046 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
20047 | fi | |
20048 | ||
1e6feb95 | 20049 | if test "$wxUSE_MENUS" = "yes"; then |
698dcdb6 | 20050 | cat >> confdefs.h <<\EOF |
1e6feb95 | 20051 | #define wxUSE_MENUS 1 |
10f2d63a VZ |
20052 | EOF |
20053 | ||
1e6feb95 | 20054 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" |
10f2d63a VZ |
20055 | fi |
20056 | ||
1e6feb95 VZ |
20057 | if test "$wxUSE_METAFILE" = "yes"; then |
20058 | cat >> confdefs.h <<\EOF | |
20059 | #define wxUSE_METAFILE 1 | |
10f2d63a VZ |
20060 | EOF |
20061 | ||
10f2d63a VZ |
20062 | fi |
20063 | ||
1e6feb95 VZ |
20064 | if test "$wxUSE_MIMETYPE" = "yes"; then |
20065 | cat >> confdefs.h <<\EOF | |
20066 | #define wxUSE_MIMETYPE 1 | |
10f2d63a VZ |
20067 | EOF |
20068 | ||
10f2d63a VZ |
20069 | fi |
20070 | ||
3e44f09d VZ |
20071 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then |
20072 | cat >> confdefs.h <<\EOF | |
20073 | #define wxUSE_SYSTEM_OPTIONS 1 | |
20074 | EOF | |
20075 | ||
20076 | fi | |
20077 | ||
4cdb0ab0 | 20078 | if test "$wxUSE_PROTOCOL" = "yes"; then |
3954f9ca VS |
20079 | if test "$wxUSE_SOCKETS" != "yes"; then |
20080 | echo "configure: warning: Protocol classes require sockets... disabled" 1>&2 | |
20081 | wxUSE_PROTOCOL=no | |
20082 | fi | |
20083 | ||
20084 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
20085 | cat >> confdefs.h <<\EOF | |
4cdb0ab0 VS |
20086 | #define wxUSE_PROTOCOL 1 |
20087 | EOF | |
20088 | ||
20089 | ||
3954f9ca VS |
20090 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then |
20091 | cat >> confdefs.h <<\EOF | |
4cdb0ab0 VS |
20092 | #define wxUSE_PROTOCOL_HTTP 1 |
20093 | EOF | |
20094 | ||
3954f9ca VS |
20095 | fi |
20096 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
20097 | cat >> confdefs.h <<\EOF | |
4cdb0ab0 VS |
20098 | #define wxUSE_PROTOCOL_FTP 1 |
20099 | EOF | |
20100 | ||
3954f9ca VS |
20101 | fi |
20102 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
20103 | cat >> confdefs.h <<\EOF | |
20104 | #define wxUSE_PROTOCOL_FILE 1 | |
20105 | EOF | |
20106 | ||
20107 | fi | |
4cdb0ab0 | 20108 | fi |
3954f9ca VS |
20109 | fi |
20110 | ||
20111 | if test "$wxUSE_URL" = "yes"; then | |
20112 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
20113 | echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2 | |
20114 | wxUSE_URL=no | |
20115 | fi | |
20116 | if test "$wxUSE_URL" = "yes"; then | |
4cdb0ab0 | 20117 | cat >> confdefs.h <<\EOF |
3954f9ca | 20118 | #define wxUSE_URL 1 |
4cdb0ab0 VS |
20119 | EOF |
20120 | ||
20121 | fi | |
20122 | fi | |
20123 | ||
10f2d63a | 20124 | if test "$wxUSE_MINIFRAME" = "yes"; then |
698dcdb6 | 20125 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20126 | #define wxUSE_MINIFRAME 1 |
20127 | EOF | |
20128 | ||
20129 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
20130 | fi | |
20131 | ||
20132 | if test "$wxUSE_HTML" = "yes"; then | |
698dcdb6 | 20133 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20134 | #define wxUSE_HTML 1 |
20135 | EOF | |
20136 | ||
20137 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
10f2d63a VZ |
20138 | fi |
20139 | ||
20140 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
698dcdb6 | 20141 | cat >> confdefs.h <<\EOF |
1e487827 VS |
20142 | #define wxUSE_VALIDATORS 1 |
20143 | EOF | |
703e0a69 | 20144 | |
698dcdb6 VZ |
20145 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" |
20146 | fi | |
20147 | ||
edae8572 VZ |
20148 | if test "$wxUSE_PALETTE" = "yes" ; then |
20149 | cat >> confdefs.h <<\EOF | |
20150 | #define wxUSE_PALETTE 1 | |
20151 | EOF | |
20152 | ||
20153 | fi | |
20154 | ||
698dcdb6 VZ |
20155 | if test "$wxUSE_IMAGE" = "yes" ; then |
20156 | cat >> confdefs.h <<\EOF | |
20157 | #define wxUSE_IMAGE 1 | |
20158 | EOF | |
20159 | ||
20160 | fi | |
20161 | ||
20162 | if test "$wxUSE_GIF" = "yes" ; then | |
20163 | cat >> confdefs.h <<\EOF | |
20164 | #define wxUSE_GIF 1 | |
20165 | EOF | |
20166 | ||
20167 | fi | |
20168 | ||
20169 | if test "$wxUSE_PCX" = "yes" ; then | |
20170 | cat >> confdefs.h <<\EOF | |
20171 | #define wxUSE_PCX 1 | |
20172 | EOF | |
20173 | ||
20174 | fi | |
20175 | ||
4b6b4dfc RR |
20176 | if test "$wxUSE_IFF" = "yes" ; then |
20177 | cat >> confdefs.h <<\EOF | |
20178 | #define wxUSE_IFF 1 | |
20179 | EOF | |
20180 | ||
20181 | fi | |
20182 | ||
698dcdb6 VZ |
20183 | if test "$wxUSE_PNM" = "yes" ; then |
20184 | cat >> confdefs.h <<\EOF | |
20185 | #define wxUSE_PNM 1 | |
20186 | EOF | |
20187 | ||
20188 | fi | |
20189 | ||
20190 | if test "$wxUSE_XPM" = "yes" ; then | |
20191 | cat >> confdefs.h <<\EOF | |
20192 | #define wxUSE_XPM 1 | |
20193 | EOF | |
20194 | ||
20195 | fi | |
20196 | ||
658974ae VS |
20197 | if test "$wxUSE_ICO_CUR" = "yes" ; then |
20198 | cat >> confdefs.h <<\EOF | |
20199 | #define wxUSE_ICO_CUR 1 | |
20200 | EOF | |
20201 | ||
20202 | fi | |
20203 | ||
a72a4bfa VS |
20204 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then |
20205 | LIBS=" -lunicows $LIBS" | |
20206 | fi | |
20207 | ||
698dcdb6 | 20208 | |
1e6feb95 VZ |
20209 | if test "$wxUSE_CHOICEDLG" = "yes"; then |
20210 | cat >> confdefs.h <<\EOF | |
20211 | #define wxUSE_CHOICEDLG 1 | |
20212 | EOF | |
20213 | ||
20214 | fi | |
20215 | ||
20216 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
20217 | cat >> confdefs.h <<\EOF | |
20218 | #define wxUSE_COLOURDLG 1 | |
20219 | EOF | |
20220 | ||
20221 | fi | |
20222 | ||
20223 | if test "$wxUSE_FILEDLG" = "yes"; then | |
20224 | cat >> confdefs.h <<\EOF | |
20225 | #define wxUSE_FILEDLG 1 | |
20226 | EOF | |
20227 | ||
20228 | fi | |
20229 | ||
8db37e06 VZ |
20230 | if test "$wxUSE_FINDREPLDLG" = "yes"; then |
20231 | cat >> confdefs.h <<\EOF | |
20232 | #define wxUSE_FINDREPLDLG 1 | |
20233 | EOF | |
20234 | ||
20235 | fi | |
20236 | ||
1e6feb95 VZ |
20237 | if test "$wxUSE_FONTDLG" = "yes"; then |
20238 | cat >> confdefs.h <<\EOF | |
20239 | #define wxUSE_FONTDLG 1 | |
20240 | EOF | |
20241 | ||
20242 | fi | |
20243 | ||
20244 | if test "$wxUSE_DIRDLG" = "yes"; then | |
ae1daed0 JS |
20245 | if test "$wxUSE_TREECTRL" != "yes"; then |
20246 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 | |
1e6feb95 | 20247 | else |
ae1daed0 | 20248 | cat >> confdefs.h <<\EOF |
1e6feb95 VZ |
20249 | #define wxUSE_DIRDLG 1 |
20250 | EOF | |
20251 | ||
1e6feb95 VZ |
20252 | fi |
20253 | fi | |
20254 | ||
20255 | if test "$wxUSE_MSGDLG" = "yes"; then | |
20256 | cat >> confdefs.h <<\EOF | |
20257 | #define wxUSE_MSGDLG 1 | |
20258 | EOF | |
20259 | ||
20260 | fi | |
20261 | ||
20262 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
20263 | cat >> confdefs.h <<\EOF | |
20264 | #define wxUSE_NUMBERDLG 1 | |
20265 | EOF | |
20266 | ||
20267 | fi | |
20268 | ||
20269 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
20270 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
20271 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 | |
20272 | else | |
20273 | cat >> confdefs.h <<\EOF | |
20274 | #define wxUSE_PROGRESSDLG 1 | |
20275 | EOF | |
20276 | ||
20277 | fi | |
20278 | fi | |
20279 | ||
cbca9943 VZ |
20280 | if test "$wxUSE_SPLASH" = "yes"; then |
20281 | cat >> confdefs.h <<\EOF | |
20282 | #define wxUSE_SPLASH 1 | |
20283 | EOF | |
20284 | ||
20285 | fi | |
20286 | ||
1e6feb95 VZ |
20287 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then |
20288 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
20289 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 | |
20290 | else | |
20291 | cat >> confdefs.h <<\EOF | |
20292 | #define wxUSE_STARTUP_TIPS 1 | |
20293 | EOF | |
20294 | ||
20295 | fi | |
20296 | fi | |
20297 | ||
20298 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
20299 | cat >> confdefs.h <<\EOF | |
20300 | #define wxUSE_TEXTDLG 1 | |
20301 | EOF | |
20302 | ||
20303 | fi | |
20304 | ||
b1f5d087 VZ |
20305 | if test "$wxUSE_WIZARDDLG" = "yes"; then |
20306 | cat >> confdefs.h <<\EOF | |
20307 | #define wxUSE_WIZARDDLG 1 | |
20308 | EOF | |
20309 | ||
20310 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
20311 | fi | |
20312 | ||
1e6feb95 | 20313 | |
698dcdb6 VZ |
20314 | if test "$cross_compiling" = "yes"; then |
20315 | OSINFO="\"$host\"" | |
20316 | else | |
20317 | OSINFO=`uname -s -r -m` | |
20318 | OSINFO="\"$OSINFO\"" | |
20319 | fi | |
20320 | ||
20321 | cat >> confdefs.h <<EOF | |
20322 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
20323 | EOF | |
20324 | ||
20325 | ||
20326 | ||
06dda230 VZ |
20327 | if test "x$prefix" != "xNONE"; then |
20328 | wxPREFIX=$prefix | |
20329 | else | |
20330 | wxPREFIX=$ac_default_prefix | |
20331 | fi | |
20332 | ||
7e67ed0d | 20333 | cat >> confdefs.h <<EOF |
06dda230 | 20334 | #define wxINSTALL_PREFIX "$wxPREFIX" |
7e67ed0d VZ |
20335 | EOF |
20336 | ||
20337 | ||
20338 | ||
698dcdb6 | 20339 | |
3a922bb4 | 20340 | |
f11bdd03 | 20341 | if test "$wxUSE_MAC" = 1 ; then |
3d63bc3a | 20342 | LDFLAGS="$LDFLAGS -framework Carbon -framework System" |
698dcdb6 | 20343 | fi |
3a922bb4 | 20344 | |
3d63bc3a | 20345 | |
cb61c62d | 20346 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DL_LINK -lm $LIBS" |
3d63bc3a | 20347 | |
698dcdb6 | 20348 | if test "$wxUSE_GUI" = "yes"; then |
3d63bc3a | 20349 | |
cb61c62d | 20350 | LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS" |
3a922bb4 RL |
20351 | |
20352 | ||
867a54b6 | 20353 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \ |
3a922bb4 RL |
20354 | drawing dynamic erase event exec font image \ |
20355 | minimal richedit rotate widgets" | |
20356 | ||
3a922bb4 RL |
20357 | CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)" |
20358 | else | |
20359 | SAMPLES_SUBDIRS="console" | |
698dcdb6 VZ |
20360 | fi |
20361 | ||
698dcdb6 | 20362 | |
d714471b | 20363 | INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} -I\${top_srcdir}/include \ |
cb61c62d | 20364 | $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $TOOLKIT_INCLUDE" |
698dcdb6 | 20365 | |
63e7762e | 20366 | if test "$wxUSE_GTK" = 1; then |
3d63bc3a | 20367 | WXCONFIG_INCLUDE= |
698dcdb6 VZ |
20368 | else |
20369 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
20370 | fi | |
20371 | ||
20372 | if test "$GXX" = yes ; then | |
20373 | CXXWARNINGS="-Wall" | |
88e30f2b RL |
20374 | |
20375 | if test "$wxUSE_NO_DEPS" = "no" ; then | |
20376 | CFLAGS="-MMD $CFLAGS" | |
20377 | CXXFLAGS="-MMD $CXXFLAGS" | |
20378 | fi | |
20379 | fi | |
20380 | ||
1725144d | 20381 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES" |
698dcdb6 VZ |
20382 | |
20383 | CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` | |
20384 | CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
20385 | ||
3d63bc3a | 20386 | LDFLAGS="$LDFLAGS$PROFILE" |
698dcdb6 | 20387 | |
698dcdb6 VZ |
20388 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" |
20389 | ||
20390 | ||
20391 | ||
20392 | ||
20393 | ||
20394 | ||
20395 | ||
20396 | ||
20397 | ||
20398 | ||
20399 | ||
20400 | ||
20401 | ||
20402 | ||
20403 | ||
20404 | ||
20405 | ||
20406 | ||
20407 | ||
20408 | ||
20409 | ||
20410 | ||
20411 | ||
20412 | ||
20413 | ||
20414 | ||
20415 | ||
20416 | ||
20417 | ||
20418 | ||
20419 | ||
20420 | ||
20421 | ||
20422 | ||
20423 | ||
20424 | ||
20425 | ||
20426 | ||
20427 | ||
20428 | ||
20429 | ||
20430 | ||
20431 | ||
20432 | ||
20433 | ||
20434 | ||
20435 | ||
20436 | ||
20437 | ||
20438 | ||
20439 | ||
20440 | ||
20441 | ||
20442 | ||
20443 | ||
20444 | ||
20445 | ||
20446 | ||
20447 | ||
20448 | ||
20449 | ||
20450 | ||
20451 | ||
20452 | ||
20453 | ||
20454 | ||
20455 | ||
32832908 | 20456 | |
2f51a9ec GD |
20457 | |
20458 | ||
20459 | ||
20460 | ||
f6bcfd97 | 20461 | |
dad6c0ea | 20462 | |
caa2c79b | 20463 | |
3711412e | 20464 | |
1e6feb95 VZ |
20465 | |
20466 | ||
885d4bf5 VS |
20467 | |
20468 | ||
20469 | ||
20470 | ||
9b695262 VZ |
20471 | |
20472 | ||
62d0491b | 20473 | |
ef7f2189 | 20474 | |
10f2d63a VZ |
20475 | |
20476 | ||
698dcdb6 | 20477 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
dfe8399a | 20478 | echo "configure:20479: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
698dcdb6 VZ |
20479 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
20480 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
20481 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 20482 | else |
698dcdb6 | 20483 | cat > conftestmake <<\EOF |
10f2d63a VZ |
20484 | all: |
20485 | @echo 'ac_maketemp="${MAKE}"' | |
20486 | EOF | |
20487 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
698dcdb6 | 20488 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
10f2d63a VZ |
20489 | if test -n "$ac_maketemp"; then |
20490 | eval ac_cv_prog_make_${ac_make}_set=yes | |
20491 | else | |
20492 | eval ac_cv_prog_make_${ac_make}_set=no | |
20493 | fi | |
698dcdb6 | 20494 | rm -f conftestmake |
10f2d63a VZ |
20495 | fi |
20496 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
698dcdb6 | 20497 | echo "$ac_t""yes" 1>&6 |
10f2d63a VZ |
20498 | SET_MAKE= |
20499 | else | |
698dcdb6 | 20500 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
20501 | SET_MAKE="MAKE=${MAKE-make}" |
20502 | fi | |
20503 | ||
698dcdb6 | 20504 | |
3a922bb4 RL |
20505 | if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then |
20506 | mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h | |
00cf1208 | 20507 | fi |
665bbe97 | 20508 | |
698dcdb6 | 20509 | |
10f2d63a | 20510 | |
2224580a | 20511 | if test "$wxUSE_GUI" = "yes"; then |
ec90f5e5 | 20512 | wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS |
22c3fb2b | 20513 | wx_cv_if_gnu_make=$IF_GNU_MAKE |
e8482f24 GL |
20514 | wx_cv_path_ifs=$PATH_IFS |
20515 | wx_cv_program_ext=$PROGRAM_EXT | |
20516 | wx_cv_target_library=$WX_TARGET_LIBRARY | |
7b6058cd | 20517 | wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL |
3711412e | 20518 | wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE |
22c3fb2b VZ |
20519 | export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \ |
20520 | wx_cv_path_ifs wx_cv_program_ext \ | |
7b6058cd | 20521 | wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype |
0106a226 | 20522 | subdirs="demos samples utils contrib mobile" |
2224580a VZ |
20523 | |
20524 | fi | |
10f2d63a | 20525 | |
698dcdb6 VZ |
20526 | trap '' 1 2 15 |
20527 | cat > confcache <<\EOF | |
10f2d63a VZ |
20528 | # This file is a shell script that caches the results of configure |
20529 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
20530 | # scripts and configure runs. It is not useful on other systems. |
20531 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 20532 | # |
698dcdb6 VZ |
20533 | # By default, configure uses ./config.cache as the cache file, |
20534 | # creating it if it does not exist already. You can give configure | |
20535 | # the --cache-file=FILE option to use a different cache file; that is | |
20536 | # what configure does when it calls configure scripts in | |
20537 | # subdirectories, so they share the cache. | |
20538 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
20539 | # config.status only pays attention to the cache file if you give it the | |
20540 | # --recheck option to rerun configure. | |
10f2d63a | 20541 | # |
698dcdb6 | 20542 | EOF |
10f2d63a VZ |
20543 | # The following way of writing the cache mishandles newlines in values, |
20544 | # but we know of no workaround that is simple, portable, and efficient. | |
20545 | # So, don't put newlines in cache variables' values. | |
20546 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
20547 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
20548 | (set) 2>&1 | |
20549 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
20550 | *ac_space=\ *) | |
20551 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
20552 | # turns \\\\ into \\, and sed turns \\ into \). | |
20553 | sed -n \ | |
20554 | -e "s/'/'\\\\''/g" \ | |
20555 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
20556 | ;; | |
20557 | *) | |
20558 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
20559 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
20560 | ;; | |
20561 | esac >> confcache | |
20562 | if cmp -s $cache_file confcache; then | |
20563 | : | |
20564 | else | |
10f2d63a | 20565 | if test -w $cache_file; then |
698dcdb6 VZ |
20566 | echo "updating cache $cache_file" |
20567 | cat confcache > $cache_file | |
10f2d63a VZ |
20568 | else |
20569 | echo "not updating unwritable cache $cache_file" | |
20570 | fi | |
20571 | fi | |
20572 | rm -f confcache | |
20573 | ||
698dcdb6 VZ |
20574 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
20575 | ||
10f2d63a VZ |
20576 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
20577 | # Let make expand exec_prefix. | |
20578 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
20579 | ||
698dcdb6 VZ |
20580 | # Any assignment to VPATH causes Sun make to only execute |
20581 | # the first set of double-colon rules, so remove it if not needed. | |
20582 | # If there is a colon in the path, we need to keep it. | |
10f2d63a | 20583 | if test "x$srcdir" = x.; then |
698dcdb6 | 20584 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
10f2d63a VZ |
20585 | fi |
20586 | ||
698dcdb6 VZ |
20587 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
20588 | ||
10f2d63a VZ |
20589 | DEFS=-DHAVE_CONFIG_H |
20590 | ||
698dcdb6 | 20591 | # Without the "./", some shells look in PATH for config.status. |
10f2d63a | 20592 | : ${CONFIG_STATUS=./config.status} |
698dcdb6 VZ |
20593 | |
20594 | echo creating $CONFIG_STATUS | |
20595 | rm -f $CONFIG_STATUS | |
20596 | cat > $CONFIG_STATUS <<EOF | |
20597 | #! /bin/sh | |
10f2d63a VZ |
20598 | # Generated automatically by configure. |
20599 | # Run this file to recreate the current configuration. | |
698dcdb6 VZ |
20600 | # This directory was configured as follows, |
20601 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
20602 | # | |
20603 | # $0 $ac_configure_args | |
20604 | # | |
10f2d63a | 20605 | # Compiler output produced by configure, useful for debugging |
698dcdb6 | 20606 | # configure, is in ./config.log if it exists. |
1e487827 | 20607 | |
698dcdb6 VZ |
20608 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
20609 | for ac_option | |
10f2d63a | 20610 | do |
698dcdb6 | 20611 | case "\$ac_option" in |
10f2d63a | 20612 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
698dcdb6 VZ |
20613 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
20614 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
20615 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
20616 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
20617 | exit 0 ;; | |
20618 | -help | --help | --hel | --he | --h) | |
20619 | echo "\$ac_cs_usage"; exit 0 ;; | |
20620 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
10f2d63a VZ |
20621 | esac |
20622 | done | |
20623 | ||
698dcdb6 VZ |
20624 | ac_given_srcdir=$srcdir |
20625 | ac_given_INSTALL="$INSTALL" | |
703e0a69 | 20626 | |
698dcdb6 VZ |
20627 | trap 'rm -fr `echo " |
20628 | wx-config | |
20629 | src/make.env | |
20630 | src/makeprog.env | |
20631 | src/makelib.env | |
20632 | Makefile | |
20633 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
1e487827 | 20634 | EOF |
698dcdb6 | 20635 | cat >> $CONFIG_STATUS <<EOF |
1e487827 | 20636 | |
698dcdb6 VZ |
20637 | # Protect against being on the right side of a sed subst in config.status. |
20638 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
20639 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
20640 | $ac_vpsub | |
20641 | $extrasub | |
20642 | s%@SHELL@%$SHELL%g | |
20643 | s%@CFLAGS@%$CFLAGS%g | |
20644 | s%@CPPFLAGS@%$CPPFLAGS%g | |
20645 | s%@CXXFLAGS@%$CXXFLAGS%g | |
20646 | s%@FFLAGS@%$FFLAGS%g | |
20647 | s%@DEFS@%$DEFS%g | |
20648 | s%@LDFLAGS@%$LDFLAGS%g | |
20649 | s%@LIBS@%$LIBS%g | |
20650 | s%@exec_prefix@%$exec_prefix%g | |
20651 | s%@prefix@%$prefix%g | |
20652 | s%@program_transform_name@%$program_transform_name%g | |
20653 | s%@bindir@%$bindir%g | |
20654 | s%@sbindir@%$sbindir%g | |
20655 | s%@libexecdir@%$libexecdir%g | |
20656 | s%@datadir@%$datadir%g | |
20657 | s%@sysconfdir@%$sysconfdir%g | |
20658 | s%@sharedstatedir@%$sharedstatedir%g | |
20659 | s%@localstatedir@%$localstatedir%g | |
20660 | s%@libdir@%$libdir%g | |
20661 | s%@includedir@%$includedir%g | |
20662 | s%@oldincludedir@%$oldincludedir%g | |
20663 | s%@infodir@%$infodir%g | |
20664 | s%@mandir@%$mandir%g | |
20665 | s%@host@%$host%g | |
20666 | s%@host_alias@%$host_alias%g | |
20667 | s%@host_cpu@%$host_cpu%g | |
20668 | s%@host_vendor@%$host_vendor%g | |
20669 | s%@host_os@%$host_os%g | |
20670 | s%@target@%$target%g | |
20671 | s%@target_alias@%$target_alias%g | |
20672 | s%@target_cpu@%$target_cpu%g | |
20673 | s%@target_vendor@%$target_vendor%g | |
20674 | s%@target_os@%$target_os%g | |
20675 | s%@build@%$build%g | |
20676 | s%@build_alias@%$build_alias%g | |
20677 | s%@build_cpu@%$build_cpu%g | |
20678 | s%@build_vendor@%$build_vendor%g | |
20679 | s%@build_os@%$build_os%g | |
20680 | s%@CC@%$CC%g | |
20681 | s%@CPP@%$CPP%g | |
20682 | s%@CXX@%$CXX%g | |
698dcdb6 VZ |
20683 | s%@RANLIB@%$RANLIB%g |
20684 | s%@AR@%$AR%g | |
20685 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
d6853540 | 20686 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
6054113a | 20687 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
698dcdb6 | 20688 | s%@STRIP@%$STRIP%g |
613d0995 | 20689 | s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g |
698dcdb6 VZ |
20690 | s%@YACC@%$YACC%g |
20691 | s%@LEX@%$LEX%g | |
20692 | s%@LEXLIB@%$LEXLIB%g | |
20693 | s%@LN_S@%$LN_S%g | |
9e691f46 | 20694 | s%@PKG_CONFIG@%$PKG_CONFIG%g |
698dcdb6 VZ |
20695 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g |
20696 | s%@GTK_LIBS@%$GTK_LIBS%g | |
8168de4c | 20697 | s%@GTK_CONFIG@%$GTK_CONFIG%g |
698dcdb6 VZ |
20698 | s%@X_CFLAGS@%$X_CFLAGS%g |
20699 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
20700 | s%@X_LIBS@%$X_LIBS%g | |
20701 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
3a922bb4 | 20702 | s%@RESCOMP@%$RESCOMP%g |
698dcdb6 | 20703 | s%@DEREZ@%$DEREZ%g |
3a922bb4 | 20704 | s%@CXXCPP@%$CXXCPP%g |
b040e242 | 20705 | s%@LIBICONV@%$LIBICONV%g |
698dcdb6 VZ |
20706 | s%@LEX_STEM@%$LEX_STEM%g |
20707 | s%@PATH_IFS@%$PATH_IFS%g | |
20708 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g | |
20709 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
20710 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
698dcdb6 VZ |
20711 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g |
20712 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
77e13408 | 20713 | s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g |
698dcdb6 VZ |
20714 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g |
20715 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
20716 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
698dcdb6 | 20717 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g |
698dcdb6 VZ |
20718 | s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g |
20719 | s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g | |
698dcdb6 VZ |
20720 | s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g |
20721 | s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g | |
20722 | s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g | |
698dcdb6 VZ |
20723 | s%@WX_ALL@%$WX_ALL%g |
20724 | s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g | |
20725 | s%@SHARED_LD@%$SHARED_LD%g | |
20726 | s%@PIC_FLAG@%$PIC_FLAG%g | |
698dcdb6 VZ |
20727 | s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g |
20728 | s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g | |
3a922bb4 RL |
20729 | s%@SONAME_FLAGS@%$SONAME_FLAGS%g |
20730 | s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g | |
698dcdb6 VZ |
20731 | s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g |
20732 | s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g | |
20733 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g | |
20734 | s%@USE_GUI@%$USE_GUI%g | |
20735 | s%@AFMINSTALL@%$AFMINSTALL%g | |
20736 | s%@TOOLKIT@%$TOOLKIT%g | |
698dcdb6 | 20737 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g |
1e6feb95 | 20738 | s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g |
3a922bb4 RL |
20739 | s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g |
20740 | s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g | |
00c81359 | 20741 | s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g |
3a922bb4 RL |
20742 | s%@cross_compiling@%$cross_compiling%g |
20743 | s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g | |
20744 | s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g | |
885d4bf5 VS |
20745 | s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g |
20746 | s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g | |
698dcdb6 VZ |
20747 | s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g |
20748 | s%@ALL_OBJECTS@%$ALL_OBJECTS%g | |
9b695262 VZ |
20749 | s%@ALL_HEADERS@%$ALL_HEADERS%g |
20750 | s%@ALL_SOURCES@%$ALL_SOURCES%g | |
698dcdb6 VZ |
20751 | s%@GUIDIST@%$GUIDIST%g |
20752 | s%@PORT_FILES@%$PORT_FILES%g | |
20753 | s%@DISTDIR@%$DISTDIR%g | |
698dcdb6 | 20754 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g |
62d0491b | 20755 | s%@LDFLAGS_GL@%$LDFLAGS_GL%g |
698dcdb6 | 20756 | s%@OPENGL_LIBS@%$OPENGL_LIBS%g |
3d63bc3a | 20757 | s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g |
698dcdb6 | 20758 | s%@EXTRADEFS@%$EXTRADEFS%g |
698dcdb6 | 20759 | s%@RESFLAGS@%$RESFLAGS%g |
3a922bb4 | 20760 | s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g |
d08b457b | 20761 | s%@WX_RESOURCES_MACOSX@%$WX_RESOURCES_MACOSX%g |
e23081de | 20762 | s%@WX_RESOURCES_MACOSX_COMPILED@%$WX_RESOURCES_MACOSX_COMPILED%g |
ef7f2189 | 20763 | s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g |
698dcdb6 VZ |
20764 | s%@LIBWXMACRES@%$LIBWXMACRES%g |
20765 | s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g | |
2baaf735 | 20766 | s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g |
698dcdb6 VZ |
20767 | s%@DLLTOOL@%$DLLTOOL%g |
20768 | s%@AS@%$AS%g | |
20769 | s%@NM@%$NM%g | |
20770 | s%@LD@%$LD%g | |
20771 | s%@MAKEINFO@%$MAKEINFO%g | |
885d4bf5 | 20772 | s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g |
698dcdb6 VZ |
20773 | s%@SET_MAKE@%$SET_MAKE%g |
20774 | s%@subdirs@%$subdirs%g | |
1e487827 | 20775 | |
1e487827 | 20776 | CEOF |
1e487827 VS |
20777 | EOF |
20778 | ||
698dcdb6 VZ |
20779 | cat >> $CONFIG_STATUS <<\EOF |
20780 | ||
20781 | # Split the substitutions into bite-sized pieces for seds with | |
20782 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
20783 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
20784 | ac_file=1 # Number of current file. | |
20785 | ac_beg=1 # First line for current file. | |
20786 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
20787 | ac_more_lines=: | |
20788 | ac_sed_cmds="" | |
20789 | while $ac_more_lines; do | |
20790 | if test $ac_beg -gt 1; then | |
20791 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
20792 | else | |
20793 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
20794 | fi | |
20795 | if test ! -s conftest.s$ac_file; then | |
20796 | ac_more_lines=false | |
20797 | rm -f conftest.s$ac_file | |
20798 | else | |
20799 | if test -z "$ac_sed_cmds"; then | |
20800 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
10f2d63a | 20801 | else |
698dcdb6 | 20802 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
10f2d63a | 20803 | fi |
698dcdb6 VZ |
20804 | ac_file=`expr $ac_file + 1` |
20805 | ac_beg=$ac_end | |
20806 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
10f2d63a | 20807 | fi |
698dcdb6 VZ |
20808 | done |
20809 | if test -z "$ac_sed_cmds"; then | |
20810 | ac_sed_cmds=cat | |
20811 | fi | |
20812 | EOF | |
10f2d63a | 20813 | |
698dcdb6 VZ |
20814 | cat >> $CONFIG_STATUS <<EOF |
20815 | ||
20816 | CONFIG_FILES=\${CONFIG_FILES-"wx-config | |
20817 | src/make.env | |
20818 | src/makeprog.env | |
20819 | src/makelib.env | |
20820 | Makefile | |
20821 | "} | |
10f2d63a | 20822 | EOF |
698dcdb6 VZ |
20823 | cat >> $CONFIG_STATUS <<\EOF |
20824 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
10f2d63a | 20825 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
698dcdb6 VZ |
20826 | case "$ac_file" in |
20827 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
20828 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
20829 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
20830 | esac |
20831 | ||
698dcdb6 | 20832 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
1e487827 | 20833 | |
698dcdb6 VZ |
20834 | # Remove last slash and all that follows it. Not all systems have dirname. |
20835 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
20836 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
20837 | # The file is in a subdirectory. | |
20838 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
20839 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
10f2d63a | 20840 | # A "../" for each directory in $ac_dir_suffix. |
698dcdb6 | 20841 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
10f2d63a VZ |
20842 | else |
20843 | ac_dir_suffix= ac_dots= | |
20844 | fi | |
20845 | ||
698dcdb6 VZ |
20846 | case "$ac_given_srcdir" in |
20847 | .) srcdir=. | |
20848 | if test -z "$ac_dots"; then top_srcdir=. | |
20849 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
20850 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
10f2d63a | 20851 | *) # Relative path. |
698dcdb6 VZ |
20852 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
20853 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
10f2d63a VZ |
20854 | esac |
20855 | ||
698dcdb6 VZ |
20856 | case "$ac_given_INSTALL" in |
20857 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
20858 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
10f2d63a VZ |
20859 | esac |
20860 | ||
698dcdb6 VZ |
20861 | echo creating "$ac_file" |
20862 | rm -f "$ac_file" | |
20863 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
20864 | case "$ac_file" in | |
20865 | *Makefile*) ac_comsub="1i\\ | |
20866 | # $configure_input" ;; | |
20867 | *) ac_comsub= ;; | |
20868 | esac | |
10f2d63a | 20869 | |
698dcdb6 VZ |
20870 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
20871 | sed -e "$ac_comsub | |
20872 | s%@configure_input@%$configure_input%g | |
20873 | s%@srcdir@%$srcdir%g | |
20874 | s%@top_srcdir@%$top_srcdir%g | |
20875 | s%@INSTALL@%$INSTALL%g | |
20876 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
20877 | fi; done | |
20878 | rm -f conftest.s* | |
10f2d63a VZ |
20879 | |
20880 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
20881 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
20882 | # | |
20883 | # ac_d sets the value in "#define NAME VALUE" lines. | |
698dcdb6 VZ |
20884 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
20885 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
20886 | ac_dC='\3' | |
20887 | ac_dD='%g' | |
20888 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
20889 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
20890 | ac_uB='\([ ]\)%\1#\2define\3' | |
10f2d63a | 20891 | ac_uC=' ' |
698dcdb6 VZ |
20892 | ac_uD='\4%g' |
20893 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
20894 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
20895 | ac_eB='$%\1#\2define\3' | |
20896 | ac_eC=' ' | |
20897 | ac_eD='%g' | |
10f2d63a | 20898 | |
698dcdb6 VZ |
20899 | if test "${CONFIG_HEADERS+set}" != set; then |
20900 | EOF | |
20901 | cat >> $CONFIG_STATUS <<EOF | |
20902 | CONFIG_HEADERS="setup.h:setup.h.in" | |
20903 | EOF | |
20904 | cat >> $CONFIG_STATUS <<\EOF | |
20905 | fi | |
20906 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
10f2d63a | 20907 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
698dcdb6 VZ |
20908 | case "$ac_file" in |
20909 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
20910 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
20911 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
20912 | esac |
20913 | ||
698dcdb6 VZ |
20914 | echo creating $ac_file |
20915 | ||
20916 | rm -f conftest.frag conftest.in conftest.out | |
20917 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
20918 | cat $ac_file_inputs > conftest.in | |
20919 | ||
20920 | EOF | |
20921 | ||
20922 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
20923 | # the proper values into config.h.in to produce config.h. And first: | |
20924 | # Protect against being on the right side of a sed subst in config.status. | |
20925 | # Protect against being in an unquoted here document in config.status. | |
20926 | rm -f conftest.vals | |
20927 | cat > conftest.hdr <<\EOF | |
20928 | s/[\\&%]/\\&/g | |
20929 | s%[\\$`]%\\&%g | |
20930 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
20931 | s%ac_d%ac_u%gp | |
20932 | s%ac_u%ac_e%gp | |
20933 | EOF | |
20934 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
20935 | rm -f conftest.hdr | |
10f2d63a VZ |
20936 | |
20937 | # This sed command replaces #undef with comments. This is necessary, for | |
20938 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
20939 | # on some systems where configure will not decide to define it. | |
698dcdb6 VZ |
20940 | cat >> conftest.vals <<\EOF |
20941 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
10f2d63a VZ |
20942 | EOF |
20943 | ||
698dcdb6 VZ |
20944 | # Break up conftest.vals because some shells have a limit on |
20945 | # the size of here documents, and old seds have small limits too. | |
10f2d63a VZ |
20946 | |
20947 | rm -f conftest.tail | |
698dcdb6 | 20948 | while : |
10f2d63a | 20949 | do |
698dcdb6 VZ |
20950 | ac_lines=`grep -c . conftest.vals` |
20951 | # grep -c gives empty output for an empty file on some AIX systems. | |
20952 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
20953 | # Write a limited-size here document to conftest.frag. | |
20954 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
20955 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
10f2d63a | 20956 | echo 'CEOF |
698dcdb6 VZ |
20957 | sed -f conftest.frag conftest.in > conftest.out |
20958 | rm -f conftest.in | |
20959 | mv conftest.out conftest.in | |
20960 | ' >> $CONFIG_STATUS | |
20961 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
20962 | rm -f conftest.vals | |
20963 | mv conftest.tail conftest.vals | |
10f2d63a | 20964 | done |
698dcdb6 VZ |
20965 | rm -f conftest.vals |
20966 | ||
20967 | cat >> $CONFIG_STATUS <<\EOF | |
20968 | rm -f conftest.frag conftest.h | |
20969 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
20970 | cat conftest.in >> conftest.h | |
20971 | rm -f conftest.in | |
20972 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
20973 | echo "$ac_file is unchanged" | |
20974 | rm -f conftest.h | |
10f2d63a | 20975 | else |
698dcdb6 VZ |
20976 | # Remove last slash and all that follows it. Not all systems have dirname. |
20977 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
10f2d63a | 20978 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
698dcdb6 VZ |
20979 | # The file is in a subdirectory. |
20980 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
10f2d63a | 20981 | fi |
698dcdb6 VZ |
20982 | rm -f $ac_file |
20983 | mv conftest.h $ac_file | |
10f2d63a | 20984 | fi |
698dcdb6 VZ |
20985 | fi; done |
20986 | ||
10f2d63a | 20987 | EOF |
698dcdb6 | 20988 | cat >> $CONFIG_STATUS <<EOF |
10f2d63a | 20989 | |
3a922bb4 | 20990 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}" |
698dcdb6 VZ |
20991 | LN_S="${LN_S}" |
20992 | ||
20993 | ||
20994 | EOF | |
20995 | cat >> $CONFIG_STATUS <<\EOF | |
10f2d63a | 20996 | |
652d930d | 20997 | if test ! -h wx-config; then |
991a5759 | 20998 | chmod +x wx-config |
3a922bb4 RL |
20999 | mv wx-config wx${TOOLCHAIN_NAME}-config |
21000 | ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config | |
991a5759 | 21001 | fi |
665bbe97 | 21002 | |
00cf1208 RR |
21003 | if test ! -d lib; then |
21004 | mkdir lib | |
21005 | fi | |
21006 | if test ! -d lib/wx; then | |
21007 | mkdir lib/wx | |
21008 | fi | |
21009 | if test ! -d lib/wx/include; then | |
21010 | mkdir lib/wx/include | |
21011 | fi | |
3a922bb4 RL |
21012 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then |
21013 | mkdir lib/wx/include/${TOOLCHAIN_NAME} | |
00cf1208 | 21014 | fi |
3a922bb4 RL |
21015 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then |
21016 | mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx | |
00cf1208 RR |
21017 | fi |
21018 | if test -f setup.h; then | |
3a922bb4 | 21019 | mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h |
00cf1208 | 21020 | fi |
698dcdb6 VZ |
21021 | |
21022 | exit 0 | |
10f2d63a VZ |
21023 | EOF |
21024 | chmod +x $CONFIG_STATUS | |
698dcdb6 VZ |
21025 | rm -fr confdefs* $ac_clean_files |
21026 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
10f2d63a | 21027 | |
2224580a VZ |
21028 | if test "$no_recursion" != yes; then |
21029 | ||
21030 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
21031 | ac_sub_configure_args= | |
21032 | ac_prev= | |
21033 | for ac_arg in $ac_configure_args; do | |
21034 | if test -n "$ac_prev"; then | |
21035 | ac_prev= | |
21036 | continue | |
21037 | fi | |
698dcdb6 | 21038 | case "$ac_arg" in |
2224580a VZ |
21039 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
21040 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
21041 | ac_prev=cache_file ;; | |
21042 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
698dcdb6 | 21043 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
2224580a VZ |
21044 | ;; |
21045 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
21046 | ac_prev=srcdir ;; | |
21047 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
21048 | ;; | |
21049 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
21050 | esac | |
21051 | done | |
21052 | ||
0106a226 | 21053 | for ac_config_dir in demos samples utils contrib mobile; do |
2224580a VZ |
21054 | |
21055 | # Do not complain, so a configure script can configure whichever | |
21056 | # parts of a large source tree are present. | |
698dcdb6 VZ |
21057 | if test ! -d $srcdir/$ac_config_dir; then |
21058 | continue | |
21059 | fi | |
21060 | ||
21061 | echo configuring in $ac_config_dir | |
2224580a | 21062 | |
698dcdb6 | 21063 | case "$srcdir" in |
2224580a VZ |
21064 | .) ;; |
21065 | *) | |
698dcdb6 VZ |
21066 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; |
21067 | else | |
21068 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
21069 | fi | |
21070 | ;; | |
2224580a VZ |
21071 | esac |
21072 | ||
21073 | ac_popdir=`pwd` | |
698dcdb6 | 21074 | cd $ac_config_dir |
2224580a | 21075 | |
698dcdb6 VZ |
21076 | # A "../" for each directory in /$ac_config_dir. |
21077 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
2224580a | 21078 | |
698dcdb6 | 21079 | case "$srcdir" in |
2224580a VZ |
21080 | .) # No --srcdir option. We are building in place. |
21081 | ac_sub_srcdir=$srcdir ;; | |
698dcdb6 VZ |
21082 | /*) # Absolute path. |
21083 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
2224580a | 21084 | *) # Relative path. |
698dcdb6 | 21085 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; |
2224580a VZ |
21086 | esac |
21087 | ||
21088 | # Check for guested configure; otherwise get Cygnus style configure. | |
698dcdb6 VZ |
21089 | if test -f $ac_sub_srcdir/configure; then |
21090 | ac_sub_configure=$ac_sub_srcdir/configure | |
2224580a VZ |
21091 | elif test -f $ac_sub_srcdir/configure.in; then |
21092 | ac_sub_configure=$ac_configure | |
21093 | else | |
698dcdb6 | 21094 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 |
2224580a VZ |
21095 | ac_sub_configure= |
21096 | fi | |
21097 | ||
21098 | # The recursion is here. | |
21099 | if test -n "$ac_sub_configure"; then | |
698dcdb6 | 21100 | |
2224580a | 21101 | # Make the cache file name correct relative to the subdirectory. |
698dcdb6 VZ |
21102 | case "$cache_file" in |
21103 | /*) ac_sub_cache_file=$cache_file ;; | |
2224580a | 21104 | *) # Relative path. |
698dcdb6 | 21105 | ac_sub_cache_file="$ac_dots$cache_file" ;; |
2224580a | 21106 | esac |
698dcdb6 VZ |
21107 | case "$ac_given_INSTALL" in |
21108 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
21109 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
21110 | esac | |
2224580a | 21111 | |
698dcdb6 | 21112 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" |
2224580a | 21113 | # The eval makes quoting arguments work. |
698dcdb6 VZ |
21114 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir |
21115 | then : | |
21116 | else | |
21117 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
21118 | fi | |
2224580a VZ |
21119 | fi |
21120 | ||
21121 | cd $ac_popdir | |
21122 | done | |
21123 | fi | |
21124 | ||
698dcdb6 | 21125 |