]>
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 | ||
f79bd02d | 1109 | ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE X11" |
10f2d63a VZ |
1110 | |
1111 | DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1112 | DEFAULT_wxUSE_MAC=0 |
1113 | DEFAULT_wxUSE_MGL=0 | |
1725144d | 1114 | DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1115 | DEFAULT_wxUSE_MOTIF=0 |
1116 | DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1117 | DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1118 | DEFAULT_wxUSE_WINE=0 |
f79bd02d | 1119 | DEFAULT_wxUSE_X11=0 |
10f2d63a VZ |
1120 | |
1121 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1122 | DEFAULT_DEFAULT_wxUSE_MAC=0 |
1123 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1725144d | 1124 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1125 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 |
1126 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1127 | DEFAULT_DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1128 | DEFAULT_DEFAULT_wxUSE_WINE=0 |
f79bd02d | 1129 | DEFAULT_DEFAULT_wxUSE_X11=0 |
10f2d63a | 1130 | |
d6a55c4b | 1131 | PROGRAM_EXT= |
3a922bb4 | 1132 | SO_SUFFIX=so |
d6a55c4b | 1133 | |
10f2d63a VZ |
1134 | case "${host}" in |
1135 | *-hp-hpux* ) | |
1136 | USE_HPUX=1 | |
1137 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1138 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
3a922bb4 | 1139 | SO_SUFFIX=sl |
698dcdb6 | 1140 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1141 | #define __HPUX__ 1 |
1142 | EOF | |
1143 | ||
1144 | ;; | |
1145 | *-*-linux* ) | |
1146 | USE_LINUX=1 | |
698dcdb6 | 1147 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1148 | #define __LINUX__ 1 |
1149 | EOF | |
1150 | ||
1151 | TMP=`uname -m` | |
1152 | if test "x$TMP" = "xalpha"; then | |
1153 | USE_ALPHA=1 | |
698dcdb6 | 1154 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1155 | #define __ALPHA__ 1 |
1156 | EOF | |
1157 | ||
1158 | fi | |
1159 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1160 | ;; | |
1161 | *-*-irix5* | *-*-irix6* ) | |
1162 | USE_SGI=1 | |
1163 | USE_SVR4=1 | |
698dcdb6 | 1164 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1165 | #define __SGI__ 1 |
1166 | EOF | |
1167 | ||
698dcdb6 | 1168 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1169 | #define __SVR4__ 1 |
1170 | EOF | |
1171 | ||
1172 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1173 | ;; | |
1174 | *-*-solaris2* ) | |
1175 | USE_SUN=1 | |
1176 | USE_SOLARIS=1 | |
1177 | USE_SVR4=1 | |
698dcdb6 | 1178 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1179 | #define __SUN__ 1 |
1180 | EOF | |
1181 | ||
698dcdb6 | 1182 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1183 | #define __SOLARIS__ 1 |
1184 | EOF | |
1185 | ||
698dcdb6 | 1186 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1187 | #define __SVR4__ 1 |
1188 | EOF | |
1189 | ||
1190 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1191 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1192 | ;; |
1193 | *-*-sunos4* ) | |
1194 | USE_SUN=1 | |
1195 | USE_SUNOS=1 | |
1196 | USE_BSD=1 | |
698dcdb6 | 1197 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1198 | #define __SUN__ 1 |
1199 | EOF | |
1200 | ||
698dcdb6 | 1201 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1202 | #define __SUNOS__ 1 |
1203 | EOF | |
1204 | ||
698dcdb6 | 1205 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1206 | #define __BSD__ 1 |
1207 | EOF | |
1208 | ||
1209 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1210 | ;; | |
f6bcfd97 | 1211 | *-*-freebsd*) |
10f2d63a VZ |
1212 | USE_BSD=1 |
1213 | USE_FREEBSD=1 | |
698dcdb6 | 1214 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1215 | #define __FREEBSD__ 1 |
1216 | EOF | |
1217 | ||
698dcdb6 | 1218 | cat >> confdefs.h <<\EOF |
10f2d63a | 1219 | #define __BSD__ 1 |
95c8801c VS |
1220 | EOF |
1221 | ||
1222 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1223 | ;; | |
1224 | *-*-openbsd*) | |
1225 | USE_BSD=1 | |
1226 | USE_OPENBSD=1 | |
698dcdb6 | 1227 | cat >> confdefs.h <<\EOF |
95c8801c VS |
1228 | #define __FREEBSD__ 1 |
1229 | EOF | |
1230 | ||
698dcdb6 | 1231 | cat >> confdefs.h <<\EOF |
95c8801c | 1232 | #define __OPENBSD__ 1 |
f6bcfd97 BP |
1233 | EOF |
1234 | ||
1235 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1236 | ;; | |
1237 | *-*-netbsd*) | |
1238 | USE_BSD=1 | |
1239 | USE_NETBSD=1 | |
698dcdb6 | 1240 | cat >> confdefs.h <<\EOF |
f6bcfd97 BP |
1241 | #define __FREEBSD__ 1 |
1242 | EOF | |
1243 | ||
698dcdb6 | 1244 | cat >> confdefs.h <<\EOF |
f6bcfd97 | 1245 | #define __NETBSD__ 1 |
10f2d63a VZ |
1246 | EOF |
1247 | ||
1248 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1249 | ;; | |
1250 | *-*-osf* ) | |
1251 | USE_ALPHA=1 | |
1252 | USE_OSF=1 | |
698dcdb6 | 1253 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1254 | #define __ALPHA__ 1 |
1255 | EOF | |
1256 | ||
698dcdb6 | 1257 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1258 | #define __OSF__ 1 |
1259 | EOF | |
1260 | ||
1261 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1262 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1263 | ;; |
1264 | *-*-dgux5* ) | |
1265 | USE_ALPHA=1 | |
1266 | USE_SVR4=1 | |
698dcdb6 | 1267 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1268 | #define __ALPHA__ 1 |
1269 | EOF | |
1270 | ||
698dcdb6 | 1271 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1272 | #define __SVR4__ 1 |
1273 | EOF | |
1274 | ||
1275 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1276 | ;; | |
1277 | *-*-sysv5* ) | |
1278 | USE_SYSV=1 | |
1279 | USE_SVR4=1 | |
698dcdb6 | 1280 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1281 | #define __SYSV__ 1 |
1282 | EOF | |
1283 | ||
698dcdb6 | 1284 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1285 | #define __SVR4__ 1 |
1286 | EOF | |
1287 | ||
1288 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1289 | ;; | |
1290 | *-*-aix* ) | |
1291 | USE_AIX=1 | |
1292 | USE_SYSV=1 | |
1293 | USE_SVR4=1 | |
698dcdb6 | 1294 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1295 | #define __AIX__ 1 |
1296 | EOF | |
1297 | ||
698dcdb6 | 1298 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1299 | #define __SYSV__ 1 |
1300 | EOF | |
1301 | ||
698dcdb6 | 1302 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1303 | #define __SVR4__ 1 |
1304 | EOF | |
1305 | ||
1306 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1307 | ;; | |
1308 | ||
1c8183e2 | 1309 | *-*-cygwin* | *-*-mingw32* ) |
10f2d63a VZ |
1310 | USE_UNIX=0 |
1311 | USE_WIN32=1 | |
3a922bb4 | 1312 | SO_SUFFIX=dll |
698dcdb6 | 1313 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1314 | #define __WIN32__ 1 |
1315 | EOF | |
1316 | ||
698dcdb6 | 1317 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1318 | #define __WIN95__ 1 |
1319 | EOF | |
1320 | ||
698dcdb6 | 1321 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1322 | #define __WINDOWS__ 1 |
1323 | EOF | |
1324 | ||
698dcdb6 | 1325 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1326 | #define __GNUWIN32__ 1 |
1327 | EOF | |
1328 | ||
698dcdb6 | 1329 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1330 | #define STRICT 1 |
1331 | EOF | |
1332 | ||
698dcdb6 | 1333 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1334 | #define WINVER 0x0400 |
1335 | EOF | |
1336 | ||
cf27ef00 | 1337 | PROGRAM_EXT=".exe" |
7b7a7637 | 1338 | RESCOMP=windres |
10f2d63a VZ |
1339 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1340 | ;; | |
1341 | ||
f9bc1684 VS |
1342 | *-pc-msdosdjgpp ) |
1343 | USE_UNIX=0 | |
1344 | USE_DOS=1 | |
1345 | cat >> confdefs.h <<\EOF | |
1346 | #define __DOS__ 1 | |
1347 | EOF | |
1348 | ||
1349 | PROGRAM_EXT=".exe" | |
1350 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
f9bc1684 VS |
1351 | ;; |
1352 | ||
6fa882bd | 1353 | *-pc-os2_emx | *-pc-os2-emx ) |
698dcdb6 | 1354 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1355 | #define __EMX__ 1 |
1356 | EOF | |
1357 | ||
cf27ef00 | 1358 | PROGRAM_EXT=".exe" |
e07802fc | 1359 | DEFAULT_DEFAULT_wxUSE_PM=1 |
d558c907 | 1360 | LIBS="$LIBS -lstdcpp" |
10f2d63a VZ |
1361 | ;; |
1362 | ||
d08b457b GD |
1363 | powerpc-*-darwin* ) |
1364 | USE_BSD=1 | |
f11bdd03 | 1365 | USE_DARWIN=1 |
3a922bb4 | 1366 | SO_SUFFIX=dylib |
698dcdb6 | 1367 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1368 | #define __BSD__ 1 |
b4085ce6 GD |
1369 | EOF |
1370 | ||
698dcdb6 | 1371 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1372 | #define __DARWIN__ 1 |
d08b457b GD |
1373 | EOF |
1374 | ||
1375 | cat >> confdefs.h <<\EOF | |
1376 | #define __POWERPC__ 1 | |
b4085ce6 GD |
1377 | EOF |
1378 | ||
1379 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1380 | ;; | |
1381 | ||
b12915c1 VZ |
1382 | *-*-beos* ) |
1383 | USE_BEOS=1 | |
698dcdb6 | 1384 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
1385 | #define __BEOS__ 1 |
1386 | EOF | |
1387 | ||
1388 | ;; | |
1389 | ||
10f2d63a | 1390 | *) |
698dcdb6 | 1391 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } |
10f2d63a VZ |
1392 | esac |
1393 | ||
1394 | if test "$USE_UNIX" = 1 ; then | |
b12915c1 | 1395 | wxUSE_UNIX=yes |
698dcdb6 | 1396 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1397 | #define __UNIX__ 1 |
1398 | EOF | |
1399 | ||
10f2d63a VZ |
1400 | fi |
1401 | ||
2389f33b VZ |
1402 | if test "$USE_LINUX" = 1; then |
1403 | echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6 | |
009fead0 | 1404 | echo "configure:1405: checking for glibc 2.1 or later" >&5 |
2389f33b VZ |
1405 | if eval "test \"`echo '$''{'wx_lib_glibc21'+set}'`\" = set"; then |
1406 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1407 | else | |
a72a4bfa VS |
1408 | |
1409 | cat > conftest.$ac_ext <<EOF | |
009fead0 | 1410 | #line 1411 "configure" |
2389f33b VZ |
1411 | #include "confdefs.h" |
1412 | #include <features.h> | |
1413 | int main() { | |
1414 | ||
1415 | #if !__GLIBC_PREREQ(2, 1) | |
1416 | #error not glibc2.1 | |
1417 | #endif | |
1418 | ||
1419 | ; return 0; } | |
1420 | EOF | |
009fead0 | 1421 | if { (eval echo configure:1422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2389f33b VZ |
1422 | rm -rf conftest* |
1423 | ||
1424 | wx_lib_glibc21=yes | |
1425 | ||
1426 | else | |
1427 | echo "configure: failed program was:" >&5 | |
1428 | cat conftest.$ac_ext >&5 | |
1429 | rm -rf conftest* | |
1430 | ||
1431 | wx_lib_glibc21=no | |
1432 | ||
1433 | ||
1434 | fi | |
1435 | rm -f conftest* | |
1436 | ||
1437 | fi | |
1438 | ||
1439 | echo "$ac_t""$wx_lib_glibc21" 1>&6 | |
2389f33b VZ |
1440 | if test "$wx_lib_glibc21" = "yes"; then |
1441 | cat >> confdefs.h <<\EOF | |
1442 | #define wxHAVE_GLIBC2 1 | |
1443 | EOF | |
1444 | ||
1445 | fi | |
1446 | fi | |
10f2d63a | 1447 | |
1e487827 | 1448 | |
1e487827 | 1449 | |
6232543b | 1450 | |
10f2d63a VZ |
1451 | wx_arg_cache_file="configarg.cache" |
1452 | echo "loading argument cache $wx_arg_cache_file" | |
1453 | rm -f ${wx_arg_cache_file}.tmp | |
1454 | touch ${wx_arg_cache_file}.tmp | |
1455 | touch ${wx_arg_cache_file} | |
698dcdb6 | 1456 | |
10f2d63a VZ |
1457 | |
1458 | DEBUG_CONFIGURE=0 | |
1459 | if test $DEBUG_CONFIGURE = 1; then | |
1e6feb95 VZ |
1460 | DEFAULT_wxUSE_UNIVERSAL=no |
1461 | ||
d8356fa3 VZ |
1462 | DEFAULT_wxUSE_NANOX=no |
1463 | ||
10f2d63a VZ |
1464 | DEFAULT_wxUSE_THREADS=yes |
1465 | ||
1466 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1467 | DEFAULT_wxUSE_SONAME=no |
1e6feb95 | 1468 | DEFAULT_wxUSE_OPTIMISE=no |
10f2d63a VZ |
1469 | DEFAULT_wxUSE_PROFILE=no |
1470 | DEFAULT_wxUSE_NO_DEPS=no | |
f676c7ff MB |
1471 | DEFAULT_wxUSE_NO_RTTI=yes |
1472 | DEFAULT_wxUSE_NO_EXCEPTIONS=yes | |
10f2d63a VZ |
1473 | DEFAULT_wxUSE_PERMISSIVE=no |
1474 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1475 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1476 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1477 | DEFAULT_wxUSE_MEM_TRACING=no | |
1478 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1479 | DEFAULT_wxUSE_DMALLOC=no | |
a7ae7112 | 1480 | DEFAULT_wxUSE_PRECOMP=no |
10f2d63a VZ |
1481 | DEFAULT_wxUSE_APPLE_IEEE=no |
1482 | ||
1483 | DEFAULT_wxUSE_LOG=yes | |
1e6feb95 VZ |
1484 | DEFAULT_wxUSE_LOGWINDOW=no |
1485 | DEFAULT_wxUSE_LOGGUI=no | |
69d27ff7 | 1486 | DEFAULT_wxUSE_LOGDIALOG=no |
10f2d63a VZ |
1487 | |
1488 | DEFAULT_wxUSE_GUI=yes | |
1e6feb95 | 1489 | DEFAULT_wxUSE_CONTROLS=no |
10f2d63a | 1490 | |
3e44f09d | 1491 | DEFAULT_wxUSE_REGEX=no |
10f2d63a VZ |
1492 | DEFAULT_wxUSE_ZLIB=no |
1493 | DEFAULT_wxUSE_LIBPNG=no | |
1494 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 1495 | DEFAULT_wxUSE_LIBTIFF=no |
10f2d63a | 1496 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 1497 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1498 | |
eb4efbdc | 1499 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
4f3c5f06 | 1500 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
10f2d63a | 1501 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1502 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
1503 | DEFAULT_wxUSE_DATETIME=no | |
1504 | DEFAULT_wxUSE_TIMEDATE=no | |
1505 | DEFAULT_wxUSE_TIMER=no | |
1506 | DEFAULT_wxUSE_STOPWATCH=no | |
10f2d63a | 1507 | DEFAULT_wxUSE_FILE=no |
1e6feb95 | 1508 | DEFAULT_wxUSE_FFILE=no |
a3a584a7 | 1509 | DEFAULT_wxUSE_TEXTBUFFER=no |
10f2d63a | 1510 | DEFAULT_wxUSE_TEXTFILE=no |
10f2d63a VZ |
1511 | DEFAULT_wxUSE_WAVE=no |
1512 | DEFAULT_wxUSE_INTL=no | |
1513 | DEFAULT_wxUSE_CONFIG=no | |
1e6feb95 | 1514 | DEFAULT_wxUSE_FONTMAP=no |
10f2d63a VZ |
1515 | DEFAULT_wxUSE_STREAMS=no |
1516 | DEFAULT_wxUSE_SOCKETS=no | |
1517 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
10f2d63a | 1518 | DEFAULT_wxUSE_JOYSTICK=no |
6bff71f8 | 1519 | DEFAULT_wxUSE_DYNLIB_CLASS=no |
0b9ab0bd | 1520 | DEFAULT_wxUSE_DYNAMIC_LOADER=no |
10f2d63a | 1521 | DEFAULT_wxUSE_LONGLONG=no |
e8f65ba6 | 1522 | DEFAULT_wxUSE_GEOMETRY=no |
10f2d63a VZ |
1523 | |
1524 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1525 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1526 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1527 | ||
1528 | DEFAULT_wxUSE_X_RESOURCES=no | |
1529 | DEFAULT_wxUSE_CLIPBOARD=no | |
1530 | DEFAULT_wxUSE_TOOLTIPS=no | |
1531 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
24fd6d87 | 1532 | DEFAULT_wxUSE_DRAGIMAGE=no |
10f2d63a VZ |
1533 | DEFAULT_wxUSE_SPLINES=no |
1534 | ||
1535 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1536 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1537 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1538 | ||
1539 | DEFAULT_wxUSE_PROLOGIO=no | |
1540 | DEFAULT_wxUSE_RESOURCES=no | |
1541 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1542 | DEFAULT_wxUSE_IPC=no | |
1543 | DEFAULT_wxUSE_HELP=no | |
29fd3c0c | 1544 | DEFAULT_wxUSE_MS_HTML_HELP=no |
3379ed37 | 1545 | DEFAULT_wxUSE_WXHTML_HELP=no |
24176f2c | 1546 | DEFAULT_wxUSE_TREELAYOUT=no |
10f2d63a | 1547 | DEFAULT_wxUSE_METAFILE=no |
1e6feb95 | 1548 | DEFAULT_wxUSE_MIMETYPE=no |
4cdb0ab0 VS |
1549 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no |
1550 | DEFAULT_wxUSE_PROTOCOL=no | |
1551 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
1552 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
1553 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
1554 | DEFAULT_wxUSE_URL=no | |
1555 | ||
10f2d63a | 1556 | DEFAULT_wxUSE_COMMONDLGS=no |
1e6feb95 VZ |
1557 | DEFAULT_wxUSE_CHOICEDLG=no |
1558 | DEFAULT_wxUSE_COLOURDLG=no | |
10f2d63a | 1559 | DEFAULT_wxUSE_DIRDLG=no |
1e6feb95 | 1560 | DEFAULT_wxUSE_FILEDLG=no |
8db37e06 | 1561 | DEFAULT_wxUSE_FINDREPLDLG=no |
1e6feb95 VZ |
1562 | DEFAULT_wxUSE_FONTDLG=no |
1563 | DEFAULT_wxUSE_MSGDLG=no | |
1564 | DEFAULT_wxUSE_NUMBERDLG=no | |
10f2d63a | 1565 | DEFAULT_wxUSE_TEXTDLG=no |
cbca9943 | 1566 | DEFAULT_wxUSE_SPLASH=no |
10f2d63a VZ |
1567 | DEFAULT_wxUSE_STARTUP_TIPS=no |
1568 | DEFAULT_wxUSE_PROGRESSDLG=no | |
b1f5d087 VZ |
1569 | DEFAULT_wxUSE_WIZARDDLG=no |
1570 | ||
1e6feb95 | 1571 | DEFAULT_wxUSE_MENUS=no |
10f2d63a VZ |
1572 | DEFAULT_wxUSE_MINIFRAME=no |
1573 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 1574 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
1575 | DEFAULT_wxUSE_FS_INET=no |
1576 | DEFAULT_wxUSE_FS_ZIP=no | |
1577 | DEFAULT_wxUSE_BUSYINFO=no | |
1578 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1e6feb95 | 1579 | DEFAULT_wxUSE_VALIDATORS=no |
10f2d63a VZ |
1580 | |
1581 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 | 1582 | DEFAULT_wxUSE_BUTTON=no |
10f2d63a | 1583 | DEFAULT_wxUSE_BMPBUTTON=no |
1e6feb95 VZ |
1584 | DEFAULT_wxUSE_CALCTRL=no |
1585 | DEFAULT_wxUSE_CARET=no | |
10f2d63a VZ |
1586 | DEFAULT_wxUSE_CHECKBOX=no |
1587 | DEFAULT_wxUSE_CHECKLST=no | |
1e6feb95 | 1588 | DEFAULT_wxUSE_CHOICE=no |
10f2d63a VZ |
1589 | DEFAULT_wxUSE_COMBOBOX=no |
1590 | DEFAULT_wxUSE_GAUGE=no | |
1591 | DEFAULT_wxUSE_GRID=no | |
1592 | DEFAULT_wxUSE_NEW_GRID=no | |
1593 | DEFAULT_wxUSE_IMAGLIST=no | |
1594 | DEFAULT_wxUSE_LISTBOX=no | |
1595 | DEFAULT_wxUSE_LISTCTRL=no | |
1596 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 1597 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
1598 | DEFAULT_wxUSE_RADIOBOX=no |
1599 | DEFAULT_wxUSE_RADIOBTN=no | |
1600 | DEFAULT_wxUSE_SASH=no | |
1601 | DEFAULT_wxUSE_SCROLLBAR=no | |
1602 | DEFAULT_wxUSE_SLIDER=no | |
1603 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 1604 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
1605 | DEFAULT_wxUSE_SPLITTER=no |
1606 | DEFAULT_wxUSE_STATBMP=no | |
1607 | DEFAULT_wxUSE_STATBOX=no | |
1608 | DEFAULT_wxUSE_STATLINE=no | |
1e6feb95 | 1609 | DEFAULT_wxUSE_STATTEXT=no |
10f2d63a VZ |
1610 | DEFAULT_wxUSE_STATUSBAR=yes |
1611 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1612 | DEFAULT_wxUSE_TEXTCTRL=no |
1db8dc4a | 1613 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 1614 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
1615 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
1616 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a | 1617 | DEFAULT_wxUSE_TREECTRL=no |
9f41d601 | 1618 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 1619 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
1620 | |
1621 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 1622 | DEFAULT_wxUSE_UNICODE_MSLU=no |
10f2d63a VZ |
1623 | DEFAULT_wxUSE_WCSRTOMBS=no |
1624 | ||
edae8572 | 1625 | DEFAULT_wxUSE_PALETTE=no |
0046ff7c | 1626 | DEFAULT_wxUSE_IMAGE=no |
10f2d63a VZ |
1627 | DEFAULT_wxUSE_GIF=no |
1628 | DEFAULT_wxUSE_PCX=no | |
1629 | DEFAULT_wxUSE_PNM=no | |
4b6b4dfc | 1630 | DEFAULT_wxUSE_IFF=no |
0046ff7c | 1631 | DEFAULT_wxUSE_XPM=no |
658974ae | 1632 | DEFAULT_wxUSE_ICO_CUR=no |
10f2d63a | 1633 | else |
1e6feb95 VZ |
1634 | DEFAULT_wxUSE_UNIVERSAL=no |
1635 | ||
d8356fa3 VZ |
1636 | DEFAULT_wxUSE_NANOX=no |
1637 | ||
10f2d63a VZ |
1638 | DEFAULT_wxUSE_THREADS=yes |
1639 | ||
1640 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1641 | DEFAULT_wxUSE_SONAME=no |
10f2d63a VZ |
1642 | DEFAULT_wxUSE_OPTIMISE=yes |
1643 | DEFAULT_wxUSE_PROFILE=no | |
1644 | DEFAULT_wxUSE_NO_DEPS=no | |
f676c7ff MB |
1645 | DEFAULT_wxUSE_NO_RTTI=yes |
1646 | DEFAULT_wxUSE_NO_EXCEPTIONS=yes | |
10f2d63a VZ |
1647 | DEFAULT_wxUSE_PERMISSIVE=no |
1648 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1649 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1650 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1651 | DEFAULT_wxUSE_MEM_TRACING=no | |
1652 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1653 | DEFAULT_wxUSE_DMALLOC=no | |
a7ae7112 | 1654 | DEFAULT_wxUSE_PRECOMP=no |
10f2d63a VZ |
1655 | DEFAULT_wxUSE_APPLE_IEEE=yes |
1656 | ||
1657 | DEFAULT_wxUSE_LOG=yes | |
d73be714 VZ |
1658 | DEFAULT_wxUSE_LOGWINDOW=yes |
1659 | DEFAULT_wxUSE_LOGGUI=yes | |
69d27ff7 | 1660 | DEFAULT_wxUSE_LOGDIALOG=yes |
10f2d63a VZ |
1661 | |
1662 | DEFAULT_wxUSE_GUI=yes | |
1663 | ||
831b3152 | 1664 | DEFAULT_wxUSE_REGEX=yes |
10f2d63a VZ |
1665 | DEFAULT_wxUSE_ZLIB=yes |
1666 | DEFAULT_wxUSE_LIBPNG=yes | |
1667 | DEFAULT_wxUSE_LIBJPEG=yes | |
b47c832e | 1668 | DEFAULT_wxUSE_LIBTIFF=yes |
16b52fa1 | 1669 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 1670 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1671 | |
eb4efbdc | 1672 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
4f3c5f06 | 1673 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
10f2d63a | 1674 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1675 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
1676 | DEFAULT_wxUSE_DATETIME=yes | |
1677 | DEFAULT_wxUSE_TIMEDATE=no | |
1678 | DEFAULT_wxUSE_TIMER=yes | |
1679 | DEFAULT_wxUSE_STOPWATCH=yes | |
10f2d63a | 1680 | DEFAULT_wxUSE_FILE=yes |
1e6feb95 | 1681 | DEFAULT_wxUSE_FFILE=yes |
a3a584a7 | 1682 | DEFAULT_wxUSE_TEXTBUFFER=yes |
10f2d63a | 1683 | DEFAULT_wxUSE_TEXTFILE=yes |
10f2d63a VZ |
1684 | DEFAULT_wxUSE_WAVE=no |
1685 | DEFAULT_wxUSE_INTL=yes | |
1686 | DEFAULT_wxUSE_CONFIG=yes | |
1e6feb95 | 1687 | DEFAULT_wxUSE_FONTMAP=yes |
10f2d63a VZ |
1688 | DEFAULT_wxUSE_STREAMS=yes |
1689 | DEFAULT_wxUSE_SOCKETS=yes | |
1690 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
10f2d63a | 1691 | DEFAULT_wxUSE_JOYSTICK=yes |
6bff71f8 | 1692 | DEFAULT_wxUSE_DYNLIB_CLASS=yes |
9337b578 | 1693 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes |
b685cd9b | 1694 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 1695 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
1696 | |
1697 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1698 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1699 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1700 | ||
1701 | DEFAULT_wxUSE_X_RESOURCES=no | |
1702 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1703 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1704 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
24fd6d87 | 1705 | DEFAULT_wxUSE_DRAGIMAGE=yes |
10f2d63a VZ |
1706 | DEFAULT_wxUSE_SPLINES=yes |
1707 | ||
1708 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1709 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1710 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1711 | ||
1712 | DEFAULT_wxUSE_PROLOGIO=yes | |
1713 | DEFAULT_wxUSE_RESOURCES=yes | |
1714 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
1715 | DEFAULT_wxUSE_IPC=yes | |
1716 | DEFAULT_wxUSE_HELP=yes | |
29fd3c0c | 1717 | DEFAULT_wxUSE_MS_HTML_HELP=yes |
3379ed37 | 1718 | DEFAULT_wxUSE_WXHTML_HELP=yes |
24176f2c | 1719 | DEFAULT_wxUSE_TREELAYOUT=yes |
10f2d63a | 1720 | DEFAULT_wxUSE_METAFILE=yes |
1e6feb95 | 1721 | DEFAULT_wxUSE_MIMETYPE=yes |
3e44f09d | 1722 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
4cdb0ab0 VS |
1723 | DEFAULT_wxUSE_PROTOCOL=yes |
1724 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
1725 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
1726 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
1727 | DEFAULT_wxUSE_URL=yes | |
10f2d63a VZ |
1728 | |
1729 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1e6feb95 VZ |
1730 | DEFAULT_wxUSE_CHOICEDLG=yes |
1731 | DEFAULT_wxUSE_COLOURDLG=yes | |
10f2d63a | 1732 | DEFAULT_wxUSE_DIRDLG=yes |
1e6feb95 | 1733 | DEFAULT_wxUSE_FILEDLG=yes |
8db37e06 | 1734 | DEFAULT_wxUSE_FINDREPLDLG=yes |
1e6feb95 VZ |
1735 | DEFAULT_wxUSE_FONTDLG=yes |
1736 | DEFAULT_wxUSE_MSGDLG=yes | |
1737 | DEFAULT_wxUSE_NUMBERDLG=yes | |
10f2d63a | 1738 | DEFAULT_wxUSE_TEXTDLG=yes |
cbca9943 | 1739 | DEFAULT_wxUSE_SPLASH=yes |
10f2d63a VZ |
1740 | DEFAULT_wxUSE_STARTUP_TIPS=yes |
1741 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
f33f19dd VZ |
1742 | DEFAULT_wxUSE_WIZARDDLG=yes |
1743 | ||
1e6feb95 | 1744 | DEFAULT_wxUSE_MENUS=yes |
10f2d63a VZ |
1745 | DEFAULT_wxUSE_MINIFRAME=yes |
1746 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 1747 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
1748 | DEFAULT_wxUSE_FS_INET=yes |
1749 | DEFAULT_wxUSE_FS_ZIP=yes | |
1750 | DEFAULT_wxUSE_BUSYINFO=yes | |
1751 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1752 | DEFAULT_wxUSE_VALIDATORS=yes | |
1753 | ||
1754 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 | 1755 | DEFAULT_wxUSE_BUTTON=yes |
10f2d63a | 1756 | DEFAULT_wxUSE_BMPBUTTON=yes |
1e6feb95 VZ |
1757 | DEFAULT_wxUSE_CALCTRL=yes |
1758 | DEFAULT_wxUSE_CARET=yes | |
10f2d63a VZ |
1759 | DEFAULT_wxUSE_CHECKBOX=yes |
1760 | DEFAULT_wxUSE_CHECKLST=yes | |
1761 | DEFAULT_wxUSE_CHOICE=yes | |
1762 | DEFAULT_wxUSE_COMBOBOX=yes | |
1763 | DEFAULT_wxUSE_GAUGE=yes | |
1764 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 1765 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
1766 | DEFAULT_wxUSE_IMAGLIST=yes |
1767 | DEFAULT_wxUSE_LISTBOX=yes | |
1768 | DEFAULT_wxUSE_LISTCTRL=yes | |
1769 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 1770 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
1771 | DEFAULT_wxUSE_RADIOBOX=yes |
1772 | DEFAULT_wxUSE_RADIOBTN=yes | |
1773 | DEFAULT_wxUSE_SASH=yes | |
1774 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1775 | DEFAULT_wxUSE_SLIDER=yes | |
1776 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 1777 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
1778 | DEFAULT_wxUSE_SPLITTER=yes |
1779 | DEFAULT_wxUSE_STATBMP=yes | |
1780 | DEFAULT_wxUSE_STATBOX=yes | |
1781 | DEFAULT_wxUSE_STATLINE=yes | |
1e6feb95 | 1782 | DEFAULT_wxUSE_STATTEXT=yes |
10f2d63a VZ |
1783 | DEFAULT_wxUSE_STATUSBAR=yes |
1784 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1785 | DEFAULT_wxUSE_TEXTCTRL=yes |
1db8dc4a | 1786 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 1787 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
1788 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
1789 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a | 1790 | DEFAULT_wxUSE_TREECTRL=yes |
9f41d601 | 1791 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 1792 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
1793 | |
1794 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 1795 | DEFAULT_wxUSE_UNICODE_MSLU=yes |
10f2d63a VZ |
1796 | DEFAULT_wxUSE_WCSRTOMBS=no |
1797 | ||
edae8572 | 1798 | DEFAULT_wxUSE_PALETTE=yes |
0046ff7c | 1799 | DEFAULT_wxUSE_IMAGE=yes |
10f2d63a VZ |
1800 | DEFAULT_wxUSE_GIF=yes |
1801 | DEFAULT_wxUSE_PCX=yes | |
cc0e8480 | 1802 | DEFAULT_wxUSE_IFF=no |
10f2d63a | 1803 | DEFAULT_wxUSE_PNM=yes |
0046ff7c | 1804 | DEFAULT_wxUSE_XPM=yes |
658974ae | 1805 | DEFAULT_wxUSE_ICO_CUR=yes |
10f2d63a VZ |
1806 | fi |
1807 | ||
698dcdb6 VZ |
1808 | |
1809 | ||
10f2d63a VZ |
1810 | for toolkit in `echo $ALL_TOOLKITS`; do |
1811 | LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}` | |
1812 | if test "x$LINE" != x ; then | |
1813 | has_toolkit_in_cache=1 | |
1814 | eval "DEFAULT_$LINE" | |
1815 | eval "CACHE_$toolkit=1" | |
1816 | fi | |
1817 | done | |
1818 | ||
698dcdb6 VZ |
1819 | |
1820 | ||
1821 | echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6 | |
009fead0 | 1822 | echo "configure:1823: checking for --enable-gui" >&5 |
10f2d63a VZ |
1823 | no_cache=0 |
1824 | # Check whether --enable-gui or --disable-gui was given. | |
1825 | if test "${enable_gui+set}" = set; then | |
1826 | enableval="$enable_gui" | |
698dcdb6 | 1827 | |
10f2d63a VZ |
1828 | if test "$enableval" = yes; then |
1829 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1830 | else | |
1831 | ac_cv_use_gui='wxUSE_GUI=no' | |
1832 | fi | |
698dcdb6 | 1833 | |
10f2d63a | 1834 | else |
698dcdb6 | 1835 | |
10f2d63a VZ |
1836 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` |
1837 | if test "x$LINE" != x ; then | |
1838 | eval "DEFAULT_$LINE" | |
1839 | else | |
1840 | no_cache=1 | |
1841 | fi | |
1842 | ||
1843 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
698dcdb6 VZ |
1844 | |
1845 | fi | |
10f2d63a VZ |
1846 | |
1847 | ||
1848 | eval "$ac_cv_use_gui" | |
1849 | if test "$no_cache" != 1; then | |
1850 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1851 | fi | |
1852 | ||
1853 | if test "$wxUSE_GUI" = yes; then | |
698dcdb6 | 1854 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 1855 | else |
698dcdb6 | 1856 | echo "$ac_t""no" 1>&6 |
10f2d63a | 1857 | fi |
698dcdb6 | 1858 | |
10f2d63a | 1859 | |
b12915c1 | 1860 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a | 1861 | |
1e6feb95 VZ |
1862 | |
1863 | echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6 | |
009fead0 | 1864 | echo "configure:1865: checking for --enable-universal" >&5 |
1e6feb95 VZ |
1865 | no_cache=0 |
1866 | # Check whether --enable-universal or --disable-universal was given. | |
1867 | if test "${enable_universal+set}" = set; then | |
1868 | enableval="$enable_universal" | |
1869 | ||
1870 | if test "$enableval" = yes; then | |
1871 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
1872 | else | |
1873 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
1874 | fi | |
1875 | ||
1876 | else | |
1877 | ||
1878 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
1879 | if test "x$LINE" != x ; then | |
1880 | eval "DEFAULT_$LINE" | |
1881 | else | |
1882 | no_cache=1 | |
1883 | fi | |
1884 | ||
1885 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
1886 | ||
1887 | fi | |
1888 | ||
1889 | ||
1890 | eval "$ac_cv_use_universal" | |
1891 | if test "$no_cache" != 1; then | |
1892 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
1893 | fi | |
1894 | ||
1895 | if test "$wxUSE_UNIVERSAL" = yes; then | |
1896 | echo "$ac_t""yes" 1>&6 | |
1897 | else | |
1898 | echo "$ac_t""no" 1>&6 | |
1899 | fi | |
1900 | ||
10f2d63a VZ |
1901 | # Check whether --with-gtk or --without-gtk was given. |
1902 | if test "${with_gtk+set}" = set; then | |
1903 | withval="$with_gtk" | |
1904 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1905 | fi |
10f2d63a VZ |
1906 | |
1907 | # Check whether --with-motif or --without-motif was given. | |
1908 | if test "${with_motif+set}" = set; then | |
1909 | withval="$with_motif" | |
1910 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1911 | fi |
10f2d63a | 1912 | |
b4085ce6 GD |
1913 | # Check whether --with-mac or --without-mac was given. |
1914 | if test "${with_mac+set}" = set; then | |
1915 | withval="$with_mac" | |
1916 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
698dcdb6 | 1917 | fi |
b4085ce6 | 1918 | |
10f2d63a VZ |
1919 | # Check whether --with-wine or --without-wine was given. |
1920 | if test "${with_wine+set}" = set; then | |
1921 | withval="$with_wine" | |
1922 | wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1923 | fi |
10f2d63a | 1924 | |
77e13408 RL |
1925 | # Check whether --with-msw or --without-msw was given. |
1926 | if test "${with_msw+set}" = set; then | |
1927 | withval="$with_msw" | |
1928 | wxUSE_MSW="$withval" CACHE_MSW TOOLKIT_GIVEN=1 | |
698dcdb6 | 1929 | fi |
10f2d63a | 1930 | |
e07802fc VZ |
1931 | # Check whether --with-pm or --without-pm was given. |
1932 | if test "${with_pm+set}" = set; then | |
1933 | withval="$with_pm" | |
1934 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
698dcdb6 VZ |
1935 | fi |
1936 | ||
1e6feb95 VZ |
1937 | # Check whether --with-mgl or --without-mgl was given. |
1938 | if test "${with_mgl+set}" = set; then | |
1939 | withval="$with_mgl" | |
1940 | wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
1941 | fi | |
1942 | ||
1725144d RR |
1943 | # Check whether --with-microwin or --without-microwin was given. |
1944 | if test "${with_microwin+set}" = set; then | |
1945 | withval="$with_microwin" | |
1946 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
1947 | fi | |
1948 | ||
f79bd02d JS |
1949 | # Check whether --with-x11 or --without-x11 was given. |
1950 | if test "${with_x11+set}" = set; then | |
1951 | withval="$with_x11" | |
3c011993 | 1952 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 |
f79bd02d JS |
1953 | fi |
1954 | ||
10f2d63a | 1955 | |
ba875e66 | 1956 | echo $ac_n "checking for --enable-nanox""... $ac_c" 1>&6 |
009fead0 | 1957 | echo "configure:1958: checking for --enable-nanox" >&5 |
d8356fa3 | 1958 | no_cache=0 |
ba875e66 VZ |
1959 | # Check whether --enable-nanox or --disable-nanox was given. |
1960 | if test "${enable_nanox+set}" = set; then | |
1961 | enableval="$enable_nanox" | |
d8356fa3 VZ |
1962 | |
1963 | if test "$enableval" = yes; then | |
ba875e66 | 1964 | ac_cv_use_nanox='wxUSE_NANOX=yes' |
d8356fa3 | 1965 | else |
ba875e66 | 1966 | ac_cv_use_nanox='wxUSE_NANOX=no' |
d8356fa3 VZ |
1967 | fi |
1968 | ||
1969 | else | |
1970 | ||
1971 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` | |
1972 | if test "x$LINE" != x ; then | |
1973 | eval "DEFAULT_$LINE" | |
1974 | else | |
1975 | no_cache=1 | |
1976 | fi | |
1977 | ||
ba875e66 | 1978 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX |
d8356fa3 VZ |
1979 | |
1980 | fi | |
1981 | ||
1982 | ||
ba875e66 | 1983 | eval "$ac_cv_use_nanox" |
d8356fa3 | 1984 | if test "$no_cache" != 1; then |
ba875e66 | 1985 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp |
d8356fa3 VZ |
1986 | fi |
1987 | ||
1988 | if test "$wxUSE_NANOX" = yes; then | |
1989 | echo "$ac_t""yes" 1>&6 | |
1990 | else | |
1991 | echo "$ac_t""no" 1>&6 | |
1992 | fi | |
1993 | ||
1994 | ||
8168de4c VZ |
1995 | # Check whether --enable-gtk2 or --disable-gtk2 was given. |
1996 | if test "${enable_gtk2+set}" = set; then | |
1997 | enableval="$enable_gtk2" | |
9e691f46 | 1998 | wxUSE_GTK2="yes" |
10f2d63a | 1999 | else |
9e691f46 | 2000 | wxUSE_GTK2="no" |
698dcdb6 VZ |
2001 | fi |
2002 | ||
703e0a69 | 2003 | |
1e487827 | 2004 | |
698dcdb6 | 2005 | echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6 |
009fead0 | 2006 | echo "configure:2007: checking for --with-libpng" >&5 |
698dcdb6 VZ |
2007 | no_cache=0 |
2008 | # Check whether --with-libpng or --without-libpng was given. | |
b12915c1 VZ |
2009 | if test "${with_libpng+set}" = set; then |
2010 | withval="$with_libpng" | |
698dcdb6 | 2011 | |
10f2d63a | 2012 | if test "$withval" = yes; then |
b12915c1 | 2013 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 2014 | elif test "$withval" = no; then |
b12915c1 | 2015 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
2016 | elif test "$withval" = sys; then |
2017 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
4f14bcd8 GD |
2018 | elif test "$withval" = builtin; then |
2019 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
422107f9 | 2020 | else |
4f14bcd8 | 2021 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2022 | fi |
698dcdb6 | 2023 | |
10f2d63a | 2024 | else |
698dcdb6 | 2025 | |
b12915c1 | 2026 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2027 | if test "x$LINE" != x ; then |
2028 | eval "DEFAULT_$LINE" | |
2029 | else | |
2030 | no_cache=1 | |
2031 | fi | |
2032 | ||
b12915c1 | 2033 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
698dcdb6 VZ |
2034 | |
2035 | fi | |
10f2d63a VZ |
2036 | |
2037 | ||
b12915c1 | 2038 | eval "$ac_cv_use_libpng" |
10f2d63a | 2039 | if test "$no_cache" != 1; then |
b12915c1 | 2040 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2041 | fi |
2042 | ||
b12915c1 | 2043 | if test "$wxUSE_LIBPNG" = yes; then |
698dcdb6 | 2044 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2045 | elif test "$wxUSE_LIBPNG" = no; then |
698dcdb6 | 2046 | echo "$ac_t""no" 1>&6 |
422107f9 | 2047 | elif test "$wxUSE_LIBPNG" = sys; then |
698dcdb6 | 2048 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2049 | elif test "$wxUSE_LIBPNG" = builtin; then |
2050 | echo "$ac_t""builtin version" 1>&6 | |
422107f9 | 2051 | else |
4f14bcd8 | 2052 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2053 | fi |
698dcdb6 | 2054 | |
10f2d63a | 2055 | |
698dcdb6 | 2056 | echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6 |
009fead0 | 2057 | echo "configure:2058: checking for --with-libjpeg" >&5 |
10f2d63a | 2058 | no_cache=0 |
698dcdb6 | 2059 | # Check whether --with-libjpeg or --without-libjpeg was given. |
b12915c1 VZ |
2060 | if test "${with_libjpeg+set}" = set; then |
2061 | withval="$with_libjpeg" | |
698dcdb6 | 2062 | |
10f2d63a | 2063 | if test "$withval" = yes; then |
b12915c1 | 2064 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 2065 | elif test "$withval" = no; then |
b12915c1 | 2066 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
2067 | elif test "$withval" = sys; then |
2068 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
4f14bcd8 GD |
2069 | elif test "$withval" = builtin; then |
2070 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
422107f9 | 2071 | else |
4f14bcd8 | 2072 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2073 | fi |
698dcdb6 | 2074 | |
10f2d63a | 2075 | else |
698dcdb6 | 2076 | |
b12915c1 | 2077 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2078 | if test "x$LINE" != x ; then |
2079 | eval "DEFAULT_$LINE" | |
2080 | else | |
2081 | no_cache=1 | |
2082 | fi | |
2083 | ||
b12915c1 | 2084 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
698dcdb6 VZ |
2085 | |
2086 | fi | |
10f2d63a VZ |
2087 | |
2088 | ||
b12915c1 | 2089 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 2090 | if test "$no_cache" != 1; then |
b12915c1 | 2091 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2092 | fi |
2093 | ||
b12915c1 | 2094 | if test "$wxUSE_LIBJPEG" = yes; then |
698dcdb6 | 2095 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2096 | elif test "$wxUSE_LIBJPEG" = no; then |
698dcdb6 | 2097 | echo "$ac_t""no" 1>&6 |
422107f9 | 2098 | elif test "$wxUSE_LIBJPEG" = sys; then |
698dcdb6 | 2099 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2100 | elif test "$wxUSE_LIBJPEG" = builtin; then |
2101 | echo "$ac_t""builtin version" 1>&6 | |
422107f9 | 2102 | else |
4f14bcd8 | 2103 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2104 | fi |
698dcdb6 | 2105 | |
10f2d63a | 2106 | |
698dcdb6 | 2107 | echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6 |
009fead0 | 2108 | echo "configure:2109: checking for --with-libtiff" >&5 |
10f2d63a | 2109 | no_cache=0 |
698dcdb6 | 2110 | # Check whether --with-libtiff or --without-libtiff was given. |
b12915c1 VZ |
2111 | if test "${with_libtiff+set}" = set; then |
2112 | withval="$with_libtiff" | |
698dcdb6 | 2113 | |
10f2d63a | 2114 | if test "$withval" = yes; then |
b12915c1 | 2115 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 2116 | elif test "$withval" = no; then |
b12915c1 | 2117 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
2118 | elif test "$withval" = sys; then |
2119 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
4f14bcd8 GD |
2120 | elif test "$withval" = builtin; then |
2121 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
0dcf9893 | 2122 | else |
4f14bcd8 | 2123 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2124 | fi |
698dcdb6 | 2125 | |
10f2d63a | 2126 | else |
698dcdb6 | 2127 | |
b12915c1 | 2128 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
2129 | if test "x$LINE" != x ; then |
2130 | eval "DEFAULT_$LINE" | |
2131 | else | |
2132 | no_cache=1 | |
2133 | fi | |
2134 | ||
b12915c1 | 2135 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
698dcdb6 VZ |
2136 | |
2137 | fi | |
10f2d63a VZ |
2138 | |
2139 | ||
b12915c1 | 2140 | eval "$ac_cv_use_libtiff" |
10f2d63a | 2141 | if test "$no_cache" != 1; then |
b12915c1 | 2142 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2143 | fi |
2144 | ||
b12915c1 | 2145 | if test "$wxUSE_LIBTIFF" = yes; then |
698dcdb6 | 2146 | echo "$ac_t""yes" 1>&6 |
0dcf9893 | 2147 | elif test "$wxUSE_LIBTIFF" = no; then |
698dcdb6 | 2148 | echo "$ac_t""no" 1>&6 |
0dcf9893 | 2149 | elif test "$wxUSE_LIBTIFF" = sys; then |
698dcdb6 | 2150 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2151 | elif test "$wxUSE_LIBTIFF" = builtin; then |
2152 | echo "$ac_t""builtin version" 1>&6 | |
0dcf9893 | 2153 | else |
4f14bcd8 | 2154 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2155 | fi |
698dcdb6 | 2156 | |
10f2d63a | 2157 | |
698dcdb6 | 2158 | echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6 |
009fead0 | 2159 | echo "configure:2160: checking for --with-opengl" >&5 |
10f2d63a | 2160 | no_cache=0 |
698dcdb6 | 2161 | # Check whether --with-opengl or --without-opengl was given. |
b12915c1 VZ |
2162 | if test "${with_opengl+set}" = set; then |
2163 | withval="$with_opengl" | |
698dcdb6 | 2164 | |
10f2d63a | 2165 | if test "$withval" = yes; then |
b12915c1 | 2166 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 2167 | else |
b12915c1 | 2168 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a | 2169 | fi |
698dcdb6 | 2170 | |
10f2d63a | 2171 | else |
698dcdb6 | 2172 | |
b12915c1 | 2173 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
2174 | if test "x$LINE" != x ; then |
2175 | eval "DEFAULT_$LINE" | |
2176 | else | |
2177 | no_cache=1 | |
2178 | fi | |
2179 | ||
b12915c1 | 2180 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
698dcdb6 VZ |
2181 | |
2182 | fi | |
10f2d63a VZ |
2183 | |
2184 | ||
b12915c1 | 2185 | eval "$ac_cv_use_opengl" |
10f2d63a | 2186 | if test "$no_cache" != 1; then |
b12915c1 | 2187 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2188 | fi |
2189 | ||
b12915c1 | 2190 | if test "$wxUSE_OPENGL" = yes; then |
698dcdb6 | 2191 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2192 | else |
698dcdb6 | 2193 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2194 | fi |
698dcdb6 | 2195 | |
10f2d63a | 2196 | |
b12915c1 VZ |
2197 | fi |
2198 | ||
1e487827 | 2199 | |
698dcdb6 | 2200 | echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6 |
009fead0 | 2201 | echo "configure:2202: checking for --with-dmalloc" >&5 |
698dcdb6 VZ |
2202 | no_cache=0 |
2203 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
b12915c1 VZ |
2204 | if test "${with_dmalloc+set}" = set; then |
2205 | withval="$with_dmalloc" | |
698dcdb6 | 2206 | |
c7a2bf27 | 2207 | if test "$withval" = yes; then |
b12915c1 | 2208 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 2209 | else |
b12915c1 | 2210 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 | 2211 | fi |
698dcdb6 | 2212 | |
c7a2bf27 | 2213 | else |
698dcdb6 | 2214 | |
b12915c1 | 2215 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
2216 | if test "x$LINE" != x ; then |
2217 | eval "DEFAULT_$LINE" | |
2218 | else | |
2219 | no_cache=1 | |
2220 | fi | |
2221 | ||
b12915c1 | 2222 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
698dcdb6 VZ |
2223 | |
2224 | fi | |
c7a2bf27 RR |
2225 | |
2226 | ||
b12915c1 | 2227 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 2228 | if test "$no_cache" != 1; then |
b12915c1 | 2229 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
2230 | fi |
2231 | ||
b12915c1 | 2232 | if test "$wxUSE_DMALLOC" = yes; then |
698dcdb6 | 2233 | echo "$ac_t""yes" 1>&6 |
c7a2bf27 | 2234 | else |
698dcdb6 | 2235 | echo "$ac_t""no" 1>&6 |
c7a2bf27 | 2236 | fi |
698dcdb6 | 2237 | |
c7a2bf27 | 2238 | |
3e44f09d | 2239 | echo $ac_n "checking for --with-regex""... $ac_c" 1>&6 |
009fead0 | 2240 | echo "configure:2241: checking for --with-regex" >&5 |
3e44f09d VZ |
2241 | no_cache=0 |
2242 | # Check whether --with-regex or --without-regex was given. | |
2243 | if test "${with_regex+set}" = set; then | |
2244 | withval="$with_regex" | |
2245 | ||
2246 | if test "$withval" = yes; then | |
2247 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
2248 | elif test "$withval" = no; then | |
2249 | ac_cv_use_regex='wxUSE_REGEX=no' | |
2250 | elif test "$withval" = sys; then | |
2251 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
4f14bcd8 GD |
2252 | elif test "$withval" = builtin; then |
2253 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3e44f09d | 2254 | else |
4f14bcd8 | 2255 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d VZ |
2256 | fi |
2257 | ||
2258 | else | |
2259 | ||
2260 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` | |
2261 | if test "x$LINE" != x ; then | |
2262 | eval "DEFAULT_$LINE" | |
2263 | else | |
2264 | no_cache=1 | |
2265 | fi | |
2266 | ||
2267 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
2268 | ||
2269 | fi | |
2270 | ||
2271 | ||
2272 | eval "$ac_cv_use_regex" | |
2273 | if test "$no_cache" != 1; then | |
2274 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
2275 | fi | |
2276 | ||
2277 | if test "$wxUSE_REGEX" = yes; then | |
2278 | echo "$ac_t""yes" 1>&6 | |
2279 | elif test "$wxUSE_REGEX" = no; then | |
2280 | echo "$ac_t""no" 1>&6 | |
2281 | elif test "$wxUSE_REGEX" = sys; then | |
2282 | echo "$ac_t""system version" 1>&6 | |
4f14bcd8 GD |
2283 | elif test "$wxUSE_REGEX" = builtin; then |
2284 | echo "$ac_t""builtin version" 1>&6 | |
3e44f09d | 2285 | else |
4f14bcd8 | 2286 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d VZ |
2287 | fi |
2288 | ||
2289 | ||
698dcdb6 | 2290 | echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6 |
009fead0 | 2291 | echo "configure:2292: checking for --with-zlib" >&5 |
10f2d63a | 2292 | no_cache=0 |
698dcdb6 | 2293 | # Check whether --with-zlib or --without-zlib was given. |
b12915c1 VZ |
2294 | if test "${with_zlib+set}" = set; then |
2295 | withval="$with_zlib" | |
698dcdb6 | 2296 | |
10f2d63a | 2297 | if test "$withval" = yes; then |
b12915c1 | 2298 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 2299 | elif test "$withval" = no; then |
b12915c1 | 2300 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
2301 | elif test "$withval" = sys; then |
2302 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
4f14bcd8 GD |
2303 | elif test "$withval" = builtin; then |
2304 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
422107f9 | 2305 | else |
4f14bcd8 | 2306 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2307 | fi |
698dcdb6 | 2308 | |
10f2d63a | 2309 | else |
698dcdb6 | 2310 | |
b12915c1 | 2311 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
2312 | if test "x$LINE" != x ; then |
2313 | eval "DEFAULT_$LINE" | |
2314 | else | |
2315 | no_cache=1 | |
2316 | fi | |
2317 | ||
b12915c1 | 2318 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
698dcdb6 VZ |
2319 | |
2320 | fi | |
10f2d63a VZ |
2321 | |
2322 | ||
b12915c1 | 2323 | eval "$ac_cv_use_zlib" |
10f2d63a | 2324 | if test "$no_cache" != 1; then |
b12915c1 | 2325 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2326 | fi |
2327 | ||
b12915c1 | 2328 | if test "$wxUSE_ZLIB" = yes; then |
698dcdb6 | 2329 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2330 | elif test "$wxUSE_ZLIB" = no; then |
698dcdb6 | 2331 | echo "$ac_t""no" 1>&6 |
422107f9 | 2332 | elif test "$wxUSE_ZLIB" = sys; then |
698dcdb6 | 2333 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2334 | elif test "$wxUSE_ZLIB" = builtin; then |
2335 | echo "$ac_t""builtin version" 1>&6 | |
422107f9 | 2336 | else |
4f14bcd8 | 2337 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2338 | fi |
698dcdb6 | 2339 | |
10f2d63a | 2340 | |
698dcdb6 | 2341 | echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6 |
009fead0 | 2342 | echo "configure:2343: checking for --with-odbc" >&5 |
10f2d63a | 2343 | no_cache=0 |
698dcdb6 | 2344 | # Check whether --with-odbc or --without-odbc was given. |
10f2d63a VZ |
2345 | if test "${with_odbc+set}" = set; then |
2346 | withval="$with_odbc" | |
698dcdb6 | 2347 | |
10f2d63a VZ |
2348 | if test "$withval" = yes; then |
2349 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
2350 | else | |
2351 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
2352 | fi | |
698dcdb6 | 2353 | |
10f2d63a | 2354 | else |
698dcdb6 | 2355 | |
10f2d63a VZ |
2356 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` |
2357 | if test "x$LINE" != x ; then | |
2358 | eval "DEFAULT_$LINE" | |
2359 | else | |
2360 | no_cache=1 | |
2361 | fi | |
2362 | ||
2363 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
698dcdb6 VZ |
2364 | |
2365 | fi | |
10f2d63a VZ |
2366 | |
2367 | ||
2368 | eval "$ac_cv_use_odbc" | |
2369 | if test "$no_cache" != 1; then | |
2370 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
2371 | fi | |
2372 | ||
2373 | if test "$wxUSE_ODBC" = yes; then | |
698dcdb6 | 2374 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2375 | else |
698dcdb6 | 2376 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2377 | fi |
698dcdb6 VZ |
2378 | |
2379 | ||
10f2d63a | 2380 | |
698dcdb6 | 2381 | |
698dcdb6 | 2382 | echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6 |
009fead0 | 2383 | echo "configure:2384: checking for --enable-shared" >&5 |
10f2d63a VZ |
2384 | no_cache=0 |
2385 | # Check whether --enable-shared or --disable-shared was given. | |
2386 | if test "${enable_shared+set}" = set; then | |
2387 | enableval="$enable_shared" | |
698dcdb6 | 2388 | |
10f2d63a VZ |
2389 | if test "$enableval" = yes; then |
2390 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
2391 | else | |
2392 | ac_cv_use_shared='wxUSE_SHARED=no' | |
2393 | fi | |
698dcdb6 | 2394 | |
10f2d63a | 2395 | else |
698dcdb6 | 2396 | |
10f2d63a VZ |
2397 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` |
2398 | if test "x$LINE" != x ; then | |
2399 | eval "DEFAULT_$LINE" | |
2400 | else | |
2401 | no_cache=1 | |
2402 | fi | |
2403 | ||
2404 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
698dcdb6 VZ |
2405 | |
2406 | fi | |
10f2d63a VZ |
2407 | |
2408 | ||
2409 | eval "$ac_cv_use_shared" | |
2410 | if test "$no_cache" != 1; then | |
2411 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
2412 | fi | |
2413 | ||
2414 | if test "$wxUSE_SHARED" = yes; then | |
698dcdb6 | 2415 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2416 | else |
698dcdb6 | 2417 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2418 | fi |
698dcdb6 | 2419 | |
10f2d63a | 2420 | |
3a922bb4 | 2421 | echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6 |
009fead0 | 2422 | echo "configure:2423: checking for --enable-soname" >&5 |
00cf1208 | 2423 | no_cache=0 |
3a922bb4 RL |
2424 | # Check whether --enable-soname or --disable-soname was given. |
2425 | if test "${enable_soname+set}" = set; then | |
2426 | enableval="$enable_soname" | |
698dcdb6 | 2427 | |
00cf1208 | 2428 | if test "$enableval" = yes; then |
3a922bb4 | 2429 | ac_cv_use_soname='wxUSE_SONAME=yes' |
00cf1208 | 2430 | else |
3a922bb4 | 2431 | ac_cv_use_soname='wxUSE_SONAME=no' |
00cf1208 | 2432 | fi |
698dcdb6 | 2433 | |
00cf1208 | 2434 | else |
698dcdb6 | 2435 | |
3a922bb4 | 2436 | LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}` |
00cf1208 RR |
2437 | if test "x$LINE" != x ; then |
2438 | eval "DEFAULT_$LINE" | |
2439 | else | |
2440 | no_cache=1 | |
2441 | fi | |
2442 | ||
3a922bb4 | 2443 | ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME |
698dcdb6 VZ |
2444 | |
2445 | fi | |
00cf1208 RR |
2446 | |
2447 | ||
3a922bb4 | 2448 | eval "$ac_cv_use_soname" |
00cf1208 | 2449 | if test "$no_cache" != 1; then |
3a922bb4 | 2450 | echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp |
00cf1208 RR |
2451 | fi |
2452 | ||
3a922bb4 | 2453 | if test "$wxUSE_SONAME" = yes; then |
698dcdb6 | 2454 | echo "$ac_t""yes" 1>&6 |
00cf1208 | 2455 | else |
698dcdb6 | 2456 | echo "$ac_t""no" 1>&6 |
00cf1208 | 2457 | fi |
698dcdb6 | 2458 | |
00cf1208 | 2459 | |
698dcdb6 | 2460 | echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6 |
009fead0 | 2461 | echo "configure:2462: checking for --enable-optimise" >&5 |
10f2d63a VZ |
2462 | no_cache=0 |
2463 | # Check whether --enable-optimise or --disable-optimise was given. | |
2464 | if test "${enable_optimise+set}" = set; then | |
2465 | enableval="$enable_optimise" | |
698dcdb6 | 2466 | |
10f2d63a VZ |
2467 | if test "$enableval" = yes; then |
2468 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
2469 | else | |
2470 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
2471 | fi | |
698dcdb6 | 2472 | |
10f2d63a | 2473 | else |
698dcdb6 | 2474 | |
10f2d63a VZ |
2475 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` |
2476 | if test "x$LINE" != x ; then | |
2477 | eval "DEFAULT_$LINE" | |
2478 | else | |
2479 | no_cache=1 | |
2480 | fi | |
2481 | ||
2482 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
698dcdb6 VZ |
2483 | |
2484 | fi | |
10f2d63a VZ |
2485 | |
2486 | ||
2487 | eval "$ac_cv_use_optimise" | |
2488 | if test "$no_cache" != 1; then | |
2489 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
2490 | fi | |
2491 | ||
2492 | if test "$wxUSE_OPTIMISE" = yes; then | |
698dcdb6 | 2493 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2494 | else |
698dcdb6 | 2495 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2496 | fi |
698dcdb6 | 2497 | |
10f2d63a | 2498 | |
698dcdb6 | 2499 | echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6 |
009fead0 | 2500 | echo "configure:2501: checking for --enable-debug" >&5 |
10f2d63a VZ |
2501 | no_cache=0 |
2502 | # Check whether --enable-debug or --disable-debug was given. | |
2503 | if test "${enable_debug+set}" = set; then | |
2504 | enableval="$enable_debug" | |
698dcdb6 | 2505 | |
10f2d63a VZ |
2506 | if test "$enableval" = yes; then |
2507 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
2508 | else | |
2509 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
2510 | fi | |
698dcdb6 | 2511 | |
10f2d63a | 2512 | else |
698dcdb6 | 2513 | |
10f2d63a VZ |
2514 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` |
2515 | if test "x$LINE" != x ; then | |
2516 | eval "DEFAULT_$LINE" | |
2517 | else | |
2518 | no_cache=1 | |
2519 | fi | |
2520 | ||
2521 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
698dcdb6 VZ |
2522 | |
2523 | fi | |
10f2d63a VZ |
2524 | |
2525 | ||
2526 | eval "$ac_cv_use_debug" | |
2527 | if test "$no_cache" != 1; then | |
2528 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
2529 | fi | |
2530 | ||
2531 | if test "$wxUSE_DEBUG" = yes; then | |
698dcdb6 | 2532 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2533 | else |
698dcdb6 | 2534 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2535 | fi |
698dcdb6 | 2536 | |
10f2d63a | 2537 | |
683dccda GD |
2538 | |
2539 | echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6 | |
009fead0 | 2540 | echo "configure:2541: checking for --enable-precomp" >&5 |
683dccda GD |
2541 | no_cache=0 |
2542 | # Check whether --enable-precomp or --disable-precomp was given. | |
2543 | if test "${enable_precomp+set}" = set; then | |
2544 | enableval="$enable_precomp" | |
2545 | ||
2546 | if test "$enableval" = yes; then | |
2547 | ac_cv_use_precomp='wxUSE_PRECOMP=yes' | |
2548 | else | |
2549 | ac_cv_use_precomp='wxUSE_PRECOMP=no' | |
2550 | fi | |
2551 | ||
2552 | else | |
2553 | ||
2554 | LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}` | |
2555 | if test "x$LINE" != x ; then | |
2556 | eval "DEFAULT_$LINE" | |
2557 | else | |
2558 | no_cache=1 | |
2559 | fi | |
2560 | ||
2561 | ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP | |
2562 | ||
2563 | fi | |
2564 | ||
2565 | ||
2566 | eval "$ac_cv_use_precomp" | |
2567 | if test "$no_cache" != 1; then | |
2568 | echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp | |
2569 | fi | |
2570 | ||
2571 | if test "$wxUSE_PRECOMP" = yes; then | |
2572 | echo "$ac_t""yes" 1>&6 | |
2573 | else | |
2574 | echo "$ac_t""no" 1>&6 | |
2575 | fi | |
2576 | ||
2577 | ||
10f2d63a VZ |
2578 | if test "$wxUSE_DEBUG" = "yes"; then |
2579 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2580 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2581 | elif test "$wxUSE_DEBUG" = "no"; then | |
2582 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2583 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2584 | fi | |
2585 | ||
698dcdb6 VZ |
2586 | |
2587 | echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6 | |
009fead0 | 2588 | echo "configure:2589: checking for --enable-debug_flag" >&5 |
10f2d63a VZ |
2589 | no_cache=0 |
2590 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
2591 | if test "${enable_debug_flag+set}" = set; then | |
2592 | enableval="$enable_debug_flag" | |
698dcdb6 | 2593 | |
10f2d63a VZ |
2594 | if test "$enableval" = yes; then |
2595 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
2596 | else | |
2597 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
2598 | fi | |
698dcdb6 | 2599 | |
10f2d63a | 2600 | else |
698dcdb6 | 2601 | |
10f2d63a VZ |
2602 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` |
2603 | if test "x$LINE" != x ; then | |
2604 | eval "DEFAULT_$LINE" | |
2605 | else | |
2606 | no_cache=1 | |
2607 | fi | |
2608 | ||
2609 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
698dcdb6 VZ |
2610 | |
2611 | fi | |
10f2d63a VZ |
2612 | |
2613 | ||
2614 | eval "$ac_cv_use_debug_flag" | |
2615 | if test "$no_cache" != 1; then | |
2616 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
2617 | fi | |
2618 | ||
2619 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
698dcdb6 | 2620 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2621 | else |
698dcdb6 | 2622 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2623 | fi |
698dcdb6 | 2624 | |
10f2d63a | 2625 | |
698dcdb6 | 2626 | echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6 |
009fead0 | 2627 | echo "configure:2628: checking for --enable-debug_info" >&5 |
10f2d63a VZ |
2628 | no_cache=0 |
2629 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2630 | if test "${enable_debug_info+set}" = set; then | |
2631 | enableval="$enable_debug_info" | |
698dcdb6 | 2632 | |
10f2d63a VZ |
2633 | if test "$enableval" = yes; then |
2634 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2635 | else | |
2636 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2637 | fi | |
698dcdb6 | 2638 | |
10f2d63a | 2639 | else |
698dcdb6 | 2640 | |
10f2d63a VZ |
2641 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` |
2642 | if test "x$LINE" != x ; then | |
2643 | eval "DEFAULT_$LINE" | |
2644 | else | |
2645 | no_cache=1 | |
2646 | fi | |
2647 | ||
2648 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
698dcdb6 VZ |
2649 | |
2650 | fi | |
10f2d63a VZ |
2651 | |
2652 | ||
2653 | eval "$ac_cv_use_debug_info" | |
2654 | if test "$no_cache" != 1; then | |
2655 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2656 | fi | |
2657 | ||
2658 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
698dcdb6 | 2659 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2660 | else |
698dcdb6 | 2661 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2662 | fi |
698dcdb6 | 2663 | |
10f2d63a | 2664 | |
698dcdb6 | 2665 | echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6 |
009fead0 | 2666 | echo "configure:2667: checking for --enable-debug_gdb" >&5 |
10f2d63a VZ |
2667 | no_cache=0 |
2668 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2669 | if test "${enable_debug_gdb+set}" = set; then | |
2670 | enableval="$enable_debug_gdb" | |
698dcdb6 | 2671 | |
10f2d63a VZ |
2672 | if test "$enableval" = yes; then |
2673 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2674 | else | |
2675 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2676 | fi | |
698dcdb6 | 2677 | |
10f2d63a | 2678 | else |
698dcdb6 | 2679 | |
10f2d63a VZ |
2680 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` |
2681 | if test "x$LINE" != x ; then | |
2682 | eval "DEFAULT_$LINE" | |
2683 | else | |
2684 | no_cache=1 | |
2685 | fi | |
2686 | ||
2687 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
698dcdb6 VZ |
2688 | |
2689 | fi | |
10f2d63a VZ |
2690 | |
2691 | ||
2692 | eval "$ac_cv_use_debug_gdb" | |
2693 | if test "$no_cache" != 1; then | |
2694 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2695 | fi | |
2696 | ||
2697 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
698dcdb6 | 2698 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2699 | else |
698dcdb6 | 2700 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2701 | fi |
698dcdb6 | 2702 | |
10f2d63a | 2703 | |
698dcdb6 | 2704 | echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6 |
009fead0 | 2705 | echo "configure:2706: checking for --enable-debug_cntxt" >&5 |
10f2d63a VZ |
2706 | no_cache=0 |
2707 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2708 | if test "${enable_debug_cntxt+set}" = set; then | |
2709 | enableval="$enable_debug_cntxt" | |
698dcdb6 | 2710 | |
10f2d63a VZ |
2711 | if test "$enableval" = yes; then |
2712 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2713 | else | |
2714 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2715 | fi | |
698dcdb6 | 2716 | |
10f2d63a | 2717 | else |
698dcdb6 | 2718 | |
10f2d63a VZ |
2719 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` |
2720 | if test "x$LINE" != x ; then | |
2721 | eval "DEFAULT_$LINE" | |
2722 | else | |
2723 | no_cache=1 | |
2724 | fi | |
2725 | ||
2726 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
698dcdb6 VZ |
2727 | |
2728 | fi | |
10f2d63a VZ |
2729 | |
2730 | ||
2731 | eval "$ac_cv_use_debug_cntxt" | |
2732 | if test "$no_cache" != 1; then | |
2733 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2734 | fi | |
2735 | ||
2736 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
698dcdb6 | 2737 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2738 | else |
698dcdb6 | 2739 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2740 | fi |
698dcdb6 | 2741 | |
10f2d63a | 2742 | |
698dcdb6 | 2743 | echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6 |
009fead0 | 2744 | echo "configure:2745: checking for --enable-mem_tracing" >&5 |
10f2d63a VZ |
2745 | no_cache=0 |
2746 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2747 | if test "${enable_mem_tracing+set}" = set; then | |
2748 | enableval="$enable_mem_tracing" | |
698dcdb6 | 2749 | |
10f2d63a VZ |
2750 | if test "$enableval" = yes; then |
2751 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2752 | else | |
2753 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2754 | fi | |
698dcdb6 | 2755 | |
10f2d63a | 2756 | else |
698dcdb6 | 2757 | |
10f2d63a VZ |
2758 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` |
2759 | if test "x$LINE" != x ; then | |
2760 | eval "DEFAULT_$LINE" | |
2761 | else | |
2762 | no_cache=1 | |
2763 | fi | |
2764 | ||
2765 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
698dcdb6 VZ |
2766 | |
2767 | fi | |
10f2d63a VZ |
2768 | |
2769 | ||
2770 | eval "$ac_cv_use_mem_tracing" | |
2771 | if test "$no_cache" != 1; then | |
2772 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2773 | fi | |
2774 | ||
2775 | if test "$wxUSE_MEM_TRACING" = yes; then | |
698dcdb6 | 2776 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2777 | else |
698dcdb6 | 2778 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2779 | fi |
698dcdb6 | 2780 | |
10f2d63a | 2781 | |
698dcdb6 | 2782 | echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6 |
009fead0 | 2783 | echo "configure:2784: checking for --enable-profile" >&5 |
10f2d63a VZ |
2784 | no_cache=0 |
2785 | # Check whether --enable-profile or --disable-profile was given. | |
2786 | if test "${enable_profile+set}" = set; then | |
2787 | enableval="$enable_profile" | |
698dcdb6 | 2788 | |
10f2d63a VZ |
2789 | if test "$enableval" = yes; then |
2790 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2791 | else | |
2792 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2793 | fi | |
698dcdb6 | 2794 | |
10f2d63a | 2795 | else |
698dcdb6 | 2796 | |
10f2d63a VZ |
2797 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` |
2798 | if test "x$LINE" != x ; then | |
2799 | eval "DEFAULT_$LINE" | |
2800 | else | |
2801 | no_cache=1 | |
2802 | fi | |
2803 | ||
2804 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
698dcdb6 VZ |
2805 | |
2806 | fi | |
10f2d63a VZ |
2807 | |
2808 | ||
2809 | eval "$ac_cv_use_profile" | |
2810 | if test "$no_cache" != 1; then | |
2811 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2812 | fi | |
2813 | ||
2814 | if test "$wxUSE_PROFILE" = yes; then | |
698dcdb6 | 2815 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2816 | else |
698dcdb6 | 2817 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2818 | fi |
698dcdb6 | 2819 | |
10f2d63a | 2820 | |
698dcdb6 | 2821 | echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6 |
009fead0 | 2822 | echo "configure:2823: checking for --enable-no_rtti" >&5 |
10f2d63a VZ |
2823 | no_cache=0 |
2824 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2825 | if test "${enable_no_rtti+set}" = set; then | |
2826 | enableval="$enable_no_rtti" | |
698dcdb6 | 2827 | |
10f2d63a VZ |
2828 | if test "$enableval" = yes; then |
2829 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2830 | else | |
2831 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2832 | fi | |
698dcdb6 | 2833 | |
10f2d63a | 2834 | else |
698dcdb6 | 2835 | |
10f2d63a VZ |
2836 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` |
2837 | if test "x$LINE" != x ; then | |
2838 | eval "DEFAULT_$LINE" | |
2839 | else | |
2840 | no_cache=1 | |
2841 | fi | |
2842 | ||
2843 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
698dcdb6 VZ |
2844 | |
2845 | fi | |
10f2d63a VZ |
2846 | |
2847 | ||
2848 | eval "$ac_cv_use_no_rtti" | |
2849 | if test "$no_cache" != 1; then | |
2850 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2851 | fi | |
2852 | ||
2853 | if test "$wxUSE_NO_RTTI" = yes; then | |
698dcdb6 | 2854 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2855 | else |
698dcdb6 | 2856 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2857 | fi |
698dcdb6 | 2858 | |
10f2d63a | 2859 | |
698dcdb6 | 2860 | echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6 |
009fead0 | 2861 | echo "configure:2862: checking for --enable-no_exceptions" >&5 |
10f2d63a VZ |
2862 | no_cache=0 |
2863 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2864 | if test "${enable_no_exceptions+set}" = set; then | |
2865 | enableval="$enable_no_exceptions" | |
698dcdb6 | 2866 | |
10f2d63a VZ |
2867 | if test "$enableval" = yes; then |
2868 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2869 | else | |
2870 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2871 | fi | |
698dcdb6 | 2872 | |
10f2d63a | 2873 | else |
698dcdb6 | 2874 | |
10f2d63a VZ |
2875 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` |
2876 | if test "x$LINE" != x ; then | |
2877 | eval "DEFAULT_$LINE" | |
2878 | else | |
2879 | no_cache=1 | |
2880 | fi | |
2881 | ||
2882 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
698dcdb6 VZ |
2883 | |
2884 | fi | |
10f2d63a VZ |
2885 | |
2886 | ||
2887 | eval "$ac_cv_use_no_exceptions" | |
2888 | if test "$no_cache" != 1; then | |
2889 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2890 | fi | |
2891 | ||
2892 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
698dcdb6 | 2893 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2894 | else |
698dcdb6 | 2895 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2896 | fi |
698dcdb6 | 2897 | |
10f2d63a | 2898 | |
698dcdb6 | 2899 | echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6 |
009fead0 | 2900 | echo "configure:2901: checking for --enable-permissive" >&5 |
10f2d63a VZ |
2901 | no_cache=0 |
2902 | # Check whether --enable-permissive or --disable-permissive was given. | |
2903 | if test "${enable_permissive+set}" = set; then | |
2904 | enableval="$enable_permissive" | |
698dcdb6 | 2905 | |
10f2d63a VZ |
2906 | if test "$enableval" = yes; then |
2907 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2908 | else | |
2909 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2910 | fi | |
698dcdb6 | 2911 | |
10f2d63a | 2912 | else |
698dcdb6 | 2913 | |
10f2d63a VZ |
2914 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` |
2915 | if test "x$LINE" != x ; then | |
2916 | eval "DEFAULT_$LINE" | |
2917 | else | |
2918 | no_cache=1 | |
2919 | fi | |
2920 | ||
2921 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
698dcdb6 VZ |
2922 | |
2923 | fi | |
10f2d63a VZ |
2924 | |
2925 | ||
2926 | eval "$ac_cv_use_permissive" | |
2927 | if test "$no_cache" != 1; then | |
2928 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2929 | fi | |
2930 | ||
2931 | if test "$wxUSE_PERMISSIVE" = yes; then | |
698dcdb6 | 2932 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2933 | else |
698dcdb6 | 2934 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2935 | fi |
698dcdb6 | 2936 | |
10f2d63a | 2937 | |
698dcdb6 | 2938 | echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6 |
009fead0 | 2939 | echo "configure:2940: checking for --enable-no_deps" >&5 |
10f2d63a VZ |
2940 | no_cache=0 |
2941 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2942 | if test "${enable_no_deps+set}" = set; then | |
2943 | enableval="$enable_no_deps" | |
698dcdb6 | 2944 | |
10f2d63a VZ |
2945 | if test "$enableval" = yes; then |
2946 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2947 | else | |
2948 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2949 | fi | |
698dcdb6 | 2950 | |
10f2d63a | 2951 | else |
698dcdb6 | 2952 | |
10f2d63a VZ |
2953 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` |
2954 | if test "x$LINE" != x ; then | |
2955 | eval "DEFAULT_$LINE" | |
2956 | else | |
2957 | no_cache=1 | |
2958 | fi | |
2959 | ||
2960 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
698dcdb6 VZ |
2961 | |
2962 | fi | |
10f2d63a VZ |
2963 | |
2964 | ||
2965 | eval "$ac_cv_use_no_deps" | |
2966 | if test "$no_cache" != 1; then | |
2967 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2968 | fi | |
2969 | ||
2970 | if test "$wxUSE_NO_DEPS" = yes; then | |
698dcdb6 | 2971 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2972 | else |
698dcdb6 | 2973 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2974 | fi |
698dcdb6 VZ |
2975 | |
2976 | ||
10f2d63a | 2977 | |
54276ccf | 2978 | echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6 |
009fead0 | 2979 | echo "configure:2980: checking for --enable-compat20" >&5 |
54276ccf VZ |
2980 | no_cache=0 |
2981 | # Check whether --enable-compat20 or --disable-compat20 was given. | |
2982 | if test "${enable_compat20+set}" = set; then | |
2983 | enableval="$enable_compat20" | |
2984 | ||
2985 | if test "$enableval" = yes; then | |
2986 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes' | |
2987 | else | |
2988 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no' | |
2989 | fi | |
2990 | ||
2991 | else | |
2992 | ||
2993 | LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}` | |
2994 | if test "x$LINE" != x ; then | |
2995 | eval "DEFAULT_$LINE" | |
2996 | else | |
2997 | no_cache=1 | |
2998 | fi | |
2999 | ||
3000 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2 | |
3001 | ||
3002 | fi | |
3003 | ||
3004 | ||
3005 | eval "$ac_cv_use_compat20" | |
3006 | if test "$no_cache" != 1; then | |
3007 | echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp | |
3008 | fi | |
3009 | ||
3010 | if test "$WXWIN_COMPATIBILITY_2" = yes; then | |
3011 | echo "$ac_t""yes" 1>&6 | |
3012 | else | |
3013 | echo "$ac_t""no" 1>&6 | |
3014 | fi | |
3015 | ||
3016 | ||
3017 | echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6 | |
009fead0 | 3018 | echo "configure:3019: checking for --enable-compat22" >&5 |
54276ccf VZ |
3019 | no_cache=0 |
3020 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
3021 | if test "${enable_compat22+set}" = set; then | |
3022 | enableval="$enable_compat22" | |
3023 | ||
3024 | if test "$enableval" = yes; then | |
3025 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
3026 | else | |
3027 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
3028 | fi | |
3029 | ||
3030 | else | |
3031 | ||
3032 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` | |
3033 | if test "x$LINE" != x ; then | |
3034 | eval "DEFAULT_$LINE" | |
3035 | else | |
3036 | no_cache=1 | |
3037 | fi | |
3038 | ||
3039 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
3040 | ||
3041 | fi | |
3042 | ||
3043 | ||
3044 | eval "$ac_cv_use_compat22" | |
3045 | if test "$no_cache" != 1; then | |
3046 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
3047 | fi | |
3048 | ||
3049 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
3050 | echo "$ac_t""yes" 1>&6 | |
3051 | else | |
3052 | echo "$ac_t""no" 1>&6 | |
3053 | fi | |
3054 | ||
3055 | ||
3056 | ||
698dcdb6 VZ |
3057 | |
3058 | echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6 | |
009fead0 | 3059 | echo "configure:3060: checking for --enable-intl" >&5 |
10f2d63a VZ |
3060 | no_cache=0 |
3061 | # Check whether --enable-intl or --disable-intl was given. | |
3062 | if test "${enable_intl+set}" = set; then | |
3063 | enableval="$enable_intl" | |
698dcdb6 | 3064 | |
10f2d63a VZ |
3065 | if test "$enableval" = yes; then |
3066 | ac_cv_use_intl='wxUSE_INTL=yes' | |
3067 | else | |
3068 | ac_cv_use_intl='wxUSE_INTL=no' | |
3069 | fi | |
698dcdb6 | 3070 | |
10f2d63a | 3071 | else |
698dcdb6 | 3072 | |
10f2d63a VZ |
3073 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` |
3074 | if test "x$LINE" != x ; then | |
3075 | eval "DEFAULT_$LINE" | |
3076 | else | |
3077 | no_cache=1 | |
3078 | fi | |
3079 | ||
3080 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
698dcdb6 VZ |
3081 | |
3082 | fi | |
10f2d63a VZ |
3083 | |
3084 | ||
3085 | eval "$ac_cv_use_intl" | |
3086 | if test "$no_cache" != 1; then | |
3087 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
3088 | fi | |
3089 | ||
3090 | if test "$wxUSE_INTL" = yes; then | |
698dcdb6 | 3091 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3092 | else |
698dcdb6 | 3093 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3094 | fi |
698dcdb6 | 3095 | |
10f2d63a | 3096 | |
698dcdb6 | 3097 | echo $ac_n "checking for --enable-config""... $ac_c" 1>&6 |
009fead0 | 3098 | echo "configure:3099: checking for --enable-config" >&5 |
10f2d63a VZ |
3099 | no_cache=0 |
3100 | # Check whether --enable-config or --disable-config was given. | |
3101 | if test "${enable_config+set}" = set; then | |
3102 | enableval="$enable_config" | |
698dcdb6 | 3103 | |
10f2d63a VZ |
3104 | if test "$enableval" = yes; then |
3105 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
3106 | else | |
3107 | ac_cv_use_config='wxUSE_CONFIG=no' | |
3108 | fi | |
698dcdb6 | 3109 | |
10f2d63a | 3110 | else |
698dcdb6 | 3111 | |
10f2d63a VZ |
3112 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` |
3113 | if test "x$LINE" != x ; then | |
3114 | eval "DEFAULT_$LINE" | |
3115 | else | |
3116 | no_cache=1 | |
3117 | fi | |
3118 | ||
3119 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
698dcdb6 VZ |
3120 | |
3121 | fi | |
10f2d63a VZ |
3122 | |
3123 | ||
3124 | eval "$ac_cv_use_config" | |
3125 | if test "$no_cache" != 1; then | |
3126 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
3127 | fi | |
3128 | ||
3129 | if test "$wxUSE_CONFIG" = yes; then | |
698dcdb6 | 3130 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3131 | else |
698dcdb6 | 3132 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3133 | fi |
698dcdb6 VZ |
3134 | |
3135 | ||
b12915c1 | 3136 | |
a1622950 | 3137 | echo $ac_n "checking for --enable-protocols""... $ac_c" 1>&6 |
009fead0 | 3138 | echo "configure:3139: checking for --enable-protocols" >&5 |
a1622950 VZ |
3139 | no_cache=0 |
3140 | # Check whether --enable-protocols or --disable-protocols was given. | |
3141 | if test "${enable_protocols+set}" = set; then | |
3142 | enableval="$enable_protocols" | |
3143 | ||
3144 | if test "$enableval" = yes; then | |
3145 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
3146 | else | |
3147 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
3148 | fi | |
3149 | ||
3150 | else | |
3151 | ||
3152 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
3153 | if test "x$LINE" != x ; then | |
3154 | eval "DEFAULT_$LINE" | |
3155 | else | |
3156 | no_cache=1 | |
3157 | fi | |
3158 | ||
3159 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
3160 | ||
3161 | fi | |
3162 | ||
3163 | ||
3164 | eval "$ac_cv_use_protocols" | |
3165 | if test "$no_cache" != 1; then | |
3166 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
3167 | fi | |
3168 | ||
3169 | if test "$wxUSE_PROTOCOL" = yes; then | |
3170 | echo "$ac_t""yes" 1>&6 | |
3171 | else | |
3172 | echo "$ac_t""no" 1>&6 | |
3173 | fi | |
3174 | ||
3175 | ||
3176 | echo $ac_n "checking for --enable-ftp""... $ac_c" 1>&6 | |
009fead0 | 3177 | echo "configure:3178: checking for --enable-ftp" >&5 |
a1622950 VZ |
3178 | no_cache=0 |
3179 | # Check whether --enable-ftp or --disable-ftp was given. | |
3180 | if test "${enable_ftp+set}" = set; then | |
3181 | enableval="$enable_ftp" | |
3182 | ||
3183 | if test "$enableval" = yes; then | |
3184 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
3185 | else | |
3186 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
3187 | fi | |
3188 | ||
3189 | else | |
3190 | ||
3191 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
3192 | if test "x$LINE" != x ; then | |
3193 | eval "DEFAULT_$LINE" | |
3194 | else | |
3195 | no_cache=1 | |
3196 | fi | |
3197 | ||
3198 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
3199 | ||
3200 | fi | |
3201 | ||
3202 | ||
3203 | eval "$ac_cv_use_ftp" | |
3204 | if test "$no_cache" != 1; then | |
3205 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
3206 | fi | |
3207 | ||
3208 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
3209 | echo "$ac_t""yes" 1>&6 | |
3210 | else | |
3211 | echo "$ac_t""no" 1>&6 | |
3212 | fi | |
3213 | ||
3214 | ||
3215 | echo $ac_n "checking for --enable-http""... $ac_c" 1>&6 | |
009fead0 | 3216 | echo "configure:3217: checking for --enable-http" >&5 |
a1622950 VZ |
3217 | no_cache=0 |
3218 | # Check whether --enable-http or --disable-http was given. | |
3219 | if test "${enable_http+set}" = set; then | |
3220 | enableval="$enable_http" | |
3221 | ||
3222 | if test "$enableval" = yes; then | |
3223 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
3224 | else | |
3225 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
3226 | fi | |
3227 | ||
3228 | else | |
3229 | ||
3230 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
3231 | if test "x$LINE" != x ; then | |
3232 | eval "DEFAULT_$LINE" | |
3233 | else | |
3234 | no_cache=1 | |
3235 | fi | |
3236 | ||
3237 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
3238 | ||
3239 | fi | |
3240 | ||
3241 | ||
3242 | eval "$ac_cv_use_http" | |
3243 | if test "$no_cache" != 1; then | |
3244 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
3245 | fi | |
3246 | ||
3247 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
3248 | echo "$ac_t""yes" 1>&6 | |
3249 | else | |
3250 | echo "$ac_t""no" 1>&6 | |
3251 | fi | |
3252 | ||
3253 | ||
3254 | echo $ac_n "checking for --enable-fileproto""... $ac_c" 1>&6 | |
009fead0 | 3255 | echo "configure:3256: checking for --enable-fileproto" >&5 |
a1622950 VZ |
3256 | no_cache=0 |
3257 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
3258 | if test "${enable_fileproto+set}" = set; then | |
3259 | enableval="$enable_fileproto" | |
3260 | ||
3261 | if test "$enableval" = yes; then | |
3262 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
3263 | else | |
3264 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
3265 | fi | |
3266 | ||
3267 | else | |
3268 | ||
3269 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
3270 | if test "x$LINE" != x ; then | |
3271 | eval "DEFAULT_$LINE" | |
3272 | else | |
3273 | no_cache=1 | |
3274 | fi | |
3275 | ||
3276 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
3277 | ||
3278 | fi | |
3279 | ||
3280 | ||
3281 | eval "$ac_cv_use_fileproto" | |
3282 | if test "$no_cache" != 1; then | |
3283 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
3284 | fi | |
3285 | ||
3286 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
3287 | echo "$ac_t""yes" 1>&6 | |
3288 | else | |
3289 | echo "$ac_t""no" 1>&6 | |
3290 | fi | |
3291 | ||
3292 | ||
698dcdb6 | 3293 | echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6 |
009fead0 | 3294 | echo "configure:3295: checking for --enable-sockets" >&5 |
10f2d63a VZ |
3295 | no_cache=0 |
3296 | # Check whether --enable-sockets or --disable-sockets was given. | |
3297 | if test "${enable_sockets+set}" = set; then | |
3298 | enableval="$enable_sockets" | |
698dcdb6 | 3299 | |
10f2d63a VZ |
3300 | if test "$enableval" = yes; then |
3301 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
3302 | else | |
3303 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
3304 | fi | |
698dcdb6 | 3305 | |
10f2d63a | 3306 | else |
698dcdb6 | 3307 | |
10f2d63a VZ |
3308 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` |
3309 | if test "x$LINE" != x ; then | |
3310 | eval "DEFAULT_$LINE" | |
3311 | else | |
3312 | no_cache=1 | |
3313 | fi | |
3314 | ||
3315 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
698dcdb6 VZ |
3316 | |
3317 | fi | |
10f2d63a VZ |
3318 | |
3319 | ||
3320 | eval "$ac_cv_use_sockets" | |
3321 | if test "$no_cache" != 1; then | |
3322 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
3323 | fi | |
3324 | ||
3325 | if test "$wxUSE_SOCKETS" = yes; then | |
698dcdb6 | 3326 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3327 | else |
698dcdb6 | 3328 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3329 | fi |
698dcdb6 | 3330 | |
b12915c1 | 3331 | |
698dcdb6 VZ |
3332 | |
3333 | echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6 | |
009fead0 | 3334 | echo "configure:3335: checking for --enable-ipc" >&5 |
10f2d63a | 3335 | no_cache=0 |
eb4efbdc VZ |
3336 | # Check whether --enable-ipc or --disable-ipc was given. |
3337 | if test "${enable_ipc+set}" = set; then | |
3338 | enableval="$enable_ipc" | |
698dcdb6 | 3339 | |
10f2d63a | 3340 | if test "$enableval" = yes; then |
eb4efbdc | 3341 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 3342 | else |
eb4efbdc | 3343 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a | 3344 | fi |
698dcdb6 | 3345 | |
10f2d63a | 3346 | else |
698dcdb6 | 3347 | |
eb4efbdc | 3348 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
3349 | if test "x$LINE" != x ; then |
3350 | eval "DEFAULT_$LINE" | |
3351 | else | |
3352 | no_cache=1 | |
3353 | fi | |
3354 | ||
eb4efbdc | 3355 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
698dcdb6 VZ |
3356 | |
3357 | fi | |
10f2d63a VZ |
3358 | |
3359 | ||
eb4efbdc | 3360 | eval "$ac_cv_use_ipc" |
10f2d63a | 3361 | if test "$no_cache" != 1; then |
eb4efbdc | 3362 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3363 | fi |
3364 | ||
eb4efbdc | 3365 | if test "$wxUSE_IPC" = yes; then |
698dcdb6 | 3366 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3367 | else |
698dcdb6 | 3368 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3369 | fi |
698dcdb6 VZ |
3370 | |
3371 | ||
eb4efbdc | 3372 | |
1e6feb95 | 3373 | echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6 |
009fead0 | 3374 | echo "configure:3375: checking for --enable-cmdline" >&5 |
1e6feb95 VZ |
3375 | no_cache=0 |
3376 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
3377 | if test "${enable_cmdline+set}" = set; then | |
3378 | enableval="$enable_cmdline" | |
3379 | ||
3380 | if test "$enableval" = yes; then | |
3381 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
3382 | else | |
3383 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
3384 | fi | |
3385 | ||
3386 | else | |
3387 | ||
3388 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
3389 | if test "x$LINE" != x ; then | |
3390 | eval "DEFAULT_$LINE" | |
3391 | else | |
3392 | no_cache=1 | |
3393 | fi | |
3394 | ||
3395 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
3396 | ||
3397 | fi | |
3398 | ||
3399 | ||
3400 | eval "$ac_cv_use_cmdline" | |
3401 | if test "$no_cache" != 1; then | |
3402 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
3403 | fi | |
3404 | ||
3405 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
3406 | echo "$ac_t""yes" 1>&6 | |
3407 | else | |
3408 | echo "$ac_t""no" 1>&6 | |
3409 | fi | |
3410 | ||
3411 | ||
3412 | echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6 | |
009fead0 | 3413 | echo "configure:3414: checking for --enable-datetime" >&5 |
1e6feb95 VZ |
3414 | no_cache=0 |
3415 | # Check whether --enable-datetime or --disable-datetime was given. | |
3416 | if test "${enable_datetime+set}" = set; then | |
3417 | enableval="$enable_datetime" | |
3418 | ||
3419 | if test "$enableval" = yes; then | |
3420 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
3421 | else | |
3422 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
3423 | fi | |
3424 | ||
3425 | else | |
3426 | ||
3427 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
3428 | if test "x$LINE" != x ; then | |
3429 | eval "DEFAULT_$LINE" | |
3430 | else | |
3431 | no_cache=1 | |
3432 | fi | |
3433 | ||
3434 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
3435 | ||
3436 | fi | |
3437 | ||
3438 | ||
3439 | eval "$ac_cv_use_datetime" | |
3440 | if test "$no_cache" != 1; then | |
3441 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
3442 | fi | |
3443 | ||
3444 | if test "$wxUSE_DATETIME" = yes; then | |
3445 | echo "$ac_t""yes" 1>&6 | |
3446 | else | |
3447 | echo "$ac_t""no" 1>&6 | |
3448 | fi | |
3449 | ||
3450 | ||
3451 | echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6 | |
009fead0 | 3452 | echo "configure:3453: checking for --enable-timedate" >&5 |
1e6feb95 VZ |
3453 | no_cache=0 |
3454 | # Check whether --enable-timedate or --disable-timedate was given. | |
3455 | if test "${enable_timedate+set}" = set; then | |
3456 | enableval="$enable_timedate" | |
3457 | ||
3458 | if test "$enableval" = yes; then | |
3459 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
3460 | else | |
3461 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
3462 | fi | |
3463 | ||
3464 | else | |
3465 | ||
3466 | LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}` | |
3467 | if test "x$LINE" != x ; then | |
3468 | eval "DEFAULT_$LINE" | |
3469 | else | |
3470 | no_cache=1 | |
3471 | fi | |
3472 | ||
3473 | ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
3474 | ||
3475 | fi | |
3476 | ||
3477 | ||
3478 | eval "$ac_cv_use_timedate" | |
3479 | if test "$no_cache" != 1; then | |
3480 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
3481 | fi | |
3482 | ||
3483 | if test "$wxUSE_TIMEDATE" = yes; then | |
3484 | echo "$ac_t""yes" 1>&6 | |
3485 | else | |
3486 | echo "$ac_t""no" 1>&6 | |
3487 | fi | |
3488 | ||
3489 | ||
3490 | echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6 | |
009fead0 | 3491 | echo "configure:3492: checking for --enable-stopwatch" >&5 |
1e6feb95 VZ |
3492 | no_cache=0 |
3493 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
3494 | if test "${enable_stopwatch+set}" = set; then | |
3495 | enableval="$enable_stopwatch" | |
3496 | ||
3497 | if test "$enableval" = yes; then | |
3498 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
3499 | else | |
3500 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
3501 | fi | |
3502 | ||
3503 | else | |
3504 | ||
3505 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
3506 | if test "x$LINE" != x ; then | |
3507 | eval "DEFAULT_$LINE" | |
3508 | else | |
3509 | no_cache=1 | |
3510 | fi | |
3511 | ||
3512 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
3513 | ||
3514 | fi | |
3515 | ||
3516 | ||
3517 | eval "$ac_cv_use_stopwatch" | |
3518 | if test "$no_cache" != 1; then | |
3519 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
3520 | fi | |
3521 | ||
3522 | if test "$wxUSE_STOPWATCH" = yes; then | |
3523 | echo "$ac_t""yes" 1>&6 | |
3524 | else | |
3525 | echo "$ac_t""no" 1>&6 | |
3526 | fi | |
3527 | ||
3528 | ||
698dcdb6 | 3529 | echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6 |
009fead0 | 3530 | echo "configure:3531: checking for --enable-dialupman" >&5 |
10f2d63a | 3531 | no_cache=0 |
eb4efbdc VZ |
3532 | # Check whether --enable-dialupman or --disable-dialupman was given. |
3533 | if test "${enable_dialupman+set}" = set; then | |
3534 | enableval="$enable_dialupman" | |
698dcdb6 | 3535 | |
10f2d63a | 3536 | if test "$enableval" = yes; then |
eb4efbdc | 3537 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 3538 | else |
eb4efbdc | 3539 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a | 3540 | fi |
698dcdb6 | 3541 | |
10f2d63a | 3542 | else |
698dcdb6 | 3543 | |
eb4efbdc | 3544 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3545 | if test "x$LINE" != x ; then |
3546 | eval "DEFAULT_$LINE" | |
3547 | else | |
3548 | no_cache=1 | |
3549 | fi | |
3550 | ||
eb4efbdc | 3551 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
698dcdb6 VZ |
3552 | |
3553 | fi | |
10f2d63a VZ |
3554 | |
3555 | ||
eb4efbdc | 3556 | eval "$ac_cv_use_dialupman" |
10f2d63a | 3557 | if test "$no_cache" != 1; then |
eb4efbdc | 3558 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3559 | fi |
3560 | ||
eb4efbdc | 3561 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
698dcdb6 | 3562 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3563 | else |
698dcdb6 | 3564 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3565 | fi |
698dcdb6 | 3566 | |
10f2d63a | 3567 | |
698dcdb6 | 3568 | echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6 |
009fead0 | 3569 | echo "configure:3570: checking for --enable-apple_ieee" >&5 |
10f2d63a VZ |
3570 | no_cache=0 |
3571 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
3572 | if test "${enable_apple_ieee+set}" = set; then | |
3573 | enableval="$enable_apple_ieee" | |
698dcdb6 | 3574 | |
10f2d63a VZ |
3575 | if test "$enableval" = yes; then |
3576 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
3577 | else | |
3578 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
3579 | fi | |
698dcdb6 | 3580 | |
10f2d63a | 3581 | else |
698dcdb6 | 3582 | |
10f2d63a VZ |
3583 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` |
3584 | if test "x$LINE" != x ; then | |
3585 | eval "DEFAULT_$LINE" | |
3586 | else | |
3587 | no_cache=1 | |
3588 | fi | |
3589 | ||
3590 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
698dcdb6 VZ |
3591 | |
3592 | fi | |
10f2d63a VZ |
3593 | |
3594 | ||
3595 | eval "$ac_cv_use_apple_ieee" | |
3596 | if test "$no_cache" != 1; then | |
3597 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
3598 | fi | |
3599 | ||
3600 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
698dcdb6 | 3601 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3602 | else |
698dcdb6 | 3603 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3604 | fi |
698dcdb6 | 3605 | |
10f2d63a | 3606 | |
1e6feb95 | 3607 | echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6 |
009fead0 | 3608 | echo "configure:3609: checking for --enable-timer" >&5 |
10f2d63a | 3609 | no_cache=0 |
1e6feb95 VZ |
3610 | # Check whether --enable-timer or --disable-timer was given. |
3611 | if test "${enable_timer+set}" = set; then | |
3612 | enableval="$enable_timer" | |
698dcdb6 | 3613 | |
10f2d63a | 3614 | if test "$enableval" = yes; then |
1e6feb95 | 3615 | ac_cv_use_timer='wxUSE_TIMER=yes' |
10f2d63a | 3616 | else |
1e6feb95 | 3617 | ac_cv_use_timer='wxUSE_TIMER=no' |
10f2d63a | 3618 | fi |
698dcdb6 | 3619 | |
10f2d63a | 3620 | else |
698dcdb6 | 3621 | |
1e6feb95 | 3622 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3623 | if test "x$LINE" != x ; then |
3624 | eval "DEFAULT_$LINE" | |
3625 | else | |
3626 | no_cache=1 | |
3627 | fi | |
3628 | ||
1e6feb95 | 3629 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER |
698dcdb6 VZ |
3630 | |
3631 | fi | |
10f2d63a VZ |
3632 | |
3633 | ||
1e6feb95 | 3634 | eval "$ac_cv_use_timer" |
10f2d63a | 3635 | if test "$no_cache" != 1; then |
1e6feb95 | 3636 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3637 | fi |
3638 | ||
1e6feb95 | 3639 | if test "$wxUSE_TIMER" = yes; then |
698dcdb6 | 3640 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3641 | else |
698dcdb6 | 3642 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3643 | fi |
698dcdb6 | 3644 | |
10f2d63a | 3645 | |
698dcdb6 | 3646 | echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6 |
009fead0 | 3647 | echo "configure:3648: checking for --enable-wave" >&5 |
10f2d63a VZ |
3648 | no_cache=0 |
3649 | # Check whether --enable-wave or --disable-wave was given. | |
3650 | if test "${enable_wave+set}" = set; then | |
3651 | enableval="$enable_wave" | |
698dcdb6 | 3652 | |
10f2d63a VZ |
3653 | if test "$enableval" = yes; then |
3654 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
3655 | else | |
3656 | ac_cv_use_wave='wxUSE_WAVE=no' | |
3657 | fi | |
698dcdb6 | 3658 | |
10f2d63a | 3659 | else |
698dcdb6 | 3660 | |
10f2d63a VZ |
3661 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` |
3662 | if test "x$LINE" != x ; then | |
3663 | eval "DEFAULT_$LINE" | |
3664 | else | |
3665 | no_cache=1 | |
3666 | fi | |
3667 | ||
3668 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
698dcdb6 VZ |
3669 | |
3670 | fi | |
10f2d63a VZ |
3671 | |
3672 | ||
3673 | eval "$ac_cv_use_wave" | |
3674 | if test "$no_cache" != 1; then | |
3675 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
3676 | fi | |
3677 | ||
3678 | if test "$wxUSE_WAVE" = yes; then | |
698dcdb6 | 3679 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3680 | else |
698dcdb6 | 3681 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3682 | fi |
698dcdb6 | 3683 | |
10f2d63a | 3684 | |
698dcdb6 | 3685 | echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6 |
009fead0 | 3686 | echo "configure:3687: checking for --enable-fraction" >&5 |
10f2d63a VZ |
3687 | no_cache=0 |
3688 | # Check whether --enable-fraction or --disable-fraction was given. | |
3689 | if test "${enable_fraction+set}" = set; then | |
3690 | enableval="$enable_fraction" | |
698dcdb6 | 3691 | |
10f2d63a VZ |
3692 | if test "$enableval" = yes; then |
3693 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
3694 | else | |
3695 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
3696 | fi | |
698dcdb6 | 3697 | |
10f2d63a | 3698 | else |
698dcdb6 | 3699 | |
10f2d63a VZ |
3700 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` |
3701 | if test "x$LINE" != x ; then | |
3702 | eval "DEFAULT_$LINE" | |
3703 | else | |
3704 | no_cache=1 | |
3705 | fi | |
3706 | ||
3707 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
698dcdb6 VZ |
3708 | |
3709 | fi | |
10f2d63a VZ |
3710 | |
3711 | ||
3712 | eval "$ac_cv_use_fraction" | |
3713 | if test "$no_cache" != 1; then | |
3714 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
3715 | fi | |
3716 | ||
3717 | if test "$wxUSE_FRACTION" = yes; then | |
698dcdb6 | 3718 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3719 | else |
698dcdb6 | 3720 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3721 | fi |
698dcdb6 | 3722 | |
10f2d63a | 3723 | |
698dcdb6 | 3724 | echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6 |
009fead0 | 3725 | echo "configure:3726: checking for --enable-dynlib" >&5 |
10f2d63a VZ |
3726 | no_cache=0 |
3727 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
3728 | if test "${enable_dynlib+set}" = set; then | |
3729 | enableval="$enable_dynlib" | |
698dcdb6 | 3730 | |
10f2d63a VZ |
3731 | if test "$enableval" = yes; then |
3732 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
3733 | else | |
3734 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
3735 | fi | |
698dcdb6 | 3736 | |
10f2d63a | 3737 | else |
698dcdb6 | 3738 | |
10f2d63a VZ |
3739 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` |
3740 | if test "x$LINE" != x ; then | |
3741 | eval "DEFAULT_$LINE" | |
3742 | else | |
3743 | no_cache=1 | |
3744 | fi | |
3745 | ||
3746 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
698dcdb6 VZ |
3747 | |
3748 | fi | |
10f2d63a VZ |
3749 | |
3750 | ||
3751 | eval "$ac_cv_use_dynlib" | |
3752 | if test "$no_cache" != 1; then | |
3753 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
3754 | fi | |
3755 | ||
3756 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
698dcdb6 | 3757 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3758 | else |
698dcdb6 | 3759 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3760 | fi |
698dcdb6 | 3761 | |
10f2d63a | 3762 | |
0b9ab0bd | 3763 | echo $ac_n "checking for --enable-dynamicloader""... $ac_c" 1>&6 |
009fead0 | 3764 | echo "configure:3765: checking for --enable-dynamicloader" >&5 |
0b9ab0bd RL |
3765 | no_cache=0 |
3766 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
3767 | if test "${enable_dynamicloader+set}" = set; then | |
3768 | enableval="$enable_dynamicloader" | |
3769 | ||
3770 | if test "$enableval" = yes; then | |
3771 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
3772 | else | |
3773 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
3774 | fi | |
3775 | ||
3776 | else | |
3777 | ||
3778 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` | |
3779 | if test "x$LINE" != x ; then | |
3780 | eval "DEFAULT_$LINE" | |
3781 | else | |
3782 | no_cache=1 | |
3783 | fi | |
3784 | ||
3785 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
3786 | ||
3787 | fi | |
3788 | ||
3789 | ||
3790 | eval "$ac_cv_use_dynamicloader" | |
3791 | if test "$no_cache" != 1; then | |
3792 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
3793 | fi | |
3794 | ||
3795 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
3796 | echo "$ac_t""yes" 1>&6 | |
3797 | else | |
3798 | echo "$ac_t""no" 1>&6 | |
3799 | fi | |
3800 | ||
3801 | ||
698dcdb6 | 3802 | echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6 |
009fead0 | 3803 | echo "configure:3804: checking for --enable-longlong" >&5 |
10f2d63a VZ |
3804 | no_cache=0 |
3805 | # Check whether --enable-longlong or --disable-longlong was given. | |
3806 | if test "${enable_longlong+set}" = set; then | |
3807 | enableval="$enable_longlong" | |
698dcdb6 | 3808 | |
10f2d63a VZ |
3809 | if test "$enableval" = yes; then |
3810 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
3811 | else | |
3812 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
3813 | fi | |
698dcdb6 | 3814 | |
10f2d63a | 3815 | else |
698dcdb6 | 3816 | |
10f2d63a VZ |
3817 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` |
3818 | if test "x$LINE" != x ; then | |
3819 | eval "DEFAULT_$LINE" | |
3820 | else | |
3821 | no_cache=1 | |
3822 | fi | |
3823 | ||
3824 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
698dcdb6 VZ |
3825 | |
3826 | fi | |
10f2d63a VZ |
3827 | |
3828 | ||
3829 | eval "$ac_cv_use_longlong" | |
3830 | if test "$no_cache" != 1; then | |
3831 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
3832 | fi | |
3833 | ||
3834 | if test "$wxUSE_LONGLONG" = yes; then | |
698dcdb6 | 3835 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3836 | else |
698dcdb6 | 3837 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3838 | fi |
698dcdb6 | 3839 | |
10f2d63a | 3840 | |
698dcdb6 | 3841 | echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6 |
009fead0 | 3842 | echo "configure:3843: checking for --enable-geometry" >&5 |
e8f65ba6 RR |
3843 | no_cache=0 |
3844 | # Check whether --enable-geometry or --disable-geometry was given. | |
3845 | if test "${enable_geometry+set}" = set; then | |
3846 | enableval="$enable_geometry" | |
698dcdb6 | 3847 | |
e8f65ba6 RR |
3848 | if test "$enableval" = yes; then |
3849 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
3850 | else | |
3851 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
3852 | fi | |
698dcdb6 | 3853 | |
e8f65ba6 | 3854 | else |
698dcdb6 | 3855 | |
e8f65ba6 RR |
3856 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` |
3857 | if test "x$LINE" != x ; then | |
3858 | eval "DEFAULT_$LINE" | |
3859 | else | |
3860 | no_cache=1 | |
3861 | fi | |
3862 | ||
3863 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
698dcdb6 VZ |
3864 | |
3865 | fi | |
e8f65ba6 RR |
3866 | |
3867 | ||
3868 | eval "$ac_cv_use_geometry" | |
3869 | if test "$no_cache" != 1; then | |
3870 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
3871 | fi | |
3872 | ||
3873 | if test "$wxUSE_GEOMETRY" = yes; then | |
698dcdb6 | 3874 | echo "$ac_t""yes" 1>&6 |
e8f65ba6 | 3875 | else |
698dcdb6 | 3876 | echo "$ac_t""no" 1>&6 |
e8f65ba6 | 3877 | fi |
698dcdb6 | 3878 | |
e8f65ba6 | 3879 | |
698dcdb6 | 3880 | echo $ac_n "checking for --enable-log""... $ac_c" 1>&6 |
009fead0 | 3881 | echo "configure:3882: checking for --enable-log" >&5 |
10f2d63a VZ |
3882 | no_cache=0 |
3883 | # Check whether --enable-log or --disable-log was given. | |
3884 | if test "${enable_log+set}" = set; then | |
3885 | enableval="$enable_log" | |
698dcdb6 | 3886 | |
10f2d63a VZ |
3887 | if test "$enableval" = yes; then |
3888 | ac_cv_use_log='wxUSE_LOG=yes' | |
3889 | else | |
3890 | ac_cv_use_log='wxUSE_LOG=no' | |
3891 | fi | |
698dcdb6 | 3892 | |
10f2d63a | 3893 | else |
698dcdb6 | 3894 | |
10f2d63a VZ |
3895 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` |
3896 | if test "x$LINE" != x ; then | |
3897 | eval "DEFAULT_$LINE" | |
3898 | else | |
3899 | no_cache=1 | |
3900 | fi | |
3901 | ||
3902 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
698dcdb6 VZ |
3903 | |
3904 | fi | |
10f2d63a VZ |
3905 | |
3906 | ||
3907 | eval "$ac_cv_use_log" | |
3908 | if test "$no_cache" != 1; then | |
3909 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
3910 | fi | |
3911 | ||
3912 | if test "$wxUSE_LOG" = yes; then | |
698dcdb6 | 3913 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3914 | else |
698dcdb6 | 3915 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3916 | fi |
698dcdb6 | 3917 | |
10f2d63a | 3918 | |
698dcdb6 | 3919 | echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6 |
009fead0 | 3920 | echo "configure:3921: checking for --enable-streams" >&5 |
10f2d63a VZ |
3921 | no_cache=0 |
3922 | # Check whether --enable-streams or --disable-streams was given. | |
3923 | if test "${enable_streams+set}" = set; then | |
3924 | enableval="$enable_streams" | |
698dcdb6 | 3925 | |
10f2d63a VZ |
3926 | if test "$enableval" = yes; then |
3927 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
3928 | else | |
3929 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
3930 | fi | |
698dcdb6 | 3931 | |
10f2d63a | 3932 | else |
698dcdb6 | 3933 | |
10f2d63a VZ |
3934 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` |
3935 | if test "x$LINE" != x ; then | |
3936 | eval "DEFAULT_$LINE" | |
3937 | else | |
3938 | no_cache=1 | |
3939 | fi | |
3940 | ||
3941 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
698dcdb6 VZ |
3942 | |
3943 | fi | |
10f2d63a VZ |
3944 | |
3945 | ||
3946 | eval "$ac_cv_use_streams" | |
3947 | if test "$no_cache" != 1; then | |
3948 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
3949 | fi | |
3950 | ||
3951 | if test "$wxUSE_STREAMS" = yes; then | |
698dcdb6 | 3952 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3953 | else |
698dcdb6 | 3954 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3955 | fi |
698dcdb6 | 3956 | |
10f2d63a | 3957 | |
698dcdb6 | 3958 | echo $ac_n "checking for --enable-file""... $ac_c" 1>&6 |
009fead0 | 3959 | echo "configure:3960: checking for --enable-file" >&5 |
10f2d63a VZ |
3960 | no_cache=0 |
3961 | # Check whether --enable-file or --disable-file was given. | |
3962 | if test "${enable_file+set}" = set; then | |
3963 | enableval="$enable_file" | |
698dcdb6 | 3964 | |
10f2d63a VZ |
3965 | if test "$enableval" = yes; then |
3966 | ac_cv_use_file='wxUSE_FILE=yes' | |
3967 | else | |
3968 | ac_cv_use_file='wxUSE_FILE=no' | |
3969 | fi | |
698dcdb6 | 3970 | |
10f2d63a | 3971 | else |
698dcdb6 | 3972 | |
10f2d63a VZ |
3973 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` |
3974 | if test "x$LINE" != x ; then | |
3975 | eval "DEFAULT_$LINE" | |
3976 | else | |
3977 | no_cache=1 | |
3978 | fi | |
3979 | ||
3980 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
698dcdb6 VZ |
3981 | |
3982 | fi | |
10f2d63a VZ |
3983 | |
3984 | ||
3985 | eval "$ac_cv_use_file" | |
3986 | if test "$no_cache" != 1; then | |
3987 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
3988 | fi | |
3989 | ||
3990 | if test "$wxUSE_FILE" = yes; then | |
698dcdb6 | 3991 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3992 | else |
698dcdb6 | 3993 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3994 | fi |
698dcdb6 | 3995 | |
10f2d63a | 3996 | |
1e6feb95 | 3997 | echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6 |
009fead0 | 3998 | echo "configure:3999: checking for --enable-ffile" >&5 |
10f2d63a | 3999 | no_cache=0 |
1e6feb95 VZ |
4000 | # Check whether --enable-ffile or --disable-ffile was given. |
4001 | if test "${enable_ffile+set}" = set; then | |
4002 | enableval="$enable_ffile" | |
698dcdb6 | 4003 | |
10f2d63a | 4004 | if test "$enableval" = yes; then |
1e6feb95 | 4005 | ac_cv_use_ffile='wxUSE_FFILE=yes' |
10f2d63a | 4006 | else |
1e6feb95 | 4007 | ac_cv_use_ffile='wxUSE_FFILE=no' |
10f2d63a | 4008 | fi |
698dcdb6 | 4009 | |
10f2d63a | 4010 | else |
698dcdb6 | 4011 | |
1e6feb95 | 4012 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4013 | if test "x$LINE" != x ; then |
4014 | eval "DEFAULT_$LINE" | |
4015 | else | |
4016 | no_cache=1 | |
4017 | fi | |
4018 | ||
1e6feb95 | 4019 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE |
698dcdb6 VZ |
4020 | |
4021 | fi | |
10f2d63a VZ |
4022 | |
4023 | ||
1e6feb95 | 4024 | eval "$ac_cv_use_ffile" |
10f2d63a | 4025 | if test "$no_cache" != 1; then |
1e6feb95 | 4026 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4027 | fi |
4028 | ||
1e6feb95 | 4029 | if test "$wxUSE_FFILE" = yes; then |
698dcdb6 | 4030 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4031 | else |
698dcdb6 | 4032 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4033 | fi |
698dcdb6 | 4034 | |
10f2d63a | 4035 | |
a3a584a7 | 4036 | echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6 |
009fead0 | 4037 | echo "configure:4038: checking for --enable-textbuf" >&5 |
a3a584a7 VZ |
4038 | no_cache=0 |
4039 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
4040 | if test "${enable_textbuf+set}" = set; then | |
4041 | enableval="$enable_textbuf" | |
4042 | ||
4043 | if test "$enableval" = yes; then | |
4044 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
4045 | else | |
4046 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
4047 | fi | |
4048 | ||
4049 | else | |
4050 | ||
4051 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` | |
4052 | if test "x$LINE" != x ; then | |
4053 | eval "DEFAULT_$LINE" | |
4054 | else | |
4055 | no_cache=1 | |
4056 | fi | |
4057 | ||
4058 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
4059 | ||
4060 | fi | |
4061 | ||
4062 | ||
4063 | eval "$ac_cv_use_textbuf" | |
4064 | if test "$no_cache" != 1; then | |
4065 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
4066 | fi | |
4067 | ||
4068 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
4069 | echo "$ac_t""yes" 1>&6 | |
4070 | else | |
4071 | echo "$ac_t""no" 1>&6 | |
4072 | fi | |
4073 | ||
4074 | ||
1e6feb95 | 4075 | echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6 |
009fead0 | 4076 | echo "configure:4077: checking for --enable-textfile" >&5 |
10f2d63a | 4077 | no_cache=0 |
1e6feb95 VZ |
4078 | # Check whether --enable-textfile or --disable-textfile was given. |
4079 | if test "${enable_textfile+set}" = set; then | |
4080 | enableval="$enable_textfile" | |
698dcdb6 | 4081 | |
10f2d63a | 4082 | if test "$enableval" = yes; then |
1e6feb95 | 4083 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' |
10f2d63a | 4084 | else |
1e6feb95 | 4085 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' |
10f2d63a | 4086 | fi |
698dcdb6 | 4087 | |
10f2d63a | 4088 | else |
698dcdb6 | 4089 | |
1e6feb95 | 4090 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4091 | if test "x$LINE" != x ; then |
4092 | eval "DEFAULT_$LINE" | |
4093 | else | |
4094 | no_cache=1 | |
4095 | fi | |
4096 | ||
1e6feb95 | 4097 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE |
698dcdb6 VZ |
4098 | |
4099 | fi | |
10f2d63a VZ |
4100 | |
4101 | ||
1e6feb95 | 4102 | eval "$ac_cv_use_textfile" |
10f2d63a | 4103 | if test "$no_cache" != 1; then |
1e6feb95 | 4104 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4105 | fi |
4106 | ||
1e6feb95 | 4107 | if test "$wxUSE_TEXTFILE" = yes; then |
698dcdb6 | 4108 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4109 | else |
698dcdb6 | 4110 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4111 | fi |
698dcdb6 | 4112 | |
10f2d63a | 4113 | |
1e6feb95 | 4114 | echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6 |
009fead0 | 4115 | echo "configure:4116: checking for --enable-fontmap" >&5 |
10f2d63a | 4116 | no_cache=0 |
1e6feb95 VZ |
4117 | # Check whether --enable-fontmap or --disable-fontmap was given. |
4118 | if test "${enable_fontmap+set}" = set; then | |
4119 | enableval="$enable_fontmap" | |
698dcdb6 | 4120 | |
10f2d63a | 4121 | if test "$enableval" = yes; then |
1e6feb95 | 4122 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' |
10f2d63a | 4123 | else |
1e6feb95 | 4124 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' |
10f2d63a | 4125 | fi |
698dcdb6 | 4126 | |
10f2d63a | 4127 | else |
698dcdb6 | 4128 | |
1e6feb95 | 4129 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` |
10f2d63a VZ |
4130 | if test "x$LINE" != x ; then |
4131 | eval "DEFAULT_$LINE" | |
4132 | else | |
4133 | no_cache=1 | |
4134 | fi | |
4135 | ||
1e6feb95 | 4136 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP |
698dcdb6 VZ |
4137 | |
4138 | fi | |
10f2d63a VZ |
4139 | |
4140 | ||
1e6feb95 | 4141 | eval "$ac_cv_use_fontmap" |
10f2d63a | 4142 | if test "$no_cache" != 1; then |
1e6feb95 | 4143 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4144 | fi |
4145 | ||
1e6feb95 | 4146 | if test "$wxUSE_FONTMAP" = yes; then |
698dcdb6 | 4147 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4148 | else |
698dcdb6 | 4149 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4150 | fi |
698dcdb6 | 4151 | |
10f2d63a | 4152 | |
1e6feb95 | 4153 | echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6 |
009fead0 | 4154 | echo "configure:4155: checking for --enable-unicode" >&5 |
10f2d63a | 4155 | no_cache=0 |
1e6feb95 VZ |
4156 | # Check whether --enable-unicode or --disable-unicode was given. |
4157 | if test "${enable_unicode+set}" = set; then | |
4158 | enableval="$enable_unicode" | |
4159 | ||
4160 | if test "$enableval" = yes; then | |
4161 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
4162 | else | |
4163 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
4164 | fi | |
4165 | ||
4166 | else | |
4167 | ||
4168 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
4169 | if test "x$LINE" != x ; then | |
4170 | eval "DEFAULT_$LINE" | |
4171 | else | |
4172 | no_cache=1 | |
4173 | fi | |
4174 | ||
4175 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
4176 | ||
4177 | fi | |
4178 | ||
4179 | ||
4180 | eval "$ac_cv_use_unicode" | |
4181 | if test "$no_cache" != 1; then | |
4182 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
4183 | fi | |
4184 | ||
4185 | if test "$wxUSE_UNICODE" = yes; then | |
4186 | echo "$ac_t""yes" 1>&6 | |
4187 | else | |
4188 | echo "$ac_t""no" 1>&6 | |
4189 | fi | |
4190 | ||
4191 | ||
a72a4bfa | 4192 | echo $ac_n "checking for --enable-mslu""... $ac_c" 1>&6 |
009fead0 | 4193 | echo "configure:4194: checking for --enable-mslu" >&5 |
a72a4bfa VS |
4194 | no_cache=0 |
4195 | # Check whether --enable-mslu or --disable-mslu was given. | |
4196 | if test "${enable_mslu+set}" = set; then | |
4197 | enableval="$enable_mslu" | |
4198 | ||
4199 | if test "$enableval" = yes; then | |
4200 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
4201 | else | |
4202 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
4203 | fi | |
4204 | ||
4205 | else | |
4206 | ||
4207 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` | |
4208 | if test "x$LINE" != x ; then | |
4209 | eval "DEFAULT_$LINE" | |
4210 | else | |
4211 | no_cache=1 | |
4212 | fi | |
4213 | ||
4214 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
4215 | ||
4216 | fi | |
4217 | ||
4218 | ||
4219 | eval "$ac_cv_use_mslu" | |
4220 | if test "$no_cache" != 1; then | |
4221 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
4222 | fi | |
4223 | ||
4224 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
4225 | echo "$ac_t""yes" 1>&6 | |
4226 | else | |
4227 | echo "$ac_t""no" 1>&6 | |
4228 | fi | |
4229 | ||
4230 | ||
1e6feb95 | 4231 | echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6 |
009fead0 | 4232 | echo "configure:4233: checking for --enable-wxprintfv" >&5 |
1e6feb95 VZ |
4233 | no_cache=0 |
4234 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
4235 | if test "${enable_wxprintfv+set}" = set; then | |
4236 | enableval="$enable_wxprintfv" | |
4237 | ||
4238 | if test "$enableval" = yes; then | |
10f2d63a VZ |
4239 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' |
4240 | else | |
4241 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
4242 | fi | |
698dcdb6 | 4243 | |
10f2d63a | 4244 | else |
698dcdb6 | 4245 | |
10f2d63a VZ |
4246 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` |
4247 | if test "x$LINE" != x ; then | |
4248 | eval "DEFAULT_$LINE" | |
4249 | else | |
4250 | no_cache=1 | |
4251 | fi | |
4252 | ||
4253 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
698dcdb6 VZ |
4254 | |
4255 | fi | |
10f2d63a VZ |
4256 | |
4257 | ||
4258 | eval "$ac_cv_use_wxprintfv" | |
4259 | if test "$no_cache" != 1; then | |
4260 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
4261 | fi | |
4262 | ||
4263 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
698dcdb6 | 4264 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4265 | else |
698dcdb6 | 4266 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4267 | fi |
698dcdb6 | 4268 | |
10f2d63a | 4269 | |
698dcdb6 | 4270 | echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6 |
009fead0 | 4271 | echo "configure:4272: checking for --enable-std_iostreams" >&5 |
10f2d63a VZ |
4272 | no_cache=0 |
4273 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
4274 | if test "${enable_std_iostreams+set}" = set; then | |
4275 | enableval="$enable_std_iostreams" | |
698dcdb6 | 4276 | |
10f2d63a VZ |
4277 | if test "$enableval" = yes; then |
4278 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
4279 | else | |
4280 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
4281 | fi | |
698dcdb6 | 4282 | |
10f2d63a | 4283 | else |
698dcdb6 | 4284 | |
10f2d63a VZ |
4285 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
4286 | if test "x$LINE" != x ; then | |
4287 | eval "DEFAULT_$LINE" | |
4288 | else | |
4289 | no_cache=1 | |
4290 | fi | |
4291 | ||
4292 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
698dcdb6 VZ |
4293 | |
4294 | fi | |
10f2d63a VZ |
4295 | |
4296 | ||
4297 | eval "$ac_cv_use_std_iostreams" | |
4298 | if test "$no_cache" != 1; then | |
4299 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
4300 | fi | |
4301 | ||
4302 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
698dcdb6 | 4303 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4304 | else |
698dcdb6 | 4305 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4306 | fi |
698dcdb6 | 4307 | |
10f2d63a | 4308 | |
698dcdb6 | 4309 | echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6 |
009fead0 | 4310 | echo "configure:4311: checking for --enable-filesystem" >&5 |
24528b0c VS |
4311 | no_cache=0 |
4312 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
4313 | if test "${enable_filesystem+set}" = set; then | |
4314 | enableval="$enable_filesystem" | |
698dcdb6 | 4315 | |
24528b0c VS |
4316 | if test "$enableval" = yes; then |
4317 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
4318 | else | |
4319 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
4320 | fi | |
698dcdb6 | 4321 | |
24528b0c | 4322 | else |
698dcdb6 | 4323 | |
24528b0c VS |
4324 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` |
4325 | if test "x$LINE" != x ; then | |
4326 | eval "DEFAULT_$LINE" | |
4327 | else | |
4328 | no_cache=1 | |
4329 | fi | |
4330 | ||
4331 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
698dcdb6 VZ |
4332 | |
4333 | fi | |
24528b0c VS |
4334 | |
4335 | ||
4336 | eval "$ac_cv_use_filesystem" | |
4337 | if test "$no_cache" != 1; then | |
4338 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
4339 | fi | |
4340 | ||
4341 | if test "$wxUSE_FILESYSTEM" = yes; then | |
698dcdb6 | 4342 | echo "$ac_t""yes" 1>&6 |
24528b0c | 4343 | else |
698dcdb6 | 4344 | echo "$ac_t""no" 1>&6 |
24528b0c | 4345 | fi |
698dcdb6 | 4346 | |
24528b0c | 4347 | |
698dcdb6 | 4348 | echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6 |
009fead0 | 4349 | echo "configure:4350: checking for --enable-fs_inet" >&5 |
10f2d63a VZ |
4350 | no_cache=0 |
4351 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
4352 | if test "${enable_fs_inet+set}" = set; then | |
4353 | enableval="$enable_fs_inet" | |
698dcdb6 | 4354 | |
10f2d63a VZ |
4355 | if test "$enableval" = yes; then |
4356 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
4357 | else | |
4358 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
4359 | fi | |
698dcdb6 | 4360 | |
10f2d63a | 4361 | else |
698dcdb6 | 4362 | |
10f2d63a VZ |
4363 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` |
4364 | if test "x$LINE" != x ; then | |
4365 | eval "DEFAULT_$LINE" | |
4366 | else | |
4367 | no_cache=1 | |
4368 | fi | |
4369 | ||
4370 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
698dcdb6 VZ |
4371 | |
4372 | fi | |
10f2d63a VZ |
4373 | |
4374 | ||
4375 | eval "$ac_cv_use_fs_inet" | |
4376 | if test "$no_cache" != 1; then | |
4377 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
4378 | fi | |
4379 | ||
4380 | if test "$wxUSE_FS_INET" = yes; then | |
698dcdb6 | 4381 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4382 | else |
698dcdb6 | 4383 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4384 | fi |
698dcdb6 | 4385 | |
10f2d63a | 4386 | |
698dcdb6 | 4387 | echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6 |
009fead0 | 4388 | echo "configure:4389: checking for --enable-fs_zip" >&5 |
10f2d63a VZ |
4389 | no_cache=0 |
4390 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
4391 | if test "${enable_fs_zip+set}" = set; then | |
4392 | enableval="$enable_fs_zip" | |
698dcdb6 | 4393 | |
10f2d63a VZ |
4394 | if test "$enableval" = yes; then |
4395 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
4396 | else | |
4397 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
4398 | fi | |
698dcdb6 | 4399 | |
10f2d63a | 4400 | else |
698dcdb6 | 4401 | |
10f2d63a VZ |
4402 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` |
4403 | if test "x$LINE" != x ; then | |
4404 | eval "DEFAULT_$LINE" | |
4405 | else | |
4406 | no_cache=1 | |
4407 | fi | |
4408 | ||
4409 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
698dcdb6 VZ |
4410 | |
4411 | fi | |
10f2d63a VZ |
4412 | |
4413 | ||
4414 | eval "$ac_cv_use_fs_zip" | |
4415 | if test "$no_cache" != 1; then | |
4416 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
4417 | fi | |
4418 | ||
4419 | if test "$wxUSE_FS_ZIP" = yes; then | |
698dcdb6 | 4420 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4421 | else |
698dcdb6 | 4422 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4423 | fi |
698dcdb6 | 4424 | |
10f2d63a | 4425 | |
698dcdb6 | 4426 | echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6 |
009fead0 | 4427 | echo "configure:4428: checking for --enable-zipstream" >&5 |
10f2d63a VZ |
4428 | no_cache=0 |
4429 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
4430 | if test "${enable_zipstream+set}" = set; then | |
4431 | enableval="$enable_zipstream" | |
698dcdb6 | 4432 | |
10f2d63a VZ |
4433 | if test "$enableval" = yes; then |
4434 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
4435 | else | |
4436 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
4437 | fi | |
698dcdb6 | 4438 | |
10f2d63a | 4439 | else |
698dcdb6 | 4440 | |
10f2d63a VZ |
4441 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` |
4442 | if test "x$LINE" != x ; then | |
4443 | eval "DEFAULT_$LINE" | |
4444 | else | |
4445 | no_cache=1 | |
4446 | fi | |
4447 | ||
4448 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
698dcdb6 VZ |
4449 | |
4450 | fi | |
10f2d63a VZ |
4451 | |
4452 | ||
4453 | eval "$ac_cv_use_zipstream" | |
4454 | if test "$no_cache" != 1; then | |
4455 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
4456 | fi | |
4457 | ||
4458 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
698dcdb6 | 4459 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4460 | else |
698dcdb6 | 4461 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4462 | fi |
698dcdb6 | 4463 | |
10f2d63a | 4464 | |
698dcdb6 VZ |
4465 | |
4466 | echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6 | |
009fead0 | 4467 | echo "configure:4468: checking for --enable-catch_segvs" >&5 |
eb4efbdc VZ |
4468 | no_cache=0 |
4469 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
4470 | if test "${enable_catch_segvs+set}" = set; then | |
4471 | enableval="$enable_catch_segvs" | |
698dcdb6 | 4472 | |
eb4efbdc VZ |
4473 | if test "$enableval" = yes; then |
4474 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
4475 | else | |
4476 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
4477 | fi | |
698dcdb6 | 4478 | |
eb4efbdc | 4479 | else |
698dcdb6 | 4480 | |
eb4efbdc VZ |
4481 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
4482 | if test "x$LINE" != x ; then | |
4483 | eval "DEFAULT_$LINE" | |
4484 | else | |
4485 | no_cache=1 | |
4486 | fi | |
4487 | ||
4488 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
698dcdb6 VZ |
4489 | |
4490 | fi | |
eb4efbdc VZ |
4491 | |
4492 | ||
4493 | eval "$ac_cv_use_catch_segvs" | |
4494 | if test "$no_cache" != 1; then | |
4495 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4496 | fi | |
4497 | ||
4498 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
698dcdb6 | 4499 | echo "$ac_t""yes" 1>&6 |
eb4efbdc | 4500 | else |
698dcdb6 | 4501 | echo "$ac_t""no" 1>&6 |
eb4efbdc | 4502 | fi |
698dcdb6 | 4503 | |
eb4efbdc | 4504 | |
698dcdb6 | 4505 | echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6 |
009fead0 | 4506 | echo "configure:4507: checking for --enable-snglinst" >&5 |
4f3c5f06 VZ |
4507 | no_cache=0 |
4508 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
4509 | if test "${enable_snglinst+set}" = set; then | |
4510 | enableval="$enable_snglinst" | |
698dcdb6 | 4511 | |
4f3c5f06 VZ |
4512 | if test "$enableval" = yes; then |
4513 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
4514 | else | |
4515 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
4516 | fi | |
698dcdb6 | 4517 | |
4f3c5f06 | 4518 | else |
698dcdb6 | 4519 | |
4f3c5f06 VZ |
4520 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` |
4521 | if test "x$LINE" != x ; then | |
4522 | eval "DEFAULT_$LINE" | |
4523 | else | |
4524 | no_cache=1 | |
4525 | fi | |
4526 | ||
4527 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
698dcdb6 VZ |
4528 | |
4529 | fi | |
4f3c5f06 VZ |
4530 | |
4531 | ||
4532 | eval "$ac_cv_use_snglinst" | |
4533 | if test "$no_cache" != 1; then | |
4534 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
4535 | fi | |
4536 | ||
4537 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
698dcdb6 | 4538 | echo "$ac_t""yes" 1>&6 |
4f3c5f06 | 4539 | else |
698dcdb6 | 4540 | echo "$ac_t""no" 1>&6 |
4f3c5f06 | 4541 | fi |
698dcdb6 VZ |
4542 | |
4543 | ||
eb4efbdc | 4544 | |
1e6feb95 | 4545 | echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6 |
009fead0 | 4546 | echo "configure:4547: checking for --enable-mimetype" >&5 |
1e6feb95 VZ |
4547 | no_cache=0 |
4548 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
4549 | if test "${enable_mimetype+set}" = set; then | |
4550 | enableval="$enable_mimetype" | |
4551 | ||
4552 | if test "$enableval" = yes; then | |
4553 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
4554 | else | |
4555 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
4556 | fi | |
4557 | ||
4558 | else | |
4559 | ||
4560 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
4561 | if test "x$LINE" != x ; then | |
4562 | eval "DEFAULT_$LINE" | |
4563 | else | |
4564 | no_cache=1 | |
4565 | fi | |
4566 | ||
4567 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
4568 | ||
4569 | fi | |
4570 | ||
4571 | ||
4572 | eval "$ac_cv_use_mimetype" | |
4573 | if test "$no_cache" != 1; then | |
4574 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
4575 | fi | |
4576 | ||
4577 | if test "$wxUSE_MIMETYPE" = yes; then | |
4578 | echo "$ac_t""yes" 1>&6 | |
4579 | else | |
4580 | echo "$ac_t""no" 1>&6 | |
4581 | fi | |
4582 | ||
4583 | ||
3e44f09d | 4584 | echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6 |
009fead0 | 4585 | echo "configure:4586: checking for --enable-system_options" >&5 |
3e44f09d VZ |
4586 | no_cache=0 |
4587 | # Check whether --enable-system_options or --disable-system_options was given. | |
4588 | if test "${enable_system_options+set}" = set; then | |
4589 | enableval="$enable_system_options" | |
4590 | ||
4591 | if test "$enableval" = yes; then | |
4592 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
4593 | else | |
4594 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
4595 | fi | |
4596 | ||
4597 | else | |
4598 | ||
4599 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` | |
4600 | if test "x$LINE" != x ; then | |
4601 | eval "DEFAULT_$LINE" | |
4602 | else | |
4603 | no_cache=1 | |
4604 | fi | |
4605 | ||
4606 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
4607 | ||
4608 | fi | |
4609 | ||
4610 | ||
4611 | eval "$ac_cv_use_system_options" | |
4612 | if test "$no_cache" != 1; then | |
4613 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
4614 | fi | |
4615 | ||
4616 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
4617 | echo "$ac_t""yes" 1>&6 | |
4618 | else | |
4619 | echo "$ac_t""no" 1>&6 | |
4620 | fi | |
4621 | ||
4622 | ||
1e6feb95 | 4623 | |
4cdb0ab0 | 4624 | echo $ac_n "checking for --enable-url""... $ac_c" 1>&6 |
009fead0 | 4625 | echo "configure:4626: checking for --enable-url" >&5 |
4cdb0ab0 VS |
4626 | no_cache=0 |
4627 | # Check whether --enable-url or --disable-url was given. | |
4628 | if test "${enable_url+set}" = set; then | |
4629 | enableval="$enable_url" | |
4630 | ||
4631 | if test "$enableval" = yes; then | |
4632 | ac_cv_use_url='wxUSE_URL=yes' | |
4633 | else | |
4634 | ac_cv_use_url='wxUSE_URL=no' | |
4635 | fi | |
4636 | ||
4637 | else | |
4638 | ||
4639 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` | |
4640 | if test "x$LINE" != x ; then | |
4641 | eval "DEFAULT_$LINE" | |
4642 | else | |
4643 | no_cache=1 | |
4644 | fi | |
4645 | ||
4646 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
4647 | ||
4648 | fi | |
4649 | ||
4650 | ||
4651 | eval "$ac_cv_use_url" | |
4652 | if test "$no_cache" != 1; then | |
4653 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
4654 | fi | |
4655 | ||
4656 | if test "$wxUSE_URL" = yes; then | |
4657 | echo "$ac_t""yes" 1>&6 | |
4658 | else | |
4659 | echo "$ac_t""no" 1>&6 | |
4660 | fi | |
4661 | ||
4662 | ||
4663 | echo $ac_n "checking for --enable-protocol""... $ac_c" 1>&6 | |
009fead0 | 4664 | echo "configure:4665: checking for --enable-protocol" >&5 |
4cdb0ab0 VS |
4665 | no_cache=0 |
4666 | # Check whether --enable-protocol or --disable-protocol was given. | |
4667 | if test "${enable_protocol+set}" = set; then | |
4668 | enableval="$enable_protocol" | |
4669 | ||
4670 | if test "$enableval" = yes; then | |
4671 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
4672 | else | |
4673 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
4674 | fi | |
4675 | ||
4676 | else | |
4677 | ||
4678 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
4679 | if test "x$LINE" != x ; then | |
4680 | eval "DEFAULT_$LINE" | |
4681 | else | |
4682 | no_cache=1 | |
4683 | fi | |
4684 | ||
4685 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
4686 | ||
4687 | fi | |
4688 | ||
4689 | ||
4690 | eval "$ac_cv_use_protocol" | |
4691 | if test "$no_cache" != 1; then | |
4692 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
4693 | fi | |
4694 | ||
4695 | if test "$wxUSE_PROTOCOL" = yes; then | |
4696 | echo "$ac_t""yes" 1>&6 | |
4697 | else | |
4698 | echo "$ac_t""no" 1>&6 | |
4699 | fi | |
4700 | ||
4701 | ||
4702 | echo $ac_n "checking for --enable-protocol_http""... $ac_c" 1>&6 | |
009fead0 | 4703 | echo "configure:4704: checking for --enable-protocol_http" >&5 |
4cdb0ab0 VS |
4704 | no_cache=0 |
4705 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
4706 | if test "${enable_protocol_http+set}" = set; then | |
4707 | enableval="$enable_protocol_http" | |
4708 | ||
4709 | if test "$enableval" = yes; then | |
4710 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
4711 | else | |
4712 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
4713 | fi | |
4714 | ||
4715 | else | |
4716 | ||
4717 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
4718 | if test "x$LINE" != x ; then | |
4719 | eval "DEFAULT_$LINE" | |
4720 | else | |
4721 | no_cache=1 | |
4722 | fi | |
4723 | ||
4724 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
4725 | ||
4726 | fi | |
4727 | ||
4728 | ||
4729 | eval "$ac_cv_use_protocol_http" | |
4730 | if test "$no_cache" != 1; then | |
4731 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
4732 | fi | |
4733 | ||
4734 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
4735 | echo "$ac_t""yes" 1>&6 | |
4736 | else | |
4737 | echo "$ac_t""no" 1>&6 | |
4738 | fi | |
4739 | ||
4740 | ||
4741 | echo $ac_n "checking for --enable-protocol_ftp""... $ac_c" 1>&6 | |
009fead0 | 4742 | echo "configure:4743: checking for --enable-protocol_ftp" >&5 |
4cdb0ab0 VS |
4743 | no_cache=0 |
4744 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
4745 | if test "${enable_protocol_ftp+set}" = set; then | |
4746 | enableval="$enable_protocol_ftp" | |
4747 | ||
4748 | if test "$enableval" = yes; then | |
4749 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4750 | else | |
4751 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
4752 | fi | |
4753 | ||
4754 | else | |
4755 | ||
4756 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
4757 | if test "x$LINE" != x ; then | |
4758 | eval "DEFAULT_$LINE" | |
4759 | else | |
4760 | no_cache=1 | |
4761 | fi | |
4762 | ||
4763 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
4764 | ||
4765 | fi | |
4766 | ||
4767 | ||
4768 | eval "$ac_cv_use_protocol_ftp" | |
4769 | if test "$no_cache" != 1; then | |
4770 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
4771 | fi | |
4772 | ||
4773 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
4774 | echo "$ac_t""yes" 1>&6 | |
4775 | else | |
4776 | echo "$ac_t""no" 1>&6 | |
4777 | fi | |
4778 | ||
4779 | ||
4780 | echo $ac_n "checking for --enable-protocol_file""... $ac_c" 1>&6 | |
009fead0 | 4781 | echo "configure:4782: checking for --enable-protocol_file" >&5 |
4cdb0ab0 VS |
4782 | no_cache=0 |
4783 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
4784 | if test "${enable_protocol_file+set}" = set; then | |
4785 | enableval="$enable_protocol_file" | |
4786 | ||
4787 | if test "$enableval" = yes; then | |
4788 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
4789 | else | |
4790 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
4791 | fi | |
4792 | ||
4793 | else | |
4794 | ||
4795 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
4796 | if test "x$LINE" != x ; then | |
4797 | eval "DEFAULT_$LINE" | |
4798 | else | |
4799 | no_cache=1 | |
4800 | fi | |
4801 | ||
4802 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
4803 | ||
4804 | fi | |
4805 | ||
4806 | ||
4807 | eval "$ac_cv_use_protocol_file" | |
4808 | if test "$no_cache" != 1; then | |
4809 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
4810 | fi | |
4811 | ||
4812 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
4813 | echo "$ac_t""yes" 1>&6 | |
4814 | else | |
4815 | echo "$ac_t""no" 1>&6 | |
4816 | fi | |
4817 | ||
4818 | ||
4819 | ||
4820 | ||
698dcdb6 VZ |
4821 | |
4822 | echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6 | |
009fead0 | 4823 | echo "configure:4824: checking for --enable-threads" >&5 |
10f2d63a VZ |
4824 | no_cache=0 |
4825 | # Check whether --enable-threads or --disable-threads was given. | |
4826 | if test "${enable_threads+set}" = set; then | |
4827 | enableval="$enable_threads" | |
698dcdb6 | 4828 | |
10f2d63a VZ |
4829 | if test "$enableval" = yes; then |
4830 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
4831 | else | |
4832 | ac_cv_use_threads='wxUSE_THREADS=no' | |
4833 | fi | |
698dcdb6 | 4834 | |
10f2d63a | 4835 | else |
698dcdb6 | 4836 | |
10f2d63a VZ |
4837 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` |
4838 | if test "x$LINE" != x ; then | |
4839 | eval "DEFAULT_$LINE" | |
4840 | else | |
4841 | no_cache=1 | |
4842 | fi | |
4843 | ||
4844 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
698dcdb6 VZ |
4845 | |
4846 | fi | |
10f2d63a VZ |
4847 | |
4848 | ||
4849 | eval "$ac_cv_use_threads" | |
4850 | if test "$no_cache" != 1; then | |
4851 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
4852 | fi | |
4853 | ||
4854 | if test "$wxUSE_THREADS" = yes; then | |
698dcdb6 | 4855 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4856 | else |
698dcdb6 | 4857 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4858 | fi |
698dcdb6 | 4859 | |
10f2d63a | 4860 | |
b12915c1 VZ |
4861 | if test "$wxUSE_GUI" = "yes"; then |
4862 | ||
698dcdb6 VZ |
4863 | |
4864 | ||
4865 | echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6 | |
009fead0 | 4866 | echo "configure:4867: checking for --enable-docview" >&5 |
10f2d63a VZ |
4867 | no_cache=0 |
4868 | # Check whether --enable-docview or --disable-docview was given. | |
4869 | if test "${enable_docview+set}" = set; then | |
4870 | enableval="$enable_docview" | |
698dcdb6 | 4871 | |
10f2d63a VZ |
4872 | if test "$enableval" = yes; then |
4873 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
4874 | else | |
4875 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
4876 | fi | |
698dcdb6 | 4877 | |
10f2d63a | 4878 | else |
698dcdb6 | 4879 | |
10f2d63a VZ |
4880 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` |
4881 | if test "x$LINE" != x ; then | |
4882 | eval "DEFAULT_$LINE" | |
4883 | else | |
4884 | no_cache=1 | |
4885 | fi | |
4886 | ||
4887 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
698dcdb6 VZ |
4888 | |
4889 | fi | |
10f2d63a VZ |
4890 | |
4891 | ||
4892 | eval "$ac_cv_use_docview" | |
4893 | if test "$no_cache" != 1; then | |
4894 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
4895 | fi | |
4896 | ||
4897 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
698dcdb6 | 4898 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4899 | else |
698dcdb6 | 4900 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4901 | fi |
698dcdb6 | 4902 | |
10f2d63a | 4903 | |
698dcdb6 | 4904 | echo $ac_n "checking for --enable-help""... $ac_c" 1>&6 |
009fead0 | 4905 | echo "configure:4906: checking for --enable-help" >&5 |
10f2d63a VZ |
4906 | no_cache=0 |
4907 | # Check whether --enable-help or --disable-help was given. | |
4908 | if test "${enable_help+set}" = set; then | |
4909 | enableval="$enable_help" | |
698dcdb6 | 4910 | |
10f2d63a VZ |
4911 | if test "$enableval" = yes; then |
4912 | ac_cv_use_help='wxUSE_HELP=yes' | |
4913 | else | |
4914 | ac_cv_use_help='wxUSE_HELP=no' | |
4915 | fi | |
698dcdb6 | 4916 | |
10f2d63a | 4917 | else |
698dcdb6 | 4918 | |
10f2d63a VZ |
4919 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` |
4920 | if test "x$LINE" != x ; then | |
4921 | eval "DEFAULT_$LINE" | |
4922 | else | |
4923 | no_cache=1 | |
4924 | fi | |
4925 | ||
4926 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
698dcdb6 VZ |
4927 | |
4928 | fi | |
10f2d63a VZ |
4929 | |
4930 | ||
4931 | eval "$ac_cv_use_help" | |
4932 | if test "$no_cache" != 1; then | |
4933 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
4934 | fi | |
4935 | ||
4936 | if test "$wxUSE_HELP" = yes; then | |
698dcdb6 | 4937 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4938 | else |
698dcdb6 | 4939 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4940 | fi |
698dcdb6 | 4941 | |
10f2d63a | 4942 | |
29fd3c0c | 4943 | echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6 |
009fead0 | 4944 | echo "configure:4945: checking for --enable-mshtmlhelp" >&5 |
29fd3c0c VS |
4945 | no_cache=0 |
4946 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
4947 | if test "${enable_mshtmlhelp+set}" = set; then | |
4948 | enableval="$enable_mshtmlhelp" | |
4949 | ||
4950 | if test "$enableval" = yes; then | |
4951 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
4952 | else | |
4953 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
4954 | fi | |
4955 | ||
4956 | else | |
4957 | ||
4958 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` | |
4959 | if test "x$LINE" != x ; then | |
4960 | eval "DEFAULT_$LINE" | |
4961 | else | |
4962 | no_cache=1 | |
4963 | fi | |
4964 | ||
4965 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
4966 | ||
4967 | fi | |
4968 | ||
4969 | ||
4970 | eval "$ac_cv_use_mshtmlhelp" | |
4971 | if test "$no_cache" != 1; then | |
4972 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
4973 | fi | |
4974 | ||
4975 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
4976 | echo "$ac_t""yes" 1>&6 | |
4977 | else | |
4978 | echo "$ac_t""no" 1>&6 | |
4979 | fi | |
4980 | ||
4981 | ||
3379ed37 | 4982 | echo $ac_n "checking for --enable-html""... $ac_c" 1>&6 |
009fead0 | 4983 | echo "configure:4984: checking for --enable-html" >&5 |
3379ed37 VZ |
4984 | no_cache=0 |
4985 | # Check whether --enable-html or --disable-html was given. | |
4986 | if test "${enable_html+set}" = set; then | |
4987 | enableval="$enable_html" | |
4988 | ||
4989 | if test "$enableval" = yes; then | |
4990 | ac_cv_use_html='wxUSE_HTML=yes' | |
4991 | else | |
4992 | ac_cv_use_html='wxUSE_HTML=no' | |
4993 | fi | |
4994 | ||
4995 | else | |
4996 | ||
4997 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
4998 | if test "x$LINE" != x ; then | |
4999 | eval "DEFAULT_$LINE" | |
5000 | else | |
5001 | no_cache=1 | |
5002 | fi | |
5003 | ||
5004 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
5005 | ||
5006 | fi | |
5007 | ||
5008 | ||
5009 | eval "$ac_cv_use_html" | |
5010 | if test "$no_cache" != 1; then | |
5011 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
5012 | fi | |
5013 | ||
5014 | if test "$wxUSE_HTML" = yes; then | |
5015 | echo "$ac_t""yes" 1>&6 | |
5016 | else | |
5017 | echo "$ac_t""no" 1>&6 | |
5018 | fi | |
5019 | ||
5020 | ||
5021 | echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6 | |
009fead0 | 5022 | echo "configure:5023: checking for --enable-htmlhelp" >&5 |
3379ed37 VZ |
5023 | no_cache=0 |
5024 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
5025 | if test "${enable_htmlhelp+set}" = set; then | |
5026 | enableval="$enable_htmlhelp" | |
5027 | ||
5028 | if test "$enableval" = yes; then | |
5029 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
5030 | else | |
5031 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
5032 | fi | |
5033 | ||
5034 | else | |
5035 | ||
5036 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` | |
5037 | if test "x$LINE" != x ; then | |
5038 | eval "DEFAULT_$LINE" | |
5039 | else | |
5040 | no_cache=1 | |
5041 | fi | |
5042 | ||
5043 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
5044 | ||
5045 | fi | |
5046 | ||
5047 | ||
5048 | eval "$ac_cv_use_htmlhelp" | |
5049 | if test "$no_cache" != 1; then | |
5050 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
5051 | fi | |
5052 | ||
5053 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
5054 | echo "$ac_t""yes" 1>&6 | |
5055 | else | |
5056 | echo "$ac_t""no" 1>&6 | |
5057 | fi | |
5058 | ||
5059 | ||
698dcdb6 | 5060 | echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6 |
009fead0 | 5061 | echo "configure:5062: checking for --enable-constraints" >&5 |
10f2d63a VZ |
5062 | no_cache=0 |
5063 | # Check whether --enable-constraints or --disable-constraints was given. | |
5064 | if test "${enable_constraints+set}" = set; then | |
5065 | enableval="$enable_constraints" | |
698dcdb6 | 5066 | |
10f2d63a VZ |
5067 | if test "$enableval" = yes; then |
5068 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
5069 | else | |
5070 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
5071 | fi | |
698dcdb6 | 5072 | |
10f2d63a | 5073 | else |
698dcdb6 | 5074 | |
10f2d63a VZ |
5075 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` |
5076 | if test "x$LINE" != x ; then | |
5077 | eval "DEFAULT_$LINE" | |
5078 | else | |
5079 | no_cache=1 | |
5080 | fi | |
5081 | ||
5082 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
698dcdb6 VZ |
5083 | |
5084 | fi | |
10f2d63a VZ |
5085 | |
5086 | ||
5087 | eval "$ac_cv_use_constraints" | |
5088 | if test "$no_cache" != 1; then | |
5089 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
5090 | fi | |
5091 | ||
5092 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
698dcdb6 | 5093 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5094 | else |
698dcdb6 | 5095 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5096 | fi |
698dcdb6 | 5097 | |
10f2d63a | 5098 | |
698dcdb6 | 5099 | echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6 |
009fead0 | 5100 | echo "configure:5101: checking for --enable-printarch" >&5 |
10f2d63a VZ |
5101 | no_cache=0 |
5102 | # Check whether --enable-printarch or --disable-printarch was given. | |
5103 | if test "${enable_printarch+set}" = set; then | |
5104 | enableval="$enable_printarch" | |
698dcdb6 | 5105 | |
10f2d63a VZ |
5106 | if test "$enableval" = yes; then |
5107 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
5108 | else | |
5109 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
5110 | fi | |
698dcdb6 | 5111 | |
10f2d63a | 5112 | else |
698dcdb6 | 5113 | |
10f2d63a VZ |
5114 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` |
5115 | if test "x$LINE" != x ; then | |
5116 | eval "DEFAULT_$LINE" | |
5117 | else | |
5118 | no_cache=1 | |
5119 | fi | |
5120 | ||
5121 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
698dcdb6 VZ |
5122 | |
5123 | fi | |
10f2d63a VZ |
5124 | |
5125 | ||
5126 | eval "$ac_cv_use_printarch" | |
5127 | if test "$no_cache" != 1; then | |
5128 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
5129 | fi | |
5130 | ||
5131 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
698dcdb6 | 5132 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5133 | else |
698dcdb6 | 5134 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5135 | fi |
698dcdb6 | 5136 | |
10f2d63a | 5137 | |
698dcdb6 | 5138 | echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6 |
009fead0 | 5139 | echo "configure:5140: checking for --enable-mdi" >&5 |
10f2d63a VZ |
5140 | no_cache=0 |
5141 | # Check whether --enable-mdi or --disable-mdi was given. | |
5142 | if test "${enable_mdi+set}" = set; then | |
5143 | enableval="$enable_mdi" | |
698dcdb6 | 5144 | |
10f2d63a VZ |
5145 | if test "$enableval" = yes; then |
5146 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
5147 | else | |
5148 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
5149 | fi | |
698dcdb6 | 5150 | |
10f2d63a | 5151 | else |
698dcdb6 | 5152 | |
10f2d63a VZ |
5153 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` |
5154 | if test "x$LINE" != x ; then | |
5155 | eval "DEFAULT_$LINE" | |
5156 | else | |
5157 | no_cache=1 | |
5158 | fi | |
5159 | ||
5160 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
698dcdb6 VZ |
5161 | |
5162 | fi | |
10f2d63a VZ |
5163 | |
5164 | ||
5165 | eval "$ac_cv_use_mdi" | |
5166 | if test "$no_cache" != 1; then | |
5167 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
5168 | fi | |
5169 | ||
5170 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
698dcdb6 | 5171 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5172 | else |
698dcdb6 | 5173 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5174 | fi |
698dcdb6 VZ |
5175 | |
5176 | ||
1e6feb95 | 5177 | echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6 |
009fead0 | 5178 | echo "configure:5179: checking for --enable-loggui" >&5 |
1e6feb95 VZ |
5179 | no_cache=0 |
5180 | # Check whether --enable-loggui or --disable-loggui was given. | |
5181 | if test "${enable_loggui+set}" = set; then | |
5182 | enableval="$enable_loggui" | |
5183 | ||
5184 | if test "$enableval" = yes; then | |
5185 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
5186 | else | |
5187 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
5188 | fi | |
5189 | ||
5190 | else | |
5191 | ||
5192 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
5193 | if test "x$LINE" != x ; then | |
5194 | eval "DEFAULT_$LINE" | |
5195 | else | |
5196 | no_cache=1 | |
5197 | fi | |
5198 | ||
5199 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
5200 | ||
5201 | fi | |
5202 | ||
5203 | ||
5204 | eval "$ac_cv_use_loggui" | |
5205 | if test "$no_cache" != 1; then | |
5206 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
5207 | fi | |
5208 | ||
5209 | if test "$wxUSE_LOGGUI" = yes; then | |
5210 | echo "$ac_t""yes" 1>&6 | |
5211 | else | |
5212 | echo "$ac_t""no" 1>&6 | |
5213 | fi | |
5214 | ||
5215 | ||
5216 | echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6 | |
009fead0 | 5217 | echo "configure:5218: checking for --enable-logwin" >&5 |
1e6feb95 VZ |
5218 | no_cache=0 |
5219 | # Check whether --enable-logwin or --disable-logwin was given. | |
5220 | if test "${enable_logwin+set}" = set; then | |
5221 | enableval="$enable_logwin" | |
5222 | ||
5223 | if test "$enableval" = yes; then | |
5224 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
5225 | else | |
5226 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
5227 | fi | |
5228 | ||
5229 | else | |
5230 | ||
5231 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
5232 | if test "x$LINE" != x ; then | |
5233 | eval "DEFAULT_$LINE" | |
5234 | else | |
5235 | no_cache=1 | |
5236 | fi | |
5237 | ||
5238 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
5239 | ||
5240 | fi | |
5241 | ||
5242 | ||
5243 | eval "$ac_cv_use_logwin" | |
5244 | if test "$no_cache" != 1; then | |
5245 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
5246 | fi | |
5247 | ||
5248 | if test "$wxUSE_LOGWINDOW" = yes; then | |
5249 | echo "$ac_t""yes" 1>&6 | |
5250 | else | |
5251 | echo "$ac_t""no" 1>&6 | |
5252 | fi | |
5253 | ||
5254 | ||
69d27ff7 | 5255 | echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6 |
009fead0 | 5256 | echo "configure:5257: checking for --enable-logdialog" >&5 |
69d27ff7 MB |
5257 | no_cache=0 |
5258 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
5259 | if test "${enable_logdialog+set}" = set; then | |
5260 | enableval="$enable_logdialog" | |
5261 | ||
5262 | if test "$enableval" = yes; then | |
5263 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
5264 | else | |
5265 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
5266 | fi | |
5267 | ||
5268 | else | |
5269 | ||
5270 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` | |
5271 | if test "x$LINE" != x ; then | |
5272 | eval "DEFAULT_$LINE" | |
5273 | else | |
5274 | no_cache=1 | |
5275 | fi | |
5276 | ||
5277 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
5278 | ||
5279 | fi | |
5280 | ||
5281 | ||
5282 | eval "$ac_cv_use_logdialog" | |
5283 | if test "$no_cache" != 1; then | |
5284 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
5285 | fi | |
5286 | ||
5287 | if test "$wxUSE_LOGDIALOG" = yes; then | |
5288 | echo "$ac_t""yes" 1>&6 | |
5289 | else | |
5290 | echo "$ac_t""no" 1>&6 | |
5291 | fi | |
5292 | ||
5293 | ||
10f2d63a | 5294 | |
698dcdb6 | 5295 | echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6 |
009fead0 | 5296 | echo "configure:5297: checking for --enable-postscript" >&5 |
10f2d63a VZ |
5297 | no_cache=0 |
5298 | # Check whether --enable-postscript or --disable-postscript was given. | |
5299 | if test "${enable_postscript+set}" = set; then | |
5300 | enableval="$enable_postscript" | |
698dcdb6 | 5301 | |
10f2d63a VZ |
5302 | if test "$enableval" = yes; then |
5303 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
5304 | else | |
5305 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
5306 | fi | |
698dcdb6 | 5307 | |
10f2d63a | 5308 | else |
698dcdb6 | 5309 | |
10f2d63a VZ |
5310 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` |
5311 | if test "x$LINE" != x ; then | |
5312 | eval "DEFAULT_$LINE" | |
5313 | else | |
5314 | no_cache=1 | |
5315 | fi | |
5316 | ||
5317 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
698dcdb6 VZ |
5318 | |
5319 | fi | |
10f2d63a VZ |
5320 | |
5321 | ||
5322 | eval "$ac_cv_use_postscript" | |
5323 | if test "$no_cache" != 1; then | |
5324 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
5325 | fi | |
5326 | ||
5327 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
698dcdb6 | 5328 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5329 | else |
698dcdb6 | 5330 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5331 | fi |
698dcdb6 VZ |
5332 | |
5333 | ||
5334 | ||
10f2d63a | 5335 | |
1e6feb95 | 5336 | |
698dcdb6 | 5337 | echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6 |
009fead0 | 5338 | echo "configure:5339: checking for --enable-prologio" >&5 |
10f2d63a VZ |
5339 | no_cache=0 |
5340 | # Check whether --enable-prologio or --disable-prologio was given. | |
5341 | if test "${enable_prologio+set}" = set; then | |
5342 | enableval="$enable_prologio" | |
698dcdb6 | 5343 | |
10f2d63a VZ |
5344 | if test "$enableval" = yes; then |
5345 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
5346 | else | |
5347 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
5348 | fi | |
698dcdb6 | 5349 | |
10f2d63a | 5350 | else |
698dcdb6 | 5351 | |
10f2d63a VZ |
5352 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` |
5353 | if test "x$LINE" != x ; then | |
5354 | eval "DEFAULT_$LINE" | |
5355 | else | |
5356 | no_cache=1 | |
5357 | fi | |
5358 | ||
5359 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
698dcdb6 VZ |
5360 | |
5361 | fi | |
10f2d63a VZ |
5362 | |
5363 | ||
5364 | eval "$ac_cv_use_prologio" | |
5365 | if test "$no_cache" != 1; then | |
5366 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
5367 | fi | |
5368 | ||
5369 | if test "$wxUSE_PROLOGIO" = yes; then | |
698dcdb6 | 5370 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5371 | else |
698dcdb6 | 5372 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5373 | fi |
698dcdb6 | 5374 | |
10f2d63a | 5375 | |
698dcdb6 | 5376 | echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6 |
009fead0 | 5377 | echo "configure:5378: checking for --enable-resources" >&5 |
10f2d63a VZ |
5378 | no_cache=0 |
5379 | # Check whether --enable-resources or --disable-resources was given. | |
5380 | if test "${enable_resources+set}" = set; then | |
5381 | enableval="$enable_resources" | |
698dcdb6 | 5382 | |
10f2d63a VZ |
5383 | if test "$enableval" = yes; then |
5384 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
5385 | else | |
5386 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
5387 | fi | |
698dcdb6 | 5388 | |
10f2d63a | 5389 | else |
698dcdb6 | 5390 | |
10f2d63a VZ |
5391 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` |
5392 | if test "x$LINE" != x ; then | |
5393 | eval "DEFAULT_$LINE" | |
5394 | else | |
5395 | no_cache=1 | |
5396 | fi | |
5397 | ||
5398 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
698dcdb6 VZ |
5399 | |
5400 | fi | |
10f2d63a VZ |
5401 | |
5402 | ||
5403 | eval "$ac_cv_use_resources" | |
5404 | if test "$no_cache" != 1; then | |
5405 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
5406 | fi | |
5407 | ||
5408 | if test "$wxUSE_RESOURCES" = yes; then | |
698dcdb6 | 5409 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5410 | else |
698dcdb6 | 5411 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5412 | fi |
698dcdb6 | 5413 | |
10f2d63a | 5414 | |
698dcdb6 VZ |
5415 | |
5416 | echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6 | |
009fead0 | 5417 | echo "configure:5418: checking for --enable-xresources" >&5 |
10f2d63a VZ |
5418 | no_cache=0 |
5419 | # Check whether --enable-xresources or --disable-xresources was given. | |
5420 | if test "${enable_xresources+set}" = set; then | |
5421 | enableval="$enable_xresources" | |
698dcdb6 | 5422 | |
10f2d63a VZ |
5423 | if test "$enableval" = yes; then |
5424 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
5425 | else | |
5426 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
5427 | fi | |
698dcdb6 | 5428 | |
10f2d63a | 5429 | else |
698dcdb6 | 5430 | |
10f2d63a VZ |
5431 | LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}` |
5432 | if test "x$LINE" != x ; then | |
5433 | eval "DEFAULT_$LINE" | |
5434 | else | |
5435 | no_cache=1 | |
5436 | fi | |
5437 | ||
5438 | ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
698dcdb6 VZ |
5439 | |
5440 | fi | |
10f2d63a VZ |
5441 | |
5442 | ||
5443 | eval "$ac_cv_use_xresources" | |
5444 | if test "$no_cache" != 1; then | |
5445 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
5446 | fi | |
5447 | ||
5448 | if test "$wxUSE_X_RESOURCES" = yes; then | |
698dcdb6 | 5449 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5450 | else |
698dcdb6 | 5451 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5452 | fi |
698dcdb6 VZ |
5453 | |
5454 | ||
10f2d63a | 5455 | |
698dcdb6 VZ |
5456 | |
5457 | echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6 | |
009fead0 | 5458 | echo "configure:5459: checking for --enable-clipboard" >&5 |
10f2d63a VZ |
5459 | no_cache=0 |
5460 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
5461 | if test "${enable_clipboard+set}" = set; then | |
5462 | enableval="$enable_clipboard" | |
698dcdb6 | 5463 | |
10f2d63a VZ |
5464 | if test "$enableval" = yes; then |
5465 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
5466 | else | |
5467 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
5468 | fi | |
698dcdb6 | 5469 | |
10f2d63a | 5470 | else |
698dcdb6 | 5471 | |
10f2d63a VZ |
5472 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` |
5473 | if test "x$LINE" != x ; then | |
5474 | eval "DEFAULT_$LINE" | |
5475 | else | |
5476 | no_cache=1 | |
5477 | fi | |
5478 | ||
5479 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
698dcdb6 VZ |
5480 | |
5481 | fi | |
10f2d63a VZ |
5482 | |
5483 | ||
5484 | eval "$ac_cv_use_clipboard" | |
5485 | if test "$no_cache" != 1; then | |
5486 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
5487 | fi | |
5488 | ||
5489 | if test "$wxUSE_CLIPBOARD" = yes; then | |
698dcdb6 | 5490 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5491 | else |
698dcdb6 | 5492 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5493 | fi |
698dcdb6 | 5494 | |
10f2d63a | 5495 | |
698dcdb6 | 5496 | echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6 |
009fead0 | 5497 | echo "configure:5498: checking for --enable-dnd" >&5 |
10f2d63a VZ |
5498 | no_cache=0 |
5499 | # Check whether --enable-dnd or --disable-dnd was given. | |
5500 | if test "${enable_dnd+set}" = set; then | |
5501 | enableval="$enable_dnd" | |
698dcdb6 | 5502 | |
10f2d63a VZ |
5503 | if test "$enableval" = yes; then |
5504 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
5505 | else | |
5506 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
5507 | fi | |
698dcdb6 | 5508 | |
10f2d63a | 5509 | else |
698dcdb6 | 5510 | |
10f2d63a VZ |
5511 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` |
5512 | if test "x$LINE" != x ; then | |
5513 | eval "DEFAULT_$LINE" | |
5514 | else | |
5515 | no_cache=1 | |
5516 | fi | |
5517 | ||
5518 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
698dcdb6 VZ |
5519 | |
5520 | fi | |
10f2d63a VZ |
5521 | |
5522 | ||
5523 | eval "$ac_cv_use_dnd" | |
5524 | if test "$no_cache" != 1; then | |
5525 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
5526 | fi | |
5527 | ||
5528 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
698dcdb6 | 5529 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5530 | else |
698dcdb6 | 5531 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5532 | fi |
698dcdb6 | 5533 | |
10f2d63a | 5534 | |
698dcdb6 | 5535 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
009fead0 | 5536 | echo "configure:5537: checking for --enable-metafile" >&5 |
b64f0a5f RL |
5537 | no_cache=0 |
5538 | # Check whether --enable-metafile or --disable-metafile was given. | |
5539 | if test "${enable_metafile+set}" = set; then | |
5540 | enableval="$enable_metafile" | |
698dcdb6 | 5541 | |
b64f0a5f RL |
5542 | if test "$enableval" = yes; then |
5543 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
5544 | else | |
5545 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
5546 | fi | |
698dcdb6 | 5547 | |
b64f0a5f | 5548 | else |
698dcdb6 | 5549 | |
b64f0a5f RL |
5550 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
5551 | if test "x$LINE" != x ; then | |
5552 | eval "DEFAULT_$LINE" | |
5553 | else | |
5554 | no_cache=1 | |
5555 | fi | |
5556 | ||
5557 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
698dcdb6 VZ |
5558 | |
5559 | fi | |
b64f0a5f RL |
5560 | |
5561 | ||
5562 | eval "$ac_cv_use_metafile" | |
5563 | if test "$no_cache" != 1; then | |
5564 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
5565 | fi | |
5566 | ||
5567 | if test "$wxUSE_METAFILE" = yes; then | |
698dcdb6 | 5568 | echo "$ac_t""yes" 1>&6 |
b64f0a5f | 5569 | else |
698dcdb6 | 5570 | echo "$ac_t""no" 1>&6 |
b64f0a5f | 5571 | fi |
698dcdb6 VZ |
5572 | |
5573 | ||
10f2d63a | 5574 | |
24176f2c | 5575 | echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6 |
009fead0 | 5576 | echo "configure:5577: checking for --enable-treelayout" >&5 |
10f2d63a | 5577 | no_cache=0 |
24176f2c GD |
5578 | # Check whether --enable-treelayout or --disable-treelayout was given. |
5579 | if test "${enable_treelayout+set}" = set; then | |
5580 | enableval="$enable_treelayout" | |
698dcdb6 | 5581 | |
10f2d63a | 5582 | if test "$enableval" = yes; then |
24176f2c | 5583 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes' |
10f2d63a | 5584 | else |
24176f2c | 5585 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=no' |
10f2d63a | 5586 | fi |
698dcdb6 | 5587 | |
10f2d63a | 5588 | else |
698dcdb6 | 5589 | |
24176f2c | 5590 | LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}` |
10f2d63a VZ |
5591 | if test "x$LINE" != x ; then |
5592 | eval "DEFAULT_$LINE" | |
5593 | else | |
5594 | no_cache=1 | |
5595 | fi | |
5596 | ||
24176f2c | 5597 | ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT |
698dcdb6 VZ |
5598 | |
5599 | fi | |
10f2d63a VZ |
5600 | |
5601 | ||
24176f2c | 5602 | eval "$ac_cv_use_treelayout" |
10f2d63a | 5603 | if test "$no_cache" != 1; then |
24176f2c | 5604 | echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5605 | fi |
5606 | ||
24176f2c | 5607 | if test "$wxUSE_TREELAYOUT" = yes; then |
698dcdb6 | 5608 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5609 | else |
698dcdb6 | 5610 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5611 | fi |
698dcdb6 | 5612 | |
10f2d63a | 5613 | |
698dcdb6 VZ |
5614 | |
5615 | ||
5616 | echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6 | |
009fead0 | 5617 | echo "configure:5618: checking for --enable-controls" >&5 |
10f2d63a VZ |
5618 | no_cache=0 |
5619 | # Check whether --enable-controls or --disable-controls was given. | |
5620 | if test "${enable_controls+set}" = set; then | |
5621 | enableval="$enable_controls" | |
698dcdb6 | 5622 | |
10f2d63a VZ |
5623 | if test "$enableval" = yes; then |
5624 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
5625 | else | |
5626 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
5627 | fi | |
698dcdb6 | 5628 | |
10f2d63a | 5629 | else |
698dcdb6 | 5630 | |
10f2d63a VZ |
5631 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` |
5632 | if test "x$LINE" != x ; then | |
5633 | eval "DEFAULT_$LINE" | |
5634 | else | |
5635 | no_cache=1 | |
5636 | fi | |
5637 | ||
5638 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
698dcdb6 VZ |
5639 | |
5640 | fi | |
10f2d63a VZ |
5641 | |
5642 | ||
5643 | eval "$ac_cv_use_controls" | |
5644 | if test "$no_cache" != 1; then | |
5645 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
5646 | fi | |
5647 | ||
5648 | if test "$wxUSE_CONTROLS" = yes; then | |
698dcdb6 | 5649 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5650 | else |
698dcdb6 | 5651 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5652 | fi |
698dcdb6 | 5653 | |
10f2d63a VZ |
5654 | |
5655 | if test "$wxUSE_CONTROLS" = "yes"; then | |
5656 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 VZ |
5657 | DEFAULT_wxUSE_BMPBUTTON=yes |
5658 | DEFAULT_wxUSE_BUTTON=yes | |
5659 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5660 | DEFAULT_wxUSE_CARET=yes |
5661 | DEFAULT_wxUSE_COMBOBOX=yes | |
10f2d63a VZ |
5662 | DEFAULT_wxUSE_CHECKBOX=yes |
5663 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
5664 | DEFAULT_wxUSE_CHOICE=yes | |
5665 | DEFAULT_wxUSE_GAUGE=yes | |
5666 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 5667 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
5668 | DEFAULT_wxUSE_IMAGLIST=yes |
5669 | DEFAULT_wxUSE_LISTBOX=yes | |
5670 | DEFAULT_wxUSE_LISTCTRL=yes | |
5671 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 5672 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
5673 | DEFAULT_wxUSE_RADIOBOX=yes |
5674 | DEFAULT_wxUSE_RADIOBTN=yes | |
5675 | DEFAULT_wxUSE_SASH=yes | |
5676 | DEFAULT_wxUSE_SCROLLBAR=yes | |
5677 | DEFAULT_wxUSE_SLIDER=yes | |
5678 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 5679 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
5680 | DEFAULT_wxUSE_SPLITTER=yes |
5681 | DEFAULT_wxUSE_STATBMP=yes | |
5682 | DEFAULT_wxUSE_STATBOX=yes | |
5683 | DEFAULT_wxUSE_STATLINE=yes | |
5684 | DEFAULT_wxUSE_STATUSBAR=yes | |
5685 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 5686 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 5687 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
5688 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
5689 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
5690 | DEFAULT_wxUSE_TOOLTIPS=yes |
5691 | DEFAULT_wxUSE_TREECTRL=yes | |
9f41d601 | 5692 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 5693 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
5694 | elif test "$wxUSE_CONTROLS" = "no"; then |
5695 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 VZ |
5696 | DEFAULT_wxUSE_BMPBUTTON=no |
5697 | DEFAULT_wxUSE_BUTTON=no | |
5698 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5699 | DEFAULT_wxUSE_CARET=no |
5700 | DEFAULT_wxUSE_COMBOBOX=no | |
10f2d63a VZ |
5701 | DEFAULT_wxUSE_CHECKBOX=no |
5702 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
5703 | DEFAULT_wxUSE_CHOICE=no | |
5704 | DEFAULT_wxUSE_GAUGE=no | |
5705 | DEFAULT_wxUSE_GRID=no | |
5706 | DEFAULT_wxUSE_NEW_GRID=no | |
5707 | DEFAULT_wxUSE_IMAGLIST=no | |
5708 | DEFAULT_wxUSE_LISTBOX=no | |
5709 | DEFAULT_wxUSE_LISTCTRL=no | |
5710 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 5711 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
5712 | DEFAULT_wxUSE_RADIOBOX=no |
5713 | DEFAULT_wxUSE_RADIOBTN=no | |
5714 | DEFAULT_wxUSE_SASH=no | |
5715 | DEFAULT_wxUSE_SCROLLBAR=no | |
5716 | DEFAULT_wxUSE_SLIDER=no | |
5717 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 5718 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
5719 | DEFAULT_wxUSE_SPLITTER=no |
5720 | DEFAULT_wxUSE_STATBMP=no | |
5721 | DEFAULT_wxUSE_STATBOX=no | |
5722 | DEFAULT_wxUSE_STATLINE=no | |
5723 | DEFAULT_wxUSE_STATUSBAR=no | |
5724 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 5725 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 5726 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
5727 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
5728 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
5729 | DEFAULT_wxUSE_TOOLTIPS=no |
5730 | DEFAULT_wxUSE_TREECTRL=no | |
9f41d601 | 5731 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 5732 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
5733 | fi |
5734 | ||
698dcdb6 VZ |
5735 | |
5736 | echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6 | |
009fead0 | 5737 | echo "configure:5738: checking for --enable-accel" >&5 |
10f2d63a VZ |
5738 | no_cache=0 |
5739 | # Check whether --enable-accel or --disable-accel was given. | |
5740 | if test "${enable_accel+set}" = set; then | |
5741 | enableval="$enable_accel" | |
698dcdb6 | 5742 | |
10f2d63a VZ |
5743 | if test "$enableval" = yes; then |
5744 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
5745 | else | |
5746 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
5747 | fi | |
698dcdb6 | 5748 | |
10f2d63a | 5749 | else |
698dcdb6 | 5750 | |
10f2d63a VZ |
5751 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` |
5752 | if test "x$LINE" != x ; then | |
5753 | eval "DEFAULT_$LINE" | |
5754 | else | |
5755 | no_cache=1 | |
5756 | fi | |
5757 | ||
5758 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
698dcdb6 VZ |
5759 | |
5760 | fi | |
10f2d63a VZ |
5761 | |
5762 | ||
5763 | eval "$ac_cv_use_accel" | |
5764 | if test "$no_cache" != 1; then | |
5765 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
5766 | fi | |
5767 | ||
5768 | if test "$wxUSE_ACCEL" = yes; then | |
698dcdb6 | 5769 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5770 | else |
698dcdb6 | 5771 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5772 | fi |
698dcdb6 | 5773 | |
10f2d63a | 5774 | |
1e6feb95 | 5775 | echo $ac_n "checking for --enable-button""... $ac_c" 1>&6 |
009fead0 | 5776 | echo "configure:5777: checking for --enable-button" >&5 |
10f2d63a | 5777 | no_cache=0 |
1e6feb95 VZ |
5778 | # Check whether --enable-button or --disable-button was given. |
5779 | if test "${enable_button+set}" = set; then | |
5780 | enableval="$enable_button" | |
698dcdb6 | 5781 | |
10f2d63a | 5782 | if test "$enableval" = yes; then |
1e6feb95 | 5783 | ac_cv_use_button='wxUSE_BUTTON=yes' |
10f2d63a | 5784 | else |
1e6feb95 | 5785 | ac_cv_use_button='wxUSE_BUTTON=no' |
10f2d63a | 5786 | fi |
698dcdb6 | 5787 | |
10f2d63a | 5788 | else |
698dcdb6 | 5789 | |
1e6feb95 | 5790 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` |
10f2d63a VZ |
5791 | if test "x$LINE" != x ; then |
5792 | eval "DEFAULT_$LINE" | |
5793 | else | |
5794 | no_cache=1 | |
5795 | fi | |
5796 | ||
1e6feb95 | 5797 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON |
698dcdb6 VZ |
5798 | |
5799 | fi | |
10f2d63a VZ |
5800 | |
5801 | ||
1e6feb95 | 5802 | eval "$ac_cv_use_button" |
10f2d63a | 5803 | if test "$no_cache" != 1; then |
1e6feb95 | 5804 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5805 | fi |
5806 | ||
1e6feb95 | 5807 | if test "$wxUSE_BUTTON" = yes; then |
698dcdb6 | 5808 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5809 | else |
698dcdb6 | 5810 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5811 | fi |
698dcdb6 | 5812 | |
10f2d63a | 5813 | |
698dcdb6 | 5814 | echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6 |
009fead0 | 5815 | echo "configure:5816: checking for --enable-bmpbutton" >&5 |
10f2d63a VZ |
5816 | no_cache=0 |
5817 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
5818 | if test "${enable_bmpbutton+set}" = set; then | |
5819 | enableval="$enable_bmpbutton" | |
698dcdb6 | 5820 | |
10f2d63a VZ |
5821 | if test "$enableval" = yes; then |
5822 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
5823 | else | |
5824 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
5825 | fi | |
698dcdb6 | 5826 | |
10f2d63a | 5827 | else |
698dcdb6 | 5828 | |
10f2d63a VZ |
5829 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` |
5830 | if test "x$LINE" != x ; then | |
5831 | eval "DEFAULT_$LINE" | |
5832 | else | |
5833 | no_cache=1 | |
5834 | fi | |
5835 | ||
5836 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
698dcdb6 VZ |
5837 | |
5838 | fi | |
10f2d63a VZ |
5839 | |
5840 | ||
5841 | eval "$ac_cv_use_bmpbutton" | |
5842 | if test "$no_cache" != 1; then | |
5843 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
5844 | fi | |
5845 | ||
5846 | if test "$wxUSE_BMPBUTTON" = yes; then | |
698dcdb6 | 5847 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5848 | else |
698dcdb6 | 5849 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5850 | fi |
698dcdb6 | 5851 | |
10f2d63a | 5852 | |
1e6feb95 | 5853 | echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6 |
009fead0 | 5854 | echo "configure:5855: checking for --enable-calendar" >&5 |
1e6feb95 VZ |
5855 | no_cache=0 |
5856 | # Check whether --enable-calendar or --disable-calendar was given. | |
5857 | if test "${enable_calendar+set}" = set; then | |
5858 | enableval="$enable_calendar" | |
5859 | ||
5860 | if test "$enableval" = yes; then | |
5861 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
5862 | else | |
5863 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
5864 | fi | |
5865 | ||
5866 | else | |
5867 | ||
5868 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
5869 | if test "x$LINE" != x ; then | |
5870 | eval "DEFAULT_$LINE" | |
5871 | else | |
5872 | no_cache=1 | |
5873 | fi | |
5874 | ||
5875 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
5876 | ||
5877 | fi | |
5878 | ||
5879 | ||
5880 | eval "$ac_cv_use_calendar" | |
5881 | if test "$no_cache" != 1; then | |
5882 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
5883 | fi | |
5884 | ||
5885 | if test "$wxUSE_CALCTRL" = yes; then | |
5886 | echo "$ac_t""yes" 1>&6 | |
5887 | else | |
5888 | echo "$ac_t""no" 1>&6 | |
5889 | fi | |
5890 | ||
5891 | ||
5892 | echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6 | |
009fead0 | 5893 | echo "configure:5894: checking for --enable-caret" >&5 |
1e6feb95 VZ |
5894 | no_cache=0 |
5895 | # Check whether --enable-caret or --disable-caret was given. | |
5896 | if test "${enable_caret+set}" = set; then | |
5897 | enableval="$enable_caret" | |
5898 | ||
5899 | if test "$enableval" = yes; then | |
5900 | ac_cv_use_caret='wxUSE_CARET=yes' | |
5901 | else | |
5902 | ac_cv_use_caret='wxUSE_CARET=no' | |
5903 | fi | |
5904 | ||
5905 | else | |
5906 | ||
5907 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
5908 | if test "x$LINE" != x ; then | |
5909 | eval "DEFAULT_$LINE" | |
5910 | else | |
5911 | no_cache=1 | |
5912 | fi | |
5913 | ||
5914 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
5915 | ||
5916 | fi | |
5917 | ||
5918 | ||
5919 | eval "$ac_cv_use_caret" | |
5920 | if test "$no_cache" != 1; then | |
5921 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
5922 | fi | |
5923 | ||
5924 | if test "$wxUSE_CARET" = yes; then | |
5925 | echo "$ac_t""yes" 1>&6 | |
5926 | else | |
5927 | echo "$ac_t""no" 1>&6 | |
5928 | fi | |
5929 | ||
5930 | ||
698dcdb6 | 5931 | echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6 |
009fead0 | 5932 | echo "configure:5933: checking for --enable-checkbox" >&5 |
10f2d63a VZ |
5933 | no_cache=0 |
5934 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
5935 | if test "${enable_checkbox+set}" = set; then | |
5936 | enableval="$enable_checkbox" | |
698dcdb6 | 5937 | |
10f2d63a VZ |
5938 | if test "$enableval" = yes; then |
5939 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
5940 | else | |
5941 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
5942 | fi | |
698dcdb6 | 5943 | |
10f2d63a | 5944 | else |
698dcdb6 | 5945 | |
10f2d63a VZ |
5946 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` |
5947 | if test "x$LINE" != x ; then | |
5948 | eval "DEFAULT_$LINE" | |
5949 | else | |
5950 | no_cache=1 | |
5951 | fi | |
5952 | ||
5953 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
698dcdb6 VZ |
5954 | |
5955 | fi | |
10f2d63a VZ |
5956 | |
5957 | ||
5958 | eval "$ac_cv_use_checkbox" | |
5959 | if test "$no_cache" != 1; then | |
5960 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
5961 | fi | |
5962 | ||
5963 | if test "$wxUSE_CHECKBOX" = yes; then | |
698dcdb6 | 5964 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5965 | else |
698dcdb6 | 5966 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5967 | fi |
698dcdb6 | 5968 | |
10f2d63a | 5969 | |
698dcdb6 | 5970 | echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6 |
009fead0 | 5971 | echo "configure:5972: checking for --enable-checklst" >&5 |
10f2d63a VZ |
5972 | no_cache=0 |
5973 | # Check whether --enable-checklst or --disable-checklst was given. | |
5974 | if test "${enable_checklst+set}" = set; then | |
5975 | enableval="$enable_checklst" | |
698dcdb6 | 5976 | |
10f2d63a VZ |
5977 | if test "$enableval" = yes; then |
5978 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
5979 | else | |
5980 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
5981 | fi | |
698dcdb6 | 5982 | |
10f2d63a | 5983 | else |
698dcdb6 | 5984 | |
10f2d63a VZ |
5985 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` |
5986 | if test "x$LINE" != x ; then | |
5987 | eval "DEFAULT_$LINE" | |
5988 | else | |
5989 | no_cache=1 | |
5990 | fi | |
5991 | ||
5992 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
698dcdb6 VZ |
5993 | |
5994 | fi | |
10f2d63a VZ |
5995 | |
5996 | ||
5997 | eval "$ac_cv_use_checklst" | |
5998 | if test "$no_cache" != 1; then | |
5999 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
6000 | fi | |
6001 | ||
6002 | if test "$wxUSE_CHECKLST" = yes; then | |
698dcdb6 | 6003 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6004 | else |
698dcdb6 | 6005 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6006 | fi |
698dcdb6 | 6007 | |
10f2d63a | 6008 | |
698dcdb6 | 6009 | echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6 |
009fead0 | 6010 | echo "configure:6011: checking for --enable-choice" >&5 |
10f2d63a VZ |
6011 | no_cache=0 |
6012 | # Check whether --enable-choice or --disable-choice was given. | |
6013 | if test "${enable_choice+set}" = set; then | |
6014 | enableval="$enable_choice" | |
698dcdb6 | 6015 | |
10f2d63a VZ |
6016 | if test "$enableval" = yes; then |
6017 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
6018 | else | |
6019 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
6020 | fi | |
698dcdb6 | 6021 | |
10f2d63a | 6022 | else |
698dcdb6 | 6023 | |
10f2d63a VZ |
6024 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` |
6025 | if test "x$LINE" != x ; then | |
6026 | eval "DEFAULT_$LINE" | |
6027 | else | |
6028 | no_cache=1 | |
6029 | fi | |
6030 | ||
6031 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
698dcdb6 VZ |
6032 | |
6033 | fi | |
10f2d63a VZ |
6034 | |
6035 | ||
6036 | eval "$ac_cv_use_choice" | |
6037 | if test "$no_cache" != 1; then | |
6038 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
6039 | fi | |
6040 | ||
6041 | if test "$wxUSE_CHOICE" = yes; then | |
698dcdb6 | 6042 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6043 | else |
698dcdb6 | 6044 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6045 | fi |
698dcdb6 | 6046 | |
10f2d63a | 6047 | |
698dcdb6 | 6048 | echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6 |
009fead0 | 6049 | echo "configure:6050: checking for --enable-combobox" >&5 |
10f2d63a VZ |
6050 | no_cache=0 |
6051 | # Check whether --enable-combobox or --disable-combobox was given. | |
6052 | if test "${enable_combobox+set}" = set; then | |
6053 | enableval="$enable_combobox" | |
698dcdb6 | 6054 | |
10f2d63a VZ |
6055 | if test "$enableval" = yes; then |
6056 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
6057 | else | |
6058 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
6059 | fi | |
698dcdb6 | 6060 | |
10f2d63a | 6061 | else |
698dcdb6 | 6062 | |
10f2d63a VZ |
6063 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` |
6064 | if test "x$LINE" != x ; then | |
6065 | eval "DEFAULT_$LINE" | |
6066 | else | |
6067 | no_cache=1 | |
6068 | fi | |
6069 | ||
6070 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
698dcdb6 VZ |
6071 | |
6072 | fi | |
10f2d63a VZ |
6073 | |
6074 | ||
6075 | eval "$ac_cv_use_combobox" | |
6076 | if test "$no_cache" != 1; then | |
6077 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
6078 | fi | |
6079 | ||
6080 | if test "$wxUSE_COMBOBOX" = yes; then | |
698dcdb6 | 6081 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6082 | else |
698dcdb6 | 6083 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6084 | fi |
698dcdb6 | 6085 | |
10f2d63a | 6086 | |
698dcdb6 | 6087 | echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6 |
009fead0 | 6088 | echo "configure:6089: checking for --enable-gauge" >&5 |
10f2d63a VZ |
6089 | no_cache=0 |
6090 | # Check whether --enable-gauge or --disable-gauge was given. | |
6091 | if test "${enable_gauge+set}" = set; then | |
6092 | enableval="$enable_gauge" | |
698dcdb6 | 6093 | |
10f2d63a VZ |
6094 | if test "$enableval" = yes; then |
6095 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
6096 | else | |
6097 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
6098 | fi | |
698dcdb6 | 6099 | |
10f2d63a | 6100 | else |
698dcdb6 | 6101 | |
10f2d63a VZ |
6102 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` |
6103 | if test "x$LINE" != x ; then | |
6104 | eval "DEFAULT_$LINE" | |
6105 | else | |
6106 | no_cache=1 | |
6107 | fi | |
6108 | ||
6109 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
698dcdb6 VZ |
6110 | |
6111 | fi | |
10f2d63a VZ |
6112 | |
6113 | ||
6114 | eval "$ac_cv_use_gauge" | |
6115 | if test "$no_cache" != 1; then | |
6116 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
6117 | fi | |
6118 | ||
6119 | if test "$wxUSE_GAUGE" = yes; then | |
698dcdb6 | 6120 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6121 | else |
698dcdb6 | 6122 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6123 | fi |
698dcdb6 | 6124 | |
10f2d63a | 6125 | |
698dcdb6 | 6126 | echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6 |
009fead0 | 6127 | echo "configure:6128: checking for --enable-grid" >&5 |
10f2d63a VZ |
6128 | no_cache=0 |
6129 | # Check whether --enable-grid or --disable-grid was given. | |
6130 | if test "${enable_grid+set}" = set; then | |
6131 | enableval="$enable_grid" | |
698dcdb6 | 6132 | |
10f2d63a VZ |
6133 | if test "$enableval" = yes; then |
6134 | ac_cv_use_grid='wxUSE_GRID=yes' | |
6135 | else | |
6136 | ac_cv_use_grid='wxUSE_GRID=no' | |
6137 | fi | |
698dcdb6 | 6138 | |
10f2d63a | 6139 | else |
698dcdb6 | 6140 | |
10f2d63a VZ |
6141 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` |
6142 | if test "x$LINE" != x ; then | |
6143 | eval "DEFAULT_$LINE" | |
6144 | else | |
6145 | no_cache=1 | |
6146 | fi | |
6147 | ||
6148 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
698dcdb6 VZ |
6149 | |
6150 | fi | |
10f2d63a VZ |
6151 | |
6152 | ||
6153 | eval "$ac_cv_use_grid" | |
6154 | if test "$no_cache" != 1; then | |
6155 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
6156 | fi | |
6157 | ||
6158 | if test "$wxUSE_GRID" = yes; then | |
698dcdb6 | 6159 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6160 | else |
698dcdb6 | 6161 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6162 | fi |
698dcdb6 | 6163 | |
10f2d63a | 6164 | |
698dcdb6 | 6165 | echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6 |
009fead0 | 6166 | echo "configure:6167: checking for --enable-newgrid" >&5 |
10f2d63a VZ |
6167 | no_cache=0 |
6168 | # Check whether --enable-newgrid or --disable-newgrid was given. | |
6169 | if test "${enable_newgrid+set}" = set; then | |
6170 | enableval="$enable_newgrid" | |
698dcdb6 | 6171 | |
10f2d63a VZ |
6172 | if test "$enableval" = yes; then |
6173 | ac_cv_use_newgrid='wxUSE_NEW_GRID=yes' | |
6174 | else | |
6175 | ac_cv_use_newgrid='wxUSE_NEW_GRID=no' | |
6176 | fi | |
698dcdb6 | 6177 | |
10f2d63a | 6178 | else |
698dcdb6 | 6179 | |
10f2d63a VZ |
6180 | LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}` |
6181 | if test "x$LINE" != x ; then | |
6182 | eval "DEFAULT_$LINE" | |
6183 | else | |
6184 | no_cache=1 | |
6185 | fi | |
6186 | ||
6187 | ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID | |
698dcdb6 VZ |
6188 | |
6189 | fi | |
10f2d63a VZ |
6190 | |
6191 | ||
6192 | eval "$ac_cv_use_newgrid" | |
6193 | if test "$no_cache" != 1; then | |
6194 | echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp | |
6195 | fi | |
6196 | ||
6197 | if test "$wxUSE_NEW_GRID" = yes; then | |
698dcdb6 | 6198 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6199 | else |
698dcdb6 | 6200 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6201 | fi |
698dcdb6 | 6202 | |
10f2d63a | 6203 | |
698dcdb6 | 6204 | echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6 |
009fead0 | 6205 | echo "configure:6206: checking for --enable-imaglist" >&5 |
10f2d63a VZ |
6206 | no_cache=0 |
6207 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
6208 | if test "${enable_imaglist+set}" = set; then | |
6209 | enableval="$enable_imaglist" | |
698dcdb6 | 6210 | |
10f2d63a VZ |
6211 | if test "$enableval" = yes; then |
6212 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
6213 | else | |
6214 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
6215 | fi | |
698dcdb6 | 6216 | |
10f2d63a | 6217 | else |
698dcdb6 | 6218 | |
10f2d63a VZ |
6219 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` |
6220 | if test "x$LINE" != x ; then | |
6221 | eval "DEFAULT_$LINE" | |
6222 | else | |
6223 | no_cache=1 | |
6224 | fi | |
6225 | ||
6226 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
698dcdb6 VZ |
6227 | |
6228 | fi | |
10f2d63a VZ |
6229 | |
6230 | ||
6231 | eval "$ac_cv_use_imaglist" | |
6232 | if test "$no_cache" != 1; then | |
6233 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
6234 | fi | |
6235 | ||
6236 | if test "$wxUSE_IMAGLIST" = yes; then | |
698dcdb6 | 6237 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6238 | else |
698dcdb6 | 6239 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6240 | fi |
698dcdb6 | 6241 | |
10f2d63a | 6242 | |
698dcdb6 | 6243 | echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6 |
009fead0 | 6244 | echo "configure:6245: checking for --enable-listbox" >&5 |
10f2d63a VZ |
6245 | no_cache=0 |
6246 | # Check whether --enable-listbox or --disable-listbox was given. | |
6247 | if test "${enable_listbox+set}" = set; then | |
6248 | enableval="$enable_listbox" | |
698dcdb6 | 6249 | |
10f2d63a VZ |
6250 | if test "$enableval" = yes; then |
6251 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
6252 | else | |
6253 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
6254 | fi | |
698dcdb6 | 6255 | |
10f2d63a | 6256 | else |
698dcdb6 | 6257 | |
10f2d63a VZ |
6258 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` |
6259 | if test "x$LINE" != x ; then | |
6260 | eval "DEFAULT_$LINE" | |
6261 | else | |
6262 | no_cache=1 | |
6263 | fi | |
6264 | ||
6265 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
698dcdb6 VZ |
6266 | |
6267 | fi | |
10f2d63a VZ |
6268 | |
6269 | ||
6270 | eval "$ac_cv_use_listbox" | |
6271 | if test "$no_cache" != 1; then | |
6272 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
6273 | fi | |
6274 | ||
6275 | if test "$wxUSE_LISTBOX" = yes; then | |
698dcdb6 | 6276 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6277 | else |
698dcdb6 | 6278 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6279 | fi |
698dcdb6 | 6280 | |
10f2d63a | 6281 | |
698dcdb6 | 6282 | echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6 |
009fead0 | 6283 | echo "configure:6284: checking for --enable-listctrl" >&5 |
10f2d63a VZ |
6284 | no_cache=0 |
6285 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
6286 | if test "${enable_listctrl+set}" = set; then | |
6287 | enableval="$enable_listctrl" | |
698dcdb6 | 6288 | |
10f2d63a VZ |
6289 | if test "$enableval" = yes; then |
6290 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
6291 | else | |
6292 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
6293 | fi | |
698dcdb6 | 6294 | |
10f2d63a | 6295 | else |
698dcdb6 | 6296 | |
10f2d63a VZ |
6297 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` |
6298 | if test "x$LINE" != x ; then | |
6299 | eval "DEFAULT_$LINE" | |
6300 | else | |
6301 | no_cache=1 | |
6302 | fi | |
6303 | ||
6304 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
698dcdb6 VZ |
6305 | |
6306 | fi | |
10f2d63a VZ |
6307 | |
6308 | ||
6309 | eval "$ac_cv_use_listctrl" | |
6310 | if test "$no_cache" != 1; then | |
6311 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
6312 | fi | |
6313 | ||
6314 | if test "$wxUSE_LISTCTRL" = yes; then | |
698dcdb6 | 6315 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6316 | else |
698dcdb6 | 6317 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6318 | fi |
698dcdb6 | 6319 | |
10f2d63a | 6320 | |
698dcdb6 | 6321 | echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6 |
009fead0 | 6322 | echo "configure:6323: checking for --enable-notebook" >&5 |
10f2d63a VZ |
6323 | no_cache=0 |
6324 | # Check whether --enable-notebook or --disable-notebook was given. | |
6325 | if test "${enable_notebook+set}" = set; then | |
6326 | enableval="$enable_notebook" | |
698dcdb6 | 6327 | |
10f2d63a VZ |
6328 | if test "$enableval" = yes; then |
6329 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
6330 | else | |
6331 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
6332 | fi | |
698dcdb6 | 6333 | |
10f2d63a | 6334 | else |
698dcdb6 | 6335 | |
10f2d63a VZ |
6336 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` |
6337 | if test "x$LINE" != x ; then | |
6338 | eval "DEFAULT_$LINE" | |
6339 | else | |
6340 | no_cache=1 | |
6341 | fi | |
6342 | ||
6343 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
698dcdb6 VZ |
6344 | |
6345 | fi | |
10f2d63a VZ |
6346 | |
6347 | ||
6348 | eval "$ac_cv_use_notebook" | |
6349 | if test "$no_cache" != 1; then | |
6350 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
6351 | fi | |
6352 | ||
6353 | if test "$wxUSE_NOTEBOOK" = yes; then | |
698dcdb6 | 6354 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6355 | else |
698dcdb6 | 6356 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6357 | fi |
698dcdb6 | 6358 | |
10f2d63a | 6359 | |
24176f2c | 6360 | echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6 |
009fead0 | 6361 | echo "configure:6362: checking for --enable-propsheet" >&5 |
24176f2c GD |
6362 | no_cache=0 |
6363 | # Check whether --enable-propsheet or --disable-propsheet was given. | |
6364 | if test "${enable_propsheet+set}" = set; then | |
6365 | enableval="$enable_propsheet" | |
6366 | ||
6367 | if test "$enableval" = yes; then | |
6368 | ac_cv_use_propsheet='wxUSE_PROPSHEET=yes' | |
6369 | else | |
6370 | ac_cv_use_propsheet='wxUSE_PROPSHEET=no' | |
6371 | fi | |
6372 | ||
6373 | else | |
6374 | ||
6375 | LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}` | |
6376 | if test "x$LINE" != x ; then | |
6377 | eval "DEFAULT_$LINE" | |
6378 | else | |
6379 | no_cache=1 | |
6380 | fi | |
6381 | ||
6382 | ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET | |
6383 | ||
6384 | fi | |
6385 | ||
6386 | ||
6387 | eval "$ac_cv_use_propsheet" | |
6388 | if test "$no_cache" != 1; then | |
6389 | echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp | |
6390 | fi | |
6391 | ||
6392 | if test "$wxUSE_PROPSHEET" = yes; then | |
6393 | echo "$ac_t""yes" 1>&6 | |
6394 | else | |
6395 | echo "$ac_t""no" 1>&6 | |
6396 | fi | |
6397 | ||
6398 | ||
698dcdb6 | 6399 | echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6 |
009fead0 | 6400 | echo "configure:6401: checking for --enable-radiobox" >&5 |
10f2d63a VZ |
6401 | no_cache=0 |
6402 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
6403 | if test "${enable_radiobox+set}" = set; then | |
6404 | enableval="$enable_radiobox" | |
698dcdb6 | 6405 | |
10f2d63a VZ |
6406 | if test "$enableval" = yes; then |
6407 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
6408 | else | |
6409 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
6410 | fi | |
698dcdb6 | 6411 | |
10f2d63a | 6412 | else |
698dcdb6 | 6413 | |
10f2d63a VZ |
6414 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` |
6415 | if test "x$LINE" != x ; then | |
6416 | eval "DEFAULT_$LINE" | |
6417 | else | |
6418 | no_cache=1 | |
6419 | fi | |
6420 | ||
6421 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
698dcdb6 VZ |
6422 | |
6423 | fi | |
10f2d63a VZ |
6424 | |
6425 | ||
6426 | eval "$ac_cv_use_radiobox" | |
6427 | if test "$no_cache" != 1; then | |
6428 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
6429 | fi | |
6430 | ||
6431 | if test "$wxUSE_RADIOBOX" = yes; then | |
698dcdb6 | 6432 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6433 | else |
698dcdb6 | 6434 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6435 | fi |
698dcdb6 | 6436 | |
10f2d63a | 6437 | |
698dcdb6 | 6438 | echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6 |
009fead0 | 6439 | echo "configure:6440: checking for --enable-radiobtn" >&5 |
10f2d63a VZ |
6440 | no_cache=0 |
6441 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
6442 | if test "${enable_radiobtn+set}" = set; then | |
6443 | enableval="$enable_radiobtn" | |
698dcdb6 | 6444 | |
10f2d63a VZ |
6445 | if test "$enableval" = yes; then |
6446 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
6447 | else | |
6448 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
6449 | fi | |
698dcdb6 | 6450 | |
10f2d63a | 6451 | else |
698dcdb6 | 6452 | |
10f2d63a VZ |
6453 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` |
6454 | if test "x$LINE" != x ; then | |
6455 | eval "DEFAULT_$LINE" | |
6456 | else | |
6457 | no_cache=1 | |
6458 | fi | |
6459 | ||
6460 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
698dcdb6 VZ |
6461 | |
6462 | fi | |
10f2d63a VZ |
6463 | |
6464 | ||
6465 | eval "$ac_cv_use_radiobtn" | |
6466 | if test "$no_cache" != 1; then | |
6467 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
6468 | fi | |
6469 | ||
6470 | if test "$wxUSE_RADIOBTN" = yes; then | |
698dcdb6 | 6471 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6472 | else |
698dcdb6 | 6473 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6474 | fi |
698dcdb6 | 6475 | |
10f2d63a | 6476 | |
698dcdb6 | 6477 | echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6 |
009fead0 | 6478 | echo "configure:6479: checking for --enable-sash" >&5 |
10f2d63a VZ |
6479 | no_cache=0 |
6480 | # Check whether --enable-sash or --disable-sash was given. | |
6481 | if test "${enable_sash+set}" = set; then | |
6482 | enableval="$enable_sash" | |
698dcdb6 | 6483 | |
10f2d63a VZ |
6484 | if test "$enableval" = yes; then |
6485 | ac_cv_use_sash='wxUSE_SASH=yes' | |
6486 | else | |
6487 | ac_cv_use_sash='wxUSE_SASH=no' | |
6488 | fi | |
698dcdb6 | 6489 | |
10f2d63a | 6490 | else |
698dcdb6 | 6491 | |
10f2d63a VZ |
6492 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` |
6493 | if test "x$LINE" != x ; then | |
6494 | eval "DEFAULT_$LINE" | |
6495 | else | |
6496 | no_cache=1 | |
6497 | fi | |
6498 | ||
6499 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
698dcdb6 VZ |
6500 | |
6501 | fi | |
10f2d63a VZ |
6502 | |
6503 | ||
6504 | eval "$ac_cv_use_sash" | |
6505 | if test "$no_cache" != 1; then | |
6506 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
6507 | fi | |
6508 | ||
6509 | if test "$wxUSE_SASH" = yes; then | |
698dcdb6 | 6510 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6511 | else |
698dcdb6 | 6512 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6513 | fi |
698dcdb6 | 6514 | |
10f2d63a | 6515 | |
698dcdb6 | 6516 | echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6 |
009fead0 | 6517 | echo "configure:6518: checking for --enable-scrollbar" >&5 |
10f2d63a VZ |
6518 | no_cache=0 |
6519 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
6520 | if test "${enable_scrollbar+set}" = set; then | |
6521 | enableval="$enable_scrollbar" | |
698dcdb6 | 6522 | |
10f2d63a VZ |
6523 | if test "$enableval" = yes; then |
6524 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
6525 | else | |
6526 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
6527 | fi | |
698dcdb6 | 6528 | |
10f2d63a | 6529 | else |
698dcdb6 | 6530 | |
10f2d63a VZ |
6531 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` |
6532 | if test "x$LINE" != x ; then | |
6533 | eval "DEFAULT_$LINE" | |
6534 | else | |
6535 | no_cache=1 | |
6536 | fi | |
6537 | ||
6538 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
698dcdb6 VZ |
6539 | |
6540 | fi | |
10f2d63a VZ |
6541 | |
6542 | ||
6543 | eval "$ac_cv_use_scrollbar" | |
6544 | if test "$no_cache" != 1; then | |
6545 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
6546 | fi | |
6547 | ||
6548 | if test "$wxUSE_SCROLLBAR" = yes; then | |
698dcdb6 | 6549 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6550 | else |
698dcdb6 | 6551 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6552 | fi |
698dcdb6 | 6553 | |
10f2d63a | 6554 | |
698dcdb6 | 6555 | echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6 |
009fead0 | 6556 | echo "configure:6557: checking for --enable-slider" >&5 |
10f2d63a VZ |
6557 | no_cache=0 |
6558 | # Check whether --enable-slider or --disable-slider was given. | |
6559 | if test "${enable_slider+set}" = set; then | |
6560 | enableval="$enable_slider" | |
698dcdb6 | 6561 | |
10f2d63a VZ |
6562 | if test "$enableval" = yes; then |
6563 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
6564 | else | |
6565 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
6566 | fi | |
698dcdb6 | 6567 | |
10f2d63a | 6568 | else |
698dcdb6 | 6569 | |
10f2d63a VZ |
6570 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` |
6571 | if test "x$LINE" != x ; then | |
6572 | eval "DEFAULT_$LINE" | |
6573 | else | |
6574 | no_cache=1 | |
6575 | fi | |
6576 | ||
6577 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
698dcdb6 VZ |
6578 | |
6579 | fi | |
10f2d63a VZ |
6580 | |
6581 | ||
6582 | eval "$ac_cv_use_slider" | |
6583 | if test "$no_cache" != 1; then | |
6584 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
6585 | fi | |
6586 | ||
6587 | if test "$wxUSE_SLIDER" = yes; then | |
698dcdb6 | 6588 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6589 | else |
698dcdb6 | 6590 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6591 | fi |
698dcdb6 | 6592 | |
10f2d63a | 6593 | |
698dcdb6 | 6594 | echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6 |
009fead0 | 6595 | echo "configure:6596: checking for --enable-spinbtn" >&5 |
10f2d63a VZ |
6596 | no_cache=0 |
6597 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
6598 | if test "${enable_spinbtn+set}" = set; then | |
6599 | enableval="$enable_spinbtn" | |
698dcdb6 | 6600 | |
10f2d63a VZ |
6601 | if test "$enableval" = yes; then |
6602 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
6603 | else | |
6604 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
6605 | fi | |
698dcdb6 | 6606 | |
10f2d63a | 6607 | else |
698dcdb6 | 6608 | |
10f2d63a VZ |
6609 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` |
6610 | if test "x$LINE" != x ; then | |
6611 | eval "DEFAULT_$LINE" | |
6612 | else | |
6613 | no_cache=1 | |
6614 | fi | |
6615 | ||
6616 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
698dcdb6 VZ |
6617 | |
6618 | fi | |
10f2d63a VZ |
6619 | |
6620 | ||
6621 | eval "$ac_cv_use_spinbtn" | |
6622 | if test "$no_cache" != 1; then | |
6623 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
6624 | fi | |
6625 | ||
6626 | if test "$wxUSE_SPINBTN" = yes; then | |
698dcdb6 | 6627 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6628 | else |
698dcdb6 | 6629 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6630 | fi |
698dcdb6 | 6631 | |
10f2d63a | 6632 | |
698dcdb6 | 6633 | echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6 |
009fead0 | 6634 | echo "configure:6635: checking for --enable-spinctrl" >&5 |
56cfaa52 RR |
6635 | no_cache=0 |
6636 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
6637 | if test "${enable_spinctrl+set}" = set; then | |
6638 | enableval="$enable_spinctrl" | |
698dcdb6 | 6639 | |
56cfaa52 RR |
6640 | if test "$enableval" = yes; then |
6641 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
6642 | else | |
6643 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
6644 | fi | |
698dcdb6 | 6645 | |
56cfaa52 | 6646 | else |
698dcdb6 | 6647 | |
56cfaa52 RR |
6648 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` |
6649 | if test "x$LINE" != x ; then | |
6650 | eval "DEFAULT_$LINE" | |
6651 | else | |
6652 | no_cache=1 | |
6653 | fi | |
6654 | ||
6655 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
698dcdb6 VZ |
6656 | |
6657 | fi | |
56cfaa52 RR |
6658 | |
6659 | ||
6660 | eval "$ac_cv_use_spinctrl" | |
6661 | if test "$no_cache" != 1; then | |
6662 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
6663 | fi | |
6664 | ||
6665 | if test "$wxUSE_SPINCTRL" = yes; then | |
698dcdb6 | 6666 | echo "$ac_t""yes" 1>&6 |
56cfaa52 | 6667 | else |
698dcdb6 | 6668 | echo "$ac_t""no" 1>&6 |
56cfaa52 | 6669 | fi |
698dcdb6 | 6670 | |
56cfaa52 | 6671 | |
698dcdb6 | 6672 | echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6 |
009fead0 | 6673 | echo "configure:6674: checking for --enable-splitter" >&5 |
10f2d63a VZ |
6674 | no_cache=0 |
6675 | # Check whether --enable-splitter or --disable-splitter was given. | |
6676 | if test "${enable_splitter+set}" = set; then | |
6677 | enableval="$enable_splitter" | |
698dcdb6 | 6678 | |
10f2d63a VZ |
6679 | if test "$enableval" = yes; then |
6680 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
6681 | else | |
6682 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
6683 | fi | |
698dcdb6 | 6684 | |
10f2d63a | 6685 | else |
698dcdb6 | 6686 | |
10f2d63a VZ |
6687 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` |
6688 | if test "x$LINE" != x ; then | |
6689 | eval "DEFAULT_$LINE" | |
6690 | else | |
6691 | no_cache=1 | |
6692 | fi | |
6693 | ||
6694 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
698dcdb6 VZ |
6695 | |
6696 | fi | |
10f2d63a VZ |
6697 | |
6698 | ||
6699 | eval "$ac_cv_use_splitter" | |
6700 | if test "$no_cache" != 1; then | |
6701 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
6702 | fi | |
6703 | ||
6704 | if test "$wxUSE_SPLITTER" = yes; then | |
698dcdb6 | 6705 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6706 | else |
698dcdb6 | 6707 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6708 | fi |
698dcdb6 | 6709 | |
10f2d63a | 6710 | |
698dcdb6 | 6711 | echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6 |
009fead0 | 6712 | echo "configure:6713: checking for --enable-statbmp" >&5 |
10f2d63a VZ |
6713 | no_cache=0 |
6714 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
6715 | if test "${enable_statbmp+set}" = set; then | |
6716 | enableval="$enable_statbmp" | |
698dcdb6 | 6717 | |
10f2d63a VZ |
6718 | if test "$enableval" = yes; then |
6719 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
6720 | else | |
6721 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
6722 | fi | |
698dcdb6 | 6723 | |
10f2d63a | 6724 | else |
698dcdb6 | 6725 | |
10f2d63a VZ |
6726 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` |
6727 | if test "x$LINE" != x ; then | |
6728 | eval "DEFAULT_$LINE" | |
6729 | else | |
6730 | no_cache=1 | |
6731 | fi | |
6732 | ||
6733 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
698dcdb6 VZ |
6734 | |
6735 | fi | |
10f2d63a VZ |
6736 | |
6737 | ||
6738 | eval "$ac_cv_use_statbmp" | |
6739 | if test "$no_cache" != 1; then | |
6740 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
6741 | fi | |
6742 | ||
6743 | if test "$wxUSE_STATBMP" = yes; then | |
698dcdb6 | 6744 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6745 | else |
698dcdb6 | 6746 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6747 | fi |
698dcdb6 | 6748 | |
10f2d63a | 6749 | |
698dcdb6 | 6750 | echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6 |
009fead0 | 6751 | echo "configure:6752: checking for --enable-statbox" >&5 |
10f2d63a VZ |
6752 | no_cache=0 |
6753 | # Check whether --enable-statbox or --disable-statbox was given. | |
6754 | if test "${enable_statbox+set}" = set; then | |
6755 | enableval="$enable_statbox" | |
698dcdb6 | 6756 | |
10f2d63a VZ |
6757 | if test "$enableval" = yes; then |
6758 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
6759 | else | |
6760 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
6761 | fi | |
698dcdb6 | 6762 | |
10f2d63a | 6763 | else |
698dcdb6 | 6764 | |
10f2d63a VZ |
6765 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` |
6766 | if test "x$LINE" != x ; then | |
6767 | eval "DEFAULT_$LINE" | |
6768 | else | |
6769 | no_cache=1 | |
6770 | fi | |
6771 | ||
6772 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
698dcdb6 VZ |
6773 | |
6774 | fi | |
10f2d63a VZ |
6775 | |
6776 | ||
6777 | eval "$ac_cv_use_statbox" | |
6778 | if test "$no_cache" != 1; then | |
6779 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
6780 | fi | |
6781 | ||
6782 | if test "$wxUSE_STATBOX" = yes; then | |
698dcdb6 | 6783 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6784 | else |
698dcdb6 | 6785 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6786 | fi |
698dcdb6 | 6787 | |
10f2d63a | 6788 | |
698dcdb6 | 6789 | echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6 |
009fead0 | 6790 | echo "configure:6791: checking for --enable-statline" >&5 |
10f2d63a VZ |
6791 | no_cache=0 |
6792 | # Check whether --enable-statline or --disable-statline was given. | |
6793 | if test "${enable_statline+set}" = set; then | |
6794 | enableval="$enable_statline" | |
698dcdb6 | 6795 | |
10f2d63a VZ |
6796 | if test "$enableval" = yes; then |
6797 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
6798 | else | |
6799 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
6800 | fi | |
698dcdb6 | 6801 | |
10f2d63a | 6802 | else |
698dcdb6 | 6803 | |
10f2d63a VZ |
6804 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` |
6805 | if test "x$LINE" != x ; then | |
6806 | eval "DEFAULT_$LINE" | |
6807 | else | |
6808 | no_cache=1 | |
6809 | fi | |
6810 | ||
6811 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
698dcdb6 VZ |
6812 | |
6813 | fi | |
10f2d63a VZ |
6814 | |
6815 | ||
6816 | eval "$ac_cv_use_statline" | |
6817 | if test "$no_cache" != 1; then | |
6818 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
6819 | fi | |
6820 | ||
6821 | if test "$wxUSE_STATLINE" = yes; then | |
698dcdb6 | 6822 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6823 | else |
698dcdb6 | 6824 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6825 | fi |
698dcdb6 | 6826 | |
10f2d63a | 6827 | |
1e6feb95 | 6828 | echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6 |
009fead0 | 6829 | echo "configure:6830: checking for --enable-stattext" >&5 |
1e6feb95 VZ |
6830 | no_cache=0 |
6831 | # Check whether --enable-stattext or --disable-stattext was given. | |
6832 | if test "${enable_stattext+set}" = set; then | |
6833 | enableval="$enable_stattext" | |
6834 | ||
6835 | if test "$enableval" = yes; then | |
6836 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
6837 | else | |
6838 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
6839 | fi | |
6840 | ||
6841 | else | |
6842 | ||
6843 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
6844 | if test "x$LINE" != x ; then | |
6845 | eval "DEFAULT_$LINE" | |
6846 | else | |
6847 | no_cache=1 | |
6848 | fi | |
6849 | ||
6850 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
6851 | ||
6852 | fi | |
6853 | ||
6854 | ||
6855 | eval "$ac_cv_use_stattext" | |
6856 | if test "$no_cache" != 1; then | |
6857 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
6858 | fi | |
6859 | ||
6860 | if test "$wxUSE_STATTEXT" = yes; then | |
6861 | echo "$ac_t""yes" 1>&6 | |
6862 | else | |
6863 | echo "$ac_t""no" 1>&6 | |
6864 | fi | |
6865 | ||
6866 | ||
698dcdb6 | 6867 | echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6 |
009fead0 | 6868 | echo "configure:6869: checking for --enable-statusbar" >&5 |
10f2d63a VZ |
6869 | no_cache=0 |
6870 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
6871 | if test "${enable_statusbar+set}" = set; then | |
6872 | enableval="$enable_statusbar" | |
698dcdb6 | 6873 | |
10f2d63a VZ |
6874 | if test "$enableval" = yes; then |
6875 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
6876 | else | |
6877 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
6878 | fi | |
698dcdb6 | 6879 | |
10f2d63a | 6880 | else |
698dcdb6 | 6881 | |
10f2d63a VZ |
6882 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` |
6883 | if test "x$LINE" != x ; then | |
6884 | eval "DEFAULT_$LINE" | |
6885 | else | |
6886 | no_cache=1 | |
6887 | fi | |
6888 | ||
6889 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
698dcdb6 VZ |
6890 | |
6891 | fi | |
10f2d63a VZ |
6892 | |
6893 | ||
6894 | eval "$ac_cv_use_statusbar" | |
6895 | if test "$no_cache" != 1; then | |
6896 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
6897 | fi | |
6898 | ||
6899 | if test "$wxUSE_STATUSBAR" = yes; then | |
698dcdb6 | 6900 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6901 | else |
698dcdb6 | 6902 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6903 | fi |
698dcdb6 | 6904 | |
10f2d63a | 6905 | |
698dcdb6 | 6906 | echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6 |
009fead0 | 6907 | echo "configure:6908: checking for --enable-tabdialog" >&5 |
10f2d63a VZ |
6908 | no_cache=0 |
6909 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
6910 | if test "${enable_tabdialog+set}" = set; then | |
6911 | enableval="$enable_tabdialog" | |
698dcdb6 | 6912 | |
10f2d63a VZ |
6913 | if test "$enableval" = yes; then |
6914 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
6915 | else | |
6916 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
6917 | fi | |
698dcdb6 | 6918 | |
10f2d63a | 6919 | else |
698dcdb6 | 6920 | |
10f2d63a VZ |
6921 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` |
6922 | if test "x$LINE" != x ; then | |
6923 | eval "DEFAULT_$LINE" | |
6924 | else | |
6925 | no_cache=1 | |
6926 | fi | |
6927 | ||
6928 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
698dcdb6 VZ |
6929 | |
6930 | fi | |
10f2d63a VZ |
6931 | |
6932 | ||
6933 | eval "$ac_cv_use_tabdialog" | |
6934 | if test "$no_cache" != 1; then | |
6935 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
6936 | fi | |
6937 | ||
6938 | if test "$wxUSE_TABDIALOG" = yes; then | |
698dcdb6 | 6939 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6940 | else |
698dcdb6 | 6941 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6942 | fi |
698dcdb6 | 6943 | |
10f2d63a | 6944 | |
1e6feb95 | 6945 | echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6 |
009fead0 | 6946 | echo "configure:6947: checking for --enable-textctrl" >&5 |
1e6feb95 VZ |
6947 | no_cache=0 |
6948 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
6949 | if test "${enable_textctrl+set}" = set; then | |
6950 | enableval="$enable_textctrl" | |
6951 | ||
6952 | if test "$enableval" = yes; then | |
6953 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
6954 | else | |
6955 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
6956 | fi | |
6957 | ||
6958 | else | |
6959 | ||
6960 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
6961 | if test "x$LINE" != x ; then | |
6962 | eval "DEFAULT_$LINE" | |
6963 | else | |
6964 | no_cache=1 | |
6965 | fi | |
6966 | ||
6967 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
6968 | ||
6969 | fi | |
6970 | ||
6971 | ||
6972 | eval "$ac_cv_use_textctrl" | |
6973 | if test "$no_cache" != 1; then | |
6974 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
6975 | fi | |
6976 | ||
6977 | if test "$wxUSE_TEXTCTRL" = yes; then | |
6978 | echo "$ac_t""yes" 1>&6 | |
6979 | else | |
6980 | echo "$ac_t""no" 1>&6 | |
6981 | fi | |
6982 | ||
6983 | ||
698dcdb6 | 6984 | echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6 |
009fead0 | 6985 | echo "configure:6986: checking for --enable-togglebtn" >&5 |
1db8dc4a VZ |
6986 | no_cache=0 |
6987 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
6988 | if test "${enable_togglebtn+set}" = set; then | |
6989 | enableval="$enable_togglebtn" | |
698dcdb6 | 6990 | |
1db8dc4a VZ |
6991 | if test "$enableval" = yes; then |
6992 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
6993 | else | |
6994 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
6995 | fi | |
698dcdb6 | 6996 | |
1db8dc4a | 6997 | else |
698dcdb6 | 6998 | |
1db8dc4a VZ |
6999 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` |
7000 | if test "x$LINE" != x ; then | |
7001 | eval "DEFAULT_$LINE" | |
7002 | else | |
7003 | no_cache=1 | |
7004 | fi | |
7005 | ||
7006 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
698dcdb6 VZ |
7007 | |
7008 | fi | |
1db8dc4a VZ |
7009 | |
7010 | ||
7011 | eval "$ac_cv_use_togglebtn" | |
7012 | if test "$no_cache" != 1; then | |
7013 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
7014 | fi | |
7015 | ||
7016 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
698dcdb6 | 7017 | echo "$ac_t""yes" 1>&6 |
1db8dc4a | 7018 | else |
698dcdb6 | 7019 | echo "$ac_t""no" 1>&6 |
1db8dc4a | 7020 | fi |
698dcdb6 | 7021 | |
1db8dc4a | 7022 | |
698dcdb6 | 7023 | echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6 |
009fead0 | 7024 | echo "configure:7025: checking for --enable-toolbar" >&5 |
10f2d63a VZ |
7025 | no_cache=0 |
7026 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
7027 | if test "${enable_toolbar+set}" = set; then | |
7028 | enableval="$enable_toolbar" | |
698dcdb6 | 7029 | |
10f2d63a VZ |
7030 | if test "$enableval" = yes; then |
7031 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
7032 | else | |
7033 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
7034 | fi | |
698dcdb6 | 7035 | |
10f2d63a | 7036 | else |
698dcdb6 | 7037 | |
10f2d63a VZ |
7038 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` |
7039 | if test "x$LINE" != x ; then | |
7040 | eval "DEFAULT_$LINE" | |
7041 | else | |
7042 | no_cache=1 | |
7043 | fi | |
7044 | ||
7045 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
698dcdb6 VZ |
7046 | |
7047 | fi | |
10f2d63a VZ |
7048 | |
7049 | ||
7050 | eval "$ac_cv_use_toolbar" | |
7051 | if test "$no_cache" != 1; then | |
7052 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
7053 | fi | |
7054 | ||
7055 | if test "$wxUSE_TOOLBAR" = yes; then | |
698dcdb6 | 7056 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7057 | else |
698dcdb6 | 7058 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7059 | fi |
698dcdb6 | 7060 | |
10f2d63a | 7061 | |
698dcdb6 | 7062 | echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6 |
009fead0 | 7063 | echo "configure:7064: checking for --enable-tbarnative" >&5 |
360d6699 VZ |
7064 | no_cache=0 |
7065 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
7066 | if test "${enable_tbarnative+set}" = set; then | |
7067 | enableval="$enable_tbarnative" | |
698dcdb6 | 7068 | |
360d6699 VZ |
7069 | if test "$enableval" = yes; then |
7070 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
7071 | else | |
7072 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
7073 | fi | |
698dcdb6 | 7074 | |
360d6699 | 7075 | else |
698dcdb6 | 7076 | |
360d6699 VZ |
7077 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` |
7078 | if test "x$LINE" != x ; then | |
7079 | eval "DEFAULT_$LINE" | |
7080 | else | |
7081 | no_cache=1 | |
7082 | fi | |
7083 | ||
7084 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
698dcdb6 VZ |
7085 | |
7086 | fi | |
360d6699 VZ |
7087 | |
7088 | ||
7089 | eval "$ac_cv_use_tbarnative" | |
7090 | if test "$no_cache" != 1; then | |
7091 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
7092 | fi | |
7093 | ||
7094 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
698dcdb6 | 7095 | echo "$ac_t""yes" 1>&6 |
360d6699 | 7096 | else |
698dcdb6 | 7097 | echo "$ac_t""no" 1>&6 |
360d6699 | 7098 | fi |
698dcdb6 | 7099 | |
360d6699 | 7100 | |
698dcdb6 | 7101 | echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6 |
009fead0 | 7102 | echo "configure:7103: checking for --enable-tbarsmpl" >&5 |
360d6699 VZ |
7103 | no_cache=0 |
7104 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
7105 | if test "${enable_tbarsmpl+set}" = set; then | |
7106 | enableval="$enable_tbarsmpl" | |
698dcdb6 | 7107 | |
360d6699 VZ |
7108 | if test "$enableval" = yes; then |
7109 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
7110 | else | |
7111 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
7112 | fi | |
698dcdb6 | 7113 | |
360d6699 | 7114 | else |
698dcdb6 | 7115 | |
360d6699 VZ |
7116 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` |
7117 | if test "x$LINE" != x ; then | |
7118 | eval "DEFAULT_$LINE" | |
7119 | else | |
7120 | no_cache=1 | |
7121 | fi | |
7122 | ||
7123 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
698dcdb6 VZ |
7124 | |
7125 | fi | |
360d6699 VZ |
7126 | |
7127 | ||
7128 | eval "$ac_cv_use_tbarsmpl" | |
7129 | if test "$no_cache" != 1; then | |
7130 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
7131 | fi | |
7132 | ||
7133 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
698dcdb6 | 7134 | echo "$ac_t""yes" 1>&6 |
360d6699 | 7135 | else |
698dcdb6 | 7136 | echo "$ac_t""no" 1>&6 |
360d6699 | 7137 | fi |
698dcdb6 | 7138 | |
360d6699 | 7139 | |
698dcdb6 | 7140 | echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6 |
009fead0 | 7141 | echo "configure:7142: checking for --enable-treectrl" >&5 |
10f2d63a VZ |
7142 | no_cache=0 |
7143 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
7144 | if test "${enable_treectrl+set}" = set; then | |
7145 | enableval="$enable_treectrl" | |
698dcdb6 | 7146 | |
10f2d63a VZ |
7147 | if test "$enableval" = yes; then |
7148 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
7149 | else | |
7150 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
7151 | fi | |
698dcdb6 | 7152 | |
10f2d63a | 7153 | else |
698dcdb6 | 7154 | |
10f2d63a VZ |
7155 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` |
7156 | if test "x$LINE" != x ; then | |
7157 | eval "DEFAULT_$LINE" | |
7158 | else | |
7159 | no_cache=1 | |
7160 | fi | |
7161 | ||
7162 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
698dcdb6 VZ |
7163 | |
7164 | fi | |
10f2d63a VZ |
7165 | |
7166 | ||
1e6feb95 VZ |
7167 | eval "$ac_cv_use_treectrl" |
7168 | if test "$no_cache" != 1; then | |
7169 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
7170 | fi | |
7171 | ||
7172 | if test "$wxUSE_TREECTRL" = yes; then | |
7173 | echo "$ac_t""yes" 1>&6 | |
7174 | else | |
7175 | echo "$ac_t""no" 1>&6 | |
7176 | fi | |
7177 | ||
7178 | ||
9926e4a4 | 7179 | echo $ac_n "checking for --enable-tipwindow""... $ac_c" 1>&6 |
009fead0 | 7180 | echo "configure:7181: checking for --enable-tipwindow" >&5 |
9926e4a4 VZ |
7181 | no_cache=0 |
7182 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
7183 | if test "${enable_tipwindow+set}" = set; then | |
7184 | enableval="$enable_tipwindow" | |
7185 | ||
7186 | if test "$enableval" = yes; then | |
7187 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
7188 | else | |
7189 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
7190 | fi | |
7191 | ||
7192 | else | |
7193 | ||
7194 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` | |
7195 | if test "x$LINE" != x ; then | |
7196 | eval "DEFAULT_$LINE" | |
7197 | else | |
7198 | no_cache=1 | |
7199 | fi | |
7200 | ||
7201 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
7202 | ||
7203 | fi | |
7204 | ||
7205 | ||
7206 | eval "$ac_cv_use_tipwindow" | |
7207 | if test "$no_cache" != 1; then | |
7208 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
7209 | fi | |
7210 | ||
7211 | if test "$wxUSE_TIPWINDOW" = yes; then | |
7212 | echo "$ac_t""yes" 1>&6 | |
7213 | else | |
7214 | echo "$ac_t""no" 1>&6 | |
7215 | fi | |
7216 | ||
7217 | ||
9f41d601 | 7218 | echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6 |
009fead0 | 7219 | echo "configure:7220: checking for --enable-popupwin" >&5 |
9f41d601 RR |
7220 | no_cache=0 |
7221 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
7222 | if test "${enable_popupwin+set}" = set; then | |
7223 | enableval="$enable_popupwin" | |
7224 | ||
7225 | if test "$enableval" = yes; then | |
7226 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
7227 | else | |
7228 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
7229 | fi | |
7230 | ||
7231 | else | |
7232 | ||
7233 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` | |
7234 | if test "x$LINE" != x ; then | |
7235 | eval "DEFAULT_$LINE" | |
7236 | else | |
7237 | no_cache=1 | |
7238 | fi | |
7239 | ||
7240 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
7241 | ||
7242 | fi | |
7243 | ||
7244 | ||
7245 | eval "$ac_cv_use_popupwin" | |
7246 | if test "$no_cache" != 1; then | |
7247 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
7248 | fi | |
7249 | ||
7250 | if test "$wxUSE_POPUPWIN" = yes; then | |
7251 | echo "$ac_t""yes" 1>&6 | |
7252 | else | |
7253 | echo "$ac_t""no" 1>&6 | |
7254 | fi | |
7255 | ||
7256 | ||
1e6feb95 VZ |
7257 | |
7258 | ||
7259 | echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6 | |
009fead0 | 7260 | echo "configure:7261: checking for --enable-commondlg" >&5 |
1e6feb95 VZ |
7261 | no_cache=0 |
7262 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
7263 | if test "${enable_commondlg+set}" = set; then | |
7264 | enableval="$enable_commondlg" | |
7265 | ||
7266 | if test "$enableval" = yes; then | |
7267 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
7268 | else | |
7269 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
7270 | fi | |
7271 | ||
7272 | else | |
7273 | ||
7274 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
7275 | if test "x$LINE" != x ; then | |
7276 | eval "DEFAULT_$LINE" | |
7277 | else | |
7278 | no_cache=1 | |
7279 | fi | |
7280 | ||
7281 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
7282 | ||
7283 | fi | |
7284 | ||
7285 | ||
7286 | eval "$ac_cv_use_commondlg" | |
7287 | if test "$no_cache" != 1; then | |
7288 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
7289 | fi | |
7290 | ||
7291 | if test "$wxUSE_COMMONDLGS" = yes; then | |
7292 | echo "$ac_t""yes" 1>&6 | |
7293 | else | |
7294 | echo "$ac_t""no" 1>&6 | |
7295 | fi | |
7296 | ||
7297 | ||
7298 | echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6 | |
009fead0 | 7299 | echo "configure:7300: checking for --enable-choicedlg" >&5 |
1e6feb95 VZ |
7300 | no_cache=0 |
7301 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
7302 | if test "${enable_choicedlg+set}" = set; then | |
7303 | enableval="$enable_choicedlg" | |
7304 | ||
7305 | if test "$enableval" = yes; then | |
7306 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
7307 | else | |
7308 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
7309 | fi | |
7310 | ||
7311 | else | |
7312 | ||
7313 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
7314 | if test "x$LINE" != x ; then | |
7315 | eval "DEFAULT_$LINE" | |
7316 | else | |
7317 | no_cache=1 | |
7318 | fi | |
7319 | ||
7320 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
7321 | ||
7322 | fi | |
7323 | ||
7324 | ||
7325 | eval "$ac_cv_use_choicedlg" | |
7326 | if test "$no_cache" != 1; then | |
7327 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
7328 | fi | |
7329 | ||
7330 | if test "$wxUSE_CHOICEDLG" = yes; then | |
7331 | echo "$ac_t""yes" 1>&6 | |
7332 | else | |
7333 | echo "$ac_t""no" 1>&6 | |
7334 | fi | |
7335 | ||
7336 | ||
7337 | echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6 | |
009fead0 | 7338 | echo "configure:7339: checking for --enable-coldlg" >&5 |
1e6feb95 VZ |
7339 | no_cache=0 |
7340 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
7341 | if test "${enable_coldlg+set}" = set; then | |
7342 | enableval="$enable_coldlg" | |
7343 | ||
7344 | if test "$enableval" = yes; then | |
7345 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
7346 | else | |
7347 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
7348 | fi | |
7349 | ||
7350 | else | |
7351 | ||
7352 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
7353 | if test "x$LINE" != x ; then | |
7354 | eval "DEFAULT_$LINE" | |
7355 | else | |
7356 | no_cache=1 | |
7357 | fi | |
7358 | ||
7359 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
7360 | ||
7361 | fi | |
7362 | ||
7363 | ||
7364 | eval "$ac_cv_use_coldlg" | |
7365 | if test "$no_cache" != 1; then | |
7366 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
7367 | fi | |
7368 | ||
7369 | if test "$wxUSE_COLOURDLG" = yes; then | |
7370 | echo "$ac_t""yes" 1>&6 | |
7371 | else | |
7372 | echo "$ac_t""no" 1>&6 | |
7373 | fi | |
7374 | ||
7375 | ||
7376 | echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6 | |
009fead0 | 7377 | echo "configure:7378: checking for --enable-filedlg" >&5 |
1e6feb95 VZ |
7378 | no_cache=0 |
7379 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
7380 | if test "${enable_filedlg+set}" = set; then | |
7381 | enableval="$enable_filedlg" | |
7382 | ||
7383 | if test "$enableval" = yes; then | |
7384 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
7385 | else | |
7386 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
7387 | fi | |
7388 | ||
7389 | else | |
7390 | ||
7391 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
7392 | if test "x$LINE" != x ; then | |
7393 | eval "DEFAULT_$LINE" | |
7394 | else | |
7395 | no_cache=1 | |
7396 | fi | |
7397 | ||
7398 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
7399 | ||
7400 | fi | |
7401 | ||
7402 | ||
7403 | eval "$ac_cv_use_filedlg" | |
7404 | if test "$no_cache" != 1; then | |
7405 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
7406 | fi | |
7407 | ||
7408 | if test "$wxUSE_FILEDLG" = yes; then | |
7409 | echo "$ac_t""yes" 1>&6 | |
7410 | else | |
7411 | echo "$ac_t""no" 1>&6 | |
7412 | fi | |
7413 | ||
7414 | ||
69d27ff7 | 7415 | echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6 |
009fead0 | 7416 | echo "configure:7417: checking for --enable-finddlg" >&5 |
8db37e06 | 7417 | no_cache=0 |
69d27ff7 MB |
7418 | # Check whether --enable-finddlg or --disable-finddlg was given. |
7419 | if test "${enable_finddlg+set}" = set; then | |
7420 | enableval="$enable_finddlg" | |
8db37e06 VZ |
7421 | |
7422 | if test "$enableval" = yes; then | |
69d27ff7 | 7423 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' |
8db37e06 | 7424 | else |
69d27ff7 | 7425 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' |
8db37e06 VZ |
7426 | fi |
7427 | ||
7428 | else | |
7429 | ||
7430 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` | |
7431 | if test "x$LINE" != x ; then | |
7432 | eval "DEFAULT_$LINE" | |
7433 | else | |
7434 | no_cache=1 | |
7435 | fi | |
7436 | ||
69d27ff7 | 7437 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG |
8db37e06 VZ |
7438 | |
7439 | fi | |
7440 | ||
7441 | ||
69d27ff7 | 7442 | eval "$ac_cv_use_finddlg" |
8db37e06 | 7443 | if test "$no_cache" != 1; then |
69d27ff7 | 7444 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp |
8db37e06 VZ |
7445 | fi |
7446 | ||
7447 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
7448 | echo "$ac_t""yes" 1>&6 | |
7449 | else | |
7450 | echo "$ac_t""no" 1>&6 | |
7451 | fi | |
7452 | ||
7453 | ||
1e6feb95 | 7454 | echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6 |
009fead0 | 7455 | echo "configure:7456: checking for --enable-fontdlg" >&5 |
1e6feb95 VZ |
7456 | no_cache=0 |
7457 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
7458 | if test "${enable_fontdlg+set}" = set; then | |
7459 | enableval="$enable_fontdlg" | |
7460 | ||
7461 | if test "$enableval" = yes; then | |
7462 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
7463 | else | |
7464 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
7465 | fi | |
7466 | ||
7467 | else | |
7468 | ||
7469 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
7470 | if test "x$LINE" != x ; then | |
7471 | eval "DEFAULT_$LINE" | |
7472 | else | |
7473 | no_cache=1 | |
7474 | fi | |
7475 | ||
7476 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
7477 | ||
7478 | fi | |
7479 | ||
7480 | ||
7481 | eval "$ac_cv_use_fontdlg" | |
7482 | if test "$no_cache" != 1; then | |
7483 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
7484 | fi | |
7485 | ||
7486 | if test "$wxUSE_FONTDLG" = yes; then | |
7487 | echo "$ac_t""yes" 1>&6 | |
7488 | else | |
7489 | echo "$ac_t""no" 1>&6 | |
7490 | fi | |
7491 | ||
7492 | ||
7493 | echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6 | |
009fead0 | 7494 | echo "configure:7495: checking for --enable-dirdlg" >&5 |
1e6feb95 VZ |
7495 | no_cache=0 |
7496 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
7497 | if test "${enable_dirdlg+set}" = set; then | |
7498 | enableval="$enable_dirdlg" | |
7499 | ||
7500 | if test "$enableval" = yes; then | |
7501 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
7502 | else | |
7503 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
7504 | fi | |
7505 | ||
7506 | else | |
7507 | ||
7508 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
7509 | if test "x$LINE" != x ; then | |
7510 | eval "DEFAULT_$LINE" | |
7511 | else | |
7512 | no_cache=1 | |
7513 | fi | |
7514 | ||
7515 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
7516 | ||
7517 | fi | |
7518 | ||
7519 | ||
7520 | eval "$ac_cv_use_dirdlg" | |
10f2d63a | 7521 | if test "$no_cache" != 1; then |
1e6feb95 | 7522 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7523 | fi |
7524 | ||
1e6feb95 | 7525 | if test "$wxUSE_DIRDLG" = yes; then |
698dcdb6 | 7526 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7527 | else |
698dcdb6 | 7528 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7529 | fi |
698dcdb6 VZ |
7530 | |
7531 | ||
1e6feb95 | 7532 | echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6 |
009fead0 | 7533 | echo "configure:7534: checking for --enable-msgdlg" >&5 |
10f2d63a | 7534 | no_cache=0 |
1e6feb95 VZ |
7535 | # Check whether --enable-msgdlg or --disable-msgdlg was given. |
7536 | if test "${enable_msgdlg+set}" = set; then | |
7537 | enableval="$enable_msgdlg" | |
698dcdb6 | 7538 | |
10f2d63a | 7539 | if test "$enableval" = yes; then |
1e6feb95 | 7540 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' |
10f2d63a | 7541 | else |
1e6feb95 | 7542 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' |
10f2d63a | 7543 | fi |
698dcdb6 | 7544 | |
10f2d63a | 7545 | else |
698dcdb6 | 7546 | |
1e6feb95 | 7547 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
7548 | if test "x$LINE" != x ; then |
7549 | eval "DEFAULT_$LINE" | |
7550 | else | |
7551 | no_cache=1 | |
7552 | fi | |
7553 | ||
1e6feb95 | 7554 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG |
698dcdb6 VZ |
7555 | |
7556 | fi | |
10f2d63a VZ |
7557 | |
7558 | ||
1e6feb95 | 7559 | eval "$ac_cv_use_msgdlg" |
10f2d63a | 7560 | if test "$no_cache" != 1; then |
1e6feb95 | 7561 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7562 | fi |
7563 | ||
1e6feb95 | 7564 | if test "$wxUSE_MSGDLG" = yes; then |
698dcdb6 | 7565 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7566 | else |
698dcdb6 | 7567 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7568 | fi |
698dcdb6 | 7569 | |
10f2d63a | 7570 | |
1e6feb95 | 7571 | echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6 |
009fead0 | 7572 | echo "configure:7573: checking for --enable-numberdlg" >&5 |
10f2d63a | 7573 | no_cache=0 |
1e6feb95 VZ |
7574 | # Check whether --enable-numberdlg or --disable-numberdlg was given. |
7575 | if test "${enable_numberdlg+set}" = set; then | |
7576 | enableval="$enable_numberdlg" | |
698dcdb6 | 7577 | |
10f2d63a | 7578 | if test "$enableval" = yes; then |
1e6feb95 | 7579 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' |
10f2d63a | 7580 | else |
1e6feb95 | 7581 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' |
10f2d63a | 7582 | fi |
698dcdb6 | 7583 | |
10f2d63a | 7584 | else |
698dcdb6 | 7585 | |
1e6feb95 | 7586 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
7587 | if test "x$LINE" != x ; then |
7588 | eval "DEFAULT_$LINE" | |
7589 | else | |
7590 | no_cache=1 | |
7591 | fi | |
7592 | ||
1e6feb95 | 7593 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG |
698dcdb6 VZ |
7594 | |
7595 | fi | |
10f2d63a VZ |
7596 | |
7597 | ||
1e6feb95 | 7598 | eval "$ac_cv_use_numberdlg" |
10f2d63a | 7599 | if test "$no_cache" != 1; then |
1e6feb95 | 7600 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7601 | fi |
7602 | ||
1e6feb95 | 7603 | if test "$wxUSE_NUMBERDLG" = yes; then |
698dcdb6 | 7604 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7605 | else |
698dcdb6 | 7606 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7607 | fi |
698dcdb6 | 7608 | |
10f2d63a | 7609 | |
cbca9943 | 7610 | echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6 |
009fead0 | 7611 | echo "configure:7612: checking for --enable-splash" >&5 |
cbca9943 VZ |
7612 | no_cache=0 |
7613 | # Check whether --enable-splash or --disable-splash was given. | |
7614 | if test "${enable_splash+set}" = set; then | |
7615 | enableval="$enable_splash" | |
7616 | ||
7617 | if test "$enableval" = yes; then | |
7618 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
7619 | else | |
7620 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
7621 | fi | |
7622 | ||
7623 | else | |
7624 | ||
7625 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` | |
7626 | if test "x$LINE" != x ; then | |
7627 | eval "DEFAULT_$LINE" | |
7628 | else | |
7629 | no_cache=1 | |
7630 | fi | |
7631 | ||
7632 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
7633 | ||
7634 | fi | |
7635 | ||
7636 | ||
7637 | eval "$ac_cv_use_splash" | |
7638 | if test "$no_cache" != 1; then | |
7639 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
7640 | fi | |
7641 | ||
7642 | if test "$wxUSE_SPLASH" = yes; then | |
7643 | echo "$ac_t""yes" 1>&6 | |
7644 | else | |
7645 | echo "$ac_t""no" 1>&6 | |
7646 | fi | |
7647 | ||
7648 | ||
698dcdb6 | 7649 | echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6 |
009fead0 | 7650 | echo "configure:7651: checking for --enable-textdlg" >&5 |
10f2d63a VZ |
7651 | no_cache=0 |
7652 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
7653 | if test "${enable_textdlg+set}" = set; then | |
7654 | enableval="$enable_textdlg" | |
698dcdb6 | 7655 | |
10f2d63a VZ |
7656 | if test "$enableval" = yes; then |
7657 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
7658 | else | |
7659 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
7660 | fi | |
698dcdb6 | 7661 | |
10f2d63a | 7662 | else |
698dcdb6 | 7663 | |
10f2d63a VZ |
7664 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` |
7665 | if test "x$LINE" != x ; then | |
7666 | eval "DEFAULT_$LINE" | |
7667 | else | |
7668 | no_cache=1 | |
7669 | fi | |
7670 | ||
7671 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
698dcdb6 VZ |
7672 | |
7673 | fi | |
10f2d63a VZ |
7674 | |
7675 | ||
7676 | eval "$ac_cv_use_textdlg" | |
7677 | if test "$no_cache" != 1; then | |
7678 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
7679 | fi | |
7680 | ||
7681 | if test "$wxUSE_TEXTDLG" = yes; then | |
698dcdb6 | 7682 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7683 | else |
698dcdb6 | 7684 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7685 | fi |
698dcdb6 | 7686 | |
10f2d63a | 7687 | |
698dcdb6 | 7688 | echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6 |
009fead0 | 7689 | echo "configure:7690: checking for --enable-tipdlg" >&5 |
10f2d63a VZ |
7690 | no_cache=0 |
7691 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
7692 | if test "${enable_tipdlg+set}" = set; then | |
7693 | enableval="$enable_tipdlg" | |
698dcdb6 | 7694 | |
10f2d63a VZ |
7695 | if test "$enableval" = yes; then |
7696 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
7697 | else | |
7698 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
7699 | fi | |
698dcdb6 | 7700 | |
10f2d63a | 7701 | else |
698dcdb6 | 7702 | |
10f2d63a VZ |
7703 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` |
7704 | if test "x$LINE" != x ; then | |
7705 | eval "DEFAULT_$LINE" | |
7706 | else | |
7707 | no_cache=1 | |
7708 | fi | |
7709 | ||
7710 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
698dcdb6 VZ |
7711 | |
7712 | fi | |
10f2d63a VZ |
7713 | |
7714 | ||
7715 | eval "$ac_cv_use_tipdlg" | |
7716 | if test "$no_cache" != 1; then | |
7717 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
7718 | fi | |
7719 | ||
7720 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
698dcdb6 | 7721 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7722 | else |
698dcdb6 | 7723 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7724 | fi |
698dcdb6 | 7725 | |
10f2d63a | 7726 | |
698dcdb6 | 7727 | echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6 |
009fead0 | 7728 | echo "configure:7729: checking for --enable-progressdlg" >&5 |
10f2d63a VZ |
7729 | no_cache=0 |
7730 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
7731 | if test "${enable_progressdlg+set}" = set; then | |
7732 | enableval="$enable_progressdlg" | |
698dcdb6 | 7733 | |
10f2d63a VZ |
7734 | if test "$enableval" = yes; then |
7735 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
7736 | else | |
7737 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
7738 | fi | |
698dcdb6 | 7739 | |
10f2d63a | 7740 | else |
698dcdb6 | 7741 | |
10f2d63a VZ |
7742 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` |
7743 | if test "x$LINE" != x ; then | |
7744 | eval "DEFAULT_$LINE" | |
7745 | else | |
7746 | no_cache=1 | |
7747 | fi | |
7748 | ||
7749 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
698dcdb6 VZ |
7750 | |
7751 | fi | |
10f2d63a VZ |
7752 | |
7753 | ||
7754 | eval "$ac_cv_use_progressdlg" | |
7755 | if test "$no_cache" != 1; then | |
7756 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
7757 | fi | |
7758 | ||
7759 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
698dcdb6 | 7760 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7761 | else |
698dcdb6 | 7762 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7763 | fi |
698dcdb6 | 7764 | |
10f2d63a | 7765 | |
b1f5d087 | 7766 | echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6 |
009fead0 | 7767 | echo "configure:7768: checking for --enable-wizarddlg" >&5 |
b1f5d087 VZ |
7768 | no_cache=0 |
7769 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
7770 | if test "${enable_wizarddlg+set}" = set; then | |
7771 | enableval="$enable_wizarddlg" | |
7772 | ||
7773 | if test "$enableval" = yes; then | |
7774 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
7775 | else | |
7776 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
7777 | fi | |
7778 | ||
7779 | else | |
7780 | ||
7781 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
7782 | if test "x$LINE" != x ; then | |
7783 | eval "DEFAULT_$LINE" | |
7784 | else | |
7785 | no_cache=1 | |
7786 | fi | |
7787 | ||
7788 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
7789 | ||
7790 | fi | |
7791 | ||
7792 | ||
7793 | eval "$ac_cv_use_wizarddlg" | |
7794 | if test "$no_cache" != 1; then | |
7795 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
7796 | fi | |
7797 | ||
7798 | if test "$wxUSE_WIZARDDLG" = yes; then | |
7799 | echo "$ac_t""yes" 1>&6 | |
7800 | else | |
7801 | echo "$ac_t""no" 1>&6 | |
7802 | fi | |
7803 | ||
7804 | ||
7805 | ||
7806 | ||
1e6feb95 | 7807 | echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6 |
009fead0 | 7808 | echo "configure:7809: checking for --enable-menus" >&5 |
1e6feb95 VZ |
7809 | no_cache=0 |
7810 | # Check whether --enable-menus or --disable-menus was given. | |
7811 | if test "${enable_menus+set}" = set; then | |
7812 | enableval="$enable_menus" | |
7813 | ||
7814 | if test "$enableval" = yes; then | |
7815 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
7816 | else | |
7817 | ac_cv_use_menus='wxUSE_MENUS=no' | |
7818 | fi | |
7819 | ||
7820 | else | |
7821 | ||
7822 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
7823 | if test "x$LINE" != x ; then | |
7824 | eval "DEFAULT_$LINE" | |
7825 | else | |
7826 | no_cache=1 | |
7827 | fi | |
7828 | ||
7829 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
7830 | ||
7831 | fi | |
7832 | ||
7833 | ||
7834 | eval "$ac_cv_use_menus" | |
7835 | if test "$no_cache" != 1; then | |
7836 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
7837 | fi | |
7838 | ||
7839 | if test "$wxUSE_MENUS" = yes; then | |
7840 | echo "$ac_t""yes" 1>&6 | |
7841 | else | |
7842 | echo "$ac_t""no" 1>&6 | |
7843 | fi | |
7844 | ||
7845 | ||
698dcdb6 | 7846 | echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6 |
009fead0 | 7847 | echo "configure:7848: checking for --enable-miniframe" >&5 |
10f2d63a VZ |
7848 | no_cache=0 |
7849 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
7850 | if test "${enable_miniframe+set}" = set; then | |
7851 | enableval="$enable_miniframe" | |
698dcdb6 | 7852 | |
10f2d63a VZ |
7853 | if test "$enableval" = yes; then |
7854 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
7855 | else | |
7856 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
7857 | fi | |
698dcdb6 | 7858 | |
10f2d63a | 7859 | else |
698dcdb6 | 7860 | |
10f2d63a VZ |
7861 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` |
7862 | if test "x$LINE" != x ; then | |
7863 | eval "DEFAULT_$LINE" | |
7864 | else | |
7865 | no_cache=1 | |
7866 | fi | |
7867 | ||
7868 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
698dcdb6 VZ |
7869 | |
7870 | fi | |
10f2d63a VZ |
7871 | |
7872 | ||
7873 | eval "$ac_cv_use_miniframe" | |
7874 | if test "$no_cache" != 1; then | |
7875 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
7876 | fi | |
7877 | ||
7878 | if test "$wxUSE_MINIFRAME" = yes; then | |
698dcdb6 | 7879 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7880 | else |
698dcdb6 | 7881 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7882 | fi |
698dcdb6 | 7883 | |
10f2d63a | 7884 | |
698dcdb6 | 7885 | echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6 |
009fead0 | 7886 | echo "configure:7887: checking for --enable-tooltips" >&5 |
10f2d63a VZ |
7887 | no_cache=0 |
7888 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
7889 | if test "${enable_tooltips+set}" = set; then | |
7890 | enableval="$enable_tooltips" | |
698dcdb6 | 7891 | |
10f2d63a VZ |
7892 | if test "$enableval" = yes; then |
7893 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
7894 | else | |
7895 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
7896 | fi | |
698dcdb6 | 7897 | |
10f2d63a | 7898 | else |
698dcdb6 | 7899 | |
10f2d63a VZ |
7900 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` |
7901 | if test "x$LINE" != x ; then | |
7902 | eval "DEFAULT_$LINE" | |
7903 | else | |
7904 | no_cache=1 | |
7905 | fi | |
7906 | ||
7907 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
698dcdb6 VZ |
7908 | |
7909 | fi | |
10f2d63a VZ |
7910 | |
7911 | ||
7912 | eval "$ac_cv_use_tooltips" | |
7913 | if test "$no_cache" != 1; then | |
7914 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
7915 | fi | |
7916 | ||
7917 | if test "$wxUSE_TOOLTIPS" = yes; then | |
698dcdb6 | 7918 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7919 | else |
698dcdb6 | 7920 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7921 | fi |
698dcdb6 | 7922 | |
10f2d63a | 7923 | |
698dcdb6 | 7924 | echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6 |
009fead0 | 7925 | echo "configure:7926: checking for --enable-splines" >&5 |
10f2d63a VZ |
7926 | no_cache=0 |
7927 | # Check whether --enable-splines or --disable-splines was given. | |
7928 | if test "${enable_splines+set}" = set; then | |
7929 | enableval="$enable_splines" | |
698dcdb6 | 7930 | |
10f2d63a VZ |
7931 | if test "$enableval" = yes; then |
7932 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
7933 | else | |
7934 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
7935 | fi | |
698dcdb6 | 7936 | |
10f2d63a | 7937 | else |
698dcdb6 | 7938 | |
10f2d63a VZ |
7939 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` |
7940 | if test "x$LINE" != x ; then | |
7941 | eval "DEFAULT_$LINE" | |
7942 | else | |
7943 | no_cache=1 | |
7944 | fi | |
7945 | ||
7946 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
698dcdb6 VZ |
7947 | |
7948 | fi | |
10f2d63a VZ |
7949 | |
7950 | ||
7951 | eval "$ac_cv_use_splines" | |
7952 | if test "$no_cache" != 1; then | |
7953 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
7954 | fi | |
7955 | ||
7956 | if test "$wxUSE_SPLINES" = yes; then | |
698dcdb6 | 7957 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7958 | else |
698dcdb6 | 7959 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7960 | fi |
698dcdb6 | 7961 | |
10f2d63a | 7962 | |
698dcdb6 | 7963 | echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6 |
009fead0 | 7964 | echo "configure:7965: checking for --enable-validators" >&5 |
10f2d63a VZ |
7965 | no_cache=0 |
7966 | # Check whether --enable-validators or --disable-validators was given. | |
7967 | if test "${enable_validators+set}" = set; then | |
7968 | enableval="$enable_validators" | |
698dcdb6 | 7969 | |
10f2d63a VZ |
7970 | if test "$enableval" = yes; then |
7971 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
7972 | else | |
7973 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
7974 | fi | |
698dcdb6 | 7975 | |
10f2d63a | 7976 | else |
698dcdb6 | 7977 | |
10f2d63a VZ |
7978 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` |
7979 | if test "x$LINE" != x ; then | |
7980 | eval "DEFAULT_$LINE" | |
7981 | else | |
7982 | no_cache=1 | |
7983 | fi | |
7984 | ||
7985 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
698dcdb6 VZ |
7986 | |
7987 | fi | |
10f2d63a VZ |
7988 | |
7989 | ||
7990 | eval "$ac_cv_use_validators" | |
7991 | if test "$no_cache" != 1; then | |
7992 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
7993 | fi | |
7994 | ||
7995 | if test "$wxUSE_VALIDATORS" = yes; then | |
698dcdb6 | 7996 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7997 | else |
698dcdb6 | 7998 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7999 | fi |
698dcdb6 | 8000 | |
10f2d63a | 8001 | |
698dcdb6 | 8002 | echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6 |
009fead0 | 8003 | echo "configure:8004: checking for --enable-busyinfo" >&5 |
10f2d63a VZ |
8004 | no_cache=0 |
8005 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
8006 | if test "${enable_busyinfo+set}" = set; then | |
8007 | enableval="$enable_busyinfo" | |
698dcdb6 | 8008 | |
10f2d63a VZ |
8009 | if test "$enableval" = yes; then |
8010 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
8011 | else | |
8012 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
8013 | fi | |
698dcdb6 | 8014 | |
10f2d63a | 8015 | else |
698dcdb6 | 8016 | |
10f2d63a VZ |
8017 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` |
8018 | if test "x$LINE" != x ; then | |
8019 | eval "DEFAULT_$LINE" | |
8020 | else | |
8021 | no_cache=1 | |
8022 | fi | |
8023 | ||
8024 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
698dcdb6 VZ |
8025 | |
8026 | fi | |
10f2d63a VZ |
8027 | |
8028 | ||
8029 | eval "$ac_cv_use_busyinfo" | |
8030 | if test "$no_cache" != 1; then | |
8031 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
8032 | fi | |
8033 | ||
8034 | if test "$wxUSE_BUSYINFO" = yes; then | |
698dcdb6 | 8035 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8036 | else |
698dcdb6 | 8037 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8038 | fi |
698dcdb6 | 8039 | |
10f2d63a | 8040 | |
698dcdb6 | 8041 | echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6 |
009fead0 | 8042 | echo "configure:8043: checking for --enable-joystick" >&5 |
f6bcfd97 BP |
8043 | no_cache=0 |
8044 | # Check whether --enable-joystick or --disable-joystick was given. | |
8045 | if test "${enable_joystick+set}" = set; then | |
8046 | enableval="$enable_joystick" | |
698dcdb6 | 8047 | |
f6bcfd97 BP |
8048 | if test "$enableval" = yes; then |
8049 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
8050 | else | |
8051 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
8052 | fi | |
698dcdb6 | 8053 | |
f6bcfd97 | 8054 | else |
698dcdb6 | 8055 | |
f6bcfd97 BP |
8056 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` |
8057 | if test "x$LINE" != x ; then | |
8058 | eval "DEFAULT_$LINE" | |
8059 | else | |
8060 | no_cache=1 | |
8061 | fi | |
8062 | ||
8063 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
698dcdb6 VZ |
8064 | |
8065 | fi | |
f6bcfd97 BP |
8066 | |
8067 | ||
8068 | eval "$ac_cv_use_joystick" | |
8069 | if test "$no_cache" != 1; then | |
8070 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
8071 | fi | |
8072 | ||
8073 | if test "$wxUSE_JOYSTICK" = yes; then | |
698dcdb6 | 8074 | echo "$ac_t""yes" 1>&6 |
f6bcfd97 | 8075 | else |
698dcdb6 | 8076 | echo "$ac_t""no" 1>&6 |
f6bcfd97 | 8077 | fi |
698dcdb6 VZ |
8078 | |
8079 | ||
1e6feb95 | 8080 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
009fead0 | 8081 | echo "configure:8082: checking for --enable-metafile" >&5 |
1e6feb95 VZ |
8082 | no_cache=0 |
8083 | # Check whether --enable-metafile or --disable-metafile was given. | |
8084 | if test "${enable_metafile+set}" = set; then | |
8085 | enableval="$enable_metafile" | |
8086 | ||
8087 | if test "$enableval" = yes; then | |
8088 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
8089 | else | |
8090 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
8091 | fi | |
8092 | ||
8093 | else | |
8094 | ||
8095 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
8096 | if test "x$LINE" != x ; then | |
8097 | eval "DEFAULT_$LINE" | |
8098 | else | |
8099 | no_cache=1 | |
8100 | fi | |
8101 | ||
8102 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
8103 | ||
8104 | fi | |
8105 | ||
8106 | ||
8107 | eval "$ac_cv_use_metafile" | |
8108 | if test "$no_cache" != 1; then | |
8109 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
8110 | fi | |
8111 | ||
8112 | if test "$wxUSE_METAFILE" = yes; then | |
8113 | echo "$ac_t""yes" 1>&6 | |
8114 | else | |
8115 | echo "$ac_t""no" 1>&6 | |
8116 | fi | |
8117 | ||
8118 | ||
24fd6d87 | 8119 | echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6 |
009fead0 | 8120 | echo "configure:8121: checking for --enable-dragimage" >&5 |
24fd6d87 VZ |
8121 | no_cache=0 |
8122 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
8123 | if test "${enable_dragimage+set}" = set; then | |
8124 | enableval="$enable_dragimage" | |
8125 | ||
8126 | if test "$enableval" = yes; then | |
8127 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
8128 | else | |
8129 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
8130 | fi | |
8131 | ||
8132 | else | |
8133 | ||
8134 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
8135 | if test "x$LINE" != x ; then | |
8136 | eval "DEFAULT_$LINE" | |
8137 | else | |
8138 | no_cache=1 | |
8139 | fi | |
8140 | ||
8141 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
8142 | ||
8143 | fi | |
8144 | ||
8145 | ||
8146 | eval "$ac_cv_use_dragimage" | |
8147 | if test "$no_cache" != 1; then | |
8148 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
8149 | fi | |
8150 | ||
8151 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
8152 | echo "$ac_t""yes" 1>&6 | |
8153 | else | |
8154 | echo "$ac_t""no" 1>&6 | |
8155 | fi | |
8156 | ||
8157 | ||
10f2d63a | 8158 | |
698dcdb6 | 8159 | |
edae8572 | 8160 | echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6 |
009fead0 | 8161 | echo "configure:8162: checking for --enable-palette" >&5 |
edae8572 VZ |
8162 | no_cache=0 |
8163 | # Check whether --enable-palette or --disable-palette was given. | |
8164 | if test "${enable_palette+set}" = set; then | |
8165 | enableval="$enable_palette" | |
8166 | ||
8167 | if test "$enableval" = yes; then | |
8168 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
8169 | else | |
8170 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
8171 | fi | |
8172 | ||
8173 | else | |
8174 | ||
8175 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` | |
8176 | if test "x$LINE" != x ; then | |
8177 | eval "DEFAULT_$LINE" | |
8178 | else | |
8179 | no_cache=1 | |
8180 | fi | |
8181 | ||
8182 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
8183 | ||
8184 | fi | |
8185 | ||
8186 | ||
8187 | eval "$ac_cv_use_palette" | |
8188 | if test "$no_cache" != 1; then | |
8189 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
8190 | fi | |
8191 | ||
8192 | if test "$wxUSE_PALETTE" = yes; then | |
8193 | echo "$ac_t""yes" 1>&6 | |
8194 | else | |
8195 | echo "$ac_t""no" 1>&6 | |
8196 | fi | |
8197 | ||
8198 | ||
698dcdb6 | 8199 | echo $ac_n "checking for --enable-image""... $ac_c" 1>&6 |
009fead0 | 8200 | echo "configure:8201: checking for --enable-image" >&5 |
0046ff7c VS |
8201 | no_cache=0 |
8202 | # Check whether --enable-image or --disable-image was given. | |
8203 | if test "${enable_image+set}" = set; then | |
8204 | enableval="$enable_image" | |
698dcdb6 | 8205 | |
0046ff7c VS |
8206 | if test "$enableval" = yes; then |
8207 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
8208 | else | |
8209 | ac_cv_use_image='wxUSE_IMAGE=no' | |
8210 | fi | |
698dcdb6 | 8211 | |
0046ff7c | 8212 | else |
698dcdb6 | 8213 | |
0046ff7c VS |
8214 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` |
8215 | if test "x$LINE" != x ; then | |
8216 | eval "DEFAULT_$LINE" | |
8217 | else | |
8218 | no_cache=1 | |
8219 | fi | |
8220 | ||
8221 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
698dcdb6 VZ |
8222 | |
8223 | fi | |
0046ff7c VS |
8224 | |
8225 | ||
8226 | eval "$ac_cv_use_image" | |
8227 | if test "$no_cache" != 1; then | |
8228 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
8229 | fi | |
8230 | ||
8231 | if test "$wxUSE_IMAGE" = yes; then | |
698dcdb6 | 8232 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 8233 | else |
698dcdb6 | 8234 | echo "$ac_t""no" 1>&6 |
0046ff7c | 8235 | fi |
698dcdb6 | 8236 | |
0046ff7c | 8237 | |
698dcdb6 | 8238 | echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6 |
009fead0 | 8239 | echo "configure:8240: checking for --enable-gif" >&5 |
10f2d63a VZ |
8240 | no_cache=0 |
8241 | # Check whether --enable-gif or --disable-gif was given. | |
8242 | if test "${enable_gif+set}" = set; then | |
8243 | enableval="$enable_gif" | |
698dcdb6 | 8244 | |
10f2d63a VZ |
8245 | if test "$enableval" = yes; then |
8246 | ac_cv_use_gif='wxUSE_GIF=yes' | |
8247 | else | |
8248 | ac_cv_use_gif='wxUSE_GIF=no' | |
8249 | fi | |
698dcdb6 | 8250 | |
10f2d63a | 8251 | else |
698dcdb6 | 8252 | |
10f2d63a VZ |
8253 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` |
8254 | if test "x$LINE" != x ; then | |
8255 | eval "DEFAULT_$LINE" | |
8256 | else | |
8257 | no_cache=1 | |
8258 | fi | |
8259 | ||
8260 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
698dcdb6 VZ |
8261 | |
8262 | fi | |
10f2d63a VZ |
8263 | |
8264 | ||
8265 | eval "$ac_cv_use_gif" | |
8266 | if test "$no_cache" != 1; then | |
8267 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
8268 | fi | |
8269 | ||
8270 | if test "$wxUSE_GIF" = yes; then | |
698dcdb6 | 8271 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8272 | else |
698dcdb6 | 8273 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8274 | fi |
698dcdb6 | 8275 | |
10f2d63a | 8276 | |
698dcdb6 | 8277 | echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6 |
009fead0 | 8278 | echo "configure:8279: checking for --enable-pcx" >&5 |
10f2d63a VZ |
8279 | no_cache=0 |
8280 | # Check whether --enable-pcx or --disable-pcx was given. | |
8281 | if test "${enable_pcx+set}" = set; then | |
8282 | enableval="$enable_pcx" | |
698dcdb6 | 8283 | |
10f2d63a VZ |
8284 | if test "$enableval" = yes; then |
8285 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
8286 | else | |
8287 | ac_cv_use_pcx='wxUSE_PCX=no' | |
8288 | fi | |
698dcdb6 | 8289 | |
10f2d63a | 8290 | else |
698dcdb6 | 8291 | |
10f2d63a VZ |
8292 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` |
8293 | if test "x$LINE" != x ; then | |
8294 | eval "DEFAULT_$LINE" | |
8295 | else | |
8296 | no_cache=1 | |
8297 | fi | |
8298 | ||
8299 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
698dcdb6 VZ |
8300 | |
8301 | fi | |
10f2d63a VZ |
8302 | |
8303 | ||
8304 | eval "$ac_cv_use_pcx" | |
8305 | if test "$no_cache" != 1; then | |
8306 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
8307 | fi | |
8308 | ||
8309 | if test "$wxUSE_PCX" = yes; then | |
698dcdb6 | 8310 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8311 | else |
698dcdb6 | 8312 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8313 | fi |
698dcdb6 | 8314 | |
10f2d63a | 8315 | |
4b6b4dfc | 8316 | echo $ac_n "checking for --enable-iff""... $ac_c" 1>&6 |
009fead0 | 8317 | echo "configure:8318: checking for --enable-iff" >&5 |
4b6b4dfc RR |
8318 | no_cache=0 |
8319 | # Check whether --enable-iff or --disable-iff was given. | |
8320 | if test "${enable_iff+set}" = set; then | |
8321 | enableval="$enable_iff" | |
8322 | ||
8323 | if test "$enableval" = yes; then | |
8324 | ac_cv_use_iff='wxUSE_IFF=yes' | |
8325 | else | |
8326 | ac_cv_use_iff='wxUSE_IFF=no' | |
8327 | fi | |
8328 | ||
8329 | else | |
8330 | ||
8331 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` | |
8332 | if test "x$LINE" != x ; then | |
8333 | eval "DEFAULT_$LINE" | |
8334 | else | |
8335 | no_cache=1 | |
8336 | fi | |
8337 | ||
8338 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
8339 | ||
8340 | fi | |
8341 | ||
8342 | ||
8343 | eval "$ac_cv_use_iff" | |
8344 | if test "$no_cache" != 1; then | |
8345 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
8346 | fi | |
8347 | ||
8348 | if test "$wxUSE_IFF" = yes; then | |
8349 | echo "$ac_t""yes" 1>&6 | |
8350 | else | |
8351 | echo "$ac_t""no" 1>&6 | |
8352 | fi | |
8353 | ||
8354 | ||
698dcdb6 | 8355 | echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6 |
009fead0 | 8356 | echo "configure:8357: checking for --enable-pnm" >&5 |
10f2d63a VZ |
8357 | no_cache=0 |
8358 | # Check whether --enable-pnm or --disable-pnm was given. | |
8359 | if test "${enable_pnm+set}" = set; then | |
8360 | enableval="$enable_pnm" | |
698dcdb6 | 8361 | |
10f2d63a VZ |
8362 | if test "$enableval" = yes; then |
8363 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
8364 | else | |
8365 | ac_cv_use_pnm='wxUSE_PNM=no' | |
8366 | fi | |
698dcdb6 | 8367 | |
10f2d63a | 8368 | else |
698dcdb6 | 8369 | |
10f2d63a VZ |
8370 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` |
8371 | if test "x$LINE" != x ; then | |
8372 | eval "DEFAULT_$LINE" | |
8373 | else | |
8374 | no_cache=1 | |
8375 | fi | |
8376 | ||
8377 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
698dcdb6 VZ |
8378 | |
8379 | fi | |
10f2d63a VZ |
8380 | |
8381 | ||
8382 | eval "$ac_cv_use_pnm" | |
8383 | if test "$no_cache" != 1; then | |
8384 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
8385 | fi | |
8386 | ||
8387 | if test "$wxUSE_PNM" = yes; then | |
698dcdb6 | 8388 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8389 | else |
698dcdb6 | 8390 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8391 | fi |
698dcdb6 | 8392 | |
10f2d63a | 8393 | |
69d27ff7 | 8394 | echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6 |
009fead0 | 8395 | echo "configure:8396: checking for --enable-xpm" >&5 |
0046ff7c | 8396 | no_cache=0 |
69d27ff7 MB |
8397 | # Check whether --enable-xpm or --disable-xpm was given. |
8398 | if test "${enable_xpm+set}" = set; then | |
8399 | enableval="$enable_xpm" | |
698dcdb6 | 8400 | |
0046ff7c | 8401 | if test "$enableval" = yes; then |
69d27ff7 | 8402 | ac_cv_use_xpm='wxUSE_XPM=yes' |
0046ff7c | 8403 | else |
69d27ff7 | 8404 | ac_cv_use_xpm='wxUSE_XPM=no' |
0046ff7c | 8405 | fi |
698dcdb6 | 8406 | |
0046ff7c | 8407 | else |
698dcdb6 | 8408 | |
0046ff7c VS |
8409 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` |
8410 | if test "x$LINE" != x ; then | |
8411 | eval "DEFAULT_$LINE" | |
8412 | else | |
8413 | no_cache=1 | |
8414 | fi | |
8415 | ||
69d27ff7 | 8416 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM |
698dcdb6 VZ |
8417 | |
8418 | fi | |
0046ff7c VS |
8419 | |
8420 | ||
69d27ff7 | 8421 | eval "$ac_cv_use_xpm" |
0046ff7c | 8422 | if test "$no_cache" != 1; then |
69d27ff7 | 8423 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp |
0046ff7c VS |
8424 | fi |
8425 | ||
8426 | if test "$wxUSE_XPM" = yes; then | |
698dcdb6 | 8427 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 8428 | else |
698dcdb6 | 8429 | echo "$ac_t""no" 1>&6 |
0046ff7c | 8430 | fi |
698dcdb6 | 8431 | |
0046ff7c | 8432 | |
c7206e64 | 8433 | echo $ac_n "checking for --enable-ico_cur""... $ac_c" 1>&6 |
009fead0 | 8434 | echo "configure:8435: checking for --enable-ico_cur" >&5 |
658974ae | 8435 | no_cache=0 |
c7206e64 VS |
8436 | # Check whether --enable-ico_cur or --disable-ico_cur was given. |
8437 | if test "${enable_ico_cur+set}" = set; then | |
8438 | enableval="$enable_ico_cur" | |
658974ae VS |
8439 | |
8440 | if test "$enableval" = yes; then | |
c7206e64 | 8441 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' |
658974ae | 8442 | else |
c7206e64 | 8443 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' |
658974ae VS |
8444 | fi |
8445 | ||
8446 | else | |
8447 | ||
8448 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` | |
8449 | if test "x$LINE" != x ; then | |
8450 | eval "DEFAULT_$LINE" | |
8451 | else | |
8452 | no_cache=1 | |
8453 | fi | |
8454 | ||
c7206e64 | 8455 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR |
658974ae VS |
8456 | |
8457 | fi | |
8458 | ||
8459 | ||
c7206e64 | 8460 | eval "$ac_cv_use_ico_cur" |
658974ae | 8461 | if test "$no_cache" != 1; then |
c7206e64 | 8462 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp |
658974ae VS |
8463 | fi |
8464 | ||
8465 | if test "$wxUSE_ICO_CUR" = yes; then | |
8466 | echo "$ac_t""yes" 1>&6 | |
8467 | else | |
8468 | echo "$ac_t""no" 1>&6 | |
8469 | fi | |
8470 | ||
8471 | ||
b12915c1 VZ |
8472 | fi |
8473 | ||
d558c907 VS |
8474 | case "${host}" in |
8475 | *-pc-os2_emx | *-pc-os2-emx ) | |
8476 | LEX_STEM="lexyy" | |
8477 | ;; | |
8478 | *) | |
8479 | PATH_IFS=':' | |
8480 | LEX_STEM="lex.yy" | |
8481 | ;; | |
8482 | esac | |
8483 | ||
8484 | ||
698dcdb6 | 8485 | |
10f2d63a VZ |
8486 | echo "saving argument cache $wx_arg_cache_file" |
8487 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
698dcdb6 | 8488 | |
10f2d63a | 8489 | |
698dcdb6 VZ |
8490 | |
8491 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 | |
009fead0 | 8492 | echo "configure:8493: checking for toolkit" >&5 |
10f2d63a VZ |
8493 | |
8494 | if test "$wxUSE_GUI" = "yes"; then | |
8495 | ||
3a922bb4 RL |
8496 | if test "$USE_BEOS" = 1; then |
8497 | { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; } | |
8498 | fi | |
b12915c1 | 8499 | |
3a922bb4 RL |
8500 | if test "$TOOLKIT_GIVEN" = 1; then |
8501 | for toolkit in `echo $ALL_TOOLKITS`; do | |
8502 | var=wxUSE_$toolkit | |
8503 | eval "value=\$${var}" | |
8504 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
8505 | done | |
10f2d63a | 8506 | else |
3a922bb4 RL |
8507 | for toolkit in `echo $ALL_TOOLKITS`; do |
8508 | if test "$has_toolkit_in_cache" != 1; then | |
8509 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
8510 | else | |
8511 | var=DEFAULT_wxUSE_$toolkit | |
8512 | fi | |
8513 | eval "wxUSE_$toolkit=\$${var}" | |
8514 | done | |
10f2d63a | 8515 | fi |
10f2d63a | 8516 | |
3a922bb4 | 8517 | NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \ |
f79bd02d | 8518 | + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}` |
10f2d63a | 8519 | |
d558c907 | 8520 | case "${host}" in |
6fa882bd | 8521 | *-pc-os2_emx | *-pc-os2-emx ) |
3a922bb4 | 8522 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` |
3a922bb4 | 8523 | esac |
10f2d63a | 8524 | |
3a922bb4 RL |
8525 | case "$NUM_TOOLKITS" in |
8526 | 1) | |
8527 | ;; | |
8528 | 0) | |
8529 | { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; } | |
8530 | ;; | |
8531 | *) | |
8532 | { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; } | |
8533 | esac | |
10f2d63a | 8534 | |
3a922bb4 RL |
8535 | for toolkit in `echo $ALL_TOOLKITS`; do |
8536 | var=wxUSE_$toolkit | |
8537 | eval "value=\$${var}" | |
8538 | if test "x$value" != x; then | |
8539 | cache_var=CACHE_$toolkit | |
8540 | eval "cache=\$${cache_var}" | |
8541 | if test "$cache" = 1; then | |
8542 | echo "$var=$value" >> ${wx_arg_cache_file} | |
8543 | fi | |
8544 | if test "$value" = 1; then | |
8545 | toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]` | |
8546 | echo "$ac_t""$toolkit_echo" 1>&6 | |
8547 | fi | |
8548 | fi | |
8549 | done | |
10f2d63a | 8550 | else |
3a922bb4 | 8551 | echo "$ac_t""base ($host_alias hosted) only" 1>&6 |
10f2d63a VZ |
8552 | fi |
8553 | ||
698dcdb6 VZ |
8554 | |
8555 | cat > confcache <<\EOF | |
10f2d63a VZ |
8556 | # This file is a shell script that caches the results of configure |
8557 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
8558 | # scripts and configure runs. It is not useful on other systems. |
8559 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 8560 | # |
698dcdb6 VZ |
8561 | # By default, configure uses ./config.cache as the cache file, |
8562 | # creating it if it does not exist already. You can give configure | |
8563 | # the --cache-file=FILE option to use a different cache file; that is | |
8564 | # what configure does when it calls configure scripts in | |
8565 | # subdirectories, so they share the cache. | |
8566 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
8567 | # config.status only pays attention to the cache file if you give it the | |
8568 | # --recheck option to rerun configure. | |
10f2d63a | 8569 | # |
698dcdb6 | 8570 | EOF |
10f2d63a VZ |
8571 | # The following way of writing the cache mishandles newlines in values, |
8572 | # but we know of no workaround that is simple, portable, and efficient. | |
8573 | # So, don't put newlines in cache variables' values. | |
8574 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
8575 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
8576 | (set) 2>&1 | |
8577 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
8578 | *ac_space=\ *) | |
8579 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
8580 | # turns \\\\ into \\, and sed turns \\ into \). | |
8581 | sed -n \ | |
8582 | -e "s/'/'\\\\''/g" \ | |
8583 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
8584 | ;; | |
8585 | *) | |
8586 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
8587 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
8588 | ;; | |
8589 | esac >> confcache | |
8590 | if cmp -s $cache_file confcache; then | |
8591 | : | |
8592 | else | |
10f2d63a | 8593 | if test -w $cache_file; then |
698dcdb6 VZ |
8594 | echo "updating cache $cache_file" |
8595 | cat confcache > $cache_file | |
10f2d63a VZ |
8596 | else |
8597 | echo "not updating unwritable cache $cache_file" | |
8598 | fi | |
8599 | fi | |
8600 | rm -f confcache | |
8601 | ||
698dcdb6 | 8602 | |
e59890c3 | 8603 | if test "$build" != "$host" ; then |
9d353d4a | 8604 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then |
3a922bb4 RL |
8605 | CC=$host_alias-gcc |
8606 | CXX=$host_alias-c++ | |
8607 | AR=$host_alias-ar | |
8608 | RANLIB=$host_alias-ranlib | |
8609 | DLLTOOL=$host_alias-dlltool | |
8610 | RESCOMP=$host_alias-windres | |
8611 | LD=$host_alias-ld | |
8612 | NM=$host_alias-nm | |
8613 | STRIP=$host_alias-strip | |
8614 | else | |
8615 | { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; } | |
8616 | fi | |
10f2d63a VZ |
8617 | fi |
8618 | ||
698dcdb6 | 8619 | # Extract the first word of "gcc", so it can be a program name with args. |
1e487827 | 8620 | set dummy gcc; ac_word=$2 |
698dcdb6 | 8621 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
009fead0 | 8622 | echo "configure:8623: checking for $ac_word" >&5 |
698dcdb6 VZ |
8623 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8624 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6232543b VS |
8625 | else |
8626 | if test -n "$CC"; then | |
8627 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10f2d63a | 8628 | else |
698dcdb6 VZ |
8629 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8630 | ac_dummy="$PATH" | |
8631 | for ac_dir in $ac_dummy; do | |
8632 | test -z "$ac_dir" && ac_dir=. | |
8633 | if test -f $ac_dir/$ac_word; then | |
8634 | ac_cv_prog_CC="gcc" | |
8635 | break | |
8636 | fi | |
8637 | done | |
8638 | IFS="$ac_save_ifs" | |
10f2d63a | 8639 | fi |
6232543b | 8640 | fi |
698dcdb6 | 8641 | CC="$ac_cv_prog_CC" |
6232543b | 8642 | if test -n "$CC"; then |
698dcdb6 | 8643 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 8644 | else |
698dcdb6 | 8645 | echo "$ac_t""no" 1>&6 |
1e487827 | 8646 | fi |
6232543b | 8647 | |
1e487827 VS |
8648 | if test -z "$CC"; then |
8649 | # Extract the first word of "cc", so it can be a program name with args. | |
8650 | set dummy cc; ac_word=$2 | |
698dcdb6 | 8651 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
009fead0 | 8652 | echo "configure:8653: checking for $ac_word" >&5 |
698dcdb6 VZ |
8653 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8654 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 VS |
8655 | else |
8656 | if test -n "$CC"; then | |
8657 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
8658 | else | |
698dcdb6 | 8659 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1e487827 | 8660 | ac_prog_rejected=no |
698dcdb6 VZ |
8661 | ac_dummy="$PATH" |
8662 | for ac_dir in $ac_dummy; do | |
8663 | test -z "$ac_dir" && ac_dir=. | |
8664 | if test -f $ac_dir/$ac_word; then | |
8665 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
8666 | ac_prog_rejected=yes | |
8667 | continue | |
8668 | fi | |
8669 | ac_cv_prog_CC="cc" | |
8670 | break | |
8671 | fi | |
8672 | done | |
8673 | IFS="$ac_save_ifs" | |
1e487827 VS |
8674 | if test $ac_prog_rejected = yes; then |
8675 | # We found a bogon in the path, so make sure we never use it. | |
8676 | set dummy $ac_cv_prog_CC | |
8677 | shift | |
698dcdb6 | 8678 | if test $# -gt 0; then |
1e487827 VS |
8679 | # We chose a different compiler from the bogus one. |
8680 | # However, it has the same basename, so the bogon will be chosen | |
8681 | # first if we set CC to just the basename; use the full file name. | |
8682 | shift | |
698dcdb6 | 8683 | set dummy "$ac_dir/$ac_word" "$@" |
1e487827 VS |
8684 | shift |
8685 | ac_cv_prog_CC="$@" | |
703e0a69 | 8686 | fi |
1e487827 VS |
8687 | fi |
8688 | fi | |
8689 | fi | |
698dcdb6 | 8690 | CC="$ac_cv_prog_CC" |
1e487827 | 8691 | if test -n "$CC"; then |
698dcdb6 | 8692 | echo "$ac_t""$CC" 1>&6 |
703e0a69 | 8693 | else |
698dcdb6 | 8694 | echo "$ac_t""no" 1>&6 |
703e0a69 | 8695 | fi |
1e487827 | 8696 | |
698dcdb6 VZ |
8697 | if test -z "$CC"; then |
8698 | case "`uname -s`" in | |
8699 | *win32* | *WIN32*) | |
8700 | # Extract the first word of "cl", so it can be a program name with args. | |
8701 | set dummy cl; ac_word=$2 | |
8702 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
009fead0 | 8703 | echo "configure:8704: checking for $ac_word" >&5 |
698dcdb6 VZ |
8704 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8705 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 VS |
8706 | else |
8707 | if test -n "$CC"; then | |
8708 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
703e0a69 | 8709 | else |
698dcdb6 VZ |
8710 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8711 | ac_dummy="$PATH" | |
8712 | for ac_dir in $ac_dummy; do | |
8713 | test -z "$ac_dir" && ac_dir=. | |
8714 | if test -f $ac_dir/$ac_word; then | |
8715 | ac_cv_prog_CC="cl" | |
8716 | break | |
8717 | fi | |
8718 | done | |
8719 | IFS="$ac_save_ifs" | |
703e0a69 | 8720 | fi |
1e487827 | 8721 | fi |
698dcdb6 | 8722 | CC="$ac_cv_prog_CC" |
1e487827 | 8723 | if test -n "$CC"; then |
698dcdb6 | 8724 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 8725 | else |
698dcdb6 | 8726 | echo "$ac_t""no" 1>&6 |
1e487827 | 8727 | fi |
698dcdb6 VZ |
8728 | ;; |
8729 | esac | |
8730 | fi | |
8731 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
1e487827 VS |
8732 | fi |
8733 | ||
698dcdb6 | 8734 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
009fead0 | 8735 | echo "configure:8736: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
1e487827 | 8736 | |
698dcdb6 VZ |
8737 | ac_ext=c |
8738 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8739 | ac_cpp='$CPP $CPPFLAGS' | |
8740 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8741 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8742 | cross_compiling=$ac_cv_prog_cc_cross | |
6232543b | 8743 | |
698dcdb6 | 8744 | cat > conftest.$ac_ext << EOF |
1e487827 | 8745 | |
009fead0 | 8746 | #line 8747 "configure" |
1e487827 VS |
8747 | #include "confdefs.h" |
8748 | ||
698dcdb6 VZ |
8749 | main(){return(0);} |
8750 | EOF | |
009fead0 | 8751 | if { (eval echo configure:8752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
8752 | ac_cv_prog_cc_works=yes |
8753 | # If we can't run a trivial program, we are probably using a cross compiler. | |
8754 | if (./conftest; exit) 2>/dev/null; then | |
8755 | ac_cv_prog_cc_cross=no | |
8756 | else | |
8757 | ac_cv_prog_cc_cross=yes | |
8758 | fi | |
8759 | else | |
8760 | echo "configure: failed program was:" >&5 | |
8761 | cat conftest.$ac_ext >&5 | |
8762 | ac_cv_prog_cc_works=no | |
8763 | fi | |
8764 | rm -fr conftest* | |
8765 | ac_ext=c | |
8766 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8767 | ac_cpp='$CPP $CPPFLAGS' | |
8768 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8769 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8770 | cross_compiling=$ac_cv_prog_cc_cross | |
8771 | ||
8772 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
8773 | if test $ac_cv_prog_cc_works = no; then | |
8774 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
8775 | fi | |
8776 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
009fead0 | 8777 | echo "configure:8778: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
698dcdb6 VZ |
8778 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
8779 | cross_compiling=$ac_cv_prog_cc_cross | |
8780 | ||
8781 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
009fead0 | 8782 | echo "configure:8783: checking whether we are using GNU C" >&5 |
698dcdb6 VZ |
8783 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
8784 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8785 | else | |
8786 | cat > conftest.c <<EOF | |
8787 | #ifdef __GNUC__ | |
8788 | yes; | |
1e487827 | 8789 | #endif |
698dcdb6 | 8790 | EOF |
009fead0 | 8791 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8792: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
698dcdb6 VZ |
8792 | ac_cv_prog_gcc=yes |
8793 | else | |
8794 | ac_cv_prog_gcc=no | |
8795 | fi | |
8796 | fi | |
1e487827 | 8797 | |
698dcdb6 | 8798 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
1e487827 | 8799 | |
698dcdb6 VZ |
8800 | if test $ac_cv_prog_gcc = yes; then |
8801 | GCC=yes | |
8802 | else | |
8803 | GCC= | |
8804 | fi | |
1e487827 | 8805 | |
698dcdb6 VZ |
8806 | ac_test_CFLAGS="${CFLAGS+set}" |
8807 | ac_save_CFLAGS="$CFLAGS" | |
8808 | CFLAGS= | |
8809 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
009fead0 | 8810 | echo "configure:8811: checking whether ${CC-cc} accepts -g" >&5 |
698dcdb6 VZ |
8811 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
8812 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8813 | else | |
8814 | echo 'void f(){}' > conftest.c | |
8815 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
10f2d63a VZ |
8816 | ac_cv_prog_cc_g=yes |
8817 | else | |
698dcdb6 | 8818 | ac_cv_prog_cc_g=no |
10f2d63a | 8819 | fi |
698dcdb6 VZ |
8820 | rm -f conftest* |
8821 | ||
10f2d63a | 8822 | fi |
698dcdb6 VZ |
8823 | |
8824 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
10f2d63a | 8825 | if test "$ac_test_CFLAGS" = set; then |
698dcdb6 | 8826 | CFLAGS="$ac_save_CFLAGS" |
10f2d63a VZ |
8827 | elif test $ac_cv_prog_cc_g = yes; then |
8828 | if test "$GCC" = yes; then | |
8829 | CFLAGS="-g -O2" | |
8830 | else | |
8831 | CFLAGS="-g" | |
8832 | fi | |
8833 | else | |
8834 | if test "$GCC" = yes; then | |
8835 | CFLAGS="-O2" | |
8836 | else | |
8837 | CFLAGS= | |
8838 | fi | |
8839 | fi | |
8840 | ||
8841 | ||
698dcdb6 | 8842 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
009fead0 | 8843 | echo "configure:8844: checking how to run the C preprocessor" >&5 |
10f2d63a VZ |
8844 | # On Suns, sometimes $CPP names a directory. |
8845 | if test -n "$CPP" && test -d "$CPP"; then | |
8846 | CPP= | |
8847 | fi | |
8848 | if test -z "$CPP"; then | |
698dcdb6 VZ |
8849 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
8850 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8851 | else | |
8852 | # This must be in double quotes, not single quotes, because CPP may get | |
8853 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
8854 | CPP="${CC-cc} -E" | |
10f2d63a | 8855 | # On the NeXT, cc -E runs the code through the compiler's parser, |
698dcdb6 VZ |
8856 | # not just through cpp. |
8857 | cat > conftest.$ac_ext <<EOF | |
009fead0 | 8858 | #line 8859 "configure" |
10f2d63a VZ |
8859 | #include "confdefs.h" |
8860 | #include <assert.h> | |
698dcdb6 VZ |
8861 | Syntax Error |
8862 | EOF | |
8863 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
009fead0 | 8864 | { (eval echo configure:8865: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8865 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8866 | if test -z "$ac_err"; then | |
10f2d63a VZ |
8867 | : |
8868 | else | |
698dcdb6 VZ |
8869 | echo "$ac_err" >&5 |
8870 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8871 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8872 | rm -rf conftest* |
8873 | CPP="${CC-cc} -E -traditional-cpp" | |
8874 | cat > conftest.$ac_ext <<EOF | |
009fead0 | 8875 | #line 8876 "configure" |
10f2d63a | 8876 | #include "confdefs.h" |
698dcdb6 VZ |
8877 | #include <assert.h> |
8878 | Syntax Error | |
8879 | EOF | |
8880 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
009fead0 | 8881 | { (eval echo configure:8882: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8882 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8883 | if test -z "$ac_err"; then | |
8884 | : | |
10f2d63a | 8885 | else |
698dcdb6 VZ |
8886 | echo "$ac_err" >&5 |
8887 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8888 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8889 | rm -rf conftest* |
8890 | CPP="${CC-cc} -nologo -E" | |
8891 | cat > conftest.$ac_ext <<EOF | |
009fead0 | 8892 | #line 8893 "configure" |
10f2d63a VZ |
8893 | #include "confdefs.h" |
8894 | #include <assert.h> | |
698dcdb6 VZ |
8895 | Syntax Error |
8896 | EOF | |
8897 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
009fead0 | 8898 | { (eval echo configure:8899: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8899 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8900 | if test -z "$ac_err"; then | |
10f2d63a VZ |
8901 | : |
8902 | else | |
698dcdb6 VZ |
8903 | echo "$ac_err" >&5 |
8904 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8905 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8906 | rm -rf conftest* |
8907 | CPP=/lib/cpp | |
10f2d63a | 8908 | fi |
698dcdb6 | 8909 | rm -f conftest* |
10f2d63a | 8910 | fi |
698dcdb6 | 8911 | rm -f conftest* |
703e0a69 | 8912 | fi |
698dcdb6 VZ |
8913 | rm -f conftest* |
8914 | ac_cv_prog_CPP="$CPP" | |
8915 | fi | |
8916 | CPP="$ac_cv_prog_CPP" | |
10f2d63a | 8917 | else |
698dcdb6 | 8918 | ac_cv_prog_CPP="$CPP" |
10f2d63a | 8919 | fi |
698dcdb6 | 8920 | echo "$ac_t""$CPP" 1>&6 |
10f2d63a | 8921 | |
698dcdb6 VZ |
8922 | if test $ac_cv_prog_gcc = yes; then |
8923 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
009fead0 | 8924 | echo "configure:8925: checking whether ${CC-cc} needs -traditional" >&5 |
698dcdb6 VZ |
8925 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
8926 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8927 | else |
8928 | ac_pattern="Autoconf.*'x'" | |
698dcdb6 | 8929 | cat > conftest.$ac_ext <<EOF |
009fead0 | 8930 | #line 8931 "configure" |
10f2d63a VZ |
8931 | #include "confdefs.h" |
8932 | #include <sgtty.h> | |
8933 | Autoconf TIOCGETP | |
698dcdb6 | 8934 | EOF |
10f2d63a VZ |
8935 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8936 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
698dcdb6 | 8937 | rm -rf conftest* |
10f2d63a VZ |
8938 | ac_cv_prog_gcc_traditional=yes |
8939 | else | |
698dcdb6 | 8940 | rm -rf conftest* |
10f2d63a VZ |
8941 | ac_cv_prog_gcc_traditional=no |
8942 | fi | |
8943 | rm -f conftest* | |
8944 | ||
698dcdb6 | 8945 | |
10f2d63a | 8946 | if test $ac_cv_prog_gcc_traditional = no; then |
698dcdb6 | 8947 | cat > conftest.$ac_ext <<EOF |
009fead0 | 8948 | #line 8949 "configure" |
10f2d63a VZ |
8949 | #include "confdefs.h" |
8950 | #include <termio.h> | |
8951 | Autoconf TCGETA | |
698dcdb6 | 8952 | EOF |
10f2d63a VZ |
8953 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8954 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
698dcdb6 | 8955 | rm -rf conftest* |
10f2d63a VZ |
8956 | ac_cv_prog_gcc_traditional=yes |
8957 | fi | |
8958 | rm -f conftest* | |
8959 | ||
8960 | fi | |
8961 | fi | |
698dcdb6 VZ |
8962 | |
8963 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
10f2d63a VZ |
8964 | if test $ac_cv_prog_gcc_traditional = yes; then |
8965 | CC="$CC -traditional" | |
8966 | fi | |
8967 | fi | |
8968 | ||
703e0a69 | 8969 | |
698dcdb6 VZ |
8970 | |
8971 | ac_ext=C | |
8972 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 8973 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
8974 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
8975 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8976 | cross_compiling=$ac_cv_prog_cxx_cross | |
8977 | ||
8978 | ||
8979 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | |
8980 | do | |
8981 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
8982 | set dummy $ac_prog; ac_word=$2 | |
8983 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
009fead0 | 8984 | echo "configure:8985: checking for $ac_word" >&5 |
698dcdb6 VZ |
8985 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
8986 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8987 | else |
8988 | if test -n "$CXX"; then | |
8989 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
8990 | else | |
698dcdb6 VZ |
8991 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8992 | ac_dummy="$PATH" | |
8993 | for ac_dir in $ac_dummy; do | |
8994 | test -z "$ac_dir" && ac_dir=. | |
8995 | if test -f $ac_dir/$ac_word; then | |
8996 | ac_cv_prog_CXX="$ac_prog" | |
8997 | break | |
8998 | fi | |
8999 | done | |
9000 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9001 | fi |
9002 | fi | |
698dcdb6 | 9003 | CXX="$ac_cv_prog_CXX" |
10f2d63a | 9004 | if test -n "$CXX"; then |
698dcdb6 | 9005 | echo "$ac_t""$CXX" 1>&6 |
10f2d63a | 9006 | else |
698dcdb6 | 9007 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9008 | fi |
9009 | ||
698dcdb6 | 9010 | test -n "$CXX" && break |
10f2d63a | 9011 | done |
698dcdb6 | 9012 | test -n "$CXX" || CXX="gcc" |
10f2d63a VZ |
9013 | |
9014 | ||
698dcdb6 | 9015 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
009fead0 | 9016 | echo "configure:9017: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
10f2d63a | 9017 | |
698dcdb6 VZ |
9018 | ac_ext=C |
9019 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9020 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9021 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9022 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9023 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 9024 | |
698dcdb6 VZ |
9025 | cat > conftest.$ac_ext << EOF |
9026 | ||
009fead0 | 9027 | #line 9028 "configure" |
10f2d63a VZ |
9028 | #include "confdefs.h" |
9029 | ||
698dcdb6 VZ |
9030 | int main(){return(0);} |
9031 | EOF | |
009fead0 | 9032 | if { (eval echo configure:9033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9033 | ac_cv_prog_cxx_works=yes |
9034 | # If we can't run a trivial program, we are probably using a cross compiler. | |
9035 | if (./conftest; exit) 2>/dev/null; then | |
9036 | ac_cv_prog_cxx_cross=no | |
9037 | else | |
9038 | ac_cv_prog_cxx_cross=yes | |
9039 | fi | |
9040 | else | |
9041 | echo "configure: failed program was:" >&5 | |
9042 | cat conftest.$ac_ext >&5 | |
9043 | ac_cv_prog_cxx_works=no | |
9044 | fi | |
9045 | rm -fr conftest* | |
9046 | ac_ext=C | |
9047 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9048 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9049 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9050 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9051 | cross_compiling=$ac_cv_prog_cxx_cross | |
9052 | ||
9053 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 | |
9054 | if test $ac_cv_prog_cxx_works = no; then | |
9055 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
9056 | fi | |
9057 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
009fead0 | 9058 | echo "configure:9059: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
698dcdb6 VZ |
9059 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
9060 | cross_compiling=$ac_cv_prog_cxx_cross | |
9061 | ||
9062 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | |
009fead0 | 9063 | echo "configure:9064: checking whether we are using GNU C++" >&5 |
698dcdb6 VZ |
9064 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
9065 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9066 | else | |
9067 | cat > conftest.C <<EOF | |
9068 | #ifdef __GNUC__ | |
9069 | yes; | |
10f2d63a | 9070 | #endif |
698dcdb6 | 9071 | EOF |
009fead0 | 9072 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9073: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
698dcdb6 VZ |
9073 | ac_cv_prog_gxx=yes |
9074 | else | |
9075 | ac_cv_prog_gxx=no | |
9076 | fi | |
9077 | fi | |
10f2d63a | 9078 | |
698dcdb6 | 9079 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
10f2d63a | 9080 | |
698dcdb6 VZ |
9081 | if test $ac_cv_prog_gxx = yes; then |
9082 | GXX=yes | |
9083 | else | |
9084 | GXX= | |
9085 | fi | |
10f2d63a | 9086 | |
698dcdb6 VZ |
9087 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
9088 | ac_save_CXXFLAGS="$CXXFLAGS" | |
9089 | CXXFLAGS= | |
9090 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
009fead0 | 9091 | echo "configure:9092: checking whether ${CXX-g++} accepts -g" >&5 |
698dcdb6 VZ |
9092 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
9093 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9094 | else | |
9095 | echo 'void f(){}' > conftest.cc | |
9096 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
10f2d63a VZ |
9097 | ac_cv_prog_cxx_g=yes |
9098 | else | |
698dcdb6 | 9099 | ac_cv_prog_cxx_g=no |
10f2d63a | 9100 | fi |
698dcdb6 VZ |
9101 | rm -f conftest* |
9102 | ||
10f2d63a | 9103 | fi |
698dcdb6 VZ |
9104 | |
9105 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
10f2d63a | 9106 | if test "$ac_test_CXXFLAGS" = set; then |
698dcdb6 | 9107 | CXXFLAGS="$ac_save_CXXFLAGS" |
10f2d63a VZ |
9108 | elif test $ac_cv_prog_cxx_g = yes; then |
9109 | if test "$GXX" = yes; then | |
9110 | CXXFLAGS="-g -O2" | |
9111 | else | |
9112 | CXXFLAGS="-g" | |
9113 | fi | |
9114 | else | |
9115 | if test "$GXX" = yes; then | |
9116 | CXXFLAGS="-O2" | |
9117 | else | |
9118 | CXXFLAGS= | |
9119 | fi | |
9120 | fi | |
9121 | ||
9122 | ||
10f2d63a | 9123 | ac_ext=c |
698dcdb6 | 9124 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 9125 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
9126 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
9127 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9128 | cross_compiling=$ac_cv_prog_cc_cross | |
9129 | ||
9130 | ||
9131 | # Extract the first word of "ranlib", so it can be a program name with args. | |
9132 | set dummy ranlib; ac_word=$2 | |
9133 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
009fead0 | 9134 | echo "configure:9135: checking for $ac_word" >&5 |
698dcdb6 VZ |
9135 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
9136 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9137 | else |
9138 | if test -n "$RANLIB"; then | |
9139 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
9140 | else | |
698dcdb6 VZ |
9141 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9142 | ac_dummy="$PATH" | |
9143 | for ac_dir in $ac_dummy; do | |
9144 | test -z "$ac_dir" && ac_dir=. | |
9145 | if test -f $ac_dir/$ac_word; then | |
9146 | ac_cv_prog_RANLIB="ranlib" | |
9147 | break | |
9148 | fi | |
9149 | done | |
9150 | IFS="$ac_save_ifs" | |
9151 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
10f2d63a VZ |
9152 | fi |
9153 | fi | |
698dcdb6 | 9154 | RANLIB="$ac_cv_prog_RANLIB" |
10f2d63a | 9155 | if test -n "$RANLIB"; then |
698dcdb6 | 9156 | echo "$ac_t""$RANLIB" 1>&6 |
10f2d63a | 9157 | else |
698dcdb6 | 9158 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9159 | fi |
9160 | ||
9161 | ||
9162 | # Extract the first word of "ar", so it can be a program name with args. | |
9163 | set dummy ar; ac_word=$2 | |
698dcdb6 | 9164 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
009fead0 | 9165 | echo "configure:9166: checking for $ac_word" >&5 |
698dcdb6 VZ |
9166 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
9167 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9168 | else |
9169 | if test -n "$AR"; then | |
9170 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
9171 | else | |
698dcdb6 VZ |
9172 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9173 | ac_dummy="$PATH" | |
9174 | for ac_dir in $ac_dummy; do | |
9175 | test -z "$ac_dir" && ac_dir=. | |
9176 | if test -f $ac_dir/$ac_word; then | |
9177 | ac_cv_prog_AR="ar" | |
9178 | break | |
9179 | fi | |
9180 | done | |
9181 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9182 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
9183 | fi | |
9184 | fi | |
698dcdb6 | 9185 | AR="$ac_cv_prog_AR" |
10f2d63a | 9186 | if test -n "$AR"; then |
698dcdb6 | 9187 | echo "$ac_t""$AR" 1>&6 |
10f2d63a | 9188 | else |
698dcdb6 | 9189 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9190 | fi |
9191 | ||
698dcdb6 | 9192 | |
6054113a | 9193 | # Find a good install program. We prefer a C program (faster), |
10f2d63a VZ |
9194 | # so one script is as good as another. But avoid the broken or |
9195 | # incompatible versions: | |
9196 | # SysV /etc/install, /usr/sbin/install | |
9197 | # SunOS /usr/etc/install | |
9198 | # IRIX /sbin/install | |
9199 | # AIX /bin/install | |
9200 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
9201 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
9202 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
9203 | # ./install, which can be erroneously created by make from ./install.sh. | |
698dcdb6 | 9204 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
009fead0 | 9205 | echo "configure:9206: checking for a BSD compatible install" >&5 |
10f2d63a | 9206 | if test -z "$INSTALL"; then |
698dcdb6 VZ |
9207 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
9208 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 9209 | else |
698dcdb6 | 9210 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
10f2d63a VZ |
9211 | for ac_dir in $PATH; do |
9212 | # Account for people who put trailing slashes in PATH elements. | |
698dcdb6 VZ |
9213 | case "$ac_dir/" in |
9214 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
10f2d63a VZ |
9215 | *) |
9216 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
9217 | # Don't use installbsd from OSF since it installs stuff as root | |
9218 | # by default. | |
9219 | for ac_prog in ginstall scoinst install; do | |
698dcdb6 | 9220 | if test -f $ac_dir/$ac_prog; then |
10f2d63a | 9221 | if test $ac_prog = install && |
698dcdb6 | 9222 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
10f2d63a VZ |
9223 | # AIX install. It has an incompatible calling convention. |
9224 | : | |
9225 | else | |
9226 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
9227 | break 2 | |
9228 | fi | |
9229 | fi | |
9230 | done | |
9231 | ;; | |
9232 | esac | |
9233 | done | |
698dcdb6 | 9234 | IFS="$ac_save_IFS" |
10f2d63a VZ |
9235 | |
9236 | fi | |
9237 | if test "${ac_cv_path_install+set}" = set; then | |
698dcdb6 | 9238 | INSTALL="$ac_cv_path_install" |
10f2d63a VZ |
9239 | else |
9240 | # As a last resort, use the slow shell script. We don't cache a | |
9241 | # path for INSTALL within a source directory, because that will | |
9242 | # break other packages using the cache if that directory is | |
9243 | # removed, or if the path is relative. | |
698dcdb6 | 9244 | INSTALL="$ac_install_sh" |
10f2d63a VZ |
9245 | fi |
9246 | fi | |
698dcdb6 | 9247 | echo "$ac_t""$INSTALL" 1>&6 |
10f2d63a VZ |
9248 | |
9249 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
9250 | # It thinks the first close brace ends the variable substitution. | |
9251 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
9252 | ||
698dcdb6 | 9253 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
10f2d63a VZ |
9254 | |
9255 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
9256 | ||
6054113a GD |
9257 | case "${host}" in |
9258 | ||
b5853384 | 9259 | powerpc-*-darwin* ) |
eb99ae0b GD |
9260 | INSTALL_PROGRAM="cp -fp" |
9261 | INSTALL_DATA="cp -fp" | |
6054113a GD |
9262 | ;; |
9263 | *) | |
9264 | ;; | |
d6853540 | 9265 | esac |
698dcdb6 | 9266 | |
10f2d63a VZ |
9267 | # Extract the first word of "strip", so it can be a program name with args. |
9268 | set dummy strip; ac_word=$2 | |
698dcdb6 | 9269 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
009fead0 | 9270 | echo "configure:9271: checking for $ac_word" >&5 |
698dcdb6 VZ |
9271 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
9272 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9273 | else |
9274 | if test -n "$STRIP"; then | |
9275 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9276 | else | |
698dcdb6 VZ |
9277 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9278 | ac_dummy="$PATH" | |
9279 | for ac_dir in $ac_dummy; do | |
9280 | test -z "$ac_dir" && ac_dir=. | |
9281 | if test -f $ac_dir/$ac_word; then | |
9282 | ac_cv_prog_STRIP="strip" | |
9283 | break | |
9284 | fi | |
9285 | done | |
9286 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9287 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
9288 | fi | |
9289 | fi | |
698dcdb6 | 9290 | STRIP="$ac_cv_prog_STRIP" |
10f2d63a | 9291 | if test -n "$STRIP"; then |
698dcdb6 | 9292 | echo "$ac_t""$STRIP" 1>&6 |
10f2d63a | 9293 | else |
698dcdb6 | 9294 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9295 | fi |
9296 | ||
698dcdb6 | 9297 | |
414eab6d | 9298 | echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6 |
009fead0 | 9299 | echo "configure:9300: checking if make is GNU make" >&5 |
414eab6d VZ |
9300 | if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then |
9301 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9302 | else | |
9303 | ||
9304 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
d558c907 | 9305 | egrep -s GNU > /dev/null); then |
414eab6d VZ |
9306 | wx_cv_prog_makeisgnu="yes" |
9307 | else | |
9308 | wx_cv_prog_makeisgnu="no" | |
9309 | fi | |
9310 | ||
9311 | fi | |
9312 | ||
9313 | echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6 | |
9314 | ||
9315 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
9316 | IF_GNU_MAKE="" | |
9317 | else | |
9318 | IF_GNU_MAKE="#" | |
9319 | fi | |
9320 | ||
9321 | ||
9322 | ||
9323 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then | |
04e7a216 | 9324 | echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6 |
009fead0 | 9325 | echo "configure:9326: checking if make supports VPATH" >&5 |
04e7a216 VZ |
9326 | if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then |
9327 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9328 | else | |
9329 | ||
10f2d63a VZ |
9330 | cat - << EOF > confMake |
9331 | check : file | |
9332 | cp \$? \$@ | |
9333 | cp \$? final_file | |
9334 | EOF | |
9335 | ||
9336 | if test ! -d sub ; then | |
9337 | mkdir sub | |
9338 | fi | |
9339 | echo dummy > sub/file | |
f6bcfd97 | 9340 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
9341 | RESULT=$? |
9342 | rm -f sub/file check final_file confMake | |
9343 | rmdir sub | |
9344 | if test "$RESULT" = 0; then | |
04e7a216 | 9345 | wx_cv_prog_makevpath="yes" |
10f2d63a | 9346 | else |
04e7a216 VZ |
9347 | wx_cv_prog_makevpath="no" |
9348 | fi | |
9349 | ||
9350 | fi | |
9351 | ||
9352 | echo "$ac_t""$wx_cv_prog_makevpath" 1>&6 | |
9353 | ||
9354 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
9355 | { echo "configure: error: | |
1e487827 VS |
9356 | You need a make-utility that is able to use the variable |
9357 | VPATH correctly. | |
9358 | If your version of make does not support VPATH correctly, | |
9359 | please install GNU-make (possibly as gmake), and start | |
9360 | configure with the following command: | |
9361 | export MAKE=gmake; ./configure for sh-type shells | |
9362 | setenv MAKE gmake; ./configure for csh-type shells | |
9363 | Also please do remember to use gmake in this case every time | |
9364 | you are trying to compile. | |
698dcdb6 | 9365 | " 1>&2; exit 1; } |
414eab6d | 9366 | fi fi |
10f2d63a VZ |
9367 | for ac_prog in 'bison -y' byacc |
9368 | do | |
698dcdb6 | 9369 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
10f2d63a | 9370 | set dummy $ac_prog; ac_word=$2 |
698dcdb6 | 9371 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
009fead0 | 9372 | echo "configure:9373: checking for $ac_word" >&5 |
698dcdb6 VZ |
9373 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
9374 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9375 | else |
9376 | if test -n "$YACC"; then | |
9377 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
9378 | else | |
698dcdb6 VZ |
9379 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9380 | ac_dummy="$PATH" | |
9381 | for ac_dir in $ac_dummy; do | |
9382 | test -z "$ac_dir" && ac_dir=. | |
9383 | if test -f $ac_dir/$ac_word; then | |
9384 | ac_cv_prog_YACC="$ac_prog" | |
9385 | break | |
9386 | fi | |
9387 | done | |
9388 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9389 | fi |
9390 | fi | |
698dcdb6 | 9391 | YACC="$ac_cv_prog_YACC" |
10f2d63a | 9392 | if test -n "$YACC"; then |
698dcdb6 | 9393 | echo "$ac_t""$YACC" 1>&6 |
10f2d63a | 9394 | else |
698dcdb6 | 9395 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9396 | fi |
9397 | ||
698dcdb6 | 9398 | test -n "$YACC" && break |
10f2d63a VZ |
9399 | done |
9400 | test -n "$YACC" || YACC="yacc" | |
9401 | ||
698dcdb6 VZ |
9402 | |
9403 | # Extract the first word of "flex", so it can be a program name with args. | |
9404 | set dummy flex; ac_word=$2 | |
9405 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
009fead0 | 9406 | echo "configure:9407: checking for $ac_word" >&5 |
698dcdb6 VZ |
9407 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
9408 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9409 | else |
9410 | if test -n "$LEX"; then | |
9411 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
9412 | else | |
698dcdb6 VZ |
9413 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9414 | ac_dummy="$PATH" | |
9415 | for ac_dir in $ac_dummy; do | |
9416 | test -z "$ac_dir" && ac_dir=. | |
9417 | if test -f $ac_dir/$ac_word; then | |
9418 | ac_cv_prog_LEX="flex" | |
9419 | break | |
9420 | fi | |
9421 | done | |
9422 | IFS="$ac_save_ifs" | |
9423 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
10f2d63a VZ |
9424 | fi |
9425 | fi | |
698dcdb6 | 9426 | LEX="$ac_cv_prog_LEX" |
10f2d63a | 9427 | if test -n "$LEX"; then |
698dcdb6 | 9428 | echo "$ac_t""$LEX" 1>&6 |
10f2d63a | 9429 | else |
698dcdb6 | 9430 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9431 | fi |
9432 | ||
9433 | if test -z "$LEXLIB" | |
9434 | then | |
698dcdb6 VZ |
9435 | case "$LEX" in |
9436 | flex*) ac_lib=fl ;; | |
9437 | *) ac_lib=l ;; | |
9438 | esac | |
9439 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
009fead0 | 9440 | echo "configure:9441: checking for yywrap in -l$ac_lib" >&5 |
698dcdb6 VZ |
9441 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
9442 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9443 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9444 | else | |
9445 | ac_save_LIBS="$LIBS" | |
9446 | LIBS="-l$ac_lib $LIBS" | |
9447 | cat > conftest.$ac_ext <<EOF | |
009fead0 | 9448 | #line 9449 "configure" |
10f2d63a VZ |
9449 | #include "confdefs.h" |
9450 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9451 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9452 | builtin and then its argument prototype would still apply. */ |
9453 | char yywrap(); | |
10f2d63a | 9454 | |
698dcdb6 VZ |
9455 | int main() { |
9456 | yywrap() | |
9457 | ; return 0; } | |
9458 | EOF | |
009fead0 | 9459 | if { (eval echo configure:9460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9460 | rm -rf conftest* |
9461 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 9462 | else |
698dcdb6 VZ |
9463 | echo "configure: failed program was:" >&5 |
9464 | cat conftest.$ac_ext >&5 | |
9465 | rm -rf conftest* | |
9466 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 9467 | fi |
698dcdb6 VZ |
9468 | rm -f conftest* |
9469 | LIBS="$ac_save_LIBS" | |
9470 | ||
10f2d63a | 9471 | fi |
698dcdb6 VZ |
9472 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
9473 | echo "$ac_t""yes" 1>&6 | |
9474 | LEXLIB="-l$ac_lib" | |
9475 | else | |
9476 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
9477 | fi |
9478 | ||
9479 | fi | |
9480 | ||
9481 | ||
698dcdb6 | 9482 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
009fead0 | 9483 | echo "configure:9484: checking whether ln -s works" >&5 |
698dcdb6 VZ |
9484 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
9485 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 9486 | else |
698dcdb6 VZ |
9487 | rm -f conftestdata |
9488 | if ln -s X conftestdata 2>/dev/null | |
9489 | then | |
9490 | rm -f conftestdata | |
9491 | ac_cv_prog_LN_S="ln -s" | |
10f2d63a | 9492 | else |
698dcdb6 | 9493 | ac_cv_prog_LN_S=ln |
10f2d63a VZ |
9494 | fi |
9495 | fi | |
698dcdb6 VZ |
9496 | LN_S="$ac_cv_prog_LN_S" |
9497 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
9498 | echo "$ac_t""yes" 1>&6 | |
10f2d63a | 9499 | else |
698dcdb6 | 9500 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9501 | fi |
9502 | ||
9503 | ||
9504 | ||
9505 | SEARCH_INCLUDE="\ | |
9506 | /usr/local/include \ | |
9507 | \ | |
9508 | /usr/Motif-1.2/include \ | |
9509 | /usr/Motif-2.1/include \ | |
9510 | \ | |
9511 | /usr/include/Motif1.2 \ | |
9512 | /opt/xpm/include/X11 \ | |
9513 | /opt/GBxpm/include/ \ | |
9514 | /opt/GBxpm/X11/include/ \ | |
9515 | \ | |
9516 | /usr/Motif1.2/include \ | |
9517 | /usr/dt/include \ | |
afc31813 VZ |
9518 | /usr/openwin/include \ |
9519 | \ | |
10f2d63a VZ |
9520 | /usr/include/Xm \ |
9521 | \ | |
9522 | /usr/X11R6/include \ | |
afc31813 | 9523 | /usr/X11R6.4/include \ |
10f2d63a VZ |
9524 | /usr/X11R5/include \ |
9525 | /usr/X11R4/include \ | |
9526 | \ | |
10f2d63a VZ |
9527 | /usr/include/X11R6 \ |
9528 | /usr/include/X11R5 \ | |
9529 | /usr/include/X11R4 \ | |
9530 | \ | |
9531 | /usr/local/X11R6/include \ | |
9532 | /usr/local/X11R5/include \ | |
9533 | /usr/local/X11R4/include \ | |
9534 | \ | |
9535 | /usr/local/include/X11R6 \ | |
9536 | /usr/local/include/X11R5 \ | |
9537 | /usr/local/include/X11R4 \ | |
9538 | \ | |
9539 | /usr/X11/include \ | |
9540 | /usr/include/X11 \ | |
9541 | /usr/local/X11/include \ | |
9542 | /usr/local/include/X11 \ | |
9543 | \ | |
9544 | /usr/X386/include \ | |
9545 | /usr/x386/include \ | |
9546 | /usr/XFree86/include/X11 \ | |
9547 | \ | |
cf27ef00 | 9548 | X:/XFree86/include \ |
ec14dd32 VZ |
9549 | X:/XFree86/include/X11 \ |
9550 | \ | |
10f2d63a VZ |
9551 | /usr/include/gtk \ |
9552 | /usr/local/include/gtk \ | |
9553 | /usr/include/glib \ | |
9554 | /usr/local/include/glib \ | |
9555 | \ | |
9556 | /usr/include/qt \ | |
9557 | /usr/local/include/qt \ | |
9558 | \ | |
9559 | /usr/include/windows \ | |
9560 | /usr/include/wine \ | |
9561 | /usr/local/include/wine \ | |
9562 | \ | |
9563 | /usr/unsupported/include \ | |
9564 | /usr/athena/include \ | |
9565 | /usr/local/x11r5/include \ | |
9566 | /usr/lpp/Xamples/include \ | |
9567 | \ | |
10f2d63a | 9568 | /usr/openwin/share/include \ |
928b5c08 VZ |
9569 | \ |
9570 | /usr/include" | |
10f2d63a VZ |
9571 | |
9572 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
9573 | ||
698dcdb6 VZ |
9574 | |
9575 | cat > confcache <<\EOF | |
10f2d63a VZ |
9576 | # This file is a shell script that caches the results of configure |
9577 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
9578 | # scripts and configure runs. It is not useful on other systems. |
9579 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 9580 | # |
698dcdb6 VZ |
9581 | # By default, configure uses ./config.cache as the cache file, |
9582 | # creating it if it does not exist already. You can give configure | |
9583 | # the --cache-file=FILE option to use a different cache file; that is | |
9584 | # what configure does when it calls configure scripts in | |
9585 | # subdirectories, so they share the cache. | |
9586 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
9587 | # config.status only pays attention to the cache file if you give it the | |
9588 | # --recheck option to rerun configure. | |
10f2d63a | 9589 | # |
698dcdb6 | 9590 | EOF |
10f2d63a VZ |
9591 | # The following way of writing the cache mishandles newlines in values, |
9592 | # but we know of no workaround that is simple, portable, and efficient. | |
9593 | # So, don't put newlines in cache variables' values. | |
9594 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
9595 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
9596 | (set) 2>&1 | |
9597 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
9598 | *ac_space=\ *) | |
9599 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
9600 | # turns \\\\ into \\, and sed turns \\ into \). | |
9601 | sed -n \ | |
9602 | -e "s/'/'\\\\''/g" \ | |
9603 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
9604 | ;; | |
9605 | *) | |
9606 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
9607 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
9608 | ;; | |
9609 | esac >> confcache | |
9610 | if cmp -s $cache_file confcache; then | |
9611 | : | |
9612 | else | |
10f2d63a | 9613 | if test -w $cache_file; then |
698dcdb6 VZ |
9614 | echo "updating cache $cache_file" |
9615 | cat confcache > $cache_file | |
10f2d63a VZ |
9616 | else |
9617 | echo "not updating unwritable cache $cache_file" | |
9618 | fi | |
9619 | fi | |
9620 | rm -f confcache | |
9621 | ||
698dcdb6 VZ |
9622 | |
9623 | ||
4f14bcd8 | 9624 | |
18dbb1f6 VZ |
9625 | REGEX_INCLUDE= |
9626 | if test "$wxUSE_REGEX" != "no"; then | |
4f14bcd8 GD |
9627 | cat >> confdefs.h <<\EOF |
9628 | #define wxUSE_REGEX 1 | |
9629 | EOF | |
9630 | ||
9631 | ||
9632 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then | |
9633 | ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'` | |
18dbb1f6 | 9634 | echo $ac_n "checking for regex.h""... $ac_c" 1>&6 |
009fead0 | 9635 | echo "configure:9636: checking for regex.h" >&5 |
18dbb1f6 VZ |
9636 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9637 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9638 | else | |
9639 | cat > conftest.$ac_ext <<EOF | |
009fead0 | 9640 | #line 9641 "configure" |
18dbb1f6 VZ |
9641 | #include "confdefs.h" |
9642 | #include <regex.h> | |
9643 | EOF | |
9644 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
009fead0 | 9645 | { (eval echo configure:9646: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
18dbb1f6 VZ |
9646 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9647 | if test -z "$ac_err"; then | |
9648 | rm -rf conftest* | |
9649 | eval "ac_cv_header_$ac_safe=yes" | |
9650 | else | |
9651 | echo "$ac_err" >&5 | |
9652 | echo "configure: failed program was:" >&5 | |
9653 | cat conftest.$ac_ext >&5 | |
9654 | rm -rf conftest* | |
9655 | eval "ac_cv_header_$ac_safe=no" | |
9656 | fi | |
9657 | rm -f conftest* | |
9658 | fi | |
9659 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9660 | echo "$ac_t""yes" 1>&6 | |
9661 | for ac_func in regcomp | |
9662 | do | |
9663 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
009fead0 | 9664 | echo "configure:9665: checking for $ac_func" >&5 |
18dbb1f6 VZ |
9665 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9666 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9667 | else | |
9668 | cat > conftest.$ac_ext <<EOF | |
009fead0 | 9669 | #line 9670 "configure" |
18dbb1f6 VZ |
9670 | #include "confdefs.h" |
9671 | /* System header to define __stub macros and hopefully few prototypes, | |
9672 | which can conflict with char $ac_func(); below. */ | |
9673 | #include <assert.h> | |
9674 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9675 | /* We use char because int might match the return type of a gcc2 | |
9676 | builtin and then its argument prototype would still apply. */ | |
9677 | char $ac_func(); | |
9678 | ||
9679 | int main() { | |
9680 | ||
9681 | /* The GNU C library defines this for functions which it implements | |
9682 | to always fail with ENOSYS. Some functions are actually named | |
9683 | something starting with __ and the normal name is an alias. */ | |
9684 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9685 | choke me | |
9686 | #else | |
9687 | $ac_func(); | |
9688 | #endif | |
9689 | ||
9690 | ; return 0; } | |
9691 | EOF | |
009fead0 | 9692 | if { (eval echo configure:9693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
18dbb1f6 VZ |
9693 | rm -rf conftest* |
9694 | eval "ac_cv_func_$ac_func=yes" | |
9695 | else | |
9696 | echo "configure: failed program was:" >&5 | |
9697 | cat conftest.$ac_ext >&5 | |
9698 | rm -rf conftest* | |
9699 | eval "ac_cv_func_$ac_func=no" | |
9700 | fi | |
9701 | rm -f conftest* | |
9702 | fi | |
9703 | ||
9704 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9705 | echo "$ac_t""yes" 1>&6 | |
9706 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9707 | cat >> confdefs.h <<EOF | |
9708 | #define $ac_tr_func 1 | |
9709 | EOF | |
9710 | ||
9711 | else | |
9712 | echo "$ac_t""no" 1>&6 | |
9713 | fi | |
9714 | done | |
9715 | ||
9716 | else | |
9717 | echo "$ac_t""no" 1>&6 | |
9718 | fi | |
9719 | ||
9720 | ||
4f14bcd8 GD |
9721 | if test "x$ac_cv_func_regcomp" != "xyes"; then |
9722 | if test "$wxUSE_REGEX" = "sys" ; then | |
9723 | { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; } | |
9724 | else | |
a3df447d | 9725 | echo "configure: warning: system regex library not found, will use built-in instead" 1>&2 |
4f14bcd8 GD |
9726 | wxUSE_REGEX=builtin |
9727 | fi | |
9728 | else | |
9729 | wxUSE_REGEX=sys | |
18dbb1f6 | 9730 | fi |
18dbb1f6 VZ |
9731 | fi |
9732 | ||
4f14bcd8 GD |
9733 | if test "$wxUSE_REGEX" = "builtin" ; then |
9734 | REGEX_INCLUDE="-I\${top_srcdir}/src/regex" | |
9735 | fi | |
18dbb1f6 VZ |
9736 | fi |
9737 | ||
9738 | ||
4f14bcd8 GD |
9739 | ZLIB_INCLUDE= |
9740 | ZLIB_LINK= | |
9741 | if test "$wxUSE_ZLIB" != "no" ; then | |
9742 | cat >> confdefs.h <<\EOF | |
9743 | #define wxUSE_ZLIB 1 | |
9744 | EOF | |
dad6c0ea | 9745 | |
10f2d63a | 9746 | |
4f14bcd8 GD |
9747 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then |
9748 | ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'` | |
9749 | echo $ac_n "checking for zlib.h""... $ac_c" 1>&6 | |
009fead0 | 9750 | echo "configure:9751: checking for zlib.h" >&5 |
3a922bb4 RL |
9751 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9752 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9753 | else | |
9754 | cat > conftest.$ac_ext <<EOF | |
009fead0 | 9755 | #line 9756 "configure" |
3a922bb4 | 9756 | #include "confdefs.h" |
4f14bcd8 | 9757 | #include <zlib.h> |
3a922bb4 RL |
9758 | EOF |
9759 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
009fead0 | 9760 | { (eval echo configure:9761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3a922bb4 RL |
9761 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9762 | if test -z "$ac_err"; then | |
9763 | rm -rf conftest* | |
9764 | eval "ac_cv_header_$ac_safe=yes" | |
9765 | else | |
9766 | echo "$ac_err" >&5 | |
9767 | echo "configure: failed program was:" >&5 | |
9768 | cat conftest.$ac_ext >&5 | |
9769 | rm -rf conftest* | |
9770 | eval "ac_cv_header_$ac_safe=no" | |
9771 | fi | |
9772 | rm -f conftest* | |
9773 | fi | |
9774 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9775 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 9776 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6 |
009fead0 | 9777 | echo "configure:9778: checking for deflate in -lz" >&5 |
4f14bcd8 GD |
9778 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'` |
9779 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9780 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9781 | else | |
9782 | ac_save_LIBS="$LIBS" | |
9783 | LIBS="-lz $LIBS" | |
9784 | cat > conftest.$ac_ext <<EOF | |
009fead0 | 9785 | #line 9786 "configure" |
4f14bcd8 GD |
9786 | #include "confdefs.h" |
9787 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9788 | /* We use char because int might match the return type of a gcc2 | |
9789 | builtin and then its argument prototype would still apply. */ | |
9790 | char deflate(); | |
9791 | ||
9792 | int main() { | |
9793 | deflate() | |
9794 | ; return 0; } | |
3a922bb4 | 9795 | EOF |
009fead0 | 9796 | if { (eval echo configure:9797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
9797 | rm -rf conftest* |
9798 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9799 | else | |
9800 | echo "configure: failed program was:" >&5 | |
9801 | cat conftest.$ac_ext >&5 | |
9802 | rm -rf conftest* | |
9803 | eval "ac_cv_lib_$ac_lib_var=no" | |
9804 | fi | |
9805 | rm -f conftest* | |
9806 | LIBS="$ac_save_LIBS" | |
9807 | ||
9808 | fi | |
9809 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9810 | echo "$ac_t""yes" 1>&6 | |
3d63bc3a | 9811 | ZLIB_LINK=" -lz" |
3a922bb4 RL |
9812 | else |
9813 | echo "$ac_t""no" 1>&6 | |
9814 | fi | |
10f2d63a | 9815 | |
4f14bcd8 GD |
9816 | else |
9817 | echo "$ac_t""no" 1>&6 | |
9818 | fi | |
9819 | ||
9820 | ||
9821 | if test "x$ZLIB_LINK" = "x" ; then | |
9822 | if test "$wxUSE_ZLIB" = "sys" ; then | |
9823 | { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; } | |
9824 | else | |
a3df447d | 9825 | echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2 |
4f14bcd8 GD |
9826 | wxUSE_ZLIB=builtin |
9827 | fi | |
9828 | else | |
9829 | wxUSE_ZLIB=sys | |
9830 | fi | |
9831 | fi | |
9832 | ||
9833 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
9834 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
9835 | fi | |
9836 | fi | |
9837 | ||
9838 | ||
9839 | PNG_INCLUDE= | |
9840 | PNG_LINK= | |
9841 | if test "$wxUSE_LIBPNG" != "no" ; then | |
9842 | cat >> confdefs.h <<\EOF | |
9843 | #define wxUSE_LIBPNG 1 | |
9844 | EOF | |
9845 | ||
81809c07 VS |
9846 | |
9847 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then | |
9848 | echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2 | |
9849 | wxUSE_LIBPNG=sys | |
9850 | fi | |
4f14bcd8 | 9851 | |
81809c07 | 9852 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then |
a3df447d | 9853 | echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2 |
4f14bcd8 GD |
9854 | wxUSE_LIBPNG=builtin |
9855 | fi | |
9856 | ||
81809c07 VS |
9857 | if test "$wxUSE_MGL" != 1 ; then |
9858 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
9859 | ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` | |
4f14bcd8 | 9860 | echo $ac_n "checking for png.h""... $ac_c" 1>&6 |
009fead0 | 9861 | echo "configure:9862: checking for png.h" >&5 |
d4158b5d VS |
9862 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9863 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9864 | else | |
9865 | cat > conftest.$ac_ext <<EOF | |
009fead0 | 9866 | #line 9867 "configure" |
d4158b5d | 9867 | #include "confdefs.h" |
4f14bcd8 | 9868 | #include <png.h> |
d4158b5d VS |
9869 | EOF |
9870 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
009fead0 | 9871 | { (eval echo configure:9872: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
d4158b5d VS |
9872 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9873 | if test -z "$ac_err"; then | |
9874 | rm -rf conftest* | |
9875 | eval "ac_cv_header_$ac_safe=yes" | |
9876 | else | |
9877 | echo "$ac_err" >&5 | |
9878 | echo "configure: failed program was:" >&5 | |
9879 | cat conftest.$ac_ext >&5 | |
9880 | rm -rf conftest* | |
9881 | eval "ac_cv_header_$ac_safe=no" | |
9882 | fi | |
9883 | rm -f conftest* | |
9884 | fi | |
9885 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9886 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 9887 | echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6 |
009fead0 | 9888 | echo "configure:9889: checking for png_check_sig in -lpng" >&5 |
4f14bcd8 GD |
9889 | ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'` |
9890 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
3a922bb4 RL |
9891 | echo $ac_n "(cached) $ac_c" 1>&6 |
9892 | else | |
4f14bcd8 GD |
9893 | ac_save_LIBS="$LIBS" |
9894 | LIBS="-lpng -lz -lm $LIBS" | |
9895 | cat > conftest.$ac_ext <<EOF | |
009fead0 | 9896 | #line 9897 "configure" |
3a922bb4 | 9897 | #include "confdefs.h" |
4f14bcd8 GD |
9898 | /* Override any gcc2 internal prototype to avoid an error. */ |
9899 | /* We use char because int might match the return type of a gcc2 | |
9900 | builtin and then its argument prototype would still apply. */ | |
9901 | char png_check_sig(); | |
f6bcfd97 | 9902 | |
4f14bcd8 GD |
9903 | int main() { |
9904 | png_check_sig() | |
3a922bb4 RL |
9905 | ; return 0; } |
9906 | EOF | |
009fead0 | 9907 | if { (eval echo configure:9908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3a922bb4 | 9908 | rm -rf conftest* |
4f14bcd8 | 9909 | eval "ac_cv_lib_$ac_lib_var=yes" |
3a922bb4 RL |
9910 | else |
9911 | echo "configure: failed program was:" >&5 | |
9912 | cat conftest.$ac_ext >&5 | |
9913 | rm -rf conftest* | |
4f14bcd8 | 9914 | eval "ac_cv_lib_$ac_lib_var=no" |
3a922bb4 RL |
9915 | fi |
9916 | rm -f conftest* | |
4f14bcd8 | 9917 | LIBS="$ac_save_LIBS" |
10f2d63a | 9918 | |
4f14bcd8 GD |
9919 | fi |
9920 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9921 | echo "$ac_t""yes" 1>&6 | |
3d63bc3a | 9922 | PNG_LINK=" -lpng" |
4f14bcd8 GD |
9923 | else |
9924 | echo "$ac_t""no" 1>&6 | |
9925 | fi | |
32832908 | 9926 | |
81809c07 | 9927 | |
4f14bcd8 GD |
9928 | else |
9929 | echo "$ac_t""no" 1>&6 | |
9930 | fi | |
3a922bb4 | 9931 | |
7b7a7637 | 9932 | |
81809c07 VS |
9933 | if test "x$PNG_LINK" = "x" ; then |
9934 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
9935 | { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; } | |
9936 | else | |
9937 | echo "configure: warning: system png library not found, will use built-in instead" 1>&2 | |
9938 | wxUSE_LIBPNG=builtin | |
9939 | fi | |
4f14bcd8 | 9940 | else |
81809c07 | 9941 | wxUSE_LIBPNG=yes |
4f14bcd8 | 9942 | fi |
4f14bcd8 | 9943 | fi |
3a922bb4 RL |
9944 | fi |
9945 | ||
4f14bcd8 GD |
9946 | if test "$wxUSE_LIBPNG" = "builtin" ; then |
9947 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
3a922bb4 RL |
9948 | fi |
9949 | ||
4f14bcd8 | 9950 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
3a922bb4 RL |
9951 | fi |
9952 | ||
32832908 | 9953 | |
4f14bcd8 GD |
9954 | JPEG_INCLUDE= |
9955 | JPEG_LINK= | |
9956 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
9957 | cat >> confdefs.h <<\EOF | |
9958 | #define wxUSE_LIBJPEG 1 | |
9959 | EOF | |
10f2d63a | 9960 | |
8168de4c | 9961 | |
81809c07 VS |
9962 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then |
9963 | echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2 | |
9964 | wxUSE_LIBJPEG=sys | |
9965 | fi | |
9966 | ||
9967 | if test "$wxUSE_MGL" != 1 ; then | |
9968 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
9969 | echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 | |
009fead0 | 9970 | echo "configure:9971: checking for jpeglib.h" >&5 |
81809c07 | 9971 | if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then |
8168de4c VZ |
9972 | echo $ac_n "(cached) $ac_c" 1>&6 |
9973 | else | |
4f14bcd8 | 9974 | cat > conftest.$ac_ext <<EOF |
009fead0 | 9975 | #line 9976 "configure" |
4f14bcd8 | 9976 | #include "confdefs.h" |
8168de4c | 9977 | |
81809c07 VS |
9978 | #undef HAVE_STDLIB_H |
9979 | #include <stdio.h> | |
9980 | #include <jpeglib.h> | |
9981 | ||
4f14bcd8 GD |
9982 | int main() { |
9983 | ||
81809c07 | 9984 | |
4f14bcd8 GD |
9985 | ; return 0; } |
9986 | EOF | |
009fead0 | 9987 | if { (eval echo configure:9988: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
9988 | rm -rf conftest* |
9989 | ac_cv_header_jpeglib_h=yes | |
6f72b082 | 9990 | else |
4f14bcd8 GD |
9991 | echo "configure: failed program was:" >&5 |
9992 | cat conftest.$ac_ext >&5 | |
9993 | rm -rf conftest* | |
9994 | ac_cv_header_jpeglib_h=no | |
81809c07 | 9995 | |
4f14bcd8 GD |
9996 | fi |
9997 | rm -f conftest* | |
81809c07 | 9998 | |
698dcdb6 | 9999 | fi |
6f72b082 | 10000 | |
81809c07 | 10001 | echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6 |
4f14bcd8 | 10002 | |
81809c07 VS |
10003 | if test "$ac_cv_header_jpeglib_h" = "yes"; then |
10004 | echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6 | |
009fead0 | 10005 | echo "configure:10006: checking for jpeg_read_header in -ljpeg" >&5 |
4f14bcd8 GD |
10006 | ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'` |
10007 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10008 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6f72b082 | 10009 | else |
4f14bcd8 GD |
10010 | ac_save_LIBS="$LIBS" |
10011 | LIBS="-ljpeg $LIBS" | |
10012 | cat > conftest.$ac_ext <<EOF | |
009fead0 | 10013 | #line 10014 "configure" |
4f14bcd8 GD |
10014 | #include "confdefs.h" |
10015 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10016 | /* We use char because int might match the return type of a gcc2 | |
10017 | builtin and then its argument prototype would still apply. */ | |
10018 | char jpeg_read_header(); | |
698dcdb6 | 10019 | |
4f14bcd8 GD |
10020 | int main() { |
10021 | jpeg_read_header() | |
10022 | ; return 0; } | |
10023 | EOF | |
009fead0 | 10024 | if { (eval echo configure:10025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
10025 | rm -rf conftest* |
10026 | eval "ac_cv_lib_$ac_lib_var=yes" | |
6f72b082 | 10027 | else |
4f14bcd8 GD |
10028 | echo "configure: failed program was:" >&5 |
10029 | cat conftest.$ac_ext >&5 | |
10030 | rm -rf conftest* | |
10031 | eval "ac_cv_lib_$ac_lib_var=no" | |
698dcdb6 | 10032 | fi |
4f14bcd8 GD |
10033 | rm -f conftest* |
10034 | LIBS="$ac_save_LIBS" | |
698dcdb6 | 10035 | |
4f14bcd8 GD |
10036 | fi |
10037 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10038 | echo "$ac_t""yes" 1>&6 | |
3d63bc3a | 10039 | JPEG_LINK=" -ljpeg" |
4f14bcd8 GD |
10040 | else |
10041 | echo "$ac_t""no" 1>&6 | |
10042 | fi | |
10043 | ||
81809c07 | 10044 | fi |
4f14bcd8 | 10045 | |
81809c07 VS |
10046 | if test "x$JPEG_LINK" = "x" ; then |
10047 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
10048 | { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; } | |
10049 | else | |
10050 | echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2 | |
10051 | wxUSE_LIBJPEG=builtin | |
10052 | fi | |
4f14bcd8 | 10053 | else |
81809c07 | 10054 | wxUSE_LIBJPEG=sys |
4f14bcd8 | 10055 | fi |
4f14bcd8 GD |
10056 | fi |
10057 | fi | |
10058 | ||
10059 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
10060 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
10061 | fi | |
10062 | fi | |
10063 | ||
10064 | ||
10065 | TIFF_INCLUDE= | |
10066 | TIFF_LINK= | |
10067 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
10068 | cat >> confdefs.h <<\EOF | |
10069 | #define wxUSE_LIBTIFF 1 | |
10070 | EOF | |
10071 | ||
10072 | ||
10073 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then | |
10074 | ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` | |
10075 | echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | |
009fead0 | 10076 | echo "configure:10077: checking for tiffio.h" >&5 |
4f14bcd8 GD |
10077 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10078 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10079 | else | |
10080 | cat > conftest.$ac_ext <<EOF | |
009fead0 | 10081 | #line 10082 "configure" |
4f14bcd8 GD |
10082 | #include "confdefs.h" |
10083 | #include <tiffio.h> | |
10084 | EOF | |
10085 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
009fead0 | 10086 | { (eval echo configure:10087: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
10087 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10088 | if test -z "$ac_err"; then | |
10089 | rm -rf conftest* | |
10090 | eval "ac_cv_header_$ac_safe=yes" | |
10091 | else | |
10092 | echo "$ac_err" >&5 | |
10093 | echo "configure: failed program was:" >&5 | |
10094 | cat conftest.$ac_ext >&5 | |
10095 | rm -rf conftest* | |
10096 | eval "ac_cv_header_$ac_safe=no" | |
10097 | fi | |
10098 | rm -f conftest* | |
10099 | fi | |
10100 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10101 | echo "$ac_t""yes" 1>&6 | |
10102 | echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6 | |
009fead0 | 10103 | echo "configure:10104: checking for TIFFError in -ltiff" >&5 |
4f14bcd8 GD |
10104 | ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'` |
10105 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10106 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10107 | else | |
10108 | ac_save_LIBS="$LIBS" | |
10109 | LIBS="-ltiff -lm $LIBS" | |
10110 | cat > conftest.$ac_ext <<EOF | |
009fead0 | 10111 | #line 10112 "configure" |
4f14bcd8 GD |
10112 | #include "confdefs.h" |
10113 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10114 | /* We use char because int might match the return type of a gcc2 | |
10115 | builtin and then its argument prototype would still apply. */ | |
10116 | char TIFFError(); | |
10117 | ||
10118 | int main() { | |
10119 | TIFFError() | |
10120 | ; return 0; } | |
10121 | EOF | |
009fead0 | 10122 | if { (eval echo configure:10123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
10123 | rm -rf conftest* |
10124 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10125 | else | |
10126 | echo "configure: failed program was:" >&5 | |
10127 | cat conftest.$ac_ext >&5 | |
10128 | rm -rf conftest* | |
10129 | eval "ac_cv_lib_$ac_lib_var=no" | |
10130 | fi | |
10131 | rm -f conftest* | |
10132 | LIBS="$ac_save_LIBS" | |
10133 | ||
10134 | fi | |
10135 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10136 | echo "$ac_t""yes" 1>&6 | |
3d63bc3a | 10137 | TIFF_LINK=" -ltiff" |
4f14bcd8 GD |
10138 | else |
10139 | echo "$ac_t""no" 1>&6 | |
10140 | fi | |
10141 | ||
10142 | ||
10143 | else | |
10144 | echo "$ac_t""no" 1>&6 | |
10145 | fi | |
10146 | ||
10147 | ||
10148 | if test "x$TIFF_LINK" = "x" ; then | |
10149 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
10150 | { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; } | |
10151 | else | |
a3df447d | 10152 | echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2 |
4f14bcd8 GD |
10153 | wxUSE_LIBTIFF=builtin |
10154 | fi | |
10155 | else | |
10156 | wxUSE_LIBTIFF=sys | |
10157 | fi | |
10158 | fi | |
10159 | ||
10160 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
10161 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" | |
10162 | fi | |
10163 | fi | |
10164 | ||
10165 | ||
4f14bcd8 GD |
10166 | AFMINSTALL= |
10167 | ||
10168 | TOOLKIT= | |
10169 | TOOLKIT_INCLUDE= | |
10170 | WIDGET_SET= | |
10171 | ||
10172 | if test "$USE_WIN32" = 1 ; then | |
10173 | for ac_hdr in w32api.h | |
10174 | do | |
10175 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
10176 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
009fead0 | 10177 | echo "configure:10178: checking for $ac_hdr" >&5 |
4f14bcd8 GD |
10178 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10179 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10180 | else | |
10181 | cat > conftest.$ac_ext <<EOF | |
009fead0 | 10182 | #line 10183 "configure" |
4f14bcd8 GD |
10183 | #include "confdefs.h" |
10184 | #include <$ac_hdr> | |
10185 | EOF | |
10186 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
009fead0 | 10187 | { (eval echo configure:10188: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
10188 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10189 | if test -z "$ac_err"; then | |
10190 | rm -rf conftest* | |
10191 | eval "ac_cv_header_$ac_safe=yes" | |
10192 | else | |
10193 | echo "$ac_err" >&5 | |
10194 | echo "configure: failed program was:" >&5 | |
10195 | cat conftest.$ac_ext >&5 | |
10196 | rm -rf conftest* | |
10197 | eval "ac_cv_header_$ac_safe=no" | |
10198 | fi | |
10199 | rm -f conftest* | |
10200 | fi | |
10201 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10202 | echo "$ac_t""yes" 1>&6 | |
10203 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10204 | cat >> confdefs.h <<EOF | |
10205 | #define $ac_tr_hdr 1 | |
10206 | EOF | |
10207 | ||
10208 | else | |
10209 | echo "$ac_t""no" 1>&6 | |
10210 | fi | |
10211 | done | |
10212 | ||
10213 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` | |
10214 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
009fead0 | 10215 | echo "configure:10216: checking for windows.h" >&5 |
4f14bcd8 GD |
10216 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10217 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10218 | else | |
10219 | cat > conftest.$ac_ext <<EOF | |
009fead0 | 10220 | #line 10221 "configure" |
4f14bcd8 GD |
10221 | #include "confdefs.h" |
10222 | #include <windows.h> | |
10223 | EOF | |
10224 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
009fead0 | 10225 | { (eval echo configure:10226: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
10226 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10227 | if test -z "$ac_err"; then | |
10228 | rm -rf conftest* | |
10229 | eval "ac_cv_header_$ac_safe=yes" | |
10230 | else | |
10231 | echo "$ac_err" >&5 | |
10232 | echo "configure: failed program was:" >&5 | |
10233 | cat conftest.$ac_ext >&5 | |
10234 | rm -rf conftest* | |
10235 | eval "ac_cv_header_$ac_safe=no" | |
10236 | fi | |
10237 | rm -f conftest* | |
10238 | fi | |
10239 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10240 | echo "$ac_t""yes" 1>&6 | |
10241 | : | |
10242 | else | |
10243 | echo "$ac_t""no" 1>&6 | |
10244 | ||
10245 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
10246 | ||
10247 | fi | |
10248 | ||
10249 | ||
10250 | echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6 | |
009fead0 | 10251 | echo "configure:10252: checking if w32api has good enough MSIE support" >&5 |
ea7682f0 | 10252 | if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then |
4f14bcd8 GD |
10253 | echo $ac_n "(cached) $ac_c" 1>&6 |
10254 | else | |
10255 | ||
10256 | cat > conftest.$ac_ext <<EOF | |
009fead0 | 10257 | #line 10258 "configure" |
4f14bcd8 GD |
10258 | #include "confdefs.h" |
10259 | #include <w32api.h> | |
10260 | int main() { | |
10261 | ||
10262 | #define wxCHECK_W32API_VERSION( major, minor ) \ | |
10263 | ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \ | |
10264 | && ( ( __W32API_MAJOR_VERSION > (major) ) \ | |
10265 | || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor)))) | |
10266 | ||
10267 | #if !wxCHECK_W32API_VERSION(1,1) | |
10268 | #error You need w32api 1.1 or newer | |
10269 | #endif | |
10270 | ||
10271 | ; return 0; } | |
10272 | EOF | |
009fead0 | 10273 | if { (eval echo configure:10274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
10274 | rm -rf conftest* |
10275 | ||
ea7682f0 | 10276 | wx_cv_w32api_win32_ie=yes |
4f14bcd8 GD |
10277 | |
10278 | else | |
10279 | echo "configure: failed program was:" >&5 | |
10280 | cat conftest.$ac_ext >&5 | |
10281 | rm -rf conftest* | |
10282 | ||
ea7682f0 | 10283 | wx_cv_w32api_win32_ie=no |
4f14bcd8 GD |
10284 | |
10285 | fi | |
10286 | rm -f conftest* | |
10287 | ||
10288 | fi | |
10289 | ||
ea7682f0 VS |
10290 | echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6 |
10291 | if test "$wx_cv_w32api_win32_ie" = "yes" ; then | |
10292 | CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400" | |
10293 | fi | |
4f14bcd8 GD |
10294 | |
10295 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32" | |
10296 | ||
77e13408 RL |
10297 | case "${host}" in |
10298 | *-*-cygwin* ) | |
10299 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32" | |
10300 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
10301 | esac | |
4f14bcd8 GD |
10302 | |
10303 | if test "$wxUSE_ODBC" = "yes" ; then | |
a72a4bfa | 10304 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" |
4f14bcd8 GD |
10305 | fi |
10306 | ||
4f14bcd8 GD |
10307 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
10308 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
10309 | fi | |
10310 | ||
10311 | if test "$wxUSE_GUI" = "yes"; then | |
10312 | USE_GUI=1 | |
10313 | ||
10314 | GUI_TK_LIBRARY= | |
10315 | ||
10316 | WXGTK12= | |
10317 | WXGTK127= | |
10318 | WXGTK20= | |
10319 | ||
77e13408 | 10320 | if test "$wxUSE_MSW" = 1 ; then |
4f14bcd8 GD |
10321 | TOOLKIT=MSW |
10322 | GUIDIST=MSW_DIST | |
77e13408 RL |
10323 | |
10324 | case "${host}" in | |
10325 | *-*-mingw32* ) | |
3d63bc3a | 10326 | LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows" |
77e13408 | 10327 | esac |
4f14bcd8 GD |
10328 | fi |
10329 | ||
10330 | if test "$wxUSE_GTK" = 1; then | |
10331 | echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6 | |
009fead0 | 10332 | echo "configure:10333: checking for GTK+ version" >&5 |
4f14bcd8 GD |
10333 | |
10334 | gtk_version_cached=1 | |
10335 | if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then | |
10336 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10337 | else | |
10338 | ||
10339 | gtk_version_cached=0 | |
d48ad9bd | 10340 | echo "$ac_t""" 1>&6 |
4f14bcd8 | 10341 | |
3f345b47 VZ |
10342 | GTK_MODULES= |
10343 | if test "$wxUSE_THREADS" = "yes"; then | |
10344 | GTK_MODULES=gthread | |
10345 | fi | |
10346 | ||
4f14bcd8 GD |
10347 | wx_cv_lib_gtk= |
10348 | if test "x$wxUSE_GTK2" = "xyes"; then | |
9e691f46 | 10349 | # Check whether --enable-gtktest or --disable-gtktest was given. |
4f14bcd8 GD |
10350 | if test "${enable_gtktest+set}" = set; then |
10351 | enableval="$enable_gtktest" | |
10352 | : | |
10353 | else | |
10354 | enable_gtktest=yes | |
10355 | fi | |
10356 | ||
10357 | ||
9e691f46 | 10358 | pkg_config_args=gtk+-2.0 |
3f345b47 | 10359 | for module in . $GTK_MODULES |
4f14bcd8 | 10360 | do |
6f72b082 | 10361 | case "$module" in |
9e691f46 VZ |
10362 | gthread) |
10363 | pkg_config_args="$pkg_config_args gthread-2.0" | |
6f72b082 OK |
10364 | ;; |
10365 | esac | |
10366 | done | |
10367 | ||
9e691f46 | 10368 | no_gtk="" |
6f72b082 | 10369 | |
9e691f46 VZ |
10370 | # Extract the first word of "pkg-config", so it can be a program name with args. |
10371 | set dummy pkg-config; ac_word=$2 | |
698dcdb6 | 10372 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
009fead0 | 10373 | echo "configure:10374: checking for $ac_word" >&5 |
9e691f46 | 10374 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
698dcdb6 | 10375 | echo $ac_n "(cached) $ac_c" 1>&6 |
6f72b082 | 10376 | else |
9e691f46 | 10377 | case "$PKG_CONFIG" in |
698dcdb6 | 10378 | /*) |
9e691f46 | 10379 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
6f72b082 | 10380 | ;; |
698dcdb6 | 10381 | ?:/*) |
9e691f46 | 10382 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. |
698dcdb6 | 10383 | ;; |
6f72b082 | 10384 | *) |
698dcdb6 VZ |
10385 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
10386 | ac_dummy="$PATH" | |
10387 | for ac_dir in $ac_dummy; do | |
10388 | test -z "$ac_dir" && ac_dir=. | |
10389 | if test -f $ac_dir/$ac_word; then | |
9e691f46 | 10390 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" |
698dcdb6 VZ |
10391 | break |
10392 | fi | |
10393 | done | |
10394 | IFS="$ac_save_ifs" | |
9e691f46 | 10395 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
6f72b082 OK |
10396 | ;; |
10397 | esac | |
10398 | fi | |
9e691f46 VZ |
10399 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
10400 | if test -n "$PKG_CONFIG"; then | |
10401 | echo "$ac_t""$PKG_CONFIG" 1>&6 | |
6f72b082 | 10402 | else |
698dcdb6 | 10403 | echo "$ac_t""no" 1>&6 |
6f72b082 OK |
10404 | fi |
10405 | ||
9e691f46 VZ |
10406 | |
10407 | if test x$PKG_CONFIG != xno ; then | |
10408 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
10409 | : | |
10410 | else | |
10411 | echo *** pkg-config too old; version 0.7 or better required. | |
10412 | no_gtk=yes | |
10413 | PKG_CONFIG=no | |
10414 | fi | |
6f72b082 | 10415 | else |
9e691f46 VZ |
10416 | no_gtk=yes |
10417 | fi | |
10418 | ||
1ae7bd02 | 10419 | min_gtk_version=2.0.0 |
9e691f46 | 10420 | echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6 |
009fead0 | 10421 | echo "configure:10422: checking for GTK+ - version >= $min_gtk_version" >&5 |
9e691f46 VZ |
10422 | |
10423 | if test x$PKG_CONFIG != xno ; then | |
10424 | ## don't try to run the test against uninstalled libtool libs | |
10425 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
10426 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
10427 | enable_gtktest=no | |
10428 | fi | |
10429 | ||
10430 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then | |
10431 | : | |
10432 | else | |
10433 | no_gtk=yes | |
10434 | fi | |
10435 | fi | |
10436 | ||
10437 | if test x"$no_gtk" = x ; then | |
10438 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
10439 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
10440 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
6f72b082 | 10441 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` |
9e691f46 | 10442 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
6f72b082 | 10443 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` |
9e691f46 | 10444 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
6f72b082 OK |
10445 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` |
10446 | if test "x$enable_gtktest" = "xyes" ; then | |
10447 | ac_save_CFLAGS="$CFLAGS" | |
10448 | ac_save_LIBS="$LIBS" | |
10449 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
10450 | LIBS="$GTK_LIBS $LIBS" | |
10451 | rm -f conf.gtktest | |
10452 | if test "$cross_compiling" = yes; then | |
10453 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
10454 | else | |
698dcdb6 | 10455 | cat > conftest.$ac_ext <<EOF |
009fead0 | 10456 | #line 10457 "configure" |
6f72b082 OK |
10457 | #include "confdefs.h" |
10458 | ||
10459 | #include <gtk/gtk.h> | |
10460 | #include <stdio.h> | |
10461 | #include <stdlib.h> | |
10462 | ||
9e691f46 | 10463 | int |
6f72b082 OK |
10464 | main () |
10465 | { | |
10466 | int major, minor, micro; | |
10467 | char *tmp_version; | |
10468 | ||
10469 | system ("touch conf.gtktest"); | |
10470 | ||
10471 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
10472 | tmp_version = g_strdup("$min_gtk_version"); | |
10473 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
10474 | printf("%s, bad version string\n", "$min_gtk_version"); | |
10475 | exit(1); | |
10476 | } | |
10477 | ||
10478 | if ((gtk_major_version != $gtk_config_major_version) || | |
10479 | (gtk_minor_version != $gtk_config_minor_version) || | |
10480 | (gtk_micro_version != $gtk_config_micro_version)) | |
10481 | { | |
9e691f46 | 10482 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
6f72b082 OK |
10483 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
10484 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
9e691f46 | 10485 | printf ("*** was found! If pkg-config was correct, then it is best\n"); |
6f72b082 OK |
10486 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); |
10487 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
10488 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
10489 | printf("*** required on your system.\n"); | |
9e691f46 VZ |
10490 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); |
10491 | printf("*** to point to the correct configuration files\n"); | |
10492 | } | |
6f72b082 | 10493 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || |
9e691f46 | 10494 | (gtk_minor_version != GTK_MINOR_VERSION) || |
6f72b082 OK |
10495 | (gtk_micro_version != GTK_MICRO_VERSION)) |
10496 | { | |
10497 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
9e691f46 | 10498 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); |
6f72b082 | 10499 | printf("*** library (version %d.%d.%d)\n", |
9e691f46 | 10500 | gtk_major_version, gtk_minor_version, gtk_micro_version); |
6f72b082 | 10501 | } |
6f72b082 OK |
10502 | else |
10503 | { | |
10504 | if ((gtk_major_version > major) || | |
10505 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
10506 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
10507 | { | |
10508 | return 0; | |
10509 | } | |
10510 | else | |
10511 | { | |
10512 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
10513 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
10514 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
9e691f46 | 10515 | major, minor, micro); |
6f72b082 OK |
10516 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); |
10517 | printf("***\n"); | |
10518 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
9e691f46 | 10519 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); |
6f72b082 | 10520 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); |
9e691f46 VZ |
10521 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); |
10522 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
6f72b082 OK |
10523 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); |
10524 | printf("*** so that the correct libraries are found at run-time))\n"); | |
10525 | } | |
10526 | } | |
10527 | return 1; | |
10528 | } | |
10529 | ||
698dcdb6 | 10530 | EOF |
009fead0 | 10531 | if { (eval echo configure:10532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 10532 | then |
6f72b082 OK |
10533 | : |
10534 | else | |
698dcdb6 VZ |
10535 | echo "configure: failed program was:" >&5 |
10536 | cat conftest.$ac_ext >&5 | |
10537 | rm -fr conftest* | |
10538 | no_gtk=yes | |
6f72b082 | 10539 | fi |
698dcdb6 | 10540 | rm -fr conftest* |
6f72b082 | 10541 | fi |
698dcdb6 | 10542 | |
6f72b082 OK |
10543 | CFLAGS="$ac_save_CFLAGS" |
10544 | LIBS="$ac_save_LIBS" | |
10545 | fi | |
10546 | fi | |
10547 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 10548 | echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6 |
9e691f46 | 10549 | wx_cv_lib_gtk=2.0 |
6f72b082 | 10550 | else |
698dcdb6 | 10551 | echo "$ac_t""no" 1>&6 |
9e691f46 VZ |
10552 | if test "$PKG_CONFIG" = "no" ; then |
10553 | echo "*** A new enough version of pkg-config was not found." | |
10554 | echo "*** See http://pkgconfig.sourceforge.net" | |
6f72b082 OK |
10555 | else |
10556 | if test -f conf.gtktest ; then | |
10557 | : | |
10558 | else | |
9e691f46 | 10559 | echo "*** Could not run GTK+ test program, checking why..." |
6f72b082 OK |
10560 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
10561 | LIBS="$LIBS $GTK_LIBS" | |
698dcdb6 | 10562 | cat > conftest.$ac_ext <<EOF |
009fead0 | 10563 | #line 10564 "configure" |
6f72b082 OK |
10564 | #include "confdefs.h" |
10565 | ||
10566 | #include <gtk/gtk.h> | |
10567 | #include <stdio.h> | |
10568 | ||
698dcdb6 VZ |
10569 | int main() { |
10570 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
10571 | ; return 0; } | |
10572 | EOF | |
009fead0 | 10573 | if { (eval echo configure:10574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 10574 | rm -rf conftest* |
6f72b082 | 10575 | echo "*** The test program compiled, but did not run. This usually means" |
9e691f46 VZ |
10576 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" |
10577 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
6f72b082 OK |
10578 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" |
10579 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
10580 | echo "*** is required on your system" | |
9e691f46 | 10581 | echo "***" |
6f72b082 | 10582 | echo "*** If you have an old version installed, it is best to remove it, although" |
9e691f46 | 10583 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" |
6f72b082 | 10584 | else |
698dcdb6 VZ |
10585 | echo "configure: failed program was:" >&5 |
10586 | cat conftest.$ac_ext >&5 | |
10587 | rm -rf conftest* | |
10588 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
9e691f46 VZ |
10589 | echo "*** exact error that occured. This usually means GTK+ was incorrectly installed" |
10590 | echo "*** or that you have moved GTK+ since it was installed. In the latter case, you" | |
10591 | echo "*** may want to edit the pkg-config script: $PKG_CONFIG" | |
6f72b082 | 10592 | fi |
698dcdb6 | 10593 | rm -f conftest* |
6f72b082 OK |
10594 | CFLAGS="$ac_save_CFLAGS" |
10595 | LIBS="$ac_save_LIBS" | |
10596 | fi | |
10597 | fi | |
10598 | GTK_CFLAGS="" | |
10599 | GTK_LIBS="" | |
3f345b47 | 10600 | : |
8168de4c VZ |
10601 | fi |
10602 | ||
10603 | ||
10604 | rm -f conf.gtktest | |
10605 | ||
10606 | fi | |
10607 | ||
10608 | if test -z "$wx_cv_lib_gtk"; then | |
3f345b47 VZ |
10609 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. |
10610 | if test "${with_gtk_prefix+set}" = set; then | |
10611 | withval="$with_gtk_prefix" | |
10612 | gtk_config_prefix="$withval" | |
10613 | else | |
10614 | gtk_config_prefix="" | |
10615 | fi | |
10616 | ||
10617 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
10618 | if test "${with_gtk_exec_prefix+set}" = set; then | |
10619 | withval="$with_gtk_exec_prefix" | |
10620 | gtk_config_exec_prefix="$withval" | |
10621 | else | |
10622 | gtk_config_exec_prefix="" | |
10623 | fi | |
10624 | ||
10625 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
10626 | if test "${enable_gtktest+set}" = set; then | |
10627 | enableval="$enable_gtktest" | |
10628 | : | |
10629 | else | |
10630 | enable_gtktest=yes | |
10631 | fi | |
10632 | ||
10633 | ||
10634 | for module in . $GTK_MODULES | |
10635 | do | |
10636 | case "$module" in | |
10637 | gthread) | |
10638 | gtk_config_args="$gtk_config_args gthread" | |
10639 | ;; | |
10640 | esac | |
10641 | done | |
10642 | ||
10f2d63a VZ |
10643 | if test x$gtk_config_exec_prefix != x ; then |
10644 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
10645 | if test x${GTK_CONFIG+set} != xset ; then | |
10646 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
10647 | fi | |
10648 | fi | |
10649 | if test x$gtk_config_prefix != x ; then | |
10650 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
10651 | if test x${GTK_CONFIG+set} != xset ; then | |
10652 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
10653 | fi | |
10654 | fi | |
10655 | ||
10656 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
10657 | set dummy gtk-config; ac_word=$2 | |
698dcdb6 | 10658 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
009fead0 | 10659 | echo "configure:10660: checking for $ac_word" >&5 |
698dcdb6 VZ |
10660 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
10661 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 10662 | else |
698dcdb6 VZ |
10663 | case "$GTK_CONFIG" in |
10664 | /*) | |
f6bcfd97 BP |
10665 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
10666 | ;; | |
698dcdb6 VZ |
10667 | ?:/*) |
10668 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
10669 | ;; | |
f6bcfd97 | 10670 | *) |
698dcdb6 VZ |
10671 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
10672 | ac_dummy="$PATH" | |
10673 | for ac_dir in $ac_dummy; do | |
10674 | test -z "$ac_dir" && ac_dir=. | |
10675 | if test -f $ac_dir/$ac_word; then | |
10676 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
10677 | break | |
10678 | fi | |
10679 | done | |
10680 | IFS="$ac_save_ifs" | |
f6bcfd97 BP |
10681 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
10682 | ;; | |
10683 | esac | |
10684 | fi | |
698dcdb6 | 10685 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
f6bcfd97 | 10686 | if test -n "$GTK_CONFIG"; then |
698dcdb6 | 10687 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
f6bcfd97 | 10688 | else |
698dcdb6 | 10689 | echo "$ac_t""no" 1>&6 |
f6bcfd97 BP |
10690 | fi |
10691 | ||
10692 | min_gtk_version=1.2.7 | |
698dcdb6 | 10693 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
009fead0 | 10694 | echo "configure:10695: checking for GTK - version >= $min_gtk_version" >&5 |
f6bcfd97 | 10695 | no_gtk="" |
3f345b47 VZ |
10696 | if test "$GTK_CONFIG" = "no" ; then |
10697 | no_gtk=yes | |
10698 | else | |
10699 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
10700 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
10701 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
10702 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
10703 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
10704 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
10705 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
10706 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
10707 | if test "x$enable_gtktest" = "xyes" ; then | |
10708 | ac_save_CFLAGS="$CFLAGS" | |
10709 | ac_save_LIBS="$LIBS" | |
10710 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
10711 | LIBS="$GTK_LIBS $LIBS" | |
10712 | rm -f conf.gtktest | |
10713 | if test "$cross_compiling" = yes; then | |
f6bcfd97 BP |
10714 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
10715 | else | |
698dcdb6 | 10716 | cat > conftest.$ac_ext <<EOF |
009fead0 | 10717 | #line 10718 "configure" |
f6bcfd97 BP |
10718 | #include "confdefs.h" |
10719 | ||
10720 | #include <gtk/gtk.h> | |
f6bcfd97 BP |
10721 | #include <stdio.h> |
10722 | #include <stdlib.h> | |
10723 | ||
3f345b47 | 10724 | int |
f6bcfd97 BP |
10725 | main () |
10726 | { | |
10727 | int major, minor, micro; | |
3f345b47 | 10728 | char *tmp_version; |
f6bcfd97 | 10729 | |
3f345b47 | 10730 | system ("touch conf.gtktest"); |
f6bcfd97 | 10731 | |
3f345b47 VZ |
10732 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
10733 | tmp_version = g_strdup("$min_gtk_version"); | |
10734 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
10735 | printf("%s, bad version string\n", "$min_gtk_version"); | |
f6bcfd97 BP |
10736 | exit(1); |
10737 | } | |
10738 | ||
3f345b47 VZ |
10739 | if ((gtk_major_version != $gtk_config_major_version) || |
10740 | (gtk_minor_version != $gtk_config_minor_version) || | |
10741 | (gtk_micro_version != $gtk_config_micro_version)) | |
10742 | { | |
10743 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
10744 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
10745 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
10746 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
10747 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
10748 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
10749 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
10750 | printf("*** required on your system.\n"); | |
10751 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
10752 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
10753 | printf("*** before re-running configure\n"); | |
10754 | } | |
10755 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
10756 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
10757 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
10758 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
10759 | { | |
10760 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
10761 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
10762 | printf("*** library (version %d.%d.%d)\n", | |
10763 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
10764 | } | |
10765 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
10766 | else | |
10767 | { | |
10768 | if ((gtk_major_version > major) || | |
10769 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
10770 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
10771 | { | |
10772 | return 0; | |
10773 | } | |
10774 | else | |
10775 | { | |
10776 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
10777 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
10778 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
10779 | major, minor, micro); | |
10780 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
10781 | printf("***\n"); | |
10782 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
10783 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
10784 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
10785 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
10786 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
10787 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
10788 | printf("*** so that the correct libraries are found at run-time))\n"); | |
10789 | } | |
10790 | } | |
10791 | return 1; | |
f6bcfd97 BP |
10792 | } |
10793 | ||
698dcdb6 | 10794 | EOF |
009fead0 | 10795 | if { (eval echo configure:10796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 10796 | then |
f6bcfd97 BP |
10797 | : |
10798 | else | |
698dcdb6 VZ |
10799 | echo "configure: failed program was:" >&5 |
10800 | cat conftest.$ac_ext >&5 | |
10801 | rm -fr conftest* | |
10802 | no_gtk=yes | |
f6bcfd97 | 10803 | fi |
698dcdb6 | 10804 | rm -fr conftest* |
f6bcfd97 | 10805 | fi |
698dcdb6 | 10806 | |
3f345b47 VZ |
10807 | CFLAGS="$ac_save_CFLAGS" |
10808 | LIBS="$ac_save_LIBS" | |
10809 | fi | |
f6bcfd97 BP |
10810 | fi |
10811 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 10812 | echo "$ac_t""yes" 1>&6 |
3f345b47 | 10813 | wx_cv_lib_gtk=1.2.7 |
f6bcfd97 | 10814 | else |
698dcdb6 | 10815 | echo "$ac_t""no" 1>&6 |
3f345b47 VZ |
10816 | if test "$GTK_CONFIG" = "no" ; then |
10817 | echo "*** The gtk-config script installed by GTK could not be found" | |
10818 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
10819 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
10820 | echo "*** full path to gtk-config." | |
10821 | else | |
10822 | if test -f conf.gtktest ; then | |
10823 | : | |
10824 | else | |
10825 | echo "*** Could not run GTK test program, checking why..." | |
10826 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
10827 | LIBS="$LIBS $GTK_LIBS" | |
10828 | cat > conftest.$ac_ext <<EOF | |
009fead0 | 10829 | #line 10830 "configure" |
3f345b47 VZ |
10830 | #include "confdefs.h" |
10831 | ||
10832 | #include <gtk/gtk.h> | |
10833 | #include <stdio.h> | |
10834 | ||
10835 | int main() { | |
10836 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
10837 | ; return 0; } | |
10838 | EOF | |
009fead0 | 10839 | if { (eval echo configure:10840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3f345b47 VZ |
10840 | rm -rf conftest* |
10841 | echo "*** The test program compiled, but did not run. This usually means" | |
10842 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
10843 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
10844 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
10845 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
10846 | echo "*** is required on your system" | |
10847 | echo "***" | |
10848 | echo "*** If you have an old version installed, it is best to remove it, although" | |
10849 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
10850 | echo "***" | |
10851 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
10852 | echo "*** came with the system with the command" | |
10853 | echo "***" | |
10854 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
10855 | else | |
10856 | echo "configure: failed program was:" >&5 | |
10857 | cat conftest.$ac_ext >&5 | |
10858 | rm -rf conftest* | |
10859 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
10860 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
10861 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
10862 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
10863 | fi | |
10864 | rm -f conftest* | |
10865 | CFLAGS="$ac_save_CFLAGS" | |
10866 | LIBS="$ac_save_LIBS" | |
10867 | fi | |
10868 | fi | |
f6bcfd97 BP |
10869 | GTK_CFLAGS="" |
10870 | GTK_LIBS="" | |
10871 | : | |
10872 | fi | |
698dcdb6 VZ |
10873 | |
10874 | ||
3f345b47 | 10875 | rm -f conf.gtktest |
f6bcfd97 | 10876 | |
8168de4c VZ |
10877 | fi |
10878 | ||
10879 | if test -z "$wx_cv_lib_gtk"; then | |
3f345b47 VZ |
10880 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. |
10881 | if test "${with_gtk_prefix+set}" = set; then | |
10882 | withval="$with_gtk_prefix" | |
10883 | gtk_config_prefix="$withval" | |
10884 | else | |
10885 | gtk_config_prefix="" | |
10886 | fi | |
10887 | ||
10888 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
10889 | if test "${with_gtk_exec_prefix+set}" = set; then | |
10890 | withval="$with_gtk_exec_prefix" | |
10891 | gtk_config_exec_prefix="$withval" | |
10892 | else | |
10893 | gtk_config_exec_prefix="" | |
10894 | fi | |
10895 | ||
10896 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
10897 | if test "${enable_gtktest+set}" = set; then | |
10898 | enableval="$enable_gtktest" | |
10899 | : | |
10900 | else | |
10901 | enable_gtktest=yes | |
10902 | fi | |
10903 | ||
10904 | ||
10905 | for module in . $GTK_MODULES | |
10906 | do | |
10907 | case "$module" in | |
10908 | gthread) | |
10909 | gtk_config_args="$gtk_config_args gthread" | |
10910 | ;; | |
10911 | esac | |
10912 | done | |
10913 | ||
f6bcfd97 BP |
10914 | if test x$gtk_config_exec_prefix != x ; then |
10915 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
10916 | if test x${GTK_CONFIG+set} != xset ; then | |
10917 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
10918 | fi | |
10919 | fi | |
10920 | if test x$gtk_config_prefix != x ; then | |
10921 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
10922 | if test x${GTK_CONFIG+set} != xset ; then | |
10923 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
10924 | fi | |
10925 | fi | |
10926 | ||
10927 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
10928 | set dummy gtk-config; ac_word=$2 | |
698dcdb6 | 10929 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
009fead0 | 10930 | echo "configure:10931: checking for $ac_word" >&5 |
698dcdb6 VZ |
10931 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
10932 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 10933 | else |
698dcdb6 VZ |
10934 | case "$GTK_CONFIG" in |
10935 | /*) | |
10f2d63a VZ |
10936 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
10937 | ;; | |
698dcdb6 VZ |
10938 | ?:/*) |
10939 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
10940 | ;; | |
10f2d63a | 10941 | *) |
698dcdb6 VZ |
10942 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
10943 | ac_dummy="$PATH" | |
10944 | for ac_dir in $ac_dummy; do | |
10945 | test -z "$ac_dir" && ac_dir=. | |
10946 | if test -f $ac_dir/$ac_word; then | |
10947 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
10948 | break | |
10949 | fi | |
10950 | done | |
10951 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
10952 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
10953 | ;; | |
10954 | esac | |
10955 | fi | |
698dcdb6 | 10956 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
10f2d63a | 10957 | if test -n "$GTK_CONFIG"; then |
698dcdb6 | 10958 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
10f2d63a | 10959 | else |
698dcdb6 | 10960 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
10961 | fi |
10962 | ||
04165bec | 10963 | min_gtk_version=1.2.3 |
698dcdb6 | 10964 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
009fead0 | 10965 | echo "configure:10966: checking for GTK - version >= $min_gtk_version" >&5 |
10f2d63a | 10966 | no_gtk="" |
3f345b47 VZ |
10967 | if test "$GTK_CONFIG" = "no" ; then |
10968 | no_gtk=yes | |
10969 | else | |
10970 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
10971 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
10972 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
10973 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
10974 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
10975 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
10976 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
10977 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
10978 | if test "x$enable_gtktest" = "xyes" ; then | |
10979 | ac_save_CFLAGS="$CFLAGS" | |
10980 | ac_save_LIBS="$LIBS" | |
10981 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
10982 | LIBS="$GTK_LIBS $LIBS" | |
10983 | rm -f conf.gtktest | |
10984 | if test "$cross_compiling" = yes; then | |
10f2d63a VZ |
10985 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
10986 | else | |
698dcdb6 | 10987 | cat > conftest.$ac_ext <<EOF |
009fead0 | 10988 | #line 10989 "configure" |
10f2d63a VZ |
10989 | #include "confdefs.h" |
10990 | ||
10991 | #include <gtk/gtk.h> | |
10992 | #include <stdio.h> | |
32832908 | 10993 | #include <stdlib.h> |
10f2d63a | 10994 | |
3f345b47 | 10995 | int |
10f2d63a VZ |
10996 | main () |
10997 | { | |
10998 | int major, minor, micro; | |
3f345b47 | 10999 | char *tmp_version; |
10f2d63a | 11000 | |
3f345b47 | 11001 | system ("touch conf.gtktest"); |
10f2d63a | 11002 | |
3f345b47 VZ |
11003 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
11004 | tmp_version = g_strdup("$min_gtk_version"); | |
11005 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
11006 | printf("%s, bad version string\n", "$min_gtk_version"); | |
f49f2b0c RR |
11007 | exit(1); |
11008 | } | |
11009 | ||
3f345b47 VZ |
11010 | if ((gtk_major_version != $gtk_config_major_version) || |
11011 | (gtk_minor_version != $gtk_config_minor_version) || | |
11012 | (gtk_micro_version != $gtk_config_micro_version)) | |
11013 | { | |
11014 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
11015 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
11016 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
11017 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
11018 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
11019 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
11020 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
11021 | printf("*** required on your system.\n"); | |
11022 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
11023 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
11024 | printf("*** before re-running configure\n"); | |
11025 | } | |
11026 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
11027 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
11028 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
11029 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
11030 | { | |
11031 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
11032 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
11033 | printf("*** library (version %d.%d.%d)\n", | |
11034 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
11035 | } | |
11036 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
11037 | else | |
11038 | { | |
11039 | if ((gtk_major_version > major) || | |
11040 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
11041 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
11042 | { | |
11043 | return 0; | |
11044 | } | |
11045 | else | |
11046 | { | |
11047 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
11048 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
11049 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
11050 | major, minor, micro); | |
11051 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
11052 | printf("***\n"); | |
11053 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
11054 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
11055 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
11056 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
11057 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
11058 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
11059 | printf("*** so that the correct libraries are found at run-time))\n"); | |
11060 | } | |
11061 | } | |
11062 | return 1; | |
10f2d63a VZ |
11063 | } |
11064 | ||
698dcdb6 | 11065 | EOF |
009fead0 | 11066 | if { (eval echo configure:11067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 11067 | then |
10f2d63a VZ |
11068 | : |
11069 | else | |
698dcdb6 VZ |
11070 | echo "configure: failed program was:" >&5 |
11071 | cat conftest.$ac_ext >&5 | |
11072 | rm -fr conftest* | |
11073 | no_gtk=yes | |
10f2d63a | 11074 | fi |
698dcdb6 | 11075 | rm -fr conftest* |
10f2d63a | 11076 | fi |
698dcdb6 | 11077 | |
3f345b47 VZ |
11078 | CFLAGS="$ac_save_CFLAGS" |
11079 | LIBS="$ac_save_LIBS" | |
11080 | fi | |
10f2d63a VZ |
11081 | fi |
11082 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 11083 | echo "$ac_t""yes" 1>&6 |
3f345b47 | 11084 | wx_cv_lib_gtk=1.2.3 |
10f2d63a | 11085 | else |
698dcdb6 | 11086 | echo "$ac_t""no" 1>&6 |
3f345b47 VZ |
11087 | if test "$GTK_CONFIG" = "no" ; then |
11088 | echo "*** The gtk-config script installed by GTK could not be found" | |
11089 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
11090 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
11091 | echo "*** full path to gtk-config." | |
11092 | else | |
11093 | if test -f conf.gtktest ; then | |
11094 | : | |
11095 | else | |
11096 | echo "*** Could not run GTK test program, checking why..." | |
11097 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
11098 | LIBS="$LIBS $GTK_LIBS" | |
11099 | cat > conftest.$ac_ext <<EOF | |
009fead0 | 11100 | #line 11101 "configure" |
3f345b47 VZ |
11101 | #include "confdefs.h" |
11102 | ||
11103 | #include <gtk/gtk.h> | |
11104 | #include <stdio.h> | |
11105 | ||
11106 | int main() { | |
11107 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
11108 | ; return 0; } | |
11109 | EOF | |
009fead0 | 11110 | if { (eval echo configure:11111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3f345b47 VZ |
11111 | rm -rf conftest* |
11112 | echo "*** The test program compiled, but did not run. This usually means" | |
11113 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
11114 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
11115 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
11116 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
11117 | echo "*** is required on your system" | |
11118 | echo "***" | |
11119 | echo "*** If you have an old version installed, it is best to remove it, although" | |
11120 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
11121 | echo "***" | |
11122 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
11123 | echo "*** came with the system with the command" | |
11124 | echo "***" | |
11125 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
11126 | else | |
11127 | echo "configure: failed program was:" >&5 | |
11128 | cat conftest.$ac_ext >&5 | |
11129 | rm -rf conftest* | |
11130 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
11131 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
11132 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
11133 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
11134 | fi | |
11135 | rm -f conftest* | |
11136 | CFLAGS="$ac_save_CFLAGS" | |
11137 | LIBS="$ac_save_LIBS" | |
11138 | fi | |
11139 | fi | |
10f2d63a VZ |
11140 | GTK_CFLAGS="" |
11141 | GTK_LIBS="" | |
7e99ad86 | 11142 | : |
10f2d63a | 11143 | fi |
698dcdb6 VZ |
11144 | |
11145 | ||
3f345b47 | 11146 | rm -f conf.gtktest |
10f2d63a | 11147 | |
8168de4c VZ |
11148 | fi |
11149 | ||
11150 | if test -z "$wx_cv_lib_gtk"; then | |
11151 | wx_cv_lib_gtk=none | |
138be253 VZ |
11152 | else |
11153 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
11154 | wx_cv_libs_gtk=$GTK_LIBS | |
8168de4c VZ |
11155 | fi |
11156 | ||
1e6feb95 | 11157 | |
8168de4c | 11158 | fi |
703e0a69 | 11159 | |
698dcdb6 | 11160 | |
8168de4c VZ |
11161 | if test "$gtk_version_cached" = 1; then |
11162 | echo "$ac_t""$wx_cv_lib_gtk" 1>&6 | |
1e6feb95 | 11163 | fi |
698dcdb6 | 11164 | |
8168de4c VZ |
11165 | case "$wx_cv_lib_gtk" in |
11166 | 2.0) WXGTK20=1 | |
11167 | ;; | |
11168 | 1.2.7) WXGTK127=1 | |
d1a8d972 | 11169 | WXGTK12=1 |
8168de4c VZ |
11170 | ;; |
11171 | 1.2.3) WXGTK12=1 | |
11172 | ;; | |
11173 | *) { echo "configure: error: | |
11174 | Please check that gtk-config is in path, the directory | |
11175 | where GTK+ libraries are installed (returned by | |
11176 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
11177 | equivalent variable and GTK+ is version 1.2.3 or above. | |
11178 | " 1>&2; exit 1; } | |
11179 | ;; | |
11180 | esac | |
2224580a | 11181 | |
138be253 | 11182 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" |
11dfaa5f | 11183 | GUI_TK_LIBRARY="$wx_cv_libs_gtk" |
698dcdb6 | 11184 | |
1e6feb95 VZ |
11185 | AFMINSTALL=afminstall |
11186 | TOOLKIT=GTK | |
11187 | GUIDIST=GTK_DIST | |
7ec2881a | 11188 | |
1e6feb95 | 11189 | echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6 |
009fead0 | 11190 | echo "configure:11191: checking for gdk_im_open in -lgdk" >&5 |
698dcdb6 VZ |
11191 | ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'` |
11192 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11193 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7ec2881a | 11194 | else |
698dcdb6 | 11195 | ac_save_LIBS="$LIBS" |
7ec2881a | 11196 | LIBS="-lgdk $LIBS" |
698dcdb6 | 11197 | cat > conftest.$ac_ext <<EOF |
009fead0 | 11198 | #line 11199 "configure" |
7ec2881a RR |
11199 | #include "confdefs.h" |
11200 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11201 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11202 | builtin and then its argument prototype would still apply. */ |
11203 | char gdk_im_open(); | |
11204 | ||
11205 | int main() { | |
11206 | gdk_im_open() | |
11207 | ; return 0; } | |
11208 | EOF | |
009fead0 | 11209 | if { (eval echo configure:11210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11210 | rm -rf conftest* |
11211 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11212 | else | |
11213 | echo "configure: failed program was:" >&5 | |
11214 | cat conftest.$ac_ext >&5 | |
11215 | rm -rf conftest* | |
11216 | eval "ac_cv_lib_$ac_lib_var=no" | |
11217 | fi | |
11218 | rm -f conftest* | |
11219 | LIBS="$ac_save_LIBS" | |
11220 | ||
11221 | fi | |
11222 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11223 | echo "$ac_t""yes" 1>&6 | |
11224 | cat >> confdefs.h <<\EOF | |
7ec2881a RR |
11225 | #define HAVE_XIM 1 |
11226 | EOF | |
11227 | ||
698dcdb6 VZ |
11228 | else |
11229 | echo "$ac_t""no" 1>&6 | |
7ec2881a RR |
11230 | fi |
11231 | ||
1e6feb95 | 11232 | fi |
10f2d63a | 11233 | |
1e6feb95 | 11234 | if test "$wxUSE_MGL" = 1; then |
1e6feb95 | 11235 | echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6 |
009fead0 | 11236 | echo "configure:11237: checking for SciTech MGL library" >&5 |
1e6feb95 VZ |
11237 | if test "x$MGL_ROOT" = x ; then |
11238 | echo "$ac_t""not found" 1>&6 | |
11239 | { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; } | |
11240 | else | |
11241 | echo "$ac_t""$MGL_ROOT" 1>&6 | |
11242 | fi | |
11243 | ||
f9bc1684 VS |
11244 | case "${host}" in |
11245 | *-*-linux* ) | |
11246 | mgl_os=linux/gcc/glibc | |
11247 | ;; | |
11248 | *-pc-msdosdjgpp ) | |
11249 | mgl_os=dos32/dj2 | |
11250 | ;; | |
11251 | *) | |
11252 | { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; } | |
11253 | esac | |
11254 | ||
3a922bb4 | 11255 | mgl_lib_type="" |
1e6feb95 VZ |
11256 | |
11257 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
223e7fbf VS |
11258 | if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \ |
11259 | -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then | |
3a922bb4 | 11260 | mgl_lib_type=debug |
1e6feb95 VZ |
11261 | fi |
11262 | fi | |
3a922bb4 | 11263 | if test "x$mgl_lib_type" = x ; then |
223e7fbf VS |
11264 | if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \ |
11265 | -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then | |
3a922bb4 | 11266 | mgl_lib_type=release |
1e6feb95 VZ |
11267 | else |
11268 | { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; } | |
11269 | fi | |
11270 | fi | |
11271 | ||
11272 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
3a922bb4 | 11273 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" |
1e6feb95 VZ |
11274 | |
11275 | AFMINSTALL=afminstall | |
11276 | TOOLKIT=MGL | |
11277 | GUIDIST=MGL_DIST | |
11278 | fi | |
11279 | ||
1725144d RR |
11280 | if test "$wxUSE_MICROWIN" = 1; then |
11281 | echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6 | |
009fead0 | 11282 | echo "configure:11283: checking for MicroWindows" >&5 |
1725144d RR |
11283 | if test "x$MICROWINDOWS" = x ; then |
11284 | echo "$ac_t""not found" 1>&6 | |
11285 | { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; } | |
11286 | else | |
11287 | echo "$ac_t""$MICROWINDOWS" 1>&6 | |
11288 | fi | |
11289 | ||
11290 | if test -f $MICROWINDOWS/lib/libmwin.a; then | |
11291 | echo "$ac_t""MicroWindows' libraries found." 1>&6 | |
11292 | else | |
11293 | { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; } | |
11294 | fi | |
11295 | ||
11296 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" | |
11297 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
11298 | ||
11299 | AFMINSTALL=afminstall | |
11300 | TOOLKIT=MICROWIN | |
11301 | GUIDIST=MICROWIN_DIST | |
11302 | ||
11303 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__ -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
11304 | fi | |
11305 | ||
f79bd02d | 11306 | if test "$wxUSE_X11" = 1; then |
d714471b | 11307 | # If we find X, set shell vars x_includes and x_libraries to the |
698dcdb6 VZ |
11308 | # paths, otherwise set no_x=yes. |
11309 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
11310 | # --without-x overrides everything else, but does not touch the cache. | |
11311 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
009fead0 | 11312 | echo "configure:11313: checking for X" >&5 |
ab9b9eab VZ |
11313 | |
11314 | # Check whether --with-x or --without-x was given. | |
11315 | if test "${with_x+set}" = set; then | |
11316 | withval="$with_x" | |
698dcdb6 VZ |
11317 | : |
11318 | fi | |
ba337fe7 | 11319 | |
ab9b9eab VZ |
11320 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
11321 | if test "x$with_x" = xno; then | |
11322 | # The user explicitly disabled X. | |
11323 | have_x=disabled | |
11324 | else | |
11325 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
11326 | # Both variables are already set. | |
11327 | have_x=yes | |
11328 | else | |
698dcdb6 VZ |
11329 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then |
11330 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab VZ |
11331 | else |
11332 | # One or both of the vars are not set, and there is no cached value. | |
698dcdb6 VZ |
11333 | ac_x_includes=NO ac_x_libraries=NO |
11334 | rm -fr conftestdir | |
11335 | if mkdir conftestdir; then | |
11336 | cd conftestdir | |
ab9b9eab | 11337 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
698dcdb6 | 11338 | cat > Imakefile <<'EOF' |
ab9b9eab VZ |
11339 | acfindx: |
11340 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
11341 | EOF | |
11342 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
11343 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
11344 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
11345 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
10f2d63a | 11346 | for ac_extension in a so sl; do |
ab9b9eab | 11347 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
698dcdb6 | 11348 | test -f $ac_im_libdir/libX11.$ac_extension; then |
ab9b9eab | 11349 | ac_im_usrlibdir=$ac_im_libdir; break |
10f2d63a VZ |
11350 | fi |
11351 | done | |
ab9b9eab VZ |
11352 | # Screen out bogus values from the imake configuration. They are |
11353 | # bogus both because they are the default anyway, and because | |
11354 | # using them would break gcc on systems where it needs fixed includes. | |
698dcdb6 | 11355 | case "$ac_im_incroot" in |
ab9b9eab | 11356 | /usr/include) ;; |
698dcdb6 | 11357 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; |
ab9b9eab | 11358 | esac |
698dcdb6 | 11359 | case "$ac_im_usrlibdir" in |
ab9b9eab | 11360 | /usr/lib | /lib) ;; |
698dcdb6 | 11361 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; |
ab9b9eab | 11362 | esac |
ba337fe7 | 11363 | fi |
ab9b9eab | 11364 | cd .. |
698dcdb6 | 11365 | rm -fr conftestdir |
ab9b9eab | 11366 | fi |
10f2d63a | 11367 | |
698dcdb6 VZ |
11368 | if test "$ac_x_includes" = NO; then |
11369 | # Guess where to find include files, by looking for this one X11 .h file. | |
11370 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
11371 | ||
ab9b9eab | 11372 | # First, try using that file with no special directory specified. |
698dcdb6 | 11373 | cat > conftest.$ac_ext <<EOF |
009fead0 | 11374 | #line 11375 "configure" |
ab9b9eab | 11375 | #include "confdefs.h" |
698dcdb6 VZ |
11376 | #include <$x_direct_test_include> |
11377 | EOF | |
11378 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
009fead0 | 11379 | { (eval echo configure:11380: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11380 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11381 | if test -z "$ac_err"; then | |
11382 | rm -rf conftest* | |
ab9b9eab VZ |
11383 | # We can compile using X headers with no special include directory. |
11384 | ac_x_includes= | |
11385 | else | |
698dcdb6 VZ |
11386 | echo "$ac_err" >&5 |
11387 | echo "configure: failed program was:" >&5 | |
ab9b9eab | 11388 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11389 | rm -rf conftest* |
11390 | # Look for the header file in a standard set of common directories. | |
11391 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
11392 | for ac_dir in \ | |
11393 | /usr/X11/include \ | |
11394 | /usr/X11R6/include \ | |
11395 | /usr/X11R5/include \ | |
11396 | /usr/X11R4/include \ | |
11397 | \ | |
11398 | /usr/include/X11 \ | |
11399 | /usr/include/X11R6 \ | |
11400 | /usr/include/X11R5 \ | |
11401 | /usr/include/X11R4 \ | |
11402 | \ | |
11403 | /usr/local/X11/include \ | |
11404 | /usr/local/X11R6/include \ | |
11405 | /usr/local/X11R5/include \ | |
11406 | /usr/local/X11R4/include \ | |
11407 | \ | |
11408 | /usr/local/include/X11 \ | |
11409 | /usr/local/include/X11R6 \ | |
11410 | /usr/local/include/X11R5 \ | |
11411 | /usr/local/include/X11R4 \ | |
11412 | \ | |
11413 | /usr/X386/include \ | |
11414 | /usr/x386/include \ | |
11415 | /usr/XFree86/include/X11 \ | |
11416 | \ | |
11417 | /usr/include \ | |
11418 | /usr/local/include \ | |
11419 | /usr/unsupported/include \ | |
11420 | /usr/athena/include \ | |
11421 | /usr/local/x11r5/include \ | |
11422 | /usr/lpp/Xamples/include \ | |
11423 | \ | |
11424 | /usr/openwin/include \ | |
11425 | /usr/openwin/share/include \ | |
11426 | ; \ | |
11427 | do | |
11428 | if test -r "$ac_dir/$x_direct_test_include"; then | |
11429 | ac_x_includes=$ac_dir | |
11430 | break | |
11431 | fi | |
11432 | done | |
ab9b9eab | 11433 | fi |
698dcdb6 VZ |
11434 | rm -f conftest* |
11435 | fi # $ac_x_includes = NO | |
10f2d63a | 11436 | |
698dcdb6 | 11437 | if test "$ac_x_libraries" = NO; then |
ab9b9eab | 11438 | # Check for the libraries. |
698dcdb6 VZ |
11439 | |
11440 | test -z "$x_direct_test_library" && x_direct_test_library=Xt | |
11441 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
11442 | ||
ab9b9eab VZ |
11443 | # See if we find them without any special options. |
11444 | # Don't add to $LIBS permanently. | |
698dcdb6 VZ |
11445 | ac_save_LIBS="$LIBS" |
11446 | LIBS="-l$x_direct_test_library $LIBS" | |
11447 | cat > conftest.$ac_ext <<EOF | |
009fead0 | 11448 | #line 11449 "configure" |
ab9b9eab | 11449 | #include "confdefs.h" |
698dcdb6 VZ |
11450 | |
11451 | int main() { | |
11452 | ${x_direct_test_function}() | |
11453 | ; return 0; } | |
11454 | EOF | |
009fead0 | 11455 | if { (eval echo configure:11456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11456 | rm -rf conftest* |
11457 | LIBS="$ac_save_LIBS" | |
ab9b9eab VZ |
11458 | # We can link X programs with no special library path. |
11459 | ac_x_libraries= | |
11460 | else | |
698dcdb6 VZ |
11461 | echo "configure: failed program was:" >&5 |
11462 | cat conftest.$ac_ext >&5 | |
11463 | rm -rf conftest* | |
11464 | LIBS="$ac_save_LIBS" | |
11465 | # First see if replacing the include by lib works. | |
11466 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
11467 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
11468 | /usr/X11/lib \ | |
11469 | /usr/X11R6/lib \ | |
11470 | /usr/X11R5/lib \ | |
11471 | /usr/X11R4/lib \ | |
11472 | \ | |
11473 | /usr/lib/X11 \ | |
11474 | /usr/lib/X11R6 \ | |
11475 | /usr/lib/X11R5 \ | |
11476 | /usr/lib/X11R4 \ | |
11477 | \ | |
11478 | /usr/local/X11/lib \ | |
11479 | /usr/local/X11R6/lib \ | |
11480 | /usr/local/X11R5/lib \ | |
11481 | /usr/local/X11R4/lib \ | |
11482 | \ | |
11483 | /usr/local/lib/X11 \ | |
11484 | /usr/local/lib/X11R6 \ | |
11485 | /usr/local/lib/X11R5 \ | |
11486 | /usr/local/lib/X11R4 \ | |
11487 | \ | |
11488 | /usr/X386/lib \ | |
11489 | /usr/x386/lib \ | |
11490 | /usr/XFree86/lib/X11 \ | |
11491 | \ | |
11492 | /usr/lib \ | |
11493 | /usr/local/lib \ | |
11494 | /usr/unsupported/lib \ | |
11495 | /usr/athena/lib \ | |
11496 | /usr/local/x11r5/lib \ | |
11497 | /usr/lpp/Xamples/lib \ | |
11498 | /lib/usr/lib/X11 \ | |
11499 | \ | |
11500 | /usr/openwin/lib \ | |
11501 | /usr/openwin/share/lib \ | |
11502 | ; \ | |
ab9b9eab VZ |
11503 | do |
11504 | for ac_extension in a so sl; do | |
698dcdb6 | 11505 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then |
ab9b9eab VZ |
11506 | ac_x_libraries=$ac_dir |
11507 | break 2 | |
10f2d63a | 11508 | fi |
10f2d63a | 11509 | done |
ab9b9eab VZ |
11510 | done |
11511 | fi | |
698dcdb6 VZ |
11512 | rm -f conftest* |
11513 | fi # $ac_x_libraries = NO | |
10f2d63a | 11514 | |
698dcdb6 | 11515 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
ab9b9eab VZ |
11516 | # Didn't find X anywhere. Cache the known absence of X. |
11517 | ac_cv_have_x="have_x=no" | |
11518 | else | |
11519 | # Record where we found X for the cache. | |
11520 | ac_cv_have_x="have_x=yes \ | |
11521 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
11522 | fi | |
11523 | fi | |
10f2d63a | 11524 | fi |
ab9b9eab VZ |
11525 | eval "$ac_cv_have_x" |
11526 | fi # $with_x != no | |
10f2d63a | 11527 | |
ab9b9eab | 11528 | if test "$have_x" != yes; then |
698dcdb6 | 11529 | echo "$ac_t""$have_x" 1>&6 |
ab9b9eab VZ |
11530 | no_x=yes |
11531 | else | |
11532 | # If each of the values was on the command line, it overrides each guess. | |
11533 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
11534 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
11535 | # Update the cache value to reflect the command line values. | |
11536 | ac_cv_have_x="have_x=yes \ | |
11537 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
698dcdb6 | 11538 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 |
ab9b9eab | 11539 | fi |
10f2d63a | 11540 | |
ab9b9eab VZ |
11541 | if test "$no_x" = yes; then |
11542 | # Not all programs may use this symbol, but it does not hurt to define it. | |
698dcdb6 | 11543 | cat >> confdefs.h <<\EOF |
ab9b9eab VZ |
11544 | #define X_DISPLAY_MISSING 1 |
11545 | EOF | |
10f2d63a | 11546 | |
ab9b9eab VZ |
11547 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
11548 | else | |
11549 | if test -n "$x_includes"; then | |
11550 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
10f2d63a VZ |
11551 | fi |
11552 | ||
ab9b9eab VZ |
11553 | # It would also be nice to do this for all -L options, not just this one. |
11554 | if test -n "$x_libraries"; then | |
11555 | X_LIBS="$X_LIBS -L$x_libraries" | |
11556 | # For Solaris; some versions of Sun CC require a space after -R and | |
11557 | # others require no space. Words are not sufficient . . . . | |
698dcdb6 | 11558 | case "`(uname -sr) 2>/dev/null`" in |
ab9b9eab | 11559 | "SunOS 5"*) |
698dcdb6 | 11560 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
009fead0 | 11561 | echo "configure:11562: checking whether -R must be followed by a space" >&5 |
698dcdb6 VZ |
11562 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
11563 | cat > conftest.$ac_ext <<EOF | |
009fead0 | 11564 | #line 11565 "configure" |
ab9b9eab | 11565 | #include "confdefs.h" |
10f2d63a | 11566 | |
698dcdb6 | 11567 | int main() { |
788deba1 | 11568 | |
698dcdb6 VZ |
11569 | ; return 0; } |
11570 | EOF | |
009fead0 | 11571 | if { (eval echo configure:11572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 11572 | rm -rf conftest* |
ab9b9eab VZ |
11573 | ac_R_nospace=yes |
11574 | else | |
698dcdb6 VZ |
11575 | echo "configure: failed program was:" >&5 |
11576 | cat conftest.$ac_ext >&5 | |
11577 | rm -rf conftest* | |
11578 | ac_R_nospace=no | |
ab9b9eab | 11579 | fi |
698dcdb6 | 11580 | rm -f conftest* |
ab9b9eab | 11581 | if test $ac_R_nospace = yes; then |
698dcdb6 | 11582 | echo "$ac_t""no" 1>&6 |
ab9b9eab VZ |
11583 | X_LIBS="$X_LIBS -R$x_libraries" |
11584 | else | |
11585 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
698dcdb6 | 11586 | cat > conftest.$ac_ext <<EOF |
009fead0 | 11587 | #line 11588 "configure" |
ab9b9eab | 11588 | #include "confdefs.h" |
788deba1 | 11589 | |
698dcdb6 | 11590 | int main() { |
ab9b9eab | 11591 | |
698dcdb6 VZ |
11592 | ; return 0; } |
11593 | EOF | |
009fead0 | 11594 | if { (eval echo configure:11595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 11595 | rm -rf conftest* |
ab9b9eab VZ |
11596 | ac_R_space=yes |
11597 | else | |
698dcdb6 VZ |
11598 | echo "configure: failed program was:" >&5 |
11599 | cat conftest.$ac_ext >&5 | |
11600 | rm -rf conftest* | |
11601 | ac_R_space=no | |
ab9b9eab | 11602 | fi |
698dcdb6 | 11603 | rm -f conftest* |
ab9b9eab | 11604 | if test $ac_R_space = yes; then |
698dcdb6 | 11605 | echo "$ac_t""yes" 1>&6 |
ab9b9eab VZ |
11606 | X_LIBS="$X_LIBS -R $x_libraries" |
11607 | else | |
698dcdb6 | 11608 | echo "$ac_t""neither works" 1>&6 |
ab9b9eab VZ |
11609 | fi |
11610 | fi | |
698dcdb6 | 11611 | LIBS="$ac_xsave_LIBS" |
ab9b9eab VZ |
11612 | esac |
11613 | fi | |
11614 | ||
11615 | # Check for system-dependent libraries X programs must link with. | |
11616 | # Do this before checking for the system-independent R6 libraries | |
11617 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
11618 | ||
11619 | if test "$ISC" = yes; then | |
11620 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
11621 | else | |
698dcdb6 VZ |
11622 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
11623 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
ab9b9eab | 11624 | # the Alpha needs dnet_stub (dnet does not exist). |
698dcdb6 | 11625 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
009fead0 | 11626 | echo "configure:11627: checking for dnet_ntoa in -ldnet" >&5 |
698dcdb6 VZ |
11627 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
11628 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11629 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11630 | else |
698dcdb6 | 11631 | ac_save_LIBS="$LIBS" |
ab9b9eab | 11632 | LIBS="-ldnet $LIBS" |
698dcdb6 | 11633 | cat > conftest.$ac_ext <<EOF |
009fead0 | 11634 | #line 11635 "configure" |
ab9b9eab VZ |
11635 | #include "confdefs.h" |
11636 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11637 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11638 | builtin and then its argument prototype would still apply. */ |
11639 | char dnet_ntoa(); | |
11640 | ||
11641 | int main() { | |
11642 | dnet_ntoa() | |
11643 | ; return 0; } | |
11644 | EOF | |
009fead0 | 11645 | if { (eval echo configure:11646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11646 | rm -rf conftest* |
11647 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11648 | else | |
11649 | echo "configure: failed program was:" >&5 | |
11650 | cat conftest.$ac_ext >&5 | |
11651 | rm -rf conftest* | |
11652 | eval "ac_cv_lib_$ac_lib_var=no" | |
11653 | fi | |
11654 | rm -f conftest* | |
11655 | LIBS="$ac_save_LIBS" | |
11656 | ||
11657 | fi | |
11658 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11659 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 11660 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
698dcdb6 VZ |
11661 | else |
11662 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11663 | fi |
11664 | ||
11665 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
698dcdb6 | 11666 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
009fead0 | 11667 | echo "configure:11668: checking for dnet_ntoa in -ldnet_stub" >&5 |
698dcdb6 VZ |
11668 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
11669 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11670 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11671 | else |
698dcdb6 | 11672 | ac_save_LIBS="$LIBS" |
ab9b9eab | 11673 | LIBS="-ldnet_stub $LIBS" |
698dcdb6 | 11674 | cat > conftest.$ac_ext <<EOF |
009fead0 | 11675 | #line 11676 "configure" |
ab9b9eab VZ |
11676 | #include "confdefs.h" |
11677 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11678 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11679 | builtin and then its argument prototype would still apply. */ |
11680 | char dnet_ntoa(); | |
11681 | ||
11682 | int main() { | |
11683 | dnet_ntoa() | |
11684 | ; return 0; } | |
11685 | EOF | |
009fead0 | 11686 | if { (eval echo configure:11687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11687 | rm -rf conftest* |
11688 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11689 | else | |
11690 | echo "configure: failed program was:" >&5 | |
11691 | cat conftest.$ac_ext >&5 | |
11692 | rm -rf conftest* | |
11693 | eval "ac_cv_lib_$ac_lib_var=no" | |
11694 | fi | |
11695 | rm -f conftest* | |
11696 | LIBS="$ac_save_LIBS" | |
11697 | ||
11698 | fi | |
11699 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11700 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 11701 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
698dcdb6 VZ |
11702 | else |
11703 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11704 | fi |
11705 | ||
11706 | fi | |
11707 | ||
11708 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
11709 | # to get the SysV transport functions. | |
698dcdb6 | 11710 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
ab9b9eab VZ |
11711 | # needs -lnsl. |
11712 | # The nsl library prevents programs from opening the X display | |
698dcdb6 VZ |
11713 | # on Irix 5.2, according to dickey@clark.net. |
11714 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
009fead0 | 11715 | echo "configure:11716: checking for gethostbyname" >&5 |
698dcdb6 VZ |
11716 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
11717 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11718 | else | |
11719 | cat > conftest.$ac_ext <<EOF | |
009fead0 | 11720 | #line 11721 "configure" |
ab9b9eab VZ |
11721 | #include "confdefs.h" |
11722 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 11723 | which can conflict with char gethostbyname(); below. */ |
ab9b9eab VZ |
11724 | #include <assert.h> |
11725 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11726 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11727 | builtin and then its argument prototype would still apply. */ |
11728 | char gethostbyname(); | |
11729 | ||
11730 | int main() { | |
ab9b9eab VZ |
11731 | |
11732 | /* The GNU C library defines this for functions which it implements | |
11733 | to always fail with ENOSYS. Some functions are actually named | |
11734 | something starting with __ and the normal name is an alias. */ | |
11735 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
11736 | choke me | |
11737 | #else | |
698dcdb6 | 11738 | gethostbyname(); |
ab9b9eab VZ |
11739 | #endif |
11740 | ||
698dcdb6 VZ |
11741 | ; return 0; } |
11742 | EOF | |
009fead0 | 11743 | if { (eval echo configure:11744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11744 | rm -rf conftest* |
11745 | eval "ac_cv_func_gethostbyname=yes" | |
11746 | else | |
11747 | echo "configure: failed program was:" >&5 | |
11748 | cat conftest.$ac_ext >&5 | |
11749 | rm -rf conftest* | |
11750 | eval "ac_cv_func_gethostbyname=no" | |
11751 | fi | |
11752 | rm -f conftest* | |
11753 | fi | |
11754 | ||
11755 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
11756 | echo "$ac_t""yes" 1>&6 | |
11757 | : | |
11758 | else | |
11759 | echo "$ac_t""no" 1>&6 | |
11760 | fi | |
ab9b9eab VZ |
11761 | |
11762 | if test $ac_cv_func_gethostbyname = no; then | |
698dcdb6 | 11763 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
009fead0 | 11764 | echo "configure:11765: checking for gethostbyname in -lnsl" >&5 |
698dcdb6 VZ |
11765 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
11766 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11767 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11768 | else |
698dcdb6 | 11769 | ac_save_LIBS="$LIBS" |
ab9b9eab | 11770 | LIBS="-lnsl $LIBS" |
698dcdb6 | 11771 | cat > conftest.$ac_ext <<EOF |
009fead0 | 11772 | #line 11773 "configure" |
ab9b9eab VZ |
11773 | #include "confdefs.h" |
11774 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11775 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11776 | builtin and then its argument prototype would still apply. */ |
11777 | char gethostbyname(); | |
6232543b | 11778 | |
698dcdb6 VZ |
11779 | int main() { |
11780 | gethostbyname() | |
11781 | ; return 0; } | |
11782 | EOF | |
009fead0 | 11783 | if { (eval echo configure:11784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11784 | rm -rf conftest* |
11785 | eval "ac_cv_lib_$ac_lib_var=yes" | |
703e0a69 | 11786 | else |
698dcdb6 VZ |
11787 | echo "configure: failed program was:" >&5 |
11788 | cat conftest.$ac_ext >&5 | |
11789 | rm -rf conftest* | |
11790 | eval "ac_cv_lib_$ac_lib_var=no" | |
11791 | fi | |
11792 | rm -f conftest* | |
11793 | LIBS="$ac_save_LIBS" | |
1e487827 | 11794 | |
698dcdb6 VZ |
11795 | fi |
11796 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11797 | echo "$ac_t""yes" 1>&6 | |
11798 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
11799 | else | |
11800 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11801 | fi |
11802 | ||
11803 | fi | |
11804 | ||
11805 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
11806 | # socket/setsockopt and other routines are undefined under SCO ODT | |
11807 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
698dcdb6 VZ |
11808 | # on later versions), says simon@lia.di.epfl.ch: it contains |
11809 | # gethostby* variants that don't use the nameserver (or something). | |
11810 | # -lsocket must be given before -lnsl if both are needed. | |
11811 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
11812 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
009fead0 | 11813 | echo "configure:11814: checking for connect" >&5 |
698dcdb6 VZ |
11814 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
11815 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11816 | else | |
11817 | cat > conftest.$ac_ext <<EOF | |
009fead0 | 11818 | #line 11819 "configure" |
ab9b9eab VZ |
11819 | #include "confdefs.h" |
11820 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 11821 | which can conflict with char connect(); below. */ |
ab9b9eab VZ |
11822 | #include <assert.h> |
11823 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11824 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11825 | builtin and then its argument prototype would still apply. */ |
11826 | char connect(); | |
11827 | ||
11828 | int main() { | |
ab9b9eab VZ |
11829 | |
11830 | /* The GNU C library defines this for functions which it implements | |
11831 | to always fail with ENOSYS. Some functions are actually named | |
11832 | something starting with __ and the normal name is an alias. */ | |
11833 | #if defined (__stub_connect) || defined (__stub___connect) | |
11834 | choke me | |
11835 | #else | |
698dcdb6 | 11836 | connect(); |
ab9b9eab VZ |
11837 | #endif |
11838 | ||
698dcdb6 VZ |
11839 | ; return 0; } |
11840 | EOF | |
009fead0 | 11841 | if { (eval echo configure:11842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11842 | rm -rf conftest* |
11843 | eval "ac_cv_func_connect=yes" | |
11844 | else | |
11845 | echo "configure: failed program was:" >&5 | |
11846 | cat conftest.$ac_ext >&5 | |
11847 | rm -rf conftest* | |
11848 | eval "ac_cv_func_connect=no" | |
11849 | fi | |
11850 | rm -f conftest* | |
11851 | fi | |
11852 | ||
11853 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
11854 | echo "$ac_t""yes" 1>&6 | |
11855 | : | |
11856 | else | |
11857 | echo "$ac_t""no" 1>&6 | |
11858 | fi | |
ab9b9eab VZ |
11859 | |
11860 | if test $ac_cv_func_connect = no; then | |
698dcdb6 | 11861 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
009fead0 | 11862 | echo "configure:11863: checking for connect in -lsocket" >&5 |
698dcdb6 VZ |
11863 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
11864 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11865 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11866 | else |
698dcdb6 | 11867 | ac_save_LIBS="$LIBS" |
ab9b9eab | 11868 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
698dcdb6 | 11869 | cat > conftest.$ac_ext <<EOF |
009fead0 | 11870 | #line 11871 "configure" |
ab9b9eab VZ |
11871 | #include "confdefs.h" |
11872 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11873 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11874 | builtin and then its argument prototype would still apply. */ |
11875 | char connect(); | |
11876 | ||
11877 | int main() { | |
11878 | connect() | |
11879 | ; return 0; } | |
11880 | EOF | |
009fead0 | 11881 | if { (eval echo configure:11882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11882 | rm -rf conftest* |
11883 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11884 | else | |
11885 | echo "configure: failed program was:" >&5 | |
11886 | cat conftest.$ac_ext >&5 | |
11887 | rm -rf conftest* | |
11888 | eval "ac_cv_lib_$ac_lib_var=no" | |
11889 | fi | |
11890 | rm -f conftest* | |
11891 | LIBS="$ac_save_LIBS" | |
11892 | ||
11893 | fi | |
11894 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11895 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 11896 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
698dcdb6 VZ |
11897 | else |
11898 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11899 | fi |
11900 | ||
11901 | fi | |
11902 | ||
698dcdb6 VZ |
11903 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
11904 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
009fead0 | 11905 | echo "configure:11906: checking for remove" >&5 |
698dcdb6 VZ |
11906 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
11907 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11908 | else |
698dcdb6 | 11909 | cat > conftest.$ac_ext <<EOF |
009fead0 | 11910 | #line 11911 "configure" |
ab9b9eab VZ |
11911 | #include "confdefs.h" |
11912 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 11913 | which can conflict with char remove(); below. */ |
ab9b9eab VZ |
11914 | #include <assert.h> |
11915 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11916 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11917 | builtin and then its argument prototype would still apply. */ |
11918 | char remove(); | |
11919 | ||
11920 | int main() { | |
ab9b9eab VZ |
11921 | |
11922 | /* The GNU C library defines this for functions which it implements | |
11923 | to always fail with ENOSYS. Some functions are actually named | |
11924 | something starting with __ and the normal name is an alias. */ | |
11925 | #if defined (__stub_remove) || defined (__stub___remove) | |
11926 | choke me | |
11927 | #else | |
698dcdb6 | 11928 | remove(); |
ab9b9eab VZ |
11929 | #endif |
11930 | ||
698dcdb6 VZ |
11931 | ; return 0; } |
11932 | EOF | |
009fead0 | 11933 | if { (eval echo configure:11934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11934 | rm -rf conftest* |
11935 | eval "ac_cv_func_remove=yes" | |
11936 | else | |
11937 | echo "configure: failed program was:" >&5 | |
11938 | cat conftest.$ac_ext >&5 | |
11939 | rm -rf conftest* | |
11940 | eval "ac_cv_func_remove=no" | |
11941 | fi | |
11942 | rm -f conftest* | |
11943 | fi | |
11944 | ||
11945 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
11946 | echo "$ac_t""yes" 1>&6 | |
11947 | : | |
11948 | else | |
11949 | echo "$ac_t""no" 1>&6 | |
11950 | fi | |
ab9b9eab VZ |
11951 | |
11952 | if test $ac_cv_func_remove = no; then | |
698dcdb6 | 11953 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
009fead0 | 11954 | echo "configure:11955: checking for remove in -lposix" >&5 |
698dcdb6 VZ |
11955 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
11956 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11957 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11958 | else |
698dcdb6 | 11959 | ac_save_LIBS="$LIBS" |
ab9b9eab | 11960 | LIBS="-lposix $LIBS" |
698dcdb6 | 11961 | cat > conftest.$ac_ext <<EOF |
009fead0 | 11962 | #line 11963 "configure" |
ab9b9eab VZ |
11963 | #include "confdefs.h" |
11964 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11965 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11966 | builtin and then its argument prototype would still apply. */ |
11967 | char remove(); | |
11968 | ||
11969 | int main() { | |
11970 | remove() | |
11971 | ; return 0; } | |
11972 | EOF | |
009fead0 | 11973 | if { (eval echo configure:11974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11974 | rm -rf conftest* |
11975 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11976 | else | |
11977 | echo "configure: failed program was:" >&5 | |
11978 | cat conftest.$ac_ext >&5 | |
11979 | rm -rf conftest* | |
11980 | eval "ac_cv_lib_$ac_lib_var=no" | |
11981 | fi | |
11982 | rm -f conftest* | |
11983 | LIBS="$ac_save_LIBS" | |
11984 | ||
11985 | fi | |
11986 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11987 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 11988 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
698dcdb6 VZ |
11989 | else |
11990 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11991 | fi |
11992 | ||
11993 | fi | |
11994 | ||
11995 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
698dcdb6 | 11996 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
009fead0 | 11997 | echo "configure:11998: checking for shmat" >&5 |
698dcdb6 VZ |
11998 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
11999 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 12000 | else |
698dcdb6 | 12001 | cat > conftest.$ac_ext <<EOF |
009fead0 | 12002 | #line 12003 "configure" |
ab9b9eab VZ |
12003 | #include "confdefs.h" |
12004 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12005 | which can conflict with char shmat(); below. */ |
ab9b9eab VZ |
12006 | #include <assert.h> |
12007 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12008 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12009 | builtin and then its argument prototype would still apply. */ |
12010 | char shmat(); | |
12011 | ||
12012 | int main() { | |
ab9b9eab VZ |
12013 | |
12014 | /* The GNU C library defines this for functions which it implements | |
12015 | to always fail with ENOSYS. Some functions are actually named | |
12016 | something starting with __ and the normal name is an alias. */ | |
12017 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
12018 | choke me | |
12019 | #else | |
698dcdb6 | 12020 | shmat(); |
ab9b9eab VZ |
12021 | #endif |
12022 | ||
698dcdb6 VZ |
12023 | ; return 0; } |
12024 | EOF | |
009fead0 | 12025 | if { (eval echo configure:12026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12026 | rm -rf conftest* |
12027 | eval "ac_cv_func_shmat=yes" | |
12028 | else | |
12029 | echo "configure: failed program was:" >&5 | |
12030 | cat conftest.$ac_ext >&5 | |
12031 | rm -rf conftest* | |
12032 | eval "ac_cv_func_shmat=no" | |
12033 | fi | |
12034 | rm -f conftest* | |
12035 | fi | |
12036 | ||
12037 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
12038 | echo "$ac_t""yes" 1>&6 | |
12039 | : | |
12040 | else | |
12041 | echo "$ac_t""no" 1>&6 | |
12042 | fi | |
ab9b9eab VZ |
12043 | |
12044 | if test $ac_cv_func_shmat = no; then | |
698dcdb6 | 12045 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
009fead0 | 12046 | echo "configure:12047: checking for shmat in -lipc" >&5 |
698dcdb6 VZ |
12047 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
12048 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12049 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 12050 | else |
698dcdb6 | 12051 | ac_save_LIBS="$LIBS" |
ab9b9eab | 12052 | LIBS="-lipc $LIBS" |
698dcdb6 | 12053 | cat > conftest.$ac_ext <<EOF |
009fead0 | 12054 | #line 12055 "configure" |
ab9b9eab VZ |
12055 | #include "confdefs.h" |
12056 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12057 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12058 | builtin and then its argument prototype would still apply. */ |
12059 | char shmat(); | |
12060 | ||
12061 | int main() { | |
12062 | shmat() | |
12063 | ; return 0; } | |
12064 | EOF | |
009fead0 | 12065 | if { (eval echo configure:12066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12066 | rm -rf conftest* |
12067 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12068 | else | |
12069 | echo "configure: failed program was:" >&5 | |
12070 | cat conftest.$ac_ext >&5 | |
12071 | rm -rf conftest* | |
12072 | eval "ac_cv_lib_$ac_lib_var=no" | |
12073 | fi | |
12074 | rm -f conftest* | |
12075 | LIBS="$ac_save_LIBS" | |
12076 | ||
12077 | fi | |
12078 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12079 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 12080 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
698dcdb6 VZ |
12081 | else |
12082 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
12083 | fi |
12084 | ||
12085 | fi | |
12086 | fi | |
12087 | ||
12088 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
698dcdb6 | 12089 | ac_save_LDFLAGS="$LDFLAGS" |
ab9b9eab VZ |
12090 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
12091 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
12092 | # check for ICE first), but we must link in the order -lSM -lICE or | |
12093 | # we get undefined symbols. So assume we have SM if we have ICE. | |
12094 | # These have to be linked with before -lX11, unlike the other | |
12095 | # libraries we check for below, so use a different variable. | |
698dcdb6 VZ |
12096 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
12097 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
009fead0 | 12098 | echo "configure:12099: checking for IceConnectionNumber in -lICE" >&5 |
698dcdb6 VZ |
12099 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
12100 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12101 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12102 | else | |
12103 | ac_save_LIBS="$LIBS" | |
ab9b9eab | 12104 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
698dcdb6 | 12105 | cat > conftest.$ac_ext <<EOF |
009fead0 | 12106 | #line 12107 "configure" |
ab9b9eab VZ |
12107 | #include "confdefs.h" |
12108 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12109 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12110 | builtin and then its argument prototype would still apply. */ |
12111 | char IceConnectionNumber(); | |
12112 | ||
12113 | int main() { | |
12114 | IceConnectionNumber() | |
12115 | ; return 0; } | |
12116 | EOF | |
009fead0 | 12117 | if { (eval echo configure:12118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12118 | rm -rf conftest* |
12119 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12120 | else | |
12121 | echo "configure: failed program was:" >&5 | |
12122 | cat conftest.$ac_ext >&5 | |
12123 | rm -rf conftest* | |
12124 | eval "ac_cv_lib_$ac_lib_var=no" | |
12125 | fi | |
12126 | rm -f conftest* | |
12127 | LIBS="$ac_save_LIBS" | |
12128 | ||
12129 | fi | |
12130 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12131 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 12132 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
698dcdb6 VZ |
12133 | else |
12134 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
12135 | fi |
12136 | ||
698dcdb6 | 12137 | LDFLAGS="$ac_save_LDFLAGS" |
ab9b9eab VZ |
12138 | |
12139 | fi | |
12140 | ||
12141 | ||
1e6feb95 VZ |
12142 | if test "$no_x" = "yes"; then |
12143 | { echo "configure: error: X11 not found" 1>&2; exit 1; } | |
12144 | fi | |
ab9b9eab | 12145 | |
1e6feb95 VZ |
12146 | GUI_TK_LIBRARY="$X_LIBS" |
12147 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
1e6feb95 | 12148 | AFMINSTALL=afminstall |
1e6feb95 | 12149 | COMPILED_X_PROGRAM=0 |
cd6d6d5b | 12150 | |
e334d0ea | 12151 | if test "$wxUSE_NANOX" = "yes"; then |
d8356fa3 | 12152 | echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6 |
009fead0 | 12153 | echo "configure:12154: checking for MicroWindows/NanoX distribution" >&5 |
d8356fa3 VZ |
12154 | if test "x$MICROWIN" = x ; then |
12155 | echo "$ac_t""not found" 1>&6 | |
12156 | { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; } | |
12157 | else | |
12158 | echo "$ac_t""$MICROWIN" 1>&6 | |
c79a329d JS |
12159 | cat >> confdefs.h <<\EOF |
12160 | #define wxUSE_NANOX 1 | |
12161 | EOF | |
12162 | ||
d8356fa3 VZ |
12163 | fi |
12164 | fi | |
12165 | ||
3d63bc3a | 12166 | xpm_link= |
1e6feb95 | 12167 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 |
009fead0 | 12168 | echo "configure:12169: checking for Xpm library" >&5 |
1e6feb95 | 12169 | |
ab9b9eab VZ |
12170 | ac_find_libraries= |
12171 | for ac_dir in $SEARCH_LIB; | |
12172 | do | |
f11bdd03 | 12173 | for ac_extension in a so sl dylib; do |
ab9b9eab VZ |
12174 | if test -f "$ac_dir/libXpm.$ac_extension"; then |
12175 | ac_find_libraries=$ac_dir | |
12176 | break 2 | |
12177 | fi | |
12178 | done | |
12179 | done | |
12180 | ||
1e6feb95 VZ |
12181 | if test "$ac_find_libraries" != "" ; then |
12182 | ||
ab9b9eab VZ |
12183 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
12184 | result=$? | |
12185 | if test $result = 0; then | |
12186 | ac_path_to_link="" | |
12187 | else | |
62d0491b | 12188 | ac_path_to_link=" -L$ac_find_libraries" |
ab9b9eab VZ |
12189 | fi |
12190 | ||
62d0491b | 12191 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
3d63bc3a | 12192 | xpm_link=" -lXpm" |
1e6feb95 | 12193 | cat >> confdefs.h <<\EOF |
ab9b9eab VZ |
12194 | #define wxHAVE_LIB_XPM 1 |
12195 | EOF | |
12196 | ||
1e6feb95 VZ |
12197 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
12198 | else | |
12199 | cat > conftest.$ac_ext <<EOF | |
009fead0 | 12200 | #line 12201 "configure" |
cd6d6d5b VZ |
12201 | #include "confdefs.h" |
12202 | ||
1e6feb95 VZ |
12203 | #include <X11/xpm.h> |
12204 | ||
698dcdb6 | 12205 | int main() { |
cd6d6d5b | 12206 | |
1e6feb95 | 12207 | int version; |
1e6feb95 VZ |
12208 | version = XpmLibraryVersion(); |
12209 | ||
698dcdb6 VZ |
12210 | ; return 0; } |
12211 | EOF | |
009fead0 | 12212 | if { (eval echo configure:12213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12213 | rm -rf conftest* |
12214 | ||
3d63bc3a | 12215 | xpm_link=" -lXpm" |
3a922bb4 | 12216 | cat >> confdefs.h <<\EOF |
3ace2e6d SN |
12217 | #define wxHAVE_LIB_XPM 1 |
12218 | EOF | |
12219 | ||
1e6feb95 VZ |
12220 | echo "$ac_t""found in default search path" 1>&6 |
12221 | COMPILED_X_PROGRAM=0 | |
12222 | ||
cd6d6d5b | 12223 | else |
698dcdb6 VZ |
12224 | echo "configure: failed program was:" >&5 |
12225 | cat conftest.$ac_ext >&5 | |
12226 | rm -rf conftest* | |
12227 | ||
1e6feb95 VZ |
12228 | echo "$ac_t""no" 1>&6 |
12229 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
12230 | ||
698dcdb6 | 12231 | |
cd6d6d5b | 12232 | fi |
698dcdb6 | 12233 | rm -f conftest* |
1e6feb95 VZ |
12234 | fi |
12235 | ||
e334d0ea | 12236 | if test "$wxUSE_NANOX" = "yes"; then |
d8356fa3 | 12237 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" |
17c89ef3 | 12238 | 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 | 12239 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" |
d8356fa3 | 12240 | else |
0feee163 | 12241 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link" |
d8356fa3 VZ |
12242 | fi |
12243 | ||
3c011993 | 12244 | TOOLKIT_VPATH="\${top_srcdir}/src/x11" |
f79bd02d JS |
12245 | TOOLKIT=X11 |
12246 | GUIDIST=X11_DIST | |
1e6feb95 | 12247 | fi |
10f2d63a | 12248 | |
f79bd02d JS |
12249 | if test "$wxUSE_WINE" = 1; then |
12250 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` | |
12251 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
009fead0 | 12252 | echo "configure:12253: checking for windows.h" >&5 |
f79bd02d JS |
12253 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12254 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12255 | else | |
12256 | cat > conftest.$ac_ext <<EOF | |
009fead0 | 12257 | #line 12258 "configure" |
f79bd02d JS |
12258 | #include "confdefs.h" |
12259 | #include <windows.h> | |
12260 | EOF | |
12261 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
009fead0 | 12262 | { (eval echo configure:12263: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
f79bd02d JS |
12263 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12264 | if test -z "$ac_err"; then | |
12265 | rm -rf conftest* | |
12266 | eval "ac_cv_header_$ac_safe=yes" | |
12267 | else | |
12268 | echo "$ac_err" >&5 | |
12269 | echo "configure: failed program was:" >&5 | |
12270 | cat conftest.$ac_ext >&5 | |
12271 | rm -rf conftest* | |
12272 | eval "ac_cv_header_$ac_safe=no" | |
12273 | fi | |
12274 | rm -f conftest* | |
12275 | fi | |
12276 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12277 | echo "$ac_t""yes" 1>&6 | |
12278 | : | |
12279 | else | |
12280 | echo "$ac_t""no" 1>&6 | |
12281 | ||
12282 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
12283 | ||
12284 | fi | |
12285 | ||
12286 | ||
12287 | xpm_link= | |
12288 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
009fead0 | 12289 | echo "configure:12290: checking for Xpm library" >&5 |
f79bd02d JS |
12290 | |
12291 | ac_find_libraries= | |
12292 | for ac_dir in $SEARCH_LIB; | |
12293 | do | |
12294 | for ac_extension in a so sl dylib; do | |
12295 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
12296 | ac_find_libraries=$ac_dir | |
12297 | break 2 | |
12298 | fi | |
12299 | done | |
12300 | done | |
12301 | ||
12302 | if test "$ac_find_libraries" != "" ; then | |
12303 | GUI_TK_LIBRARY="-L$ac_find_libraries" | |
12304 | xpm_link=" -lXpm" | |
12305 | cat >> confdefs.h <<\EOF | |
12306 | #define wxHAVE_LIB_XPM 1 | |
12307 | EOF | |
12308 | ||
12309 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
12310 | else | |
12311 | echo "$ac_t""no" 1>&6 | |
12312 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
12313 | fi | |
12314 | ||
12315 | mesa_link= | |
12316 | echo $ac_n "checking for Mesa library""... $ac_c" 1>&6 | |
009fead0 | 12317 | echo "configure:12318: checking for Mesa library" >&5 |
f79bd02d JS |
12318 | |
12319 | ac_find_libraries= | |
12320 | for ac_dir in $SEARCH_LIB; | |
12321 | do | |
12322 | for ac_extension in a so sl dylib; do | |
12323 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
12324 | ac_find_libraries=$ac_dir | |
12325 | break 2 | |
12326 | fi | |
12327 | done | |
12328 | done | |
12329 | ||
12330 | if test "$ac_find_libraries" != "" ; then | |
12331 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries" | |
12332 | mesa_link=" -lMesaGL" | |
12333 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
12334 | else | |
12335 | { echo "configure: error: no" 1>&2; exit 1; } | |
12336 | fi | |
12337 | ||
12338 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses" | |
12339 | TOOLKIT=MSW | |
12340 | GUIDIST=MSW_DIST | |
12341 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__" | |
12342 | fi | |
12343 | ||
12344 | if test "$wxUSE_MOTIF" = 1; then | |
12345 | if test "$no_x" = yes; then | |
12346 | # Not all programs may use this symbol, but it does not hurt to define it. | |
12347 | cat >> confdefs.h <<\EOF | |
12348 | #define X_DISPLAY_MISSING 1 | |
12349 | EOF | |
12350 | ||
12351 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
12352 | else | |
12353 | if test -n "$x_includes"; then | |
12354 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
12355 | fi | |
12356 | ||
12357 | # It would also be nice to do this for all -L options, not just this one. | |
12358 | if test -n "$x_libraries"; then | |
12359 | X_LIBS="$X_LIBS -L$x_libraries" | |
12360 | # For Solaris; some versions of Sun CC require a space after -R and | |
12361 | # others require no space. Words are not sufficient . . . . | |
12362 | case "`(uname -sr) 2>/dev/null`" in | |
12363 | "SunOS 5"*) | |
12364 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 | |
009fead0 | 12365 | echo "configure:12366: checking whether -R must be followed by a space" >&5 |
f79bd02d JS |
12366 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
12367 | cat > conftest.$ac_ext <<EOF | |
009fead0 | 12368 | #line 12369 "configure" |
f79bd02d JS |
12369 | #include "confdefs.h" |
12370 | ||
12371 | int main() { | |
12372 | ||
12373 | ; return 0; } | |
12374 | EOF | |
009fead0 | 12375 | if { (eval echo configure:12376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12376 | rm -rf conftest* |
12377 | ac_R_nospace=yes | |
12378 | else | |
12379 | echo "configure: failed program was:" >&5 | |
12380 | cat conftest.$ac_ext >&5 | |
12381 | rm -rf conftest* | |
12382 | ac_R_nospace=no | |
12383 | fi | |
12384 | rm -f conftest* | |
12385 | if test $ac_R_nospace = yes; then | |
12386 | echo "$ac_t""no" 1>&6 | |
12387 | X_LIBS="$X_LIBS -R$x_libraries" | |
12388 | else | |
12389 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
12390 | cat > conftest.$ac_ext <<EOF | |
009fead0 | 12391 | #line 12392 "configure" |
f79bd02d JS |
12392 | #include "confdefs.h" |
12393 | ||
12394 | int main() { | |
12395 | ||
12396 | ; return 0; } | |
12397 | EOF | |
009fead0 | 12398 | if { (eval echo configure:12399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12399 | rm -rf conftest* |
12400 | ac_R_space=yes | |
12401 | else | |
12402 | echo "configure: failed program was:" >&5 | |
12403 | cat conftest.$ac_ext >&5 | |
12404 | rm -rf conftest* | |
12405 | ac_R_space=no | |
12406 | fi | |
12407 | rm -f conftest* | |
12408 | if test $ac_R_space = yes; then | |
12409 | echo "$ac_t""yes" 1>&6 | |
12410 | X_LIBS="$X_LIBS -R $x_libraries" | |
12411 | else | |
12412 | echo "$ac_t""neither works" 1>&6 | |
12413 | fi | |
12414 | fi | |
12415 | LIBS="$ac_xsave_LIBS" | |
12416 | esac | |
12417 | fi | |
12418 | ||
12419 | # Check for system-dependent libraries X programs must link with. | |
12420 | # Do this before checking for the system-independent R6 libraries | |
12421 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
12422 | ||
12423 | if test "$ISC" = yes; then | |
12424 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
12425 | else | |
12426 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X | |
12427 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
12428 | # the Alpha needs dnet_stub (dnet does not exist). | |
12429 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 | |
009fead0 | 12430 | echo "configure:12431: checking for dnet_ntoa in -ldnet" >&5 |
f79bd02d JS |
12431 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
12432 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12433 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12434 | else | |
12435 | ac_save_LIBS="$LIBS" | |
12436 | LIBS="-ldnet $LIBS" | |
12437 | cat > conftest.$ac_ext <<EOF | |
009fead0 | 12438 | #line 12439 "configure" |
f79bd02d JS |
12439 | #include "confdefs.h" |
12440 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12441 | /* We use char because int might match the return type of a gcc2 | |
12442 | builtin and then its argument prototype would still apply. */ | |
12443 | char dnet_ntoa(); | |
12444 | ||
12445 | int main() { | |
12446 | dnet_ntoa() | |
12447 | ; return 0; } | |
12448 | EOF | |
009fead0 | 12449 | if { (eval echo configure:12450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12450 | rm -rf conftest* |
12451 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12452 | else | |
12453 | echo "configure: failed program was:" >&5 | |
12454 | cat conftest.$ac_ext >&5 | |
12455 | rm -rf conftest* | |
12456 | eval "ac_cv_lib_$ac_lib_var=no" | |
12457 | fi | |
12458 | rm -f conftest* | |
12459 | LIBS="$ac_save_LIBS" | |
12460 | ||
12461 | fi | |
12462 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12463 | echo "$ac_t""yes" 1>&6 | |
12464 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
12465 | else | |
12466 | echo "$ac_t""no" 1>&6 | |
12467 | fi | |
12468 | ||
12469 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
12470 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 | |
009fead0 | 12471 | echo "configure:12472: checking for dnet_ntoa in -ldnet_stub" >&5 |
f79bd02d JS |
12472 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
12473 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12474 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12475 | else | |
12476 | ac_save_LIBS="$LIBS" | |
12477 | LIBS="-ldnet_stub $LIBS" | |
12478 | cat > conftest.$ac_ext <<EOF | |
009fead0 | 12479 | #line 12480 "configure" |
f79bd02d JS |
12480 | #include "confdefs.h" |
12481 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12482 | /* We use char because int might match the return type of a gcc2 | |
12483 | builtin and then its argument prototype would still apply. */ | |
12484 | char dnet_ntoa(); | |
12485 | ||
12486 | int main() { | |
12487 | dnet_ntoa() | |
12488 | ; return 0; } | |
12489 | EOF | |
009fead0 | 12490 | if { (eval echo configure:12491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12491 | rm -rf conftest* |
12492 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12493 | else | |
12494 | echo "configure: failed program was:" >&5 | |
12495 | cat conftest.$ac_ext >&5 | |
12496 | rm -rf conftest* | |
12497 | eval "ac_cv_lib_$ac_lib_var=no" | |
12498 | fi | |
12499 | rm -f conftest* | |
12500 | LIBS="$ac_save_LIBS" | |
12501 | ||
12502 | fi | |
12503 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12504 | echo "$ac_t""yes" 1>&6 | |
12505 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
12506 | else | |
12507 | echo "$ac_t""no" 1>&6 | |
12508 | fi | |
12509 | ||
12510 | fi | |
12511 | ||
12512 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
12513 | # to get the SysV transport functions. | |
12514 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) | |
12515 | # needs -lnsl. | |
12516 | # The nsl library prevents programs from opening the X display | |
12517 | # on Irix 5.2, according to dickey@clark.net. | |
12518 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
009fead0 | 12519 | echo "configure:12520: checking for gethostbyname" >&5 |
f79bd02d JS |
12520 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
12521 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12522 | else | |
12523 | cat > conftest.$ac_ext <<EOF | |
009fead0 | 12524 | #line 12525 "configure" |
f79bd02d JS |
12525 | #include "confdefs.h" |
12526 | /* System header to define __stub macros and hopefully few prototypes, | |
12527 | which can conflict with char gethostbyname(); below. */ | |
12528 | #include <assert.h> | |
12529 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12530 | /* We use char because int might match the return type of a gcc2 | |
12531 | builtin and then its argument prototype would still apply. */ | |
12532 | char gethostbyname(); | |
12533 | ||
12534 | int main() { | |
12535 | ||
12536 | /* The GNU C library defines this for functions which it implements | |
12537 | to always fail with ENOSYS. Some functions are actually named | |
12538 | something starting with __ and the normal name is an alias. */ | |
12539 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
12540 | choke me | |
12541 | #else | |
12542 | gethostbyname(); | |
12543 | #endif | |
12544 | ||
12545 | ; return 0; } | |
12546 | EOF | |
009fead0 | 12547 | if { (eval echo configure:12548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12548 | rm -rf conftest* |
12549 | eval "ac_cv_func_gethostbyname=yes" | |
12550 | else | |
12551 | echo "configure: failed program was:" >&5 | |
12552 | cat conftest.$ac_ext >&5 | |
12553 | rm -rf conftest* | |
12554 | eval "ac_cv_func_gethostbyname=no" | |
12555 | fi | |
12556 | rm -f conftest* | |
12557 | fi | |
12558 | ||
12559 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
12560 | echo "$ac_t""yes" 1>&6 | |
12561 | : | |
12562 | else | |
12563 | echo "$ac_t""no" 1>&6 | |
12564 | fi | |
12565 | ||
12566 | if test $ac_cv_func_gethostbyname = no; then | |
12567 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 | |
009fead0 | 12568 | echo "configure:12569: checking for gethostbyname in -lnsl" >&5 |
f79bd02d JS |
12569 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
12570 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12571 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12572 | else | |
12573 | ac_save_LIBS="$LIBS" | |
12574 | LIBS="-lnsl $LIBS" | |
12575 | cat > conftest.$ac_ext <<EOF | |
009fead0 | 12576 | #line 12577 "configure" |
f79bd02d JS |
12577 | #include "confdefs.h" |
12578 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12579 | /* We use char because int might match the return type of a gcc2 | |
12580 | builtin and then its argument prototype would still apply. */ | |
12581 | char gethostbyname(); | |
12582 | ||
12583 | int main() { | |
12584 | gethostbyname() | |
12585 | ; return 0; } | |
12586 | EOF | |
009fead0 | 12587 | if { (eval echo configure:12588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12588 | rm -rf conftest* |
12589 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12590 | else | |
12591 | echo "configure: failed program was:" >&5 | |
12592 | cat conftest.$ac_ext >&5 | |
12593 | rm -rf conftest* | |
12594 | eval "ac_cv_lib_$ac_lib_var=no" | |
12595 | fi | |
12596 | rm -f conftest* | |
12597 | LIBS="$ac_save_LIBS" | |
12598 | ||
12599 | fi | |
12600 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12601 | echo "$ac_t""yes" 1>&6 | |
12602 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
12603 | else | |
12604 | echo "$ac_t""no" 1>&6 | |
12605 | fi | |
12606 | ||
12607 | fi | |
12608 | ||
12609 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
12610 | # socket/setsockopt and other routines are undefined under SCO ODT | |
12611 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
12612 | # on later versions), says simon@lia.di.epfl.ch: it contains | |
12613 | # gethostby* variants that don't use the nameserver (or something). | |
12614 | # -lsocket must be given before -lnsl if both are needed. | |
12615 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
12616 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
009fead0 | 12617 | echo "configure:12618: checking for connect" >&5 |
f79bd02d JS |
12618 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
12619 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12620 | else | |
12621 | cat > conftest.$ac_ext <<EOF | |
009fead0 | 12622 | #line 12623 "configure" |
f79bd02d JS |
12623 | #include "confdefs.h" |
12624 | /* System header to define __stub macros and hopefully few prototypes, | |
12625 | which can conflict with char connect(); below. */ | |
12626 | #include <assert.h> | |
12627 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12628 | /* We use char because int might match the return type of a gcc2 | |
12629 | builtin and then its argument prototype would still apply. */ | |
12630 | char connect(); | |
12631 | ||
12632 | int main() { | |
12633 | ||
12634 | /* The GNU C library defines this for functions which it implements | |
12635 | to always fail with ENOSYS. Some functions are actually named | |
12636 | something starting with __ and the normal name is an alias. */ | |
12637 | #if defined (__stub_connect) || defined (__stub___connect) | |
12638 | choke me | |
12639 | #else | |
12640 | connect(); | |
12641 | #endif | |
12642 | ||
12643 | ; return 0; } | |
12644 | EOF | |
009fead0 | 12645 | if { (eval echo configure:12646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12646 | rm -rf conftest* |
12647 | eval "ac_cv_func_connect=yes" | |
12648 | else | |
12649 | echo "configure: failed program was:" >&5 | |
12650 | cat conftest.$ac_ext >&5 | |
12651 | rm -rf conftest* | |
12652 | eval "ac_cv_func_connect=no" | |
12653 | fi | |
12654 | rm -f conftest* | |
12655 | fi | |
12656 | ||
12657 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
12658 | echo "$ac_t""yes" 1>&6 | |
12659 | : | |
12660 | else | |
12661 | echo "$ac_t""no" 1>&6 | |
12662 | fi | |
12663 | ||
12664 | if test $ac_cv_func_connect = no; then | |
12665 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 | |
009fead0 | 12666 | echo "configure:12667: checking for connect in -lsocket" >&5 |
f79bd02d JS |
12667 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
12668 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12669 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12670 | else | |
12671 | ac_save_LIBS="$LIBS" | |
12672 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
12673 | cat > conftest.$ac_ext <<EOF | |
009fead0 | 12674 | #line 12675 "configure" |
f79bd02d JS |
12675 | #include "confdefs.h" |
12676 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12677 | /* We use char because int might match the return type of a gcc2 | |
12678 | builtin and then its argument prototype would still apply. */ | |
12679 | char connect(); | |
12680 | ||
12681 | int main() { | |
12682 | connect() | |
12683 | ; return 0; } | |
12684 | EOF | |
009fead0 | 12685 | if { (eval echo configure:12686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12686 | rm -rf conftest* |
12687 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12688 | else | |
12689 | echo "configure: failed program was:" >&5 | |
12690 | cat conftest.$ac_ext >&5 | |
12691 | rm -rf conftest* | |
12692 | eval "ac_cv_lib_$ac_lib_var=no" | |
12693 | fi | |
12694 | rm -f conftest* | |
12695 | LIBS="$ac_save_LIBS" | |
12696 | ||
12697 | fi | |
12698 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12699 | echo "$ac_t""yes" 1>&6 | |
12700 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
12701 | else | |
12702 | echo "$ac_t""no" 1>&6 | |
12703 | fi | |
12704 | ||
12705 | fi | |
12706 | ||
12707 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. | |
12708 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
009fead0 | 12709 | echo "configure:12710: checking for remove" >&5 |
f79bd02d JS |
12710 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
12711 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12712 | else | |
12713 | cat > conftest.$ac_ext <<EOF | |
009fead0 | 12714 | #line 12715 "configure" |
f79bd02d JS |
12715 | #include "confdefs.h" |
12716 | /* System header to define __stub macros and hopefully few prototypes, | |
12717 | which can conflict with char remove(); below. */ | |
12718 | #include <assert.h> | |
12719 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12720 | /* We use char because int might match the return type of a gcc2 | |
12721 | builtin and then its argument prototype would still apply. */ | |
12722 | char remove(); | |
12723 | ||
12724 | int main() { | |
12725 | ||
12726 | /* The GNU C library defines this for functions which it implements | |
12727 | to always fail with ENOSYS. Some functions are actually named | |
12728 | something starting with __ and the normal name is an alias. */ | |
12729 | #if defined (__stub_remove) || defined (__stub___remove) | |
12730 | choke me | |
12731 | #else | |
12732 | remove(); | |
12733 | #endif | |
12734 | ||
12735 | ; return 0; } | |
12736 | EOF | |
009fead0 | 12737 | if { (eval echo configure:12738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12738 | rm -rf conftest* |
12739 | eval "ac_cv_func_remove=yes" | |
12740 | else | |
12741 | echo "configure: failed program was:" >&5 | |
12742 | cat conftest.$ac_ext >&5 | |
12743 | rm -rf conftest* | |
12744 | eval "ac_cv_func_remove=no" | |
12745 | fi | |
12746 | rm -f conftest* | |
12747 | fi | |
12748 | ||
12749 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
12750 | echo "$ac_t""yes" 1>&6 | |
12751 | : | |
12752 | else | |
12753 | echo "$ac_t""no" 1>&6 | |
12754 | fi | |
12755 | ||
12756 | if test $ac_cv_func_remove = no; then | |
12757 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 | |
009fead0 | 12758 | echo "configure:12759: checking for remove in -lposix" >&5 |
f79bd02d JS |
12759 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
12760 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12761 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12762 | else | |
12763 | ac_save_LIBS="$LIBS" | |
12764 | LIBS="-lposix $LIBS" | |
12765 | cat > conftest.$ac_ext <<EOF | |
009fead0 | 12766 | #line 12767 "configure" |
f79bd02d JS |
12767 | #include "confdefs.h" |
12768 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12769 | /* We use char because int might match the return type of a gcc2 | |
12770 | builtin and then its argument prototype would still apply. */ | |
12771 | char remove(); | |
12772 | ||
12773 | int main() { | |
12774 | remove() | |
12775 | ; return 0; } | |
12776 | EOF | |
009fead0 | 12777 | if { (eval echo configure:12778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12778 | rm -rf conftest* |
12779 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12780 | else | |
12781 | echo "configure: failed program was:" >&5 | |
12782 | cat conftest.$ac_ext >&5 | |
12783 | rm -rf conftest* | |
12784 | eval "ac_cv_lib_$ac_lib_var=no" | |
12785 | fi | |
12786 | rm -f conftest* | |
12787 | LIBS="$ac_save_LIBS" | |
12788 | ||
12789 | fi | |
12790 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12791 | echo "$ac_t""yes" 1>&6 | |
12792 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
12793 | else | |
12794 | echo "$ac_t""no" 1>&6 | |
12795 | fi | |
12796 | ||
12797 | fi | |
12798 | ||
12799 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
12800 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 | |
009fead0 | 12801 | echo "configure:12802: checking for shmat" >&5 |
f79bd02d JS |
12802 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
12803 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12804 | else | |
12805 | cat > conftest.$ac_ext <<EOF | |
009fead0 | 12806 | #line 12807 "configure" |
f79bd02d JS |
12807 | #include "confdefs.h" |
12808 | /* System header to define __stub macros and hopefully few prototypes, | |
12809 | which can conflict with char shmat(); below. */ | |
12810 | #include <assert.h> | |
12811 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12812 | /* We use char because int might match the return type of a gcc2 | |
12813 | builtin and then its argument prototype would still apply. */ | |
12814 | char shmat(); | |
12815 | ||
12816 | int main() { | |
12817 | ||
12818 | /* The GNU C library defines this for functions which it implements | |
12819 | to always fail with ENOSYS. Some functions are actually named | |
12820 | something starting with __ and the normal name is an alias. */ | |
12821 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
12822 | choke me | |
12823 | #else | |
12824 | shmat(); | |
12825 | #endif | |
12826 | ||
12827 | ; return 0; } | |
12828 | EOF | |
009fead0 | 12829 | if { (eval echo configure:12830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12830 | rm -rf conftest* |
12831 | eval "ac_cv_func_shmat=yes" | |
12832 | else | |
12833 | echo "configure: failed program was:" >&5 | |
12834 | cat conftest.$ac_ext >&5 | |
12835 | rm -rf conftest* | |
12836 | eval "ac_cv_func_shmat=no" | |
12837 | fi | |
12838 | rm -f conftest* | |
12839 | fi | |
12840 | ||
12841 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
12842 | echo "$ac_t""yes" 1>&6 | |
12843 | : | |
12844 | else | |
12845 | echo "$ac_t""no" 1>&6 | |
12846 | fi | |
12847 | ||
12848 | if test $ac_cv_func_shmat = no; then | |
12849 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 | |
009fead0 | 12850 | echo "configure:12851: checking for shmat in -lipc" >&5 |
f79bd02d JS |
12851 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
12852 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12853 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12854 | else | |
12855 | ac_save_LIBS="$LIBS" | |
12856 | LIBS="-lipc $LIBS" | |
12857 | cat > conftest.$ac_ext <<EOF | |
009fead0 | 12858 | #line 12859 "configure" |
f79bd02d JS |
12859 | #include "confdefs.h" |
12860 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12861 | /* We use char because int might match the return type of a gcc2 | |
12862 | builtin and then its argument prototype would still apply. */ | |
12863 | char shmat(); | |
12864 | ||
12865 | int main() { | |
12866 | shmat() | |
12867 | ; return 0; } | |
12868 | EOF | |
009fead0 | 12869 | if { (eval echo configure:12870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12870 | rm -rf conftest* |
12871 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12872 | else | |
12873 | echo "configure: failed program was:" >&5 | |
12874 | cat conftest.$ac_ext >&5 | |
12875 | rm -rf conftest* | |
12876 | eval "ac_cv_lib_$ac_lib_var=no" | |
12877 | fi | |
12878 | rm -f conftest* | |
12879 | LIBS="$ac_save_LIBS" | |
12880 | ||
12881 | fi | |
12882 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12883 | echo "$ac_t""yes" 1>&6 | |
12884 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
12885 | else | |
12886 | echo "$ac_t""no" 1>&6 | |
12887 | fi | |
12888 | ||
12889 | fi | |
12890 | fi | |
12891 | ||
12892 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
12893 | ac_save_LDFLAGS="$LDFLAGS" | |
12894 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
12895 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
12896 | # check for ICE first), but we must link in the order -lSM -lICE or | |
12897 | # we get undefined symbols. So assume we have SM if we have ICE. | |
12898 | # These have to be linked with before -lX11, unlike the other | |
12899 | # libraries we check for below, so use a different variable. | |
12900 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. | |
12901 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
009fead0 | 12902 | echo "configure:12903: checking for IceConnectionNumber in -lICE" >&5 |
f79bd02d JS |
12903 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
12904 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12905 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12906 | else | |
12907 | ac_save_LIBS="$LIBS" | |
12908 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
12909 | cat > conftest.$ac_ext <<EOF | |
009fead0 | 12910 | #line 12911 "configure" |
f79bd02d JS |
12911 | #include "confdefs.h" |
12912 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12913 | /* We use char because int might match the return type of a gcc2 | |
12914 | builtin and then its argument prototype would still apply. */ | |
12915 | char IceConnectionNumber(); | |
12916 | ||
12917 | int main() { | |
12918 | IceConnectionNumber() | |
12919 | ; return 0; } | |
12920 | EOF | |
009fead0 | 12921 | if { (eval echo configure:12922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12922 | rm -rf conftest* |
12923 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12924 | else | |
12925 | echo "configure: failed program was:" >&5 | |
12926 | cat conftest.$ac_ext >&5 | |
12927 | rm -rf conftest* | |
12928 | eval "ac_cv_lib_$ac_lib_var=no" | |
12929 | fi | |
12930 | rm -f conftest* | |
12931 | LIBS="$ac_save_LIBS" | |
12932 | ||
12933 | fi | |
12934 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12935 | echo "$ac_t""yes" 1>&6 | |
12936 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
12937 | else | |
12938 | echo "$ac_t""no" 1>&6 | |
12939 | fi | |
12940 | ||
12941 | LDFLAGS="$ac_save_LDFLAGS" | |
12942 | ||
12943 | fi | |
12944 | ||
12945 | ||
12946 | if test "$no_x" = "yes"; then | |
12947 | { echo "configure: error: X11 not found" 1>&2; exit 1; } | |
12948 | fi | |
12949 | ||
12950 | GUI_TK_LIBRARY="$X_LIBS" | |
12951 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
12952 | AFMINSTALL=afminstall | |
12953 | COMPILED_X_PROGRAM=0 | |
12954 | ||
12955 | echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6 | |
009fead0 | 12956 | echo "configure:12957: checking for Motif/Lesstif headers" >&5 |
f79bd02d JS |
12957 | |
12958 | ac_find_includes= | |
12959 | for ac_dir in $SEARCH_INCLUDE; | |
12960 | do | |
12961 | if test -f "$ac_dir/Xm/Xm.h"; then | |
12962 | ac_find_includes=$ac_dir | |
12963 | break | |
12964 | fi | |
12965 | done | |
12966 | ||
12967 | if test "$ac_find_includes" != "" ; then | |
12968 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
12969 | else | |
12970 | cat > conftest.$ac_ext <<EOF | |
009fead0 | 12971 | #line 12972 "configure" |
f79bd02d JS |
12972 | #include "confdefs.h" |
12973 | ||
12974 | #include <Xm/Xm.h> | |
12975 | ||
12976 | int main() { | |
12977 | ||
12978 | int version; | |
12979 | version = xmUseVersion; | |
12980 | ||
12981 | ; return 0; } | |
12982 | EOF | |
009fead0 | 12983 | if { (eval echo configure:12984: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
f79bd02d JS |
12984 | rm -rf conftest* |
12985 | ||
12986 | echo "$ac_t""found in default search path" 1>&6 | |
12987 | COMPILED_X_PROGRAM=1 | |
12988 | ||
12989 | else | |
12990 | echo "configure: failed program was:" >&5 | |
12991 | cat conftest.$ac_ext >&5 | |
12992 | rm -rf conftest* | |
12993 | ||
12994 | echo "$ac_t""no" 1>&6 | |
12995 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
12996 | ||
12997 | ||
12998 | fi | |
12999 | rm -f conftest* | |
13000 | fi | |
13001 | ||
13002 | if test "$COMPILED_X_PROGRAM" = 0; then | |
13003 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 | |
009fead0 | 13004 | echo "configure:13005: checking for Motif/Lesstif library" >&5 |
f79bd02d JS |
13005 | |
13006 | ac_find_libraries= | |
13007 | for ac_dir in $SEARCH_LIB; | |
13008 | do | |
13009 | for ac_extension in a so sl dylib; do | |
13010 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
13011 | ac_find_libraries=$ac_dir | |
13012 | break 2 | |
13013 | fi | |
13014 | done | |
13015 | done | |
13016 | ||
13017 | if test "$ac_find_libraries" != "" ; then | |
13018 | ||
13019 | ac_path_to_include=$ac_find_includes | |
13020 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
13021 | result=$? | |
13022 | if test $result = 0; then | |
13023 | ac_path_to_include="" | |
13024 | else | |
13025 | ac_path_to_include=" -I$ac_find_includes" | |
13026 | fi | |
13027 | ||
13028 | ||
13029 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
13030 | result=$? | |
13031 | if test $result = 0; then | |
13032 | ac_path_to_link="" | |
13033 | else | |
13034 | ac_path_to_link=" -L$ac_find_libraries" | |
13035 | fi | |
13036 | ||
13037 | ||
13038 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
13039 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" | |
13040 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
13041 | else | |
13042 | cat > conftest.$ac_ext <<EOF | |
009fead0 | 13043 | #line 13044 "configure" |
f79bd02d JS |
13044 | #include "confdefs.h" |
13045 | ||
13046 | #include <Xm/Xm.h> | |
13047 | ||
13048 | int main() { | |
13049 | ||
13050 | int version; | |
13051 | version = xmUseVersion; | |
13052 | ||
13053 | ; return 0; } | |
13054 | EOF | |
009fead0 | 13055 | if { (eval echo configure:13056: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
f79bd02d JS |
13056 | rm -rf conftest* |
13057 | ||
13058 | echo "$ac_t""found in default search path" 1>&6 | |
13059 | COMPILED_X_PROGRAM=1 | |
13060 | ||
13061 | else | |
13062 | echo "configure: failed program was:" >&5 | |
13063 | cat conftest.$ac_ext >&5 | |
13064 | rm -rf conftest* | |
13065 | ||
13066 | echo "$ac_t""no" 1>&6 | |
13067 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
13068 | ||
13069 | ||
13070 | fi | |
13071 | rm -f conftest* | |
13072 | fi | |
13073 | fi | |
13074 | ||
13075 | xpm_link= | |
13076 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
009fead0 | 13077 | echo "configure:13078: checking for Xpm library" >&5 |
f79bd02d JS |
13078 | |
13079 | ac_find_libraries= | |
13080 | for ac_dir in $SEARCH_LIB; | |
13081 | do | |
13082 | for ac_extension in a so sl dylib; do | |
13083 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
13084 | ac_find_libraries=$ac_dir | |
13085 | break 2 | |
13086 | fi | |
13087 | done | |
13088 | done | |
13089 | ||
13090 | if test "$ac_find_libraries" != "" ; then | |
13091 | ||
13092 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
13093 | result=$? | |
13094 | if test $result = 0; then | |
13095 | ac_path_to_link="" | |
13096 | else | |
13097 | ac_path_to_link=" -L$ac_find_libraries" | |
13098 | fi | |
13099 | ||
13100 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
13101 | xpm_link=" -lXpm" | |
13102 | cat >> confdefs.h <<\EOF | |
13103 | #define wxHAVE_LIB_XPM 1 | |
13104 | EOF | |
13105 | ||
13106 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
13107 | else | |
13108 | cat > conftest.$ac_ext <<EOF | |
009fead0 | 13109 | #line 13110 "configure" |
f79bd02d JS |
13110 | #include "confdefs.h" |
13111 | ||
13112 | #include <X11/xpm.h> | |
13113 | ||
13114 | int main() { | |
13115 | ||
13116 | int version; | |
13117 | version = XpmLibraryVersion(); | |
13118 | ||
13119 | ; return 0; } | |
13120 | EOF | |
009fead0 | 13121 | if { (eval echo configure:13122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
f79bd02d JS |
13122 | rm -rf conftest* |
13123 | ||
13124 | xpm_link=" -lXpm" | |
13125 | cat >> confdefs.h <<\EOF | |
13126 | #define wxHAVE_LIB_XPM 1 | |
13127 | EOF | |
13128 | ||
13129 | echo "$ac_t""found in default search path" 1>&6 | |
13130 | COMPILED_X_PROGRAM=0 | |
13131 | ||
13132 | else | |
13133 | echo "configure: failed program was:" >&5 | |
13134 | cat conftest.$ac_ext >&5 | |
13135 | rm -rf conftest* | |
13136 | ||
13137 | echo "$ac_t""no" 1>&6 | |
13138 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
13139 | ||
13140 | ||
13141 | fi | |
13142 | rm -f conftest* | |
13143 | fi | |
13144 | ||
13145 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link -lXmu -lXext -lXt -lX11" | |
13146 | TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo" | |
13147 | TOOLKIT=MOTIF | |
13148 | GUIDIST=MOTIF_DIST | |
13149 | fi | |
13150 | ||
13151 | if test "$wxUSE_MAC" = 1; then | |
13152 | if test "$wxUSE_PRECOMP" = "yes"; then | |
13153 | CPPFLAGS="$CPPFLAGS -cpp-precomp" | |
13154 | fi | |
13155 | CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile" | |
13156 | CFLAGS="$CFLAGS -fpascal-strings" | |
13157 | CXXFLAGS="$CXXFLAGS -fpascal-strings" | |
13158 | ||
13159 | TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile" | |
13160 | TOOLKIT=MAC | |
13161 | GUIDIST=MACX_DIST | |
13162 | fi | |
13163 | ||
13164 | if test "$wxUSE_PM" = 1; then | |
13165 | TOOLKIT=PM | |
1e6feb95 VZ |
13166 | GUIDIST=GTK_DIST |
13167 | fi | |
b4085ce6 | 13168 | |
3a922bb4 | 13169 | if test "$TOOLKIT" = "PM" ; then |
1e6feb95 | 13170 | TOOLKIT_DIR="os2" |
3a922bb4 RL |
13171 | else |
13172 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
1e6feb95 | 13173 | fi |
e07802fc | 13174 | |
3a922bb4 | 13175 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" |
1e6feb95 | 13176 | |
3a922bb4 RL |
13177 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
13178 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
9b695262 VZ |
13179 | |
13180 | ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}" | |
13181 | ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}" | |
13182 | ||
3a922bb4 | 13183 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" |
4175e952 RR |
13184 | if test "$wxUSE_X11" = 1; then |
13185 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes" | |
13186 | else | |
13187 | TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}" | |
13188 | fi | |
3a922bb4 RL |
13189 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" |
13190 | WIDGET_SET=univ | |
f6bcfd97 | 13191 | else |
3a922bb4 | 13192 | ALL_OBJECTS="\$(GUIOBJS)" |
9b695262 VZ |
13193 | ALL_SOURCES="\$(ALL_SOURCES)" |
13194 | ALL_HEADERS="\$(ALL_HEADERS)" | |
1e6feb95 VZ |
13195 | fi |
13196 | ||
ba0e650c | 13197 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" |
1e6feb95 | 13198 | |
f9bc1684 | 13199 | if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then |
1e6feb95 VZ |
13200 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" |
13201 | fi | |
13202 | ||
13203 | if test "$wxUSE_HTML" = "yes"; then | |
13204 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
13205 | fi | |
3fcdd07b | 13206 | |
4f14bcd8 | 13207 | if test "$wxUSE_LIBJPEG" = "builtin" ; then |
2224580a | 13208 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" |
d9d8273d | 13209 | fi |
4f14bcd8 | 13210 | if test "$wxUSE_LIBTIFF" = "builtin" ; then |
d9d8273d RR |
13211 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" |
13212 | fi | |
4f14bcd8 | 13213 | if test "$wxUSE_LIBPNG" = "builtin" ; then |
d9d8273d RR |
13214 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" |
13215 | fi | |
2224580a | 13216 | |
2224580a VZ |
13217 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" |
13218 | DISTDIR="wx\$(TOOLKIT)" | |
10f2d63a | 13219 | else |
dad6c0ea VZ |
13220 | USE_GUI=0 |
13221 | ||
3a922bb4 | 13222 | TOOLKIT_DIR="base" |
f6bcfd97 | 13223 | |
3a922bb4 RL |
13224 | if test "$USE_WIN32" = 1 ; then |
13225 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}" | |
13226 | TOOLKIT_VPATH="\${top_srcdir}/src/msw" | |
0b2effe9 | 13227 | |
3a922bb4 | 13228 | TOOLKIT="MSW" |
f6bcfd97 | 13229 | else |
3a922bb4 RL |
13230 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}" |
13231 | TOOLKIT_VPATH="\${top_srcdir}/src/unix" | |
f6bcfd97 BP |
13232 | fi |
13233 | ||
d8356fa3 VZ |
13234 | ALL_SOURCES="\$(ALL_SOURCES)" |
13235 | ALL_HEADERS="\$(ALL_HEADERS)" | |
13236 | ||
831b3152 | 13237 | PORT_FILES="\${top_srcdir}/src/files.lst" |
2224580a VZ |
13238 | |
13239 | GUIDIST="BASE_DIST" | |
13240 | DISTDIR="wxBase" | |
10f2d63a VZ |
13241 | fi |
13242 | ||
e45387bf VZ |
13243 | |
13244 | if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then | |
13245 | ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)" | |
13246 | fi | |
13247 | ||
4f14bcd8 | 13248 | if test "$wxUSE_REGEX" = "builtin" ; then |
3a922bb4 RL |
13249 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" |
13250 | fi | |
4f14bcd8 | 13251 | if test "$wxUSE_ZLIB" = "builtin" ; then |
3a922bb4 RL |
13252 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" |
13253 | fi | |
10f2d63a | 13254 | |
3a922bb4 | 13255 | if test "$wxUSE_OPENGL" = "yes"; then |
62d0491b RL |
13256 | if test "$wxUSE_MAC" = 1; then |
13257 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
13258 | else | |
570cb8cb | 13259 | |
62d0491b | 13260 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` |
3a922bb4 | 13261 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 |
009fead0 | 13262 | echo "configure:13263: checking for GL/gl.h" >&5 |
3a922bb4 RL |
13263 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13264 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13265 | else | |
13266 | cat > conftest.$ac_ext <<EOF | |
009fead0 | 13267 | #line 13268 "configure" |
3a922bb4 RL |
13268 | #include "confdefs.h" |
13269 | #include <GL/gl.h> | |
13270 | EOF | |
13271 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
009fead0 | 13272 | { (eval echo configure:13273: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3a922bb4 RL |
13273 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13274 | if test -z "$ac_err"; then | |
13275 | rm -rf conftest* | |
13276 | eval "ac_cv_header_$ac_safe=yes" | |
13277 | else | |
13278 | echo "$ac_err" >&5 | |
13279 | echo "configure: failed program was:" >&5 | |
13280 | cat conftest.$ac_ext >&5 | |
13281 | rm -rf conftest* | |
13282 | eval "ac_cv_header_$ac_safe=no" | |
13283 | fi | |
13284 | rm -f conftest* | |
13285 | fi | |
13286 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
13287 | echo "$ac_t""yes" 1>&6 | |
13288 | ||
1352efdf | 13289 | echo $ac_n "checking for -lGL""... $ac_c" 1>&6 |
009fead0 | 13290 | echo "configure:13291: checking for -lGL" >&5 |
57964555 | 13291 | |
62d0491b RL |
13292 | ac_find_libraries= |
13293 | for ac_dir in $SEARCH_LIB; | |
13294 | do | |
13295 | for ac_extension in a so sl dylib; do | |
13296 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
13297 | ac_find_libraries=$ac_dir | |
13298 | break 2 | |
13299 | fi | |
13300 | done | |
13301 | done | |
3a922bb4 | 13302 | |
62d0491b RL |
13303 | if test "$ac_find_libraries" != "" ; then |
13304 | ||
13305 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
13306 | result=$? | |
13307 | if test $result = 0; then | |
13308 | ac_path_to_link="" | |
13309 | else | |
13310 | ac_path_to_link=" -L$ac_find_libraries" | |
13311 | fi | |
3a922bb4 | 13312 | |
4b6b4dfc RR |
13313 | if test "$ac_path_to_link" = " -L/usr/lib" ; then |
13314 | LDFLAGS_GL="$LDFLAGS" | |
13315 | else | |
13316 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
13317 | fi | |
62d0491b | 13318 | OPENGL_LIBS="-lGL -lGLU" |
1352efdf | 13319 | echo "$ac_t""yes" 1>&6 |
62d0491b | 13320 | else |
1352efdf RL |
13321 | echo "$ac_t""no" 1>&6 |
13322 | echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6 | |
009fead0 | 13323 | echo "configure:13324: checking for -lMesaGL" >&5 |
62d0491b RL |
13324 | |
13325 | ac_find_libraries= | |
13326 | for ac_dir in $SEARCH_LIB; | |
13327 | do | |
13328 | for ac_extension in a so sl dylib; do | |
13329 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
13330 | ac_find_libraries=$ac_dir | |
13331 | break 2 | |
13332 | fi | |
13333 | done | |
13334 | done | |
3a922bb4 | 13335 | |
62d0491b | 13336 | if test "$ac_find_libraries" != "" ; then |
57964555 | 13337 | |
62d0491b RL |
13338 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
13339 | result=$? | |
13340 | if test $result = 0; then | |
13341 | ac_path_to_link="" | |
13342 | else | |
13343 | ac_path_to_link=" -L$ac_find_libraries" | |
13344 | fi | |
3a922bb4 | 13345 | |
62d0491b RL |
13346 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" |
13347 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
1352efdf RL |
13348 | echo "$ac_t""yes" 1>&6 |
13349 | else | |
13350 | echo "$ac_t""no" 1>&6 | |
62d0491b RL |
13351 | fi |
13352 | fi | |
13353 | ||
3a922bb4 RL |
13354 | else |
13355 | echo "$ac_t""no" 1>&6 | |
3a922bb4 RL |
13356 | fi |
13357 | ||
6f754473 | 13358 | |
62d0491b RL |
13359 | |
13360 | # AC_CHECK_HEADER(GL/gl.h, | |
13361 | # [ | |
13362 | # AC_CHECK_LIB(GL, glFlush, | |
13363 | # [ | |
13364 | # OPENGL_LIBS="-lGL -lGLU" | |
13365 | # ], | |
13366 | # [ | |
13367 | # AC_CHECK_LIB(MesaGL, glFlush, | |
13368 | # [ | |
13369 | # OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
13370 | # ], | |
13371 | # [], | |
13372 | # [-lm]) | |
13373 | # ], | |
13374 | # [-lm]) | |
13375 | # ]) | |
13376 | ||
13377 | if test "x$OPENGL_LIBS" = "x"; then | |
13378 | { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; } | |
13379 | fi | |
6f754473 | 13380 | fi |
6f754473 | 13381 | |
62d0491b RL |
13382 | if test "$wxUSE_OPENGL" = "yes"; then |
13383 | cat >> confdefs.h <<\EOF | |
6f754473 VZ |
13384 | #define wxUSE_OPENGL 1 |
13385 | EOF | |
13386 | ||
62d0491b | 13387 | cat >> confdefs.h <<\EOF |
6f754473 VZ |
13388 | #define wxUSE_GLCANVAS 1 |
13389 | EOF | |
13390 | ||
62d0491b RL |
13391 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl" |
13392 | fi | |
3a922bb4 RL |
13393 | fi |
13394 | ||
13395 | if test -z "$TOOLKIT_VPATH" ; then | |
13396 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" | |
13397 | fi | |
13398 | ||
13399 | if test -n "$TOOLKIT" ; then | |
13400 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
13401 | fi | |
13402 | ||
f676c7ff MB |
13403 | lib_unicode_suffix= |
13404 | if test "$wxUSE_UNICODE" = "yes"; then | |
13405 | lib_unicode_suffix=u | |
13406 | fi | |
13407 | ||
3a922bb4 RL |
13408 | lib_debug_suffix= |
13409 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
13410 | lib_debug_suffix=d | |
3a922bb4 RL |
13411 | fi |
13412 | ||
f676c7ff MB |
13413 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}" |
13414 | TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}" | |
3a922bb4 RL |
13415 | |
13416 | if test "$cross_compiling" = "yes"; then | |
13417 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}" | |
13418 | TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}" | |
13419 | fi | |
13420 | ||
13421 | WX_LIBRARY="wx_${TOOLCHAIN_NAME}" | |
13422 | WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}" | |
13423 | ||
3a922bb4 RL |
13424 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" |
13425 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
13426 | ||
13427 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}" | |
13428 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
13429 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}" | |
13430 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
13431 | ||
d08b457b | 13432 | WX_RESOURCES_MACOSX="lib${WX_LIBRARY}.rsrc" |
e23081de | 13433 | WX_RESOURCES_MACOSX_COMPILED="lib${WX_LIBRARY}.r" |
3a922bb4 | 13434 | |
978f1259 RL |
13435 | case "${host}" in |
13436 | *-*-cygwin* | *-*-mingw32* ) | |
13437 | ||
2da4f892 | 13438 | |
978f1259 RL |
13439 | |
13440 | if test "$cross_compiling" != "yes"; then | |
13441 | WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" | |
13442 | WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" | |
13443 | WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}" | |
13444 | WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
2da4f892 RL |
13445 | else |
13446 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
13447 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
978f1259 RL |
13448 | fi |
13449 | ||
13450 | esac | |
13451 | ||
13452 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
13453 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a" | |
13454 | ||
13455 | WXCONFIG_LIBS="-l${WX_LIBRARY}" | |
885d4bf5 | 13456 | WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a" |
978f1259 RL |
13457 | |
13458 | if test "$wxUSE_OPENGL" = "yes"; then | |
885d4bf5 VS |
13459 | WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}" |
13460 | WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}" | |
978f1259 RL |
13461 | fi |
13462 | ||
13463 | ||
3a922bb4 | 13464 | |
4222829b VS |
13465 | if test "$wxUSE_SHARED" = "yes"; then |
13466 | case "${host}" in | |
13467 | *-pc-os2_emx | *-pc-os2-emx | \ | |
13468 | *-pc-msdosdjgpp ) | |
13469 | wxUSE_SHARED=no | |
13470 | echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2 | |
13471 | ;; | |
13472 | esac | |
13473 | fi | |
13474 | ||
3a922bb4 | 13475 | if test "$wxUSE_SHARED" = "yes"; then |
55e80573 VZ |
13476 | |
13477 | if test "$wxUSE_OPENGL" = "yes"; then | |
13478 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
3a922bb4 | 13479 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}" |
55e80573 VZ |
13480 | else |
13481 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
3a922bb4 | 13482 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}" |
55e80573 VZ |
13483 | fi |
13484 | ||
dd4f7467 | 13485 | if test "$GCC" = "yes"; then |
55e80573 | 13486 | PIC_FLAG="-fPIC" |
dd4f7467 | 13487 | fi |
55e80573 VZ |
13488 | |
13489 | SHARED_LD="${CXX} -shared -o" | |
698dcdb6 | 13490 | |
10f2d63a VZ |
13491 | case "${host}" in |
13492 | *-hp-hpux* ) | |
d569ea8d GD |
13493 | if test "$GCC" == "yes"; then |
13494 | SHARED_LD="${SHARED_LD} ${PIC_FLAG}" | |
13495 | else | |
3d63bc3a | 13496 | LDFLAGS="$LDFLAGS -L/usr/lib" |
f6bcfd97 | 13497 | |
10f2d63a VZ |
13498 | SHARED_LD="${CXX} -b -o" |
13499 | PIC_FLAG="+Z" | |
13500 | fi | |
55e80573 | 13501 | |
7b7a7637 RL |
13502 | if test "$wxUSE_OPENGL" = "yes"; then |
13503 | WX_ALL_INSTALLED="preinstall_gl" | |
13504 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" | |
13505 | else | |
13506 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" | |
13507 | fi | |
10f2d63a | 13508 | ;; |
b12915c1 | 13509 | |
55e80573 VZ |
13510 | *-*-linux* ) |
13511 | if test "$GCC" != "yes"; then | |
13512 | echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6 | |
009fead0 | 13513 | echo "configure:13514: checking for Intel compiler" >&5 |
55e80573 VZ |
13514 | if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then |
13515 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13516 | else | |
13517 | ||
13518 | cat > conftest.$ac_ext <<EOF | |
009fead0 | 13519 | #line 13520 "configure" |
55e80573 VZ |
13520 | #include "confdefs.h" |
13521 | ||
13522 | int main() { | |
13523 | ||
13524 | #ifndef __INTEL_COMPILER | |
dd4f7467 | 13525 | #error Not icc |
55e80573 VZ |
13526 | #endif |
13527 | ||
13528 | ; return 0; } | |
13529 | EOF | |
009fead0 | 13530 | if { (eval echo configure:13531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
55e80573 VZ |
13531 | rm -rf conftest* |
13532 | wx_cv_prog_icc=yes | |
13533 | else | |
13534 | echo "configure: failed program was:" >&5 | |
13535 | cat conftest.$ac_ext >&5 | |
13536 | rm -rf conftest* | |
13537 | wx_cv_prog_icc=no | |
13538 | ||
13539 | fi | |
13540 | rm -f conftest* | |
13541 | ||
13542 | fi | |
13543 | ||
13544 | echo "$ac_t""$wx_cv_prog_icc" 1>&6 | |
55e80573 VZ |
13545 | if test "$wx_cv_prog_icc" = "yes"; then |
13546 | PIC_FLAG="-KPIC" | |
13547 | fi | |
13548 | fi | |
13549 | ||
3a922bb4 RL |
13550 | if test "$wxUSE_SONAME" = "yes" ; then |
13551 | SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}" | |
13552 | SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}" | |
f6bcfd97 | 13553 | WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)" |
00cf1208 | 13554 | fi |
10f2d63a | 13555 | ;; |
55e80573 | 13556 | |
10f2d63a VZ |
13557 | *-*-solaris2* ) |
13558 | if test "$GCC" = yes ; then | |
f6bcfd97 | 13559 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" |
10f2d63a VZ |
13560 | else |
13561 | SHARED_LD="${CXX} -G -o" | |
13562 | PIC_FLAG="-KPIC" | |
7b7a7637 | 13563 | SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}" |
471944dc | 13564 | SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}" |
10f2d63a | 13565 | fi |
10f2d63a | 13566 | ;; |
55e80573 | 13567 | |
b4085ce6 | 13568 | *-*-darwin* ) |
90f3fe56 | 13569 | CFLAGS="$CFLAGS -fno-common -DDYLIB_INIT" |
156b2523 | 13570 | CXXFLAGS="$CXXFLAGS -fno-common -DDYLIB_INIT" |
3010d50a | 13571 | LDFLAGS="$LDFLAGS -Wl,-bind_at_load" |
156b2523 | 13572 | SHARED_LD="$CXX -dynamiclib -init _wxWindowsDylibInit -o" |
ea5999b9 | 13573 | PIC_FLAG="-dynamic -fPIC" |
90f3fe56 GD |
13574 | SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION}" |
13575 | SONAME_FLAGS_GL=${SONAME_FLAGS} | |
10f2d63a | 13576 | ;; |
55e80573 | 13577 | |
10f2d63a VZ |
13578 | *-*-aix* ) |
13579 | SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o" | |
10f2d63a | 13580 | ;; |
55e80573 | 13581 | |
7b7a7637 | 13582 | *-*-cygwin* | *-*-mingw32* ) |
77e13408 | 13583 | |
2da4f892 | 13584 | WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a" |
77e13408 | 13585 | |
77e13408 | 13586 | SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o" |
00c81359 | 13587 | TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1" |
25d0687a RL |
13588 | |
13589 | PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1" | |
7b7a7637 RL |
13590 | |
13591 | if test "$wxUSE_OPENGL" = "yes"; then | |
f6bcfd97 | 13592 | WX_ALL_INSTALLED="preinstall_gl" |
978f1259 | 13593 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" |
f6bcfd97 | 13594 | else |
978f1259 | 13595 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" |
f6bcfd97 | 13596 | fi |
10f2d63a | 13597 | ;; |
55e80573 | 13598 | |
b12915c1 | 13599 | *-*-beos* ) |
e2b8b066 | 13600 | SHARED_LD="${LD} -shared -o" |
b12915c1 | 13601 | ;; |
55e80573 VZ |
13602 | |
13603 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ | |
13604 | *-*-sunos4* | \ | |
13605 | *-*-irix5* | *-*-irix6* | \ | |
13606 | *-*-osf* | \ | |
13607 | *-*-dgux5* | \ | |
13608 | *-*-sysv5* ) | |
13609 | ;; | |
13610 | ||
10f2d63a | 13611 | *) |
7b7a7637 | 13612 | { echo "configure: error: unknown system type $host." 1>&2; exit 1; } |
10f2d63a VZ |
13613 | esac |
13614 | ||
13615 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
13616 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
bdad4e7e | 13617 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" |
10f2d63a | 13618 | fi |
55e80573 | 13619 | |
3711412e | 13620 | WX_TARGET_LIBRARY_TYPE="so" |
885d4bf5 | 13621 | INSTALL_LIBRARY='$(INSTALL_PROGRAM)' |
3a922bb4 | 13622 | fi |
f6bcfd97 | 13623 | |
3a922bb4 | 13624 | if test "$wxUSE_SHARED" = "no"; then |
f6bcfd97 | 13625 | |
3a922bb4 | 13626 | if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then |
f6bcfd97 BP |
13627 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" |
13628 | fi | |
13629 | ||
6fa882bd RR |
13630 | if test "$wxUSE_MAC" = 1; then |
13631 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
13632 | fi | |
13633 | ||
3a922bb4 RL |
13634 | if test "$wxUSE_OPENGL" = "yes"; then |
13635 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl" | |
13636 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}" | |
13637 | else | |
13638 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}" | |
13639 | fi | |
698dcdb6 | 13640 | |
3a922bb4 RL |
13641 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
13642 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" | |
13643 | ||
13644 | WX_TARGET_LIBRARY_TYPE="a" | |
885d4bf5 | 13645 | INSTALL_LIBRARY='$(INSTALL_DATA)' |
10f2d63a | 13646 | fi |
10f2d63a | 13647 | |
d08b457b GD |
13648 | if test "$wxUSE_MAC" = 1; then |
13649 | WX_ALL="${WX_ALL} \$(build_libdir)/lib${WX_LIBRARY}.r" | |
e23081de | 13650 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res" |
d08b457b GD |
13651 | # Extract the first word of "Rez", so it can be a program name with args. |
13652 | set dummy Rez; ac_word=$2 | |
13653 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
3010d50a | 13654 | echo "configure:13655: checking for $ac_word" >&5 |
d08b457b GD |
13655 | if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then |
13656 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13657 | else | |
13658 | if test -n "$RESCOMP"; then | |
13659 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
13660 | else | |
13661 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
13662 | ac_dummy="$PATH" | |
13663 | for ac_dir in $ac_dummy; do | |
13664 | test -z "$ac_dir" && ac_dir=. | |
13665 | if test -f $ac_dir/$ac_word; then | |
13666 | ac_cv_prog_RESCOMP="Rez" | |
13667 | break | |
13668 | fi | |
13669 | done | |
13670 | IFS="$ac_save_ifs" | |
13671 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
13672 | fi | |
13673 | fi | |
13674 | RESCOMP="$ac_cv_prog_RESCOMP" | |
13675 | if test -n "$RESCOMP"; then | |
13676 | echo "$ac_t""$RESCOMP" 1>&6 | |
13677 | else | |
13678 | echo "$ac_t""no" 1>&6 | |
13679 | fi | |
13680 | ||
9f8148b1 GD |
13681 | # Extract the first word of "DeRez", so it can be a program name with args. |
13682 | set dummy DeRez; ac_word=$2 | |
d08b457b | 13683 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3010d50a | 13684 | echo "configure:13685: checking for $ac_word" >&5 |
d08b457b GD |
13685 | if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then |
13686 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13687 | else | |
13688 | if test -n "$DEREZ"; then | |
13689 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
13690 | else | |
13691 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
13692 | ac_dummy="$PATH" | |
13693 | for ac_dir in $ac_dummy; do | |
13694 | test -z "$ac_dir" && ac_dir=. | |
13695 | if test -f $ac_dir/$ac_word; then | |
9f8148b1 | 13696 | ac_cv_prog_DEREZ="DeRez" |
d08b457b GD |
13697 | break |
13698 | fi | |
13699 | done | |
13700 | IFS="$ac_save_ifs" | |
9f8148b1 | 13701 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" |
d08b457b GD |
13702 | fi |
13703 | fi | |
13704 | DEREZ="$ac_cv_prog_DEREZ" | |
13705 | if test -n "$DEREZ"; then | |
13706 | echo "$ac_t""$DEREZ" 1>&6 | |
13707 | else | |
13708 | echo "$ac_t""no" 1>&6 | |
13709 | fi | |
13710 | ||
ef7f2189 | 13711 | MACOSX_BUNDLE="bundle" |
d08b457b GD |
13712 | LIBWXMACRES="\$(top_builddir)/lib/lib${WX_LIBRARY}.r" |
13713 | LIBWXMACRESCOMP="\$(RESCOMP) Carbon.r -t APPL ${LIBWXMACRES} -o \$(BIN_PROGRAM)" | |
e23081de | 13714 | LIBWXMACRESWXCONFIG="${RESCOMP} Carbon.r -t APPL \${prefix}/lib/${WX_RESOURCES_MACOSX_COMPILED} -o" |
d558c907 VS |
13715 | else |
13716 | if test "$wxUSE_PM" = 1; then | |
13717 | LIBWXMACRESCOMP="emxbind -ep \$(BIN_PROGRAM)" | |
13718 | fi | |
d08b457b GD |
13719 | fi |
13720 | ||
3a922bb4 | 13721 | |
13c0541d GD |
13722 | if test "$wxUSE_MAC" != 1; then |
13723 | for ac_hdr in strings.h | |
9cfadba2 | 13724 | do |
698dcdb6 VZ |
13725 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
13726 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3010d50a | 13727 | echo "configure:13728: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
13728 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13729 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13730 | else | |
13731 | cat > conftest.$ac_ext <<EOF | |
3010d50a | 13732 | #line 13733 "configure" |
9cfadba2 | 13733 | #include "confdefs.h" |
698dcdb6 VZ |
13734 | #include <$ac_hdr> |
13735 | EOF | |
13736 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3010d50a | 13737 | { (eval echo configure:13738: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13738 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13739 | if test -z "$ac_err"; then | |
13740 | rm -rf conftest* | |
13741 | eval "ac_cv_header_$ac_safe=yes" | |
6232543b | 13742 | else |
698dcdb6 VZ |
13743 | echo "$ac_err" >&5 |
13744 | echo "configure: failed program was:" >&5 | |
9cfadba2 | 13745 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13746 | rm -rf conftest* |
13747 | eval "ac_cv_header_$ac_safe=no" | |
9cfadba2 | 13748 | fi |
698dcdb6 | 13749 | rm -f conftest* |
9cfadba2 | 13750 | fi |
698dcdb6 VZ |
13751 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13752 | echo "$ac_t""yes" 1>&6 | |
13753 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13754 | cat >> confdefs.h <<EOF | |
13755 | #define $ac_tr_hdr 1 | |
9cfadba2 | 13756 | EOF |
698dcdb6 VZ |
13757 | |
13758 | else | |
13759 | echo "$ac_t""no" 1>&6 | |
9cfadba2 VZ |
13760 | fi |
13761 | done | |
10f2d63a | 13762 | |
13c0541d GD |
13763 | fi |
13764 | ||
3a922bb4 | 13765 | for ac_hdr in stdlib.h |
10f2d63a | 13766 | do |
698dcdb6 VZ |
13767 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
13768 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3010d50a | 13769 | echo "configure:13770: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
13770 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13771 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13772 | else | |
13773 | cat > conftest.$ac_ext <<EOF | |
3010d50a | 13774 | #line 13775 "configure" |
10f2d63a | 13775 | #include "confdefs.h" |
698dcdb6 VZ |
13776 | #include <$ac_hdr> |
13777 | EOF | |
13778 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3010d50a | 13779 | { (eval echo configure:13780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13780 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13781 | if test -z "$ac_err"; then | |
13782 | rm -rf conftest* | |
13783 | eval "ac_cv_header_$ac_safe=yes" | |
6232543b | 13784 | else |
698dcdb6 VZ |
13785 | echo "$ac_err" >&5 |
13786 | echo "configure: failed program was:" >&5 | |
10f2d63a | 13787 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13788 | rm -rf conftest* |
13789 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 13790 | fi |
698dcdb6 | 13791 | rm -f conftest* |
10f2d63a | 13792 | fi |
698dcdb6 VZ |
13793 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13794 | echo "$ac_t""yes" 1>&6 | |
13795 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13796 | cat >> confdefs.h <<EOF | |
13797 | #define $ac_tr_hdr 1 | |
10f2d63a | 13798 | EOF |
698dcdb6 VZ |
13799 | |
13800 | else | |
13801 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13802 | fi |
13803 | done | |
13804 | ||
9f8148b1 | 13805 | for ac_hdr in malloc.h |
10f2d63a | 13806 | do |
698dcdb6 VZ |
13807 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
13808 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3010d50a | 13809 | echo "configure:13810: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
13810 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13811 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13812 | else | |
13813 | cat > conftest.$ac_ext <<EOF | |
3010d50a | 13814 | #line 13815 "configure" |
10f2d63a | 13815 | #include "confdefs.h" |
698dcdb6 VZ |
13816 | #include <$ac_hdr> |
13817 | EOF | |
13818 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3010d50a | 13819 | { (eval echo configure:13820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13820 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13821 | if test -z "$ac_err"; then | |
13822 | rm -rf conftest* | |
13823 | eval "ac_cv_header_$ac_safe=yes" | |
6f72b082 | 13824 | else |
698dcdb6 VZ |
13825 | echo "$ac_err" >&5 |
13826 | echo "configure: failed program was:" >&5 | |
6f72b082 | 13827 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13828 | rm -rf conftest* |
13829 | eval "ac_cv_header_$ac_safe=no" | |
6f72b082 | 13830 | fi |
698dcdb6 | 13831 | rm -f conftest* |
6f72b082 | 13832 | fi |
698dcdb6 VZ |
13833 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13834 | echo "$ac_t""yes" 1>&6 | |
13835 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13836 | cat >> confdefs.h <<EOF | |
13837 | #define $ac_tr_hdr 1 | |
6f72b082 | 13838 | EOF |
698dcdb6 VZ |
13839 | |
13840 | else | |
13841 | echo "$ac_t""no" 1>&6 | |
6f72b082 OK |
13842 | fi |
13843 | done | |
13844 | ||
9f8148b1 | 13845 | for ac_hdr in unistd.h |
6f72b082 | 13846 | do |
698dcdb6 VZ |
13847 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
13848 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3010d50a | 13849 | echo "configure:13850: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
13850 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13851 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13852 | else | |
13853 | cat > conftest.$ac_ext <<EOF | |
3010d50a | 13854 | #line 13855 "configure" |
6f72b082 | 13855 | #include "confdefs.h" |
698dcdb6 VZ |
13856 | #include <$ac_hdr> |
13857 | EOF | |
13858 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3010d50a | 13859 | { (eval echo configure:13860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13860 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13861 | if test -z "$ac_err"; then | |
13862 | rm -rf conftest* | |
13863 | eval "ac_cv_header_$ac_safe=yes" | |
6f72b082 | 13864 | else |
698dcdb6 VZ |
13865 | echo "$ac_err" >&5 |
13866 | echo "configure: failed program was:" >&5 | |
6f72b082 | 13867 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13868 | rm -rf conftest* |
13869 | eval "ac_cv_header_$ac_safe=no" | |
6f72b082 | 13870 | fi |
698dcdb6 | 13871 | rm -f conftest* |
6f72b082 | 13872 | fi |
698dcdb6 VZ |
13873 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13874 | echo "$ac_t""yes" 1>&6 | |
13875 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13876 | cat >> confdefs.h <<EOF | |
13877 | #define $ac_tr_hdr 1 | |
6f72b082 | 13878 | EOF |
698dcdb6 VZ |
13879 | |
13880 | else | |
13881 | echo "$ac_t""no" 1>&6 | |
6f72b082 OK |
13882 | fi |
13883 | done | |
13884 | ||
9f8148b1 | 13885 | for ac_hdr in wchar.h |
6f72b082 | 13886 | do |
698dcdb6 VZ |
13887 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
13888 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3010d50a | 13889 | echo "configure:13890: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
13890 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13891 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13892 | else | |
13893 | cat > conftest.$ac_ext <<EOF | |
3010d50a | 13894 | #line 13895 "configure" |
6f72b082 | 13895 | #include "confdefs.h" |
698dcdb6 VZ |
13896 | #include <$ac_hdr> |
13897 | EOF | |
13898 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3010d50a | 13899 | { (eval echo configure:13900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13900 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13901 | if test -z "$ac_err"; then | |
13902 | rm -rf conftest* | |
13903 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 13904 | else |
698dcdb6 VZ |
13905 | echo "$ac_err" >&5 |
13906 | echo "configure: failed program was:" >&5 | |
10f2d63a | 13907 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13908 | rm -rf conftest* |
13909 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 13910 | fi |
698dcdb6 | 13911 | rm -f conftest* |
10f2d63a | 13912 | fi |
698dcdb6 VZ |
13913 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13914 | echo "$ac_t""yes" 1>&6 | |
13915 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13916 | cat >> confdefs.h <<EOF | |
13917 | #define $ac_tr_hdr 1 | |
10f2d63a | 13918 | EOF |
698dcdb6 VZ |
13919 | |
13920 | else | |
13921 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13922 | fi |
13923 | done | |
13924 | ||
f0c87536 VZ |
13925 | |
13926 | if test "$ac_cv_header_wchar_h" != "yes"; then | |
13927 | for ac_hdr in wcstr.h | |
0fb0dd83 | 13928 | do |
698dcdb6 VZ |
13929 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
13930 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3010d50a | 13931 | echo "configure:13932: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
13932 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13933 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13934 | else | |
13935 | cat > conftest.$ac_ext <<EOF | |
3010d50a | 13936 | #line 13937 "configure" |
0fb0dd83 | 13937 | #include "confdefs.h" |
698dcdb6 VZ |
13938 | #include <$ac_hdr> |
13939 | EOF | |
13940 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3010d50a | 13941 | { (eval echo configure:13942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13942 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13943 | if test -z "$ac_err"; then | |
13944 | rm -rf conftest* | |
13945 | eval "ac_cv_header_$ac_safe=yes" | |
0fb0dd83 | 13946 | else |
698dcdb6 VZ |
13947 | echo "$ac_err" >&5 |
13948 | echo "configure: failed program was:" >&5 | |
0fb0dd83 | 13949 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13950 | rm -rf conftest* |
13951 | eval "ac_cv_header_$ac_safe=no" | |
0fb0dd83 | 13952 | fi |
698dcdb6 | 13953 | rm -f conftest* |
0fb0dd83 | 13954 | fi |
698dcdb6 VZ |
13955 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13956 | echo "$ac_t""yes" 1>&6 | |
13957 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13958 | cat >> confdefs.h <<EOF | |
13959 | #define $ac_tr_hdr 1 | |
0fb0dd83 | 13960 | EOF |
698dcdb6 VZ |
13961 | |
13962 | else | |
13963 | echo "$ac_t""no" 1>&6 | |
0fb0dd83 RR |
13964 | fi |
13965 | done | |
13966 | ||
1f8ae82f | 13967 | fi |
f0c87536 | 13968 | |
1f8ae82f | 13969 | |
9f8148b1 | 13970 | for ac_hdr in fnmatch.h |
10f2d63a | 13971 | do |
698dcdb6 VZ |
13972 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
13973 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3010d50a | 13974 | echo "configure:13975: checking for $ac_hdr" >&5 |
0fbb762e MB |
13975 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13976 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13977 | else | |
13978 | cat > conftest.$ac_ext <<EOF | |
3010d50a | 13979 | #line 13980 "configure" |
0fbb762e MB |
13980 | #include "confdefs.h" |
13981 | #include <$ac_hdr> | |
13982 | EOF | |
13983 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3010d50a | 13984 | { (eval echo configure:13985: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
0fbb762e MB |
13985 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13986 | if test -z "$ac_err"; then | |
13987 | rm -rf conftest* | |
13988 | eval "ac_cv_header_$ac_safe=yes" | |
13989 | else | |
13990 | echo "$ac_err" >&5 | |
13991 | echo "configure: failed program was:" >&5 | |
13992 | cat conftest.$ac_ext >&5 | |
13993 | rm -rf conftest* | |
13994 | eval "ac_cv_header_$ac_safe=no" | |
13995 | fi | |
13996 | rm -f conftest* | |
13997 | fi | |
13998 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
13999 | echo "$ac_t""yes" 1>&6 | |
14000 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
14001 | cat >> confdefs.h <<EOF | |
14002 | #define $ac_tr_hdr 1 | |
14003 | EOF | |
14004 | ||
14005 | else | |
14006 | echo "$ac_t""no" 1>&6 | |
14007 | fi | |
14008 | done | |
14009 | ||
9f8148b1 GD |
14010 | for ac_hdr in langinfo.h |
14011 | do | |
14012 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
14013 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3010d50a | 14014 | echo "configure:14015: checking for $ac_hdr" >&5 |
9f8148b1 GD |
14015 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14016 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14017 | else | |
14018 | cat > conftest.$ac_ext <<EOF | |
3010d50a | 14019 | #line 14020 "configure" |
9f8148b1 GD |
14020 | #include "confdefs.h" |
14021 | #include <$ac_hdr> | |
14022 | EOF | |
14023 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3010d50a | 14024 | { (eval echo configure:14025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
9f8148b1 GD |
14025 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14026 | if test -z "$ac_err"; then | |
14027 | rm -rf conftest* | |
14028 | eval "ac_cv_header_$ac_safe=yes" | |
14029 | else | |
14030 | echo "$ac_err" >&5 | |
14031 | echo "configure: failed program was:" >&5 | |
14032 | cat conftest.$ac_ext >&5 | |
14033 | rm -rf conftest* | |
14034 | eval "ac_cv_header_$ac_safe=no" | |
14035 | fi | |
14036 | rm -f conftest* | |
14037 | fi | |
14038 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
14039 | echo "$ac_t""yes" 1>&6 | |
14040 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
14041 | cat >> confdefs.h <<EOF | |
14042 | #define $ac_tr_hdr 1 | |
14043 | EOF | |
14044 | ||
14045 | else | |
14046 | echo "$ac_t""no" 1>&6 | |
14047 | fi | |
14048 | done | |
14049 | ||
10f2d63a | 14050 | |
3a922bb4 RL |
14051 | if test "$wxUSE_GUI" = "yes"; then |
14052 | if test "$wxUSE_UNIX" = "yes"; then | |
14053 | for ac_hdr in X11/XKBlib.h | |
29fd3c0c VS |
14054 | do |
14055 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
14056 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3010d50a | 14057 | echo "configure:14058: checking for $ac_hdr" >&5 |
29fd3c0c VS |
14058 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14059 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14060 | else | |
14061 | cat > conftest.$ac_ext <<EOF | |
3010d50a | 14062 | #line 14063 "configure" |
29fd3c0c VS |
14063 | #include "confdefs.h" |
14064 | #include <$ac_hdr> | |
14065 | EOF | |
14066 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3010d50a | 14067 | { (eval echo configure:14068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
29fd3c0c VS |
14068 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14069 | if test -z "$ac_err"; then | |
14070 | rm -rf conftest* | |
14071 | eval "ac_cv_header_$ac_safe=yes" | |
14072 | else | |
14073 | echo "$ac_err" >&5 | |
14074 | echo "configure: failed program was:" >&5 | |
14075 | cat conftest.$ac_ext >&5 | |
14076 | rm -rf conftest* | |
14077 | eval "ac_cv_header_$ac_safe=no" | |
14078 | fi | |
14079 | rm -f conftest* | |
14080 | fi | |
14081 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
14082 | echo "$ac_t""yes" 1>&6 | |
14083 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
14084 | cat >> confdefs.h <<EOF | |
14085 | #define $ac_tr_hdr 1 | |
14086 | EOF | |
14087 | ||
14088 | else | |
14089 | echo "$ac_t""no" 1>&6 | |
14090 | fi | |
14091 | done | |
14092 | ||
3a922bb4 | 14093 | fi |
29fd3c0c VS |
14094 | fi |
14095 | ||
698dcdb6 VZ |
14096 | |
14097 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
3010d50a | 14098 | echo "configure:14099: checking for ANSI C header files" >&5 |
698dcdb6 VZ |
14099 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
14100 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14101 | else |
698dcdb6 | 14102 | cat > conftest.$ac_ext <<EOF |
3010d50a | 14103 | #line 14104 "configure" |
10f2d63a VZ |
14104 | #include "confdefs.h" |
14105 | #include <stdlib.h> | |
14106 | #include <stdarg.h> | |
14107 | #include <string.h> | |
14108 | #include <float.h> | |
698dcdb6 VZ |
14109 | EOF |
14110 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3010d50a | 14111 | { (eval echo configure:14112: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
14112 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14113 | if test -z "$ac_err"; then | |
14114 | rm -rf conftest* | |
10f2d63a VZ |
14115 | ac_cv_header_stdc=yes |
14116 | else | |
698dcdb6 VZ |
14117 | echo "$ac_err" >&5 |
14118 | echo "configure: failed program was:" >&5 | |
10f2d63a | 14119 | cat conftest.$ac_ext >&5 |
698dcdb6 | 14120 | rm -rf conftest* |
10f2d63a VZ |
14121 | ac_cv_header_stdc=no |
14122 | fi | |
698dcdb6 | 14123 | rm -f conftest* |
10f2d63a VZ |
14124 | |
14125 | if test $ac_cv_header_stdc = yes; then | |
14126 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
698dcdb6 | 14127 | cat > conftest.$ac_ext <<EOF |
3010d50a | 14128 | #line 14129 "configure" |
10f2d63a VZ |
14129 | #include "confdefs.h" |
14130 | #include <string.h> | |
698dcdb6 | 14131 | EOF |
10f2d63a VZ |
14132 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
14133 | egrep "memchr" >/dev/null 2>&1; then | |
14134 | : | |
14135 | else | |
698dcdb6 | 14136 | rm -rf conftest* |
10f2d63a VZ |
14137 | ac_cv_header_stdc=no |
14138 | fi | |
14139 | rm -f conftest* | |
14140 | ||
14141 | fi | |
14142 | ||
14143 | if test $ac_cv_header_stdc = yes; then | |
14144 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
698dcdb6 | 14145 | cat > conftest.$ac_ext <<EOF |
3010d50a | 14146 | #line 14147 "configure" |
10f2d63a VZ |
14147 | #include "confdefs.h" |
14148 | #include <stdlib.h> | |
698dcdb6 | 14149 | EOF |
10f2d63a VZ |
14150 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
14151 | egrep "free" >/dev/null 2>&1; then | |
14152 | : | |
14153 | else | |
698dcdb6 | 14154 | rm -rf conftest* |
10f2d63a VZ |
14155 | ac_cv_header_stdc=no |
14156 | fi | |
14157 | rm -f conftest* | |
14158 | ||
14159 | fi | |
14160 | ||
14161 | if test $ac_cv_header_stdc = yes; then | |
14162 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
698dcdb6 | 14163 | if test "$cross_compiling" = yes; then |
10f2d63a VZ |
14164 | : |
14165 | else | |
698dcdb6 | 14166 | cat > conftest.$ac_ext <<EOF |
3010d50a | 14167 | #line 14168 "configure" |
10f2d63a VZ |
14168 | #include "confdefs.h" |
14169 | #include <ctype.h> | |
698dcdb6 VZ |
14170 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
14171 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
1e487827 | 14172 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
698dcdb6 VZ |
14173 | int main () { int i; for (i = 0; i < 256; i++) |
14174 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
14175 | exit (0); } | |
14176 | ||
14177 | EOF | |
3010d50a | 14178 | if { (eval echo configure:14179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 14179 | then |
10f2d63a VZ |
14180 | : |
14181 | else | |
698dcdb6 VZ |
14182 | echo "configure: failed program was:" >&5 |
14183 | cat conftest.$ac_ext >&5 | |
14184 | rm -fr conftest* | |
14185 | ac_cv_header_stdc=no | |
10f2d63a | 14186 | fi |
698dcdb6 | 14187 | rm -fr conftest* |
10f2d63a | 14188 | fi |
698dcdb6 | 14189 | |
10f2d63a VZ |
14190 | fi |
14191 | fi | |
1e487827 | 14192 | |
698dcdb6 VZ |
14193 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
14194 | if test $ac_cv_header_stdc = yes; then | |
14195 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
14196 | #define STDC_HEADERS 1 |
14197 | EOF | |
14198 | ||
14199 | fi | |
14200 | ||
698dcdb6 | 14201 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
3010d50a | 14202 | echo "configure:14203: checking for mode_t" >&5 |
698dcdb6 VZ |
14203 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
14204 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 14205 | else |
698dcdb6 | 14206 | cat > conftest.$ac_ext <<EOF |
3010d50a | 14207 | #line 14208 "configure" |
1e487827 | 14208 | #include "confdefs.h" |
698dcdb6 VZ |
14209 | #include <sys/types.h> |
14210 | #if STDC_HEADERS | |
14211 | #include <stdlib.h> | |
14212 | #include <stddef.h> | |
14213 | #endif | |
14214 | EOF | |
14215 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
14216 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
14217 | rm -rf conftest* | |
10f2d63a VZ |
14218 | ac_cv_type_mode_t=yes |
14219 | else | |
698dcdb6 VZ |
14220 | rm -rf conftest* |
14221 | ac_cv_type_mode_t=no | |
703e0a69 | 14222 | fi |
698dcdb6 | 14223 | rm -f conftest* |
1e487827 | 14224 | |
698dcdb6 VZ |
14225 | fi |
14226 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 | |
14227 | if test $ac_cv_type_mode_t = no; then | |
14228 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
14229 | #define mode_t int |
14230 | EOF | |
14231 | ||
14232 | fi | |
14233 | ||
698dcdb6 | 14234 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
3010d50a | 14235 | echo "configure:14236: checking for off_t" >&5 |
698dcdb6 VZ |
14236 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
14237 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14238 | else |
698dcdb6 | 14239 | cat > conftest.$ac_ext <<EOF |
3010d50a | 14240 | #line 14241 "configure" |
10f2d63a | 14241 | #include "confdefs.h" |
698dcdb6 VZ |
14242 | #include <sys/types.h> |
14243 | #if STDC_HEADERS | |
14244 | #include <stdlib.h> | |
14245 | #include <stddef.h> | |
14246 | #endif | |
14247 | EOF | |
14248 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
14249 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
14250 | rm -rf conftest* | |
10f2d63a VZ |
14251 | ac_cv_type_off_t=yes |
14252 | else | |
698dcdb6 VZ |
14253 | rm -rf conftest* |
14254 | ac_cv_type_off_t=no | |
703e0a69 | 14255 | fi |
698dcdb6 | 14256 | rm -f conftest* |
1e487827 | 14257 | |
698dcdb6 VZ |
14258 | fi |
14259 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
14260 | if test $ac_cv_type_off_t = no; then | |
14261 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
14262 | #define off_t long |
14263 | EOF | |
14264 | ||
14265 | fi | |
14266 | ||
698dcdb6 | 14267 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
3010d50a | 14268 | echo "configure:14269: checking for pid_t" >&5 |
698dcdb6 VZ |
14269 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
14270 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14271 | else |
698dcdb6 | 14272 | cat > conftest.$ac_ext <<EOF |
3010d50a | 14273 | #line 14274 "configure" |
10f2d63a | 14274 | #include "confdefs.h" |
698dcdb6 VZ |
14275 | #include <sys/types.h> |
14276 | #if STDC_HEADERS | |
14277 | #include <stdlib.h> | |
14278 | #include <stddef.h> | |
14279 | #endif | |
14280 | EOF | |
14281 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
14282 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
14283 | rm -rf conftest* | |
10f2d63a VZ |
14284 | ac_cv_type_pid_t=yes |
14285 | else | |
698dcdb6 VZ |
14286 | rm -rf conftest* |
14287 | ac_cv_type_pid_t=no | |
703e0a69 | 14288 | fi |
698dcdb6 | 14289 | rm -f conftest* |
1e487827 | 14290 | |
698dcdb6 VZ |
14291 | fi |
14292 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
14293 | if test $ac_cv_type_pid_t = no; then | |
14294 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
14295 | #define pid_t int |
14296 | EOF | |
14297 | ||
14298 | fi | |
14299 | ||
698dcdb6 | 14300 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
3010d50a | 14301 | echo "configure:14302: checking for size_t" >&5 |
698dcdb6 VZ |
14302 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
14303 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14304 | else |
698dcdb6 | 14305 | cat > conftest.$ac_ext <<EOF |
3010d50a | 14306 | #line 14307 "configure" |
10f2d63a | 14307 | #include "confdefs.h" |
698dcdb6 VZ |
14308 | #include <sys/types.h> |
14309 | #if STDC_HEADERS | |
14310 | #include <stdlib.h> | |
14311 | #include <stddef.h> | |
14312 | #endif | |
14313 | EOF | |
14314 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
14315 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
14316 | rm -rf conftest* | |
10f2d63a VZ |
14317 | ac_cv_type_size_t=yes |
14318 | else | |
698dcdb6 VZ |
14319 | rm -rf conftest* |
14320 | ac_cv_type_size_t=no | |
703e0a69 | 14321 | fi |
698dcdb6 | 14322 | rm -f conftest* |
1e487827 | 14323 | |
698dcdb6 VZ |
14324 | fi |
14325 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
14326 | if test $ac_cv_type_size_t = no; then | |
14327 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
14328 | #define size_t unsigned |
14329 | EOF | |
14330 | ||
14331 | fi | |
14332 | ||
698dcdb6 | 14333 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
3010d50a | 14334 | echo "configure:14335: checking for uid_t in sys/types.h" >&5 |
698dcdb6 VZ |
14335 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
14336 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14337 | else |
698dcdb6 | 14338 | cat > conftest.$ac_ext <<EOF |
3010d50a | 14339 | #line 14340 "configure" |
10f2d63a VZ |
14340 | #include "confdefs.h" |
14341 | #include <sys/types.h> | |
698dcdb6 | 14342 | EOF |
10f2d63a VZ |
14343 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
14344 | egrep "uid_t" >/dev/null 2>&1; then | |
698dcdb6 | 14345 | rm -rf conftest* |
10f2d63a VZ |
14346 | ac_cv_type_uid_t=yes |
14347 | else | |
698dcdb6 | 14348 | rm -rf conftest* |
10f2d63a VZ |
14349 | ac_cv_type_uid_t=no |
14350 | fi | |
14351 | rm -f conftest* | |
14352 | ||
14353 | fi | |
1e487827 | 14354 | |
698dcdb6 VZ |
14355 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
14356 | if test $ac_cv_type_uid_t = no; then | |
14357 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
14358 | #define uid_t int |
14359 | EOF | |
14360 | ||
698dcdb6 | 14361 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
14362 | #define gid_t int |
14363 | EOF | |
14364 | ||
14365 | fi | |
14366 | ||
1e487827 | 14367 | |
698dcdb6 | 14368 | echo $ac_n "checking for wchar_t""... $ac_c" 1>&6 |
3010d50a | 14369 | echo "configure:14370: checking for wchar_t" >&5 |
698dcdb6 VZ |
14370 | if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then |
14371 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14372 | else | |
14373 | ||
14374 | cat > conftest.$ac_ext <<EOF | |
3010d50a | 14375 | #line 14376 "configure" |
0046ff7c | 14376 | #include "confdefs.h" |
4b42290e GD |
14377 | |
14378 | #ifdef HAVE_WCHAR_H | |
0fbb762e MB |
14379 | # ifdef __CYGWIN__ |
14380 | # include <stddef.h> | |
14381 | # endif | |
4b42290e GD |
14382 | # include <wchar.h> |
14383 | #endif | |
14384 | #ifdef HAVE_STDLIB_H | |
14385 | # include <stdlib.h> | |
14386 | #endif | |
14387 | ||
698dcdb6 | 14388 | int main() { |
0046ff7c | 14389 | |
d836ee96 VZ |
14390 | wchar_t wc, *ws; |
14391 | wc = L'a'; | |
14392 | ws = L"Hello, world!"; | |
698dcdb6 VZ |
14393 | |
14394 | ; return 0; } | |
14395 | EOF | |
3010d50a | 14396 | if { (eval echo configure:14397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 14397 | rm -rf conftest* |
1f8ae82f | 14398 | wx_cv_type_wchar_t=yes |
0046ff7c | 14399 | else |
698dcdb6 VZ |
14400 | echo "configure: failed program was:" >&5 |
14401 | cat conftest.$ac_ext >&5 | |
14402 | rm -rf conftest* | |
14403 | wx_cv_type_wchar_t=no | |
d836ee96 | 14404 | |
6232543b | 14405 | fi |
698dcdb6 | 14406 | rm -f conftest* |
703e0a69 | 14407 | |
1e487827 | 14408 | fi |
698dcdb6 VZ |
14409 | |
14410 | echo "$ac_t""$wx_cv_type_wchar_t" 1>&6 | |
d836ee96 VZ |
14411 | |
14412 | if test "$wx_cv_type_wchar_t" = "yes"; then | |
698dcdb6 | 14413 | cat >> confdefs.h <<\EOF |
0046ff7c VS |
14414 | #define wxUSE_WCHAR_T 1 |
14415 | EOF | |
14416 | ||
14417 | fi | |
14418 | ||
19af3b06 VZ |
14419 | |
14420 | ac_ext=C | |
14421 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14422 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14423 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14424 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14425 | cross_compiling=$ac_cv_prog_cxx_cross | |
14426 | ||
d836ee96 | 14427 | echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6 |
3010d50a | 14428 | echo "configure:14429: checking if size_t is unsigned int" >&5 |
d836ee96 VZ |
14429 | if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then |
14430 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14431 | else | |
dd2c8b7c | 14432 | cat > conftest.$ac_ext <<EOF |
3010d50a | 14433 | #line 14434 "configure" |
d836ee96 VZ |
14434 | #include "confdefs.h" |
14435 | #include <stddef.h> | |
14436 | int main() { | |
14437 | ||
dd2c8b7c VZ |
14438 | return 0; } |
14439 | ||
d836ee96 | 14440 | struct Foo { void foo(size_t); void foo(unsigned int); }; |
dd2c8b7c VZ |
14441 | |
14442 | int bar() { | |
d836ee96 VZ |
14443 | |
14444 | ; return 0; } | |
14445 | EOF | |
3010d50a | 14446 | if { (eval echo configure:14447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d836ee96 VZ |
14447 | rm -rf conftest* |
14448 | wx_cv_size_t_is_uint=no | |
14449 | else | |
14450 | echo "configure: failed program was:" >&5 | |
14451 | cat conftest.$ac_ext >&5 | |
14452 | rm -rf conftest* | |
14453 | wx_cv_size_t_is_uint=yes | |
14454 | ||
14455 | fi | |
14456 | rm -f conftest* | |
14457 | ||
14458 | fi | |
14459 | ||
14460 | echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6 | |
14461 | ||
14462 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
14463 | cat >> confdefs.h <<\EOF | |
14464 | #define wxSIZE_T_IS_UINT 1 | |
14465 | EOF | |
14466 | ||
14467 | else | |
14468 | echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6 | |
3010d50a | 14469 | echo "configure:14470: checking if size_t is unsigned long" >&5 |
d836ee96 VZ |
14470 | if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then |
14471 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14472 | else | |
14473 | cat > conftest.$ac_ext <<EOF | |
3010d50a | 14474 | #line 14475 "configure" |
d836ee96 VZ |
14475 | #include "confdefs.h" |
14476 | #include <stddef.h> | |
14477 | int main() { | |
14478 | ||
dd2c8b7c VZ |
14479 | return 0; } |
14480 | ||
d836ee96 | 14481 | struct Foo { void foo(size_t); void foo(unsigned long); }; |
dd2c8b7c VZ |
14482 | |
14483 | int bar() { | |
d836ee96 VZ |
14484 | |
14485 | ; return 0; } | |
14486 | EOF | |
3010d50a | 14487 | if { (eval echo configure:14488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d836ee96 VZ |
14488 | rm -rf conftest* |
14489 | wx_cv_size_t_is_ulong=no | |
14490 | else | |
14491 | echo "configure: failed program was:" >&5 | |
14492 | cat conftest.$ac_ext >&5 | |
14493 | rm -rf conftest* | |
14494 | wx_cv_size_t_is_ulong=yes | |
14495 | ||
14496 | fi | |
14497 | rm -f conftest* | |
14498 | ||
14499 | fi | |
14500 | ||
14501 | echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6 | |
14502 | ||
14503 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
14504 | cat >> confdefs.h <<\EOF | |
14505 | #define wxSIZE_T_IS_ULONG 1 | |
14506 | EOF | |
14507 | ||
14508 | fi | |
14509 | fi | |
14510 | ||
19af3b06 VZ |
14511 | ac_ext=c |
14512 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14513 | ac_cpp='$CPP $CPPFLAGS' | |
14514 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14515 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14516 | cross_compiling=$ac_cv_prog_cc_cross | |
14517 | ||
14518 | ||
1e487827 | 14519 | |
698dcdb6 | 14520 | echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6 |
3010d50a | 14521 | echo "configure:14522: checking for pw_gecos in struct passwd" >&5 |
698dcdb6 VZ |
14522 | if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then |
14523 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14524 | else | |
14525 | ||
14526 | cat > conftest.$ac_ext <<EOF | |
3010d50a | 14527 | #line 14528 "configure" |
b12915c1 VZ |
14528 | #include "confdefs.h" |
14529 | #include <pwd.h> | |
698dcdb6 | 14530 | int main() { |
b12915c1 VZ |
14531 | |
14532 | char *p; | |
14533 | struct passwd *pw; | |
14534 | p = pw->pw_gecos; | |
698dcdb6 VZ |
14535 | |
14536 | ; return 0; } | |
14537 | EOF | |
3010d50a | 14538 | if { (eval echo configure:14539: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
14539 | rm -rf conftest* |
14540 | ||
b12915c1 | 14541 | wx_cv_struct_pw_gecos=yes |
698dcdb6 | 14542 | |
b12915c1 | 14543 | else |
698dcdb6 VZ |
14544 | echo "configure: failed program was:" >&5 |
14545 | cat conftest.$ac_ext >&5 | |
14546 | rm -rf conftest* | |
14547 | ||
b12915c1 | 14548 | wx_cv_struct_pw_gecos=no |
698dcdb6 VZ |
14549 | |
14550 | ||
6232543b | 14551 | fi |
698dcdb6 VZ |
14552 | rm -f conftest* |
14553 | ||
703e0a69 | 14554 | |
1e487827 | 14555 | fi |
698dcdb6 VZ |
14556 | |
14557 | echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6 | |
b12915c1 | 14558 | |
bd3277fe | 14559 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
698dcdb6 | 14560 | cat >> confdefs.h <<\EOF |
bd3277fe VZ |
14561 | #define HAVE_PW_GECOS 1 |
14562 | EOF | |
14563 | ||
14564 | fi | |
14565 | ||
698dcdb6 VZ |
14566 | |
14567 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
3010d50a | 14568 | echo "configure:14569: checking for working const" >&5 |
698dcdb6 VZ |
14569 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
14570 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14571 | else |
698dcdb6 | 14572 | cat > conftest.$ac_ext <<EOF |
3010d50a | 14573 | #line 14574 "configure" |
10f2d63a | 14574 | #include "confdefs.h" |
698dcdb6 VZ |
14575 | |
14576 | int main() { | |
14577 | ||
14578 | /* Ultrix mips cc rejects this. */ | |
d558c907 | 14579 | typedef int charset[2]; const charset x; |
698dcdb6 VZ |
14580 | /* SunOS 4.1.1 cc rejects this. */ |
14581 | char const *const *ccp; | |
14582 | char **p; | |
14583 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
14584 | struct point {int x, y;}; | |
14585 | static struct point const zero = {0,0}; | |
14586 | /* AIX XL C 1.02.0.0 rejects this. | |
14587 | It does not let you subtract one const X* pointer from another in an arm | |
14588 | of an if-expression whose if-part is not a constant expression */ | |
14589 | const char *g = "string"; | |
14590 | ccp = &g + (g ? g-g : 0); | |
14591 | /* HPUX 7.0 cc rejects these. */ | |
14592 | ++ccp; | |
14593 | p = (char**) ccp; | |
14594 | ccp = (char const *const *) p; | |
14595 | { /* SCO 3.2v4 cc rejects this. */ | |
14596 | char *t; | |
14597 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
14598 | ||
14599 | *t++ = 0; | |
10f2d63a | 14600 | } |
698dcdb6 VZ |
14601 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
14602 | int x[] = {25, 17}; | |
14603 | const int *foo = &x[0]; | |
14604 | ++foo; | |
703e0a69 | 14605 | } |
698dcdb6 VZ |
14606 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
14607 | typedef const int *iptr; | |
14608 | iptr p = 0; | |
14609 | ++p; | |
6232543b | 14610 | } |
698dcdb6 VZ |
14611 | { /* AIX XL C 1.02.0.0 rejects this saying |
14612 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
14613 | struct s { int j; const int *ap[3]; }; | |
14614 | struct s *b; b->j = 5; | |
1e487827 | 14615 | } |
698dcdb6 VZ |
14616 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
14617 | const int foo = 10; | |
14618 | } | |
4f14bcd8 GD |
14619 | |
14620 | ; return 0; } | |
698dcdb6 | 14621 | EOF |
3010d50a | 14622 | if { (eval echo configure:14623: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
14623 | rm -rf conftest* |
14624 | ac_cv_c_const=yes | |
698dcdb6 VZ |
14625 | else |
14626 | echo "configure: failed program was:" >&5 | |
14627 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
14628 | rm -rf conftest* |
14629 | ac_cv_c_const=no | |
703e0a69 | 14630 | fi |
4f14bcd8 | 14631 | rm -f conftest* |
698dcdb6 VZ |
14632 | fi |
14633 | ||
4f14bcd8 GD |
14634 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
14635 | if test $ac_cv_c_const = no; then | |
14636 | cat >> confdefs.h <<\EOF | |
14637 | #define const | |
698dcdb6 VZ |
14638 | EOF |
14639 | ||
4f14bcd8 | 14640 | fi |
698dcdb6 | 14641 | |
4f14bcd8 | 14642 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
3010d50a | 14643 | echo "configure:14644: checking for inline" >&5 |
4f14bcd8 | 14644 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
698dcdb6 | 14645 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 14646 | else |
4f14bcd8 GD |
14647 | ac_cv_c_inline=no |
14648 | for ac_kw in inline __inline__ __inline; do | |
698dcdb6 | 14649 | cat > conftest.$ac_ext <<EOF |
3010d50a | 14650 | #line 14651 "configure" |
10f2d63a | 14651 | #include "confdefs.h" |
4f14bcd8 GD |
14652 | |
14653 | int main() { | |
d558c907 | 14654 | } $ac_kw foo() { |
4f14bcd8 | 14655 | ; return 0; } |
698dcdb6 | 14656 | EOF |
3010d50a | 14657 | if { (eval echo configure:14658: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
14658 | rm -rf conftest* |
14659 | ac_cv_c_inline=$ac_kw; break | |
10f2d63a | 14660 | else |
698dcdb6 VZ |
14661 | echo "configure: failed program was:" >&5 |
14662 | cat conftest.$ac_ext >&5 | |
10f2d63a | 14663 | fi |
4f14bcd8 GD |
14664 | rm -f conftest* |
14665 | done | |
698dcdb6 | 14666 | |
10f2d63a | 14667 | fi |
4f14bcd8 GD |
14668 | |
14669 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
14670 | case "$ac_cv_c_inline" in | |
14671 | inline | yes) ;; | |
14672 | no) cat >> confdefs.h <<\EOF | |
14673 | #define inline | |
14674 | EOF | |
14675 | ;; | |
14676 | *) cat >> confdefs.h <<EOF | |
14677 | #define inline $ac_cv_c_inline | |
698dcdb6 | 14678 | EOF |
4f14bcd8 GD |
14679 | ;; |
14680 | esac | |
698dcdb6 VZ |
14681 | |
14682 | ||
4f14bcd8 | 14683 | echo $ac_n "checking size of char""... $ac_c" 1>&6 |
3010d50a | 14684 | echo "configure:14685: checking size of char" >&5 |
4f14bcd8 | 14685 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
698dcdb6 VZ |
14686 | echo $ac_n "(cached) $ac_c" 1>&6 |
14687 | else | |
14688 | if test "$cross_compiling" = yes; then | |
4f14bcd8 | 14689 | ac_cv_sizeof_char=1 |
698dcdb6 VZ |
14690 | else |
14691 | cat > conftest.$ac_ext <<EOF | |
3010d50a | 14692 | #line 14693 "configure" |
698dcdb6 VZ |
14693 | #include "confdefs.h" |
14694 | #include <stdio.h> | |
9337b578 | 14695 | main() |
698dcdb6 VZ |
14696 | { |
14697 | FILE *f=fopen("conftestval", "w"); | |
9337b578 | 14698 | if (!f) exit(1); |
4f14bcd8 | 14699 | fprintf(f, "%d\n", sizeof(char)); |
9337b578 | 14700 | exit(0); |
698dcdb6 VZ |
14701 | } |
14702 | EOF | |
3010d50a | 14703 | if { (eval echo configure:14704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 14704 | then |
4f14bcd8 | 14705 | ac_cv_sizeof_char=`cat conftestval` |
6232543b | 14706 | else |
698dcdb6 VZ |
14707 | echo "configure: failed program was:" >&5 |
14708 | cat conftest.$ac_ext >&5 | |
14709 | rm -fr conftest* | |
4f14bcd8 | 14710 | ac_cv_sizeof_char=0 |
6232543b | 14711 | fi |
698dcdb6 VZ |
14712 | rm -fr conftest* |
14713 | fi | |
14714 | ||
703e0a69 | 14715 | fi |
4f14bcd8 | 14716 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
698dcdb6 | 14717 | cat >> confdefs.h <<EOF |
4f14bcd8 | 14718 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
10f2d63a VZ |
14719 | EOF |
14720 | ||
1e487827 | 14721 | |
4f14bcd8 | 14722 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
3010d50a | 14723 | echo "configure:14724: checking size of short" >&5 |
4f14bcd8 | 14724 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
698dcdb6 VZ |
14725 | echo $ac_n "(cached) $ac_c" 1>&6 |
14726 | else | |
4f14bcd8 GD |
14727 | if test "$cross_compiling" = yes; then |
14728 | ac_cv_sizeof_short=2 | |
b93d0d08 | 14729 | else |
698dcdb6 | 14730 | cat > conftest.$ac_ext <<EOF |
3010d50a | 14731 | #line 14732 "configure" |
b93d0d08 | 14732 | #include "confdefs.h" |
4f14bcd8 | 14733 | #include <stdio.h> |
9337b578 | 14734 | main() |
4f14bcd8 GD |
14735 | { |
14736 | FILE *f=fopen("conftestval", "w"); | |
9337b578 | 14737 | if (!f) exit(1); |
4f14bcd8 | 14738 | fprintf(f, "%d\n", sizeof(short)); |
9337b578 | 14739 | exit(0); |
4f14bcd8 | 14740 | } |
698dcdb6 | 14741 | EOF |
3010d50a | 14742 | if { (eval echo configure:14743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 14743 | then |
4f14bcd8 | 14744 | ac_cv_sizeof_short=`cat conftestval` |
b93d0d08 | 14745 | else |
698dcdb6 VZ |
14746 | echo "configure: failed program was:" >&5 |
14747 | cat conftest.$ac_ext >&5 | |
14748 | rm -fr conftest* | |
4f14bcd8 | 14749 | ac_cv_sizeof_short=0 |
b93d0d08 | 14750 | fi |
698dcdb6 | 14751 | rm -fr conftest* |
b93d0d08 VS |
14752 | fi |
14753 | ||
b93d0d08 | 14754 | fi |
4f14bcd8 | 14755 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
698dcdb6 | 14756 | cat >> confdefs.h <<EOF |
4f14bcd8 | 14757 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
b93d0d08 VS |
14758 | EOF |
14759 | ||
698dcdb6 | 14760 | |
17c89ef3 | 14761 | echo $ac_n "checking size of void *""... $ac_c" 1>&6 |
3010d50a | 14762 | echo "configure:14763: checking size of void *" >&5 |
17c89ef3 | 14763 | if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then |
698dcdb6 | 14764 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 14765 | else |
4f14bcd8 | 14766 | if test "$cross_compiling" = yes; then |
17c89ef3 | 14767 | ac_cv_sizeof_void_p=4 |
3a922bb4 | 14768 | else |
3a922bb4 | 14769 | cat > conftest.$ac_ext <<EOF |
3010d50a | 14770 | #line 14771 "configure" |
3a922bb4 | 14771 | #include "confdefs.h" |
4f14bcd8 | 14772 | #include <stdio.h> |
9337b578 | 14773 | main() |
4f14bcd8 GD |
14774 | { |
14775 | FILE *f=fopen("conftestval", "w"); | |
9337b578 | 14776 | if (!f) exit(1); |
17c89ef3 | 14777 | fprintf(f, "%d\n", sizeof(void *)); |
9337b578 | 14778 | exit(0); |
4f14bcd8 GD |
14779 | } |
14780 | EOF | |
3010d50a | 14781 | if { (eval echo configure:14782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 | 14782 | then |
17c89ef3 | 14783 | ac_cv_sizeof_void_p=`cat conftestval` |
4f14bcd8 GD |
14784 | else |
14785 | echo "configure: failed program was:" >&5 | |
14786 | cat conftest.$ac_ext >&5 | |
14787 | rm -fr conftest* | |
17c89ef3 | 14788 | ac_cv_sizeof_void_p=0 |
3a922bb4 | 14789 | fi |
4f14bcd8 | 14790 | rm -fr conftest* |
3a922bb4 | 14791 | fi |
698dcdb6 | 14792 | |
4f14bcd8 | 14793 | fi |
17c89ef3 | 14794 | echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6 |
4f14bcd8 | 14795 | cat >> confdefs.h <<EOF |
17c89ef3 | 14796 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
10f2d63a VZ |
14797 | EOF |
14798 | ||
703e0a69 | 14799 | |
4f14bcd8 | 14800 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
3010d50a | 14801 | echo "configure:14802: checking size of int" >&5 |
4f14bcd8 | 14802 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
698dcdb6 | 14803 | echo $ac_n "(cached) $ac_c" 1>&6 |
4f14bcd8 GD |
14804 | else |
14805 | if test "$cross_compiling" = yes; then | |
14806 | ac_cv_sizeof_int=4 | |
698dcdb6 VZ |
14807 | else |
14808 | cat > conftest.$ac_ext <<EOF | |
3010d50a | 14809 | #line 14810 "configure" |
10f2d63a | 14810 | #include "confdefs.h" |
4f14bcd8 | 14811 | #include <stdio.h> |
9337b578 | 14812 | main() |
4f14bcd8 GD |
14813 | { |
14814 | FILE *f=fopen("conftestval", "w"); | |
9337b578 | 14815 | if (!f) exit(1); |
4f14bcd8 | 14816 | fprintf(f, "%d\n", sizeof(int)); |
9337b578 | 14817 | exit(0); |
4f14bcd8 | 14818 | } |
698dcdb6 | 14819 | EOF |
3010d50a | 14820 | if { (eval echo configure:14821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
14821 | then |
14822 | ac_cv_sizeof_int=`cat conftestval` | |
10f2d63a | 14823 | else |
698dcdb6 | 14824 | echo "configure: failed program was:" >&5 |
10f2d63a | 14825 | cat conftest.$ac_ext >&5 |
4f14bcd8 GD |
14826 | rm -fr conftest* |
14827 | ac_cv_sizeof_int=0 | |
10f2d63a | 14828 | fi |
4f14bcd8 | 14829 | rm -fr conftest* |
10f2d63a | 14830 | fi |
10f2d63a | 14831 | |
4f14bcd8 GD |
14832 | fi |
14833 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | |
14834 | cat >> confdefs.h <<EOF | |
14835 | #define SIZEOF_INT $ac_cv_sizeof_int | |
10f2d63a VZ |
14836 | EOF |
14837 | ||
698dcdb6 | 14838 | |
4f14bcd8 | 14839 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
3010d50a | 14840 | echo "configure:14841: checking size of long" >&5 |
4f14bcd8 | 14841 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
698dcdb6 VZ |
14842 | echo $ac_n "(cached) $ac_c" 1>&6 |
14843 | else | |
4f14bcd8 GD |
14844 | if test "$cross_compiling" = yes; then |
14845 | ac_cv_sizeof_long=4 | |
14846 | else | |
14847 | cat > conftest.$ac_ext <<EOF | |
3010d50a | 14848 | #line 14849 "configure" |
10f2d63a | 14849 | #include "confdefs.h" |
4f14bcd8 | 14850 | #include <stdio.h> |
9337b578 | 14851 | main() |
4f14bcd8 GD |
14852 | { |
14853 | FILE *f=fopen("conftestval", "w"); | |
9337b578 | 14854 | if (!f) exit(1); |
4f14bcd8 | 14855 | fprintf(f, "%d\n", sizeof(long)); |
9337b578 | 14856 | exit(0); |
4f14bcd8 | 14857 | } |
698dcdb6 | 14858 | EOF |
3010d50a | 14859 | if { (eval echo configure:14860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
14860 | then |
14861 | ac_cv_sizeof_long=`cat conftestval` | |
10f2d63a | 14862 | else |
698dcdb6 VZ |
14863 | echo "configure: failed program was:" >&5 |
14864 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
14865 | rm -fr conftest* |
14866 | ac_cv_sizeof_long=0 | |
10f2d63a | 14867 | fi |
4f14bcd8 | 14868 | rm -fr conftest* |
10f2d63a | 14869 | fi |
698dcdb6 | 14870 | |
4f14bcd8 GD |
14871 | fi |
14872 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 | |
14873 | cat >> confdefs.h <<EOF | |
14874 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
10f2d63a VZ |
14875 | EOF |
14876 | ||
698dcdb6 | 14877 | |
9d353d4a RR |
14878 | |
14879 | case "${host}" in | |
14880 | arm-*-linux* ) | |
14881 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
3010d50a | 14882 | echo "configure:14883: checking size of long long" >&5 |
9d353d4a RR |
14883 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
14884 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14885 | else | |
14886 | if test "$cross_compiling" = yes; then | |
14887 | ac_cv_sizeof_long_long=8 | |
14888 | else | |
14889 | cat > conftest.$ac_ext <<EOF | |
3010d50a | 14890 | #line 14891 "configure" |
9d353d4a RR |
14891 | #include "confdefs.h" |
14892 | #include <stdio.h> | |
14893 | main() | |
14894 | { | |
14895 | FILE *f=fopen("conftestval", "w"); | |
14896 | if (!f) exit(1); | |
14897 | fprintf(f, "%d\n", sizeof(long long)); | |
14898 | exit(0); | |
14899 | } | |
14900 | EOF | |
3010d50a | 14901 | if { (eval echo configure:14902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
9d353d4a RR |
14902 | then |
14903 | ac_cv_sizeof_long_long=`cat conftestval` | |
14904 | else | |
14905 | echo "configure: failed program was:" >&5 | |
14906 | cat conftest.$ac_ext >&5 | |
14907 | rm -fr conftest* | |
14908 | ac_cv_sizeof_long_long=0 | |
14909 | fi | |
14910 | rm -fr conftest* | |
14911 | fi | |
14912 | ||
14913 | fi | |
14914 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 | |
14915 | cat >> confdefs.h <<EOF | |
14916 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
14917 | EOF | |
14918 | ||
14919 | ||
14920 | ;; | |
14921 | * ) | |
14922 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
3010d50a | 14923 | echo "configure:14924: checking size of long long" >&5 |
4f14bcd8 | 14924 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
698dcdb6 | 14925 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 14926 | else |
4f14bcd8 GD |
14927 | if test "$cross_compiling" = yes; then |
14928 | ac_cv_sizeof_long_long=0 | |
14929 | else | |
14930 | cat > conftest.$ac_ext <<EOF | |
3010d50a | 14931 | #line 14932 "configure" |
10f2d63a | 14932 | #include "confdefs.h" |
4f14bcd8 | 14933 | #include <stdio.h> |
9337b578 | 14934 | main() |
4f14bcd8 GD |
14935 | { |
14936 | FILE *f=fopen("conftestval", "w"); | |
9337b578 | 14937 | if (!f) exit(1); |
4f14bcd8 | 14938 | fprintf(f, "%d\n", sizeof(long long)); |
9337b578 | 14939 | exit(0); |
4f14bcd8 | 14940 | } |
698dcdb6 | 14941 | EOF |
3010d50a | 14942 | if { (eval echo configure:14943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
14943 | then |
14944 | ac_cv_sizeof_long_long=`cat conftestval` | |
698dcdb6 VZ |
14945 | else |
14946 | echo "configure: failed program was:" >&5 | |
14947 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
14948 | rm -fr conftest* |
14949 | ac_cv_sizeof_long_long=0 | |
14950 | fi | |
14951 | rm -fr conftest* | |
698dcdb6 | 14952 | fi |
698dcdb6 VZ |
14953 | |
14954 | fi | |
4f14bcd8 GD |
14955 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
14956 | cat >> confdefs.h <<EOF | |
14957 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
10f2d63a VZ |
14958 | EOF |
14959 | ||
10f2d63a | 14960 | |
9d353d4a RR |
14961 | esac |
14962 | ||
4f14bcd8 GD |
14963 | |
14964 | echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 | |
3010d50a | 14965 | echo "configure:14966: checking size of wchar_t" >&5 |
4f14bcd8 | 14966 | if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then |
698dcdb6 | 14967 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 14968 | else |
4f14bcd8 GD |
14969 | |
14970 | if test "$cross_compiling" = yes; then | |
14971 | wx_cv_sizeof_wchar_t=4 | |
14972 | ||
14973 | else | |
14974 | cat > conftest.$ac_ext <<EOF | |
3010d50a | 14975 | #line 14976 "configure" |
10f2d63a | 14976 | #include "confdefs.h" |
698dcdb6 | 14977 | |
4f14bcd8 | 14978 | #ifdef HAVE_WCHAR_H |
0fbb762e MB |
14979 | # ifdef __CYGWIN__ |
14980 | # include <stddef.h> | |
14981 | # endif | |
4f14bcd8 GD |
14982 | # include <wchar.h> |
14983 | #endif | |
14984 | #ifdef HAVE_STDLIB_H | |
14985 | # include <stdlib.h> | |
14986 | #endif | |
14987 | #include <stdio.h> | |
14988 | int main() | |
14989 | { | |
14990 | FILE *f=fopen("conftestval", "w"); | |
14991 | if (!f) exit(1); | |
14992 | fprintf(f, "%i", sizeof(wchar_t)); | |
14993 | exit(0); | |
14994 | } | |
14995 | ||
698dcdb6 | 14996 | EOF |
3010d50a | 14997 | if { (eval echo configure:14998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
14998 | then |
14999 | wx_cv_sizeof_wchar_t=`cat conftestval` | |
698dcdb6 VZ |
15000 | else |
15001 | echo "configure: failed program was:" >&5 | |
15002 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
15003 | rm -fr conftest* |
15004 | wx_cv_sizeof_wchar_t=0 | |
698dcdb6 | 15005 | fi |
4f14bcd8 GD |
15006 | rm -fr conftest* |
15007 | fi | |
15008 | ||
698dcdb6 VZ |
15009 | |
15010 | fi | |
4f14bcd8 GD |
15011 | |
15012 | echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6 | |
15013 | ||
15014 | cat >> confdefs.h <<EOF | |
15015 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t | |
10f2d63a VZ |
15016 | EOF |
15017 | ||
18dbb1f6 | 15018 | |
4f14bcd8 | 15019 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
3010d50a | 15020 | echo "configure:15021: checking whether byte ordering is bigendian" >&5 |
4f14bcd8 | 15021 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
18dbb1f6 VZ |
15022 | echo $ac_n "(cached) $ac_c" 1>&6 |
15023 | else | |
4f14bcd8 GD |
15024 | ac_cv_c_bigendian=unknown |
15025 | # See if sys/param.h defines the BYTE_ORDER macro. | |
18dbb1f6 | 15026 | cat > conftest.$ac_ext <<EOF |
3010d50a | 15027 | #line 15028 "configure" |
18dbb1f6 | 15028 | #include "confdefs.h" |
4f14bcd8 GD |
15029 | #include <sys/types.h> |
15030 | #include <sys/param.h> | |
15031 | int main() { | |
18dbb1f6 | 15032 | |
4f14bcd8 GD |
15033 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
15034 | bogus endian macros | |
15035 | #endif | |
15036 | ; return 0; } | |
15037 | EOF | |
3010d50a | 15038 | if { (eval echo configure:15039: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
15039 | rm -rf conftest* |
15040 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
15041 | cat > conftest.$ac_ext <<EOF | |
3010d50a | 15042 | #line 15043 "configure" |
4f14bcd8 GD |
15043 | #include "confdefs.h" |
15044 | #include <sys/types.h> | |
15045 | #include <sys/param.h> | |
18dbb1f6 | 15046 | int main() { |
4f14bcd8 GD |
15047 | |
15048 | #if BYTE_ORDER != BIG_ENDIAN | |
15049 | not big endian | |
15050 | #endif | |
18dbb1f6 VZ |
15051 | ; return 0; } |
15052 | EOF | |
3010d50a | 15053 | if { (eval echo configure:15054: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
18dbb1f6 | 15054 | rm -rf conftest* |
4f14bcd8 | 15055 | ac_cv_c_bigendian=yes |
18dbb1f6 VZ |
15056 | else |
15057 | echo "configure: failed program was:" >&5 | |
15058 | cat conftest.$ac_ext >&5 | |
15059 | rm -rf conftest* | |
4f14bcd8 | 15060 | ac_cv_c_bigendian=no |
18dbb1f6 VZ |
15061 | fi |
15062 | rm -f conftest* | |
698dcdb6 | 15063 | else |
4f14bcd8 GD |
15064 | echo "configure: failed program was:" >&5 |
15065 | cat conftest.$ac_ext >&5 | |
1e487827 | 15066 | fi |
4f14bcd8 GD |
15067 | rm -f conftest* |
15068 | if test $ac_cv_c_bigendian = unknown; then | |
15069 | if test "$cross_compiling" = yes; then | |
15070 | ac_cv_c_bigendian=unknown | |
b3e8d00a VZ |
15071 | else |
15072 | cat > conftest.$ac_ext <<EOF | |
3010d50a | 15073 | #line 15074 "configure" |
b3e8d00a | 15074 | #include "confdefs.h" |
4f14bcd8 GD |
15075 | main () { |
15076 | /* Are we little or big endian? From Harbison&Steele. */ | |
15077 | union | |
15078 | { | |
15079 | long l; | |
15080 | char c[sizeof (long)]; | |
15081 | } u; | |
15082 | u.l = 1; | |
15083 | exit (u.c[sizeof (long) - 1] == 1); | |
15084 | } | |
b3e8d00a | 15085 | EOF |
3010d50a | 15086 | if { (eval echo configure:15087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
15087 | then |
15088 | ac_cv_c_bigendian=no | |
b3e8d00a VZ |
15089 | else |
15090 | echo "configure: failed program was:" >&5 | |
15091 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
15092 | rm -fr conftest* |
15093 | ac_cv_c_bigendian=yes | |
b3e8d00a | 15094 | fi |
4f14bcd8 | 15095 | rm -fr conftest* |
b3e8d00a VZ |
15096 | fi |
15097 | ||
4f14bcd8 GD |
15098 | fi |
15099 | fi | |
15100 | ||
15101 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
15102 | if test $ac_cv_c_bigendian = unknown; then | |
15103 | 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 | |
15104 | fi | |
15105 | if test $ac_cv_c_bigendian = yes; then | |
15106 | cat >> confdefs.h <<\EOF | |
15107 | #define WORDS_BIGENDIAN 1 | |
b3e8d00a | 15108 | EOF |
4f14bcd8 | 15109 | |
b3e8d00a | 15110 | fi |
b3e8d00a VZ |
15111 | |
15112 | ||
4f14bcd8 | 15113 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 |
3010d50a | 15114 | echo "configure:15115: checking how to run the C++ preprocessor" >&5 |
4f14bcd8 GD |
15115 | if test -z "$CXXCPP"; then |
15116 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then | |
698dcdb6 VZ |
15117 | echo $ac_n "(cached) $ac_c" 1>&6 |
15118 | else | |
4f14bcd8 GD |
15119 | ac_ext=C |
15120 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15121 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15122 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15123 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15124 | cross_compiling=$ac_cv_prog_cxx_cross | |
15125 | CXXCPP="${CXX-g++} -E" | |
698dcdb6 | 15126 | cat > conftest.$ac_ext <<EOF |
3010d50a | 15127 | #line 15128 "configure" |
10f2d63a | 15128 | #include "confdefs.h" |
4f14bcd8 | 15129 | #include <stdlib.h> |
698dcdb6 | 15130 | EOF |
4f14bcd8 | 15131 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
3010d50a | 15132 | { (eval echo configure:15133: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
15133 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15134 | if test -z "$ac_err"; then | |
15135 | : | |
698dcdb6 | 15136 | else |
4f14bcd8 | 15137 | echo "$ac_err" >&5 |
698dcdb6 VZ |
15138 | echo "configure: failed program was:" >&5 |
15139 | cat conftest.$ac_ext >&5 | |
15140 | rm -rf conftest* | |
4f14bcd8 | 15141 | CXXCPP=/lib/cpp |
698dcdb6 VZ |
15142 | fi |
15143 | rm -f conftest* | |
4f14bcd8 GD |
15144 | ac_cv_prog_CXXCPP="$CXXCPP" |
15145 | ac_ext=C | |
15146 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15147 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15148 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15149 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15150 | cross_compiling=$ac_cv_prog_cxx_cross | |
15151 | fi | |
698dcdb6 | 15152 | fi |
4f14bcd8 GD |
15153 | CXXCPP="$ac_cv_prog_CXXCPP" |
15154 | echo "$ac_t""$CXXCPP" 1>&6 | |
698dcdb6 | 15155 | |
4f14bcd8 GD |
15156 | |
15157 | if test "$cross_compiling" = "yes"; then | |
15158 | cat >> confdefs.h <<\EOF | |
15159 | #define wxUSE_IOSTREAMH 1 | |
698dcdb6 VZ |
15160 | EOF |
15161 | ||
4f14bcd8 GD |
15162 | else |
15163 | ||
15164 | ac_ext=C | |
15165 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15166 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15167 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15168 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15169 | cross_compiling=$ac_cv_prog_cxx_cross | |
698dcdb6 | 15170 | |
4f14bcd8 GD |
15171 | |
15172 | for ac_hdr in iostream | |
15173 | do | |
15174 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
15175 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3010d50a | 15176 | echo "configure:15177: checking for $ac_hdr" >&5 |
4f14bcd8 | 15177 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
698dcdb6 VZ |
15178 | echo $ac_n "(cached) $ac_c" 1>&6 |
15179 | else | |
15180 | cat > conftest.$ac_ext <<EOF | |
3010d50a | 15181 | #line 15182 "configure" |
10f2d63a | 15182 | #include "confdefs.h" |
4f14bcd8 | 15183 | #include <$ac_hdr> |
698dcdb6 | 15184 | EOF |
4f14bcd8 | 15185 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
3010d50a | 15186 | { (eval echo configure:15187: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
15187 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15188 | if test -z "$ac_err"; then | |
698dcdb6 | 15189 | rm -rf conftest* |
4f14bcd8 | 15190 | eval "ac_cv_header_$ac_safe=yes" |
698dcdb6 | 15191 | else |
4f14bcd8 | 15192 | echo "$ac_err" >&5 |
698dcdb6 VZ |
15193 | echo "configure: failed program was:" >&5 |
15194 | cat conftest.$ac_ext >&5 | |
15195 | rm -rf conftest* | |
4f14bcd8 | 15196 | eval "ac_cv_header_$ac_safe=no" |
698dcdb6 VZ |
15197 | fi |
15198 | rm -f conftest* | |
15199 | fi | |
4f14bcd8 | 15200 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
698dcdb6 | 15201 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
15202 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
15203 | cat >> confdefs.h <<EOF | |
15204 | #define $ac_tr_hdr 1 | |
10f2d63a | 15205 | EOF |
4f14bcd8 | 15206 | |
698dcdb6 VZ |
15207 | else |
15208 | echo "$ac_t""no" 1>&6 | |
10f2d63a | 15209 | fi |
4f14bcd8 | 15210 | done |
10f2d63a | 15211 | |
10f2d63a | 15212 | |
4f14bcd8 GD |
15213 | if test "$ac_cv_header_iostream" = "yes" ; then |
15214 | : | |
15215 | else | |
15216 | cat >> confdefs.h <<\EOF | |
15217 | #define wxUSE_IOSTREAMH 1 | |
15218 | EOF | |
15219 | ||
15220 | fi | |
1e487827 | 15221 | |
4f14bcd8 GD |
15222 | ac_ext=c |
15223 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15224 | ac_cpp='$CPP $CPPFLAGS' | |
15225 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15226 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15227 | cross_compiling=$ac_cv_prog_cc_cross | |
698dcdb6 | 15228 | |
4f14bcd8 | 15229 | fi |
698dcdb6 VZ |
15230 | |
15231 | ||
15232 | ||
4f14bcd8 | 15233 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 |
3010d50a | 15234 | echo "configure:15235: checking if C++ compiler supports bool" >&5 |
4f14bcd8 | 15235 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then |
698dcdb6 VZ |
15236 | echo $ac_n "(cached) $ac_c" 1>&6 |
15237 | else | |
15238 | ||
4f14bcd8 GD |
15239 | |
15240 | ac_ext=C | |
15241 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15242 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15243 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15244 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15245 | cross_compiling=$ac_cv_prog_cxx_cross | |
f6bcfd97 | 15246 | |
10f2d63a | 15247 | |
4f14bcd8 | 15248 | cat > conftest.$ac_ext <<EOF |
3010d50a | 15249 | #line 15250 "configure" |
4f14bcd8 | 15250 | #include "confdefs.h" |
10f2d63a | 15251 | |
4f14bcd8 GD |
15252 | |
15253 | int main() { | |
f6bcfd97 | 15254 | |
4f14bcd8 | 15255 | bool b = true; |
f6bcfd97 | 15256 | |
4f14bcd8 GD |
15257 | return 0; |
15258 | ||
698dcdb6 VZ |
15259 | ; return 0; } |
15260 | EOF | |
3010d50a | 15261 | if { (eval echo configure:15262: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
15262 | rm -rf conftest* |
15263 | ||
4f14bcd8 GD |
15264 | wx_cv_cpp_bool=yes |
15265 | ||
10f2d63a | 15266 | else |
698dcdb6 VZ |
15267 | echo "configure: failed program was:" >&5 |
15268 | cat conftest.$ac_ext >&5 | |
15269 | rm -rf conftest* | |
15270 | ||
4f14bcd8 GD |
15271 | wx_cv_cpp_bool=no |
15272 | ||
15273 | ||
15274 | fi | |
15275 | rm -f conftest* | |
c521c494 | 15276 | |
4f14bcd8 GD |
15277 | ac_ext=c |
15278 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15279 | ac_cpp='$CPP $CPPFLAGS' | |
15280 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15281 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15282 | cross_compiling=$ac_cv_prog_cc_cross | |
c521c494 | 15283 | |
4f14bcd8 GD |
15284 | |
15285 | fi | |
c521c494 | 15286 | |
4f14bcd8 | 15287 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 |
c521c494 | 15288 | |
4f14bcd8 GD |
15289 | if test "$wx_cv_cpp_bool" = "yes"; then |
15290 | cat >> confdefs.h <<\EOF | |
15291 | #define HAVE_BOOL 1 | |
15292 | EOF | |
c521c494 | 15293 | |
4f14bcd8 GD |
15294 | fi |
15295 | ||
15296 | ||
15297 | ||
15298 | echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6 | |
3010d50a | 15299 | echo "configure:15300: checking for wcslen in -lc" >&5 |
4f14bcd8 GD |
15300 | ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'` |
15301 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15302 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15303 | else | |
15304 | ac_save_LIBS="$LIBS" | |
15305 | LIBS="-lc $LIBS" | |
15306 | cat > conftest.$ac_ext <<EOF | |
3010d50a | 15307 | #line 15308 "configure" |
4f14bcd8 GD |
15308 | #include "confdefs.h" |
15309 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15310 | /* We use char because int might match the return type of a gcc2 | |
15311 | builtin and then its argument prototype would still apply. */ | |
15312 | char wcslen(); | |
15313 | ||
15314 | int main() { | |
15315 | wcslen() | |
698dcdb6 VZ |
15316 | ; return 0; } |
15317 | EOF | |
3010d50a | 15318 | if { (eval echo configure:15319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15319 | rm -rf conftest* |
4f14bcd8 | 15320 | eval "ac_cv_lib_$ac_lib_var=yes" |
c521c494 | 15321 | else |
698dcdb6 VZ |
15322 | echo "configure: failed program was:" >&5 |
15323 | cat conftest.$ac_ext >&5 | |
15324 | rm -rf conftest* | |
4f14bcd8 | 15325 | eval "ac_cv_lib_$ac_lib_var=no" |
6232543b | 15326 | fi |
698dcdb6 | 15327 | rm -f conftest* |
4f14bcd8 | 15328 | LIBS="$ac_save_LIBS" |
703e0a69 | 15329 | |
1e487827 | 15330 | fi |
4f14bcd8 GD |
15331 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
15332 | echo "$ac_t""yes" 1>&6 | |
15333 | ||
15334 | cat >> confdefs.h <<\EOF | |
15335 | #define HAVE_WCSLEN 1 | |
9d8deca0 VZ |
15336 | EOF |
15337 | ||
3d63bc3a | 15338 | WCHAR_LINK= |
4f14bcd8 | 15339 | |
9d8deca0 | 15340 | else |
4f14bcd8 | 15341 | echo "$ac_t""no" 1>&6 |
9d8deca0 | 15342 | |
4f14bcd8 | 15343 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 |
3010d50a | 15344 | echo "configure:15345: checking for wcslen in -lw" >&5 |
4f14bcd8 GD |
15345 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` |
15346 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 | 15347 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 15348 | else |
4f14bcd8 GD |
15349 | ac_save_LIBS="$LIBS" |
15350 | LIBS="-lw $LIBS" | |
15351 | cat > conftest.$ac_ext <<EOF | |
3010d50a | 15352 | #line 15353 "configure" |
10f2d63a | 15353 | #include "confdefs.h" |
4f14bcd8 GD |
15354 | /* Override any gcc2 internal prototype to avoid an error. */ |
15355 | /* We use char because int might match the return type of a gcc2 | |
15356 | builtin and then its argument prototype would still apply. */ | |
15357 | char wcslen(); | |
10f2d63a | 15358 | |
698dcdb6 | 15359 | int main() { |
4f14bcd8 | 15360 | wcslen() |
698dcdb6 VZ |
15361 | ; return 0; } |
15362 | EOF | |
3010d50a | 15363 | if { (eval echo configure:15364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15364 | rm -rf conftest* |
4f14bcd8 | 15365 | eval "ac_cv_lib_$ac_lib_var=yes" |
10f2d63a | 15366 | else |
698dcdb6 VZ |
15367 | echo "configure: failed program was:" >&5 |
15368 | cat conftest.$ac_ext >&5 | |
15369 | rm -rf conftest* | |
4f14bcd8 | 15370 | eval "ac_cv_lib_$ac_lib_var=no" |
6232543b | 15371 | fi |
698dcdb6 | 15372 | rm -f conftest* |
4f14bcd8 | 15373 | LIBS="$ac_save_LIBS" |
703e0a69 | 15374 | |
1e487827 | 15375 | fi |
4f14bcd8 GD |
15376 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
15377 | echo "$ac_t""yes" 1>&6 | |
15378 | ||
15379 | cat >> confdefs.h <<\EOF | |
15380 | #define HAVE_WCSLEN 1 | |
9d8deca0 VZ |
15381 | EOF |
15382 | ||
3d63bc3a | 15383 | WCHAR_LINK=" -lw" |
4f14bcd8 GD |
15384 | |
15385 | else | |
15386 | echo "$ac_t""no" 1>&6 | |
698dcdb6 | 15387 | |
4f14bcd8 | 15388 | echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6 |
3010d50a | 15389 | echo "configure:15390: checking for wcslen in -lmsvcrt" >&5 |
4f14bcd8 GD |
15390 | ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'` |
15391 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 VZ |
15392 | echo $ac_n "(cached) $ac_c" 1>&6 |
15393 | else | |
4f14bcd8 GD |
15394 | ac_save_LIBS="$LIBS" |
15395 | LIBS="-lmsvcrt $LIBS" | |
15396 | cat > conftest.$ac_ext <<EOF | |
3010d50a | 15397 | #line 15398 "configure" |
95c8801c | 15398 | #include "confdefs.h" |
4f14bcd8 GD |
15399 | /* Override any gcc2 internal prototype to avoid an error. */ |
15400 | /* We use char because int might match the return type of a gcc2 | |
15401 | builtin and then its argument prototype would still apply. */ | |
15402 | char wcslen(); | |
95c8801c | 15403 | |
4f14bcd8 GD |
15404 | int main() { |
15405 | wcslen() | |
698dcdb6 VZ |
15406 | ; return 0; } |
15407 | EOF | |
3010d50a | 15408 | if { (eval echo configure:15409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15409 | rm -rf conftest* |
4f14bcd8 | 15410 | eval "ac_cv_lib_$ac_lib_var=yes" |
95c8801c | 15411 | else |
698dcdb6 VZ |
15412 | echo "configure: failed program was:" >&5 |
15413 | cat conftest.$ac_ext >&5 | |
15414 | rm -rf conftest* | |
4f14bcd8 | 15415 | eval "ac_cv_lib_$ac_lib_var=no" |
95c8801c | 15416 | fi |
698dcdb6 | 15417 | rm -f conftest* |
4f14bcd8 | 15418 | LIBS="$ac_save_LIBS" |
95c8801c VS |
15419 | |
15420 | fi | |
4f14bcd8 GD |
15421 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
15422 | echo "$ac_t""yes" 1>&6 | |
15423 | ||
15424 | cat >> confdefs.h <<\EOF | |
15425 | #define HAVE_WCSLEN 1 | |
15426 | EOF | |
698dcdb6 | 15427 | |
3d63bc3a | 15428 | WCHAR_LINK= |
4f14bcd8 GD |
15429 | |
15430 | else | |
15431 | echo "$ac_t""no" 1>&6 | |
15432 | fi | |
10f2d63a | 15433 | |
4f14bcd8 GD |
15434 | |
15435 | fi | |
95c8801c | 15436 | |
4f14bcd8 | 15437 | |
95c8801c | 15438 | fi |
10f2d63a | 15439 | |
1e487827 | 15440 | |
4f14bcd8 | 15441 | for ac_func in wcsrtombs |
eb4efbdc | 15442 | do |
698dcdb6 | 15443 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3010d50a | 15444 | echo "configure:15445: checking for $ac_func" >&5 |
698dcdb6 VZ |
15445 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15446 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15447 | else | |
15448 | cat > conftest.$ac_ext <<EOF | |
3010d50a | 15449 | #line 15450 "configure" |
eb4efbdc VZ |
15450 | #include "confdefs.h" |
15451 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 15452 | which can conflict with char $ac_func(); below. */ |
eb4efbdc VZ |
15453 | #include <assert.h> |
15454 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15455 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15456 | builtin and then its argument prototype would still apply. */ |
15457 | char $ac_func(); | |
15458 | ||
15459 | int main() { | |
eb4efbdc VZ |
15460 | |
15461 | /* The GNU C library defines this for functions which it implements | |
15462 | to always fail with ENOSYS. Some functions are actually named | |
15463 | something starting with __ and the normal name is an alias. */ | |
15464 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15465 | choke me | |
15466 | #else | |
698dcdb6 | 15467 | $ac_func(); |
eb4efbdc VZ |
15468 | #endif |
15469 | ||
698dcdb6 | 15470 | ; return 0; } |
eb4efbdc | 15471 | EOF |
3010d50a | 15472 | if { (eval echo configure:15473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15473 | rm -rf conftest* |
15474 | eval "ac_cv_func_$ac_func=yes" | |
15475 | else | |
15476 | echo "configure: failed program was:" >&5 | |
15477 | cat conftest.$ac_ext >&5 | |
15478 | rm -rf conftest* | |
15479 | eval "ac_cv_func_$ac_func=no" | |
15480 | fi | |
15481 | rm -f conftest* | |
15482 | fi | |
eb4efbdc | 15483 | |
698dcdb6 VZ |
15484 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
15485 | echo "$ac_t""yes" 1>&6 | |
15486 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15487 | cat >> confdefs.h <<EOF | |
15488 | #define $ac_tr_func 1 | |
15489 | EOF | |
15490 | ||
15491 | else | |
15492 | echo "$ac_t""no" 1>&6 | |
eb4efbdc VZ |
15493 | fi |
15494 | done | |
15495 | ||
698dcdb6 | 15496 | |
4f14bcd8 | 15497 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
3010d50a | 15498 | echo "configure:15499: checking for vprintf" >&5 |
4f14bcd8 | 15499 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
698dcdb6 VZ |
15500 | echo $ac_n "(cached) $ac_c" 1>&6 |
15501 | else | |
4f14bcd8 | 15502 | cat > conftest.$ac_ext <<EOF |
3010d50a | 15503 | #line 15504 "configure" |
f6bcfd97 | 15504 | #include "confdefs.h" |
4f14bcd8 GD |
15505 | /* System header to define __stub macros and hopefully few prototypes, |
15506 | which can conflict with char vprintf(); below. */ | |
15507 | #include <assert.h> | |
15508 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15509 | /* We use char because int might match the return type of a gcc2 | |
15510 | builtin and then its argument prototype would still apply. */ | |
15511 | char vprintf(); | |
15512 | ||
698dcdb6 | 15513 | int main() { |
f6bcfd97 | 15514 | |
4f14bcd8 GD |
15515 | /* The GNU C library defines this for functions which it implements |
15516 | to always fail with ENOSYS. Some functions are actually named | |
15517 | something starting with __ and the normal name is an alias. */ | |
15518 | #if defined (__stub_vprintf) || defined (__stub___vprintf) | |
15519 | choke me | |
15520 | #else | |
15521 | vprintf(); | |
15522 | #endif | |
f6bcfd97 | 15523 | |
698dcdb6 VZ |
15524 | ; return 0; } |
15525 | EOF | |
3010d50a | 15526 | if { (eval echo configure:15527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15527 | rm -rf conftest* |
4f14bcd8 | 15528 | eval "ac_cv_func_vprintf=yes" |
f6bcfd97 | 15529 | else |
698dcdb6 VZ |
15530 | echo "configure: failed program was:" >&5 |
15531 | cat conftest.$ac_ext >&5 | |
15532 | rm -rf conftest* | |
4f14bcd8 | 15533 | eval "ac_cv_func_vprintf=no" |
6232543b | 15534 | fi |
698dcdb6 | 15535 | rm -f conftest* |
1e487827 | 15536 | fi |
698dcdb6 | 15537 | |
4f14bcd8 GD |
15538 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then |
15539 | echo "$ac_t""yes" 1>&6 | |
15540 | cat >> confdefs.h <<\EOF | |
15541 | #define HAVE_VPRINTF 1 | |
f6bcfd97 BP |
15542 | EOF |
15543 | ||
4f14bcd8 GD |
15544 | else |
15545 | echo "$ac_t""no" 1>&6 | |
eb4efbdc VZ |
15546 | fi |
15547 | ||
4f14bcd8 GD |
15548 | if test "$ac_cv_func_vprintf" != yes; then |
15549 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
3010d50a | 15550 | echo "configure:15551: checking for _doprnt" >&5 |
4f14bcd8 | 15551 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
698dcdb6 VZ |
15552 | echo $ac_n "(cached) $ac_c" 1>&6 |
15553 | else | |
15554 | cat > conftest.$ac_ext <<EOF | |
3010d50a | 15555 | #line 15556 "configure" |
10f2d63a VZ |
15556 | #include "confdefs.h" |
15557 | /* System header to define __stub macros and hopefully few prototypes, | |
4f14bcd8 | 15558 | which can conflict with char _doprnt(); below. */ |
10f2d63a VZ |
15559 | #include <assert.h> |
15560 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15561 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 15562 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 15563 | char _doprnt(); |
698dcdb6 VZ |
15564 | |
15565 | int main() { | |
10f2d63a VZ |
15566 | |
15567 | /* The GNU C library defines this for functions which it implements | |
15568 | to always fail with ENOSYS. Some functions are actually named | |
15569 | something starting with __ and the normal name is an alias. */ | |
4f14bcd8 | 15570 | #if defined (__stub__doprnt) || defined (__stub____doprnt) |
10f2d63a VZ |
15571 | choke me |
15572 | #else | |
4f14bcd8 | 15573 | _doprnt(); |
10f2d63a VZ |
15574 | #endif |
15575 | ||
698dcdb6 | 15576 | ; return 0; } |
10f2d63a | 15577 | EOF |
3010d50a | 15578 | if { (eval echo configure:15579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15579 | rm -rf conftest* |
4f14bcd8 | 15580 | eval "ac_cv_func__doprnt=yes" |
698dcdb6 VZ |
15581 | else |
15582 | echo "configure: failed program was:" >&5 | |
15583 | cat conftest.$ac_ext >&5 | |
15584 | rm -rf conftest* | |
4f14bcd8 | 15585 | eval "ac_cv_func__doprnt=no" |
698dcdb6 VZ |
15586 | fi |
15587 | rm -f conftest* | |
15588 | fi | |
270a909e | 15589 | |
4f14bcd8 | 15590 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then |
698dcdb6 | 15591 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
15592 | cat >> confdefs.h <<\EOF |
15593 | #define HAVE_DOPRNT 1 | |
698dcdb6 | 15594 | EOF |
4f14bcd8 | 15595 | |
698dcdb6 VZ |
15596 | else |
15597 | echo "$ac_t""no" 1>&6 | |
270a909e | 15598 | fi |
270a909e | 15599 | |
4f14bcd8 | 15600 | fi |
1e487827 | 15601 | |
52e8b690 | 15602 | |
52e8b690 | 15603 | |
52e8b690 | 15604 | |
52e8b690 | 15605 | |
52e8b690 | 15606 | |
4f14bcd8 | 15607 | echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6 |
3010d50a | 15608 | echo "configure:15609: checking for vsnprintf" >&5 |
4f14bcd8 | 15609 | if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then |
698dcdb6 | 15610 | echo $ac_n "(cached) $ac_c" 1>&6 |
c63c7106 | 15611 | else |
4f14bcd8 | 15612 | |
af15babd | 15613 | cat > conftest.$ac_ext <<EOF |
3010d50a | 15614 | #line 15615 "configure" |
c63c7106 | 15615 | #include "confdefs.h" |
698dcdb6 | 15616 | |
4f14bcd8 GD |
15617 | #include <stdio.h> |
15618 | #include <stdarg.h> | |
15619 | ||
af15babd VZ |
15620 | int main() { |
15621 | ||
4f14bcd8 GD |
15622 | int wx_test_vsnprintf(const char *, ...); |
15623 | ||
15624 | wx_test_vsnprintf("%s"); | |
15625 | return 0; | |
15626 | } | |
15627 | ||
15628 | int wx_test_vsnprintf(const char *fmt, ...) | |
15629 | { | |
15630 | char *s; | |
15631 | ||
15632 | va_list argp; | |
15633 | va_start(argp, fmt); | |
15634 | vsnprintf(s, 42, fmt, argp); | |
15635 | va_end(argp); | |
15636 | ||
af15babd VZ |
15637 | ; return 0; } |
15638 | EOF | |
3010d50a | 15639 | if { (eval echo configure:15640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
15640 | rm -rf conftest* |
15641 | ||
4f14bcd8 GD |
15642 | wx_cv_func_vsnprintf=yes |
15643 | ||
af15babd VZ |
15644 | else |
15645 | echo "configure: failed program was:" >&5 | |
15646 | cat conftest.$ac_ext >&5 | |
15647 | rm -rf conftest* | |
15648 | ||
4f14bcd8 | 15649 | cat > conftest.$ac_ext <<EOF |
3010d50a | 15650 | #line 15651 "configure" |
af15babd | 15651 | #include "confdefs.h" |
af15babd | 15652 | |
4f14bcd8 GD |
15653 | #include <stdio.h> |
15654 | #include <stdarg.h> | |
15655 | ||
af15babd VZ |
15656 | int main() { |
15657 | ||
4f14bcd8 GD |
15658 | int wx_test_vsnprintf(const char *, ...); |
15659 | ||
15660 | wx_test_vsnprintf("%s"); | |
15661 | return 0; | |
15662 | } | |
15663 | ||
15664 | int wx_test_vsnprintf(const char *fmt, ...) | |
15665 | { | |
15666 | char *s; | |
af15babd | 15667 | |
4f14bcd8 GD |
15668 | va_list argp; |
15669 | va_start(argp, fmt); | |
15670 | _vsnprintf(s, 42, fmt, argp); | |
15671 | va_end(argp); | |
15672 | ||
af15babd VZ |
15673 | ; return 0; } |
15674 | EOF | |
3010d50a | 15675 | if { (eval echo configure:15676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd | 15676 | rm -rf conftest* |
4f14bcd8 GD |
15677 | |
15678 | wx_cv_func_vsnprintf=yes | |
15679 | ||
af15babd VZ |
15680 | else |
15681 | echo "configure: failed program was:" >&5 | |
15682 | cat conftest.$ac_ext >&5 | |
15683 | rm -rf conftest* | |
4f14bcd8 GD |
15684 | |
15685 | wx_cv_func_vsnprintf=no | |
15686 | ||
af15babd VZ |
15687 | fi |
15688 | rm -f conftest* | |
4f14bcd8 | 15689 | |
af15babd | 15690 | fi |
4f14bcd8 | 15691 | rm -f conftest* |
af15babd | 15692 | |
af15babd | 15693 | fi |
af15babd | 15694 | |
4f14bcd8 | 15695 | echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6 |
af15babd | 15696 | |
4f14bcd8 GD |
15697 | if test "$wx_cv_func_vsnprintf" = yes; then |
15698 | cat >> confdefs.h <<\EOF | |
15699 | #define HAVE_VSNPRINTF 1 | |
15700 | EOF | |
15701 | ||
15702 | else | |
f9bc1684 | 15703 | echo "configure: warning: unsafe function vsprintf will be used instead of vsnprintf" 1>&2 |
af15babd VZ |
15704 | fi |
15705 | ||
4f14bcd8 | 15706 | echo $ac_n "checking for vsscanf""... $ac_c" 1>&6 |
3010d50a | 15707 | echo "configure:15708: checking for vsscanf" >&5 |
4f14bcd8 | 15708 | if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then |
af15babd VZ |
15709 | echo $ac_n "(cached) $ac_c" 1>&6 |
15710 | else | |
4f14bcd8 | 15711 | |
af15babd | 15712 | cat > conftest.$ac_ext <<EOF |
3010d50a | 15713 | #line 15714 "configure" |
af15babd | 15714 | #include "confdefs.h" |
af15babd | 15715 | |
4f14bcd8 GD |
15716 | #include <stdio.h> |
15717 | #include <stdarg.h> | |
15718 | ||
af15babd VZ |
15719 | int main() { |
15720 | ||
4f14bcd8 GD |
15721 | int wx_test_vsscanf(const char *, ...); |
15722 | ||
15723 | wx_test_vsscanf("%d"); | |
15724 | return 0; | |
15725 | } | |
af15babd | 15726 | |
4f14bcd8 GD |
15727 | int wx_test_vsscanf(const char *fmt, ...) |
15728 | { | |
15729 | va_list argp; | |
15730 | va_start(argp, fmt); | |
15731 | vsscanf("42", fmt, argp); | |
15732 | va_end(argp); | |
15733 | ||
af15babd VZ |
15734 | ; return 0; } |
15735 | EOF | |
3010d50a | 15736 | if { (eval echo configure:15737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 15737 | rm -rf conftest* |
4f14bcd8 GD |
15738 | |
15739 | wx_cv_func_vsscanf=yes | |
15740 | ||
af15babd VZ |
15741 | else |
15742 | echo "configure: failed program was:" >&5 | |
15743 | cat conftest.$ac_ext >&5 | |
15744 | rm -rf conftest* | |
4f14bcd8 GD |
15745 | |
15746 | wx_cv_func_vsscanf=no | |
15747 | ||
af15babd VZ |
15748 | fi |
15749 | rm -f conftest* | |
4f14bcd8 | 15750 | |
af15babd VZ |
15751 | fi |
15752 | ||
4f14bcd8 GD |
15753 | echo "$ac_t""$wx_cv_func_vsscanf" 1>&6 |
15754 | ||
15755 | if test "$wx_cv_func_vsscanf" = yes; then | |
15756 | cat >> confdefs.h <<\EOF | |
15757 | #define HAVE_VSSCANF 1 | |
af15babd | 15758 | EOF |
4f14bcd8 | 15759 | |
af15babd | 15760 | fi |
af15babd | 15761 | |
4f14bcd8 | 15762 | if test "$TOOLKIT" != "MSW"; then |
af15babd | 15763 | |
4f14bcd8 GD |
15764 | |
15765 | ||
15766 | ac_ext=C | |
15767 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15768 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15769 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15770 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15771 | cross_compiling=$ac_cv_prog_cxx_cross | |
15772 | ||
b040e242 VS |
15773 | |
15774 | ||
15775 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
15776 | if test "${with_libiconv_prefix+set}" = set; then | |
15777 | withval="$with_libiconv_prefix" | |
15778 | ||
15779 | for dir in `echo "$withval" | tr : ' '`; do | |
15780 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
15781 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
15782 | done | |
15783 | ||
15784 | fi | |
15785 | ||
15786 | ||
15787 | echo $ac_n "checking for iconv""... $ac_c" 1>&6 | |
3010d50a | 15788 | echo "configure:15789: checking for iconv" >&5 |
b040e242 | 15789 | if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then |
af15babd VZ |
15790 | echo $ac_n "(cached) $ac_c" 1>&6 |
15791 | else | |
4f14bcd8 | 15792 | |
b040e242 VS |
15793 | am_cv_func_iconv="no, consider installing GNU libiconv" |
15794 | am_cv_lib_iconv=no | |
4f14bcd8 | 15795 | cat > conftest.$ac_ext <<EOF |
3010d50a | 15796 | #line 15797 "configure" |
af15babd | 15797 | #include "confdefs.h" |
b040e242 | 15798 | #include <stdlib.h> |
4f14bcd8 | 15799 | #include <iconv.h> |
af15babd | 15800 | int main() { |
b040e242 VS |
15801 | iconv_t cd = iconv_open("",""); |
15802 | iconv(cd,NULL,NULL,NULL,NULL); | |
15803 | iconv_close(cd); | |
af15babd VZ |
15804 | ; return 0; } |
15805 | EOF | |
3010d50a | 15806 | if { (eval echo configure:15807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd | 15807 | rm -rf conftest* |
b040e242 | 15808 | am_cv_func_iconv=yes |
af15babd VZ |
15809 | else |
15810 | echo "configure: failed program was:" >&5 | |
15811 | cat conftest.$ac_ext >&5 | |
b040e242 VS |
15812 | fi |
15813 | rm -f conftest* | |
15814 | if test "$am_cv_func_iconv" != yes; then | |
15815 | am_save_LIBS="$LIBS" | |
15816 | LIBS="$LIBS -liconv" | |
15817 | cat > conftest.$ac_ext <<EOF | |
3010d50a | 15818 | #line 15819 "configure" |
b040e242 VS |
15819 | #include "confdefs.h" |
15820 | #include <stdlib.h> | |
15821 | #include <iconv.h> | |
15822 | int main() { | |
15823 | iconv_t cd = iconv_open("",""); | |
15824 | iconv(cd,NULL,NULL,NULL,NULL); | |
15825 | iconv_close(cd); | |
15826 | ; return 0; } | |
15827 | EOF | |
3010d50a | 15828 | if { (eval echo configure:15829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd | 15829 | rm -rf conftest* |
b040e242 VS |
15830 | am_cv_lib_iconv=yes |
15831 | am_cv_func_iconv=yes | |
15832 | else | |
15833 | echo "configure: failed program was:" >&5 | |
15834 | cat conftest.$ac_ext >&5 | |
af15babd VZ |
15835 | fi |
15836 | rm -f conftest* | |
b040e242 VS |
15837 | LIBS="$am_save_LIBS" |
15838 | fi | |
15839 | ||
15840 | fi | |
15841 | ||
15842 | echo "$ac_t""$am_cv_func_iconv" 1>&6 | |
15843 | if test "$am_cv_func_iconv" = yes; then | |
15844 | cat >> confdefs.h <<\EOF | |
15845 | #define HAVE_ICONV 1 | |
15846 | EOF | |
15847 | ||
b7043674 | 15848 | echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6 |
3010d50a | 15849 | echo "configure:15850: checking if iconv needs const" >&5 |
b7043674 | 15850 | if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then |
b040e242 VS |
15851 | echo $ac_n "(cached) $ac_c" 1>&6 |
15852 | else | |
b7043674 | 15853 | cat > conftest.$ac_ext <<EOF |
3010d50a | 15854 | #line 15855 "configure" |
b040e242 VS |
15855 | #include "confdefs.h" |
15856 | ||
15857 | #include <stdlib.h> | |
15858 | #include <iconv.h> | |
15859 | extern | |
15860 | #ifdef __cplusplus | |
15861 | "C" | |
15862 | #endif | |
15863 | #if defined(__STDC__) || defined(__cplusplus) | |
15864 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
15865 | #else | |
15866 | size_t iconv(); | |
15867 | #endif | |
b7043674 | 15868 | |
b040e242 | 15869 | int main() { |
af15babd | 15870 | |
b040e242 VS |
15871 | ; return 0; } |
15872 | EOF | |
3010d50a | 15873 | if { (eval echo configure:15874: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
b040e242 | 15874 | rm -rf conftest* |
b7043674 | 15875 | wx_cv_func_iconv_const="no" |
b040e242 VS |
15876 | else |
15877 | echo "configure: failed program was:" >&5 | |
15878 | cat conftest.$ac_ext >&5 | |
15879 | rm -rf conftest* | |
b7043674 VZ |
15880 | wx_cv_func_iconv_const="yes" |
15881 | ||
b040e242 VS |
15882 | fi |
15883 | rm -f conftest* | |
b7043674 | 15884 | |
af15babd | 15885 | fi |
af15babd | 15886 | |
b7043674 VZ |
15887 | echo "$ac_t""$wx_cv_func_iconv_const" 1>&6 |
15888 | ||
15889 | iconv_const= | |
1c405bb5 | 15890 | if test "x$wx_cv_func_iconv_const" = "xyes"; then |
b7043674 VZ |
15891 | iconv_const="const" |
15892 | fi | |
15893 | ||
b040e242 | 15894 | cat >> confdefs.h <<EOF |
b7043674 | 15895 | #define ICONV_CONST $iconv_const |
b040e242 VS |
15896 | EOF |
15897 | ||
15898 | fi | |
15899 | LIBICONV= | |
15900 | if test "$am_cv_lib_iconv" = yes; then | |
15901 | LIBICONV="-liconv" | |
15902 | fi | |
15903 | ||
15904 | ||
15905 | LIBS="$LIBICONV $LIBS" | |
4f14bcd8 GD |
15906 | ac_ext=c |
15907 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15908 | ac_cpp='$CPP $CPPFLAGS' | |
15909 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15910 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15911 | cross_compiling=$ac_cv_prog_cc_cross | |
af15babd | 15912 | |
af15babd | 15913 | |
4f14bcd8 GD |
15914 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
15915 | for ac_func in sigaction | |
af15babd VZ |
15916 | do |
15917 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
3010d50a | 15918 | echo "configure:15919: checking for $ac_func" >&5 |
af15babd VZ |
15919 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15920 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15921 | else | |
15922 | cat > conftest.$ac_ext <<EOF | |
3010d50a | 15923 | #line 15924 "configure" |
af15babd VZ |
15924 | #include "confdefs.h" |
15925 | /* System header to define __stub macros and hopefully few prototypes, | |
15926 | which can conflict with char $ac_func(); below. */ | |
15927 | #include <assert.h> | |
15928 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15929 | /* We use char because int might match the return type of a gcc2 | |
15930 | builtin and then its argument prototype would still apply. */ | |
15931 | char $ac_func(); | |
15932 | ||
15933 | int main() { | |
15934 | ||
15935 | /* The GNU C library defines this for functions which it implements | |
15936 | to always fail with ENOSYS. Some functions are actually named | |
15937 | something starting with __ and the normal name is an alias. */ | |
15938 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15939 | choke me | |
15940 | #else | |
15941 | $ac_func(); | |
15942 | #endif | |
15943 | ||
15944 | ; return 0; } | |
15945 | EOF | |
3010d50a | 15946 | if { (eval echo configure:15947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
15947 | rm -rf conftest* |
15948 | eval "ac_cv_func_$ac_func=yes" | |
15949 | else | |
15950 | echo "configure: failed program was:" >&5 | |
15951 | cat conftest.$ac_ext >&5 | |
15952 | rm -rf conftest* | |
15953 | eval "ac_cv_func_$ac_func=no" | |
15954 | fi | |
15955 | rm -f conftest* | |
15956 | fi | |
15957 | ||
15958 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
15959 | echo "$ac_t""yes" 1>&6 | |
15960 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15961 | cat >> confdefs.h <<EOF | |
15962 | #define $ac_tr_func 1 | |
15963 | EOF | |
4f14bcd8 | 15964 | |
af15babd VZ |
15965 | else |
15966 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 GD |
15967 | fi |
15968 | done | |
15969 | ||
15970 | ||
15971 | if test "$ac_cv_func_sigaction" = "no"; then | |
15972 | echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2 | |
15973 | wxUSE_ON_FATAL_EXCEPTION=no | |
15974 | fi | |
15975 | ||
15976 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
15977 | ||
15978 | ac_ext=C | |
15979 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15980 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15981 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15982 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15983 | cross_compiling=$ac_cv_prog_cxx_cross | |
15984 | ||
15985 | ||
15986 | echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6 | |
3010d50a | 15987 | echo "configure:15988: checking for sa_handler type" >&5 |
4f14bcd8 | 15988 | if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then |
af15babd VZ |
15989 | echo $ac_n "(cached) $ac_c" 1>&6 |
15990 | else | |
4f14bcd8 GD |
15991 | |
15992 | cat > conftest.$ac_ext <<EOF | |
3010d50a | 15993 | #line 15994 "configure" |
af15babd | 15994 | #include "confdefs.h" |
4f14bcd8 | 15995 | #include <signal.h> |
af15babd | 15996 | int main() { |
4f14bcd8 GD |
15997 | |
15998 | extern void testSigHandler(int); | |
15999 | ||
16000 | struct sigaction sa; | |
16001 | sa.sa_handler = testSigHandler; | |
16002 | ||
af15babd VZ |
16003 | ; return 0; } |
16004 | EOF | |
3010d50a | 16005 | if { (eval echo configure:16006: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 16006 | rm -rf conftest* |
4f14bcd8 GD |
16007 | |
16008 | wx_cv_type_sa_handler=int | |
16009 | ||
af15babd VZ |
16010 | else |
16011 | echo "configure: failed program was:" >&5 | |
16012 | cat conftest.$ac_ext >&5 | |
16013 | rm -rf conftest* | |
4f14bcd8 GD |
16014 | |
16015 | wx_cv_type_sa_handler=void | |
16016 | ||
af15babd VZ |
16017 | fi |
16018 | rm -f conftest* | |
4f14bcd8 GD |
16019 | |
16020 | fi | |
16021 | ||
16022 | echo "$ac_t""$wx_cv_type_sa_handler" 1>&6 | |
16023 | ||
16024 | ac_ext=c | |
16025 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
16026 | ac_cpp='$CPP $CPPFLAGS' | |
16027 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16028 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16029 | cross_compiling=$ac_cv_prog_cc_cross | |
af15babd | 16030 | |
4f14bcd8 GD |
16031 | |
16032 | cat >> confdefs.h <<EOF | |
16033 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
af15babd VZ |
16034 | EOF |
16035 | ||
4f14bcd8 GD |
16036 | fi |
16037 | fi | |
af15babd | 16038 | |
4f14bcd8 | 16039 | for ac_func in vfork |
af15babd VZ |
16040 | do |
16041 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
3010d50a | 16042 | echo "configure:16043: checking for $ac_func" >&5 |
af15babd VZ |
16043 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16044 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16045 | else | |
16046 | cat > conftest.$ac_ext <<EOF | |
3010d50a | 16047 | #line 16048 "configure" |
af15babd VZ |
16048 | #include "confdefs.h" |
16049 | /* System header to define __stub macros and hopefully few prototypes, | |
16050 | which can conflict with char $ac_func(); below. */ | |
16051 | #include <assert.h> | |
16052 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16053 | /* We use char because int might match the return type of a gcc2 | |
16054 | builtin and then its argument prototype would still apply. */ | |
16055 | char $ac_func(); | |
16056 | ||
16057 | int main() { | |
16058 | ||
16059 | /* The GNU C library defines this for functions which it implements | |
16060 | to always fail with ENOSYS. Some functions are actually named | |
16061 | something starting with __ and the normal name is an alias. */ | |
16062 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16063 | choke me | |
16064 | #else | |
16065 | $ac_func(); | |
16066 | #endif | |
16067 | ||
16068 | ; return 0; } | |
16069 | EOF | |
3010d50a | 16070 | if { (eval echo configure:16071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
16071 | rm -rf conftest* |
16072 | eval "ac_cv_func_$ac_func=yes" | |
16073 | else | |
16074 | echo "configure: failed program was:" >&5 | |
16075 | cat conftest.$ac_ext >&5 | |
16076 | rm -rf conftest* | |
16077 | eval "ac_cv_func_$ac_func=no" | |
16078 | fi | |
16079 | rm -f conftest* | |
16080 | fi | |
16081 | ||
16082 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16083 | echo "$ac_t""yes" 1>&6 | |
16084 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16085 | cat >> confdefs.h <<EOF | |
16086 | #define $ac_tr_func 1 | |
16087 | EOF | |
4f14bcd8 | 16088 | |
af15babd VZ |
16089 | else |
16090 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
16091 | fi |
16092 | done | |
16093 | ||
af15babd | 16094 | |
ade35f11 VZ |
16095 | for ac_func in mkstemp mktemp |
16096 | do | |
16097 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
3010d50a | 16098 | echo "configure:16099: checking for $ac_func" >&5 |
ade35f11 VZ |
16099 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16100 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16101 | else | |
16102 | cat > conftest.$ac_ext <<EOF | |
3010d50a | 16103 | #line 16104 "configure" |
ade35f11 VZ |
16104 | #include "confdefs.h" |
16105 | /* System header to define __stub macros and hopefully few prototypes, | |
16106 | which can conflict with char $ac_func(); below. */ | |
16107 | #include <assert.h> | |
16108 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16109 | /* We use char because int might match the return type of a gcc2 | |
16110 | builtin and then its argument prototype would still apply. */ | |
16111 | char $ac_func(); | |
16112 | ||
16113 | int main() { | |
16114 | ||
16115 | /* The GNU C library defines this for functions which it implements | |
16116 | to always fail with ENOSYS. Some functions are actually named | |
16117 | something starting with __ and the normal name is an alias. */ | |
16118 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16119 | choke me | |
16120 | #else | |
16121 | $ac_func(); | |
16122 | #endif | |
16123 | ||
16124 | ; return 0; } | |
16125 | EOF | |
3010d50a | 16126 | if { (eval echo configure:16127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ade35f11 VZ |
16127 | rm -rf conftest* |
16128 | eval "ac_cv_func_$ac_func=yes" | |
16129 | else | |
16130 | echo "configure: failed program was:" >&5 | |
16131 | cat conftest.$ac_ext >&5 | |
16132 | rm -rf conftest* | |
16133 | eval "ac_cv_func_$ac_func=no" | |
16134 | fi | |
16135 | rm -f conftest* | |
16136 | fi | |
16137 | ||
16138 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16139 | echo "$ac_t""yes" 1>&6 | |
16140 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16141 | cat >> confdefs.h <<EOF | |
16142 | #define $ac_tr_func 1 | |
16143 | EOF | |
16144 | break | |
16145 | else | |
16146 | echo "$ac_t""no" 1>&6 | |
16147 | fi | |
16148 | done | |
16149 | ||
16150 | ||
4f14bcd8 | 16151 | echo $ac_n "checking for statfs""... $ac_c" 1>&6 |
3010d50a | 16152 | echo "configure:16153: checking for statfs" >&5 |
4f14bcd8 GD |
16153 | if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then |
16154 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16155 | else | |
16156 | cat > conftest.$ac_ext <<EOF | |
3010d50a | 16157 | #line 16158 "configure" |
4f14bcd8 GD |
16158 | #include "confdefs.h" |
16159 | ||
16160 | #if defined(__BSD__) | |
16161 | #include <sys/param.h> | |
16162 | #include <sys/mount.h> | |
16163 | #else | |
16164 | #include <sys/vfs.h> | |
16165 | #endif | |
16166 | ||
16167 | int main() { | |
16168 | ||
16169 | long l; | |
16170 | struct statfs fs; | |
16171 | statfs("/", &fs); | |
16172 | l = fs.f_bsize; | |
16173 | l += fs.f_blocks; | |
16174 | l += fs.f_bavail; | |
16175 | ||
16176 | ; return 0; } | |
16177 | EOF | |
3010d50a | 16178 | if { (eval echo configure:16179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
16179 | rm -rf conftest* |
16180 | ||
16181 | wx_cv_func_statfs=yes | |
16182 | ||
16183 | else | |
16184 | echo "configure: failed program was:" >&5 | |
16185 | cat conftest.$ac_ext >&5 | |
16186 | rm -rf conftest* | |
16187 | ||
16188 | wx_cv_func_statfs=no | |
af15babd VZ |
16189 | |
16190 | ||
16191 | fi | |
4f14bcd8 | 16192 | rm -f conftest* |
af15babd VZ |
16193 | |
16194 | fi | |
16195 | ||
4f14bcd8 GD |
16196 | echo "$ac_t""$wx_cv_func_statfs" 1>&6 |
16197 | ||
16198 | if test "$wx_cv_func_statfs" = "yes"; then | |
16199 | cat >> confdefs.h <<\EOF | |
16200 | #define HAVE_STATFS 1 | |
16201 | EOF | |
16202 | ||
16203 | else | |
16204 | echo $ac_n "checking for statvfs""... $ac_c" 1>&6 | |
3010d50a | 16205 | echo "configure:16206: checking for statvfs" >&5 |
4f14bcd8 | 16206 | if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then |
af15babd VZ |
16207 | echo $ac_n "(cached) $ac_c" 1>&6 |
16208 | else | |
16209 | cat > conftest.$ac_ext <<EOF | |
3010d50a | 16210 | #line 16211 "configure" |
af15babd | 16211 | #include "confdefs.h" |
af15babd | 16212 | |
4f14bcd8 GD |
16213 | #include <sys/statvfs.h> |
16214 | ||
af15babd VZ |
16215 | int main() { |
16216 | ||
4f14bcd8 GD |
16217 | long l; |
16218 | struct statvfs fs; | |
16219 | statvfs("/", &fs); | |
16220 | l = fs.f_bsize; | |
16221 | l += fs.f_blocks; | |
16222 | l += fs.f_bavail; | |
16223 | ||
af15babd VZ |
16224 | ; return 0; } |
16225 | EOF | |
3010d50a | 16226 | if { (eval echo configure:16227: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 16227 | rm -rf conftest* |
4f14bcd8 GD |
16228 | |
16229 | wx_cv_func_statvfs=yes | |
16230 | ||
af15babd VZ |
16231 | else |
16232 | echo "configure: failed program was:" >&5 | |
16233 | cat conftest.$ac_ext >&5 | |
16234 | rm -rf conftest* | |
4f14bcd8 GD |
16235 | |
16236 | wx_cv_func_statvfs=no | |
16237 | ||
16238 | ||
af15babd VZ |
16239 | fi |
16240 | rm -f conftest* | |
4f14bcd8 | 16241 | |
af15babd VZ |
16242 | fi |
16243 | ||
4f14bcd8 | 16244 | echo "$ac_t""$wx_cv_func_statvfs" 1>&6 |
af15babd | 16245 | |
4f14bcd8 GD |
16246 | if test "$wx_cv_func_statvfs" = "yes"; then |
16247 | cat >> confdefs.h <<\EOF | |
16248 | #define HAVE_STATVFS 1 | |
16249 | EOF | |
af15babd | 16250 | |
4f14bcd8 GD |
16251 | else |
16252 | echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2 | |
16253 | fi | |
16254 | fi | |
af15babd | 16255 | |
4f14bcd8 GD |
16256 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
16257 | for ac_func in fcntl flock | |
af15babd VZ |
16258 | do |
16259 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
3010d50a | 16260 | echo "configure:16261: checking for $ac_func" >&5 |
af15babd VZ |
16261 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16262 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16263 | else | |
16264 | cat > conftest.$ac_ext <<EOF | |
3010d50a | 16265 | #line 16266 "configure" |
af15babd VZ |
16266 | #include "confdefs.h" |
16267 | /* System header to define __stub macros and hopefully few prototypes, | |
16268 | which can conflict with char $ac_func(); below. */ | |
16269 | #include <assert.h> | |
16270 | /* Override any gcc2 internal prototype to avoid an error. */ | |
af15babd VZ |
16271 | /* We use char because int might match the return type of a gcc2 |
16272 | builtin and then its argument prototype would still apply. */ | |
16273 | char $ac_func(); | |
16274 | ||
16275 | int main() { | |
16276 | ||
16277 | /* The GNU C library defines this for functions which it implements | |
16278 | to always fail with ENOSYS. Some functions are actually named | |
16279 | something starting with __ and the normal name is an alias. */ | |
16280 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16281 | choke me | |
16282 | #else | |
16283 | $ac_func(); | |
16284 | #endif | |
16285 | ||
16286 | ; return 0; } | |
16287 | EOF | |
3010d50a | 16288 | if { (eval echo configure:16289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
16289 | rm -rf conftest* |
16290 | eval "ac_cv_func_$ac_func=yes" | |
16291 | else | |
16292 | echo "configure: failed program was:" >&5 | |
16293 | cat conftest.$ac_ext >&5 | |
16294 | rm -rf conftest* | |
16295 | eval "ac_cv_func_$ac_func=no" | |
16296 | fi | |
16297 | rm -f conftest* | |
16298 | fi | |
16299 | ||
16300 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16301 | echo "$ac_t""yes" 1>&6 | |
16302 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16303 | cat >> confdefs.h <<EOF | |
16304 | #define $ac_tr_func 1 | |
16305 | EOF | |
4f14bcd8 | 16306 | break |
af15babd VZ |
16307 | else |
16308 | echo "$ac_t""no" 1>&6 | |
16309 | fi | |
16310 | done | |
16311 | ||
16312 | ||
4f14bcd8 GD |
16313 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then |
16314 | echo "configure: warning: wxSingleInstanceChecker not available" 1>&2 | |
16315 | wxUSE_SNGLINST_CHECKER=no | |
16316 | fi | |
16317 | fi | |
af15babd | 16318 | |
4f14bcd8 | 16319 | for ac_func in timegm |
af15babd VZ |
16320 | do |
16321 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
3010d50a | 16322 | echo "configure:16323: checking for $ac_func" >&5 |
af15babd VZ |
16323 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16324 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16325 | else | |
16326 | cat > conftest.$ac_ext <<EOF | |
3010d50a | 16327 | #line 16328 "configure" |
af15babd VZ |
16328 | #include "confdefs.h" |
16329 | /* System header to define __stub macros and hopefully few prototypes, | |
16330 | which can conflict with char $ac_func(); below. */ | |
16331 | #include <assert.h> | |
16332 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16333 | /* We use char because int might match the return type of a gcc2 | |
16334 | builtin and then its argument prototype would still apply. */ | |
16335 | char $ac_func(); | |
16336 | ||
698dcdb6 | 16337 | int main() { |
698dcdb6 | 16338 | |
af15babd VZ |
16339 | /* The GNU C library defines this for functions which it implements |
16340 | to always fail with ENOSYS. Some functions are actually named | |
16341 | something starting with __ and the normal name is an alias. */ | |
16342 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16343 | choke me | |
16344 | #else | |
16345 | $ac_func(); | |
16346 | #endif | |
16347 | ||
698dcdb6 VZ |
16348 | ; return 0; } |
16349 | EOF | |
3010d50a | 16350 | if { (eval echo configure:16351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16351 | rm -rf conftest* |
af15babd | 16352 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
16353 | else |
16354 | echo "configure: failed program was:" >&5 | |
16355 | cat conftest.$ac_ext >&5 | |
16356 | rm -rf conftest* | |
af15babd | 16357 | eval "ac_cv_func_$ac_func=no" |
1e487827 | 16358 | fi |
9952adac | 16359 | rm -f conftest* |
af15babd | 16360 | fi |
703e0a69 | 16361 | |
af15babd VZ |
16362 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16363 | echo "$ac_t""yes" 1>&6 | |
16364 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
4f14bcd8 GD |
16365 | cat >> confdefs.h <<EOF |
16366 | #define $ac_tr_func 1 | |
16367 | EOF | |
16368 | ||
16369 | else | |
16370 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
16371 | fi |
16372 | done | |
16373 | ||
16374 | ||
4f14bcd8 | 16375 | for ac_func in putenv setenv |
10f2d63a | 16376 | do |
698dcdb6 | 16377 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3010d50a | 16378 | echo "configure:16379: checking for $ac_func" >&5 |
698dcdb6 VZ |
16379 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16380 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16381 | else | |
16382 | cat > conftest.$ac_ext <<EOF | |
3010d50a | 16383 | #line 16384 "configure" |
af15babd VZ |
16384 | #include "confdefs.h" |
16385 | /* System header to define __stub macros and hopefully few prototypes, | |
16386 | which can conflict with char $ac_func(); below. */ | |
16387 | #include <assert.h> | |
16388 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16389 | /* We use char because int might match the return type of a gcc2 | |
16390 | builtin and then its argument prototype would still apply. */ | |
16391 | char $ac_func(); | |
16392 | ||
16393 | int main() { | |
16394 | ||
16395 | /* The GNU C library defines this for functions which it implements | |
16396 | to always fail with ENOSYS. Some functions are actually named | |
16397 | something starting with __ and the normal name is an alias. */ | |
16398 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16399 | choke me | |
16400 | #else | |
16401 | $ac_func(); | |
16402 | #endif | |
16403 | ||
16404 | ; return 0; } | |
16405 | EOF | |
3010d50a | 16406 | if { (eval echo configure:16407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
16407 | rm -rf conftest* |
16408 | eval "ac_cv_func_$ac_func=yes" | |
16409 | else | |
16410 | echo "configure: failed program was:" >&5 | |
16411 | cat conftest.$ac_ext >&5 | |
16412 | rm -rf conftest* | |
16413 | eval "ac_cv_func_$ac_func=no" | |
16414 | fi | |
16415 | rm -f conftest* | |
16416 | fi | |
16417 | ||
16418 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16419 | echo "$ac_t""yes" 1>&6 | |
16420 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16421 | cat >> confdefs.h <<EOF | |
16422 | #define $ac_tr_func 1 | |
16423 | EOF | |
4f14bcd8 | 16424 | break |
af15babd VZ |
16425 | else |
16426 | echo "$ac_t""no" 1>&6 | |
16427 | fi | |
af15babd VZ |
16428 | done |
16429 | ||
16430 | ||
4f14bcd8 GD |
16431 | HAVE_SOME_SLEEP_FUNC=0 |
16432 | if test "$USE_BEOS" = 1; then | |
16433 | cat >> confdefs.h <<\EOF | |
16434 | #define HAVE_SLEEP 1 | |
af15babd VZ |
16435 | EOF |
16436 | ||
4f14bcd8 | 16437 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
16438 | fi |
16439 | ||
4f14bcd8 GD |
16440 | if test "$USE_DARWIN" = 1; then |
16441 | cat >> confdefs.h <<\EOF | |
16442 | #define HAVE_USLEEP 1 | |
af15babd | 16443 | EOF |
10f2d63a | 16444 | |
4f14bcd8 | 16445 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
16446 | fi |
16447 | ||
4f14bcd8 GD |
16448 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
16449 | POSIX4_LINK= | |
16450 | for ac_func in nanosleep | |
16451 | do | |
16452 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
3010d50a | 16453 | echo "configure:16454: checking for $ac_func" >&5 |
4f14bcd8 | 16454 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 | 16455 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 16456 | else |
4f14bcd8 | 16457 | cat > conftest.$ac_ext <<EOF |
3010d50a | 16458 | #line 16459 "configure" |
10f2d63a | 16459 | #include "confdefs.h" |
4f14bcd8 GD |
16460 | /* System header to define __stub macros and hopefully few prototypes, |
16461 | which can conflict with char $ac_func(); below. */ | |
16462 | #include <assert.h> | |
10f2d63a VZ |
16463 | /* Override any gcc2 internal prototype to avoid an error. */ |
16464 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16465 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16466 | char $ac_func(); |
698dcdb6 VZ |
16467 | |
16468 | int main() { | |
4f14bcd8 GD |
16469 | |
16470 | /* The GNU C library defines this for functions which it implements | |
16471 | to always fail with ENOSYS. Some functions are actually named | |
16472 | something starting with __ and the normal name is an alias. */ | |
16473 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16474 | choke me | |
16475 | #else | |
16476 | $ac_func(); | |
16477 | #endif | |
16478 | ||
698dcdb6 VZ |
16479 | ; return 0; } |
16480 | EOF | |
3010d50a | 16481 | if { (eval echo configure:16482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16482 | rm -rf conftest* |
4f14bcd8 | 16483 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
16484 | else |
16485 | echo "configure: failed program was:" >&5 | |
16486 | cat conftest.$ac_ext >&5 | |
16487 | rm -rf conftest* | |
4f14bcd8 | 16488 | eval "ac_cv_func_$ac_func=no" |
698dcdb6 VZ |
16489 | fi |
16490 | rm -f conftest* | |
698dcdb6 | 16491 | fi |
4f14bcd8 GD |
16492 | |
16493 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 16494 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
16495 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
16496 | cat >> confdefs.h <<EOF | |
16497 | #define $ac_tr_func 1 | |
16498 | EOF | |
16499 | cat >> confdefs.h <<\EOF | |
16500 | #define HAVE_NANOSLEEP 1 | |
16501 | EOF | |
16502 | ||
10f2d63a | 16503 | else |
698dcdb6 | 16504 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 16505 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 |
3010d50a | 16506 | echo "configure:16507: checking for nanosleep in -lposix4" >&5 |
4f14bcd8 | 16507 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
16508 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
16509 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 16510 | else |
698dcdb6 | 16511 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 16512 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 16513 | cat > conftest.$ac_ext <<EOF |
3010d50a | 16514 | #line 16515 "configure" |
10f2d63a VZ |
16515 | #include "confdefs.h" |
16516 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16517 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16518 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16519 | char nanosleep(); |
698dcdb6 VZ |
16520 | |
16521 | int main() { | |
4f14bcd8 | 16522 | nanosleep() |
698dcdb6 VZ |
16523 | ; return 0; } |
16524 | EOF | |
3010d50a | 16525 | if { (eval echo configure:16526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16526 | rm -rf conftest* |
16527 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16528 | else | |
16529 | echo "configure: failed program was:" >&5 | |
16530 | cat conftest.$ac_ext >&5 | |
16531 | rm -rf conftest* | |
16532 | eval "ac_cv_lib_$ac_lib_var=no" | |
16533 | fi | |
16534 | rm -f conftest* | |
16535 | LIBS="$ac_save_LIBS" | |
10f2d63a | 16536 | |
698dcdb6 VZ |
16537 | fi |
16538 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16539 | echo "$ac_t""yes" 1>&6 | |
16540 | ||
4f14bcd8 GD |
16541 | cat >> confdefs.h <<\EOF |
16542 | #define HAVE_NANOSLEEP 1 | |
16543 | EOF | |
16544 | ||
3d63bc3a | 16545 | POSIX4_LINK=" -lposix4" |
4f14bcd8 | 16546 | |
10f2d63a | 16547 | else |
698dcdb6 | 16548 | echo "$ac_t""no" 1>&6 |
10f2d63a | 16549 | |
4f14bcd8 GD |
16550 | for ac_func in usleep |
16551 | do | |
16552 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
3010d50a | 16553 | echo "configure:16554: checking for $ac_func" >&5 |
4f14bcd8 | 16554 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 | 16555 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 16556 | else |
698dcdb6 | 16557 | cat > conftest.$ac_ext <<EOF |
3010d50a | 16558 | #line 16559 "configure" |
10f2d63a | 16559 | #include "confdefs.h" |
4f14bcd8 GD |
16560 | /* System header to define __stub macros and hopefully few prototypes, |
16561 | which can conflict with char $ac_func(); below. */ | |
16562 | #include <assert.h> | |
16563 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16564 | /* We use char because int might match the return type of a gcc2 | |
16565 | builtin and then its argument prototype would still apply. */ | |
16566 | char $ac_func(); | |
16567 | ||
16568 | int main() { | |
16569 | ||
16570 | /* The GNU C library defines this for functions which it implements | |
16571 | to always fail with ENOSYS. Some functions are actually named | |
16572 | something starting with __ and the normal name is an alias. */ | |
16573 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16574 | choke me | |
16575 | #else | |
16576 | $ac_func(); | |
16577 | #endif | |
16578 | ||
16579 | ; return 0; } | |
698dcdb6 | 16580 | EOF |
3010d50a | 16581 | if { (eval echo configure:16582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16582 | rm -rf conftest* |
4f14bcd8 | 16583 | eval "ac_cv_func_$ac_func=yes" |
1e487827 | 16584 | else |
698dcdb6 | 16585 | echo "configure: failed program was:" >&5 |
10f2d63a | 16586 | cat conftest.$ac_ext >&5 |
698dcdb6 | 16587 | rm -rf conftest* |
4f14bcd8 | 16588 | eval "ac_cv_func_$ac_func=no" |
10f2d63a | 16589 | fi |
698dcdb6 | 16590 | rm -f conftest* |
10f2d63a | 16591 | fi |
4f14bcd8 GD |
16592 | |
16593 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 16594 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
16595 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
16596 | cat >> confdefs.h <<EOF | |
16597 | #define $ac_tr_func 1 | |
16598 | EOF | |
16599 | cat >> confdefs.h <<\EOF | |
16600 | #define HAVE_USLEEP 1 | |
16601 | EOF | |
16602 | ||
698dcdb6 VZ |
16603 | else |
16604 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 GD |
16605 | echo "configure: warning: wxSleep() function will not work" 1>&2 |
16606 | ||
10f2d63a | 16607 | fi |
4f14bcd8 | 16608 | done |
10f2d63a | 16609 | |
4f14bcd8 | 16610 | |
698dcdb6 | 16611 | |
6232543b | 16612 | fi |
10f2d63a | 16613 | |
698dcdb6 | 16614 | |
4f14bcd8 | 16615 | |
1e487827 | 16616 | fi |
4f14bcd8 | 16617 | done |
703e0a69 | 16618 | |
10f2d63a VZ |
16619 | fi |
16620 | ||
4f14bcd8 | 16621 | for ac_func in uname gethostname |
70846f0a | 16622 | do |
698dcdb6 | 16623 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3010d50a | 16624 | echo "configure:16625: checking for $ac_func" >&5 |
698dcdb6 VZ |
16625 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16626 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16627 | else | |
16628 | cat > conftest.$ac_ext <<EOF | |
3010d50a | 16629 | #line 16630 "configure" |
70846f0a VZ |
16630 | #include "confdefs.h" |
16631 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16632 | which can conflict with char $ac_func(); below. */ |
70846f0a VZ |
16633 | #include <assert.h> |
16634 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16635 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16636 | builtin and then its argument prototype would still apply. */ |
16637 | char $ac_func(); | |
16638 | ||
16639 | int main() { | |
70846f0a VZ |
16640 | |
16641 | /* The GNU C library defines this for functions which it implements | |
16642 | to always fail with ENOSYS. Some functions are actually named | |
16643 | something starting with __ and the normal name is an alias. */ | |
16644 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16645 | choke me | |
16646 | #else | |
698dcdb6 | 16647 | $ac_func(); |
70846f0a VZ |
16648 | #endif |
16649 | ||
698dcdb6 | 16650 | ; return 0; } |
70846f0a | 16651 | EOF |
3010d50a | 16652 | if { (eval echo configure:16653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16653 | rm -rf conftest* |
16654 | eval "ac_cv_func_$ac_func=yes" | |
16655 | else | |
16656 | echo "configure: failed program was:" >&5 | |
16657 | cat conftest.$ac_ext >&5 | |
16658 | rm -rf conftest* | |
16659 | eval "ac_cv_func_$ac_func=no" | |
16660 | fi | |
16661 | rm -f conftest* | |
16662 | fi | |
70846f0a | 16663 | |
698dcdb6 VZ |
16664 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16665 | echo "$ac_t""yes" 1>&6 | |
16666 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16667 | cat >> confdefs.h <<EOF | |
16668 | #define $ac_tr_func 1 | |
16669 | EOF | |
4f14bcd8 | 16670 | break |
698dcdb6 VZ |
16671 | else |
16672 | echo "$ac_t""no" 1>&6 | |
70846f0a VZ |
16673 | fi |
16674 | done | |
16675 | ||
698dcdb6 | 16676 | |
4f14bcd8 GD |
16677 | |
16678 | ac_ext=C | |
16679 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
16680 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16681 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16682 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16683 | cross_compiling=$ac_cv_prog_cxx_cross | |
16684 | ||
16685 | ||
16686 | for ac_func in strtok_r | |
10f2d63a | 16687 | do |
4f14bcd8 | 16688 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3010d50a | 16689 | echo "configure:16690: checking for $ac_func" >&5 |
4f14bcd8 | 16690 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 VZ |
16691 | echo $ac_n "(cached) $ac_c" 1>&6 |
16692 | else | |
16693 | cat > conftest.$ac_ext <<EOF | |
3010d50a | 16694 | #line 16695 "configure" |
10f2d63a | 16695 | #include "confdefs.h" |
4f14bcd8 GD |
16696 | /* System header to define __stub macros and hopefully few prototypes, |
16697 | which can conflict with char $ac_func(); below. */ | |
16698 | #include <assert.h> | |
16699 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16700 | #ifdef __cplusplus | |
16701 | extern "C" | |
16702 | #endif | |
16703 | /* We use char because int might match the return type of a gcc2 | |
16704 | builtin and then its argument prototype would still apply. */ | |
16705 | char $ac_func(); | |
16706 | ||
16707 | int main() { | |
16708 | ||
16709 | /* The GNU C library defines this for functions which it implements | |
16710 | to always fail with ENOSYS. Some functions are actually named | |
16711 | something starting with __ and the normal name is an alias. */ | |
16712 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16713 | choke me | |
16714 | #else | |
16715 | $ac_func(); | |
16716 | #endif | |
16717 | ||
16718 | ; return 0; } | |
698dcdb6 | 16719 | EOF |
3010d50a | 16720 | if { (eval echo configure:16721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16721 | rm -rf conftest* |
4f14bcd8 | 16722 | eval "ac_cv_func_$ac_func=yes" |
1e487827 | 16723 | else |
698dcdb6 | 16724 | echo "configure: failed program was:" >&5 |
10f2d63a | 16725 | cat conftest.$ac_ext >&5 |
698dcdb6 | 16726 | rm -rf conftest* |
4f14bcd8 | 16727 | eval "ac_cv_func_$ac_func=no" |
10f2d63a | 16728 | fi |
698dcdb6 | 16729 | rm -f conftest* |
10f2d63a | 16730 | fi |
4f14bcd8 GD |
16731 | |
16732 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 16733 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 | 16734 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
698dcdb6 | 16735 | cat >> confdefs.h <<EOF |
4f14bcd8 | 16736 | #define $ac_tr_func 1 |
10f2d63a | 16737 | EOF |
698dcdb6 VZ |
16738 | |
16739 | else | |
16740 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
16741 | fi |
16742 | done | |
16743 | ||
698dcdb6 | 16744 | |
4f14bcd8 GD |
16745 | ac_ext=c |
16746 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
16747 | ac_cpp='$CPP $CPPFLAGS' | |
16748 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16749 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16750 | cross_compiling=$ac_cv_prog_cc_cross | |
16751 | ||
16752 | ||
16753 | INET_LINK= | |
16754 | for ac_func in inet_addr | |
16755 | do | |
16756 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
3010d50a | 16757 | echo "configure:16758: checking for $ac_func" >&5 |
4f14bcd8 | 16758 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 | 16759 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 16760 | else |
4f14bcd8 | 16761 | cat > conftest.$ac_ext <<EOF |
3010d50a | 16762 | #line 16763 "configure" |
10f2d63a | 16763 | #include "confdefs.h" |
4f14bcd8 GD |
16764 | /* System header to define __stub macros and hopefully few prototypes, |
16765 | which can conflict with char $ac_func(); below. */ | |
16766 | #include <assert.h> | |
10f2d63a VZ |
16767 | /* Override any gcc2 internal prototype to avoid an error. */ |
16768 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16769 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16770 | char $ac_func(); |
698dcdb6 VZ |
16771 | |
16772 | int main() { | |
4f14bcd8 GD |
16773 | |
16774 | /* The GNU C library defines this for functions which it implements | |
16775 | to always fail with ENOSYS. Some functions are actually named | |
16776 | something starting with __ and the normal name is an alias. */ | |
16777 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16778 | choke me | |
16779 | #else | |
16780 | $ac_func(); | |
16781 | #endif | |
16782 | ||
698dcdb6 VZ |
16783 | ; return 0; } |
16784 | EOF | |
3010d50a | 16785 | if { (eval echo configure:16786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16786 | rm -rf conftest* |
4f14bcd8 | 16787 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
16788 | else |
16789 | echo "configure: failed program was:" >&5 | |
16790 | cat conftest.$ac_ext >&5 | |
16791 | rm -rf conftest* | |
4f14bcd8 | 16792 | eval "ac_cv_func_$ac_func=no" |
698dcdb6 VZ |
16793 | fi |
16794 | rm -f conftest* | |
698dcdb6 | 16795 | fi |
4f14bcd8 GD |
16796 | |
16797 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 16798 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
16799 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
16800 | cat >> confdefs.h <<EOF | |
16801 | #define $ac_tr_func 1 | |
16802 | EOF | |
16803 | cat >> confdefs.h <<\EOF | |
16804 | #define HAVE_INET_ADDR 1 | |
10f2d63a VZ |
16805 | EOF |
16806 | ||
16807 | else | |
698dcdb6 | 16808 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 16809 | echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6 |
3010d50a | 16810 | echo "configure:16811: checking for inet_addr in -lnsl" >&5 |
4f14bcd8 | 16811 | ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
16812 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
16813 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 16814 | else |
698dcdb6 | 16815 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 16816 | LIBS="-lnsl $LIBS" |
698dcdb6 | 16817 | cat > conftest.$ac_ext <<EOF |
3010d50a | 16818 | #line 16819 "configure" |
10f2d63a VZ |
16819 | #include "confdefs.h" |
16820 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16821 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16822 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16823 | char inet_addr(); |
698dcdb6 VZ |
16824 | |
16825 | int main() { | |
4f14bcd8 | 16826 | inet_addr() |
698dcdb6 VZ |
16827 | ; return 0; } |
16828 | EOF | |
3010d50a | 16829 | if { (eval echo configure:16830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16830 | rm -rf conftest* |
16831 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16832 | else | |
16833 | echo "configure: failed program was:" >&5 | |
16834 | cat conftest.$ac_ext >&5 | |
16835 | rm -rf conftest* | |
16836 | eval "ac_cv_lib_$ac_lib_var=no" | |
16837 | fi | |
16838 | rm -f conftest* | |
16839 | LIBS="$ac_save_LIBS" | |
16840 | ||
16841 | fi | |
16842 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16843 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 16844 | INET_LINK="nsl" |
10f2d63a | 16845 | else |
698dcdb6 | 16846 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 16847 | echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6 |
3010d50a | 16848 | echo "configure:16849: checking for inet_addr in -lresolv" >&5 |
4f14bcd8 | 16849 | ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
16850 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
16851 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 16852 | else |
698dcdb6 | 16853 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 16854 | LIBS="-lresolv $LIBS" |
698dcdb6 | 16855 | cat > conftest.$ac_ext <<EOF |
3010d50a | 16856 | #line 16857 "configure" |
10f2d63a VZ |
16857 | #include "confdefs.h" |
16858 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16859 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16860 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16861 | char inet_addr(); |
698dcdb6 VZ |
16862 | |
16863 | int main() { | |
4f14bcd8 | 16864 | inet_addr() |
698dcdb6 VZ |
16865 | ; return 0; } |
16866 | EOF | |
3010d50a | 16867 | if { (eval echo configure:16868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16868 | rm -rf conftest* |
16869 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16870 | else | |
16871 | echo "configure: failed program was:" >&5 | |
16872 | cat conftest.$ac_ext >&5 | |
16873 | rm -rf conftest* | |
16874 | eval "ac_cv_lib_$ac_lib_var=no" | |
16875 | fi | |
16876 | rm -f conftest* | |
16877 | LIBS="$ac_save_LIBS" | |
16878 | ||
16879 | fi | |
16880 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16881 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 16882 | INET_LINK="resolv" |
698dcdb6 | 16883 | else |
4f14bcd8 | 16884 | echo "$ac_t""no" 1>&6 |
3c011993 | 16885 | echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6 |
3010d50a | 16886 | echo "configure:16887: checking for inet_addr in -lsocket" >&5 |
3c011993 VZ |
16887 | ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'` |
16888 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16889 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16890 | else | |
16891 | ac_save_LIBS="$LIBS" | |
16892 | LIBS="-lsocket $LIBS" | |
16893 | cat > conftest.$ac_ext <<EOF | |
3010d50a | 16894 | #line 16895 "configure" |
3c011993 VZ |
16895 | #include "confdefs.h" |
16896 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16897 | /* We use char because int might match the return type of a gcc2 | |
16898 | builtin and then its argument prototype would still apply. */ | |
16899 | char inet_addr(); | |
16900 | ||
16901 | int main() { | |
16902 | inet_addr() | |
16903 | ; return 0; } | |
16904 | EOF | |
3010d50a | 16905 | if { (eval echo configure:16906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3c011993 VZ |
16906 | rm -rf conftest* |
16907 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16908 | else | |
16909 | echo "configure: failed program was:" >&5 | |
16910 | cat conftest.$ac_ext >&5 | |
16911 | rm -rf conftest* | |
16912 | eval "ac_cv_lib_$ac_lib_var=no" | |
16913 | fi | |
16914 | rm -f conftest* | |
16915 | LIBS="$ac_save_LIBS" | |
16916 | ||
16917 | fi | |
16918 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16919 | echo "$ac_t""yes" 1>&6 | |
16920 | INET_LINK="socket" | |
16921 | ||
16922 | else | |
16923 | echo "$ac_t""no" 1>&6 | |
16924 | fi | |
16925 | ||
16926 | ||
4f14bcd8 | 16927 | fi |
698dcdb6 | 16928 | |
4f14bcd8 | 16929 | |
698dcdb6 | 16930 | fi |
4f14bcd8 GD |
16931 | |
16932 | ||
698dcdb6 VZ |
16933 | |
16934 | fi | |
4f14bcd8 GD |
16935 | done |
16936 | ||
16937 | ||
16938 | for ac_func in inet_aton | |
16939 | do | |
16940 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
3010d50a | 16941 | echo "configure:16942: checking for $ac_func" >&5 |
4f14bcd8 | 16942 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 VZ |
16943 | echo $ac_n "(cached) $ac_c" 1>&6 |
16944 | else | |
4f14bcd8 | 16945 | cat > conftest.$ac_ext <<EOF |
3010d50a | 16946 | #line 16947 "configure" |
f6bcfd97 | 16947 | #include "confdefs.h" |
4f14bcd8 GD |
16948 | /* System header to define __stub macros and hopefully few prototypes, |
16949 | which can conflict with char $ac_func(); below. */ | |
16950 | #include <assert.h> | |
f6bcfd97 BP |
16951 | /* Override any gcc2 internal prototype to avoid an error. */ |
16952 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16953 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16954 | char $ac_func(); |
698dcdb6 VZ |
16955 | |
16956 | int main() { | |
4f14bcd8 GD |
16957 | |
16958 | /* The GNU C library defines this for functions which it implements | |
16959 | to always fail with ENOSYS. Some functions are actually named | |
16960 | something starting with __ and the normal name is an alias. */ | |
16961 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16962 | choke me | |
16963 | #else | |
16964 | $ac_func(); | |
16965 | #endif | |
16966 | ||
698dcdb6 VZ |
16967 | ; return 0; } |
16968 | EOF | |
3010d50a | 16969 | if { (eval echo configure:16970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16970 | rm -rf conftest* |
4f14bcd8 | 16971 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
16972 | else |
16973 | echo "configure: failed program was:" >&5 | |
16974 | cat conftest.$ac_ext >&5 | |
16975 | rm -rf conftest* | |
4f14bcd8 | 16976 | eval "ac_cv_func_$ac_func=no" |
698dcdb6 VZ |
16977 | fi |
16978 | rm -f conftest* | |
698dcdb6 | 16979 | fi |
4f14bcd8 GD |
16980 | |
16981 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 16982 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
16983 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
16984 | cat >> confdefs.h <<EOF | |
16985 | #define $ac_tr_func 1 | |
16986 | EOF | |
16987 | cat >> confdefs.h <<\EOF | |
16988 | #define HAVE_INET_ATON 1 | |
16989 | EOF | |
16990 | ||
10f2d63a | 16991 | else |
698dcdb6 | 16992 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 16993 | echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6 |
3010d50a | 16994 | echo "configure:16995: checking for inet_aton in -l$INET_LINK" >&5 |
4f14bcd8 | 16995 | ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
16996 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
16997 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 16998 | else |
698dcdb6 | 16999 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17000 | LIBS="-l$INET_LINK $LIBS" |
698dcdb6 | 17001 | cat > conftest.$ac_ext <<EOF |
3010d50a | 17002 | #line 17003 "configure" |
10f2d63a | 17003 | #include "confdefs.h" |
6232543b | 17004 | /* Override any gcc2 internal prototype to avoid an error. */ |
6232543b | 17005 | /* We use char because int might match the return type of a gcc2 |
698dcdb6 | 17006 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 17007 | char inet_aton(); |
698dcdb6 VZ |
17008 | |
17009 | int main() { | |
4f14bcd8 | 17010 | inet_aton() |
698dcdb6 VZ |
17011 | ; return 0; } |
17012 | EOF | |
3010d50a | 17013 | if { (eval echo configure:17014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17014 | rm -rf conftest* |
17015 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17016 | else | |
17017 | echo "configure: failed program was:" >&5 | |
17018 | cat conftest.$ac_ext >&5 | |
17019 | rm -rf conftest* | |
17020 | eval "ac_cv_lib_$ac_lib_var=no" | |
17021 | fi | |
17022 | rm -f conftest* | |
17023 | LIBS="$ac_save_LIBS" | |
10f2d63a | 17024 | |
698dcdb6 VZ |
17025 | fi |
17026 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17027 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 GD |
17028 | cat >> confdefs.h <<\EOF |
17029 | #define HAVE_INET_ATON 1 | |
17030 | EOF | |
17031 | ||
698dcdb6 VZ |
17032 | else |
17033 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
17034 | fi |
17035 | ||
4f14bcd8 | 17036 | |
10f2d63a | 17037 | fi |
4f14bcd8 | 17038 | done |
10f2d63a | 17039 | |
4f14bcd8 GD |
17040 | |
17041 | if test "x$INET_LINK" != "x"; then | |
17042 | cat >> confdefs.h <<\EOF | |
17043 | #define HAVE_INET_ADDR 1 | |
17044 | EOF | |
17045 | ||
3d63bc3a | 17046 | INET_LINK=" -l$INET_LINK" |
6232543b | 17047 | fi |
10f2d63a | 17048 | |
1e487827 | 17049 | fi |
703e0a69 | 17050 | |
698dcdb6 | 17051 | |
4f14bcd8 GD |
17052 | cat > confcache <<\EOF |
17053 | # This file is a shell script that caches the results of configure | |
17054 | # tests run on this system so they can be shared between configure | |
17055 | # scripts and configure runs. It is not useful on other systems. | |
17056 | # If it contains results you don't want to keep, you may remove or edit it. | |
17057 | # | |
17058 | # By default, configure uses ./config.cache as the cache file, | |
17059 | # creating it if it does not exist already. You can give configure | |
17060 | # the --cache-file=FILE option to use a different cache file; that is | |
17061 | # what configure does when it calls configure scripts in | |
17062 | # subdirectories, so they share the cache. | |
17063 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
17064 | # config.status only pays attention to the cache file if you give it the | |
17065 | # --recheck option to rerun configure. | |
17066 | # | |
f6bcfd97 | 17067 | EOF |
4f14bcd8 GD |
17068 | # The following way of writing the cache mishandles newlines in values, |
17069 | # but we know of no workaround that is simple, portable, and efficient. | |
17070 | # So, don't put newlines in cache variables' values. | |
17071 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
17072 | # and sets the high bit in the cache file unless we assign to the vars. | |
17073 | (set) 2>&1 | | |
17074 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
17075 | *ac_space=\ *) | |
17076 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
17077 | # turns \\\\ into \\, and sed turns \\ into \). | |
17078 | sed -n \ | |
17079 | -e "s/'/'\\\\''/g" \ | |
17080 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
17081 | ;; | |
17082 | *) | |
17083 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
17084 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
17085 | ;; | |
17086 | esac >> confcache | |
17087 | if cmp -s $cache_file confcache; then | |
17088 | : | |
17089 | else | |
17090 | if test -w $cache_file; then | |
17091 | echo "updating cache $cache_file" | |
17092 | cat confcache > $cache_file | |
f6bcfd97 | 17093 | else |
4f14bcd8 | 17094 | echo "not updating unwritable cache $cache_file" |
f6bcfd97 | 17095 | fi |
4f14bcd8 GD |
17096 | fi |
17097 | rm -f confcache | |
f6bcfd97 | 17098 | |
4f14bcd8 GD |
17099 | |
17100 | ||
009fead0 | 17101 | CPP_MT_FLAG= |
4f14bcd8 GD |
17102 | if test "$TOOLKIT" != "MSW"; then |
17103 | ||
009fead0 | 17104 | |
7274f1c7 | 17105 | THREADS_LINK= |
009fead0 | 17106 | THREADS_CFLAGS= |
7274f1c7 RL |
17107 | |
17108 | if test "$wxUSE_THREADS" = "yes" ; then | |
17109 | if test "$wxUSE_WINE" = 1 ; then | |
156b2523 | 17110 | echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2 |
7274f1c7 RL |
17111 | wxUSE_THREADS="no" |
17112 | elif test "$USE_BEOS" = 1; then | |
156b2523 | 17113 | echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2 |
7274f1c7 RL |
17114 | wxUSE_THREADS="no" |
17115 | fi | |
4f14bcd8 | 17116 | fi |
4f14bcd8 | 17117 | |
7274f1c7 | 17118 | if test "$wxUSE_THREADS" = "yes" ; then |
009fead0 | 17119 | |
3010d50a | 17120 | |
009fead0 VZ |
17121 | THREAD_OPTS="-pthread" |
17122 | case "${host}" in | |
17123 | *-*-solaris2* | *-*-sunos4* ) | |
17124 | if test "x$GCC" = "xyes"; then | |
126be6b4 | 17125 | THREAD_OPTS="-pthreads $THREAD_OPTS" |
009fead0 VZ |
17126 | else |
17127 | THREAD_OPTS="-mt $THREAD_OPTS" | |
17128 | fi | |
17129 | ;; | |
17130 | *-*-freebsd*) | |
17131 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
17132 | ;; | |
17133 | *-*-aix* ) | |
17134 | THREAD_OPTS="pthreads" | |
17135 | ;; | |
009fead0 | 17136 | esac |
4f14bcd8 | 17137 | |
595e0e44 VZ |
17138 | THREAD_OPTS="$THREAD_OPTS -lpthread none" |
17139 | ||
009fead0 VZ |
17140 | THREADS_OK=no |
17141 | for flag in $THREAD_OPTS; do | |
17142 | case $flag in | |
17143 | none) | |
17144 | echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6 | |
3010d50a | 17145 | echo "configure:17146: checking whether pthreads work without any flags" >&5 |
009fead0 | 17146 | ;; |
698dcdb6 | 17147 | |
009fead0 VZ |
17148 | -*) |
17149 | echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6 | |
3010d50a | 17150 | echo "configure:17151: checking whether pthreads work with $flag" >&5 |
009fead0 VZ |
17151 | THREADS_CFLAGS="$flag" |
17152 | ;; | |
698dcdb6 | 17153 | |
009fead0 VZ |
17154 | *) |
17155 | echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6 | |
3010d50a | 17156 | echo "configure:17157: checking for the pthreads library -l$flag" >&5 |
009fead0 VZ |
17157 | THREADS_LINK="-l$flag" |
17158 | ;; | |
17159 | esac | |
10f2d63a | 17160 | |
009fead0 VZ |
17161 | save_LIBS="$LIBS" |
17162 | save_CFLAGS="$CFLAGS" | |
17163 | LIBS="$THREADS_LINK $LIBS" | |
17164 | CFLAGS="$CFLAGS $THREADS_CFLAGS" | |
10f2d63a | 17165 | |
009fead0 | 17166 | cat > conftest.$ac_ext <<EOF |
3010d50a | 17167 | #line 17168 "configure" |
009fead0 VZ |
17168 | #include "confdefs.h" |
17169 | #include <pthread.h> | |
4f14bcd8 | 17170 | int main() { |
009fead0 | 17171 | pthread_create(0,0,0,0); |
698dcdb6 VZ |
17172 | ; return 0; } |
17173 | EOF | |
3010d50a | 17174 | if { (eval echo configure:17175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17175 | rm -rf conftest* |
009fead0 | 17176 | THREADS_OK=yes |
10f2d63a | 17177 | else |
698dcdb6 VZ |
17178 | echo "configure: failed program was:" >&5 |
17179 | cat conftest.$ac_ext >&5 | |
6232543b | 17180 | fi |
698dcdb6 | 17181 | rm -f conftest* |
698dcdb6 | 17182 | |
009fead0 VZ |
17183 | LIBS="$save_LIBS" |
17184 | CFLAGS="$save_CFLAGS" | |
d9b9876f | 17185 | |
009fead0 VZ |
17186 | echo "$ac_t""$THREADS_OK" 1>&6 |
17187 | if test "x$THREADS_OK" = "xyes"; then | |
17188 | break; | |
17189 | fi | |
d9b9876f | 17190 | |
009fead0 VZ |
17191 | THREADS_LINK="" |
17192 | THREADS_CFLAGS="" | |
17193 | done | |
4f14bcd8 | 17194 | |
009fead0 VZ |
17195 | if test "x$THREADS_OK" != "xyes"; then |
17196 | wxUSE_THREADS=no | |
17197 | echo "configure: warning: No thread support on this system... disabled" 1>&2 | |
17198 | else | |
17199 | echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6 | |
3010d50a | 17200 | echo "configure:17201: checking if more special flags are required for pthreads" >&5 |
009fead0 VZ |
17201 | flag=no |
17202 | case "${host}" in | |
17203 | *-aix* | *-freebsd*) | |
17204 | flag="-D_THREAD_SAFE" | |
17205 | ;; | |
17206 | *solaris* | alpha*-osf*) | |
17207 | flag="-D_REENTRANT" | |
17208 | ;; | |
17209 | esac | |
17210 | echo "$ac_t""${flag}" 1>&6 | |
17211 | if test "x$flag" != xno; then | |
17212 | THREADS_CFLAGS="$flag $THREADS_CFLAGS" | |
17213 | fi | |
17214 | ||
17215 | if test "x$THREADS_LINK" != "x"; then | |
17216 | LIBS="$THREADS_LINK $LIBS" | |
17217 | fi | |
17218 | ||
17219 | if test "x$THREADS_CFLAGS" != "x"; then | |
17220 | CFLAGS="$CFLAGS $THREADS_CFLAGS" | |
17221 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" | |
17222 | fi | |
17223 | fi | |
4f14bcd8 | 17224 | fi |
4f14bcd8 | 17225 | |
7274f1c7 RL |
17226 | if test "$wxUSE_THREADS" = "yes" ; then |
17227 | for ac_func in thr_setconcurrency | |
4f14bcd8 GD |
17228 | do |
17229 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
3010d50a | 17230 | echo "configure:17231: checking for $ac_func" >&5 |
4f14bcd8 | 17231 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 VZ |
17232 | echo $ac_n "(cached) $ac_c" 1>&6 |
17233 | else | |
4f14bcd8 | 17234 | cat > conftest.$ac_ext <<EOF |
3010d50a | 17235 | #line 17236 "configure" |
d9b9876f | 17236 | #include "confdefs.h" |
4f14bcd8 GD |
17237 | /* System header to define __stub macros and hopefully few prototypes, |
17238 | which can conflict with char $ac_func(); below. */ | |
17239 | #include <assert.h> | |
17240 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17241 | /* We use char because int might match the return type of a gcc2 | |
17242 | builtin and then its argument prototype would still apply. */ | |
17243 | char $ac_func(); | |
17244 | ||
698dcdb6 | 17245 | int main() { |
d9b9876f | 17246 | |
4f14bcd8 GD |
17247 | /* The GNU C library defines this for functions which it implements |
17248 | to always fail with ENOSYS. Some functions are actually named | |
17249 | something starting with __ and the normal name is an alias. */ | |
17250 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17251 | choke me | |
17252 | #else | |
17253 | $ac_func(); | |
17254 | #endif | |
17255 | ||
698dcdb6 VZ |
17256 | ; return 0; } |
17257 | EOF | |
3010d50a | 17258 | if { (eval echo configure:17259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17259 | rm -rf conftest* |
4f14bcd8 | 17260 | eval "ac_cv_func_$ac_func=yes" |
d9b9876f | 17261 | else |
698dcdb6 VZ |
17262 | echo "configure: failed program was:" >&5 |
17263 | cat conftest.$ac_ext >&5 | |
17264 | rm -rf conftest* | |
4f14bcd8 | 17265 | eval "ac_cv_func_$ac_func=no" |
6232543b | 17266 | fi |
698dcdb6 | 17267 | rm -f conftest* |
1e487827 | 17268 | fi |
698dcdb6 | 17269 | |
4f14bcd8 GD |
17270 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17271 | echo "$ac_t""yes" 1>&6 | |
17272 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17273 | cat >> confdefs.h <<EOF | |
17274 | #define $ac_tr_func 1 | |
d9b9876f | 17275 | EOF |
4f14bcd8 GD |
17276 | |
17277 | else | |
17278 | echo "$ac_t""no" 1>&6 | |
10f2d63a | 17279 | fi |
4f14bcd8 | 17280 | done |
10f2d63a | 17281 | |
10f2d63a | 17282 | |
7274f1c7 | 17283 | for ac_hdr in sched.h |
4f14bcd8 GD |
17284 | do |
17285 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
17286 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3010d50a | 17287 | echo "configure:17288: checking for $ac_hdr" >&5 |
4f14bcd8 GD |
17288 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
17289 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 17290 | else |
4f14bcd8 | 17291 | cat > conftest.$ac_ext <<EOF |
3010d50a | 17292 | #line 17293 "configure" |
4f14bcd8 GD |
17293 | #include "confdefs.h" |
17294 | #include <$ac_hdr> | |
13111b2a | 17295 | EOF |
4f14bcd8 | 17296 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
3010d50a | 17297 | { (eval echo configure:17298: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
17298 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
17299 | if test -z "$ac_err"; then | |
17300 | rm -rf conftest* | |
17301 | eval "ac_cv_header_$ac_safe=yes" | |
17302 | else | |
17303 | echo "$ac_err" >&5 | |
17304 | echo "configure: failed program was:" >&5 | |
17305 | cat conftest.$ac_ext >&5 | |
17306 | rm -rf conftest* | |
17307 | eval "ac_cv_header_$ac_safe=no" | |
13111b2a | 17308 | fi |
4f14bcd8 | 17309 | rm -f conftest* |
10f2d63a | 17310 | fi |
4f14bcd8 GD |
17311 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
17312 | echo "$ac_t""yes" 1>&6 | |
17313 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
698dcdb6 | 17314 | cat >> confdefs.h <<EOF |
4f14bcd8 | 17315 | #define $ac_tr_hdr 1 |
f6bcfd97 | 17316 | EOF |
4f14bcd8 GD |
17317 | |
17318 | else | |
17319 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 | 17320 | fi |
4f14bcd8 | 17321 | done |
f6bcfd97 | 17322 | |
009fead0 VZ |
17323 | if test "$ac_cv_header_sched_h" = "yes"; then |
17324 | echo $ac_n "checking for sched_yield""... $ac_c" 1>&6 | |
3010d50a | 17325 | echo "configure:17326: checking for sched_yield" >&5 |
009fead0 | 17326 | if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then |
4f14bcd8 GD |
17327 | echo $ac_n "(cached) $ac_c" 1>&6 |
17328 | else | |
009fead0 | 17329 | cat > conftest.$ac_ext <<EOF |
3010d50a | 17330 | #line 17331 "configure" |
4f14bcd8 | 17331 | #include "confdefs.h" |
009fead0 VZ |
17332 | /* System header to define __stub macros and hopefully few prototypes, |
17333 | which can conflict with char sched_yield(); below. */ | |
17334 | #include <assert.h> | |
4f14bcd8 GD |
17335 | /* Override any gcc2 internal prototype to avoid an error. */ |
17336 | /* We use char because int might match the return type of a gcc2 | |
17337 | builtin and then its argument prototype would still apply. */ | |
17338 | char sched_yield(); | |
10f2d63a | 17339 | |
4f14bcd8 | 17340 | int main() { |
009fead0 VZ |
17341 | |
17342 | /* The GNU C library defines this for functions which it implements | |
17343 | to always fail with ENOSYS. Some functions are actually named | |
17344 | something starting with __ and the normal name is an alias. */ | |
17345 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
17346 | choke me | |
17347 | #else | |
17348 | sched_yield(); | |
17349 | #endif | |
17350 | ||
4f14bcd8 | 17351 | ; return 0; } |
10f2d63a | 17352 | EOF |
3010d50a | 17353 | if { (eval echo configure:17354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 | 17354 | rm -rf conftest* |
009fead0 | 17355 | eval "ac_cv_func_sched_yield=yes" |
10f2d63a | 17356 | else |
4f14bcd8 GD |
17357 | echo "configure: failed program was:" >&5 |
17358 | cat conftest.$ac_ext >&5 | |
17359 | rm -rf conftest* | |
009fead0 | 17360 | eval "ac_cv_func_sched_yield=no" |
10f2d63a | 17361 | fi |
4f14bcd8 | 17362 | rm -f conftest* |
4f14bcd8 | 17363 | fi |
009fead0 VZ |
17364 | |
17365 | if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then | |
4f14bcd8 GD |
17366 | echo "$ac_t""yes" 1>&6 |
17367 | cat >> confdefs.h <<\EOF | |
17368 | #define HAVE_SCHED_YIELD 1 | |
10f2d63a VZ |
17369 | EOF |
17370 | ||
4f14bcd8 GD |
17371 | else |
17372 | echo "$ac_t""no" 1>&6 | |
009fead0 VZ |
17373 | |
17374 | echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6 | |
3010d50a | 17375 | echo "configure:17376: checking for sched_yield in -lposix4" >&5 |
4f14bcd8 GD |
17376 | ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'` |
17377 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17378 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17379 | else | |
17380 | ac_save_LIBS="$LIBS" | |
17381 | LIBS="-lposix4 $LIBS" | |
17382 | cat > conftest.$ac_ext <<EOF | |
3010d50a | 17383 | #line 17384 "configure" |
4f14bcd8 GD |
17384 | #include "confdefs.h" |
17385 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17386 | /* We use char because int might match the return type of a gcc2 | |
17387 | builtin and then its argument prototype would still apply. */ | |
17388 | char sched_yield(); | |
47c13eb7 | 17389 | |
4f14bcd8 GD |
17390 | int main() { |
17391 | sched_yield() | |
17392 | ; return 0; } | |
10f2d63a | 17393 | EOF |
3010d50a | 17394 | if { (eval echo configure:17395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
17395 | rm -rf conftest* |
17396 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 17397 | else |
4f14bcd8 GD |
17398 | echo "configure: failed program was:" >&5 |
17399 | cat conftest.$ac_ext >&5 | |
17400 | rm -rf conftest* | |
17401 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 17402 | fi |
4f14bcd8 GD |
17403 | rm -f conftest* |
17404 | LIBS="$ac_save_LIBS" | |
10f2d63a | 17405 | |
54276ccf | 17406 | fi |
4f14bcd8 GD |
17407 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
17408 | echo "$ac_t""yes" 1>&6 | |
17409 | cat >> confdefs.h <<\EOF | |
17410 | #define HAVE_SCHED_YIELD 1 | |
54276ccf | 17411 | EOF |
3d63bc3a | 17412 | POSIX4_LINK=" -lposix4" |
4f14bcd8 GD |
17413 | else |
17414 | echo "$ac_t""no" 1>&6 | |
17415 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
009fead0 | 17416 | |
54276ccf VZ |
17417 | fi |
17418 | ||
009fead0 VZ |
17419 | |
17420 | ||
4f14bcd8 | 17421 | fi |
698dcdb6 | 17422 | |
009fead0 | 17423 | fi |
10f2d63a | 17424 | |
7274f1c7 | 17425 | HAVE_PRIOR_FUNCS=0 |
009fead0 | 17426 | echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6 |
3010d50a | 17427 | echo "configure:17428: checking for pthread_attr_getschedpolicy" >&5 |
009fead0 | 17428 | if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then |
698dcdb6 VZ |
17429 | echo $ac_n "(cached) $ac_c" 1>&6 |
17430 | else | |
009fead0 | 17431 | cat > conftest.$ac_ext <<EOF |
3010d50a | 17432 | #line 17433 "configure" |
422107f9 | 17433 | #include "confdefs.h" |
009fead0 VZ |
17434 | /* System header to define __stub macros and hopefully few prototypes, |
17435 | which can conflict with char pthread_attr_getschedpolicy(); below. */ | |
17436 | #include <assert.h> | |
4f14bcd8 GD |
17437 | /* Override any gcc2 internal prototype to avoid an error. */ |
17438 | /* We use char because int might match the return type of a gcc2 | |
17439 | builtin and then its argument prototype would still apply. */ | |
17440 | char pthread_attr_getschedpolicy(); | |
17441 | ||
17442 | int main() { | |
009fead0 VZ |
17443 | |
17444 | /* The GNU C library defines this for functions which it implements | |
17445 | to always fail with ENOSYS. Some functions are actually named | |
17446 | something starting with __ and the normal name is an alias. */ | |
17447 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
17448 | choke me | |
17449 | #else | |
17450 | pthread_attr_getschedpolicy(); | |
17451 | #endif | |
17452 | ||
4f14bcd8 | 17453 | ; return 0; } |
698dcdb6 | 17454 | EOF |
3010d50a | 17455 | if { (eval echo configure:17456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17456 | rm -rf conftest* |
009fead0 | 17457 | eval "ac_cv_func_pthread_attr_getschedpolicy=yes" |
422107f9 | 17458 | else |
698dcdb6 | 17459 | echo "configure: failed program was:" >&5 |
422107f9 | 17460 | cat conftest.$ac_ext >&5 |
698dcdb6 | 17461 | rm -rf conftest* |
009fead0 | 17462 | eval "ac_cv_func_pthread_attr_getschedpolicy=no" |
422107f9 | 17463 | fi |
698dcdb6 | 17464 | rm -f conftest* |
422107f9 | 17465 | fi |
009fead0 VZ |
17466 | |
17467 | if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then | |
698dcdb6 | 17468 | echo "$ac_t""yes" 1>&6 |
009fead0 | 17469 | echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6 |
3010d50a | 17470 | echo "configure:17471: checking for pthread_attr_setschedparam" >&5 |
009fead0 | 17471 | if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then |
698dcdb6 | 17472 | echo $ac_n "(cached) $ac_c" 1>&6 |
422107f9 | 17473 | else |
009fead0 | 17474 | cat > conftest.$ac_ext <<EOF |
3010d50a | 17475 | #line 17476 "configure" |
422107f9 | 17476 | #include "confdefs.h" |
009fead0 VZ |
17477 | /* System header to define __stub macros and hopefully few prototypes, |
17478 | which can conflict with char pthread_attr_setschedparam(); below. */ | |
17479 | #include <assert.h> | |
422107f9 VZ |
17480 | /* Override any gcc2 internal prototype to avoid an error. */ |
17481 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 17482 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 17483 | char pthread_attr_setschedparam(); |
698dcdb6 VZ |
17484 | |
17485 | int main() { | |
009fead0 VZ |
17486 | |
17487 | /* The GNU C library defines this for functions which it implements | |
17488 | to always fail with ENOSYS. Some functions are actually named | |
17489 | something starting with __ and the normal name is an alias. */ | |
17490 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
17491 | choke me | |
17492 | #else | |
17493 | pthread_attr_setschedparam(); | |
17494 | #endif | |
17495 | ||
698dcdb6 VZ |
17496 | ; return 0; } |
17497 | EOF | |
3010d50a | 17498 | if { (eval echo configure:17499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17499 | rm -rf conftest* |
009fead0 | 17500 | eval "ac_cv_func_pthread_attr_setschedparam=yes" |
698dcdb6 VZ |
17501 | else |
17502 | echo "configure: failed program was:" >&5 | |
17503 | cat conftest.$ac_ext >&5 | |
17504 | rm -rf conftest* | |
009fead0 | 17505 | eval "ac_cv_func_pthread_attr_setschedparam=no" |
698dcdb6 VZ |
17506 | fi |
17507 | rm -f conftest* | |
698dcdb6 | 17508 | fi |
009fead0 VZ |
17509 | |
17510 | if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then | |
698dcdb6 | 17511 | echo "$ac_t""yes" 1>&6 |
009fead0 | 17512 | echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6 |
3010d50a | 17513 | echo "configure:17514: checking for sched_get_priority_max" >&5 |
009fead0 | 17514 | if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then |
698dcdb6 VZ |
17515 | echo $ac_n "(cached) $ac_c" 1>&6 |
17516 | else | |
009fead0 | 17517 | cat > conftest.$ac_ext <<EOF |
3010d50a | 17518 | #line 17519 "configure" |
422107f9 | 17519 | #include "confdefs.h" |
009fead0 VZ |
17520 | /* System header to define __stub macros and hopefully few prototypes |
17521 | else | |
17522 | echo "$ac_t""no" 1>&6 | |
17523 | which can conflict with char sched_get_priority_max(); below. */ | |
17524 | #include <assert.h> | |
4f14bcd8 GD |
17525 | /* Override any gcc2 internal prototype to avoid an error. */ |
17526 | /* We use char because int might match the return type of a gcc2 | |
17527 | builtin and then its argument prototype would still apply. */ | |
17528 | char sched_get_priority_max(); | |
17529 | ||
17530 | int main() { | |
009fead0 VZ |
17531 | |
17532 | /* The GNU C library defines this for functions which it implements | |
17533 | to always fail with ENOSYS. Some functions are actually named | |
17534 | something starting with __ and the normal name is an alias. */ | |
17535 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
17536 | choke me | |
17537 | #else | |
17538 | sched_get_priority_max(); | |
17539 | #endif | |
17540 | ||
4f14bcd8 | 17541 | ; return 0; } |
698dcdb6 | 17542 | EOF |
3010d50a | 17543 | if { (eval echo configure:17544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17544 | rm -rf conftest* |
009fead0 | 17545 | eval "ac_cv_func_sched_get_priority_max=yes" |
422107f9 | 17546 | else |
698dcdb6 | 17547 | echo "configure: failed program was:" >&5 |
422107f9 | 17548 | cat conftest.$ac_ext >&5 |
698dcdb6 | 17549 | rm -rf conftest* |
009fead0 | 17550 | eval "ac_cv_func_sched_get_priority_max=no" |
422107f9 | 17551 | fi |
698dcdb6 | 17552 | rm -f conftest* |
422107f9 | 17553 | fi |
009fead0 VZ |
17554 | |
17555 | if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = 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 | |
3010d50a | 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 |
3010d50a | 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 | |
3010d50a | 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 | |
4f14bcd8 | 17612 | fi |
463abc64 | 17613 | |
463abc64 | 17614 | |
7274f1c7 RL |
17615 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
17616 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 17617 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 |
698dcdb6 | 17618 | EOF |
463abc64 | 17619 | |
7274f1c7 RL |
17620 | else |
17621 | echo "configure: warning: Setting thread priority will not work" 1>&2 | |
17622 | fi | |
463abc64 | 17623 | |
009fead0 | 17624 | echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6 |
3010d50a | 17625 | echo "configure:17626: checking for pthread_cancel" >&5 |
009fead0 | 17626 | if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then |
698dcdb6 | 17627 | echo $ac_n "(cached) $ac_c" 1>&6 |
422107f9 | 17628 | else |
009fead0 | 17629 | cat > conftest.$ac_ext <<EOF |
3010d50a | 17630 | #line 17631 "configure" |
422107f9 | 17631 | #include "confdefs.h" |
009fead0 VZ |
17632 | /* System header to define __stub macros and hopefully few prototypes, |
17633 | which can conflict with char pthread_cancel(); below. */ | |
17634 | #include <assert.h> | |
422107f9 VZ |
17635 | /* Override any gcc2 internal prototype to avoid an error. */ |
17636 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 17637 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 17638 | char pthread_cancel(); |
698dcdb6 VZ |
17639 | |
17640 | int main() { | |
009fead0 VZ |
17641 | |
17642 | /* The GNU C library defines this for functions which it implements | |
17643 | to always fail with ENOSYS. Some functions are actually named | |
17644 | something starting with __ and the normal name is an alias. */ | |
17645 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
17646 | choke me | |
17647 | #else | |
17648 | pthread_cancel(); | |
17649 | #endif | |
17650 | ||
698dcdb6 VZ |
17651 | ; return 0; } |
17652 | EOF | |
3010d50a | 17653 | if { (eval echo configure:17654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17654 | rm -rf conftest* |
009fead0 | 17655 | eval "ac_cv_func_pthread_cancel=yes" |
698dcdb6 VZ |
17656 | else |
17657 | echo "configure: failed program was:" >&5 | |
17658 | cat conftest.$ac_ext >&5 | |
17659 | rm -rf conftest* | |
009fead0 | 17660 | eval "ac_cv_func_pthread_cancel=no" |
698dcdb6 VZ |
17661 | fi |
17662 | rm -f conftest* | |
698dcdb6 | 17663 | fi |
009fead0 VZ |
17664 | |
17665 | if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then | |
698dcdb6 | 17666 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
17667 | cat >> confdefs.h <<\EOF |
17668 | #define HAVE_PTHREAD_CANCEL 1 | |
17669 | EOF | |
17670 | ||
698dcdb6 VZ |
17671 | else |
17672 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 | 17673 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 |
422107f9 VZ |
17674 | fi |
17675 | ||
422107f9 | 17676 | |
7274f1c7 | 17677 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 |
3010d50a | 17678 | echo "configure:17679: checking for pthread_cleanup_push/pop" >&5 |
4f14bcd8 GD |
17679 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then |
17680 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17681 | else | |
17682 | ||
7274f1c7 | 17683 | cat > conftest.$ac_ext <<EOF |
3010d50a | 17684 | #line 17685 "configure" |
4f14bcd8 GD |
17685 | #include "confdefs.h" |
17686 | #include <pthread.h> | |
17687 | int main() { | |
17688 | ||
7274f1c7 RL |
17689 | pthread_cleanup_push(NULL, NULL); |
17690 | pthread_cleanup_pop(0); | |
17691 | ||
4f14bcd8 GD |
17692 | ; return 0; } |
17693 | EOF | |
3010d50a | 17694 | if { (eval echo configure:17695: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
17695 | rm -rf conftest* |
17696 | ||
7274f1c7 RL |
17697 | wx_cv_func_pthread_cleanup_push=yes |
17698 | ||
4f14bcd8 GD |
17699 | else |
17700 | echo "configure: failed program was:" >&5 | |
17701 | cat conftest.$ac_ext >&5 | |
17702 | rm -rf conftest* | |
17703 | ||
7274f1c7 RL |
17704 | wx_cv_func_pthread_cleanup_push=no |
17705 | ||
4f14bcd8 GD |
17706 | fi |
17707 | rm -f conftest* | |
7274f1c7 | 17708 | |
10f2d63a VZ |
17709 | fi |
17710 | ||
4f14bcd8 GD |
17711 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 |
17712 | ||
7274f1c7 RL |
17713 | if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then |
17714 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 17715 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 |
c7a2bf27 RR |
17716 | EOF |
17717 | ||
7274f1c7 | 17718 | fi |
4f14bcd8 | 17719 | |
7274f1c7 RL |
17720 | |
17721 | if test "x$wx_lib_glibc21" = "xyes"; then | |
17722 | CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" | |
17723 | fi | |
4f14bcd8 | 17724 | |
7274f1c7 | 17725 | echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6 |
3010d50a | 17726 | echo "configure:17727: checking for pthread_mutexattr_t" >&5 |
4f14bcd8 | 17727 | if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then |
698dcdb6 VZ |
17728 | echo $ac_n "(cached) $ac_c" 1>&6 |
17729 | else | |
4f14bcd8 | 17730 | |
7274f1c7 | 17731 | cat > conftest.$ac_ext <<EOF |
3010d50a | 17732 | #line 17733 "configure" |
0dcf9893 | 17733 | #include "confdefs.h" |
4f14bcd8 GD |
17734 | #include <pthread.h> |
17735 | int main() { | |
17736 | ||
7274f1c7 RL |
17737 | pthread_mutexattr_t attr; |
17738 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
17739 | ||
4f14bcd8 | 17740 | ; return 0; } |
698dcdb6 | 17741 | EOF |
3010d50a | 17742 | if { (eval echo configure:17743: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 17743 | rm -rf conftest* |
4f14bcd8 | 17744 | |
7274f1c7 RL |
17745 | wx_cv_type_pthread_mutexattr_t=yes |
17746 | ||
3fed1840 | 17747 | else |
698dcdb6 | 17748 | echo "configure: failed program was:" >&5 |
3fed1840 | 17749 | cat conftest.$ac_ext >&5 |
698dcdb6 | 17750 | rm -rf conftest* |
4f14bcd8 | 17751 | |
7274f1c7 RL |
17752 | wx_cv_type_pthread_mutexattr_t=no |
17753 | ||
4f14bcd8 | 17754 | |
3fed1840 | 17755 | fi |
698dcdb6 | 17756 | rm -f conftest* |
7274f1c7 | 17757 | |
3fed1840 | 17758 | fi |
4f14bcd8 GD |
17759 | |
17760 | echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6 | |
17761 | ||
7274f1c7 RL |
17762 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then |
17763 | cat >> confdefs.h <<\EOF | |
4f14bcd8 GD |
17764 | #define HAVE_PTHREAD_MUTEXATTR_T 1 |
17765 | EOF | |
17766 | ||
7274f1c7 RL |
17767 | else |
17768 | echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6 | |
3010d50a | 17769 | echo "configure:17770: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 |
4f14bcd8 | 17770 | if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then |
698dcdb6 | 17771 | echo $ac_n "(cached) $ac_c" 1>&6 |
3fed1840 | 17772 | else |
4f14bcd8 | 17773 | |
7274f1c7 | 17774 | cat > conftest.$ac_ext <<EOF |
3010d50a | 17775 | #line 17776 "configure" |
3fed1840 | 17776 | #include "confdefs.h" |
4f14bcd8 | 17777 | #include <pthread.h> |
698dcdb6 | 17778 | int main() { |
4f14bcd8 | 17779 | |
7274f1c7 RL |
17780 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; |
17781 | ||
698dcdb6 VZ |
17782 | ; return 0; } |
17783 | EOF | |
3010d50a | 17784 | if { (eval echo configure:17785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 17785 | rm -rf conftest* |
4f14bcd8 | 17786 | |
7274f1c7 RL |
17787 | wx_cv_type_pthread_rec_mutex_init=yes |
17788 | ||
698dcdb6 VZ |
17789 | else |
17790 | echo "configure: failed program was:" >&5 | |
17791 | cat conftest.$ac_ext >&5 | |
17792 | rm -rf conftest* | |
4f14bcd8 | 17793 | |
7274f1c7 RL |
17794 | wx_cv_type_pthread_rec_mutex_init=no |
17795 | ||
4f14bcd8 | 17796 | |
698dcdb6 VZ |
17797 | fi |
17798 | rm -f conftest* | |
7274f1c7 | 17799 | |
3fed1840 RR |
17800 | fi |
17801 | ||
4f14bcd8 | 17802 | echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6 |
7274f1c7 RL |
17803 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then |
17804 | cat >> confdefs.h <<\EOF | |
4f14bcd8 GD |
17805 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 |
17806 | EOF | |
3fed1840 | 17807 | |
7274f1c7 RL |
17808 | else |
17809 | echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2 | |
17810 | fi | |
17811 | fi | |
7274f1c7 | 17812 | fi |
3fed1840 | 17813 | |
4f14bcd8 GD |
17814 | fi |
17815 | ||
17816 | if test "$wxUSE_THREADS" = "yes"; then | |
3a922bb4 | 17817 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 17818 | #define wxUSE_THREADS 1 |
7b6058cd GD |
17819 | EOF |
17820 | ||
4f14bcd8 | 17821 | |
009fead0 | 17822 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS $THREADS_CFLAGS" |
4f14bcd8 GD |
17823 | |
17824 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
698dcdb6 | 17825 | else |
4f14bcd8 GD |
17826 | if test "$ac_cv_func_strtok_r" = "yes"; then |
17827 | echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6 | |
3010d50a | 17828 | echo "configure:17829: checking if -D_REENTRANT is needed" >&5 |
4f14bcd8 GD |
17829 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
17830 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
17831 | echo "$ac_t""yes" 1>&6 | |
17832 | else | |
17833 | echo "$ac_t""no" 1>&6 | |
17834 | fi | |
17835 | fi | |
17836 | fi | |
17837 | ||
17838 | if test "$WXGTK20" = 1 ; then | |
17839 | cat >> confdefs.h <<EOF | |
17840 | #define __WXGTK20__ $WXGTK20 | |
698dcdb6 | 17841 | EOF |
4f14bcd8 GD |
17842 | |
17843 | WXGTK12=1 | |
10f2d63a | 17844 | fi |
4f14bcd8 GD |
17845 | |
17846 | if test "$WXGTK12" = 1 ; then | |
17847 | cat >> confdefs.h <<EOF | |
17848 | #define __WXGTK12__ $WXGTK12 | |
17849 | EOF | |
17850 | ||
10f2d63a | 17851 | fi |
698dcdb6 | 17852 | |
4f14bcd8 GD |
17853 | if test "$WXGTK127" = 1 ; then |
17854 | cat >> confdefs.h <<EOF | |
17855 | #define __WXGTK127__ $WXGTK127 | |
698dcdb6 | 17856 | EOF |
4f14bcd8 | 17857 | |
698dcdb6 | 17858 | fi |
10f2d63a | 17859 | |
4f14bcd8 GD |
17860 | WXDEBUG= |
17861 | ||
17862 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
17863 | WXDEBUG="-g" | |
17864 | wxUSE_OPTIMISE=no | |
698dcdb6 | 17865 | fi |
4f14bcd8 GD |
17866 | |
17867 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
17868 | wxUSE_DEBUG_INFO=yes | |
17869 | WXDEBUG="-ggdb" | |
10f2d63a VZ |
17870 | fi |
17871 | ||
4f14bcd8 GD |
17872 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then |
17873 | cat >> confdefs.h <<\EOF | |
17874 | #define WXDEBUG 1 | |
17875 | EOF | |
17876 | ||
17877 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
10f2d63a | 17878 | else |
4f14bcd8 GD |
17879 | if test "$wxUSE_GTK" = 1 ; then |
17880 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
17881 | fi | |
17882 | fi | |
17883 | ||
17884 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
17885 | cat >> confdefs.h <<\EOF | |
17886 | #define wxUSE_MEMORY_TRACING 1 | |
17887 | EOF | |
17888 | ||
17889 | cat >> confdefs.h <<\EOF | |
17890 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
17891 | EOF | |
17892 | ||
17893 | cat >> confdefs.h <<\EOF | |
17894 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
17895 | EOF | |
17896 | ||
17897 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
17898 | fi | |
17899 | ||
17900 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
3d63bc3a | 17901 | DMALLOC_LIBS="-ldmalloc" |
4f14bcd8 GD |
17902 | fi |
17903 | ||
17904 | PROFILE= | |
17905 | if test "$wxUSE_PROFILE" = "yes" ; then | |
3d63bc3a | 17906 | PROFILE=" -pg" |
10f2d63a VZ |
17907 | fi |
17908 | ||
009fead0 VZ |
17909 | CODE_GEN_FLAGS= |
17910 | CODE_GEN_FLAGS_CXX= | |
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 |
3010d50a | 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 | |
3010d50a | 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 |
3010d50a | 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 |
3010d50a | 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 | |
3010d50a | 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 | |
3010d50a | 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 | |
3010d50a | 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 | |
3010d50a | 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 | |
3010d50a | 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 | |
3010d50a | 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 |
3010d50a | 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 | |
3010d50a | 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 |
3010d50a | 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 | |
3010d50a | 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 | |
3010d50a | 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 | |
3010d50a | 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 |
3010d50a | 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 | |
3010d50a | 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 | |
3010d50a | 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 | |
3010d50a | 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 | |
3010d50a | 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 | |
3010d50a | 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 | |
3010d50a | 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 | |
3010d50a | 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 |
3010d50a | 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 |
3010d50a | 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 | |
3010d50a | 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 | |
3010d50a | 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 |
3010d50a | 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 | |
3010d50a | 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 |
3010d50a | 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 |
3010d50a | 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 | |
3010d50a | 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 | |
3010d50a | 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 | |
3010d50a | 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 | |
3010d50a | 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 | |
3010d50a | 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 | |
3010d50a | 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 | |
3010d50a | 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" | |
3010d50a | 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 |
3010d50a | 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 | |
3010d50a | 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 | |
3010d50a | 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 | |
3010d50a | 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 |
3010d50a | 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 | |
3010d50a | 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 |
3010d50a | 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 | |
3010d50a | 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 | |
3010d50a | 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 | |
3010d50a | 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 |
3010d50a | 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 | |
3010d50a | 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 |
3010d50a | 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 | |
3010d50a | 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 | |
3010d50a | 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 | |
3010d50a | 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 |
3010d50a | 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 | |
3010d50a | 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 | |
3010d50a | 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 | |
3010d50a | 19310 | #line 19311 "configure" |
a72a4bfa VS |
19311 | #include "confdefs.h" |
19312 | ||
19313 | int main() { | |
19314 | main() | |
19315 | ; return 0; } | |
19316 | EOF | |
3010d50a | 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 | |
3010d50a | 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 | |
3010d50a | 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" | |
3010d50a | 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 | |
009fead0 | 20346 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_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 |
3010d50a | 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 |